Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

feat(network): 接入 Cloudflare Quick Tunnel

longmeidaof945b482ce4f
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2bb4cec07..dc3c4a595 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -55,9 +55,12 @@ jobs:
if ($LASTEXITCODE -ne 0) { throw 'uv 安装依赖失败' }
uv pip check --python .venv/Scripts/python.exe
if ($LASTEXITCODE -ne 0) { throw 'uv 依赖检查失败' }
+ - name: 获取并校验 cloudflared 旁路文件
+ shell: pwsh
+ run: '& ./scripts/fetch_cloudflared.ps1 -OutputPath "$env:RUNNER_TEMP/cloudflared.exe"'
- name: 构建独立目录包
shell: pwsh
- run: '& ./scripts/build_windows.ps1 -Standalone'
+ run: '& ./scripts/build_windows.ps1 -Standalone -CloudflaredPath "$env:RUNNER_TEMP/cloudflared.exe"'
- name: 压缩完整程序目录
shell: pwsh
run: |
diff --git a/docs/OPERATIONS.md b/docs/OPERATIONS.md
index c4bce089c..16b4e3412 100644
--- a/docs/OPERATIONS.md
+++ b/docs/OPERATIONS.md
@@ -174,6 +174,8 @@ curl -s --noproxy '*' -o /dev/null -w '%{http_code}\n' https://peach.local/healt
验收四项:菜单栏只出现一个 Peach 图标且 `status` 报「已加载」;`launchctl print` 的 pid 就是那个菜单栏进程;`pfctl -s nat` 列出 80 → 8900、443 → 8443 两条 rdr;两条 `/healthz` 都回 200。`peach.local` 换成本机 `[server].mdns_name` 的值。
- 发布入口是 `scripts/build_windows.ps1`:先用 `scripts/generate_brand_assets.py` 生成方形 Logo 与多尺寸 `.ico`,再构建单一 `dist/Peach/Peach.exe`;无参数运行托盘,`serve`/`migrate` 运行 CLI。桌面快捷方式和开机自启都在配置页的「开机自启」一组里开关,由 `src/peach/desktop_startup.py` 落盘;`scripts/manage_tray_startup.ps1` 只作发布包的排障入口。
+- Cloudflare Quick Tunnel 分源码和独立包两条 origin:源码托盘取实际 HTTPS 子服务(Windows 是局域网 `:443`,macOS/手工服务按实际 TLS 端口),附项目 CA 与 mDNS SNI;独立包只取回环 HTTP `127.0.0.1:<server.port>`,不能拿源码的 443 或明文跳转口代替。`https://try.cloudflare.com/` 是介绍页,真正入口是 cloudflared 输出的随机 `https://<id>.trycloudflare.com`。开关默认关闭,只有 Peach 已设置访问密码时才允许启动;随机 URL 只写数据根状态文件,停止服务会清理子进程和状态。
+- 独立包构建把固定版本的官方 `cloudflared-windows-amd64.exe` 作为旁路文件放在 `Peach.exe` 旁边,并用 `scripts/cloudflared-windows.json` 的 SHA-256 校验;构建前运行 `scripts/fetch_cloudflared.ps1`,或给 `build_windows.ps1 -CloudflaredPath` 一个同哈希文件。源码运行不携带二进制,按设置文件、`PEACH_CLOUDFLARED`、PATH 顺序查找。Quick Tunnel 还需要出站 TCP/UDP `7844`,被防火墙或代理阻断时必须显示失败,不得把已申请 URL 当作可用入口。
- 对外测试包由 `.github/workflows/release.yml` 承担:`build_windows.ps1 -Standalone` 用 PyInstaller onedir 生成完整 Windows 程序目录,压缩后由不检出源码的消费任务运行 `scripts/smoke_desktop.py`;冒烟会完成首启、以 `0.0.0.0` 重启、从本机局域网地址读取 `/healthz`、核对 mDNS 已装配并用访问密码登录。`v<__version__>` tag 与版本不一致会失败,通过制品验收才创建 GitHub 预发布并附 SHA256;`workflow_dispatch` 只生成和验收 artifact。macOS 独立包另列待办,源码菜单栏构建入口仍为 `build_macos_app.py`。
- 刷新源码运行态不要用 Computer Use 点托盘:`python scripts/restart_windows_tray.py` 按精确 EXE 路径找到 pystray 隐藏窗口、发送正常停止消息、等托盘自行关闭子服务,再静默启动并核对新托盘重新拥有两个服务;找不到唯一窗口或退出超时就拒绝,绝不强杀后另启。`--swap-from <暂存包>` 让它在旧托盘退出后、新托盘启动前顺手换掉二进制,那是整条链路上唯一一个目标文件没有进程持有的窗口;换生产二进制用下面那条入口,不要单独调它。打包托盘窗口不在时命令自动改走源码托盘:`find_source_tray_windows()` 按同一窗口类名加「命令行含 `peach.tray`」认源码托盘,`restart_source_tray()` 照抄原命令行(含 `--show`/数据根)等托盘退出后自起,不换包不备份;`--source` 显式跳过打包入口。
- 换掉生产托盘二进制走 `python scripts/deploy_windows_tray.py`,在主检出里用项目 venv 的 Python 跑:拒绝脏检出 → 按 HEAD 提交号在 `<数据根>/state/source-sync-build/<commit>/` 构建 → 让暂存包自己跑一次 `migrate status` → 停旧托盘、原地换 `dist/Peach/Peach.exe`(旧的留成 `Peach.pre-source-sync-<时间>.exe`)、起新托盘 → 用项目 CA 严格校验读生产 HTTPS 口的 `/healthz`。验收按回话的是谁分成两条:独立发行版里回话的就是冻结进程自己,核对它报的 `build_commit` 等于这次打包的提交;本机这套形态下回话的是 venv 里的源码进程——托盘刻意把两个子服务交回项目 venv(`src/peach/tray.py` 的 `_peach_executable()`),那个进程没有第二个版本,`build_commit` 结构上恒为 None——这时核对生产入口那个文件的 sha256 等于这次打出来的暂存包,而托盘正是换完之后才从这个文件起来并拿到两个子服务的。两条都不认版本号:版本号一次发布才推一格,同一个号下有很多个构建,只比版本号证明不了二进制换掉了。结果打印成一份 JSON,`step` 说明停在哪一步。新托盘起不来或拿不到两个子服务时自动换回备份并重开旧托盘;`--staged <路径>` 复用已经打好的包、跳过构建。不要就地构建 `dist/Peach/`:运行中的托盘持有那个文件,PyInstaller 清目录会撞上 WinError 5。换生产入口本身仍要当场授权,脚本不代替那次授权。
diff --git a/docs/REUSE.md b/docs/REUSE.md
index 9bf1b6e35..0d5c63a70 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -60,6 +60,7 @@ JAV 默认封面(官方封面/预览图)与默认大小(大图/小图
CI 复用 GitHub Actions 独立 runner 分片与现有 unittest 入口;Peach 仅维护影响域策略,不引入并发测试框架。验证记录与最小安装规则见 `TESTING.md`。
- 访问密码复用 Python 3.14 的 [hashlib.scrypt](https://docs.python.org/3.14/library/hashlib.html) 与 OpenSSL,浏览器会话复用 [ItsDangerous 2.2.0](https://itsdangerous.palletsprojects.com/en/stable/)(Pallets 维护、BSD-3-Clause、Python 3.8+、纯 Python、wheel 16 KB、无传递依赖);本机原子配置写入复用 tempfile/os.replace,并将已有 filelock 3.32.4 纳入运行依赖。当前树和 Git 的认证入口已有内部口令、三种拒绝响应和本机配置守卫,继续复用。Starlette SessionMiddleware 采用统一时长并随响应更新会话,不满足每台设备选择固定截止时间的要求;直接使用同源签名库,由 Peach 维护可选密码、截止时间与撤销策略。临时文件 POC 的密码验证、签名验证和篡改拒绝通过,耗时 0.153 秒;真实凭据未读取。新增依赖不包含账户体系或数据库迁移。
+- Cloudflare Quick Tunnel 复用官方 `cloudflared`(Apache-2.0)而不在 Peach 内实现隧道协议。源码环境只管理 PATH/环境变量中的进程;Windows 独立包旁路文件固定为 `2026.9.0`,资产、下载地址和 SHA-256 记录在 `scripts/cloudflared-windows.json`,由 `fetch_cloudflared.ps1` 与构建脚本双重校验。Quick Tunnel 的 URL 申请和边缘连接是两个阶段,Peach 使用官方 `--pidfile`(首次成功连接后才写入)作为就绪判据;未取得连接不向页面宣称可用。源码 HTTPS origin 使用项目 CA,独立包使用回环 HTTP,并由当前进程持有的随机 URL 参与写请求来源校验。
- README 交付检查复用系统 Git 的 `diff --no-renames -z` 和 `interpret-trailers --parse`,
挂到既有 `agent_worktree.py ready/integrate`;Peach 只定义影响文件与双语声明 policy。
diff --git a/docs/TESTING_DESKTOP.md b/docs/TESTING_DESKTOP.md
index c7b6c8c99..32f25cd4a 100644
--- a/docs/TESTING_DESKTOP.md
+++ b/docs/TESTING_DESKTOP.md
@@ -9,6 +9,14 @@
「专用网络」;不需要安装 Python、Git、Node 或 OpenSSL。局域网里有其他使用者时建议开启访问密码。
数据保存在当前用户的 `%LOCALAPPDATA%\Peach\peach-data`,和程序目录分开。
+## 临时远程链接
+
+配置页的「Cloudflare 临时链接」默认关闭。先在「访问设置」中设置访问密码,再启动链接;地址是 cloudflared 临时生成的随机 `https://<id>.trycloudflare.com`,不是直接打开 `https://try.cloudflare.com/`。关闭 Peach 或停止链接后,地址失效。
+
+源码运行使用本机 HTTPS 与项目 CA;Windows 独立包使用回环 HTTP,外部访问仍由 Cloudflare 提供 HTTPS。独立包已附带经过 SHA-256 校验的 `cloudflared.exe`。如果页面提示连接失败,先检查防火墙或代理是否允许 cloudflared 出站 TCP/UDP `7844`;已经显示随机地址不代表边缘连接已经成功。
+
+该功能面向临时预览,不是稳定域名、团队账号或 Cloudflare Access。不要把随机地址写入书签、文档或公开配置;不要在没有访问密码时绕过页面强行启动。
+
## 配置与反馈
- 页面右上角「设置」→「媒体文件夹与服务配置」,或托盘「配置 Peach」,可以修改媒体文件夹、端口并请求扫描。
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index b95bd40e4..c39c4e0a0 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -7,6 +7,14 @@ import type { QualityGoal } from './quality-goals/quality-goals';
export interface AccessState { mode: 'open' | 'password' | 'legacy' | 'locked'; revision: string }
+export interface TunnelState {
+ enabled: boolean;
+ state: 'stopped' | 'starting' | 'running' | 'error';
+ url: string;
+ error: string;
+ available: boolean;
+}
+
export interface AccessSettingsProps {
initial: AccessState;
receipt(message: string): void;
@@ -60,6 +68,7 @@ export interface ConfigurationData {
update_job?: UpdateJob;
automatic_updates?: AutomaticUpdateState;
access?: AccessState;
+ tunnel?: TunnelState;
editable: boolean;
/** 不能编辑时给用户看的原因,可编辑时为空。 */
notice: string;
diff --git a/frontend/src/react/settings/configuration-page.tsx b/frontend/src/react/settings/configuration-page.tsx
index 9f08dba35..294383ede 100644
--- a/frontend/src/react/settings/configuration-page.tsx
+++ b/frontend/src/react/settings/configuration-page.tsx
@@ -31,7 +31,7 @@ export function ConfigurationPage({ receipt }: ConfigurationProps) {
);
}
const group: ConfigurationGroupProps = { data, receipt };
- const network = Boolean(data.peach_proxy || data.access);
+ const network = Boolean(data.peach_proxy || data.access || data.tunnel);
return (
<div className="configpage">
{data.startup ? <h2 className="configgroup">通用</h2> : null}
diff --git a/frontend/src/react/settings/network-settings.tsx b/frontend/src/react/settings/network-settings.tsx
index c11c8a158..62c448cfc 100644
--- a/frontend/src/react/settings/network-settings.tsx
+++ b/frontend/src/react/settings/network-settings.tsx
@@ -10,6 +10,7 @@ import { apiSend } from '../../api';
import type { ConfigurationGroupProps, PeachProxyState } from '../bundle';
import { Note } from '../components/note';
import { AccessSettings } from './access-settings';
+import { TunnelSettings } from './tunnel-settings';
import { ErrorText, Footer, Rows, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
@@ -20,6 +21,7 @@ export function NetworkSettings({ data, receipt }: ConfigurationGroupProps) {
<div className="flex flex-col gap-6">
{data.peach_proxy ? <PeachProxy initial={data.peach_proxy} receipt={receipt} /> : null}
{data.access ? <AccessSettings initial={data.access} receipt={receipt} /> : null}
+ {data.tunnel ? <TunnelSettings data={data} initial={data.tunnel} receipt={receipt} /> : null}
</div>
);
}
diff --git a/frontend/src/react/settings/tunnel-settings.tsx b/frontend/src/react/settings/tunnel-settings.tsx
new file mode 100644
index 000000000..a3abaead2
--- /dev/null
+++ b/frontend/src/react/settings/tunnel-settings.tsx
@@ -0,0 +1,56 @@
+/* Cloudflare Quick Tunnel:只显示本机托盘服务实际返回的随机入口。
+ * Quick Tunnel 没有稳定域名和独立身份层,服务端会在 `open` 模式下拒绝启动;
+ * 这里不保存 URL 或任何密码,刷新配置页重新读取服务状态。 */
+import { useState, type FormEvent } from 'react';
+
+import { Button } from '@/components/base/buttons/button';
+
+import { apiSend } from '../../api';
+import type { ConfigurationData, TunnelState } from '../bundle';
+import { Note } from '../components/note';
+import { ExternalLink, ErrorText, Footer, Help, Section, Stack } from './section';
+import { busyProps, useAction } from './use-action';
+
+export function TunnelSettings({ data, initial, receipt }: {
+ data: ConfigurationData;
+ initial: TunnelState;
+ receipt(message: string): void;
+}) {
+ const [state, setState] = useState(initial);
+ const [revision, setRevision] = useState(data.revision);
+ const action = useAction();
+ const active = state.state === 'starting' || state.state === 'running';
+
+ const submit = (event: FormEvent<HTMLFormElement>) => {
+ event.preventDefault();
+ void action.run('toggle', (signal) => apiSend<TunnelState & { revision: string }>(
+ '/api/configuration/tunnel',
+ { revision, enabled: !active }, 'POST', signal,
+ ), (next) => {
+ setState(next);
+ setRevision(next.revision);
+ receipt(next.enabled ? '临时远程链接已启动' : '临时远程链接已停止');
+ });
+ };
+
+ return (
+ <Section title="Cloudflare 临时链接" onSubmit={submit}>
+ <Stack>
+ <Help>只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。</Help>
+ {!state.available
+ ? <Note tone="warning" title="找不到 cloudflared">请安装官方 cloudflared,或在设置文件的 tunnel.binary 指定路径。</Note>
+ : null}
+ {state.state === 'running' && state.url
+ ? <Note tone="info" title="临时链接"><ExternalLink href={state.url}>{state.url}</ExternalLink></Note>
+ : null}
+ {state.state === 'starting' ? <Note tone="info" title="正在连接">正在等待 Cloudflare 返回入口地址。</Note> : null}
+ {state.error ? <ErrorText>{state.error}</ErrorText> : null}
+ </Stack>
+ <Footer status={state.enabled ? '服务重启时会按设置尝试恢复。' : '默认关闭,不会自动暴露本机服务。'}>
+ <Button type="submit" {...busyProps(action.busy === 'toggle')}>
+ {active ? '停止临时链接' : '启动临时链接'}
+ </Button>
+ </Footer>
+ </Section>
+ );
+}
diff --git a/scripts/build_windows.ps1 b/scripts/build_windows.ps1
index 022eaa9b5..8db227189 100644
--- a/scripts/build_windows.ps1
+++ b/scripts/build_windows.ps1
@@ -1,6 +1,7 @@
param(
[string]$OutputDirectory = (Join-Path $PSScriptRoot '..\dist\Peach'),
- [switch]$Standalone
+ [switch]$Standalone,
+ [string]$CloudflaredPath = ''
)
$ErrorActionPreference = 'Stop'
@@ -77,6 +78,29 @@ if ($Standalone) {
$BuildMode = @('--onedir', '--add-data', "$(Join-Path $PSScriptRoot 'standalone.txt');.")
$BuildDestination = Split-Path -Parent $OutputPath
}
+$CloudflaredSource = $null
+$CloudflaredManifest = $null
+$CloudflaredHash = $null
+if ($Standalone) {
+ $CloudflaredCandidates = @()
+ if ($CloudflaredPath) { $CloudflaredCandidates += $CloudflaredPath }
+ if ($env:PEACH_CLOUDFLARED_BUILD) { $CloudflaredCandidates += $env:PEACH_CLOUDFLARED_BUILD }
+ $CloudflaredCandidates += (Join-Path $ProjectRoot 'vendor\cloudflared\cloudflared.exe')
+ foreach ($Candidate in $CloudflaredCandidates) {
+ if ($Candidate -and (Test-Path -LiteralPath $Candidate -PathType Leaf)) {
+ $CloudflaredSource = (Resolve-Path -LiteralPath $Candidate).Path
+ break
+ }
+ }
+ if (-not $CloudflaredSource) {
+ throw 'Standalone build requires cloudflared.exe. Run scripts/fetch_cloudflared.ps1 or pass -CloudflaredPath.'
+ }
+ $CloudflaredManifest = Get-Content -LiteralPath (Join-Path $PSScriptRoot 'cloudflared-windows.json') -Raw -Encoding utf8 | ConvertFrom-Json
+ $CloudflaredHash = (Get-FileHash -LiteralPath $CloudflaredSource -Algorithm SHA256).Hash.ToLowerInvariant()
+ if ($CloudflaredHash -ne $CloudflaredManifest.sha256.ToLowerInvariant()) {
+ throw "cloudflared SHA-256 mismatch: expected $($CloudflaredManifest.sha256), got $CloudflaredHash"
+ }
+}
& $Python -m PyInstaller --noconfirm --clean @BuildMode --windowed --name Peach `
--distpath $BuildDestination --workpath $WorkPath --specpath $BuildPath `
--paths (Join-Path $ProjectRoot 'src') --python-option 'X utf8' `
@@ -94,6 +118,9 @@ if ($LASTEXITCODE -ne 0) { throw 'Peach build failed.' }
if ($Standalone) {
Copy-Item -LiteralPath (Join-Path $ProjectRoot 'docs/TESTING_DESKTOP.md') -Destination (Join-Path $OutputPath '开始使用.md')
Copy-Item -LiteralPath (Join-Path $ProjectRoot 'LICENSE') -Destination (Join-Path $OutputPath 'LICENSE.txt')
+ Copy-Item -LiteralPath $CloudflaredSource -Destination (Join-Path $OutputPath 'cloudflared.exe') -Force
+ $CloudflaredManifest | Add-Member -NotePropertyName packaged_sha256 -NotePropertyValue $CloudflaredHash -Force
+ $CloudflaredManifest | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $OutputPath 'cloudflared-manifest.json') -Encoding utf8
}
# 工作目录只服务这一次构建:`--clean` 已让下一次不复用它,留着只是几十 MB 的中间产物。
diff --git a/scripts/cloudflared-windows.json b/scripts/cloudflared-windows.json
new file mode 100644
index 000000000..3156a4f01
--- /dev/null
+++ b/scripts/cloudflared-windows.json
@@ -0,0 +1,8 @@
+{
+ "version": "2026.9.0",
+ "asset": "cloudflared-windows-amd64.exe",
+ "url": "https://github.com/cloudflare/cloudflared/releases/download/2026.9.0/cloudflared-windows-amd64.exe",
+ "sha256": "547057326266f0e1c7d50d102dbd22ff283d740c055bd61e94f10e2c606f89af",
+ "license": "Apache-2.0",
+ "license_url": "https://github.com/cloudflare/cloudflared/blob/2026.9.0/LICENSE"
+}
diff --git a/scripts/fetch_cloudflared.ps1 b/scripts/fetch_cloudflared.ps1
new file mode 100644
index 000000000..df91a4d0b
--- /dev/null
+++ b/scripts/fetch_cloudflared.ps1
@@ -0,0 +1,26 @@
+param(
+ [Parameter(Mandatory = $true)]
+ [string]$OutputPath
+)
+
+$ErrorActionPreference = 'Stop'
+$ManifestPath = Join-Path $PSScriptRoot 'cloudflared-windows.json'
+$Manifest = Get-Content -LiteralPath $ManifestPath -Raw -Encoding utf8 | ConvertFrom-Json
+$Destination = [IO.Path]::GetFullPath($OutputPath)
+$Parent = Split-Path -Parent $Destination
+New-Item -ItemType Directory -Path $Parent -Force | Out-Null
+$Temporary = Join-Path $Parent ('.cloudflared-' + [guid]::NewGuid().ToString('N') + '.tmp')
+$Actual = $null
+try {
+ Invoke-WebRequest -Uri $Manifest.url -OutFile $Temporary -UseBasicParsing
+ $Actual = (Get-FileHash -LiteralPath $Temporary -Algorithm SHA256).Hash.ToLowerInvariant()
+ if ($Actual -ne $Manifest.sha256.ToLowerInvariant()) {
+ throw "cloudflared SHA-256 mismatch: expected $($Manifest.sha256), got $Actual"
+ }
+ Move-Item -LiteralPath $Temporary -Destination $Destination -Force
+} finally {
+ if (Test-Path -LiteralPath $Temporary) {
+ Remove-Item -LiteralPath $Temporary -Force -ErrorAction SilentlyContinue
+ }
+}
+[pscustomobject]@{ Path = $Destination; Version = $Manifest.version; SHA256 = $Actual }
diff --git a/scripts/smoke_desktop.py b/scripts/smoke_desktop.py
index 088bd4677..3bca8b53c 100644
--- a/scripts/smoke_desktop.py
+++ b/scripts/smoke_desktop.py
@@ -36,6 +36,13 @@ def lan_base(port: int) -> str:
routed.close()
+def assert_standalone_tunnel(configuration: dict) -> None:
+ tunnel = configuration['tunnel']
+ assert tunnel['enabled'] is False
+ assert tunnel['state'] == 'stopped'
+ assert tunnel['available'] is True
+
+
def main() -> int:
parser = argparse.ArgumentParser()
parser.add_argument("executable", type=Path)
@@ -94,6 +101,7 @@ def main() -> int:
with opener.open(base + "/api/configuration", timeout=5) as response:
configuration = json.load(response)
assert configuration['media_sources'][0]['location'] == '115'
+ assert_standalone_tunnel(configuration)
second = root / 'pikpak'
second.mkdir()
sources = configuration['media_sources'] + [{'location': 'pikpak', 'path': str(second)}]
@@ -109,7 +117,7 @@ def main() -> int:
assert (data / "config.previous.toml").is_file()
assert (data / "state" / "configuration-reload.request").is_file()
print(json.dumps({"ok": True, "version": health.get("version"),
- "checks": ["oobe", "migrations", "lan-bind", "mdns", "password-login", "pages", "island", "items", "clouddrive-configuration"]}))
+ "checks": ["oobe", "migrations", "lan-bind", "mdns", "password-login", "pages", "island", "items", "clouddrive-configuration", "cloudflared-sidecar"]}))
finally:
process.terminate()
process.wait(timeout=15)
diff --git a/scripts/test_runner.py b/scripts/test_runner.py
index 0c14d901b..5adfac9f3 100644
--- a/scripts/test_runner.py
+++ b/scripts/test_runner.py
@@ -99,7 +99,8 @@ SCOPES: dict[str, tuple[str, ...]] = {
"test_repo_hygiene.py",
"test_review_csv.py", "test_jav_code_domain.py",
"test_subprocess_encoding.py", "test_module_layering.py",
- "test_copy_final_state.py", "test_demo_dataset.py"),
+ "test_copy_final_state.py", "test_demo_dataset.py",
+ "test_cloudflared_packaging.py", "test_tunnel.py"),
# 前端 island 层(ADR-0022)。产物与源码的断言不需要 Node;vitest 那部分在没有
# npm 时自己跳过,所以这个域在任何机器上都能跑,`full` 也就自动包含它。
# `test_web_perf.py` 两个域都登记:压缩与 ETag 是 API 交付(catalog),
@@ -121,7 +122,8 @@ SCOPES: dict[str, tuple[str, ...]] = {
"test_folder_picker.py", "test_fsutil.py", "test_runtime_consistency.py",
"test_subprocess_encoding.py", "test_windows_update.py", "test_buildinfo.py"),
"packaging": ("test_dependency_policy.py", "test_buildinfo.py", "test_onboarding.py",
- "test_cli.py", "test_versioning.py", "test_frontend_build.py"),
+ "test_cli.py", "test_versioning.py", "test_frontend_build.py",
+ "test_cloudflared_packaging.py"),
}
SCOPE_TEST_IDS: dict[str, tuple[str, ...]] = {
diff --git a/src/peach/api.py b/src/peach/api.py
index 31d809bbb..16a504b1f 100644
--- a/src/peach/api.py
+++ b/src/peach/api.py
@@ -31,7 +31,7 @@ from fastapi.staticfiles import StaticFiles
from starlette.exceptions import HTTPException as StarletteHTTPException
from starlette.middleware.gzip import DEFAULT_EXCLUDED_CONTENT_TYPES, GZipMiddleware
-from . import __version__, web_contract, web_follow
+from . import __version__, settings_file, tunnel, web_contract, web_follow
from . import routes_api, routes_auth, routes_configuration, routes_media, routes_pages
from .buildinfo import frozen_build
from .config import PeachSettings
@@ -98,13 +98,45 @@ def _offline_response(exc: MediaOffline) -> JSONResponse:
return response
+def _resolve_tunnel_manager(
+ settings: PeachSettings, manager: tunnel.TunnelManager | None,
+) -> tunnel.TunnelManager:
+ return manager if manager is not None else tunnel.TunnelManager(
+ settings.tunnel_state_root, settings.tunnel_log_root,
+ )
+
+
+def _tunnel_plan(settings: PeachSettings) -> tunnel.TunnelPlan:
+ config = settings_file.load_config()
+ return tunnel.plan_for_config(
+ config,
+ access_path=settings.access_path,
+ token=settings.token,
+ standalone_mode=settings.tunnel_standalone,
+ lan_address=settings.tunnel_lan_address,
+ https_port=settings.tunnel_origin_port,
+ tls_enabled=settings.tls_enabled,
+ )
+
+
+def _start_tunnel(settings: PeachSettings, manager: tunnel.TunnelManager) -> None:
+ if not (settings.tunnel_enabled and settings.configured):
+ return
+ try:
+ manager.start(_tunnel_plan(settings))
+ except tunnel.TunnelError:
+ LOGGER.warning("Cloudflare Tunnel 未能启动", exc_info=True)
+
+
def create_app(
settings: PeachSettings | None = None,
sync: LedgerSync | None = None,
review_mirror: ReviewMirror | None = None,
+ tunnel_manager: tunnel.TunnelManager | None = None,
) -> FastAPI:
"""`sync` 由 CLI 注入。测试直接建 app 时不传,复制与只读闸门整体不参与。"""
settings = settings or PeachSettings()
+ tunnel_manager = _resolve_tunnel_manager(settings, tunnel_manager)
database = LedgerDatabase(settings.db_path)
contract = web_contract.WebContract(
settings.db_path, settings.snapshot_root,
@@ -206,6 +238,7 @@ def create_app(
if recovered:
logging.getLogger(__name__).info(
"task center recovered %s interrupted run(s)", len(recovered))
+ _start_tunnel(settings, tunnel_manager)
follow_scheduler.start()
automatic_updates.start()
warmup = asyncio.create_task(warm_startup_entries())
@@ -226,6 +259,7 @@ def create_app(
contract.stop_background_jobs()
if mdns is not None:
await asyncio.to_thread(mdns.stop)
+ tunnel_manager.stop()
http_transport.close()
hls_plan_executor.shutdown(wait=False, cancel_futures=True)
@@ -259,6 +293,7 @@ def create_app(
app.state.automatic_updates = automatic_updates
app.state.stream_sessions = StreamSessionRegistry()
app.state.sync = sync
+ app.state.tunnel = tunnel_manager
# 媒体三异常的统一出口,路由里不再手抄同一组 try/except。
# 404/503/404 是逐个异常的状态码契约,不许并成一种。
@@ -346,6 +381,7 @@ def create_app(
# 不探测共享目录或迁移数据库;健康检查必须无副作用。
ffmpeg = resolver.ffmpeg()
read_only = bool(sync is not None and sync.read_only)
+ tunnel_state = tunnel_manager.snapshot()
return {"ok": True, "service": "peach-api", "version": __version__,
# 打包这份代码的提交。源码运行时是 null:跑的就是检出本身。
"build_commit": BUILD.commit if BUILD else None,
@@ -365,7 +401,10 @@ def create_app(
"ledger_read_only": read_only,
"ledger_read_only_message": sync.read_only_message if read_only else None,
"ledger_writer_origin": settings.review_writer_origin if read_only else None,
- "scheme": "https" if settings.tls_enabled else "http"}
+ "scheme": "https" if settings.tls_enabled else "http",
+ # 健康检查可能被公网探针访问,不能在这里回传随机 Tunnel URL。
+ "tunnel": {"enabled": settings.tunnel_enabled, "state": tunnel_state.state},
+ }
# 顺序即契约:catch-all 最后。`routes_media` 里有 `/api/stream-plan` 与
# `/api/stream-cancel` 两条具名 API,所以它也要排在 `routes_api` 之前。
diff --git a/src/peach/cli.py b/src/peach/cli.py
index 2bde9a01f..5df3147cb 100644
--- a/src/peach/cli.py
+++ b/src/peach/cli.py
@@ -3,10 +3,11 @@ from __future__ import annotations
import argparse
import os
import sys
+import time
from datetime import datetime
from pathlib import Path
-from . import auth, onboarding, scan, settings_file
+from . import auth, distribution, onboarding, scan, settings_file
from .api import create_app
from .config import (
CONFIGURED,
@@ -19,6 +20,8 @@ from .config import (
SETTINGS_ERROR,
SHARED_DATABASE_PATH,
STATE_DIR,
+ CLOUDFLARED_BINARY,
+ TUNNEL_ENABLED,
PeachSettings,
)
from .migrations import plan, upgrade
@@ -27,6 +30,7 @@ from .scripting import open_readonly
from .sync import LedgerSync, device_id
from .sync import plan as sync_plan
from .sync import writer_device
+from . import tunnel
DEFAULT_DB = DATABASE_PATH
@@ -82,6 +86,10 @@ def _serve(args: argparse.Namespace) -> int:
# 也不要口令。口令刻意置空而不是读文件——表单一提交就会生成一份口令,那之后要是
# 有人重启这条引导服务,读到新口令的它会把还没看到口令的用户关在门外。
# 安全边界由绑定地址给:这条服务只监听回环(`build_setup_service_specs`)。
+ tunnel_lan_address = None
+ if not distribution.standalone() and not _is_loopback(args.host):
+ from .mdns import lan_ipv4
+ tunnel_lan_address = args.mdns_address or lan_ipv4()
settings = PeachSettings(
db_path=args.db,
token="" if args.setup else _serve_token(args),
@@ -93,6 +101,13 @@ def _serve(args: argparse.Namespace) -> int:
mdns_port=args.port,
mdns_address=args.mdns_address,
tls_enabled=tls_enabled,
+ tunnel_enabled=TUNNEL_ENABLED,
+ tunnel_binary=CLOUDFLARED_BINARY,
+ tunnel_standalone=distribution.standalone(),
+ tunnel_lan_address=tunnel_lan_address,
+ tunnel_origin_port=(args.port if distribution.standalone() or tls_enabled else None),
+ tunnel_state_root=settings_file.active().directory("state"),
+ tunnel_log_root=settings_file.active().directory("logs"),
)
sync = _build_sync(args, settings)
uvicorn.run(
@@ -539,6 +554,55 @@ def _token(args: argparse.Namespace) -> int:
return 0
+def _tunnel(args: argparse.Namespace) -> int:
+ """运行一个前台 Quick Tunnel;托盘/配置页使用同一模块的生命周期管理。"""
+ _require_readable_settings()
+ config = settings_file.load_config()
+ if not config.configured:
+ raise SystemExit("这台机器还没初始化过,先跑 `peach init`。")
+ state_dir = config.directory("state")
+ log_dir = config.directory("logs")
+ if args.action == "status":
+ snapshot = tunnel.saved_snapshot(state_dir)
+ print(f"状态:{snapshot.state}")
+ if snapshot.url:
+ print(f"地址:{snapshot.url}")
+ if snapshot.error:
+ print(f"原因:{snapshot.error}")
+ return 0 if snapshot.state not in {"error"} else 1
+
+ token = auth.resolve_token("", config.directory("secrets"))
+ lan_address = args.lan_address
+ if not distribution.standalone() and not lan_address:
+ from .mdns import lan_ipv4
+ lan_address = lan_ipv4()
+ origin_port = getattr(args, "https_port", None)
+ if origin_port is None:
+ origin_port = (
+ config.server.port if distribution.standalone()
+ else (8443 if sys.platform == "darwin" else 443)
+ )
+ plan = tunnel.plan_for_config(
+ config,
+ access_path=config.directory("secrets") / "access.json",
+ token=token,
+ standalone_mode=distribution.standalone(),
+ lan_address=lan_address,
+ https_port=origin_port,
+ )
+ manager = tunnel.TunnelManager(state_dir, log_dir, wait_timeout=args.timeout)
+ snapshot = manager.start(plan)
+ print(f"临时链接:{snapshot.url}", flush=True)
+ try:
+ while manager.snapshot().state == "running":
+ time.sleep(1)
+ except KeyboardInterrupt:
+ print("正在停止临时链接…", flush=True)
+ finally:
+ manager.stop()
+ return 0
+
+
#: 留空就会改变行为的坐标。进程猜不出来,只能让人在命令行给。
_BLANK_HINTS = (
("server.review_writer_origin", "--writer-origin https://<writer 的地址>",
@@ -647,6 +711,17 @@ def build_parser() -> argparse.ArgumentParser:
help="换一个新口令,已签发的 cookie 立即失效")
token.set_defaults(handler=_token)
+ tunnel_parser = commands.add_parser(
+ "tunnel", help="运行或查看 Cloudflare Quick Tunnel(默认要求已设置访问密码)",
+ )
+ tunnel_parser.add_argument("action", choices=("start", "status"), nargs="?", default="start")
+ tunnel_parser.add_argument("--lan-address", help=argparse.SUPPRESS)
+ tunnel_parser.add_argument(
+ "--https-port", type=int, help="源码服务的实际 HTTPS 端口(macOS 默认 8443,其他平台默认 443)",
+ )
+ tunnel_parser.add_argument("--timeout", type=float, default=30.0)
+ tunnel_parser.set_defaults(handler=_tunnel)
+
migrate = commands.add_parser("migrate", help="inspect or apply SQLite migrations")
migrate.add_argument("action", choices=("status", "upgrade"), nargs="?", default="status")
migrate.add_argument("--db", type=Path, default=DEFAULT_DB)
diff --git a/src/peach/config.py b/src/peach/config.py
index c562e2342..e4a4faa91 100644
--- a/src/peach/config.py
+++ b/src/peach/config.py
@@ -70,6 +70,8 @@ MDNS_NAME: str = _SETTINGS.server.mdns_name
MDNS_HOSTNAME: str = f"{MDNS_NAME}.local"
SERVE_HOST: str = _SETTINGS.server.host
SERVE_PORT: int = _SETTINGS.server.port
+TUNNEL_ENABLED: bool = _SETTINGS.tunnel.enabled
+CLOUDFLARED_BINARY: str = _SETTINGS.tunnel.binary
@dataclass(frozen=True)
@@ -85,6 +87,15 @@ class PeachSettings:
mdns_port: int = 80
mdns_address: str | None = None
tls_enabled: bool = False
+ #: Quick Tunnel 由应用进程管理;默认关闭,打开前由 tunnel 模块检查访问密码。
+ tunnel_enabled: bool = TUNNEL_ENABLED
+ tunnel_binary: str = CLOUDFLARED_BINARY
+ tunnel_standalone: bool = False
+ tunnel_lan_address: str | None = None
+ #: Tunnel origin 的实际端口;None 表示独立包取设置文件端口,源码取 443。
+ tunnel_origin_port: int | None = None
+ tunnel_state_root: Path = STATE_DIR
+ tunnel_log_root: Path = LOG_DIR
#: 这台机器跑过 `peach init` 了没有。`/healthz` 与首页据此决定是否弹首次运行提示。
configured: bool = CONFIGURED
# reader 只从 writer 的严格 CA HTTPS 镜像复核 JSON;不复制候选 CSV,更不放宽写入闸门。
diff --git a/src/peach/routes_auth.py b/src/peach/routes_auth.py
index c4febaa18..e568dcb19 100644
--- a/src/peach/routes_auth.py
+++ b/src/peach/routes_auth.py
@@ -14,6 +14,7 @@ import html
from collections import OrderedDict
import threading
import time
+from urllib.parse import urlsplit
from . import access
from .web_entry import board_entry_style
from starlette.concurrency import run_in_threadpool
@@ -83,11 +84,51 @@ class AssetLoginRequired(Exception):
"""页面资产(app.css/app.js)未授权:401 形态是 PlainText 提示。"""
+def _origin_key(value: str) -> tuple[str, str, int | None] | None:
+ """把 Origin 头和随机 Quick Tunnel URL 归一到可比较的三元组。"""
+ try:
+ parsed = urlsplit(value.strip().rstrip("/"))
+ except ValueError:
+ return None
+ if (parsed.scheme not in {"http", "https"} or not parsed.hostname
+ or parsed.path not in {"", "/"} or parsed.query or parsed.fragment):
+ return None
+ try:
+ port = parsed.port
+ except ValueError:
+ return None
+ return parsed.scheme.lower(), parsed.hostname.rstrip(".").lower(), port
+
+
+def _tunnel_origin(request: Request) -> tuple[str, str, int | None] | None:
+ """返回当前进程实际拿到的 Quick Tunnel origin,而不是信任请求头。"""
+ manager = getattr(request.app.state, "tunnel", None)
+ if manager is None:
+ return None
+ try:
+ url = manager.snapshot().url
+ except (AttributeError, OSError, ValueError):
+ return None
+ return _origin_key(url) if url else None
+
+
def same_origin(request: Request) -> None:
- """浏览器发来的写请求必须来自 Peach 自己的页面:带了别处的 Origin 就拒。"""
+ """浏览器写请求只接受 Peach 页面或当前 Quick Tunnel 页面发来的 Origin。
+
+ 独立包的 origin 是回环 HTTP,cloudflared 转发时 Host 仍可能是本机地址,
+ 所以不能单纯把 ``Origin`` 和 ASGI 的 ``base_url`` 比较。随机入口由当前
+ TunnelManager 产生并保存在进程内,外部 Origin 必须精确匹配这一份,不能由
+ 调用方通过 ``X-Forwarded-*`` 自己声明一个可信地址。
+ """
origin = request.headers.get("origin")
- if request.headers.get("sec-fetch-site") == "cross-site" or (origin and origin.rstrip("/") != str(request.base_url).rstrip("/")):
+ if request.headers.get("sec-fetch-site") == "cross-site":
raise HTTPException(403, "请从 Peach 配置页提交")
+ if origin:
+ supplied = _origin_key(origin)
+ local = _origin_key(str(request.base_url))
+ tunnel_origin = _tunnel_origin(request)
+ if supplied is None or supplied not in {local, tunnel_origin}:
+ raise HTTPException(403, "请从 Peach 配置页提交")
def require_auth(request: Request) -> dict[str, str]:
diff --git a/src/peach/routes_configuration.py b/src/peach/routes_configuration.py
index 2b05b5cd6..a4e45d6b1 100644
--- a/src/peach/routes_configuration.py
+++ b/src/peach/routes_configuration.py
@@ -19,7 +19,7 @@ from fastapi import APIRouter, Body, Depends, HTTPException, Request
from fastapi.responses import JSONResponse
from filelock import FileLock, Timeout
-from . import access, distribution, folder_picker, onboarding, settings_file, media_configuration
+from . import access, distribution, folder_picker, onboarding, settings_file, media_configuration, tunnel
from .routes_auth import require_auth, same_origin
from .web_entry import runtime_fact_entries
from . import release_updates, standalone_update, peach_proxy, desktop_startup, desktop_uninstall
@@ -121,6 +121,16 @@ def read_configuration(request: Request, _args=Depends(require_auth)):
if not config.present:
raise HTTPException(409, "请先完成首次设置")
result = snapshot(config)
+ state = request.app.state.tunnel.snapshot()
+ result["tunnel"] = {
+ "enabled": config.tunnel.enabled,
+ "state": state.state,
+ "url": state.url,
+ "error": state.error,
+ "available": tunnel.resolve_binary(
+ config.tunnel.binary, base_dir=config.data_root,
+ ) is not None,
+ }
result["automatic_updates"] = request.app.state.automatic_updates.snapshot()
if result["automatic_updates"].get("result"):
result["updates"] = result["automatic_updates"]["result"]
@@ -313,6 +323,68 @@ def save_access(request: Request, body: dict[str, Any] = Body(default_factory=di
return response
[email protected]("/api/configuration/tunnel")
+def save_tunnel(request: Request, body: dict[str, Any] = Body(default_factory=dict),
+ _args=Depends(require_auth)):
+ """启动或停止本机 Quick Tunnel;入口只对本机配置页开放。"""
+ local_only(request)
+ same_origin(request)
+ config = settings_file.load_config()
+ if not config.present:
+ raise HTTPException(409, "请先完成首次设置")
+ if body.get("revision") != revision(config):
+ raise HTTPException(409, "设置已变更,请刷新后再保存")
+ enabled = body.get("enabled")
+ if not isinstance(enabled, bool):
+ raise HTTPException(400, "enabled 必须是 true 或 false")
+ manager = request.app.state.tunnel
+ state = tunnel.TunnelSnapshot(state="stopped")
+ started_here = False
+ if enabled:
+ settings = request.app.state.settings
+ try:
+ existing = manager.snapshot()
+ started_here = existing.state not in {"starting", "running"}
+ plan = tunnel.plan_for_config(
+ config,
+ access_path=settings.access_path,
+ token=settings.token,
+ standalone_mode=getattr(settings, "tunnel_standalone", distribution.standalone()),
+ lan_address=getattr(settings, "tunnel_lan_address", None),
+ https_port=getattr(settings, "tunnel_origin_port", None),
+ tls_enabled=getattr(settings, "tls_enabled", True),
+ )
+ state = manager.start(plan)
+ except tunnel.TunnelError as exc:
+ raise HTTPException(409, str(exc)) from exc
+ updated = replace(config, tunnel=replace(config.tunnel, enabled=enabled))
+ try:
+ with FileLock(str(config.path.with_suffix(".lock")), timeout=0):
+ current = settings_file.load_config()
+ if revision(current) != revision(config):
+ if started_here:
+ manager.stop()
+ raise HTTPException(409, "设置已变更,请刷新后再保存")
+ settings_file.write(updated, force=True)
+ except Timeout:
+ if started_here:
+ manager.stop()
+ raise HTTPException(409, "设置正在保存,请稍后重试") from None
+ except OSError as exc:
+ if started_here:
+ manager.stop()
+ raise HTTPException(500, f"设置写入失败:{exc}") from exc
+ if not enabled:
+ state = manager.stop()
+ return {
+ "enabled": enabled,
+ "state": state.state,
+ "url": state.url,
+ "error": state.error,
+ "revision": revision(updated),
+ }
+
+
@router.post("/api/pick-folder")
def pick_folder(request: Request, body: dict[str, Any] = Body(default_factory=dict),
_args=Depends(require_auth)):
diff --git a/src/peach/settings_file.py b/src/peach/settings_file.py
index 8248f1d3b..f6be3a90a 100644
--- a/src/peach/settings_file.py
+++ b/src/peach/settings_file.py
@@ -155,6 +155,19 @@ class ReplicationSettings:
smb_user: str = ""
+@dataclass(frozen=True)
+class TunnelSettings:
+ """Cloudflare Quick Tunnel 的本机开关。
+
+ Quick Tunnel 没有稳定域名,也没有 Cloudflare Access 身份层,所以默认关闭,
+ 只有在 Peach 自己已经启用访问密码时才允许打开。`binary` 只记录本机可执行文件
+ 的显式位置,不把二进制或下载地址写进设置文件。
+ """
+
+ enabled: bool = False
+ binary: str = ""
+
+
@dataclass(frozen=True)
class PeachConfig:
"""一次合并的结果。`config.py` 把它投影成模块常量。"""
@@ -176,6 +189,7 @@ class PeachConfig:
default_factory=lambda: dict(DEFAULT_LOCATION_ROOTS))
server: ServerSettings = ServerSettings()
replication: ReplicationSettings = ReplicationSettings()
+ tunnel: TunnelSettings = TunnelSettings()
@property
def configured(self) -> bool:
@@ -364,12 +378,21 @@ def _merge(
replication_table, "smb_user", defaults.smb_user, path, "replication."),
)
+ tunnel_table = _table(document, "tunnel", path)
+ tunnel_defaults = TunnelSettings()
+ tunnel = TunnelSettings(
+ enabled=_boolean(
+ tunnel_table, "enabled", tunnel_defaults.enabled, path, "tunnel."),
+ binary=_string(
+ tunnel_table, "binary", tunnel_defaults.binary, path, "tunnel."),
+ )
+
config = PeachConfig(
data_root=data_root, path=path, present=present, data_root_found=found,
directories=directories, mounts=mounts, locations=locations,
library_names=_string_map(_table(media, "libraries", path), path, "media.libraries."),
library_icons=_string_map(_table(media, "library_icons", path), path, "media.library_icons."),
- server=server, replication=replication,
+ server=server, replication=replication, tunnel=tunnel,
)
return _apply_environment(config, environ)
@@ -564,6 +587,16 @@ def render(config: PeachConfig) -> str:
"smb_share": config.replication.smb_share,
"smb_user": config.replication.smb_user,
})
+ lines += [
+ "",
+ "[tunnel]",
+ "# Cloudflare Quick Tunnel 默认关闭;打开前必须先设置访问密码。",
+ "# binary 留空时按内置包、PEACH_CLOUDFLARED 和 PATH 的顺序寻找 cloudflared。",
+ ]
+ lines += _render_pairs({
+ "enabled": config.tunnel.enabled,
+ "binary": config.tunnel.binary,
+ })
return "\n".join(lines) + "\n"
diff --git a/src/peach/tunnel.py b/src/peach/tunnel.py
new file mode 100644
index 000000000..05c06637f
--- /dev/null
+++ b/src/peach/tunnel.py
@@ -0,0 +1,587 @@
+"""Cloudflare Quick Tunnel 的受控进程边界。
+
+Peach 不实现 Cloudflare 协议,只负责三件事:为两种部署选正确的本机 origin,
+把访问密码作为启动前置条件,以及在自己的服务生命周期内管理 ``cloudflared``。
+Quick Tunnel 的随机地址只写进数据根的状态文件,不进入设置、账本或日志文档。
+"""
+from __future__ import annotations
+
+import json
+import ipaddress
+import os
+import re
+import shutil
+import subprocess
+import sys
+import tempfile
+import threading
+import time
+from dataclasses import dataclass
+from datetime import datetime, timezone
+from pathlib import Path
+from typing import Callable, TextIO
+
+from . import access
+
+
+STATE_FILENAME = "cloudflare-tunnel.json"
+LOG_FILENAME = "cloudflare-tunnel.log"
+PID_FILENAME = "cloudflared.pid"
+QUICK_URL_RE = re.compile(
+ r"https://[a-z0-9][a-z0-9-]*\.trycloudflare\.com(?:/[^\s]*)?",
+ re.IGNORECASE,
+)
+
+
+class TunnelError(RuntimeError):
+ """Tunnel 不能安全启动或已经异常退出。"""
+
+
+@dataclass(frozen=True)
+class TunnelOrigin:
+ url: str
+ origin_server_name: str = ""
+ ca_path: Path | None = None
+
+
+@dataclass(frozen=True)
+class TunnelPlan:
+ binary: Path
+ origin: TunnelOrigin
+ command: tuple[str, ...]
+
+
+@dataclass(frozen=True)
+class TunnelSnapshot:
+ state: str = "stopped"
+ url: str = ""
+ error: str = ""
+ pid: int | None = None
+ started_at: str = ""
+
+
+def state_path(state_dir: Path) -> Path:
+ return Path(state_dir) / STATE_FILENAME
+
+
+def log_path(log_dir: Path) -> Path:
+ return Path(log_dir) / LOG_FILENAME
+
+
+def extract_quick_url(line: str) -> str | None:
+ """从 cloudflared 的普通/警告输出中提取随机入口。"""
+ match = QUICK_URL_RE.search(line or "")
+ return match.group(0).rstrip(".,);]") if match else None
+
+
+def resolve_binary(
+ configured: str = "",
+ *,
+ base_dir: Path | None = None,
+ executable: Path | None = None,
+ environ: dict[str, str] | None = None,
+ which: Callable[[str], str | None] = shutil.which,
+) -> Path | None:
+ """按显式配置、打包旁路、环境变量和 PATH 的顺序找 cloudflared。"""
+ environ = os.environ if environ is None else environ
+ candidates: list[Path] = []
+
+ explicit = (environ.get("PEACH_CLOUDFLARED") or configured).strip()
+ if explicit:
+ candidates.append(Path(explicit).expanduser())
+
+ package_dir = Path(executable).resolve().parent if executable else None
+ if package_dir is None and getattr(sys, "frozen", False):
+ package_dir = Path(sys.executable).resolve().parent
+ if package_dir is not None:
+ candidates.extend((
+ package_dir / "cloudflared.exe",
+ package_dir / "cloudflared",
+ package_dir / "_internal" / "cloudflared.exe",
+ package_dir / "_internal" / "cloudflared",
+ ))
+ if base_dir is not None:
+ candidates.extend((Path(base_dir) / "cloudflared.exe", Path(base_dir) / "cloudflared"))
+
+ for candidate in candidates:
+ try:
+ if candidate.is_file():
+ return candidate.resolve()
+ except OSError:
+ continue
+
+ for name in ("cloudflared.exe", "cloudflared"):
+ found = which(name)
+ if found:
+ return Path(found).resolve()
+ return None
+
+
+def origin_for_config(
+ config, *, standalone_mode: bool, lan_address: str | None = None,
+ https_port: int | None = None,
+) -> TunnelOrigin:
+ """为源码托盘和独立包分别构造 origin。
+
+ 源码服务的 80 端口只是跳转口,不能拿来做 Tunnel origin;独立包则没有本机 TLS
+ 入口,使用回环 HTTP。Cloudflare edge 到浏览器仍然是 HTTPS。未显式传端口时,
+ 独立包取设置文件里的服务端口,源码取标准 HTTPS 端口。
+ """
+ if standalone_mode:
+ port = config.server.port if https_port is None else https_port
+ if type(port) is not int or not 1 <= port <= 65535:
+ raise TunnelError(f"独立包 Tunnel 的 HTTP 端口无效:{port}")
+ return TunnelOrigin(f"http://127.0.0.1:{port}")
+ if https_port is None:
+ https_port = 443
+ address = (lan_address or "").strip()
+ if not address:
+ raise TunnelError("无法确定源码服务的局域网地址")
+ try:
+ parsed_address = ipaddress.ip_address(address)
+ except ValueError as exc:
+ raise TunnelError(f"源码 Tunnel 的局域网地址不是 IP:{address}") from exc
+ hostname = config.server.mdns_name.strip().rstrip(".")
+ if not hostname:
+ raise TunnelError("源码服务没有配置 mDNS 名称")
+ origin_name = hostname if hostname.endswith(".local") else f"{hostname}.local"
+ ca = config.directory("secrets") / "tls" / "peach-local-ca.crt"
+ if not ca.is_file():
+ raise TunnelError(f"源码 Tunnel 需要项目 CA:{ca}")
+ if type(https_port) is not int or not 1 <= https_port <= 65535:
+ raise TunnelError(f"源码 Tunnel 的 HTTPS 端口无效:{https_port}")
+ host = f"[{address}]" if parsed_address.version == 6 else address
+ return TunnelOrigin(
+ f"https://{host}:{https_port}", origin_server_name=origin_name, ca_path=ca,
+ )
+
+
+def _access_error(policy: dict, token: str) -> str | None:
+ if policy.get("mode") == "locked":
+ return "访问设置损坏,不能启动公网 Tunnel"
+ if policy.get("mode") == "open":
+ return "启动公网 Tunnel 前必须先设置访问密码"
+ if policy.get("mode") not in {"password", "legacy"}:
+ return "访问设置不是受支持的密码模式"
+ if not token:
+ return "缺少 Peach 内部访问令牌,不能启动公网 Tunnel"
+ return None
+
+
+def validate_access(access_path: Path | None, token: str) -> None:
+ """公网入口只接受有第二道登录闸门的部署。"""
+ policy = access.load(access_path)
+ message = _access_error(policy, token)
+ if message:
+ raise TunnelError(message)
+
+
+def build_command(binary: Path, origin: TunnelOrigin) -> tuple[str, ...]:
+ """构造不带凭据的 Quick Tunnel 命令。"""
+ command = [
+ str(binary), "tunnel", "--url", origin.url,
+ "--no-autoupdate", "--loglevel", "info", "--metrics", "127.0.0.1:0",
+ ]
+ if origin.origin_server_name:
+ command.extend(("--origin-server-name", origin.origin_server_name))
+ if origin.ca_path is not None:
+ command.extend(("--origin-ca-pool", str(origin.ca_path)))
+ return tuple(command)
+
+
+def plan_for_config(
+ config,
+ *,
+ access_path: Path | None,
+ token: str,
+ standalone_mode: bool,
+ lan_address: str | None = None,
+ https_port: int | None = None,
+ tls_enabled: bool = True,
+ executable: Path | None = None,
+ environ: dict[str, str] | None = None,
+ which: Callable[[str], str | None] = shutil.which,
+) -> TunnelPlan:
+ """校验安全前置并返回可审阅的启动计划。"""
+ validate_access(access_path, token)
+ if not standalone_mode and not tls_enabled:
+ raise TunnelError("源码 Tunnel 需要正在运行的 HTTPS 服务")
+ tunnel_settings = getattr(config, "tunnel", None)
+ binary = resolve_binary(
+ getattr(tunnel_settings, "binary", ""),
+ base_dir=Path(getattr(config, "data_root", ".")),
+ executable=executable,
+ environ=environ,
+ which=which,
+ )
+ if binary is None:
+ raise TunnelError(
+ "找不到 cloudflared;请安装官方 cloudflared,或设置 PEACH_CLOUDFLARED"
+ )
+ origin = origin_for_config(
+ config, standalone_mode=standalone_mode, lan_address=lan_address,
+ https_port=https_port,
+ )
+ return TunnelPlan(binary=binary, origin=origin, command=build_command(binary, origin))
+
+
+def _read_state(path: Path) -> TunnelSnapshot:
+ try:
+ data = json.loads(path.read_text(encoding="utf-8"))
+ except FileNotFoundError:
+ return TunnelSnapshot()
+ except (OSError, ValueError, TypeError):
+ return TunnelSnapshot(error="Tunnel 状态文件不可读")
+ if not isinstance(data, dict):
+ return TunnelSnapshot(error="Tunnel 状态文件格式错误")
+ return TunnelSnapshot(
+ state=str(data.get("state") or "stopped"),
+ url=str(data.get("url") or ""),
+ error=str(data.get("error") or ""),
+ pid=int(data["pid"]) if isinstance(data.get("pid"), int) else None,
+ started_at=str(data.get("started_at") or ""),
+ )
+
+
+def saved_snapshot(state_dir: Path) -> TunnelSnapshot:
+ """读取状态文件;不把旧的 running 记录误报成当前进程仍在运行。"""
+ saved = _read_state(state_path(state_dir))
+ if saved.state in {"running", "starting"}:
+ return TunnelSnapshot(state="stopped", error="上一次 Tunnel 已随服务停止")
+ return saved
+
+
+def _write_state(path: Path, snapshot: TunnelSnapshot) -> None:
+ path.parent.mkdir(parents=True, exist_ok=True)
+ payload = {
+ "state": snapshot.state,
+ "url": snapshot.url,
+ "error": snapshot.error,
+ "pid": snapshot.pid,
+ "started_at": snapshot.started_at,
+ }
+ descriptor, temporary = tempfile.mkstemp(
+ dir=path.parent, prefix=".cloudflare-tunnel-", suffix=".json",
+ )
+ try:
+ with os.fdopen(descriptor, "w", encoding="utf-8") as stream:
+ json.dump(payload, stream, ensure_ascii=True)
+ stream.write("\n")
+ stream.flush()
+ os.fsync(stream.fileno())
+ os.replace(temporary, path)
+ finally:
+ Path(temporary).unlink(missing_ok=True)
+
+
+class TunnelManager:
+ """一个 Peach 服务进程拥有的一条 cloudflared 子进程。"""
+
+ def __init__(
+ self,
+ state_dir: Path,
+ log_dir: Path,
+ *,
+ popen: Callable[..., subprocess.Popen] = subprocess.Popen,
+ wait_timeout: float = 30.0,
+ clock: Callable[[], float] = time.monotonic,
+ ) -> None:
+ self.state_dir = Path(state_dir)
+ self.log_dir = Path(log_dir)
+ self._popen = popen
+ self._wait_timeout = wait_timeout
+ self._clock = clock
+ self._lock = threading.RLock()
+ # Only one caller may perform the spawn-and-ready handshake at a time.
+ # `snapshot()` and `stop()` remain available while Cloudflare is connecting.
+ self._start_lock = threading.Lock()
+ self._process: subprocess.Popen | None = None
+ self._reader: threading.Thread | None = None
+ self._url = ""
+ self._error = ""
+ self._started_at = ""
+ self._ready = threading.Event()
+ # A stopped child may still be draining its pipe while a new one starts.
+ # The generation prevents that old reader from publishing a stale URL.
+ self._generation = 0
+
+ @property
+ def state_file(self) -> Path:
+ return state_path(self.state_dir)
+
+ @property
+ def log_file(self) -> Path:
+ return log_path(self.log_dir)
+
+ @property
+ def pid_file(self) -> Path:
+ return self.state_dir / PID_FILENAME
+
+ @staticmethod
+ def _process_pid(process: subprocess.Popen | None) -> int | None:
+ value = getattr(process, "pid", None)
+ return value if isinstance(value, int) and value > 0 else None
+
+ @staticmethod
+ def _process_alive(process: subprocess.Popen | None) -> bool:
+ if process is None:
+ return False
+ try:
+ return process.poll() is None
+ except (AttributeError, OSError):
+ return False
+
+ def _pidfile_matches(self, process: subprocess.Popen | None) -> bool:
+ """Accept only the pidfile written by the current cloudflared child."""
+ try:
+ value = self.pid_file.read_text(encoding="ascii").strip()
+ pid = int(value)
+ except (OSError, ValueError):
+ return False
+ process_pid = self._process_pid(process)
+ return pid > 0 and (process_pid is None or pid == process_pid)
+
+ @staticmethod
+ def _terminate_process(process: subprocess.Popen | None) -> None:
+ if process is None:
+ return
+ try:
+ alive = process.poll() is None
+ except (AttributeError, OSError):
+ alive = False
+ if not alive:
+ return
+ try:
+ process.terminate()
+ process.wait(timeout=8)
+ except (AttributeError, OSError, subprocess.TimeoutExpired):
+ try:
+ process.kill()
+ process.wait(timeout=3)
+ except (AttributeError, OSError, subprocess.TimeoutExpired):
+ pass
+
+ def _write_error(self, message: str) -> None:
+ self._error = message
+ try:
+ _write_state(self.state_file, TunnelSnapshot(state="error", error=message))
+ except OSError:
+ # The process must still be stopped when the state directory is not writable.
+ pass
+
+ def snapshot(self) -> TunnelSnapshot:
+ with self._lock:
+ process = self._process
+ if self._process_alive(process):
+ return TunnelSnapshot(
+ state="running" if self._url and self._pidfile_matches(process) else "starting",
+ url=self._url, error=self._error, pid=self._process_pid(process),
+ started_at=self._started_at,
+ )
+ if process is not None and not self._process_alive(process):
+ error = self._error or "cloudflared 已退出"
+ return TunnelSnapshot(
+ state="error", url=self._url, error=error,
+ pid=self._process_pid(process), started_at=self._started_at,
+ )
+ # 服务重启后不复用旧进程;状态文件只用于给页面一个明确的 stopped/error 结论。
+ return saved_snapshot(self.state_dir)
+
+ def _read_output(
+ self, stream: TextIO, process: subprocess.Popen, handle: TextIO, generation: int,
+ ) -> None:
+ try:
+ for raw in iter(stream.readline, ""):
+ line = str(raw).rstrip("\r\n")
+ if line:
+ handle.write(line + "\n")
+ handle.flush()
+ url = extract_quick_url(line)
+ if url:
+ with self._lock:
+ if generation == self._generation:
+ self._url = url
+ self._ready.set()
+ except (OSError, ValueError):
+ pass
+ finally:
+ try:
+ stream.close()
+ except OSError:
+ pass
+ try:
+ handle.close()
+ except OSError:
+ pass
+ if generation == self._generation:
+ self._ready.set()
+ if not self._process_alive(process):
+ with self._lock:
+ if not self._url and not self._error:
+ self._error = "cloudflared 在取得入口前退出"
+ snapshot = TunnelSnapshot(
+ state="error", url=self._url, error=self._error,
+ pid=self._process_pid(process), started_at=self._started_at,
+ )
+ try:
+ _write_state(self.state_file, snapshot)
+ except OSError:
+ pass
+
+ def start(self, plan: TunnelPlan) -> TunnelSnapshot:
+ with self._start_lock:
+ return self._start_impl(plan)
+
+ def _start_impl(self, plan: TunnelPlan) -> TunnelSnapshot:
+ with self._lock:
+ if self._process_alive(self._process):
+ return self.snapshot()
+ self._generation += 1
+ generation = self._generation
+ self._url = ""
+ self._error = ""
+ self._started_at = datetime.now(timezone.utc).isoformat()
+ self._ready.clear()
+ self.state_dir.mkdir(parents=True, exist_ok=True)
+ self.log_dir.mkdir(parents=True, exist_ok=True)
+ self.pid_file.unlink(missing_ok=True)
+ handle: TextIO | None = None
+ process: subprocess.Popen | None = None
+ try:
+ # Open the log before spawning the child. If the data root is not
+ # writable, no untracked cloudflared process may be left behind.
+ handle = self.log_file.open("a", encoding="utf-8")
+ process = self._popen(
+ [*plan.command, "--pidfile", str(self.pid_file)],
+ stdin=subprocess.DEVNULL,
+ stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
+ text=True, encoding="utf-8", errors="replace", bufsize=1,
+ shell=False,
+ creationflags=subprocess.CREATE_NO_WINDOW if os.name == "nt" else 0,
+ )
+ except (OSError, subprocess.SubprocessError) as exc:
+ self._terminate_process(process)
+ if handle is not None:
+ try:
+ handle.close()
+ except OSError:
+ pass
+ message = f"cloudflared 启动失败:{exc}"
+ self._generation += 1
+ self._process = None
+ self._reader = None
+ self._ready.set()
+ self._write_error(message)
+ raise TunnelError(message) from exc
+ self._process = process
+ stream = process.stdout
+ if stream is None:
+ message = "cloudflared 没有输出通道"
+ self._terminate_process(process)
+ self._generation += 1
+ self._process = None
+ self._reader = None
+ self._ready.set()
+ if handle is not None:
+ try:
+ handle.close()
+ except OSError:
+ pass
+ self._write_error(message)
+ raise TunnelError(message)
+ self._reader = threading.Thread(
+ target=self._read_output, args=(stream, process, handle, generation),
+ name="PeachCloudflared", daemon=True,
+ )
+ try:
+ self._reader.start()
+ _write_state(self.state_file, TunnelSnapshot(
+ state="starting", pid=self._process_pid(process),
+ started_at=self._started_at,
+ ))
+ except (OSError, RuntimeError) as exc:
+ message = f"Tunnel 启动状态失败:{exc}"
+ self._generation += 1
+ self._process = None
+ self._reader = None
+ self._ready.set()
+ self._terminate_process(process)
+ if handle is not None:
+ try:
+ handle.close()
+ except OSError:
+ pass
+ self._write_error(message)
+ raise TunnelError(message) from exc
+
+ deadline = self._clock() + self._wait_timeout
+ while self._clock() < deadline:
+ self._ready.wait(0.1)
+ with self._lock:
+ if not self._process_alive(self._process):
+ break
+ if self._url and self._pidfile_matches(self._process):
+ break
+ self._ready.clear()
+ with self._lock:
+ process = self._process
+ url = self._url
+ error = self._error
+ alive = self._process_alive(process)
+ connected = self._pidfile_matches(process)
+ if not url or not alive or not connected:
+ if alive:
+ self.stop()
+ message = error or (
+ "cloudflared 未在限定时间内取得入口"
+ if not url else "cloudflared 未在限定时间内连接到 Cloudflare 边缘"
+ )
+ self._write_error(message)
+ raise TunnelError(message)
+ snapshot = TunnelSnapshot(
+ state="running", url=url, pid=self._process_pid(process),
+ started_at=self._started_at,
+ )
+ try:
+ _write_state(self.state_file, snapshot)
+ except OSError as exc:
+ message = f"Tunnel 状态写入失败:{exc}"
+ self.stop()
+ self._write_error(message)
+ raise TunnelError(message) from exc
+ return snapshot
+
+ def stop(self) -> TunnelSnapshot:
+ with self._lock:
+ process = self._process
+ reader = self._reader
+ self._process = None
+ self._reader = None
+ self._generation += 1
+ cleanup_generation = self._generation
+ self._url = ""
+ self._error = ""
+ self._ready.set()
+ self._terminate_process(process)
+ if reader is not None and reader.is_alive():
+ reader.join(timeout=1)
+ snapshot = TunnelSnapshot(state="stopped")
+ with self._lock:
+ if self._generation != cleanup_generation or self._process is not None:
+ return snapshot
+ try:
+ self.state_file.unlink()
+ except FileNotFoundError:
+ pass
+ except OSError:
+ try:
+ _write_state(self.state_file, snapshot)
+ except OSError:
+ pass
+ try:
+ self.pid_file.unlink()
+ except FileNotFoundError:
+ pass
+ except OSError:
+ pass
+ return snapshot
diff --git a/tests/test_cloudflared_packaging.py b/tests/test_cloudflared_packaging.py
new file mode 100644
index 000000000..a20eb8840
--- /dev/null
+++ b/tests/test_cloudflared_packaging.py
@@ -0,0 +1,28 @@
+import json
+import unittest
+from pathlib import Path
+
+
+ROOT = Path(__file__).resolve().parents[1]
+
+
+class CloudflaredPackagingTests(unittest.TestCase):
+ def test_the_pinned_windows_asset_has_a_sha256_and_official_source(self):
+ manifest = json.loads((ROOT / "scripts" / "cloudflared-windows.json").read_text(encoding="utf-8"))
+ self.assertEqual(manifest["asset"], "cloudflared-windows-amd64.exe")
+ self.assertRegex(manifest["sha256"], r"^[0-9a-f]{64}$")
+ self.assertTrue(manifest["url"].startswith("https://github.com/cloudflare/cloudflared/"))
+ self.assertEqual(manifest["license"], "Apache-2.0")
+
+ def test_fetch_and_build_verify_the_pinned_hash_and_only_standalone_carries_the_sidecar(self):
+ fetch = (ROOT / "scripts" / "fetch_cloudflared.ps1").read_text(encoding="utf-8-sig")
+ build = (ROOT / "scripts" / "build_windows.ps1").read_text(encoding="utf-8-sig")
+ self.assertIn("Get-FileHash", fetch)
+ self.assertIn("Get-FileHash", build)
+ self.assertIn("Copy-Item -LiteralPath $CloudflaredSource", build)
+ self.assertIn("if ($Standalone)", build)
+ self.assertLess(build.index("if ($Standalone) {\n $BuildMode"), build.index("Copy-Item -LiteralPath $CloudflaredSource"))
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/tests/test_tunnel.py b/tests/test_tunnel.py
new file mode 100644
index 000000000..49db40579
--- /dev/null
+++ b/tests/test_tunnel.py
@@ -0,0 +1,384 @@
+import json
+import tempfile
+import time
+import unittest
+from pathlib import Path
+from types import SimpleNamespace
+from unittest import mock
+
+from fastapi import HTTPException
+
+from peach import access, routes_auth, routes_configuration, tunnel
+
+
+class _Config:
+ def __init__(self, root: Path, *, port: int = 8900, binary: str = ""):
+ self.data_root = root
+ self.server = SimpleNamespace(port=port, mdns_name="peach")
+ self.tunnel = SimpleNamespace(binary=binary)
+
+ def directory(self, name: str) -> Path:
+ return self.data_root / name
+
+
+class _Stream:
+ def __init__(self, *lines: str):
+ self._lines = iter(lines)
+ self.closed = False
+
+ def readline(self):
+ try:
+ return next(self._lines)
+ except StopIteration:
+ return ""
+
+ def close(self):
+ self.closed = True
+
+
+class _Process:
+ def __init__(self, stream, pid: int = 4123):
+ self.stdout = stream
+ self.pid = pid
+ self._returncode = None
+ self.terminated = False
+ self.killed = False
+
+ def poll(self):
+ return self._returncode
+
+ def terminate(self):
+ self.terminated = True
+ self._returncode = 0
+
+ def kill(self):
+ self.killed = True
+ self._returncode = -9
+
+ def wait(self, timeout=None):
+ if self._returncode is None:
+ self._returncode = 0
+ return self._returncode
+
+
+class TunnelPlanTests(unittest.TestCase):
+ def setUp(self):
+ self.temp = tempfile.TemporaryDirectory()
+ self.root = Path(self.temp.name).resolve()
+ self.binary = self.root / "cloudflared.exe"
+ self.binary.write_bytes(b"fake")
+ self.config = _Config(self.root, binary=str(self.binary))
+ self.access_path = self.root / "secrets" / "access.json"
+ access.save(self.access_path, "a-strong-test-password")
+
+ def tearDown(self):
+ self.temp.cleanup()
+
+ def test_quick_url_extraction_rejects_non_cloudflare_urls(self):
+ self.assertEqual(
+ tunnel.extract_quick_url(
+ "INF | https://AbC-123.trycloudflare.com. connected"
+ ),
+ "https://AbC-123.trycloudflare.com",
+ )
+ self.assertIsNone(tunnel.extract_quick_url("https://example.com/trycloudflare.com"))
+
+ def test_standalone_uses_loopback_http_without_tls_options(self):
+ plan = tunnel.plan_for_config(
+ self.config, access_path=self.access_path, token="internal-token",
+ standalone_mode=True,
+ )
+ self.assertEqual(plan.origin.url, "http://127.0.0.1:8900")
+ self.assertNotIn("--origin-server-name", plan.command)
+ self.assertNotIn("--origin-ca-pool", plan.command)
+
+ def test_standalone_uses_the_actual_runtime_port_when_supplied(self):
+ plan = tunnel.plan_for_config(
+ self.config, access_path=self.access_path, token="internal-token",
+ standalone_mode=True, https_port=18901,
+ )
+ self.assertEqual(plan.origin.url, "http://127.0.0.1:18901")
+
+ def test_source_uses_lan_https_and_project_ca(self):
+ ca = self.config.directory("secrets") / "tls" / "peach-local-ca.crt"
+ ca.parent.mkdir(parents=True)
+ ca.write_bytes(b"ca")
+ plan = tunnel.plan_for_config(
+ self.config, access_path=self.access_path, token="internal-token",
+ standalone_mode=False, lan_address="192.168.50.162",
+ )
+ self.assertEqual(plan.origin.url, "https://192.168.50.162:443")
+ self.assertEqual(plan.origin.origin_server_name, "peach.local")
+ self.assertIn(("--origin-ca-pool", str(ca)), tuple(zip(plan.command, plan.command[1:])))
+
+ def test_source_can_use_a_nonstandard_https_port(self):
+ ca = self.config.directory("secrets") / "tls" / "peach-local-ca.crt"
+ ca.parent.mkdir(parents=True)
+ ca.write_bytes(b"ca")
+ origin = tunnel.origin_for_config(
+ self.config, standalone_mode=False, lan_address="192.168.50.162",
+ https_port=8443,
+ )
+ self.assertEqual(origin.url, "https://192.168.50.162:8443")
+
+ def test_source_ipv6_origin_is_bracketed(self):
+ ca = self.config.directory("secrets") / "tls" / "peach-local-ca.crt"
+ ca.parent.mkdir(parents=True)
+ ca.write_bytes(b"ca")
+ origin = tunnel.origin_for_config(
+ self.config, standalone_mode=False, lan_address="2001:db8::5",
+ )
+ self.assertEqual(origin.url, "https://[2001:db8::5]:443")
+
+ def test_source_without_tls_is_rejected_before_starting_a_tunnel(self):
+ with self.assertRaisesRegex(tunnel.TunnelError, "需要正在运行的 HTTPS"):
+ tunnel.plan_for_config(
+ self.config, access_path=self.access_path, token="internal-token",
+ standalone_mode=False, lan_address="192.168.50.162",
+ tls_enabled=False,
+ )
+
+ def test_open_access_and_missing_token_are_rejected_before_binary_lookup(self):
+ access.save(self.access_path, "")
+ with self.assertRaisesRegex(tunnel.TunnelError, "访问密码"):
+ tunnel.plan_for_config(
+ self.config, access_path=self.access_path, token="internal-token",
+ standalone_mode=True,
+ )
+ access.save(self.access_path, "a-strong-test-password")
+ with self.assertRaisesRegex(tunnel.TunnelError, "内部访问令牌"):
+ tunnel.plan_for_config(
+ self.config, access_path=self.access_path, token="",
+ standalone_mode=True,
+ )
+
+ def test_missing_binary_is_rejected(self):
+ self.binary.unlink()
+ self.config.tunnel.binary = str(self.root / "missing.exe")
+ with self.assertRaisesRegex(tunnel.TunnelError, "找不到 cloudflared"):
+ tunnel.plan_for_config(
+ self.config, access_path=self.access_path, token="internal-token",
+ standalone_mode=True, environ={}, which=lambda _name: None,
+ )
+
+
+class TunnelManagerTests(unittest.TestCase):
+ def setUp(self):
+ self.temp = tempfile.TemporaryDirectory()
+ self.root = Path(self.temp.name).resolve()
+ self.processes = []
+
+ def tearDown(self):
+ self.temp.cleanup()
+
+ def popen(self, command, **kwargs):
+ pid_index = command.index("--pidfile") + 1
+ Path(command[pid_index]).write_text("4123\n", encoding="ascii")
+ process = _Process(_Stream("INF | Your quick Tunnel has been created! https://unit-7.trycloudflare.com\n"))
+ self.processes.append(process)
+ return process
+
+ def plan(self):
+ return tunnel.TunnelPlan(
+ binary=self.root / "cloudflared.exe",
+ origin=tunnel.TunnelOrigin("http://127.0.0.1:8900"),
+ command=("cloudflared", "tunnel", "--url", "http://127.0.0.1:8900"),
+ )
+
+ def test_start_writes_url_and_stop_removes_state(self):
+ manager = tunnel.TunnelManager(
+ self.root / "state", self.root / "logs", popen=self.popen, wait_timeout=2,
+ )
+ started = manager.start(self.plan())
+ self.assertEqual(started.state, "running")
+ self.assertEqual(started.url, "https://unit-7.trycloudflare.com")
+ state = json.loads((self.root / "state" / tunnel.STATE_FILENAME).read_text())
+ self.assertEqual(state["url"], started.url)
+ self.assertIn(started.url, (self.root / "logs" / tunnel.LOG_FILENAME).read_text())
+ stopped = manager.stop()
+ self.assertEqual(stopped.state, "stopped")
+ self.assertFalse((self.root / "state" / tunnel.STATE_FILENAME).exists())
+ self.assertTrue(self.processes[0].terminated)
+
+ def test_child_exit_after_start_is_reported_as_error(self):
+ manager = tunnel.TunnelManager(
+ self.root / "state", self.root / "logs", popen=self.popen, wait_timeout=2,
+ )
+ manager.start(self.plan())
+ self.processes[0]._returncode = 1
+ snapshot = manager.snapshot()
+ self.assertEqual(snapshot.state, "error")
+ self.assertEqual(snapshot.url, "https://unit-7.trycloudflare.com")
+
+ def test_saved_running_state_is_not_reused_after_restart(self):
+ state_dir = self.root / "state"
+ state_dir.mkdir()
+ (state_dir / tunnel.STATE_FILENAME).write_text(
+ json.dumps({"state": "running", "url": "https://old.trycloudflare.com"}),
+ encoding="utf-8",
+ )
+ snapshot = tunnel.saved_snapshot(state_dir)
+ self.assertEqual(snapshot.state, "stopped")
+ self.assertIn("上一次", snapshot.error)
+
+ def test_missing_state_file_is_a_clean_stopped_snapshot(self):
+ snapshot = tunnel.saved_snapshot(self.root / "state")
+ self.assertEqual(snapshot.state, "stopped")
+ self.assertEqual(snapshot.error, "")
+
+ def test_corrupt_state_file_remains_an_error(self):
+ state_dir = self.root / "state"
+ state_dir.mkdir()
+ (state_dir / tunnel.STATE_FILENAME).write_text("{", encoding="utf-8")
+ snapshot = tunnel.saved_snapshot(state_dir)
+ self.assertEqual(snapshot.state, "stopped")
+ self.assertEqual(snapshot.error, "Tunnel 状态文件不可读")
+
+ def test_pidfile_for_another_process_does_not_mark_tunnel_ready(self):
+ manager = tunnel.TunnelManager(
+ self.root / "state", self.root / "logs", popen=self.popen, wait_timeout=0.05,
+ )
+ original = self.popen
+
+ def mismatched_popen(command, **kwargs):
+ process = original(command, **kwargs)
+ Path(command[command.index("--pidfile") + 1]).write_text("9999\n", encoding="ascii")
+ return process
+
+ manager._popen = mismatched_popen
+ with self.assertRaisesRegex(tunnel.TunnelError, "连接到 Cloudflare"):
+ manager.start(self.plan())
+ self.assertTrue(self.processes[0].terminated)
+ self.assertFalse((self.root / "state" / tunnel.PID_FILENAME).exists())
+
+ def test_snapshot_accepts_a_process_without_a_pid_attribute(self):
+ process = SimpleNamespace(poll=lambda: None, stdout=_Stream())
+ manager = tunnel.TunnelManager(self.root / "state", self.root / "logs")
+ manager._process = process
+ snapshot = manager.snapshot()
+ self.assertEqual(snapshot.state, "starting")
+ self.assertIsNone(snapshot.pid)
+
+
+class TunnelOriginGuardTests(unittest.TestCase):
+ def request(self, origin: str):
+ manager = SimpleNamespace(snapshot=lambda: tunnel.TunnelSnapshot(
+ state="running", url="https://unit-7.trycloudflare.com",
+ ))
+ app = SimpleNamespace(state=SimpleNamespace(tunnel=manager))
+ return SimpleNamespace(
+ app=app,
+ headers={"origin": origin},
+ base_url="http://127.0.0.1:8900/",
+ )
+
+ def test_current_quick_tunnel_origin_is_allowed_for_write_requests(self):
+ routes_auth.same_origin(self.request("https://unit-7.trycloudflare.com"))
+
+ def test_regular_local_origin_is_still_allowed(self):
+ routes_auth.same_origin(self.request("http://127.0.0.1:8900/"))
+
+ def test_other_origin_is_rejected_even_when_it_looks_like_a_tunnel(self):
+ with self.assertRaises(HTTPException) as raised:
+ routes_auth.same_origin(self.request("https://other.trycloudflare.com"))
+ self.assertEqual(raised.exception.status_code, 403)
+
+
+class TunnelRouteTests(unittest.TestCase):
+ def setUp(self):
+ self.temp = tempfile.TemporaryDirectory()
+ self.root = Path(self.temp.name).resolve()
+ self.config_path = self.root / "config.toml"
+ self.config_path.write_text("[tunnel]\nenabled = false\n", encoding="utf-8")
+ self.config = SimpleNamespace(
+ present=True, path=self.config_path,
+ tunnel=SimpleNamespace(enabled=False, binary=""),
+ data_root=self.root,
+ )
+ self.settings = SimpleNamespace(
+ access_path=self.root / "access.json", token="internal-token",
+ tunnel_standalone=True, tunnel_lan_address=None, tunnel_origin_port=443,
+ )
+ self.plan = tunnel.TunnelPlan(
+ binary=self.root / "cloudflared.exe",
+ origin=tunnel.TunnelOrigin("http://127.0.0.1:8900"),
+ command=("cloudflared", "tunnel", "--url", "http://127.0.0.1:8900"),
+ )
+
+ def tearDown(self):
+ self.temp.cleanup()
+
+ def request(self, manager):
+ state = SimpleNamespace(tunnel=manager, settings=self.settings)
+ return SimpleNamespace(
+ app=SimpleNamespace(state=state),
+ client=SimpleNamespace(host="127.0.0.1"),
+ scope={"server": ("127.0.0.1", 8900)},
+ url=SimpleNamespace(hostname="127.0.0.1"),
+ headers={"origin": "http://127.0.0.1:8900"},
+ base_url="http://127.0.0.1:8900/",
+ )
+
+ def manager(self, state="stopped"):
+ manager = mock.Mock()
+ manager.snapshot.return_value = tunnel.TunnelSnapshot(state=state)
+ manager.start.return_value = tunnel.TunnelSnapshot(
+ state="running", url="https://unit-7.trycloudflare.com", pid=4123,
+ )
+ manager.stop.return_value = tunnel.TunnelSnapshot(state="stopped")
+ return manager
+
+ def patches(self, current=None):
+ current = current or self.config
+ return mock.patch.multiple(
+ routes_configuration.settings_file,
+ load_config=mock.Mock(side_effect=[self.config, current]),
+ write=mock.Mock(),
+ )
+
+ def test_enable_starts_and_persists_the_tunnel(self):
+ manager = self.manager()
+ with self.patches(), mock.patch.object(routes_configuration, "revision", return_value="rev"), \
+ mock.patch.object(routes_configuration.tunnel, "plan_for_config", return_value=self.plan), \
+ mock.patch.object(routes_configuration, "FileLock") as lock, \
+ mock.patch.object(routes_configuration, "replace", return_value=self.config):
+ lock.return_value.__enter__.return_value = lock.return_value
+ result = routes_configuration.save_tunnel(
+ self.request(manager), {"revision": "rev", "enabled": True}, None,
+ )
+ self.assertEqual(result["state"], "running")
+ manager.start.assert_called_once_with(self.plan)
+ manager.stop.assert_not_called()
+
+ def test_stale_revision_rolls_back_only_a_tunnel_started_by_this_request(self):
+ manager = self.manager()
+ with self.patches(current=SimpleNamespace(path=self.config_path)), \
+ mock.patch.object(routes_configuration, "revision", side_effect=["rev", "changed", "rev"]), \
+ mock.patch.object(routes_configuration.tunnel, "plan_for_config", return_value=self.plan), \
+ mock.patch.object(routes_configuration, "FileLock") as lock, \
+ mock.patch.object(routes_configuration, "replace", return_value=self.config):
+ lock.return_value.__enter__.return_value = lock.return_value
+ with self.assertRaises(HTTPException) as raised:
+ routes_configuration.save_tunnel(
+ self.request(manager), {"revision": "rev", "enabled": True}, None,
+ )
+ self.assertEqual(raised.exception.status_code, 409)
+ manager.stop.assert_called_once_with()
+
+ def test_stale_revision_does_not_stop_an_existing_tunnel(self):
+ manager = self.manager(state="running")
+ with self.patches(current=SimpleNamespace(path=self.config_path)), \
+ mock.patch.object(routes_configuration, "revision", side_effect=["rev", "changed", "rev"]), \
+ mock.patch.object(routes_configuration.tunnel, "plan_for_config", return_value=self.plan), \
+ mock.patch.object(routes_configuration, "FileLock") as lock, \
+ mock.patch.object(routes_configuration, "replace", return_value=self.config):
+ lock.return_value.__enter__.return_value = lock.return_value
+ with self.assertRaises(HTTPException):
+ routes_configuration.save_tunnel(
+ self.request(manager), {"revision": "rev", "enabled": True}, None,
+ )
+ manager.stop.assert_not_called()
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 654175928..8314e0a86 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -8377,8 +8377,8 @@ function nd(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var W = /* @__PURE__ */ new WeakMap();
-function rd(e, t, n) {
+var rd = /* @__PURE__ */ new WeakMap();
+function id(e, t, n) {
let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = gc({
usage: "search",
sensitivity: "base"
@@ -8421,7 +8421,7 @@ function rd(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let C = H(e, { labelable: !0 }), w = V(m, d, y), T = gr();
- return W.set(t, {
+ return rd.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -8482,8 +8482,8 @@ function rd(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function id(e, t, n) {
- let r = W.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Jo({ style: {
+function ad(e, t, n) {
+ let r = rd.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Jo({ style: {
position: "fixed",
top: 0,
left: 0
@@ -8518,8 +8518,8 @@ function id(e, t, n) {
}
};
}
-function ad(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, S.useRef)(null), c = (0, S.useRef)(null), { containerProps: l, selectProps: u } = id({
+function od(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, S.useRef)(null), c = (0, S.useRef)(null), { containerProps: l, selectProps: u } = ad({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -8543,7 +8543,7 @@ function ad(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = W.get(t) || {};
+ let { validationBehavior: e } = rd.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -8574,7 +8574,7 @@ function ad(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function od(e, t, n) {
+function sd(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = Lo(e, t, n);
return {
labelProps: r,
@@ -8589,10 +8589,10 @@ function od(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var sd = class {
+var cd = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new cd(e.layout) : new ds(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new ld(e.layout) : new ds(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -8758,7 +8758,7 @@ var sd = class {
}
return null;
}
-}, cd = class {
+}, ld = class {
constructor(e) {
this.layout = e;
}
@@ -8771,16 +8771,16 @@ var sd = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, ld = /* @__PURE__ */ new WeakMap();
+}, ud = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function ud(e, t, n) {
+function dd(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
let h = gc({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Ri(), _ = t.selectionManager.disabledBehavior, v = (0, S.useMemo)(() => a || new sd({
+ }), { direction: g } = Ri(), _ = t.selectionManager.disabledBehavior, v = (0, S.useMemo)(() => a || new cd({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -8806,7 +8806,7 @@ function ud(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = gr(e.id);
- ld.set(t, {
+ ud.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -8836,27 +8836,27 @@ function ud(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var dd = /* @__PURE__ */ new WeakMap();
-function fd(e) {
+var fd = /* @__PURE__ */ new WeakMap();
+function pd(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function pd(e, t) {
- let n = dd.get(e);
+function md(e, t) {
+ let n = fd.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${fd(t)}`;
+ return `${n}-${pd(t)}`;
}
-function md(e, t, n) {
- let r = dd.get(e);
+function hd(e, t, n) {
+ let r = fd.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${fd(t)}-${fd(n)}`;
+ return `${r}-${pd(t)}-${pd(n)}`;
}
-function hd(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => md(e, t, n)).join(" ");
+function gd(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => hd(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var gd = {};
-gd = {
+var _d = {};
+_d = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -8871,8 +8871,8 @@ gd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var _d = {};
-_d = {
+var vd = {};
+vd = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -8887,8 +8887,8 @@ _d = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var vd = {};
-vd = {
+var yd = {};
+yd = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -8903,8 +8903,8 @@ vd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var yd = {};
-yd = {
+var bd = {};
+bd = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -8919,8 +8919,8 @@ yd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var bd = {};
-bd = {
+var xd = {};
+xd = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -8935,8 +8935,8 @@ bd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var xd = {};
-xd = {
+var Sd = {};
+Sd = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -8951,8 +8951,8 @@ xd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Sd = {};
-Sd = {
+var Cd = {};
+Cd = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -8967,8 +8967,8 @@ Sd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Cd = {};
-Cd = {
+var wd = {};
+wd = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -8983,8 +8983,8 @@ Cd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var wd = {};
-wd = {
+var Td = {};
+Td = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -8999,8 +8999,8 @@ wd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Td = {};
-Td = {
+var Ed = {};
+Ed = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -9015,8 +9015,8 @@ Td = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Ed = {};
-Ed = {
+var Dd = {};
+Dd = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -9031,8 +9031,8 @@ Ed = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Dd = {};
-Dd = {
+var Od = {};
+Od = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -9047,8 +9047,8 @@ Dd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Od = {};
-Od = {
+var kd = {};
+kd = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -9063,8 +9063,8 @@ Od = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var kd = {};
-kd = {
+var Ad = {};
+Ad = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -9079,8 +9079,8 @@ kd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Ad = {};
-Ad = {
+var jd = {};
+jd = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -9095,8 +9095,8 @@ Ad = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var jd = {};
-jd = {
+var Md = {};
+Md = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -9111,8 +9111,8 @@ jd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Md = {};
-Md = {
+var Nd = {};
+Nd = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -9127,8 +9127,8 @@ Md = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Nd = {};
-Nd = {
+var Pd = {};
+Pd = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -9143,8 +9143,8 @@ Nd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Pd = {};
-Pd = {
+var Fd = {};
+Fd = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -9159,8 +9159,8 @@ Pd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Fd = {};
-Fd = {
+var Id = {};
+Id = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -9175,8 +9175,8 @@ Fd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Id = {};
-Id = {
+var Ld = {};
+Ld = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -9191,8 +9191,8 @@ Id = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Ld = {};
-Ld = {
+var Rd = {};
+Rd = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -9207,8 +9207,8 @@ Ld = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Rd = {};
-Rd = {
+var zd = {};
+zd = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -9223,8 +9223,8 @@ Rd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var zd = {};
-zd = {
+var Bd = {};
+Bd = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -9239,8 +9239,8 @@ zd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Bd = {};
-Bd = {
+var Vd = {};
+Vd = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -9255,8 +9255,8 @@ Bd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Vd = {};
-Vd = {
+var Hd = {};
+Hd = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -9271,8 +9271,8 @@ Vd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Hd = {};
-Hd = {
+var Ud = {};
+Ud = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -9287,8 +9287,8 @@ Hd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Ud = {};
-Ud = {
+var Wd = {};
+Wd = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -9303,8 +9303,8 @@ Ud = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Wd = {};
-Wd = {
+var Gd = {};
+Gd = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -9319,8 +9319,8 @@ Wd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Gd = {};
-Gd = {
+var Kd = {};
+Kd = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -9335,8 +9335,8 @@ Gd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Kd = {};
-Kd = {
+var qd = {};
+qd = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -9351,8 +9351,8 @@ Kd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var qd = {};
-qd = {
+var Jd = {};
+Jd = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -9367,8 +9367,8 @@ qd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Jd = {};
-Jd = {
+var Yd = {};
+Yd = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -9383,8 +9383,8 @@ Jd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var Yd = {};
-Yd = {
+var Xd = {};
+Xd = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -9399,46 +9399,46 @@ Yd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var Xd = {};
-Xd = {
- "ar-AE": gd,
- "bg-BG": _d,
- "cs-CZ": vd,
- "da-DK": yd,
- "de-DE": bd,
- "el-GR": xd,
- "en-US": Sd,
- "es-ES": Cd,
- "et-EE": wd,
- "fi-FI": Td,
- "fr-FR": Ed,
- "he-IL": Dd,
- "hr-HR": Od,
- "hu-HU": kd,
- "it-IT": Ad,
- "ja-JP": jd,
- "ko-KR": Md,
- "lt-LT": Nd,
- "lv-LV": Pd,
- "nb-NO": Fd,
- "nl-NL": Id,
- "pl-PL": Ld,
- "pt-BR": Rd,
- "pt-PT": zd,
- "ro-RO": Bd,
- "ru-RU": Vd,
- "sk-SK": Hd,
- "sl-SI": Ud,
- "sr-SP": Wd,
- "sv-SE": Gd,
- "tr-TR": Kd,
- "uk-UA": qd,
- "zh-CN": Jd,
- "zh-TW": Yd
+var Zd = {};
+Zd = {
+ "ar-AE": _d,
+ "bg-BG": vd,
+ "cs-CZ": yd,
+ "da-DK": bd,
+ "de-DE": xd,
+ "el-GR": Sd,
+ "en-US": Cd,
+ "es-ES": wd,
+ "et-EE": Td,
+ "fi-FI": Ed,
+ "fr-FR": Dd,
+ "he-IL": Od,
+ "hr-HR": kd,
+ "hu-HU": Ad,
+ "it-IT": jd,
+ "ja-JP": Md,
+ "ko-KR": Nd,
+ "lt-LT": Pd,
+ "lv-LV": Fd,
+ "nb-NO": Id,
+ "nl-NL": Ld,
+ "pl-PL": Rd,
+ "pt-BR": zd,
+ "pt-PT": Bd,
+ "ro-RO": Vd,
+ "ru-RU": Hd,
+ "sk-SK": Ud,
+ "sl-SI": Wd,
+ "sr-SP": Gd,
+ "sv-SE": Kd,
+ "tr-TR": qd,
+ "uk-UA": Jd,
+ "zh-CN": Yd,
+ "zh-TW": Xd
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Zd = class extends sd {
+var Qd = class extends cd {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -9516,14 +9516,14 @@ var Zd = class extends sd {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function Qd(e) {
+function $d(e) {
return e && e.__esModule ? e.default : e;
}
-function $d(e, t, n) {
+function ef(e, t, n) {
let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = gc({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Ri(), l = t.selectionManager.disabledBehavior, u = (0, S.useMemo)(() => r || new Zd({
+ }), { direction: c } = Ri(), l = t.selectionManager.disabledBehavior, u = (0, S.useMemo)(() => r || new Qd({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -9543,14 +9543,14 @@ function $d(e, t, n) {
a,
o
]), d = gr(e.id);
- dd.set(t, d);
- let { gridProps: f } = ud({
+ fd.set(t, d);
+ let { gridProps: f } = dd({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = Qi(Qd(Xd), "@react-aria/table"), g = (0, S.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Qi($d(Zd), "@react-aria/table"), g = (0, S.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
@@ -9564,13 +9564,13 @@ function $d(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function ef(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Ri(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = ld.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, S.useRef)(null), h = () => {
+function tf(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Ri(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = ud.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, S.useRef)(null), h = () => {
if (n.current) {
let e = eo(n.current);
if (p === "child") {
if (Rt(n.current) && n.current !== It(R(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? tf(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? nf(e) : e.firstChild();
if (r) {
lr(r);
return;
@@ -9602,7 +9602,7 @@ function ef(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (lr(n.current), ho(n.current, { containingElement: uo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : tf(a), t && (lr(t), ho(t, { containingElement: uo(n.current) })));
+ p === "cell" && l === "rtl" ? (lr(n.current), ho(n.current, { containingElement: uo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : nf(a), t && (lr(t), ho(t, { containingElement: uo(n.current) })));
}
break;
}
@@ -9614,7 +9614,7 @@ function ef(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (lr(n.current), ho(n.current, { containingElement: uo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? tf(a) : a.firstChild(), t && (lr(t), ho(t, { containingElement: uo(n.current) })));
+ p === "cell" && l === "ltr" ? (lr(n.current), ho(n.current, { containingElement: uo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? nf(a) : a.firstChild(), t && (lr(t), ho(t, { containingElement: uo(n.current) })));
}
break;
}
@@ -9659,7 +9659,7 @@ function ef(e, t, n) {
isPressed: _
};
}
-function tf(e) {
+function nf(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -9668,20 +9668,20 @@ function tf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function nf(e, t, n) {
- let { gridCellProps: r, isPressed: i } = ef(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = md(t, e.node.parentKey, a)), {
+function rf(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = tf(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = hd(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function rf(e) {
+function af(e) {
return e && e.__esModule ? e.default : e;
}
-function af(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = ef({
+function of(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = tf({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = ba({
@@ -9692,7 +9692,7 @@ function af(e, t, n) {
ref: n
}), { focusableProps: l } = Hr({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !fn() && (u = d ? f : "none");
- let p = Qi(rf(Xd), "@react-aria/table"), m;
+ let p = Qi(af(Zd), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && fn() && (m = `${m}, ${p.format(f)}`));
let h = vo(m), g = t.collection.size === 0;
return (0, S.useEffect)(() => {
@@ -9705,7 +9705,7 @@ function af(e, t, n) {
columnHeaderProps: {
...V(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: pd(t, r.key),
+ id: md(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -9714,14 +9714,14 @@ function af(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function of(e, t, n) {
+function sf(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function sf(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = ld.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Cl({
+function cf(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = ud.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Cl({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -9742,10 +9742,10 @@ function sf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function cf(e) {
+function lf(e) {
return e && e.__esModule ? e.default : e;
}
-var lf = {
+var uf = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -9755,21 +9755,21 @@ var lf = {
rtl: "ArrowRight"
}
};
-function uf(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = sf(e, t, n), { direction: s } = Ri();
+function df(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = cf(e, t, n), { direction: s } = Ri();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Qi(cf(Xd), "@react-aria/table"), u = Di({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Qi(lf(Zd), "@react-aria/table"), u = Di({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": hd(t, r.key)
+ "aria-labelledby": gd(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = df(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = df(t.collection, a);
+ let n = ff(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = ff(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === lf.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === lf.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === uf.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === uf.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -9791,41 +9791,41 @@ function uf(e, t, n) {
return {
rowProps: {
...V(a, d, m),
- "aria-labelledby": hd(t, r.key)
+ "aria-labelledby": gd(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function df(e, t) {
+function ff(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function ff() {
+function pf() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function pf() {
- return ff();
+function mf() {
+ return pf();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function mf(e) {
+function hf(e) {
return e && e.__esModule ? e.default : e;
}
-function hf(e, t) {
+function gf(e, t) {
let { key: n } = e, { checkboxProps: r } = Dl(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${hd(t, n)}`
+ "aria-labelledby": `${r.id} ${gd(t, n)}`
} };
}
-function gf(e) {
+function _f(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Qi(mf(Xd), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Qi(hf(Zd), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -9834,13 +9834,13 @@ function gf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var _f = /* @__PURE__ */ new WeakMap();
-function vf(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${_f.get(e)}-${n}-${t}`) : "";
+var vf = /* @__PURE__ */ new WeakMap();
+function yf(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${vf.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function yf(e, t, n) {
+function bf(e, t, n) {
let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = Cl({
selectionManager: o,
key: r,
@@ -9848,7 +9848,7 @@ function yf(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = vf(t, r, "tab"), m = vf(t, r, "tabpanel"), { tabIndex: h } = d, g = H(u?.props, { labelable: !0 });
+ }), p = yf(t, r, "tab"), m = yf(t, r, "tabpanel"), { tabIndex: h } = d, g = H(u?.props, { labelable: !0 });
delete g.id;
let _ = Sn(u?.props), { focusableProps: v } = Hr({
...u?.props,
@@ -9870,7 +9870,7 @@ function yf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var bf = class {
+var xf = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -9914,11 +9914,11 @@ var bf = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function xf(e, t, n) {
+function Sf(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Ri(), { collectionProps: l } = oc({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, S.useMemo)(() => new bf(a, c, r, s), [
+ keyboardDelegate: (0, S.useMemo)(() => new xf(a, c, r, s), [
a,
s,
r,
@@ -9929,7 +9929,7 @@ function xf(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = gr();
- return _f.set(t, u), { tabListProps: {
+ return vf.set(t, u), { tabListProps: {
...V(l, Di({
...e,
id: u
@@ -9941,12 +9941,12 @@ function xf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Sf(e, t, n) {
- let r = yl(n) ? void 0 : 0, i = vf(t, e.id ?? t?.selectedKey, "tabpanel");
+function Cf(e, t, n) {
+ let r = yl(n) ? void 0 : 0, i = yf(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: V(Di({
...e,
id: i,
- "aria-labelledby": vf(t, t?.selectedKey, "tab")
+ "aria-labelledby": yf(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -9956,7 +9956,7 @@ function Sf(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Cf = /* @__PURE__ */ h(((e) => {
+var wf = /* @__PURE__ */ h(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -10155,10 +10155,10 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
};
};
-})), wf = /* @__PURE__ */ h(((e, t) => {
- t.exports = Cf();
-})), Tf = /* @__PURE__ */ h(((e) => {
- var t = wf(), n = y(), r = Jr();
+})), Tf = /* @__PURE__ */ h(((e, t) => {
+ t.exports = wf();
+})), Ef = /* @__PURE__ */ h(((e) => {
+ var t = Tf(), n = y(), r = Jr();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -10382,9 +10382,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
switch (ve(xe, t), ve(be, e), ve(ye, null), t.nodeType) {
case 9:
case 11:
- e = (e = t.documentElement) && (e = e.namespaceURI) ? yp(e) : 0;
+ e = (e = t.documentElement) && (e = e.namespaceURI) ? bp(e) : 0;
break;
- default: if (e = t.tagName, t = t.namespaceURI) t = yp(t), e = bp(t, e);
+ default: if (e = t.tagName, t = t.namespaceURI) t = bp(t), e = xp(t, e);
else switch (e) {
case "svg":
e = 1;
@@ -10403,7 +10403,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
function Te(e) {
var t = e.memoizedState;
t !== null && (fh._currentValue = t.memoizedState, ve(Se, e)), t = ye.current;
- var n = bp(t, e.type);
+ var n = xp(t, e.type);
t !== n && (ve(be, e), ve(ye, n));
}
function Ee(e) {
@@ -10735,9 +10735,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (t = e[xt]) return t;
for (var n = e.parentNode; n;) {
if (t = n[Ct] || n[xt]) {
- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = vm(e); e !== null;) {
+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = ym(e); e !== null;) {
if (n = e[xt]) return n;
- e = vm(e);
+ e = ym(e);
}
return t;
}
@@ -11106,7 +11106,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
return e(t);
} finally {
- if (xn = !1, (vn !== null || yn !== null) && (Wd(), vn && (t = vn, e = yn, yn = vn = null, bn(t), e))) for (t = 0; t < e.length; t++) bn(e[t]);
+ if (xn = !1, (vn !== null || yn !== null) && (Gd(), vn && (t = vn, e = yn, yn = vn = null, bn(t), e))) for (t = 0; t < e.length; t++) bn(e[t]);
}
}
function Cn(e, t) {
@@ -11415,14 +11415,14 @@ var Cf = /* @__PURE__ */ h(((e) => {
return t === "input" ? !!yr[e.type] : t === "textarea";
}
function xr(e, t, n, r) {
- vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = np(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
+ vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = rp(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
var Sr = null, V = null;
function Cr(e) {
- Jf(e, 0);
+ Yf(e, 0);
}
function wr(e) {
if (Zt(Mt(e))) return e;
@@ -11547,7 +11547,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Yr && Rr(Yr, r) || (Yr = r, r = np(qr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
+ }), Yr && Rr(Yr, r) || (Yr = r, r = rp(qr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
}), t.target = Kr)));
@@ -11582,13 +11582,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
function mi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = Td.identifierPrefix;
+ e = Ed.identifierPrefix;
var n = pi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
function hi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = Nd;
+ var t = null, n = Pd;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -11649,7 +11649,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Ze(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
function Ei(e) {
- if (50 < Pd) throw Pd = 0, Fd = null, Error(i(185));
+ if (50 < Fd) throw Fd = 0, Id = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
@@ -11681,7 +11681,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
function Ni(e, t, n, r, a, o) {
var s = 0;
if (r = e, typeof r == "function") Ai(r) && (s = 1);
- else if (typeof r == "string") s = Qm(e, n, ye.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ else if (typeof r == "string") s = $m(e, n, ye.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
case re: return e = ki(31, n, t, a), e.elementType = re, e.lanes = o, e;
case k: return Pi(n.children, a, o, t);
@@ -11787,37 +11787,37 @@ var Cf = /* @__PURE__ */ h(((e) => {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
switch (t[xt] = e, t[St] = r, n) {
case "dialog":
- Yf("cancel", t), Yf("close", t);
+ Xf("cancel", t), Xf("close", t);
break;
case "iframe":
case "object":
case "embed":
- Yf("load", t);
+ Xf("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Kf.length; n++) Yf(Kf[n], t);
+ for (n = 0; n < qf.length; n++) Xf(qf[n], t);
break;
case "source":
- Yf("error", t);
+ Xf("error", t);
break;
case "img":
case "image":
case "link":
- Yf("error", t), Yf("load", t);
+ Xf("error", t), Xf("load", t);
break;
case "details":
- Yf("toggle", t);
+ Xf("toggle", t);
break;
case "input":
- Yf("invalid", t), tn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Xf("invalid", t), tn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- Yf("invalid", t);
+ Xf("invalid", t);
break;
- case "textarea": Yf("invalid", t), on(t, r.value, r.defaultValue, r.children);
+ case "textarea": Xf("invalid", t), on(t, r.value, r.defaultValue, r.children);
}
- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || cp(t.textContent, n) ? (r.popover != null && (Yf("beforetoggle", t), Yf("toggle", t)), r.onScroll != null && Yf("scroll", t), r.onScrollEnd != null && Yf("scrollend", t), r.onClick != null && (t.onclick = hn), t = !0) : t = !1, t || aa(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || lp(t.textContent, n) ? (r.popover != null && (Xf("beforetoggle", t), Xf("toggle", t)), r.onScroll != null && Xf("scroll", t), r.onScrollEnd != null && Xf("scrollend", t), r.onClick != null && (t.onclick = hn), t = !0) : t = !1, t || aa(e, !0);
}
function sa(e) {
for (ea = e.return; ea;) switch (ea.tag) {
@@ -11837,13 +11837,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (e !== ea) return !1;
if (!na) return sa(e), na = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Sp(e.type, e.memoizedProps)), n = !n), n && ta && aa(e), sa(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Cp(e.type, e.memoizedProps)), n = !n), n && ta && aa(e), sa(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ta = _m(e);
+ ta = vm(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ta = _m(e);
- } else t === 27 ? (t = ta, jp(e.type) ? (e = q, q = null, ta = e) : ta = t) : ta = ea ? gm(e.stateNode.nextSibling) : null;
+ ta = vm(e);
+ } else t === 27 ? (t = ta, Mp(e.type) ? (e = K, K = null, ta = e) : ta = t) : ta = ea ? _m(e.stateNode.nextSibling) : null;
return !0;
}
function la() {
@@ -11851,7 +11851,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
function ua() {
var e = ra;
- return e !== null && (_d === null ? _d = e : _d.push.apply(_d, e), ra = null), e;
+ return e !== null && (vd === null ? vd = e : vd.push.apply(vd, e), ra = null), e;
}
function da(e) {
ra === null ? ra = [e] : ra.push(e);
@@ -12008,7 +12008,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
function Ra(e, t) {
if (Pa === null) {
var n = Pa = [];
- Fa = 0, Ia = Vf(), La = {
+ Fa = 0, Ia = Hf(), La = {
status: "pending",
value: void 0,
then: function(e) {
@@ -12044,9 +12044,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
var Va = I.S;
I.S = function(e, t) {
- if (bd = ze(), typeof t == "object" && t && typeof t.then == "function" && Ra(e, t), Ma !== null) for (var n = Df; n !== null;) ja(n, Ma), n = n.next;
+ if (xd = ze(), typeof t == "object" && t && typeof t.then == "function" && Ra(e, t), Ma !== null) for (var n = Of; n !== null;) ja(n, Ma), n = n.next;
if (n = e.types, n !== null) {
- for (var r = Df; r !== null;) ja(r, n), r = r.next;
+ for (var r = Of; r !== null;) ja(r, n), r = r.next;
if (Ia !== 0) {
r = Ma, r === null && (r = Ma = []);
for (var i = 0; i < n.length; i++) {
@@ -12420,7 +12420,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (rd & f) === f : (r & f) === f) {
+ if (p ? (id & f) === f : (r & f) === f) {
f !== 0 && f === Ia && (vo = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
@@ -12461,7 +12461,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), dd |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), fd |= o, e.lanes = o, e.memoizedState = d;
}
}
function xo(e, t) {
@@ -12474,13 +12474,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
var Co = ge(null), wo = ge(0);
function To(e, t) {
- e = ld, ve(wo, e), ve(Co, t), ld = e | t.baseLanes;
+ e = ud, ve(wo, e), ve(Co, t), ud = e | t.baseLanes;
}
function Eo() {
- ve(wo, ld), ve(Co, Co.current);
+ ve(wo, ud), ve(Co, Co.current);
}
function Do() {
- ld = wo.current, _e(Co), _e(wo);
+ ud = wo.current, _e(Co), _e(wo);
}
var Oo = ge(null), ko = null;
function Ao(e) {
@@ -12510,7 +12510,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
- if (n !== null && (n = n.dehydrated, n === null || pm(n) || mm(n))) return t;
+ if (n !== null && (n = n.dehydrated, n === null || mm(n) || hm(n))) return t;
} else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {
if (t.flags & 128) return t;
} else if (t.child !== null) {
@@ -12668,7 +12668,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (zo & f) === f : (rd & f) === f) {
+ if (f === u.lane ? (zo & f) === f : (id & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -12690,7 +12690,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, U.lanes |= p, dd |= p;
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, U.lanes |= p, fd |= p;
f = u.action, Wo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
@@ -12700,7 +12700,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, U.lanes |= f, dd |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, U.lanes |= f, fd |= f;
u = u.next;
} while (u !== null && u !== t);
if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Mc = !0, d && (n = La, n !== null))) throw n;
@@ -12762,7 +12762,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
function ys(e) {
var t = wi(e, 2);
- t !== null && zd(t, e, 2);
+ t !== null && Bd(t, e, 2);
}
function bs(e) {
var t = is();
@@ -12867,7 +12867,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
i = null;
break b;
}
- if (i = gm(i.nextSibling), i === null) {
+ if (i = _m(i.nextSibling), i === null) {
i = null;
break b;
}
@@ -12875,7 +12875,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- ta = gm(i.nextSibling), r = i.data === "F!";
+ ta = _m(i.nextSibling), r = i.data === "F!";
break a;
}
}
@@ -13026,10 +13026,10 @@ var Cf = /* @__PURE__ */ h(((e) => {
return n.memoizedState = [r, t], r;
}
function Ys(e, t, n) {
- return n === void 0 || zo & 1073741824 && !(rd & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ld(), U.lanes |= e, dd |= e, n);
+ return n === void 0 || zo & 1073741824 && !(id & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Rd(), U.lanes |= e, fd |= e, n);
}
function Xs(e, t, n, r) {
- return Lr(n, t) ? n : Co.current === null ? !(zo & 106) || zo & 1073741824 && !(rd & 261930) ? (Mc = !0, e.memoizedState = n) : (e = Ld(), U.lanes |= e, dd |= e, t) : (e = Ys(e, n, r), Lr(e, t) || (Mc = !0), e);
+ return Lr(n, t) ? n : Co.current === null ? !(zo & 106) || zo & 1073741824 && !(id & 261930) ? (Mc = !0, e.memoizedState = n) : (e = Rd(), U.lanes |= e, fd |= e, t) : (e = Ys(e, n, r), Lr(e, t) || (Mc = !0), e);
}
function Zs(e, t, n, r, i) {
var a = L.p;
@@ -13038,13 +13038,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
s.types = o === null ? null : o.types, I.T = s, lc(e, !1, t, n);
try {
var c = i(), l = I.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? cc(e, t, Ba(c, r), Id(e)) : cc(e, t, r, Id(e));
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? cc(e, t, Ba(c, r), Ld(e)) : cc(e, t, r, Ld(e));
} catch (n) {
cc(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, Id());
+ }, Ld());
} finally {
L.p = a, o !== null && s.types !== null && (o.types = s.types), I.T = o;
}
@@ -13090,7 +13090,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
function tc(e) {
var t = ec(e);
- t.next === null && (t = e.alternate.memoizedState), cc(e, t.next.queue, {}, Id());
+ t.next === null && (t = e.alternate.memoizedState), cc(e, t.next.queue, {}, Ld());
}
function nc() {
return Sa(fh);
@@ -13106,17 +13106,17 @@ var Cf = /* @__PURE__ */ h(((e) => {
switch (t.tag) {
case 24:
case 3:
- var n = Id();
+ var n = Ld();
e = mo(n);
var r = ho(t, e, n);
- r !== null && (zd(r, t, n), go(r, t, n)), t = { cache: ka() }, e.payload = t;
+ r !== null && (Bd(r, t, n), go(r, t, n)), t = { cache: ka() }, e.payload = t;
return;
}
t = t.return;
}
}
function oc(e, t, n) {
- var r = Id();
+ var r = Ld();
n = {
lane: r,
revertLane: 0,
@@ -13125,10 +13125,10 @@ var Cf = /* @__PURE__ */ h(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, uc(e) ? dc(t, n) : (n = Ci(e, t, n, r), n !== null && (zd(n, e, r), fc(n, t, r)));
+ }, uc(e) ? dc(t, n) : (n = Ci(e, t, n, r), n !== null && (Bd(n, e, r), fc(n, t, r)));
}
function sc(e, t, n) {
- cc(e, t, n, Id());
+ cc(e, t, n, Ld());
}
function cc(e, t, n, r) {
var i = {
@@ -13147,14 +13147,14 @@ var Cf = /* @__PURE__ */ h(((e) => {
var o = t.lastRenderedState, s = a(o, n);
if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return Si(e, t, i, 0), nd === null && xi(), !1;
} catch {}
- if (n = Ci(e, t, i, r), n !== null) return zd(n, e, r), fc(n, t, r), !0;
+ if (n = Ci(e, t, i, r), n !== null) return Bd(n, e, r), fc(n, t, r), !0;
}
return !1;
}
function lc(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: Vf(),
+ revertLane: Hf(),
gesture: null,
action: r,
hasEagerState: !1,
@@ -13162,7 +13162,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
next: null
}, uc(e)) {
if (t) throw Error(i(479));
- } else t = Ci(e, n, r, 2), t !== null && zd(t, e, 2);
+ } else t = Ci(e, n, r, 2), t !== null && Bd(t, e, 2);
}
function uc(e) {
var t = e.alternate;
@@ -13280,7 +13280,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
n = n();
} else {
if (n = t(), nd === null) throw Error(i(349));
- rd & 127 || hs(r, t, n);
+ id & 127 || hs(r, t, n);
}
a.memoizedState = n;
var o = {
@@ -13400,18 +13400,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
var vc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = Id(), i = mo(r);
- i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (zd(t, e, r), go(t, e, r));
+ var r = Ld(), i = mo(r);
+ i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (Bd(t, e, r), go(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = Id(), i = mo(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (zd(t, e, r), go(t, e, r));
+ var r = Ld(), i = mo(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (Bd(t, e, r), go(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = Id(), r = mo(n);
- r.tag = 2, t != null && (r.callback = t), t = ho(e, r, n), t !== null && (zd(t, e, n), go(t, e, n));
+ var n = Ld(), r = mo(n);
+ r.tag = 2, t != null && (r.callback = t), t = ho(e, r, n), t !== null && (Bd(t, e, n), go(t, e, n));
}
};
function yc(e, t, n, r, i, a, o) {
@@ -13478,7 +13478,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Ec(t, n, r), typeof i != "function" && (Cd === null ? Cd = /* @__PURE__ */ new Set([this]) : Cd.add(this));
+ Ec(t, n, r), typeof i != "function" && (wd === null ? wd = /* @__PURE__ */ new Set([this]) : wd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
@@ -13489,26 +13489,26 @@ var Cf = /* @__PURE__ */ h(((e) => {
switch (n.tag) {
case 31:
case 13:
- case 19: return ko === null ? Zd() : n.alternate === null && ud === 0 && (ud = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), bf(e, r, a)), !1;
+ case 19: return ko === null ? Qd() : n.alternate === null && dd === 0 && (dd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), xf(e, r, a)), !1;
case 22: return n.flags |= 65536, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), bf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), xf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return bf(e, r, a), Zd(), !1;
+ return xf(e, r, a), Qd(), !1;
}
- if (na) return t = Oo.current, t === null ? (r !== H && (t = Error(i(423), { cause: r }), da(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = Dc(e.stateNode, r, a), _o(e, a), ud !== 4 && (ud = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== H && (e = Error(i(422), { cause: r }), da(zi(e, n)))), !1;
+ if (na) return t = Oo.current, t === null ? (r !== H && (t = Error(i(423), { cause: r }), da(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = Dc(e.stateNode, r, a), _o(e, a), dd !== 4 && (dd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== H && (e = Error(i(422), { cause: r }), da(zi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = zi(o, n), gd === null ? gd = [o] : gd.push(o), ud !== 4 && (ud = 2), t === null) return !0;
+ if (o = zi(o, n), _d === null ? _d = [o] : _d.push(o), dd !== 4 && (dd = 2), t === null) return !0;
r = zi(r, n), n = t;
do {
switch (n.tag) {
case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Dc(n.stateNode, r, e), _o(n, e), !1;
case 1:
- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (Cd === null || !Cd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Oc(a), kc(a, e, n, r), _o(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (wd === null || !wd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Oc(a), kc(a, e, n, r), _o(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -13608,7 +13608,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
baseLanes: 0,
cachePool: null
}, Rc(null, e);
- if (jo(t), (e = ta) ? (e = fm(e, ia), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ if (jo(t), (e = ta) ? (e = pm(e, ia), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
treeContext: Ki === null ? null : {
id: qi,
@@ -13630,11 +13630,11 @@ var Cf = /* @__PURE__ */ h(((e) => {
else throw Error(i(558));
} else if (Mc || ya(e, t, n, !1), a = (n & e.childLanes) !== 0, Mc || a) {
if (Co.current === null) {
- if (r = nd, r !== null && (s = ht(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), zd(r, e, s), jc;
- Zd();
+ if (r = nd, r !== null && (s = ht(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Bd(r, e, s), jc;
+ Qd();
}
t = Vc(e, t, n);
- } else e = o.treeContext, ta = gm(s.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Bc(t, r), t.flags |= 134221824;
+ } else e = o.treeContext, ta = _m(s.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Bc(t, r), t.flags |= 134221824;
return t;
}
return e = ji(e.child, {
@@ -13693,13 +13693,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
};
}
function Xc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= md), e;
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= hd), e;
}
function Zc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Fo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
if (na) {
- if (i ? Ao(t) : No(), (e = ta) ? (e = fm(e, ia), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if (i ? Ao(t) : No(), (e = ta) ? (e = pm(e, ia), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
treeContext: Ki === null ? null : {
id: qi,
@@ -13708,7 +13708,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
retryLane: 536870912,
hydrationErrors: null
}, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw aa(t);
- return t.lanes = mm(e) ? 32 : 536870912, null;
+ return t.lanes = hm(e) ? 32 : 536870912, null;
}
return a = r.children, r = r.fallback, i ? (No(), i = t.mode, a = $c({
mode: "hidden",
@@ -13751,7 +13751,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
mode: "visible",
children: a.children
}, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, co(t, e.child, null, c), a = t.child, a.memoizedState = Yc(c), a.childLanes = Xc(e, r, c), t.memoizedState = Jc, Rc(null, a)) : (No(), t.child = e.child, t.flags |= 128, null);
- if (Ao(t), mm(o)) {
+ if (Ao(t), hm(o)) {
if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;
return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, da({
value: a,
@@ -13761,10 +13761,10 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
if (Mc || ya(e, t, c, !1), r = (c & e.childLanes) !== 0, Mc || r) {
if (Co.current !== null) return el(e, t, c);
- if (r = nd, r !== null && (a = ht(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), zd(r, e, a), jc;
- return pm(o) || Zd(), el(e, t, c);
+ if (r = nd, r !== null && (a = ht(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Bd(r, e, a), jc;
+ return mm(o) || Qd(), el(e, t, c);
}
- return pm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ta = gm(o.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Qc(t, a.children), t.flags |= 134221824, t);
+ return mm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ta = _m(o.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Qc(t, a.children), t.flags |= 134221824, t);
}
function nl(e, t, n) {
e.lanes |= t;
@@ -13846,7 +13846,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
return ha(t, t.type, r.value), Nc(e, t, r.children, n), t.child;
}
function cl(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), dd |= t.lanes, (n & t.childLanes) === 0) {
+ if (e !== null && (t.dependencies = e.dependencies), fd |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
if (ya(e, t, n, !1), (n & t.childLanes) === 0) return null;
} else return null;
@@ -13963,7 +13963,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (ta = gm(e.firstChild), ea = t, na = !0, ra = null, ia = !0, n = lo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (ta = _m(e.firstChild), ea = t, na = !0, ra = null, ia = !0, n = lo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
if (la(), r === a) {
t = cl(e, t, n);
@@ -13974,10 +13974,10 @@ var Cf = /* @__PURE__ */ h(((e) => {
t = t.child;
}
return t;
- case 26: return Uc(e, t), e === null ? (n = zm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : na || (t.stateNode = xp(t.type, t.pendingProps, xe.current, t)) : t.memoizedState = zm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Te(t), e === null && na && (r = t.stateNode = xm(t.type, t.pendingProps, xe.current), ea = t, ia = !0, a = ta, jp(t.type) ? (q = a, ta = gm(r.firstChild)) : ta = a), Nc(e, t, t.pendingProps.children, n), Uc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && na && ((a = r = ta) && (r = um(r, t.type, t.pendingProps, ia), r === null ? a = !1 : (t.stateNode = r, ea = t, ta = gm(r.firstChild), ia = !1, a = !0)), a || aa(t)), Te(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Sp(a, o) ? r = null : s !== null && Sp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Zo(e, t, es, null, null, n), fh._currentValue = a), Uc(e, t), Nc(e, t, r, n), t.child;
- case 6: return e === null && na && ((e = n = ta) && (n = dm(n, t.pendingProps, ia), n === null ? e = !1 : (t.stateNode = n, ea = t, ta = null, e = !0)), e || aa(t)), null;
+ case 26: return Uc(e, t), e === null ? (n = Bm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : na || (t.stateNode = Sp(t.type, t.pendingProps, xe.current, t)) : t.memoizedState = Bm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Te(t), e === null && na && (r = t.stateNode = Sm(t.type, t.pendingProps, xe.current), ea = t, ia = !0, a = ta, Mp(t.type) ? (K = a, ta = _m(r.firstChild)) : ta = a), Nc(e, t, t.pendingProps.children, n), Uc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && na && ((a = r = ta) && (r = dm(r, t.type, t.pendingProps, ia), r === null ? a = !1 : (t.stateNode = r, ea = t, ta = _m(r.firstChild), ia = !1, a = !0)), a || aa(t)), Te(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Cp(a, o) ? r = null : s !== null && Cp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Zo(e, t, es, null, null, n), fh._currentValue = a), Uc(e, t), Nc(e, t, r, n), t.child;
+ case 6: return e === null && na && ((e = n = ta) && (n = fm(n, t.pendingProps, ia), n === null ? e = !1 : (t.stateNode = n, ea = t, ta = null, e = !0)), e || aa(t)), null;
case 13: return Zc(e, t, n);
case 4: return Ce(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = co(t, null, r, n) : Nc(e, t, r, n), t.child;
case 11: return Pc(e, t, t.type, t.pendingProps, n);
@@ -14013,23 +14013,23 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
function pl(e, t, n, r, i) {
var a;
- if ((a = !!(e.mode & 32)) && (a = n === null ? $m(t, r) : $m(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
+ if ((a = !!(e.mode & 32)) && (a = n === null ? eh(t, r) : eh(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
- else if (Jd()) e.flags |= 8192;
+ else if (Yd()) e.flags |= 8192;
else throw $a = Ya, qa;
}
} else e.flags &= -16777217;
}
function ml(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
- else if (e.flags |= 16777216, !eh(t)) {
- if (Jd()) e.flags |= 8192;
+ else if (e.flags |= 16777216, !th(t)) {
+ if (Yd()) e.flags |= 8192;
else throw $a = Ya, qa;
}
}
function hl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : lt(), e.lanes |= t, hd |= t);
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : lt(), e.lanes |= t, gd |= t);
}
function gl(e, t) {
if (!na) switch (e.tailMode) {
@@ -14073,7 +14073,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (t.stateNode === null) throw Error(i(166));
return _l(t), t.subtreeFlags &= -33554433, null;
}
- e = ye.current, ca(t) ? oa(t, e) : (e = xm(a, r, n), t.stateNode = e, fl(t));
+ e = ye.current, ca(t) ? oa(t, e) : (e = Sm(a, r, n), t.stateNode = e, fl(t));
}
return _l(t), t.subtreeFlags &= -33554433, null;
case 5:
@@ -14085,7 +14085,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
if (o = ye.current, ca(t)) oa(t, o);
else {
- var s = vp(xe.current);
+ var s = yp(xe.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -14124,7 +14124,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (dp(o, a, r), a) {
+ a: switch (fp(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -14149,8 +14149,8 @@ var Cf = /* @__PURE__ */ h(((e) => {
case 27:
case 5: r = a.memoizedProps;
}
- e[xt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || cp(e.nodeValue, n)), e || aa(t, !0);
- } else e = vp(e).createTextNode(r), e[xt] = t, t.stateNode = e;
+ e[xt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || lp(e.nodeValue, n)), e || aa(t, !0);
+ } else e = yp(e).createTextNode(r), e[xt] = t, t.stateNode = e;
}
return _l(t), null;
case 31:
@@ -14180,27 +14180,27 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (!a) return t.flags & 256 ? (Po(t), t) : (Po(t), null);
}
return Po(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), hl(t, t.updateQueue), _l(t), null);
- case 4: return we(), e === null && Qf(t.stateNode.containerInfo), t.flags |= 67108864, _l(t), null;
+ case 4: return we(), e === null && $f(t.stateNode.containerInfo), t.flags |= 67108864, _l(t), null;
case 10: return ga(t.type), _l(t), null;
case 19:
if (Lo(t), r = t.memoizedState, r === null) return _l(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
if (a) gl(r, !1);
else {
- if (ud !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (dd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
if (o = Ro(e), o !== null) {
for (t.flags |= 128, gl(r, !1), e = o.updateQueue, t.updateQueue = e, hl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;
return Io(t, Fo.current & 1 | 2), na && Yi(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && ze() > xd && (t.flags |= 128, a = !0, gl(r, !1), t.lanes = 4194304);
+ r.tail !== null && ze() > Sd && (t.flags |= 128, a = !0, gl(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
if (e = Ro(o), e !== null) {
if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, hl(t, e), gl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !na) return _l(t), null;
- } else 2 * ze() - r.renderingStartTime > xd && n !== 536870912 && (t.flags |= 128, a = !0, gl(r, !1), t.lanes = 4194304);
+ } else 2 * ze() - r.renderingStartTime > Sd && n !== 536870912 && (t.flags |= 128, a = !0, gl(r, !1), t.lanes = 4194304);
}
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
}
@@ -14304,7 +14304,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
} while (n !== i);
}
} catch (e) {
- yf(t, t.return, e);
+ bf(t, t.return, e);
}
}
function Sl(e, t, n) {
@@ -14322,7 +14322,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
l();
} catch (e) {
- yf(i, c, e);
+ bf(i, c, e);
}
}
}
@@ -14330,7 +14330,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
} while (r !== a);
}
} catch (e) {
- yf(t, t.return, e);
+ bf(t, t.return, e);
}
}
function Cl(e) {
@@ -14340,7 +14340,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
So(t, n);
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
}
}
@@ -14349,7 +14349,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
n.componentWillUnmount();
} catch (n) {
- yf(e, t, n);
+ bf(e, t, n);
}
}
function Tl(e, t) {
@@ -14364,12 +14364,12 @@ var Cf = /* @__PURE__ */ h(((e) => {
break;
case 30:
var i = e.stateNode, a = mi(e.memoizedProps, i);
- (i.ref === null || i.ref.name !== a) && (i.ref = Up(a)), r = i.ref;
+ (i.ref === null || i.ref.name !== a) && (i.ref = Wp(a)), r = i.ref;
break;
case 7:
if (e.stateNode === null) {
- var o = new Wp(e);
- f(e.child, !1, om, o, void 0, void 0), e.stateNode = o;
+ var o = new Gp(e);
+ f(e.child, !1, sm, o, void 0, void 0), e.stateNode = o;
}
r = e.stateNode;
break;
@@ -14378,7 +14378,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- yf(e, t, n);
+ bf(e, t, n);
}
}
function El(e, t) {
@@ -14387,26 +14387,26 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (typeof r == "function") try {
r();
} catch (n) {
- yf(e, t, n);
+ bf(e, t, n);
} finally {
e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
}
else if (typeof n == "function") try {
n(null);
} catch (n) {
- yf(e, t, n);
+ bf(e, t, n);
}
else n.current = null;
}
}
function Dl(e, t) {
- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) cm(e.stateNode, t[n]);
+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) lm(e.stateNode, t[n]);
}
function Ol(e) {
- for (var t = e.return; t !== null && (jl(t) && cm(e.stateNode, t.stateNode), !Al(t));) t = t.return;
+ for (var t = e.return; t !== null && (jl(t) && lm(e.stateNode, t.stateNode), !Al(t));) t = t.return;
}
function kl(e) {
- for (var t = e.return; t !== null && (jl(t) && lm(e.stateNode, t.stateNode), !Al(t));) t = t.return;
+ for (var t = e.return; t !== null && (jl(t) && um(e.stateNode, t.stateNode), !Al(t));) t = t.return;
}
function Al(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 27;
@@ -14427,19 +14427,19 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
}
function Nl(e, t, n) {
try {
var r = e.stateNode;
- pp(r, e.type, n, t), r[St] = t;
+ mp(r, e.type, n, t), r[St] = t;
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
}
function Pl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && jp(e.type) || e.tag === 4;
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Mp(e.type) || e.tag === 4;
}
function Fl(e) {
a: for (;;) {
@@ -14448,7 +14448,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
e = e.return;
}
for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
- if (e.tag === 27 && jp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Mp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
e.child.return = e, e = e.child;
}
if (!(e.flags & 2)) return e.stateNode;
@@ -14457,20 +14457,20 @@ var Cf = /* @__PURE__ */ h(((e) => {
function Il(e, t, n, r) {
var i = e.tag;
if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = hn)), Dl(e, r), Ht = !0;
- else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, jp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Il(e, t, n, r), e = e.sibling; e !== null;) Il(e, t, n, r), e = e.sibling;
+ else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, Mp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Il(e, t, n, r), e = e.sibling; e !== null;) Il(e, t, n, r), e = e.sibling;
}
function Ll(e, t, n, r) {
var i = e.tag;
if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Dl(e, r), Ht = !0;
- else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, jp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Ll(e, t, n, r), e = e.sibling; e !== null;) Ll(e, t, n, r), e = e.sibling;
+ else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, Mp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Ll(e, t, n, r), e = e.sibling; e !== null;) Ll(e, t, n, r), e = e.sibling;
}
function Rl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- dp(t, r, n), t[xt] = e, t[St] = n;
+ fp(t, r, n), t[xt] = e, t[St] = n;
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
}
var zl = !1, Bl = null;
@@ -14491,17 +14491,17 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (e.tag === 5) {
var o = e.stateNode;
if (r !== null) {
- var s = Lp(o);
+ var s = Rp(o);
r.push(s), s.view && (a = !0);
- } else a || Lp(o).view && (a = !0);
- zl = !0, Pp(o, Wl === 0 ? t : t + "_" + Wl, n), Wl++;
+ } else a || Rp(o).view && (a = !0);
+ zl = !0, Fp(o, Wl === 0 ? t : t + "_" + Wl, n), Wl++;
} else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Kl(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
function ql(e, t) {
- for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || ql(e.child, t)), e = e.sibling;
+ for (; e !== null;) e.tag === 5 ? Ip(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || ql(e.child, t)), e = e.sibling;
}
function Jl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
@@ -14517,7 +14517,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
function Yl(e, t) {
if (e.tag === 30) {
var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Jl(e) : Gl(e, i, a, null, !1) ? (Jl(e), n.paired || t || Rd(e, r.onEnter)) : ql(e.child, !1);
+ a === "none" ? Jl(e) : Gl(e, i, a, null, !1) ? (Jl(e), n.paired || t || zd(e, r.onEnter)) : ql(e.child, !1);
} else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e, t), e = e.sibling;
else Jl(e);
}
@@ -14532,7 +14532,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
var i = t.get(r);
if (i !== void 0) {
var a = gi(n.default, n.share);
- if (a !== "none" && (Gl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Rd(e, n.onShare)) : ql(e.child, !1)), t.delete(r), t.size === 0) break;
+ if (a !== "none" && (Gl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, zd(e, n.onShare)) : ql(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
@@ -14545,7 +14545,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
function Zl(e) {
if (e.tag === 30) {
var t = e.memoizedProps, n = mi(t, e.stateNode), r = Bl === null ? void 0 : Bl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Gl(e, n, i, null, !1) ? r === void 0 ? Rd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Bl.delete(n), Rd(e, t.onShare)) : ql(e.child, !1)), Bl !== null && Xl(e);
+ i !== "none" && (Gl(e, n, i, null, !1) ? r === void 0 ? zd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Bl.delete(n), zd(e, t.onShare)) : ql(e.child, !1)), Bl !== null && Xl(e);
} else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;
else Bl !== null && Xl(e);
}
@@ -14583,7 +14583,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (t.tag === 5) {
var c = t.stateNode;
if (a !== null && Wl < a.length) {
- var l = a[Wl], u = Lp(c);
+ var l = a[Wl], u = Rp(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -14596,7 +14596,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
- e.flags & 4 && Pp(c, Wl === 0 ? n : n + "_" + Wl, i), s && e.flags & 4 || (Hl === null && (Hl = []), Hl.push(c, Wl === 0 ? r : r + "_" + Wl, t.memoizedProps)), Wl++;
+ e.flags & 4 && Fp(c, Wl === 0 ? n : n + "_" + Wl, i), s && e.flags & 4 || (Hl === null && (Hl = []), Hl.push(c, Wl === 0 ? r : r + "_" + Wl, t.memoizedProps)), Wl++;
} else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : nu(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
@@ -14608,18 +14608,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);
if (t) {
r = r.clones;
- var o = r === null ? null : r.map(Rp);
+ var o = r === null ? null : r.map(zp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Wl = 0, i = nu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Rd(e, n.onUpdate));
+ Wl = 0, i = nu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || zd(e, n.onUpdate));
} else e.subtreeFlags & 33554432 && ru(e, t);
e = e.sibling;
}
}
var iu = !1, au = !1, ou = !1, su = !1, cu = typeof WeakSet == "function" ? WeakSet : Set, lu = null, uu = !1, du = !1, fu = !1, pu = !1;
function mu(e, t, n) {
- if (e = e.containerInfo, gp = xh, e = Ur(e), Wr(e)) {
+ if (e = e.containerInfo, _p = xh, e = Ur(e), Wr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -14658,7 +14658,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
end: 0
};
} else r = null;
- for (_p = {
+ for (vp = {
focusedElem: e,
selectionRange: r
}, xh = !1, n = (n & 335544064) === n, lu = t, t = n ? 9270 : 1024; lu !== null;) {
@@ -14695,18 +14695,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
var s = xc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- yf(t, t.return, e);
+ bf(t, t.return, e);
}
}
break;
case 3:
if (a & 1024) {
- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) K(r);
+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) G(r);
else if (n === 1) switch (r.nodeName) {
case "HEAD":
case "HTML":
case "BODY":
- K(r);
+ G(r);
break;
default: r.textContent = "";
}
@@ -14743,7 +14743,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- yf(n, n.return, e);
+ bf(n, n.return, e);
}
else {
var i = xc(n.type, t.memoizedProps);
@@ -14751,7 +14751,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- yf(n, n.return, e);
+ bf(n, n.return, e);
}
}
}
@@ -14769,7 +14769,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
So(e, t);
} catch (e) {
- yf(n, n.return, e);
+ bf(n, n.return, e);
}
}
break;
@@ -14785,7 +14785,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
Iu(e, n), r & 4 && Tu(e, n);
break;
case 13:
- Iu(e, n), r & 4 && Eu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Cf.bind(null, n), hm(e, n))));
+ Iu(e, n), r & 4 && Eu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = wf.bind(null, n), gm(e, n))));
break;
case 22:
if (r = n.memoizedState !== null || iu, !r) {
@@ -14817,7 +14817,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
yu(e, t);
break;
@@ -14825,15 +14825,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
e.stateNode.nodeValue = t ? "" : e.memoizedProps, Ht = !0;
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
break;
case 18:
try {
var s = e.stateNode;
- t ? Np(s, !0) : Np(e.stateNode, !1);
+ t ? Pp(s, !0) : Pp(e.stateNode, !1);
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
break;
case 22:
@@ -14879,7 +14879,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
case 27:
au || El(n, t), kl(n);
var r = xu, i = Su;
- jp(n.type) && (xu = n.stateNode, Su = !1), Cu(e, t, n), Sm(n.stateNode, n.type, n.memoizedProps), xu = r, Su = i;
+ Mp(n.type) && (xu = n.stateNode, Su = !1), Cu(e, t, n), Cm(n.stateNode, n.type, n.memoizedProps), xu = r, Su = i;
break;
case 5: au || El(n, t), kl(n);
case 6:
@@ -14887,17 +14887,17 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (Su) try {
(xu.nodeType === 9 ? xu.body : xu.nodeName === "HTML" ? xu.ownerDocument.body : xu).removeChild(n.stateNode), Ht = !0;
} catch (e) {
- yf(n, t, e);
+ bf(n, t, e);
}
else try {
xu.removeChild(n.stateNode), Ht = !0;
} catch (e) {
- yf(n, t, e);
+ bf(n, t, e);
}
}
break;
case 18:
- xu !== null && (Su ? (e = xu, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Kh(e)) : Mp(xu, n.stateNode));
+ xu !== null && (Su ? (e = xu, Np(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Kh(e)) : Np(xu, n.stateNode));
break;
case 4:
r = xu, i = Su, xu = n.stateNode.containerInfo, Su = !0, Cu(e, t, n), xu = r, Su = i;
@@ -14932,7 +14932,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
Kh(e);
} catch (e) {
- yf(t, t.return, e);
+ bf(t, t.return, e);
}
}
}
@@ -14940,7 +14940,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
Kh(e);
} catch (e) {
- yf(t, t.return, e);
+ bf(t, t.return, e);
}
}
function Du(e) {
@@ -14959,7 +14959,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = Tf.bind(null, e, t);
+ var r = Ef.bind(null, e, t);
t.then(r, r);
}
});
@@ -14971,7 +14971,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
a: for (; l !== null;) {
switch (l.tag) {
case 27:
- if (jp(l.type)) {
+ if (Mp(l.type)) {
xu = l.stateNode, Su = !1;
break a;
}
@@ -15013,31 +15013,31 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (iu) e.stateNode = xp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (iu) e.stateNode = Sp(e.type, e.memoizedProps, t.containerInfo, e);
else {
a: {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[Dt] || r[xt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), dp(r, t, n), r[xt] = e, Pt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[Dt] || r[xt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), fp(r, t, n), r[xt] = e, Pt(r), t = r;
break a;
case "link":
- if (o = Xm("link", "href", a).get(t + (n.href || ""))) {
+ if (o = Zm("link", "href", a).get(t + (n.href || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && r.getAttribute("rel") === (n.rel == null ? null : n.rel) && r.getAttribute("title") === (n.title == null ? null : n.title) && r.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), dp(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), fp(r, t, n), a.head.appendChild(r);
break;
case "meta":
- if (o = Xm("meta", "content", a).get(t + (n.content || ""))) {
+ if (o = Zm("meta", "content", a).get(t + (n.content || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("content") === (n.content == null ? null : "" + n.content) && r.getAttribute("name") === (n.name == null ? null : n.name) && r.getAttribute("property") === (n.property == null ? null : n.property) && r.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && r.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), dp(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), fp(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
@@ -15045,9 +15045,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
e.stateNode = t;
}
- } else iu || Zm(o, e.type, e.stateNode);
- } else e.stateNode = Km(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Nl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || au || t.parentNode.removeChild(t)) : a.count--, n === null ? iu || Zm(o, e.type, e.stateNode) : Km(o, n, e.memoizedProps));
+ } else iu || Qm(o, e.type, e.stateNode);
+ } else e.stateNode = qm(o, n, e.memoizedProps);
+ } else a === n ? n === null && e.stateNode !== null && Nl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || au || t.parentNode.removeChild(t)) : a.count--, n === null ? iu || Qm(o, e.type, e.stateNode) : qm(o, n, e.memoizedProps));
}
break;
case 27:
@@ -15059,7 +15059,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
sn(t, ""), Ht = !0;
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
}
a & 4 && e.stateNode != null && (t = e.memoizedProps, Nl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (su = !0);
@@ -15071,20 +15071,20 @@ var Cf = /* @__PURE__ */ h(((e) => {
try {
n.nodeValue = t, Ht = !0;
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
}
break;
case 3:
- if (Ht = !1, Ym = null, o = Au, Au = Em(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (Ht = !1, Xm = null, o = Au, Au = Dm(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Kh(t.containerInfo);
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
su && (su = !1, Nu(e)), Ht = !1;
break;
case 4:
- a = ou, ou = iu, r = Ut(), o = Au, Au = Em(e.stateNode.containerInfo), ku(t, e, n), Mu(e), Au = o, Ht && du && (fu = !0), Ht = r, ou = a;
+ a = ou, ou = iu, r = Ut(), o = Au, Au = Dm(e.stateNode.containerInfo), ku(t, e, n), Mu(e), Au = o, Ht && du && (fu = !0), Ht = r, ou = a;
break;
case 12:
ku(t, e, n), Mu(e);
@@ -15093,7 +15093,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
break;
case 13:
- ku(t, e, n), Mu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (yd = ze()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
+ ku(t, e, n), Mu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (bd = ze()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
@@ -15150,7 +15150,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
default: throw Error(i(161));
}
} catch (t) {
- yf(e, e.return, t);
+ bf(e, e.return, t);
}
e.flags &= -3;
}
@@ -15175,7 +15175,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (e = Hl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
- Fp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
+ Ip(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
opacity: [0, 0],
pointerEvents: ["none", "none"]
}, {
@@ -15216,7 +15216,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
var a = e.memoizedProps, o = e.stateNode;
t = mi(a, o), o = mi(n.memoizedProps, o);
var s = gi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Wl = 0, t = nu(e, n, t, o, s, a, !0), Wl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Rd(e, e.memoizedProps.onUpdate), Hl = i) : i !== null && (i.push.apply(i, Hl), Hl = i), uu = e.flags & 32 ? !0 : r;
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Wl = 0, t = nu(e, n, t, o, s, a, !0), Wl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (zd(e, e.memoizedProps.onUpdate), Hl = i) : i !== null && (i.push.apply(i, Hl), Hl = i), uu = e.flags & 32 ? !0 : r;
break;
default: Pu(t, e);
}
@@ -15239,7 +15239,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
var i = n.stateNode;
typeof i.componentWillUnmount == "function" && wl(n, n.return, i), Lu(n, r);
break;
- case 27: r & 2 && Sm(n.stateNode, n.type, n.memoizedProps);
+ case 27: r & 2 && Cm(n.stateNode, n.type, n.memoizedProps);
case 5:
El(n, n.return), n.tag !== 5 && n.tag !== 27 || kl(n), Lu(n, r);
break;
@@ -15274,7 +15274,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (Ru(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- yf(r, r.return, e);
+ bf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
@@ -15282,7 +15282,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
var l = i.shared.hiddenCallbacks;
if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) xo(l[i], c);
} catch (e) {
- yf(r, r.return, e);
+ bf(r, r.return, e);
}
}
s && o & 64 && Cl(a), Tl(a, a.return);
@@ -15295,7 +15295,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
Ol(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || iu || Zm(Em(c.ownerDocument), a.type, c), Ru(i, a, n), s && r === null && o & 4 && Ml(a), Tl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || iu || Qm(Dm(c.ownerDocument), a.type, c), Ru(i, a, n), s && r === null && o & 4 && Ml(a), Tl(a, a.return);
break;
case 12:
Ru(i, a, n);
@@ -15353,7 +15353,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
} catch (e) {
- yf(t, t.return, e);
+ bf(t, t.return, e);
}
} else Vu(e, t, n, r);
break;
@@ -15420,15 +15420,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
function qu(e, t, n) {
switch (e.tag) {
case 26:
- Ku(e, t, n), e.flags & Gu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && nh(n, e)) : rh(n, Au, e.memoizedState, e.memoizedProps));
+ Ku(e, t, n), e.flags & Gu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && rh(n, e)) : ih(n, Au, e.memoizedState, e.memoizedProps));
break;
case 5:
- Ku(e, t, n), e.flags & Gu && (e = e.stateNode, (t & 335544128) === t && nh(n, e));
+ Ku(e, t, n), e.flags & Gu && (e = e.stateNode, (t & 335544128) === t && rh(n, e));
break;
case 3:
case 4:
var r = Au;
- Au = Em(e.stateNode.containerInfo), Ku(e, t, n), Au = r;
+ Au = Dm(e.stateNode.containerInfo), Ku(e, t, n), Au = r;
break;
case 22:
e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Gu, Gu = 16777216, Ku(e, t, n), Gu = r) : Ku(e, t, n));
@@ -15549,38 +15549,38 @@ var Cf = /* @__PURE__ */ h(((e) => {
cacheSignal: function() {
return Sa(Oa).controller.signal;
}
- }, ed = typeof WeakMap == "function" ? WeakMap : Map, td = 0, nd = null, W = null, rd = 0, id = 0, ad = null, od = !1, sd = !1, cd = !1, ld = 0, ud = 0, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = null, _d = null, vd = !1, yd = 0, bd = 0, xd = Infinity, Sd = null, Cd = null, wd = 0, Td = null, Ed = null, Dd = 0, Od = 0, kd = null, Ad = null, jd = null, Md = null, Nd = null, Pd = 0, Fd = null;
- function Id() {
- return td & 2 && rd !== 0 ? rd & -rd : I.T === null ? vt() : Vf();
- }
+ }, ed = typeof WeakMap == "function" ? WeakMap : Map, td = 0, nd = null, rd = null, id = 0, ad = 0, od = null, sd = !1, cd = !1, ld = !1, ud = 0, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = null, vd = null, yd = !1, bd = 0, xd = 0, Sd = Infinity, Cd = null, wd = null, Td = 0, Ed = null, Dd = null, Od = 0, kd = 0, Ad = null, jd = null, Md = null, Nd = null, Pd = null, Fd = 0, Id = null;
function Ld() {
- if (md === 0) {
- if (!(rd & 536870912) || na) {
+ return td & 2 && id !== 0 ? id & -id : I.T === null ? vt() : Hf();
+ }
+ function Rd() {
+ if (hd === 0) {
+ if (!(id & 536870912) || na) {
var e = nt;
- nt <<= 1, !(nt & 3932160) && (nt = 262144), md = e;
- } else md = 536870912;
+ nt <<= 1, !(nt & 3932160) && (nt = 262144), hd = e;
+ } else hd = 536870912;
}
- return e = Oo.current, e !== null && (e.flags |= 32), md;
+ return e = Oo.current, e !== null && (e.flags |= 32), hd;
}
- function Rd(e, t) {
+ function zd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Up(mi(e.memoizedProps, n))), Md === null && (Md = []), Md.push(t.bind(null, r));
+ r === null && (r = n.ref = Wp(mi(e.memoizedProps, n))), Nd === null && (Nd = []), Nd.push(t.bind(null, r));
}
}
- function zd(e, t, n) {
- (e === nd && (id === 2 || id === 9) || e.cancelPendingCommit !== null) && (Kd(e, 0), Ud(e, rd, md, !1)), dt(e, n), (!(td & 2) || e !== nd) && (e === nd && (!(td & 2) && (fd |= n), ud === 4 && Ud(e, rd, md, !1)), Nf(e));
- }
function Bd(e, t, n) {
+ (e === nd && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) && (qd(e, 0), Wd(e, id, hd, !1)), dt(e, n), (!(td & 2) || e !== nd) && (e === nd && (!(td & 2) && (pd |= n), dd === 4 && Wd(e, id, hd, !1)), Pf(e));
+ }
+ function Vd(e, t, n) {
if (td & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ot(e, t), a = r ? ef(e, t) : Qd(e, t, !0), o = r;
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ot(e, t), a = r ? tf(e, t) : $d(e, t, !0), o = r;
do {
if (a === 0) {
- sd && !r && Ud(e, t, 0, !1);
+ cd && !r && Wd(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Hd(n)) {
- a = Qd(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !Ud(n)) {
+ a = $d(e, t, !1), o = !1;
continue;
}
if (a === 2) {
@@ -15590,14 +15590,14 @@ var Cf = /* @__PURE__ */ h(((e) => {
t = s;
a: {
var c = e;
- a = gd;
+ a = _d;
var l = c.current.memoizedState.isDehydrated;
- if (l && (Kd(c, s).flags |= 256), s = Qd(c, s, !1), s !== 2 && s !== 6) {
- if (cd && !l) {
- c.errorRecoveryDisabledLanes |= o, fd |= o, a = 4;
+ if (l && (qd(c, s).flags |= 256), s = $d(c, s, !1), s !== 2 && s !== 6) {
+ if (ld && !l) {
+ c.errorRecoveryDisabledLanes |= o, pd |= o, a = 4;
break a;
}
- o = _d, _d = a, o !== null && (_d === null ? _d = o : _d.push.apply(_d, o));
+ o = vd, vd = a, o !== null && (vd === null ? vd = o : vd.push.apply(vd, o));
}
a = s;
}
@@ -15605,7 +15605,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
}
if (a === 1) {
- Kd(e, 0), Ud(e, t, 0, !0);
+ qd(e, 0), Wd(e, t, 0, !0);
break;
}
a: {
@@ -15614,27 +15614,27 @@ var Cf = /* @__PURE__ */ h(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Ud(r, t, md, !od);
+ Wd(r, t, hd, !sd);
break a;
case 2:
- _d = null;
+ vd = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = yd + 300 - ze(), 10 < a)) {
- if (Ud(r, t, md, !od), at(r, 0, !0) !== 0) break a;
- Dd = t, r.timeoutHandle = Tp(Vd.bind(null, r, n, _d, Sd, vd, t, md, fd, hd, od, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = bd + 300 - ze(), 10 < a)) {
+ if (Wd(r, t, hd, !sd), at(r, 0, !0) !== 0) break a;
+ Od = t, r.timeoutHandle = Ep(Hd.bind(null, r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, "Throttled", -0, 0), a);
break a;
}
- Vd(r, n, _d, Sd, vd, t, md, fd, hd, od, o, null, -0, 0);
+ Hd(r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, null, -0, 0);
}
break;
} while (1);
- Nf(e);
+ Pf(e);
}
- function Vd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Hd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
e.timeoutHandle = -1;
var m = t.subtreeFlags, h = (a & 335544064) === a;
if (d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -15646,13 +15646,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
waitingForImages: !0,
waitingForViewTransition: !1,
unsuspend: hn
- }, Bl = null, qu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = sh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? yd - ze() : (a & 4194048) === a ? bd - ze() : 0, m = ah(d, m), m !== null)) {
- Dd = a, e.cancelPendingCommit = m(cf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Ud(e, a, o, !l);
+ }, Bl = null, qu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = ch.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? bd - ze() : (a & 4194048) === a ? xd - ze() : 0, m = oh(d, m), m !== null)) {
+ Od = a, e.cancelPendingCommit = m(lf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Wd(e, a, o, !l);
return;
}
- cf(e, t, a, n, r, i, o, s, c, l, u, d);
+ lf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Hd(e) {
+ function Ud(e) {
for (var t = e;;) {
var n = t.tag;
if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
@@ -15676,247 +15676,247 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return !0;
}
- function Ud(e, t, n, r) {
- t = st(e, t), t &= ~pd, t &= ~fd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Wd(e, t, n, r) {
+ t = st(e, t), t &= ~md, t &= ~pd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
var a = 31 - Ze(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
n !== 0 && pt(e, n, t);
}
- function Wd() {
- return td & 6 ? !0 : (Pf(0, !1), !1);
- }
function Gd() {
- if (W !== null) {
- if (id === 0) var e = W.return;
- else e = W, ma = pa = null, rs(e), no = null, ro = 0, e = W;
+ return td & 6 ? !0 : (Ff(0, !1), !1);
+ }
+ function Kd() {
+ if (rd !== null) {
+ if (ad === 0) var e = rd.return;
+ else e = rd, ma = pa = null, rs(e), no = null, ro = 0, e = rd;
for (; e !== null;) bl(e.alternate, e), e = e.return;
- W = null;
+ rd = null;
}
}
- function Kd(e, t) {
+ function qd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, Ep(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Dd = 0, Gd(), nd = e, W = n = ji(e.current, null), rd = t, id = 0, ad = null, od = !1, sd = ot(e, t), cd = !1, hd = md = pd = fd = dd = ud = 0, _d = gd = null, vd = !1, ld = st(e, t), xi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, Dp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Od = 0, Kd(), nd = e, rd = n = ji(e.current, null), id = t, ad = 0, od = null, sd = !1, cd = ot(e, t), ld = !1, gd = hd = md = pd = fd = dd = 0, vd = _d = null, yd = !1, ud = st(e, t), xi(), n;
}
- function qd(e, t) {
- U = null, I.H = pc, t === Ka || t === Ja ? (t = eo(), id = 3) : t === qa ? (t = eo(), id = 4) : id = t === jc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, ad = t, W === null && (ud = 1, Tc(e, zi(t, e.current)));
+ function Jd(e, t) {
+ U = null, I.H = pc, t === Ka || t === Ja ? (t = eo(), ad = 3) : t === qa ? (t = eo(), ad = 4) : ad = t === jc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, od = t, rd === null && (dd = 1, Tc(e, zi(t, e.current)));
}
- function Jd() {
+ function Yd() {
var e = Oo.current;
- return e === null ? !0 : (rd & 4194048) === rd ? ko === null : (rd & 62914560) === rd || rd & 536870912 ? e === ko : !1;
+ return e === null ? !0 : (id & 4194048) === id ? ko === null : (id & 62914560) === id || id & 536870912 ? e === ko : !1;
}
- function Yd() {
+ function Xd() {
var e = I.H;
return I.H = pc, e === null ? pc : e;
}
- function Xd() {
+ function Zd() {
var e = I.A;
return I.A = $u, e;
}
- function Zd() {
- ud = 4, od || (rd & 4194048) !== rd && Oo.current !== null || (sd = !0), !(dd & 134217727) && !(fd & 134217727) || nd === null || Ud(nd, rd, md, !1);
+ function Qd() {
+ dd = 4, sd || (id & 4194048) !== id && Oo.current !== null || (cd = !0), !(fd & 134217727) && !(pd & 134217727) || nd === null || Wd(nd, id, hd, !1);
}
- function Qd(e, t, n) {
+ function $d(e, t, n) {
var r = td;
td |= 2;
- var i = Yd(), a = Xd();
- (nd !== e || rd !== t) && (Sd = null, Kd(e, t)), t = !1;
- var o = ud;
+ var i = Xd(), a = Zd();
+ (nd !== e || id !== t) && (Cd = null, qd(e, t)), t = !1;
+ var o = dd;
a: do
try {
- if (id !== 0 && W !== null) {
- var s = W, c = ad;
- switch (id) {
+ if (ad !== 0 && rd !== null) {
+ var s = rd, c = od;
+ switch (ad) {
case 8:
- Gd(), o = 6;
+ Kd(), o = 6;
break a;
case 3:
case 2:
case 9:
case 6:
Oo.current === null && (t = !0);
- var l = id;
- if (id = 0, ad = null, af(e, s, c, l), n && sd) {
+ var l = ad;
+ if (ad = 0, od = null, of(e, s, c, l), n && cd) {
o = 0;
break a;
}
break;
- default: l = id, id = 0, ad = null, af(e, s, c, l);
+ default: l = ad, ad = 0, od = null, of(e, s, c, l);
}
}
- $d(), o = ud;
+ ef(), o = dd;
break;
} catch (t) {
- qd(e, t);
+ Jd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, ma = pa = null, td = r, I.H = i, I.A = a, W === null && (nd = null, rd = 0, xi()), o;
+ return t && e.shellSuspendCounter++, ma = pa = null, td = r, I.H = i, I.A = a, rd === null && (nd = null, id = 0, xi()), o;
}
- function $d() {
- for (; W !== null;) nf(W);
+ function ef() {
+ for (; rd !== null;) rf(rd);
}
- function ef(e, t) {
+ function tf(e, t) {
var n = td;
td |= 2;
- var r = Yd(), a = Xd();
- nd !== e || rd !== t ? (Sd = null, xd = ze() + 500, Kd(e, t)) : sd = ot(e, t);
+ var r = Xd(), a = Zd();
+ nd !== e || id !== t ? (Cd = null, Sd = ze() + 500, qd(e, t)) : cd = ot(e, t);
a: do
try {
- if (id !== 0 && W !== null) {
- t = W;
- var o = ad;
- b: switch (id) {
+ if (ad !== 0 && rd !== null) {
+ t = rd;
+ var o = od;
+ b: switch (ad) {
case 1:
- id = 0, ad = null, af(e, t, o, 1);
+ ad = 0, od = null, of(e, t, o, 1);
break;
case 2:
case 9:
if (Xa(o)) {
- id = 0, ad = null, rf(t);
+ ad = 0, od = null, af(t);
break;
}
t = function() {
- id !== 2 && id !== 9 || nd !== e || (id = 7), Nf(e);
+ ad !== 2 && ad !== 9 || nd !== e || (ad = 7), Pf(e);
}, o.then(t, t);
break a;
case 3:
- id = 7;
+ ad = 7;
break a;
case 4:
- id = 5;
+ ad = 5;
break a;
case 7:
- Xa(o) ? (id = 0, ad = null, rf(t)) : (id = 0, ad = null, af(e, t, o, 7));
+ Xa(o) ? (ad = 0, od = null, af(t)) : (ad = 0, od = null, of(e, t, o, 7));
break;
case 5:
var s = null;
- switch (W.tag) {
- case 26: s = W.memoizedState;
+ switch (rd.tag) {
+ case 26: s = rd.memoizedState;
case 5:
case 27:
- var c = W;
- if (s ? eh(s) : c.stateNode.complete) {
- id = 0, ad = null;
+ var c = rd;
+ if (s ? th(s) : c.stateNode.complete) {
+ ad = 0, od = null;
var l = c.sibling;
- if (l !== null) W = l;
+ if (l !== null) rd = l;
else {
var u = c.return;
- u === null ? W = null : (W = u, of(u));
+ u === null ? rd = null : (rd = u, sf(u));
}
break b;
}
}
- id = 0, ad = null, af(e, t, o, 5);
+ ad = 0, od = null, of(e, t, o, 5);
break;
case 6:
- id = 0, ad = null, af(e, t, o, 6);
+ ad = 0, od = null, of(e, t, o, 6);
break;
case 8:
- Gd(), ud = 6;
+ Kd(), dd = 6;
break a;
default: throw Error(i(462));
}
}
- tf();
+ nf();
break;
} catch (t) {
- qd(e, t);
+ Jd(e, t);
}
while (1);
- return ma = pa = null, I.H = r, I.A = a, td = n, W === null ? (nd = null, rd = 0, xi(), ud) : 0;
+ return ma = pa = null, I.H = r, I.A = a, td = n, rd === null ? (nd = null, id = 0, xi(), dd) : 0;
}
- function tf() {
- for (; W !== null && !Le();) nf(W);
- }
- function nf(e) {
- var t = dl(e.alternate, e, ld);
- e.memoizedProps = e.pendingProps, t === null ? of(e) : W = t;
+ function nf() {
+ for (; rd !== null && !Le();) rf(rd);
}
function rf(e) {
+ var t = dl(e.alternate, e, ud);
+ e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
+ }
+ function af(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Gc(n, t, t.pendingProps, t.type, void 0, rd);
+ t = Gc(n, t, t.pendingProps, t.type, void 0, id);
break;
case 11:
- t = Gc(n, t, t.pendingProps, t.type.render, t.ref, rd);
+ t = Gc(n, t, t.pendingProps, t.type.render, t.ref, id);
break;
case 5:
rs(t);
var r = t;
r === ea && (na ? (sa(r), r.tag === 5 && r.stateNode != null && (ta = r.stateNode)) : (sa(r), na = !0));
- default: bl(n, t), t = W = Mi(t, ld), t = dl(n, t, ld);
+ default: bl(n, t), t = rd = Mi(t, ud), t = dl(n, t, ud);
}
- e.memoizedProps = e.pendingProps, t === null ? of(e) : W = t;
+ e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
}
- function af(e, t, n, r) {
+ function of(e, t, n, r) {
ma = pa = null, rs(t), no = null, ro = 0;
var i = t.return;
try {
- if (Ac(e, i, t, n, rd)) {
- ud = 1, Tc(e, zi(n, e.current)), W = null;
+ if (Ac(e, i, t, n, id)) {
+ dd = 1, Tc(e, zi(n, e.current)), rd = null;
return;
}
} catch (t) {
- if (i !== null) throw W = i, t;
- ud = 1, Tc(e, zi(n, e.current)), W = null;
+ if (i !== null) throw rd = i, t;
+ dd = 1, Tc(e, zi(n, e.current)), rd = null;
return;
}
- t.flags & 32768 ? (na || r === 1 ? e = !0 : sd || rd & 536870912 ? e = !1 : (od = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Oo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), sf(t, e)) : of(t);
+ t.flags & 32768 ? (na || r === 1 ? e = !0 : cd || id & 536870912 ? e = !1 : (sd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Oo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), cf(t, e)) : sf(t);
}
- function of(e) {
+ function sf(e) {
var t = e;
do {
if (t.flags & 32768) {
- sf(t, od);
+ cf(t, sd);
return;
}
e = t.return;
- var n = vl(t.alternate, t, ld);
+ var n = vl(t.alternate, t, ud);
if (n !== null) {
- W = n;
+ rd = n;
return;
}
if (t = t.sibling, t !== null) {
- W = t;
+ rd = t;
return;
}
- W = t = e;
+ rd = t = e;
} while (t !== null);
- ud === 0 && (ud = 5);
+ dd === 0 && (dd = 5);
}
- function sf(e, t) {
+ function cf(e, t) {
do {
var n = yl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, W = n;
+ n.flags &= 32767, rd = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- W = e;
+ rd = e;
return;
}
- W = e = n;
+ rd = e = n;
} while (e !== null);
- ud = 6, W = null;
+ dd = 6, rd = null;
}
- function cf(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function lf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- gf();
- while (wd !== 0);
+ _f();
+ while (Td !== 0);
if (td & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === nd && (W = nd = null, rd = 0), Ed = t, Td = e, Dd = n, kd = a, Ad = r, lf(e, t, n, s, c, l, f);
+ e === nd && (rd = nd = null, id = 0), Dd = t, Ed = e, Od = n, Ad = a, jd = r, uf(e, t, n, s, c, l, f);
}
}
- function lf(e, t, n, r, i, a, o) {
+ function uf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (Od = s, s |= bi, ft(e, n, s, r, i, a), Md = null, (n & 335544064) === n ? (Nd = Na(e), r = 10262) : (Nd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Ef(Ue, function() {
- return _f(), null;
+ if (kd = s, s |= bi, ft(e, n, s, r, i, a), Nd = null, (n & 335544064) === n ? (Pd = Na(e), r = 10262) : (Pd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Df(Ue, function() {
+ return vf(), null;
})) : (e.callbackNode = null, e.callbackPriority = 0), zl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
r = I.T, I.T = null, i = L.p, L.p = 2, a = td, td |= 4;
try {
@@ -15925,21 +15925,21 @@ var Cf = /* @__PURE__ */ h(((e) => {
td = a, L.p = i, I.T = r;
}
}
- wd = 1, zl ? jd = Vp(o, e.containerInfo, Nd, ff, pf, df, mf, _f, uf, null, null) : (ff(), pf(), mf());
+ Td = 1, zl ? Md = Hp(o, e.containerInfo, Pd, pf, mf, ff, hf, vf, df, null, null) : (pf(), mf(), hf());
}
- function uf(e) {
- if (wd !== 0) {
- var t = Td.onRecoverableError;
+ function df(e) {
+ if (Td !== 0) {
+ var t = Ed.onRecoverableError;
t(e, { componentStack: null });
}
}
- function df() {
- wd === 3 && (wd = 0, Fu(Ed, Td), wd = 4);
- }
function ff() {
- if (wd === 1) {
- wd = 0;
- var e = Td, t = Ed, n = Dd, r = !!(t.flags & 13878);
+ Td === 3 && (Td = 0, Fu(Dd, Ed), Td = 4);
+ }
+ function pf() {
+ if (Td === 1) {
+ Td = 0;
+ var e = Ed, t = Dd, n = Od, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
r = I.T, I.T = null;
var i = L.p;
@@ -15947,7 +15947,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
var a = td;
td |= 4;
try {
- du = fu = !1, ju(t, e, n), n = _p;
+ du = fu = !1, ju(t, e, n), n = vp;
var o = Ur(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
if (o !== s && s && s.ownerDocument && Hr(s.ownerDocument.documentElement, s)) {
if (c !== null && Wr(s)) {
@@ -15976,18 +15976,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
}
}
- xh = !!gp, _p = gp = null;
+ xh = !!_p, vp = _p = null;
} finally {
td = a, L.p = i, I.T = r;
}
}
- e.current = t, wd = 2;
+ e.current = t, Td = 2;
}
}
- function pf() {
- if (wd === 2) {
- wd = 0;
- var e = Td, t = Ed, n = !!(t.flags & 8772);
+ function mf() {
+ if (Td === 2) {
+ Td = 0;
+ var e = Ed, t = Dd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
n = I.T, I.T = null;
var r = L.p;
@@ -16000,16 +16000,16 @@ var Cf = /* @__PURE__ */ h(((e) => {
td = i, L.p = r, I.T = n;
}
}
- wd = 3;
+ Td = 3;
}
}
- function mf() {
- if (wd === 4 || wd === 3) {
- wd = 0;
- var e = jd;
- jd = null, Re();
- var t = Td, n = Ed, r = Dd, i = Ad, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? wd = 5 : (wd = 0, Ed = Td = null, hf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Cd = null), _t(r), n = n.stateNode, Ye && typeof Ye.onCommitFiberRoot == "function") try {
+ function hf() {
+ if (Td === 4 || Td === 3) {
+ Td = 0;
+ var e = Md;
+ Md = null, Re();
+ var t = Ed, n = Dd, r = Od, i = jd, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Td = 5 : (Td = 0, Dd = Ed = null, gf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (wd = null), _t(r), n = n.stateNode, Ye && typeof Ye.onCommitFiberRoot == "function") try {
Ye.onCommitFiberRoot(Je, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
@@ -16023,75 +16023,75 @@ var Cf = /* @__PURE__ */ h(((e) => {
I.T = n, L.p = a;
}
}
- if (i = Md, o = Nd, Nd = null, i !== null && (Md = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
- Dd & 3 && gf(), Nf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Fd ? Pd++ : (Pd = 0, Fd = t) : (Pd = 0, Fd = null), Pf(0, !1);
+ if (i = Nd, o = Pd, Pd = null, i !== null && (Nd = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
+ Od & 3 && _f(), Pf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Id ? Fd++ : (Fd = 0, Id = t) : (Fd = 0, Id = null), Ff(0, !1);
}
}
- function hf(e, t) {
+ function gf(e, t) {
(e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Aa(t)));
}
- function gf() {
- return jd !== null && (jd.skipTransition(), jd = null), ff(), pf(), mf(), _f();
- }
function _f() {
- if (wd !== 5) return !1;
- var e = Td, t = Od;
- Od = 0;
- var n = _t(Dd), r = I.T, a = L.p;
+ return Md !== null && (Md.skipTransition(), Md = null), pf(), mf(), hf(), vf();
+ }
+ function vf() {
+ if (Td !== 5) return !1;
+ var e = Ed, t = kd;
+ kd = 0;
+ var n = _t(Od), r = I.T, a = L.p;
try {
- L.p = 32 > n ? 32 : n, I.T = null, n = kd, kd = null;
- var o = Td, s = Dd;
- if (wd = 0, Ed = Td = null, Dd = 0, td & 6) throw Error(i(331));
+ L.p = 32 > n ? 32 : n, I.T = null, n = Ad, Ad = null;
+ var o = Ed, s = Od;
+ if (Td = 0, Dd = Ed = null, Od = 0, td & 6) throw Error(i(331));
var c = td;
- if (td |= 4, Xu(o.current), Hu(o, o.current, s, n), td = c, Pf(0, !1), Ye && typeof Ye.onPostCommitFiberRoot == "function") try {
+ if (td |= 4, Xu(o.current), Hu(o, o.current, s, n), td = c, Ff(0, !1), Ye && typeof Ye.onPostCommitFiberRoot == "function") try {
Ye.onPostCommitFiberRoot(Je, o);
} catch {}
return !0;
} finally {
- L.p = a, I.T = r, hf(e, t);
+ L.p = a, I.T = r, gf(e, t);
}
}
- function vf(e, t, n) {
- t = zi(n, t), t = Dc(e.stateNode, t, 2), e = ho(e, t, 2), e !== null && (dt(e, 2), Nf(e));
- }
function yf(e, t, n) {
- if (e.tag === 3) vf(e, e, n);
+ t = zi(n, t), t = Dc(e.stateNode, t, 2), e = ho(e, t, 2), e !== null && (dt(e, 2), Pf(e));
+ }
+ function bf(e, t, n) {
+ if (e.tag === 3) yf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- vf(t, e, n);
+ yf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Cd === null || !Cd.has(r))) {
- e = zi(n, e), n = Oc(2), r = ho(t, n, 2), r !== null && (kc(n, r, t, e), dt(r, 2), Nf(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (wd === null || !wd.has(r))) {
+ e = zi(n, e), n = Oc(2), r = ho(t, n, 2), r !== null && (kc(n, r, t, e), dt(r, 2), Pf(r));
break;
}
}
t = t.return;
}
}
- function bf(e, t, n) {
+ function xf(e, t, n) {
var r = e.pingCache;
if (r === null) {
r = e.pingCache = new ed();
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (cd = !0, i.add(n), e = xf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (ld = !0, i.add(n), e = Sf.bind(null, e, t, n), t.then(e, e));
}
- function xf(e, t, n) {
+ function Sf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, nd === e && (rd & n) === n && (ud === 4 || ud === 3 && (rd & 62914560) === rd && 300 > ze() - yd ? td & 2 ? pd |= n : Kd(e, 0) : pd |= n, hd === rd && (hd = 0)), Nf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, nd === e && (id & n) === n && (dd === 4 || dd === 3 && (id & 62914560) === id && 300 > ze() - bd ? td & 2 ? md |= n : qd(e, 0) : md |= n, gd === id && (gd = 0)), Pf(e);
}
- function Sf(e, t) {
- t === 0 && (t = lt()), e = wi(e, t), e !== null && (dt(e, t), Nf(e));
+ function Cf(e, t) {
+ t === 0 && (t = lt()), e = wi(e, t), e !== null && (dt(e, t), Pf(e));
}
- function Cf(e) {
+ function wf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), Sf(e, n);
+ t !== null && (n = t.retryLane), Cf(e, n);
}
- function Tf(e, t) {
+ function Ef(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -16107,20 +16107,20 @@ var Cf = /* @__PURE__ */ h(((e) => {
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), Sf(e, n);
+ r !== null && r.delete(t), Cf(e, n);
}
- function Ef(e, t) {
+ function Df(e, t) {
return Fe(e, t);
}
- var Df = null, Of = null, kf = !1, Af = !1, jf = !1, Mf = 0;
- function Nf(e) {
- e !== Of && e.next === null && (Of === null ? Df = Of = e : Of = Of.next = e), Af = !0, kf || (kf = !0, Bf());
+ var Of = null, kf = null, Af = !1, jf = !1, Mf = !1, Nf = 0;
+ function Pf(e) {
+ e !== kf && e.next === null && (kf === null ? Of = kf = e : kf = kf.next = e), jf = !0, Af || (Af = !0, Vf());
}
- function Pf(e, t) {
- if (!jf && Af) {
- jf = !0;
+ function Ff(e, t) {
+ if (!Mf && jf) {
+ Mf = !0;
do
- for (var n = !1, r = Df; r !== null;) {
+ for (var n = !1, r = Of; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
@@ -16129,34 +16129,34 @@ var Cf = /* @__PURE__ */ h(((e) => {
var o = r.suspendedLanes, s = r.pingedLanes;
a = (1 << 31 - Ze(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
- a !== 0 && (n = !0, zf(r, a));
- } else a = rd, a = at(r, r === nd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ot(r, a) || (n = !0, zf(r, a));
+ a !== 0 && (n = !0, Bf(r, a));
+ } else a = id, a = at(r, r === nd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ot(r, a) || (n = !0, Bf(r, a));
}
r = r.next;
}
while (n);
- jf = !1;
+ Mf = !1;
}
}
- function Ff() {
- If();
- }
function If() {
- Af = kf = !1;
+ Lf();
+ }
+ function Lf() {
+ jf = Af = !1;
var e = 0;
- Mf !== 0 && wp() && (e = Mf);
- for (var t = ze(), n = null, r = Df; r !== null;) {
- var i = r.next, a = Lf(r, t);
- a === 0 ? (r.next = null, n === null ? Df = i : n.next = i, i === null && (Of = n)) : (n = r, (e !== 0 || a & 3) && (Af = !0)), r = i;
+ Nf !== 0 && Tp() && (e = Nf);
+ for (var t = ze(), n = null, r = Of; r !== null;) {
+ var i = r.next, a = Rf(r, t);
+ a === 0 ? (r.next = null, n === null ? Of = i : n.next = i, i === null && (kf = n)) : (n = r, (e !== 0 || a & 3) && (jf = !0)), r = i;
}
- wd !== 0 && wd !== 5 || Pf(e, !1), Mf !== 0 && (Mf = 0);
+ Td !== 0 && Td !== 5 || Ff(e, !1), Nf !== 0 && (Nf = 0);
}
- function Lf(e, t) {
+ function Rf(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
var o = 31 - Ze(a), s = 1 << o, c = i[o];
c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ct(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = nd, n = rd, n = at(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (id === 2 || id === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Ie(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (t = nd, n = id, n = at(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Ie(r), e.callbackNode = null, e.callbackPriority = 0;
if (!(n & 3) || ot(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
switch (r !== null && Ie(r), _t(n)) {
@@ -16172,40 +16172,40 @@ var Cf = /* @__PURE__ */ h(((e) => {
break;
default: n = Ue;
}
- return r = Rf.bind(null, e), n = Fe(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = zf.bind(null, e), n = Fe(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
return r !== null && r !== null && Ie(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Rf(e, t) {
- if (wd !== 0 && wd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function zf(e, t) {
+ if (Td !== 0 && Td !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (gf() && e.callbackNode !== n) return null;
- var r = rd;
- return r = at(e, e === nd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Bd(e, r, t), Lf(e, ze()), e.callbackNode != null && e.callbackNode === n ? Rf.bind(null, e) : null);
+ if (_f() && e.callbackNode !== n) return null;
+ var r = id;
+ return r = at(e, e === nd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Vd(e, r, t), Rf(e, ze()), e.callbackNode != null && e.callbackNode === n ? zf.bind(null, e) : null);
}
- function zf(e, t) {
- if (gf()) return null;
- Bd(e, t, !0);
+ function Bf(e, t) {
+ if (_f()) return null;
+ Vd(e, t, !0);
}
- function Bf() {
- kp(function() {
- td & 6 ? Fe(Ve, Ff) : If();
+ function Vf() {
+ Ap(function() {
+ td & 6 ? Fe(Ve, If) : Lf();
});
}
- function Vf() {
- if (Mf === 0) {
+ function Hf() {
+ if (Nf === 0) {
var e = Ia;
- e === 0 && (e = tt, tt <<= 1, !(tt & 261888) && (tt = 256)), Mf = e;
+ e === 0 && (e = tt, tt <<= 1, !(tt & 261888) && (tt = 256)), Nf = e;
}
- return Mf;
+ return Nf;
}
- function Hf(e) {
+ function Uf(e) {
return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : mn(e);
}
- function Uf(e, t, n, r, i) {
+ function Wf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Hf((i[St] || null).action), o = r.submitter;
- o && (t = (t = o[St] || null) ? Hf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var a = Uf((i[St] || null).action), o = r.submitter;
+ o && (t = (t = o[St] || null) ? Uf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
var s = new In("action", "action", null, r, i);
e.push({
event: s,
@@ -16213,7 +16213,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (Mf !== 0) {
+ if (Nf !== 0) {
var e = new FormData(i, o);
$s(n, {
pending: !0,
@@ -16234,9 +16234,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
});
}
}
- for (var Wf = 0; Wf < di.length; Wf++) {
- var Gf = di[Wf];
- fi(Gf.toLowerCase(), "on" + (Gf[0].toUpperCase() + Gf.slice(1)));
+ for (var Gf = 0; Gf < di.length; Gf++) {
+ var Kf = di[Gf];
+ fi(Kf.toLowerCase(), "on" + (Kf[0].toUpperCase() + Kf.slice(1)));
}
fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), Lt("onMouseEnter", ["mouseout", "mouseover"]), Lt("onMouseLeave", ["mouseout", "mouseover"]), Lt("onPointerEnter", ["pointerout", "pointerover"]), Lt("onPointerLeave", ["pointerout", "pointerover"]), B("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), B("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), B("onBeforeInput", [
"compositionend",
@@ -16244,8 +16244,8 @@ var Cf = /* @__PURE__ */ h(((e) => {
"textInput",
"paste"
]), B("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), B("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), B("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
- var Kf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), qf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kf));
- function Jf(e, t) {
+ var qf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Jf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qf));
+ function Yf(e, t) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -16276,27 +16276,27 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
}
}
- function Yf(e, t) {
+ function Xf(e, t) {
var n = t[wt];
n === void 0 && (n = t[wt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
- n.has(r) || ($f(t, e, 2, !1), n.add(r));
+ n.has(r) || (ep(t, e, 2, !1), n.add(r));
}
- function Xf(e, t, n) {
+ function Zf(e, t, n) {
var r = 0;
- t && (r |= 4), $f(n, e, r, t);
+ t && (r |= 4), ep(n, e, r, t);
}
- var Zf = "_reactListening" + Math.random().toString(36).slice(2);
- function Qf(e) {
- if (!e[Zf]) {
- e[Zf] = !0, z.forEach(function(t) {
- t !== "selectionchange" && (qf.has(t) || Xf(t, !1, e), Xf(t, !0, e));
+ var Qf = "_reactListening" + Math.random().toString(36).slice(2);
+ function $f(e) {
+ if (!e[Qf]) {
+ e[Qf] = !0, z.forEach(function(t) {
+ t !== "selectionchange" && (Jf.has(t) || Zf(t, !1, e), Zf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[Zf] || (t[Zf] = !0, Xf("selectionchange", !1, t));
+ t === null || t[Qf] || (t[Qf] = !0, Zf("selectionchange", !1, t));
}
}
- function $f(e, t, n, r) {
+ function ep(e, t, n, r) {
switch (Oh(t)) {
case 2:
var i = Sh;
@@ -16311,7 +16311,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
}
- function ep(e, t, n, r, i) {
+ function tp(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -16424,7 +16424,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Cn(m, p), g != null && d.push(tp(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Cn(m, p), g != null && d.push(np(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -16436,7 +16436,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (!(t & 7)) {
a: {
if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== gn && (u = n.relatedTarget || n.fromElement) && (At(u) || u[Ct])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? At(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Un, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, At(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, rp) : null, c !== null && ip(s, u, c, d, !1), l !== null && f !== null && ip(s, f, l, d, !0)));
+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? At(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Un, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, At(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, ip) : null, c !== null && ap(s, u, c, d, !1), l !== null && f !== null && ap(s, f, l, d, !0)));
}
a: {
if (c = r ? Mt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;
@@ -16488,58 +16488,58 @@ var Cf = /* @__PURE__ */ h(((e) => {
b = void 0;
}
else gr ? mr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (dr && n.locale !== "ko" && (gr || b !== "onCompositionStart" ? b === "onCompositionEnd" && gr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, gr = !0)), v = np(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
+ b && (dr && n.locale !== "ko" && (gr || b !== "onCompositionStart" ? b === "onCompositionEnd" && gr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, gr = !0)), v = rp(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? _r(e, n) : vr(e, n)) && (b = np(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? _r(e, n) : vr(e, n)) && (b = rp(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Uf(s, e, r, n, i);
+ }), v.data = y)), Wf(s, e, r, n, i);
}
- Jf(s, t);
+ Yf(s, t);
});
}
- function tp(e, t, n) {
+ function np(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function np(e, t) {
+ function rp(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var i = e, a = i.stateNode;
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Cn(e, n), i != null && r.unshift(tp(e, i, a)), i = Cn(e, t), i != null && r.push(tp(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Cn(e, n), i != null && r.unshift(np(e, i, a)), i = Cn(e, t), i != null && r.push(np(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function rp(e) {
+ function ip(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function ip(e, t, n, r, i) {
+ function ap(e, t, n, r, i) {
for (var a = t._reactName, o = []; n !== null && n !== r;) {
var s = n, c = s.alternate, l = s.stateNode;
if (s = s.tag, c !== null && c === r) break;
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Cn(n, a), l != null && o.unshift(tp(n, l, c))) : i || (l = Cn(n, a), l != null && o.push(tp(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Cn(n, a), l != null && o.unshift(np(n, l, c))) : i || (l = Cn(n, a), l != null && o.push(np(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var ap = /\r\n?/g, op = /\u0000|\uFFFD/g;
- function sp(e) {
- return (typeof e == "string" ? e : "" + e).replace(ap, "\n").replace(op, "");
+ var op = /\r\n?/g, sp = /\u0000|\uFFFD/g;
+ function cp(e) {
+ return (typeof e == "string" ? e : "" + e).replace(op, "\n").replace(sp, "");
}
- function cp(e, t) {
- return t = sp(t), sp(e) === t;
+ function lp(e, t) {
+ return t = cp(t), cp(e) === t;
}
- function lp(e, t, n, r, a, o) {
+ function up(e, t, n, r, a, o) {
switch (n) {
case "children":
if (typeof r == "string") t === "body" || t === "textarea" && r === "" || sn(e, r);
@@ -16584,7 +16584,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
break;
}
- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && lp(e, t, "name", a.name, a, null), lp(e, t, "formEncType", a.formEncType, a, null), lp(e, t, "formMethod", a.formMethod, a, null), lp(e, t, "formTarget", a.formTarget, a, null)) : (lp(e, t, "encType", a.encType, a, null), lp(e, t, "method", a.method, a, null), lp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && up(e, t, "name", a.name, a, null), up(e, t, "formEncType", a.formEncType, a, null), up(e, t, "formMethod", a.formMethod, a, null), up(e, t, "formTarget", a.formTarget, a, null)) : (up(e, t, "encType", a.encType, a, null), up(e, t, "method", a.method, a, null), up(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
@@ -16594,10 +16594,10 @@ var Cf = /* @__PURE__ */ h(((e) => {
r != null && (e.onclick = hn);
return;
case "onScroll":
- r != null && Yf("scroll", e);
+ r != null && Xf("scroll", e);
return;
case "onScrollEnd":
- r != null && Yf("scrollend", e);
+ r != null && Xf("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -16679,7 +16679,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Yf("beforetoggle", e), Yf("toggle", e), Wt(e, "popover", r);
+ Xf("beforetoggle", e), Xf("toggle", e), Wt(e, "popover", r);
break;
case "xlinkActuate":
Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
@@ -16718,7 +16718,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
Ht = !0;
}
- function up(e, t, n, r, a, o) {
+ function dp(e, t, n, r, a, o) {
switch (n) {
case "style":
un(e, r, o);
@@ -16738,10 +16738,10 @@ var Cf = /* @__PURE__ */ h(((e) => {
else return;
break;
case "onScroll":
- r != null && Yf("scroll", e);
+ r != null && Xf("scroll", e);
return;
case "onScrollEnd":
- r != null && Yf("scrollend", e);
+ r != null && Xf("scrollend", e);
return;
case "onClick":
r != null && (e.onclick = hn);
@@ -16764,7 +16764,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
Ht = !0;
}
- function dp(e, t, n) {
+ function fp(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -16775,7 +16775,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "p":
case "li": break;
case "img":
- Yf("error", e), Yf("load", e);
+ Xf("error", e), Xf("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -16788,13 +16788,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: lp(e, t, o, s, n, null);
+ default: up(e, t, o, s, n, null);
}
}
- a && lp(e, t, "srcSet", n.srcSet, n, null), r && lp(e, t, "src", n.src, n, null);
+ a && up(e, t, "srcSet", n.srcSet, n, null), r && up(e, t, "src", n.src, n, null);
return;
case "input":
- Yf("invalid", e);
+ Xf("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -16821,13 +16821,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: lp(e, t, r, d, n, null);
+ default: up(e, t, r, d, n, null);
}
}
tn(e, o, c, l, u, s, a, !1);
return;
case "select":
- for (a in Yf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
+ for (a in Xf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -16835,12 +16835,12 @@ var Cf = /* @__PURE__ */ h(((e) => {
s = c;
break;
case "multiple": r = c;
- default: lp(e, t, a, c, n, null);
+ default: up(e, t, a, c, n, null);
}
t = o, n = s, e.multiple = !!r, t == null ? n != null && rn(e, !!r, n, !0) : rn(e, !!r, t, !1);
return;
case "textarea":
- for (s in Yf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in Xf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -16853,7 +16853,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: lp(e, t, s, c, n, null);
+ default: up(e, t, s, c, n, null);
}
on(e, r, a, o);
return;
@@ -16862,29 +16862,29 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: lp(e, t, l, r, n, null);
+ default: up(e, t, l, r, n, null);
}
return;
case "dialog":
- Yf("beforetoggle", e), Yf("toggle", e), Yf("cancel", e), Yf("close", e);
+ Xf("beforetoggle", e), Xf("toggle", e), Xf("cancel", e), Xf("close", e);
break;
case "iframe":
case "object":
- Yf("load", e);
+ Xf("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Kf.length; r++) Yf(Kf[r], e);
+ for (r = 0; r < qf.length; r++) Xf(qf[r], e);
break;
case "image":
- Yf("error", e), Yf("load", e);
+ Xf("error", e), Xf("load", e);
break;
case "details":
- Yf("toggle", e);
+ Xf("toggle", e);
break;
case "embed":
case "source":
- case "link": Yf("error", e), Yf("load", e);
+ case "link": Xf("error", e), Xf("load", e);
case "area":
case "base":
case "br":
@@ -16899,18 +16899,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: lp(e, t, u, r, n, null);
+ default: up(e, t, u, r, n, null);
}
return;
default: if (dn(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && up(e, t, d, r, n, void 0));
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && dp(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && lp(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && up(e, t, c, r, n, null));
}
- var fp = {};
- function pp(e, t, n, r) {
+ var pp = {};
+ function mp(e, t, n, r) {
switch (t) {
case "div":
case "span":
@@ -16928,7 +16928,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || lp(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || up(e, t, m, null, r, f);
}
}
for (var p in r) {
@@ -16956,7 +16956,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && lp(e, t, p, m, r, f);
+ default: m !== f && up(e, t, p, m, r, f);
}
}
en(e, s, c, l, u, d, o, a);
@@ -16965,7 +16965,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
case "value": break;
case "multiple": m = l;
- default: r.hasOwnProperty(o) || lp(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || up(e, t, o, null, r, l);
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
@@ -16975,7 +16975,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
o !== l && (Ht = !0), c = o;
break;
case "multiple": o !== l && (Ht = !0), s = o;
- default: o !== l && lp(e, t, a, o, r, l);
+ default: o !== l && up(e, t, a, o, r, l);
}
t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? rn(e, !!n, n ? [] : "", !1) : rn(e, !!n, t, !0)) : rn(e, !!n, p, !1);
return;
@@ -16983,7 +16983,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
case "value": break;
case "children": break;
- default: lp(e, t, c, null, r, a);
+ default: up(e, t, c, null, r, a);
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
@@ -16996,7 +16996,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && lp(e, t, s, a, r, o);
+ default: a !== o && up(e, t, s, a, r, o);
}
an(e, p, m);
return;
@@ -17005,13 +17005,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "selected":
e.selected = !1;
break;
- default: lp(e, t, h, null, r, p);
+ default: up(e, t, h, null, r, p);
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
p !== m && (Ht = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: lp(e, t, l, p, r, m);
+ default: up(e, t, l, p, r, m);
}
return;
case "img":
@@ -17029,25 +17029,25 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && lp(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && up(e, t, g, null, r, p);
for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML":
if (p != null) throw Error(i(137, t));
break;
- default: lp(e, t, u, p, r, m);
+ default: up(e, t, u, p, r, m);
}
return;
default: if (dn(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && up(e, t, _, void 0, r, p);
- for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || up(e, t, d, p, r, m);
+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && dp(e, t, _, void 0, r, p);
+ for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || dp(e, t, d, p, r, m);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && lp(e, t, v, null, r, p);
- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || lp(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && up(e, t, v, null, r, p);
+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || up(e, t, f, p, r, m);
}
- function mp(e) {
+ function hp(e) {
switch (e) {
case "css":
case "script":
@@ -17059,16 +17059,16 @@ var Cf = /* @__PURE__ */ h(((e) => {
default: return !1;
}
}
- function hp() {
+ function gp() {
if (typeof performance.getEntriesByType == "function") {
for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {
var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;
- if (a && s && mp(o)) {
+ if (a && s && hp(o)) {
for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {
var c = n[r], l = c.startTime;
if (l > s) break;
var u = c.transferSize, d = c.initiatorType;
- u && mp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
+ u && hp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
}
if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;
}
@@ -17077,18 +17077,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
}
- var gp = null, _p = null;
- function vp(e) {
+ var _p = null, vp = null;
+ function yp(e) {
return e.nodeType === 9 ? e : e.ownerDocument;
}
- function yp(e) {
+ function bp(e) {
switch (e) {
case "http://www.w3.org/2000/svg": return 1;
case "http://www.w3.org/1998/Math/MathML": return 2;
default: return 0;
}
}
- function bp(e, t) {
+ function xp(e, t) {
if (e === 0) switch (t) {
case "svg": return 1;
case "math": return 2;
@@ -17096,29 +17096,29 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return e === 1 && t === "foreignObject" ? 0 : e;
}
- function xp(e, t, n, r) {
- return n = vp(n).createElement(e), n[xt] = r, n[St] = t, dp(n, e, t), Pt(n), n;
+ function Sp(e, t, n, r) {
+ return n = yp(n).createElement(e), n[xt] = r, n[St] = t, fp(n, e, t), Pt(n), n;
}
- function Sp(e, t) {
+ function Cp(e, t) {
return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
}
- var Cp = null;
- function wp() {
+ var wp = null;
+ function Tp() {
var e = window.event;
- return e && e.type === "popstate" ? e !== Cp && (Cp = e, !0) : (Cp = null, !1);
+ return e && e.type === "popstate" ? e !== wp && (wp = e, !0) : (wp = null, !1);
}
- var Tp = typeof setTimeout == "function" ? setTimeout : void 0, Ep = typeof clearTimeout == "function" ? clearTimeout : void 0, Dp = typeof Promise == "function" ? Promise : void 0, Op = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Tp, kp = typeof queueMicrotask == "function" ? queueMicrotask : Dp === void 0 ? Tp : function(e) {
- return Dp.resolve(null).then(e).catch(Ap);
+ var Ep = typeof setTimeout == "function" ? setTimeout : void 0, Dp = typeof clearTimeout == "function" ? clearTimeout : void 0, Op = typeof Promise == "function" ? Promise : void 0, kp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Ep, Ap = typeof queueMicrotask == "function" ? queueMicrotask : Op === void 0 ? Ep : function(e) {
+ return Op.resolve(null).then(e).catch(jp);
};
- function Ap(e) {
+ function jp(e) {
setTimeout(function() {
throw e;
});
}
- function jp(e) {
+ function Mp(e) {
return e === "head";
}
- function Mp(e, t) {
+ function Np(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
@@ -17130,20 +17130,20 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
r--;
} else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;
- else if (n === "html") Cm(e.ownerDocument.documentElement);
+ else if (n === "html") wm(e.ownerDocument.documentElement);
else if (n === "head") {
- n = e.ownerDocument.head, Cm(n);
+ n = e.ownerDocument.head, wm(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
a[Dt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
- } else n === "body" && Cm(e.ownerDocument.body);
+ } else n === "body" && wm(e.ownerDocument.body);
}
n = i;
} while (n);
Kh(t);
}
- function Np(e, t) {
+ function Pp(e, t) {
var n = e;
e = 0;
do {
@@ -17157,7 +17157,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
n = r;
} while (n);
}
- function Pp(e, t, n) {
+ function Fp(e, t, n) {
if (t = CSS.escape(t) === t ? t : "r-" + btoa(t).replace(/=/g, ""), e.style.viewTransitionName = t, n != null && (e.style.viewTransitionClass = n), n = getComputedStyle(e), n.display === "inline") {
if (t = e.getClientRects(), t.length === 1) var r = 1;
else for (var i = r = 0; i < t.length; i++) {
@@ -17167,12 +17167,12 @@ var Cf = /* @__PURE__ */ h(((e) => {
r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);
}
}
- function Fp(e, t) {
+ function Ip(e, t) {
e = e.style, t = t.style;
var n = t == null ? null : t.hasOwnProperty("viewTransitionName") ? t.viewTransitionName : t.hasOwnProperty("view-transition-name") ? t["view-transition-name"] : null;
e.viewTransitionName = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), n = t == null ? null : t.hasOwnProperty("viewTransitionClass") ? t.viewTransitionClass : t.hasOwnProperty("view-transition-class") ? t["view-transition-class"] : null, e.viewTransitionClass = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), e.display === "inline-block" && (t == null ? e.display = e.margin = "" : (n = t.display, e.display = n == null || typeof n == "boolean" ? "" : n, n = t.margin, n == null ? (n = t.hasOwnProperty("marginTop") ? t.marginTop : t["margin-top"], e.marginTop = n == null || typeof n == "boolean" ? "" : n, t = t.hasOwnProperty("marginBottom") ? t.marginBottom : t["margin-bottom"], e.marginBottom = t == null || typeof t == "boolean" ? "" : t) : e.margin = n));
}
- function Ip(e, t, n) {
+ function Lp(e, t, n) {
return n = n.ownerDocument.defaultView, {
rect: e,
abs: t.position === "absolute" || t.position === "fixed",
@@ -17180,22 +17180,22 @@ var Cf = /* @__PURE__ */ h(((e) => {
view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth
};
}
- function Lp(e) {
- return Ip(e.getBoundingClientRect(), getComputedStyle(e), e);
- }
function Rp(e) {
+ return Lp(e.getBoundingClientRect(), getComputedStyle(e), e);
+ }
+ function zp(e) {
var t = e.getBoundingClientRect();
t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);
var n = getComputedStyle(e);
- return Ip(t, n, e);
+ return Lp(t, n, e);
}
- function zp(e) {
+ function Bp(e) {
return e.documentElement.clientHeight;
}
- function Bp(e) {
+ function Vp(e) {
this.addEventListener("load", e), this.addEventListener("error", e);
}
- function Vp(e, t, n, r, i, a, o, s, c) {
+ function Hp(e, t, n, r, i, a, o, s, c) {
var l = t.nodeType === 9 ? t : t.ownerDocument;
try {
var u = l.startViewTransition({
@@ -17203,16 +17203,16 @@ var Cf = /* @__PURE__ */ h(((e) => {
var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;
r();
var s = [];
- if (o === "loaded" && (zp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
+ if (o === "loaded" && (Bp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
var f = c[d];
if (!f.complete) {
var p = f.getBoundingClientRect();
if (0 < p.bottom && 0 < p.right && p.top < t.innerHeight && p.left < t.innerWidth) {
- if (u += th(f), u > ih) {
+ if (u += nh(f), u > ah) {
s.length = o;
break;
}
- f = new Promise(Bp.bind(f)), s.push(f);
+ f = new Promise(Vp.bind(f)), s.push(f);
}
}
}
@@ -17267,86 +17267,86 @@ var Cf = /* @__PURE__ */ h(((e) => {
return r(), i(), o(), null;
}
}
- function Hp(e, t) {
+ function Up(e, t) {
this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";
}
- Hp.prototype.animate = function(e, t) {
+ Up.prototype.animate = function(e, t) {
return t = typeof t == "number" ? { duration: t } : T({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);
- }, Hp.prototype.getAnimations = function() {
+ }, Up.prototype.getAnimations = function() {
for (var e = this._scope, t = this._selector, n = e.getAnimations({ subtree: !0 }), r = [], i = 0; i < n.length; i++) {
var a = n[i].effect;
a !== null && a.target === e && a.pseudoElement === t && r.push(n[i]);
}
return r;
- }, Hp.prototype.getComputedStyle = function() {
+ }, Up.prototype.getComputedStyle = function() {
return getComputedStyle(this._scope, this._selector);
};
- function Up(e) {
+ function Wp(e) {
return {
name: e,
- group: new Hp("group", e),
- imagePair: new Hp("image-pair", e),
- old: new Hp("old", e),
- new: new Hp("new", e)
+ group: new Up("group", e),
+ imagePair: new Up("image-pair", e),
+ old: new Up("old", e),
+ new: new Up("new", e)
};
}
- function Wp(e) {
+ function Gp(e) {
this._fragmentFiber = e, this._observers = this._eventListeners = null;
}
- Wp.prototype.addEventListener = function(e, t, n) {
+ Gp.prototype.addEventListener = function(e, t, n) {
var r = null, i = null;
if (!(n != null && typeof n != "boolean" && (r = n.signal || null, r !== null && r.aborted))) {
this._eventListeners === null && (this._eventListeners = []);
var a = this._eventListeners;
- if (Yp(a, e, t, n) === -1) {
+ if (Xp(a, e, t, n) === -1) {
var o = this, s = t;
n != null && typeof n != "boolean" && !0 === n.once && (s = function(r) {
o.removeEventListener(e, t, n), typeof t == "function" ? t.call(this, r) : t.handleEvent(r);
- }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = qp(n), a.push({
+ }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Jp(n), a.push({
type: e,
listener: t,
optionsOrUseCapture: n,
attachedListener: s,
cleanup: i
- }), f(this._fragmentFiber.child, !1, Gp, e, s, r);
+ }), f(this._fragmentFiber.child, !1, Kp, e, s, r);
}
this._eventListeners = a;
}
};
- function Gp(e, t, n, r) {
+ function Kp(e, t, n, r) {
return _(e).addEventListener(t, n, r), !1;
}
- Wp.prototype.removeEventListener = function(e, t, n) {
+ Gp.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
- if (r !== null && (t = Yp(r, e, t, n), t !== -1)) {
+ if (r !== null && (t = Xp(r, e, t, n), t !== -1)) {
var i = r[t];
n = i.attachedListener;
var a = i.cleanup;
- i = qp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Kp, e, n, i), r.splice(t, 1), a !== null && a();
+ i = Jp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, qp, e, n, i), r.splice(t, 1), a !== null && a();
}
};
- function Kp(e, t, n, r) {
+ function qp(e, t, n, r) {
return _(e).removeEventListener(t, n, r), !1;
}
- function qp(e) {
+ function Jp(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
capture: e.capture,
passive: e.passive
} : e;
}
- function Jp(e) {
+ function Yp(e) {
return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");
}
- function Yp(e, t, n, r) {
+ function Xp(e, t, n, r) {
if (e.length === 0) return -1;
- r = Jp(r);
+ r = Yp(r);
for (var i = 0; i < e.length; i++) {
var a = e[i];
- if (a.type === t && a.listener === n && Jp(a.optionsOrUseCapture) === r) return i;
+ if (a.type === t && a.listener === n && Yp(a.optionsOrUseCapture) === r) return i;
}
return -1;
}
- Wp.prototype.dispatchEvent = function(e) {
+ Gp.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
t = _(t);
@@ -17355,74 +17355,74 @@ var Cf = /* @__PURE__ */ h(((e) => {
var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");
if (n) for (var i = 0; i < n.length; i++) {
var a = n[i];
- r.addEventListener(a.type, a.attachedListener, qp(a.optionsOrUseCapture));
+ r.addEventListener(a.type, a.attachedListener, Jp(a.optionsOrUseCapture));
}
- if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, qp(a.optionsOrUseCapture));
+ if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Jp(a.optionsOrUseCapture));
return t.removeChild(r), e;
}
return t.dispatchEvent(e);
- }, Wp.prototype.focus = function(e) {
- f(this._fragmentFiber.child, !0, Xp, e, void 0, void 0);
+ }, Gp.prototype.focus = function(e) {
+ f(this._fragmentFiber.child, !0, Zp, e, void 0, void 0);
};
- function Xp(e, t) {
- return e.tag !== 6 && (e = _(e), ym(e, t));
+ function Zp(e, t) {
+ return e.tag !== 6 && (e = _(e), bm(e, t));
}
- Wp.prototype.focusLast = function(e) {
+ Gp.prototype.focusLast = function(e) {
var t = [];
- f(this._fragmentFiber.child, !0, Zp, t, void 0, void 0);
- for (var n = t.length - 1; 0 <= n && !Xp(t[n], e); n--);
+ f(this._fragmentFiber.child, !0, Qp, t, void 0, void 0);
+ for (var n = t.length - 1; 0 <= n && !Zp(t[n], e); n--);
};
- function Zp(e, t) {
+ function Qp(e, t) {
return t.push(e), !1;
}
- Wp.prototype.blur = function() {
+ Gp.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = vp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Qp, e, void 0, void 0));
+ e !== null && (e = _(e), e = yp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, $p, e, void 0, void 0));
};
- function Qp(e, t) {
+ function $p(e, t) {
return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
- Wp.prototype.observeUsing = function(e) {
- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, G, e, void 0, void 0);
+ Gp.prototype.observeUsing = function(e) {
+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, W, e, void 0, void 0);
};
- function G(e, t) {
+ function W(e, t) {
return e.tag !== 6 && (e = _(e), t.observe(e), !1);
}
- Wp.prototype.unobserveUsing = function(e) {
+ Gp.prototype.unobserveUsing = function(e) {
var t = this._observers;
if (t !== null && t.has(e)) {
- t.delete(e), f(this._fragmentFiber.child, !1, $p, e, void 0, void 0);
- for (var n = t = 0; n < em.length; n++) {
- var r = em[n];
- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : em[t++] = r;
+ t.delete(e), f(this._fragmentFiber.child, !1, em, e, void 0, void 0);
+ for (var n = t = 0; n < tm.length; n++) {
+ var r = tm[n];
+ r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : tm[t++] = r;
}
- em.length = t;
+ tm.length = t;
}
};
- function $p(e, t) {
+ function em(e, t) {
return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);
}
- var em = [], tm = !1;
- function nm(e, t, n) {
- em.push({
+ var tm = [], nm = !1;
+ function rm(e, t, n) {
+ tm.push({
fragmentInstance: e,
observer: t,
instance: n
- }), tm || (tm = !0, bm(function() {
- tm = !1;
- var e = em;
- em = [];
+ }), nm || (nm = !0, xm(function() {
+ nm = !1;
+ var e = tm;
+ tm = [];
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.observer.unobserve(n.instance);
}
}));
}
- Wp.prototype.getClientRects = function() {
+ Gp.prototype.getClientRects = function() {
var e = [];
- return f(this._fragmentFiber.child, !1, rm, e, void 0, void 0), e;
+ return f(this._fragmentFiber.child, !1, im, e, void 0, void 0), e;
};
- function rm(e, t) {
+ function im(e, t) {
if (e.tag === 6) {
e = e.stateNode;
var n = e.ownerDocument.createRange();
@@ -17430,14 +17430,14 @@ var Cf = /* @__PURE__ */ h(((e) => {
} else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
- Wp.prototype.getRootNode = function(e) {
+ Gp.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
return t === null ? this : _(t).getRootNode(e);
- }, Wp.prototype.compareDocumentPosition = function(e) {
+ }, Gp.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
- f(this._fragmentFiber.child, !1, Zp, n, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Qp, n, void 0, void 0);
var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
@@ -17463,9 +17463,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;
- return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || im(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || am(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
- function im(e, t, n, r, i) {
+ function am(e, t, n, r, i) {
var a = At(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
@@ -17496,20 +17496,20 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = w(n, a, C), t === null ? t = !1 : (f(t, !0, x, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = w(r, a, C), t === null ? t = !1 : (f(t, !0, S, a, r), a = v, b = v = null, t = a !== null)), t) : !1;
}
- function am(e, t) {
+ function om(e, t) {
var n = e.ownerDocument.createRange();
n.selectNodeContents(e), e = n.getBoundingClientRect(), window.scrollTo(window.scrollX + e.left, t ? window.scrollY + e.top : window.scrollY + e.bottom - window.innerHeight);
}
- Wp.prototype.scrollIntoView = function(e) {
+ Gp.prototype.scrollIntoView = function(e) {
if (typeof e == "object") throw Error(i(566));
var t = [];
- f(this._fragmentFiber.child, !1, Zp, t, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Qp, t, void 0, void 0);
var n = !1 !== e;
if (t.length === 0) {
var r = h(this._fragmentFiber);
if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;
if (r.tag === 6) {
- e = _(r), am(e, n);
+ e = _(r), om(e, n);
return;
}
if (r = _(r), r.nodeType !== 9) {
@@ -17522,40 +17522,40 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), am(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), om(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
- function om(e, t) {
- return e = _(e), sm(e, t), !1;
- }
function sm(e, t) {
- e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
+ return e = _(e), cm(e, t), !1;
}
function cm(e, t) {
+ e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
+ }
+ function lm(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.addEventListener(i.type, i.attachedListener, qp(i.optionsOrUseCapture));
+ e.addEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- for (var r = 0, i = 0; i < em.length; i++) {
- var a = em[i];
- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (em[r++] = a);
+ for (var r = 0, i = 0; i < tm.length; i++) {
+ var a = tm[i];
+ (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (tm[r++] = a);
}
- em.length = r, n.observe(e);
- }), sm(e, t));
+ tm.length = r, n.observe(e);
+ }), cm(e, t));
}
- function lm(e, t) {
+ function um(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.removeEventListener(i.type, i.attachedListener, qp(i.optionsOrUseCapture));
+ e.removeEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- typeof n.rootMargin == "string" ? nm(t, n, e) : n.unobserve(e);
+ typeof n.rootMargin == "string" ? rm(t, n, e) : n.unobserve(e);
}), e.reactFragments != null && e.reactFragments.delete(t));
}
- function K(e) {
+ function G(e) {
var t = e.firstChild;
for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
var n = t;
@@ -17563,7 +17563,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- K(n), kt(n);
+ G(n), kt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -17572,7 +17572,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
e.removeChild(n);
}
}
- function um(e, t, n, r) {
+ function dm(e, t, n, r) {
for (; e.nodeType === 1;) {
var i = n;
if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
@@ -17597,26 +17597,26 @@ var Cf = /* @__PURE__ */ h(((e) => {
return e;
default: return e;
}
- if (e = gm(e.nextSibling), e === null) break;
+ if (e = _m(e.nextSibling), e === null) break;
}
return null;
}
- function dm(e, t, n) {
+ function fm(e, t, n) {
if (t === "") return null;
- for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = gm(e.nextSibling), e === null)) return null;
+ for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = _m(e.nextSibling), e === null)) return null;
return e;
}
- function fm(e, t) {
- for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = gm(e.nextSibling), e === null)) return null;
+ function pm(e, t) {
+ for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = _m(e.nextSibling), e === null)) return null;
return e;
}
- function pm(e) {
+ function mm(e) {
return e.data === "$?" || e.data === "$~";
}
- function mm(e) {
+ function hm(e) {
return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";
}
- function hm(e, t) {
+ function gm(e, t) {
var n = e.ownerDocument;
if (e.data === "$~") e._reactRetry = t;
else if (e.data !== "$?" || n.readyState !== "loading") t();
@@ -17627,7 +17627,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
}
}
- function gm(e) {
+ function _m(e) {
for (; e != null; e = e.nextSibling) {
var t = e.nodeType;
if (t === 1 || t === 3) break;
@@ -17638,14 +17638,14 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return e;
}
- var q = null;
- function _m(e) {
+ var K = null;
+ function vm(e) {
e = e.nextSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "/$" || n === "/&") {
- if (t === 0) return gm(e.nextSibling);
+ if (t === 0) return _m(e.nextSibling);
t--;
} else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;
}
@@ -17653,7 +17653,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return null;
}
- function vm(e) {
+ function ym(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -17667,7 +17667,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return null;
}
- function ym(e, t) {
+ function bm(e, t) {
function n() {
r = !0;
}
@@ -17680,15 +17680,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return r;
}
- function bm(e) {
- Op(function() {
- Op(function(t) {
+ function xm(e) {
+ kp(function() {
+ kp(function(t) {
return e(t);
});
});
}
- function xm(e, t, n) {
- switch (t = vp(n), e) {
+ function Sm(e, t, n) {
+ switch (t = yp(n), e) {
case "html":
if (e = t.documentElement, !e) throw Error(i(452));
return e;
@@ -17701,91 +17701,91 @@ var Cf = /* @__PURE__ */ h(((e) => {
default: throw Error(i(451));
}
}
- function Sm(e, t, n) {
+ function Cm(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && lp(e, t, r, null, fp, i);
+ n.hasOwnProperty(r) && i != null && up(e, t, r, null, pp, i);
}
n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === hn && (e.onclick = null), kt(e);
}
- function Cm(e) {
+ function wm(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
kt(e);
}
- var wm = /* @__PURE__ */ new Map(), Tm = /* @__PURE__ */ new Set();
- function Em(e) {
+ var Tm = /* @__PURE__ */ new Map(), Em = /* @__PURE__ */ new Set();
+ function Dm(e) {
if (typeof e.getRootNode == "function") {
var t = e.getRootNode();
if (t.nodeType === 9 || t.nodeType === 11) return t;
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var Dm = L.d;
+ var Om = L.d;
L.d = {
- f: Om,
- r: km,
- D: Mm,
- C: Nm,
- L: Pm,
- m: Fm,
- X: Lm,
- S: Im,
- M: Rm
+ f: km,
+ r: Am,
+ D: Nm,
+ C: Pm,
+ L: Fm,
+ m: Im,
+ X: Rm,
+ S: Lm,
+ M: zm
};
- function Om() {
- var e = Dm.f(), t = Wd();
+ function km() {
+ var e = Om.f(), t = Gd();
return e || t;
}
- function km(e) {
+ function Am(e) {
var t = jt(e);
- t !== null && t.tag === 5 && t.type === "form" ? tc(t) : Dm.r(e);
+ t !== null && t.tag === 5 && t.type === "form" ? tc(t) : Om.r(e);
}
- var Am = typeof document > "u" ? null : document;
- function jm(e, t, n) {
- var r = Am;
+ var jm = typeof document > "u" ? null : document;
+ function Mm(e, t, n) {
+ var r = jm;
if (r && typeof t == "string" && t) {
var i = $t(t);
- i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Tm.has(i) || (Tm.add(i), e = {
+ i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Em.has(i) || (Em.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), dp(t, "link", e), Pt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), fp(t, "link", e), Pt(t), r.head.appendChild(t)));
}
}
- function Mm(e) {
- Dm.D(e), jm("dns-prefetch", e, null);
+ function Nm(e) {
+ Om.D(e), Mm("dns-prefetch", e, null);
}
- function Nm(e, t) {
- Dm.C(e, t), jm("preconnect", e, t);
+ function Pm(e, t) {
+ Om.C(e, t), Mm("preconnect", e, t);
}
- function Pm(e, t, n) {
- Dm.L(e, t, n);
- var r = Am;
+ function Fm(e, t, n) {
+ Om.L(e, t, n);
+ var r = jm;
if (r && e && t) {
var i = "link[rel=\"preload\"][as=\"" + $t(t) + "\"]";
t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + $t(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + $t(n.imageSizes) + "\"]")) : i += "[href=\"" + $t(e) + "\"]";
var a = i;
switch (t) {
case "style":
- a = Bm(e);
+ a = Vm(e);
break;
- case "script": a = Wm(e);
+ case "script": a = Gm(e);
}
- if (!(wm.has(a) || (e = T({
+ if (!(Tm.has(a) || (e = T({
rel: "preload",
href: t === "image" && n && n.imageSrcSet ? void 0 : e,
as: t
- }, n), wm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Vm(a)) || t === "script" && r.querySelector(Gm(a))))) {
+ }, n), Tm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Hm(a)) || t === "script" && r.querySelector(Km(a))))) {
var o = r.createElement("link");
- dp(o, "link", e), t === "style" && (o[Ot] = !0, o.onload = o.onerror = function() {
+ fp(o, "link", e), t === "style" && (o[Ot] = !0, o.onload = o.onerror = function() {
Ft(o);
}), Pt(o), r.head.appendChild(o);
}
}
}
- function Fm(e, t) {
- Dm.m(e, t);
- var n = Am;
+ function Im(e, t) {
+ Om.m(e, t);
+ var n = jm;
if (n && e) {
var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + $t(r) + "\"][href=\"" + $t(e) + "\"]", a = i;
switch (r) {
@@ -17794,29 +17794,29 @@ var Cf = /* @__PURE__ */ h(((e) => {
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": a = Wm(e);
+ case "script": a = Gm(e);
}
- if (!wm.has(a) && (e = T({
+ if (!Tm.has(a) && (e = T({
rel: "modulepreload",
href: e
- }, t), wm.set(a, e), n.querySelector(i) === null)) {
+ }, t), Tm.set(a, e), n.querySelector(i) === null)) {
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": if (n.querySelector(Gm(a))) return;
+ case "script": if (n.querySelector(Km(a))) return;
}
- r = n.createElement("link"), dp(r, "link", e), Pt(r), n.head.appendChild(r);
+ r = n.createElement("link"), fp(r, "link", e), Pt(r), n.head.appendChild(r);
}
}
}
- function Im(e, t, n) {
- Dm.S(e, t, n);
- var r = Am;
+ function Lm(e, t, n) {
+ Om.S(e, t, n);
+ var r = jm;
if (r && e) {
- var i = Nt(r).hoistableStyles, a = Bm(e);
+ var i = Nt(r).hoistableStyles, a = Vm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -17824,21 +17824,21 @@ var Cf = /* @__PURE__ */ h(((e) => {
loading: 0,
preload: null
};
- if (o = r.querySelector(Vm(a))) s.loading = 5;
+ if (o = r.querySelector(Hm(a))) s.loading = 5;
else {
e = T({
rel: "stylesheet",
href: e,
"data-precedence": t
- }, n), (n = wm.get(a)) && Jm(e, n);
+ }, n), (n = Tm.get(a)) && Ym(e, n);
var c = o = r.createElement("link");
- Pt(c), dp(c, "link", e), c._p = new Promise(function(e, t) {
+ Pt(c), fp(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
}), c.addEventListener("error", function() {
s.loading |= 2;
- }), s.loading |= 4, qm(o, t, r);
+ }), s.loading |= 4, Jm(o, t, r);
}
o = {
type: "stylesheet",
@@ -17849,15 +17849,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
}
}
- function Lm(e, t) {
- Dm.X(e, t);
- var n = Am;
+ function Rm(e, t) {
+ Om.X(e, t);
+ var n = jm;
if (n && e) {
- var r = Nt(n).hoistableScripts, i = Wm(e), a = r.get(i);
- a || (a = n.querySelector(Gm(i)), a || (e = T({
+ var r = Nt(n).hoistableScripts, i = Gm(e), a = r.get(i);
+ a || (a = n.querySelector(Km(i)), a || (e = T({
src: e,
async: !0
- }, t), (t = wm.get(i)) && J(e, t), a = n.createElement("script"), Pt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Tm.get(i)) && q(e, t), a = n.createElement("script"), Pt(a), fp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -17865,16 +17865,16 @@ var Cf = /* @__PURE__ */ h(((e) => {
}, r.set(i, a));
}
}
- function Rm(e, t) {
- Dm.M(e, t);
- var n = Am;
+ function zm(e, t) {
+ Om.M(e, t);
+ var n = jm;
if (n && e) {
- var r = Nt(n).hoistableScripts, i = Wm(e), a = r.get(i);
- a || (a = n.querySelector(Gm(i)), a || (e = T({
+ var r = Nt(n).hoistableScripts, i = Gm(e), a = r.get(i);
+ a || (a = n.querySelector(Km(i)), a || (e = T({
src: e,
async: !0,
type: "module"
- }, t), (t = wm.get(i)) && J(e, t), a = n.createElement("script"), Pt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Tm.get(i)) && q(e, t), a = n.createElement("script"), Pt(a), fp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -17882,13 +17882,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
}, r.set(i, a));
}
}
- function zm(e, t, n, r) {
- var a = (a = xe.current) ? Em(a) : null;
+ function Bm(e, t, n, r) {
+ var a = (a = xe.current) ? Dm(a) : null;
if (!a) throw Error(i(446));
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Bm(n.href), t = Nt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Vm(n.href), t = Nt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -17901,7 +17901,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
};
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
- e = Bm(n.href);
+ e = Vm(n.href);
var o = Nt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
@@ -17911,7 +17911,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
loading: 0,
preload: null
}
- }, o.set(e, s), (o = a.querySelector(Vm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = wm.get(e), o || (o = {
+ }, o.set(e, s), (o = a.querySelector(Hm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Tm.get(e), o || (o = {
rel: "preload",
as: "style",
href: n.href,
@@ -17920,12 +17920,12 @@ var Cf = /* @__PURE__ */ h(((e) => {
media: n.media,
hrefLang: n.hrefLang,
referrerPolicy: n.referrerPolicy
- }, wm.set(e, o)), Um(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
+ }, Tm.set(e, o)), Wm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
return s;
}
if (t && r !== null) throw Error(i(529, ""));
return null;
- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Wm(n), t = Nt(a).hoistableScripts, r = t.get(n), r || (r = {
+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Gm(n), t = Nt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -17939,38 +17939,38 @@ var Cf = /* @__PURE__ */ h(((e) => {
default: throw Error(i(444, e));
}
}
- function Bm(e) {
+ function Vm(e) {
return "href=\"" + $t(e) + "\"";
}
- function Vm(e) {
+ function Hm(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
}
- function Hm(e) {
+ function Um(e) {
return T({}, e, {
"data-precedence": e.precedence,
precedence: null
});
}
- function Um(e, t, n, r) {
+ function Wm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
if (!0 !== t[Ot]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[Ot] = !0, t.onload = t.onerror = Ft.bind(null, t), dp(t, "link", n), Pt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[Ot] = !0, t.onload = t.onerror = Ft.bind(null, t), fp(t, "link", n), Pt(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
return r.loading |= 2;
});
}
- function Wm(e) {
+ function Gm(e) {
return "[src=\"" + $t(e) + "\"]";
}
- function Gm(e) {
+ function Km(e) {
return "script[async]" + e;
}
- function Km(e, t, n) {
+ function qm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
var r = e.querySelector("style[data-href~=\"" + $t(n.href) + "\"]");
@@ -17981,24 +17981,24 @@ var Cf = /* @__PURE__ */ h(((e) => {
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Pt(r), dp(r, "style", a), qm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Pt(r), fp(r, "style", a), Jm(r, n.precedence, e), t.instance = r;
case "stylesheet":
- a = Bm(n.href);
- var o = e.querySelector(Vm(a));
+ a = Vm(n.href);
+ var o = e.querySelector(Hm(a));
if (o) return t.state.loading |= 4, t.instance = o, Pt(o), o;
- r = Hm(n), (a = wm.get(a)) && Jm(r, a), o = (e.ownerDocument || e).createElement("link"), Pt(o);
+ r = Um(n), (a = Tm.get(a)) && Ym(r, a), o = (e.ownerDocument || e).createElement("link"), Pt(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
- }), dp(o, "link", r), t.state.loading |= 4, qm(o, n.precedence, e), t.instance = o;
- case "script": return o = Wm(n.src), (a = e.querySelector(Gm(o))) ? (t.instance = a, Pt(a), a) : (r = n, (a = wm.get(o)) && (r = T({}, n), J(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Pt(a), dp(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), fp(o, "link", r), t.state.loading |= 4, Jm(o, n.precedence, e), t.instance = o;
+ case "script": return o = Gm(n.src), (a = e.querySelector(Km(o))) ? (t.instance = a, Pt(a), a) : (r = n, (a = Tm.get(o)) && (r = T({}, n), q(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Pt(a), fp(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
- else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, qm(r, n.precedence, e));
+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Jm(r, n.precedence, e));
return t.instance;
}
- function qm(e, t, n) {
+ function Jm(e, t, n) {
for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {
var s = r[o];
if (s.dataset.precedence === t) a = s;
@@ -18006,18 +18006,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
}
- function Jm(e, t) {
+ function Ym(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
}
- function J(e, t) {
+ function q(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
}
- var Ym = null;
- function Xm(e, t, n) {
- if (Ym === null) {
- var r = /* @__PURE__ */ new Map(), i = Ym = /* @__PURE__ */ new Map();
+ var Xm = null;
+ function Zm(e, t, n) {
+ if (Xm === null) {
+ var r = /* @__PURE__ */ new Map(), i = Xm = /* @__PURE__ */ new Map();
i.set(n, r);
- } else i = Ym, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
+ } else i = Xm, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
if (r.has(e)) return r;
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
var a = n[i];
@@ -18030,10 +18030,10 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return r;
}
- function Zm(e, t, n) {
+ function Qm(e, t, n) {
e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
}
- function Qm(e, t, n) {
+ function $m(e, t, n) {
if (n === 1 || t.itemProp != null) return !1;
switch (e) {
case "meta":
@@ -18051,37 +18051,37 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return !1;
}
- function $m(e, t) {
+ function eh(e, t) {
return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";
}
- function eh(e) {
+ function th(e) {
return !(e.type === "stylesheet" && !(e.state.loading & 3));
}
- function th(e) {
+ function nh(e) {
return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;
}
- function nh(e, t) {
- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += th(t), e.suspenseyImages.push(t)), e = ch.bind(e), t.decode().then(e, e));
+ function rh(e, t) {
+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += nh(t), e.suspenseyImages.push(t)), e = J.bind(e), t.decode().then(e, e));
}
- function rh(e, t, n, r) {
+ function ih(e, t, n, r) {
if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {
if (n.instance === null) {
- var i = Bm(r.href), a = t.querySelector(Vm(i));
+ var i = Vm(r.href), a = t.querySelector(Hm(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = sh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Pt(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = ch.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Pt(a);
return;
}
- a = t.ownerDocument || t, r = Hm(r), (i = wm.get(i)) && Jm(r, i), a = a.createElement("link"), Pt(a);
+ a = t.ownerDocument || t, r = Um(r), (i = Tm.get(i)) && Ym(r, i), a = a.createElement("link"), Pt(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), dp(a, "link", r), n.instance = a;
+ }), fp(a, "link", r), n.instance = a;
}
- e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = sh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
+ e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = ch.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
}
- var ih = 0;
- function ah(e, t) {
+ var ah = 0;
+ function oh(e, t) {
return e.stylesheets && e.count === 0 && uh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
var r = setTimeout(function() {
if (e.stylesheets && uh(e, e.stylesheets), e.unsuspend) {
@@ -18089,19 +18089,19 @@ var Cf = /* @__PURE__ */ h(((e) => {
e.unsuspend = null, t();
}
}, 6e4 + t);
- 0 < e.imgBytes && ih === 0 && (ih = 62500 * hp());
+ 0 < e.imgBytes && ah === 0 && (ah = 62500 * gp());
var i = setTimeout(function() {
if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && uh(e, e.stylesheets), e.unsuspend)) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
- }, (e.imgBytes > ih ? 50 : 800) + t);
+ }, (e.imgBytes > ah ? 50 : 800) + t);
return e.unsuspend = n, function() {
e.unsuspend = null, clearTimeout(r), clearTimeout(i);
};
} : null;
}
- function oh(e) {
+ function sh(e) {
if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {
if (e.stylesheets) uh(e, e.stylesheets);
else if (e.unsuspend) {
@@ -18110,15 +18110,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
}
}
- function sh() {
- this.count--, oh(this);
- }
function ch() {
- this.imgCount--, oh(this);
+ this.count--, sh(this);
+ }
+ function J() {
+ this.imgCount--, sh(this);
}
var lh = null;
function uh(e, t) {
- e.stylesheets = null, e.unsuspend !== null && (e.count++, lh = /* @__PURE__ */ new Map(), t.forEach(dh, e), lh = null, sh.call(e));
+ e.stylesheets = null, e.unsuspend !== null && (e.count++, lh = /* @__PURE__ */ new Map(), t.forEach(dh, e), lh = null, ch.call(e));
}
function dh(e, t) {
if (!(t.state.loading & 4)) {
@@ -18132,7 +18132,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
r && n.set(null, r);
}
- i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = sh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
+ i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = ch.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
}
}
var fh = {
@@ -18157,7 +18157,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
return e ? (e = Di, e) : Di;
}
function gh(e, t, n, r, i, a) {
- i = hh(i), r.context === null ? r.context = i : r.pendingContext = i, r = mo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = ho(e, r, t), n !== null && (zd(n, e, t), go(n, e, t));
+ i = hh(i), r.context === null ? r.context = i : r.pendingContext = i, r = mo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = ho(e, r, t), n !== null && (Bd(n, e, t), go(n, e, t));
}
function _h(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
@@ -18171,15 +18171,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
function yh(e) {
if (e.tag === 13 || e.tag === 31) {
var t = wi(e, 67108864);
- t !== null && zd(t, e, 67108864), vh(e, 67108864);
+ t !== null && Bd(t, e, 67108864), vh(e, 67108864);
}
}
function bh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Id();
+ var t = Ld();
t = gt(t);
var n = wi(e, t);
- n !== null && zd(n, e, t), vh(e, t);
+ n !== null && Bd(n, e, t), vh(e, t);
}
}
var xh = !0;
@@ -18206,7 +18206,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
function wh(e, t, n, r) {
if (xh) {
var i = Th(r);
- if (i === null) ep(e, t, r, Eh, n), Lh(e, r);
+ if (i === null) tp(e, t, r, Eh, n), Lh(e, r);
else if (zh(i, e, t, n, r)) r.stopPropagation();
else if (Lh(e, r), t & 4 && -1 < Ih.indexOf(e)) {
for (; i !== null;) {
@@ -18221,18 +18221,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
var c = 1 << 31 - Ze(o);
s.entanglements[1] |= c, o &= ~c;
}
- Nf(a), !(td & 6) && (xd = ze() + 500, Pf(0, !1));
+ Pf(a), !(td & 6) && (Sd = ze() + 500, Ff(0, !1));
}
}
break;
case 31:
- case 13: s = wi(a, 2), s !== null && zd(s, a, 2), Wd(), vh(a, 2);
+ case 13: s = wi(a, 2), s !== null && Bd(s, a, 2), Gd(), vh(a, 2);
}
- if (a = Th(r), a === null && ep(e, t, r, Eh, n), a === i) break;
+ if (a = Th(r), a === null && tp(e, t, r, Eh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else ep(e, t, r, null, n);
+ } else tp(e, t, r, null, n);
}
}
function Th(e) {
@@ -18519,13 +18519,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- gh(n, Id(), e, t, null, null);
+ gh(n, Ld(), e, t, null, null);
}, Yh.prototype.unmount = Jh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- gh(e.current, 2, null, e, null, null), Wd(), t[Ct] = null;
+ gh(e.current, 2, null, e, null, null), Gd(), t[Ct] = null;
}
};
function Yh(e) {
@@ -18566,9 +18566,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
var n = !1, r = "", o = Sc, s = Cc, c = wc;
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = mh(e, 1, !1, null, null, n, r, null, o, s, c, qh), e[Ct] = t.current, Qf(e), new Jh(t);
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = mh(e, 1, !1, null, null, n, r, null, o, s, c, qh), e[Ct] = t.current, $f(e), new Jh(t);
};
-})), Ef = (/* @__PURE__ */ h(((e, t) => {
+})), Df = (/* @__PURE__ */ h(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -18576,8 +18576,8 @@ var Cf = /* @__PURE__ */ h(((e) => {
console.error(e);
}
}
- n(), t.exports = Tf();
-})))(), Df = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+ n(), t.exports = Ef();
+})))(), Of = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18585,7 +18585,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Of = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18593,7 +18593,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), Af = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18601,7 +18601,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), Af = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18609,7 +18609,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), Mf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18617,7 +18617,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Mf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Nf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18625,7 +18625,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Nf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Pf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18633,7 +18633,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Pf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Ff = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18641,7 +18641,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Ff = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), If = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18649,7 +18649,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), If = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), Lf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18657,7 +18657,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Lf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Rf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18665,7 +18665,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Rf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18673,7 +18673,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Bf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18681,7 +18681,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Bf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Vf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18689,7 +18689,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), Vf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), Hf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18697,7 +18697,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Hf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Uf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18705,7 +18705,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Uf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Wf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18713,7 +18713,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Wf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Gf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18721,7 +18721,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), Gf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), Kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18729,7 +18729,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18737,7 +18737,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18745,7 +18745,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Yf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18753,7 +18753,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Yf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Xf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18761,7 +18761,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Xf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18769,7 +18769,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), Zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), Qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18777,7 +18777,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), $f = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18785,7 +18785,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), $f = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), ep = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18793,7 +18793,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), ep = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), tp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18801,7 +18801,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), tp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), np = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18809,7 +18809,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), np = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), rp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18817,7 +18817,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), rp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), ip = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18825,7 +18825,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), ip = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), ap = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18833,7 +18833,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), ap = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), op = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18841,7 +18841,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), op = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), sp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18849,7 +18849,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), sp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), cp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18857,7 +18857,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), cp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), lp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18865,7 +18865,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), lp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, S.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), up = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18873,100 +18873,100 @@ var Cf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), up = (e, t) => {
+}, S.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), dp = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, dp = (e, t) => ({
+}, fp = (e, t) => ({
classGroupId: e,
validator: t
-}), fp = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), pp = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), pp = "-", mp = [], hp = "arbitrary..", gp = (e) => {
- let t = yp(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), mp = "-", hp = [], gp = "arbitrary..", _p = (e) => {
+ let t = bp(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return vp(e);
- let n = e.split(pp);
- return _p(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return yp(e);
+ let n = e.split(mp);
+ return vp(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? up(i, t) : t : i || mp;
+ return t ? i ? dp(i, t) : t : i || hp;
}
- return n[e] || mp;
+ return n[e] || hp;
}
};
-}, _p = (e, t, n) => {
+}, vp = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = _p(e, t + 1, i);
+ let n = vp(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(pp) : e.slice(t).join(pp), s = a.length;
+ let o = t === 0 ? e.join(mp) : e.slice(t).join(mp), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, vp = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, yp = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? hp + r : void 0;
-})(), yp = (e) => {
+ return r ? gp + r : void 0;
+})(), bp = (e) => {
let { theme: t, classGroups: n } = e;
- return bp(n, t);
-}, bp = (e, t) => {
- let n = fp();
+ return xp(n, t);
+}, xp = (e, t) => {
+ let n = pp();
for (let r in e) {
let i = e[r];
- xp(i, n, r, t);
+ Sp(i, n, r, t);
}
return n;
-}, xp = (e, t, n, r) => {
+}, Sp = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Sp(i, t, n, r);
+ Cp(i, t, n, r);
}
-}, Sp = (e, t, n, r) => {
+}, Cp = (e, t, n, r) => {
if (typeof e == "string") {
- Cp(e, t, n);
+ wp(e, t, n);
return;
}
if (typeof e == "function") {
- wp(e, t, n, r);
+ Tp(e, t, n, r);
return;
}
- Tp(e, t, n, r);
-}, Cp = (e, t, n) => {
- let r = e === "" ? t : Ep(t, e);
+ Ep(e, t, n, r);
+}, wp = (e, t, n) => {
+ let r = e === "" ? t : Dp(t, e);
r.classGroupId = n;
-}, wp = (e, t, n, r) => {
- if (Dp(e)) {
- xp(e(r), t, n, r);
+}, Tp = (e, t, n, r) => {
+ if (Op(e)) {
+ Sp(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(dp(n, e));
-}, Tp = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(fp(n, e));
+}, Ep = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- xp(o, Ep(t, a), n, r);
+ Sp(o, Dp(t, a), n, r);
}
-}, Ep = (e, t) => {
- let n = e, r = t.split(pp), i = r.length;
+}, Dp = (e, t) => {
+ let n = e, r = t.split(mp), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = fp(), n.nextPart.set(t, i)), n = i;
+ i || (i = pp(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Dp = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Op = (e) => {
+}, Op = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kp = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -18984,19 +18984,19 @@ var Cf = /* @__PURE__ */ h(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, kp = "!", Ap = ":", jp = [], Mp = (e, t, n, r, i) => ({
+}, Ap = "!", jp = ":", Mp = [], Np = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Np = (e) => {
+}), Pp = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === Ap) {
+ if (o === jp) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -19008,13 +19008,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(kp) ? (c = s.slice(0, -1), l = !0) : s.startsWith(kp) && (c = s.slice(1), l = !0);
+ s.endsWith(Ap) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Ap) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return Mp(t, l, c, u);
+ return Np(t, l, c, u);
};
if (t) {
- let e = t + Ap, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Mp(jp, !1, t, void 0, !0);
+ let e = t + jp, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Np(Mp, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -19024,7 +19024,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
});
}
return r;
-}, Pp = (e) => {
+}, Fp = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -19036,18 +19036,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Fp = (e) => ({
- cache: Op(e.cacheSize),
- parseClassName: Np(e),
- sortModifiers: Pp(e),
- postfixLookupClassGroupIds: Ip(e),
- ...gp(e)
-}), Ip = (e) => {
+}, Ip = (e) => ({
+ cache: kp(e.cacheSize),
+ parseClassName: Pp(e),
+ sortModifiers: Fp(e),
+ postfixLookupClassGroupIds: Lp(e),
+ ..._p(e)
+}), Lp = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Lp = /\s+/, Rp = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Lp), l = "";
+}, Rp = /\s+/, zp = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Rp), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -19071,7 +19071,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + kp : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Ap : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -19082,34 +19082,34 @@ var Cf = /* @__PURE__ */ h(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, zp = (...e) => {
+}, Bp = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = Bp(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = Vp(n)) && (i && (i += " "), i += r);
return i;
-}, Bp = (e) => {
+}, Vp = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = Bp(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = Vp(e[r])) && (n && (n += " "), n += t);
return n;
-}, Vp = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Fp(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, Hp = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Ip(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Rp(e, n);
+ let a = zp(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(zp(...e));
-}, Hp = [], Up = (e) => {
- let t = (t) => t[e] || Hp;
+ return a = o, (...e) => a(Bp(...e));
+}, Up = [], Wp = (e) => {
+ let t = (t) => t[e] || Up;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, Wp = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Gp = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jp = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yp = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xp = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zp = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Qp = (e) => Kp.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), $p = (e) => !!e && Number.isInteger(Number(e)), em = (e) => e.endsWith("%") && G(e.slice(0, -1)), tm = (e) => qp.test(e), nm = () => !0, rm = (e) => Jp.test(e) && !Yp.test(e), im = () => !1, am = (e) => Xp.test(e), om = (e) => Zp.test(e), sm = (e) => !K(e) && !q(e), cm = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), lm = (e) => wm(e, Om, im), K = (e) => Wp.test(e), um = (e) => wm(e, km, rm), dm = (e) => wm(e, Am, G), fm = (e) => wm(e, Mm, nm), pm = (e) => wm(e, jm, im), mm = (e) => wm(e, Em, im), hm = (e) => wm(e, Dm, om), gm = (e) => wm(e, Nm, am), q = (e) => Gp.test(e), _m = (e) => Tm(e, km), vm = (e) => Tm(e, jm), ym = (e) => Tm(e, Em), bm = (e) => Tm(e, Om), xm = (e) => Tm(e, Dm), Sm = (e) => Tm(e, Nm, !0), Cm = (e) => Tm(e, Mm, !0), wm = (e, t, n) => {
- let r = Wp.exec(e);
- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, Tm = (e, t, n = !1) => {
+}, Gp = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Kp = /^\((?:(\w[\w-]*):)?(.+)\)$/i, qp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Jp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yp = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Xp = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Zp = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qp = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, $p = (e) => qp.test(e), W = (e) => !!e && !Number.isNaN(Number(e)), em = (e) => !!e && Number.isInteger(Number(e)), tm = (e) => e.endsWith("%") && W(e.slice(0, -1)), nm = (e) => Jp.test(e), rm = () => !0, im = (e) => Yp.test(e) && !Xp.test(e), am = () => !1, om = (e) => Zp.test(e), sm = (e) => Qp.test(e), cm = (e) => !G(e) && !K(e), lm = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), um = (e) => Tm(e, km, am), G = (e) => Gp.test(e), dm = (e) => Tm(e, Am, im), fm = (e) => Tm(e, jm, W), pm = (e) => Tm(e, Nm, rm), mm = (e) => Tm(e, Mm, am), hm = (e) => Tm(e, Dm, am), gm = (e) => Tm(e, Om, sm), _m = (e) => Tm(e, Pm, om), K = (e) => Kp.test(e), vm = (e) => Em(e, Am), ym = (e) => Em(e, Mm), bm = (e) => Em(e, Dm), xm = (e) => Em(e, km), Sm = (e) => Em(e, Om), Cm = (e) => Em(e, Pm, !0), wm = (e) => Em(e, Nm, !0), Tm = (e, t, n) => {
let r = Gp.exec(e);
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
+}, Em = (e, t, n = !1) => {
+ let r = Kp.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, Em = (e) => e === "position" || e === "percentage", Dm = (e) => e === "image" || e === "url", Om = (e) => e === "length" || e === "size" || e === "bg-size", km = (e) => e === "length", Am = (e) => e === "number", jm = (e) => e === "family-name", Mm = (e) => e === "number" || e === "weight", Nm = (e) => e === "shadow", Pm = () => {
- let e = Up("color"), t = Up("font"), n = Up("text"), r = Up("font-weight"), i = Up("tracking"), a = Up("leading"), o = Up("breakpoint"), s = Up("container"), c = Up("spacing"), l = Up("radius"), u = Up("shadow"), d = Up("inset-shadow"), f = Up("text-shadow"), p = Up("drop-shadow"), m = Up("blur"), h = Up("perspective"), g = Up("aspect"), _ = Up("ease"), v = Up("animate"), y = () => [
+}, Dm = (e) => e === "position" || e === "percentage", Om = (e) => e === "image" || e === "url", km = (e) => e === "length" || e === "size" || e === "bg-size", Am = (e) => e === "length", jm = (e) => e === "number", Mm = (e) => e === "family-name", Nm = (e) => e === "number" || e === "weight", Pm = (e) => e === "shadow", Fm = () => {
+ let e = Wp("color"), t = Wp("font"), n = Wp("text"), r = Wp("font-weight"), i = Wp("tracking"), a = Wp("leading"), o = Wp("breakpoint"), s = Wp("container"), c = Wp("spacing"), l = Wp("radius"), u = Wp("shadow"), d = Wp("inset-shadow"), f = Wp("text-shadow"), p = Wp("drop-shadow"), m = Wp("blur"), h = Wp("perspective"), g = Wp("aspect"), _ = Wp("ease"), v = Wp("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -19134,8 +19134,8 @@ var Cf = /* @__PURE__ */ h(((e) => {
"left-bottom"
], x = () => [
...b(),
- q,
- K
+ K,
+ G
], S = () => [
"auto",
"hidden",
@@ -19147,43 +19147,43 @@ var Cf = /* @__PURE__ */ h(((e) => {
"contain",
"none"
], w = () => [
- q,
K,
+ G,
c
], T = () => [
- Qp,
+ $p,
"full",
"auto",
...w()
], E = () => [
- $p,
+ em,
"none",
"subgrid",
- q,
- K
+ K,
+ G
], D = () => [
"auto",
{ span: [
"full",
- $p,
- q,
- K
+ em,
+ K,
+ G
] },
- $p,
- q,
- K
+ em,
+ K,
+ G
], O = () => [
- $p,
+ em,
"auto",
- q,
- K
+ K,
+ G
], k = () => [
"auto",
"min",
"max",
"fr",
- q,
- K
+ K,
+ G
], A = () => [
"start",
"end",
@@ -19203,7 +19203,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- Qp,
+ $p,
"auto",
"full",
"dvw",
@@ -19218,7 +19218,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
...w()
], ee = () => [
s,
- Qp,
+ $p,
"screen",
"full",
"dvw",
@@ -19229,7 +19229,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
"fit",
...w()
], P = () => [
- Qp,
+ $p,
"screen",
"full",
"lh",
@@ -19242,13 +19242,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
...w()
], F = () => [
e,
- q,
- K
+ K,
+ G
], te = () => [
...b(),
- ym,
- mm,
- { position: [q, K] }
+ bm,
+ hm,
+ { position: [K, G] }
], ne = () => ["no-repeat", { repeat: [
"",
"x",
@@ -19259,25 +19259,25 @@ var Cf = /* @__PURE__ */ h(((e) => {
"auto",
"cover",
"contain",
- bm,
- lm,
- { size: [q, K] }
+ xm,
+ um,
+ { size: [K, G] }
], ie = () => [
- em,
- _m,
- um
+ tm,
+ vm,
+ dm
], ae = () => [
"",
"none",
"full",
l,
- q,
- K
+ K,
+ G
], oe = () => [
"",
- G,
- _m,
- um
+ W,
+ vm,
+ dm
], se = () => [
"solid",
"dashed",
@@ -19301,32 +19301,32 @@ var Cf = /* @__PURE__ */ h(((e) => {
"color",
"luminosity"
], le = () => [
- G,
- em,
- ym,
- mm
+ W,
+ tm,
+ bm,
+ hm
], ue = () => [
"",
"none",
m,
- q,
- K
+ K,
+ G
], de = () => [
"none",
- G,
- q,
- K
+ W,
+ K,
+ G
], fe = () => [
"none",
- G,
- q,
- K
+ W,
+ K,
+ G
], I = () => [
- G,
- q,
- K
+ W,
+ K,
+ G
], L = () => [
- Qp,
+ $p,
"full",
...w()
];
@@ -19340,17 +19340,17 @@ var Cf = /* @__PURE__ */ h(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [tm],
- breakpoint: [tm],
- color: [nm],
- container: [tm],
- "drop-shadow": [tm],
+ blur: [nm],
+ breakpoint: [nm],
+ color: [rm],
+ container: [nm],
+ "drop-shadow": [nm],
ease: [
"in",
"out",
"in-out"
],
- font: [sm],
+ font: [cm],
"font-weight": [
"thin",
"extralight",
@@ -19362,7 +19362,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [tm],
+ "inset-shadow": [nm],
leading: [
"none",
"tight",
@@ -19379,11 +19379,11 @@ var Cf = /* @__PURE__ */ h(((e) => {
"distant",
"none"
],
- radius: [tm],
- shadow: [tm],
- spacing: ["px", G],
- text: [tm],
- "text-shadow": [tm],
+ radius: [nm],
+ shadow: [nm],
+ spacing: ["px", W],
+ text: [nm],
+ "text-shadow": [nm],
tracking: [
"tighter",
"tight",
@@ -19397,9 +19397,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- Qp,
+ $p,
+ G,
K,
- q,
g
] }],
container: ["container"],
@@ -19407,15 +19407,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
"",
"normal",
"size",
- q,
- K
+ K,
+ G
] }],
- "container-named": [cm],
+ "container-named": [lm],
columns: [{ columns: [
- G,
+ W,
"auto",
+ G,
K,
- q,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -19512,13 +19512,13 @@ var Cf = /* @__PURE__ */ h(((e) => {
"collapse"
],
z: [{ z: [
- $p,
+ em,
"auto",
- q,
- K
+ K,
+ G
] }],
basis: [{ basis: [
- Qp,
+ $p,
"full",
"auto",
s,
@@ -19536,32 +19536,32 @@ var Cf = /* @__PURE__ */ h(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- G,
- Qp,
+ W,
+ $p,
"auto",
"initial",
"none",
- K
+ G
] }],
grow: [{ grow: [
"",
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
shrink: [{ shrink: [
"",
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
order: [{ order: [
- $p,
+ em,
"first",
"last",
"none",
- q,
- K
+ K,
+ G
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -19668,15 +19668,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
"font-size": [{ text: [
"base",
n,
- _m,
- um
+ vm,
+ dm
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Cm,
- fm
+ wm,
+ pm
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -19688,15 +19688,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- em,
- K
+ tm,
+ G
] }],
"font-family": [{ font: [
- vm,
- pm,
+ ym,
+ mm,
t
] }],
- "font-features": [{ "font-features": [K] }],
+ "font-features": [{ "font-features": [G] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -19705,14 +19705,14 @@ var Cf = /* @__PURE__ */ h(((e) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- q,
- K
+ K,
+ G
] }],
"line-clamp": [{ "line-clamp": [
- G,
+ W,
"none",
- q,
- dm
+ K,
+ fm
] }],
leading: [{ leading: [
"none",
@@ -19721,16 +19721,16 @@ var Cf = /* @__PURE__ */ h(((e) => {
] }],
"list-image": [{ "list-image": [
"none",
- q,
- K
+ K,
+ G
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- q,
- K
+ K,
+ G
] }],
"text-alignment": [{ text: [
"left",
@@ -19750,18 +19750,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
],
"text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- G,
+ W,
"from-font",
"auto",
- q,
- um
+ K,
+ dm
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- G,
+ W,
"auto",
- q,
- K
+ K,
+ G
] }],
"text-transform": [
"uppercase",
@@ -19782,9 +19782,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- $p,
- q,
- K
+ em,
+ K,
+ G
] }],
"vertical-align": [{ align: [
"baseline",
@@ -19795,8 +19795,8 @@ var Cf = /* @__PURE__ */ h(((e) => {
"text-bottom",
"sub",
"super",
- q,
- K
+ K,
+ G
] }],
whitespace: [{ whitespace: [
"normal",
@@ -19824,8 +19824,8 @@ var Cf = /* @__PURE__ */ h(((e) => {
] }],
content: [{ content: [
"none",
- q,
- K
+ K,
+ G
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -19860,24 +19860,24 @@ var Cf = /* @__PURE__ */ h(((e) => {
"l",
"tl"
] },
- $p,
- q,
- K
+ em,
+ K,
+ G
],
radial: [
"",
- q,
- K
+ K,
+ G
],
conic: [
"",
- $p,
- q,
- K
+ em,
+ K,
+ G
]
},
- xm,
- hm
+ Sm,
+ gm
] }],
"bg-color": [{ bg: F() }],
"gradient-from-pos": [{ from: ie() }],
@@ -19944,15 +19944,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"outline-w": [{ outline: [
"",
- G,
- _m,
- um
+ W,
+ vm,
+ dm
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -19960,35 +19960,35 @@ var Cf = /* @__PURE__ */ h(((e) => {
"inner",
"none",
u,
- Sm,
- gm
+ Cm,
+ _m
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- Sm,
- gm
+ Cm,
+ _m
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [G, um] }],
+ "ring-offset-w": [{ "ring-offset": [W, dm] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": oe() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- Sm,
- gm
+ Cm,
+ _m
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"mix-blend": [{ "mix-blend": [
...ce(),
@@ -20010,7 +20010,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [G] }],
+ "mask-image-linear-pos": [{ "mask-linear": [W] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": le() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": le() }],
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
@@ -20039,7 +20039,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
"mask-image-y-to-pos": [{ "mask-y-to": le() }],
"mask-image-y-from-color": [{ "mask-y-from": F() }],
"mask-image-y-to-color": [{ "mask-y-to": F() }],
- "mask-image-radial": [{ "mask-radial": [q, K] }],
+ "mask-image-radial": [{ "mask-radial": [K, G] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": le() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": le() }],
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
@@ -20050,7 +20050,7 @@ var Cf = /* @__PURE__ */ h(((e) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [G] }],
+ "mask-image-conic-pos": [{ "mask-conic": [W] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": le() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": le() }],
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
@@ -20074,111 +20074,111 @@ var Cf = /* @__PURE__ */ h(((e) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- q,
- K
+ K,
+ G
] }],
filter: [{ filter: [
"",
"none",
- q,
- K
+ K,
+ G
] }],
blur: [{ blur: ue() }],
brightness: [{ brightness: [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
contrast: [{ contrast: [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- Sm,
- gm
+ Cm,
+ _m
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"hue-rotate": [{ "hue-rotate": [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
invert: [{ invert: [
"",
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
saturate: [{ saturate: [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
sepia: [{ sepia: [
"",
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- q,
- K
+ K,
+ G
] }],
"backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -20194,39 +20194,39 @@ var Cf = /* @__PURE__ */ h(((e) => {
"shadow",
"transform",
"none",
- q,
- K
+ K,
+ G
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- G,
+ W,
"initial",
- q,
- K
+ K,
+ G
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- q,
- K
+ K,
+ G
] }],
delay: [{ delay: [
- G,
- q,
- K
+ W,
+ K,
+ G
] }],
animate: [{ animate: [
"none",
v,
- q,
- K
+ K,
+ G
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- q,
- K
+ K,
+ G
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: de() }],
@@ -20242,8 +20242,8 @@ var Cf = /* @__PURE__ */ h(((e) => {
"skew-x": [{ "skew-x": I() }],
"skew-y": [{ "skew-y": I() }],
transform: [{ transform: [
- q,
K,
+ G,
"",
"none",
"gpu",
@@ -20257,9 +20257,9 @@ var Cf = /* @__PURE__ */ h(((e) => {
"translate-z": [{ "translate-z": L() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- $p,
- q,
- K
+ em,
+ K,
+ G
] }],
accent: [{ accent: F() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -20309,8 +20309,8 @@ var Cf = /* @__PURE__ */ h(((e) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- q,
- K
+ K,
+ G
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -20396,15 +20396,15 @@ var Cf = /* @__PURE__ */ h(((e) => {
"scroll",
"contents",
"transform",
- q,
- K
+ K,
+ G
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- G,
- _m,
- um,
- dm
+ W,
+ vm,
+ dm,
+ fm
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -20662,16 +20662,16 @@ var Cf = /* @__PURE__ */ h(((e) => {
"selection"
]
};
-}, Fm = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Im(e, "cacheSize", t), Im(e, "prefix", n), Im(e, "experimentalParseClassName", r), Lm(e.theme, a.theme), Lm(e.classGroups, a.classGroups), Lm(e.conflictingClassGroups, a.conflictingClassGroups), Lm(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Im(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Im(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Rm(e.theme, i.theme), Rm(e.classGroups, i.classGroups), Rm(e.conflictingClassGroups, i.conflictingClassGroups), Rm(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), zm(e, i, "postfixLookupClassGroups"), zm(e, i, "orderSensitiveModifiers"), e), Im = (e, t, n) => {
+}, Im = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Lm(e, "cacheSize", t), Lm(e, "prefix", n), Lm(e, "experimentalParseClassName", r), Rm(e.theme, a.theme), Rm(e.classGroups, a.classGroups), Rm(e.conflictingClassGroups, a.conflictingClassGroups), Rm(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Lm(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Lm(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), zm(e.theme, i.theme), zm(e.classGroups, i.classGroups), zm(e.conflictingClassGroups, i.conflictingClassGroups), zm(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Bm(e, i, "postfixLookupClassGroups"), Bm(e, i, "orderSensitiveModifiers"), e), Lm = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, Lm = (e, t) => {
- if (t) for (let n in t) Im(e, n, t[n]);
}, Rm = (e, t) => {
- if (t) for (let n in t) zm(e, t, n);
-}, zm = (e, t, n) => {
+ if (t) for (let n in t) Lm(e, n, t[n]);
+}, zm = (e, t) => {
+ if (t) for (let n in t) Bm(e, t, n);
+}, Bm = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Bm = (e, ...t) => typeof e == "function" ? Vp(Pm, e, ...t) : Vp(() => Fm(Pm(), e), ...t), Vm = [
+}, Vm = (e, ...t) => typeof e == "function" ? Hp(Fm, e, ...t) : Hp(() => Im(Fm(), e), ...t), Hm = [
"large-title",
"display-1",
"display-2",
@@ -20685,18 +20685,18 @@ var Cf = /* @__PURE__ */ h(((e) => {
"body-2",
"caption-1",
"caption-2"
-], Hm = [
+], Um = [
"regular",
"medium",
"semibold",
"bold"
-], Um = Bm({ extend: { classGroups: { "font-size": [{ text: Vm.flatMap((e) => Hm.map((t) => `${e}-${t}`)) }] } } });
-function Wm(e) {
+], Wm = Vm({ extend: { classGroups: { "font-size": [{ text: Hm.flatMap((e) => Um.map((t) => `${e}-${t}`)) }] } } });
+function Gm(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Gm = Wm({
+var Km = Gm({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -20715,22 +20715,22 @@ var Gm = Wm({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Km({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function qm({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
ref: r,
- className: Um(Gm.base, Gm.variant[e], Gm.color[t], n),
+ className: Wm(Km.base, Km.variant[e], Km.color[t], n),
...i
});
}
//#endregion
//#region src/api.ts
-var qm = class extends Error {
+var Jm = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(i(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, Jm = (e) => {
+}, Ym = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -20742,8 +20742,8 @@ var qm = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, J = (e) => i(e);
-async function Ym(e, t) {
+}, q = (e) => i(e);
+async function Xm(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -20752,10 +20752,10 @@ async function Ym(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new qm(Jm(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new Jm(Ym(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function Xm(e, t, n = "POST", r) {
+async function Zm(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -20769,49 +20769,49 @@ async function Xm(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new qm(Jm(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new Jm(Ym(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/card.tsx
-var Zm = "min-w-0", Qm = {
+var Qm = "min-w-0", $m = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, $m = {
+}, eh = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface"
-}, eh = {
+}, th = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, th = {
+}, nh = {
none: "",
default: "p-5"
-}, nh = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", rh = "data-selected:bg-background-primary-default data-selected:ring-2 data-selected:ring-inset data-selected:ring-border-focus-ring";
-function ih(e = {}) {
+}, rh = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", ih = "data-selected:bg-background-primary-default data-selected:ring-2 data-selected:ring-inset data-selected:ring-border-focus-ring";
+function ah(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Zm,
- Qm[t],
- $m[s],
- th[n],
- a ? eh[a] : "",
- r ? nh : "",
- i ? rh : "",
+ Qm,
+ $m[t],
+ eh[s],
+ nh[n],
+ a ? th[a] : "",
+ r ? rh : "",
+ i ? ih : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var ah = {
+var oh = {
page: "rounded-2xl border border-separator-border px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function oh({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function sh({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `flex flex-col items-center gap-2 text-center ${ah[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${oh[i]}`,
children: [
/* @__PURE__ */ (0, C.jsx)(e, {
"aria-hidden": !0,
@@ -20834,7 +20834,7 @@ function oh({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function sh({ label: e }) {
+function ch({ label: e }) {
return /* @__PURE__ */ (0, C.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -20851,7 +20851,7 @@ function sh({ label: e }) {
}
//#endregion
//#region src/react/components/note.tsx
-function ch({ tone: e, title: t, extra: n, children: r }) {
+function J({ tone: e, title: t, extra: n, children: r }) {
let i = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
t ? /* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-medium",
@@ -20940,7 +20940,7 @@ var dh = new Xe({ defaultOptions: { queries: {
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), fh = "/api/tasks", ph = ["tasks"], mh = 2e3, hh = 1e4, gh = (e) => e?.running.length ? mh : hh, _h = (e) => Ym(fh, e);
+} } }), fh = "/api/tasks", ph = ["tasks"], mh = 2e3, hh = 1e4, gh = (e) => e?.running.length ? mh : hh, _h = (e) => Xm(fh, e);
async function vh(e) {
await dh.fetchQuery({
queryKey: ph,
@@ -21008,7 +21008,7 @@ var Eh = {
interrupted: "yellow"
};
function Dh({ status: e }) {
- return /* @__PURE__ */ (0, C.jsx)(Km, {
+ return /* @__PURE__ */ (0, C.jsx)(qm, {
color: Eh[e] ?? "neutral",
children: xh(e)
});
@@ -21017,7 +21017,7 @@ function Oh({ run: e, meta: t, children: n, footer: r }) {
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
- className: ih({
+ className: ah({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -21069,7 +21069,7 @@ function kh({ run: e }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: r })
+ }) : /* @__PURE__ */ (0, C.jsx)(ch, { label: r })
});
}
function Ah({ run: e }) {
@@ -21112,24 +21112,24 @@ function Nh(e) {
queryKey: ph,
queryFn: ({ signal: e }) => _h(e),
refetchInterval: (e) => gh(e.state.data)
- }), n = t.data, r = t.error ? J(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ }), n = t.data, r = t.error ? q(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: r || "读取任务中心失败"
}) });
let i = n.running || [], a = n.skipped || [], o = (n.finished || []).filter((e) => !a.some((t) => t.id === e.id)), s = !i.length && !a.length && !o.length;
return /* @__PURE__ */ (0, C.jsxs)(lh, { children: [
- r ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ r ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: r
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n.available === !1 ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- s ? /* @__PURE__ */ (0, C.jsx)(oh, {
+ s ? /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: Kf,
+ icon: qf,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
@@ -21138,7 +21138,7 @@ function Nh(e) {
children: i.length ? /* @__PURE__ */ (0, C.jsx)(Mh, {
live: !0,
children: i.map((e) => /* @__PURE__ */ (0, C.jsx)(kh, { run: e }, e.id))
- }) : /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, C.jsx)(J, {
tone: "neutral",
children: "没有任务在跑。"
})
@@ -23293,7 +23293,7 @@ function wv({ props: e, selectRef: t, collection: n }) {
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Tc({ within: !0 }), c = (0, S.useRef)(null), [l, u] = zh(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = rd({
+ }), { isFocusVisible: o, focusProps: s } = Tc({ within: !0 }), c = (0, S.useRef)(null), [l, u] = zh(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = id({
...Bh(e),
label: u,
validationBehavior: i
@@ -23362,7 +23362,7 @@ function wv({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ S.createElement(ad, {
+ }, b.children, /*#__PURE__*/ S.createElement(od, {
..._,
autoComplete: e.autoComplete
})));
@@ -23417,7 +23417,7 @@ for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(fu
}), Dv = /*#__PURE__*/ (0, S.createContext)(null), Ov = /*#__PURE__*/ (0, S.createContext)(null), kv = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = Rh(r, t, Dv);
- let i = Rr((0, S.useMemo)(() => yr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Wo(e), o = od({
+ let i = Rr((0, S.useMemo)(() => yr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Wo(e), o = sd({
...Bh(e),
children: typeof e.children == "function" || e.children
}, a, i);
@@ -24121,7 +24121,7 @@ function Qv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Uv(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, S.useContext)(Yh), { dragAndDropHooks: _ } = e, { gridProps: v } = $d({
+ }), f = Uv(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, S.useContext)(Yh), { dragAndDropHooks: _ } = e, { gridProps: v } = ef({
...s,
layoutDelegate: m,
isVirtualized: p
@@ -24233,7 +24233,7 @@ var $v = /*#__PURE__*/ (0, S.createContext)(null), ey = class extends dt {
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = pf(), { hoverProps: a, isHovered: o } = Mc({
+ }), { rowGroupProps: i } = mf(), { hoverProps: a, isHovered: o } = Mc({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -24263,10 +24263,10 @@ var $v = /*#__PURE__*/ (0, S.createContext)(null), ey = class extends dt {
});
});
function iy({ item: e }) {
- let t = (0, S.useRef)(null), n = (0, S.useContext)(qv), { isVirtualized: r, CollectionBranch: i } = (0, S.useContext)(Yh), { rowProps: a } = of({
+ let t = (0, S.useRef)(null), n = (0, S.useContext)(qv), { isVirtualized: r, CollectionBranch: i } = (0, S.useContext)(Yh), { rowProps: a } = sf({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = gf(n);
+ }, n, t), { checkboxProps: o } = _f(n);
return /*#__PURE__*/ S.createElement(ry, {
...a,
ref: t
@@ -24289,7 +24289,7 @@ var ay = class extends dt {
ref: t
});
}), sy = /*#__PURE__*/ li(ay, (e, t, n) => {
- let r = Rr(t), i = (0, S.useContext)(qv), { isVirtualized: a } = (0, S.useContext)(Yh), { columnHeaderProps: o, isPressed: s } = af({
+ let r = Rr(t), i = (0, S.useContext)(qv), { isVirtualized: a } = (0, S.useContext)(Yh), { columnHeaderProps: o, isPressed: s } = of({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
@@ -24375,7 +24375,7 @@ var ay = class extends dt {
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = pf(), _ = H(e, { global: !0 });
+ let { rowGroupProps: g } = mf(), _ = H(e, { global: !0 });
return /*#__PURE__*/ S.createElement(uy, {
...V(_, p, g),
ref: t,
@@ -24413,7 +24413,7 @@ var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py
ref: t
});
}), hy = /*#__PURE__*/ ui(py, (e, t, n) => {
- let r = Rr(t), i = (0, S.useContext)(qv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(r_), { isVirtualized: c, CollectionBranch: l } = (0, S.useContext)(Yh), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = uf({
+ let r = Rr(t), i = (0, S.useContext)(qv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(r_), { isVirtualized: c, CollectionBranch: l } = (0, S.useContext)(Yh), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = df({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -24422,7 +24422,7 @@ var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = hf({ key: n.key }, i), C;
+ }), { checkboxProps: x } = gf({ key: n.key }, i), C;
o && a && (C = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -24535,7 +24535,7 @@ var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py
}), vy = /*#__PURE__*/ li(gy, (e, t, n) => {
let r = Rr(t), i = (0, S.useContext)(qv), { dragState: a } = (0, S.useContext)(r_), { isVirtualized: o } = (0, S.useContext)(Yh);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = nf({
+ let { gridCellProps: s, isPressed: c } = rf({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
@@ -24800,7 +24800,7 @@ var My = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
}) : /*#__PURE__*/ S.createElement(pi, e);
});
function Ny({ props: e, forwardedRef: t }) {
- let n = (0, S.useContext)(ky), { CollectionRoot: r } = (0, S.useContext)(Yh), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Lh(Oy), o = Rr(t), { tabListProps: s } = xf({
+ let n = (0, S.useContext)(ky), { CollectionRoot: r } = (0, S.useContext)(Yh), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Lh(Oy), o = Rr(t), { tabListProps: s } = Sf({
...e,
orientation: i,
keyboardActivation: a
@@ -24827,7 +24827,7 @@ var Py = /*#__PURE__*/ li(class extends dt {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, S.useContext)(ky), i = Rr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yf({
+ let r = (0, S.useContext)(ky), i = Rr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = bf({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Tc(), { hoverProps: f, isHovered: p } = Mc({
@@ -24871,7 +24871,7 @@ var Py = /*#__PURE__*/ li(class extends dt {
});
});
function Iy(e) {
- let t = (0, S.useContext)(ky), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sf(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Tc(), d = t.selectedKey === e.id, f = V_(r) && !i, p = Ih({
+ let t = (0, S.useContext)(ky), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Cf(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Tc(), d = t.selectedKey === e.id, f = V_(r) && !i, p = Ih({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -24952,7 +24952,7 @@ var Ly = /*#__PURE__*/ (0, S.createContext)({}), Ry = /*#__PURE__*/ (0, S.create
} }],
[cg, p]
] }, h.children));
-}), By = Wm({
+}), By = Gm({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -25011,7 +25011,7 @@ function X({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, C.jsxs)("button", {
ref: c,
type: s,
- className: Um(By.base, By.size[t], By.variant[e], n && By.iconOnlySize[t], o),
+ className: Wm(By.base, By.size[t], By.variant[e], n && By.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, C.jsx)(r, {
@@ -25032,7 +25032,7 @@ function X({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
function Vy({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, C.jsxs)("a", {
ref: s,
- className: Um(By.base, By.size[t], By.variant[e], n && By.iconOnlySize[t], o),
+ className: Wm(By.base, By.size[t], By.variant[e], n && By.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, C.jsx)(r, {
@@ -25052,7 +25052,7 @@ function Vy({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var Hy = Wm({
+var Hy = Gm({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -25077,7 +25077,7 @@ function Uy({ icon: e, size: t = "medium", className: n, type: r = "button", ref
return /* @__PURE__ */ (0, C.jsx)("button", {
ref: i,
type: r,
- className: Um(Hy.base, Hy.size[t], n),
+ className: Wm(Hy.base, Hy.size[t], n),
...a,
children: /* @__PURE__ */ (0, C.jsx)(e, {
className: Hy.icon[t],
@@ -25091,7 +25091,7 @@ function Wy({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
return /* @__PURE__ */ (0, C.jsxs)(Qh, {
"data-label": "true",
...a,
- className: Um("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: Wm("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, C.jsx)("span", {
@@ -25099,7 +25099,7 @@ function Wy({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, C.jsx)(Jf, {
+ n && /* @__PURE__ */ (0, C.jsx)(Yf, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -25112,7 +25112,7 @@ function Gy({ isInvalid: e = !1, className: t, ...n }) {
return /* @__PURE__ */ (0, C.jsx)(sg, {
slot: e ? "errorMessage" : "description",
...n,
- className: Um("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: Wm("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
@@ -25128,13 +25128,13 @@ function qy({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
children: /* @__PURE__ */ (0, C.jsx)(zy, {
...a,
"data-input-size": e,
- className: Um("group flex h-max w-full flex-col items-start gap-1", r),
+ className: Wm("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
qy.displayName = "TextField";
-var Jy = Wm({
+var Jy = Gm({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -25167,7 +25167,7 @@ function Yy({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldCl
let l = (0, S.useContext)(Ky), u = e ?? l.size ?? "medium", d = r != null;
return /* @__PURE__ */ (0, C.jsx)(vg, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Um(Jy.field, d ? Jy.fieldWithAddonSize[u] : Jy.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Wm(Jy.field, d ? Jy.fieldWithAddonSize[u] : Jy.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, C.jsxs)("div", {
className: Jy.content,
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
@@ -25178,7 +25178,7 @@ function Yy({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldCl
}) : null, /* @__PURE__ */ (0, C.jsx)(xg, {
ref: o,
...c,
- className: Um(Jy.input, l.inputClassName, a)
+ className: Wm(Jy.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, C.jsx)(n, {
className: Jy.icon,
@@ -25231,7 +25231,7 @@ function Zy(e = "") {
s.signal.aborted || i(e);
} catch (e) {
if (s.signal.aborted) return;
- o ? o(e) : a(J(e));
+ o ? o(e) : a(q(e));
} finally {
t.current === s && (t.current = null), s.signal.aborted || r("");
}
@@ -25255,10 +25255,10 @@ var Qy = "/api/avatar-choices", $y = "/api/avatar-pick", eb = "/avatar-choice",
"avatar-choices",
e,
t
-], nb = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, rb = (e, t, n) => `${eb}${nb(e, t)}&ref=${encodeURIComponent(n)}`, ib = (e, t, n) => Ym(Qy + nb(e, t), n);
+], nb = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, rb = (e, t, n) => `${eb}${nb(e, t)}&ref=${encodeURIComponent(n)}`, ib = (e, t, n) => Xm(Qy + nb(e, t), n);
async function ab(e, t, n) {
if (!("file" in n)) {
- await Xm($y, {
+ await Zm($y, {
kind: e,
id: t,
...n
@@ -25272,7 +25272,7 @@ async function ab(e, t, n) {
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new qm(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new Jm(a?.error || `请求失败(${i.status})`, i.status, a);
}
function ob(e, t) {
if (!t) return "正在找可用的图…";
@@ -25295,7 +25295,7 @@ function ub({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, C.jsx)(Df, {
+ children: /* @__PURE__ */ (0, C.jsx)(Of, {
"aria-hidden": !0,
className: "size-4"
})
@@ -25340,7 +25340,7 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", l(""), n && p.mutate({ file: n });
}
- let h = f.data, g = h?.choices ?? [], _ = c || (p.error ? J(p.error) : "") || (f.error ? J(f.error) : "");
+ let h = f.data, g = h?.choices ?? [], _ = c || (p.error ? q(p.error) : "") || (f.error ? q(f.error) : "");
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
@@ -25348,7 +25348,7 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
- children: /* @__PURE__ */ (0, C.jsx)(sp, { className: "size-6" })
+ children: /* @__PURE__ */ (0, C.jsx)(cp, { className: "size-6" })
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
@@ -25359,7 +25359,7 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "更换头像"
- }), g.length ? /* @__PURE__ */ (0, C.jsxs)(Km, {
+ }), g.length ? /* @__PURE__ */ (0, C.jsxs)(qm, {
color: "soft",
children: [g.length, " 张可选"]
}) : null]
@@ -25368,18 +25368,18 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: ob(n, h)
}),
- sb(h) ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ sb(h) ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "neutral",
children: "图库索引还没取过,只能从用过的图里选。"
}) : null,
- _ ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ _ ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: _
}) : null
]
}),
/* @__PURE__ */ (0, C.jsx)(Uy, {
- icon: If,
+ icon: Lf,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -25416,7 +25416,7 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, C.jsx)(Km, {
+ children: /* @__PURE__ */ (0, C.jsx)(qm, {
variant: "caption",
color: "gray",
children: "在用"
@@ -25639,40 +25639,40 @@ function ix(e, t, n) {
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var ax = (e) => Ym(`${gb}?limit=1`, e), ox = (e) => Ym(_b, e), sx = (e) => Ym(vb, e), cx = (e) => Ym(bb, e), lx = (e, t) => Ym(`${xb}?q=${encodeURIComponent(e)}`, t), ux = (e) => Xm(vb, {
+var ax = (e) => Xm(`${gb}?limit=1`, e), ox = (e) => Xm(_b, e), sx = (e) => Xm(vb, e), cx = (e) => Xm(bb, e), lx = (e, t) => Xm(`${xb}?q=${encodeURIComponent(e)}`, t), ux = (e) => Zm(vb, {
...e?.length ? { sources: e } : {},
background: !0
-}), dx = (e) => Xm(bb, {
+}), dx = (e) => Zm(bb, {
lines: e,
background: !0
-}), fx = (e, t) => Xm(yb, {
+}), fx = (e, t) => Zm(yb, {
action: "enabled",
id: e,
enabled: t
-}), px = (e) => Xm(yb, {
+}), px = (e) => Zm(yb, {
action: "remove",
id: e
-}), mx = (e) => Xm(yb, {
+}), mx = (e) => Zm(yb, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), hx = (e, t) => Xm(Sb, {
+}), hx = (e, t) => Zm(Sb, {
action: "add",
canonical: e,
alias: t
-}), gx = (e) => Xm(Sb, {
+}), gx = (e) => Zm(Sb, {
action: "remove",
alias: e
-}), _x = (e, t) => Xm(Cb, {
+}), _x = (e, t) => Zm(Cb, {
provider: e,
values: t
-}), vx = (e, t) => Xm(wb, {
+}), vx = (e, t) => Zm(wb, {
item: e,
to: t
-}), yx = () => Ym(`${gb}?status=new&limit=1000`);
+}), yx = () => Xm(`${gb}?status=new&limit=1000`);
async function bx(e) {
await Promise.all([dh.fetchQuery({
queryKey: Tb,
@@ -25738,7 +25738,7 @@ var Dx = (e) => (e?.results || []).filter((e) => !e.ok), Ox = (e) => (e?.results
"bg-chart-8/10"
];
function Rx(e = {}) {
- return `${ih({
+ return `${ah({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
@@ -25790,7 +25790,7 @@ function Hx({ state: e, size: t = "md" }) {
let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Vx[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
- className: Um("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Um("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Um("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Wm("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Wm("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Wm("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -25819,12 +25819,12 @@ function Ux({ className: e, children: t, size: n = "md", ref: r, ...i }) {
return /* @__PURE__ */ (0, C.jsx)(hg, {
ref: r,
...i,
- className: (t) => Um("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => Wm("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
children: (e) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Hx, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, C.jsx)("span", {
- className: Um(a.label, "text-text-primary"),
+ className: Wm(a.label, "text-text-primary"),
children: t
})] })
});
@@ -25844,19 +25844,19 @@ var Wx = [
//#region src/react/boardui/components/application/settings/settings-rows.tsx
function Yx({ className: e, children: t }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
- className: Um("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: Wm("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
function Xx({ className: e, children: t }) {
return /* @__PURE__ */ (0, C.jsx)("p", {
- className: Um("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: Wm("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
function Zx({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: Um("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: Wm("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, C.jsx)("p", {
@@ -25871,7 +25871,7 @@ function Zx({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Qx = Wm({
+var Qx = Gm({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -25896,7 +25896,7 @@ var Qx = Wm({
}
});
function $x({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Um(Qx.base, Qx.size[t], Qx.variant[e], a), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
+ let c = Wm(Qx.base, Qx.size[t], Qx.variant[e], a), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
n ? /* @__PURE__ */ (0, C.jsx)(n, {
className: Qx.icon[t],
"aria-hidden": !0
@@ -26002,7 +26002,7 @@ function sS({ href: e, children: t }) {
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: Vf,
+ trailingIcon: Hf,
children: t
});
}
@@ -26037,7 +26037,7 @@ function uS({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (c(i.current, a.current, !s), l(!s));
},
className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, C.jsx)(jf, {
+ children: [/* @__PURE__ */ (0, C.jsx)(Mf, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -26103,7 +26103,7 @@ function mS({ group: e, name: t }) {
}
function hS({ source: e }) {
let t = Wb(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, C.jsx)(Km, {
+ return /* @__PURE__ */ (0, C.jsx)(qm, {
variant: "caption",
color: t,
children: Ub(e)
@@ -26121,18 +26121,18 @@ function gS({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var _S = Um(qx, Jx, "text-body-2-medium"), vS = "粘贴来源链接,或输入创作者名、id…", yS = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", bS = "识别中…", xS = "站内没有查到来源", SS = (e, t) => `${e}:${t.url}`;
+var _S = Wm(qx, Jx, "text-body-2-medium"), vS = "粘贴来源链接,或输入创作者名、id…", yS = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", bS = "识别中…", xS = "站内没有查到来源", SS = (e, t) => `${e}:${t.url}`;
function CS({ options: e, active: t, busy: n, onPick: r }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
"aria-label": "来源建议",
- className: Um(Wx, "absolute top-full z-10 mt-1 flex w-full flex-col gap-1"),
+ className: Wm(Wx, "absolute top-full z-10 mt-1 flex w-full flex-col gap-1"),
children: [n && !e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, C.jsx)(sh, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, C.jsx)(ch, { label: "正在查找建议" })
}) : null, e.map((e, n) => /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"aria-current": n === t ? "true" : void 0,
- className: n === t ? Um(_S, "bg-background-secondary-default") : _S,
+ className: n === t ? Wm(_S, "bg-background-secondary-default") : _S,
onMouseDown: (e) => e.preventDefault(),
onClick: () => r(e.value),
children: [/* @__PURE__ */ (0, C.jsx)("span", {
@@ -26153,7 +26153,7 @@ function wS({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(X, {
ref: i,
variant: "secondary",
- leadingIcon: Uf,
+ leadingIcon: Wf,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
@@ -26208,14 +26208,14 @@ function wS({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})] });
}
function TS({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
- if (e.kind === "error") return /* @__PURE__ */ (0, C.jsx)(ch, {
+ if (e.kind === "error") return /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: e.line,
children: e.error || "查找失败"
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ className: ah({
padding: "none",
className: "flex flex-col gap-2 p-4"
}),
@@ -26295,7 +26295,7 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
exact: !0
});
},
- onError: (e) => v(J(e))
+ onError: (e) => v(q(e))
});
(0, S.useEffect)(() => {
let e = k.data;
@@ -26340,14 +26340,14 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
let e = await mx(r.candidate);
n.push(e.source);
} catch (e) {
- t.push(`${r.candidate.label}:${J(e)}`);
+ t.push(`${r.candidate.label}:${q(e)}`);
}
E((e) => e + 1);
}
if (n.length) try {
await ux(n);
} catch (e) {
- t.push(J(e));
+ t.push(q(e));
}
return {
failures: t,
@@ -26361,10 +26361,10 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
v(""), w(null), r(`已添加 ${e.sources.length} 个关注来源`);
},
- onError: (e) => v(J(e))
+ onError: (e) => v(q(e))
}), te = e.suggestions || [], ne = !a.includes("/"), re = D.isFetching, ie = l && (O.length > 0 || re);
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ className: ah({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -26386,7 +26386,7 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
"aria-label": "来源链接、名字或 id",
placeholder: vS,
value: a,
- leadingIcon: np,
+ leadingIcon: rp,
isDisabled: n,
onChange: o,
onKeyDown: N
@@ -26419,7 +26419,7 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
label: k.data.message || `查找中:${k.data.checked || 0}/${k.data.total}`,
value: k.data.checked || 0,
max: k.data.total
- }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: ne ? yS : bS }) : null, _ ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, C.jsx)(ch, { label: ne ? yS : bS }) : null, _ ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "这一次没有完成",
children: _
@@ -26486,11 +26486,11 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
//#region src/react/boardui/components/base/table/table.tsx
function DS({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
- className: Um("w-full overflow-x-auto", n),
+ className: Wm("w-full overflow-x-auto", n),
children: /* @__PURE__ */ (0, C.jsx)(Yv, {
ref: r,
...i,
- className: Um("bui-table", e === "sm" && "bui-table-sm", t)
+ className: Wm("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
@@ -26530,7 +26530,7 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
try {
await hx(n.canonical, n.alias);
} catch (n) {
- throw t && Cx(), Error(`${J(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && Cx(), Error(`${q(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -26542,19 +26542,19 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onSuccess: (e) => {
l(""), o(/* @__PURE__ */ new Set()), Cx(), i(`已合并 ${e.done} 组创作者别名`);
},
- onError: (e) => l(J(e))
+ onError: (e) => l(q(e))
}), h = ut({
mutationFn: (e) => hx(e.canonical, e.alias),
onSuccess: () => {
l(""), d(""), p(""), Cx(), i("已保存创作者别名");
},
- onError: (e) => l(J(e))
+ onError: (e) => l(q(e))
}), g = ut({
mutationFn: (e) => gx(e),
onSuccess: () => {
l(""), Cx(), i("已移除创作者别名");
},
- onError: (e) => l(J(e))
+ onError: (e) => l(q(e))
}), _ = (e, t) => {
e.length && s({
title: t ? "合并全部创作者别名" : "合并所选创作者别名",
@@ -26564,7 +26564,7 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
});
}, v = t.filter((e) => a.has(AS(e))), y = t.length > 0 && v.length === t.length, b = Z(m.isPending);
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ className: ah({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -26735,7 +26735,7 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: If,
+ leadingIcon: Lf,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...Z(g.isPending),
@@ -26749,9 +26749,9 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: sp,
+ icon: cp,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -26766,13 +26766,13 @@ function RS(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
function zS({ row: e }) {
- if (Nx(e)) return /* @__PURE__ */ (0, C.jsx)(Km, {
+ if (Nx(e)) return /* @__PURE__ */ (0, C.jsx)(qm, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, C.jsx)(Km, {
+ return /* @__PURE__ */ (0, C.jsx)(qm, {
variant: "caption",
color: t,
children: Mx[e.requirement] || ""
@@ -26791,7 +26791,7 @@ function BS({ row: e, readOnly: t, toast: n }) {
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
- onError: (e) => o(J(e))
+ onError: (e) => o(q(e))
}), u = () => {
let e = Object.fromEntries(Object.entries(r).map(([e, t]) => [e, t.trim()]).filter(([, e]) => e));
if (!Object.keys(e).length) {
@@ -26855,7 +26855,7 @@ function BS({ row: e, readOnly: t, toast: n }) {
className: "font-mono text-caption-1-regular break-all text-text-tertiary",
children: e.path
}),
- e.world_readable ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ e.world_readable ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "凭据文件权限过宽",
children: LS
@@ -26876,7 +26876,7 @@ function VS({ row: e, readOnly: t, toast: n }) {
children: e.provider_label
}),
/* @__PURE__ */ (0, C.jsx)(zS, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, C.jsx)(Km, {
+ e.missing.length ? /* @__PURE__ */ (0, C.jsx)(qm, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -26902,7 +26902,7 @@ function VS({ row: e, readOnly: t, toast: n }) {
function HS({ data: e, readOnly: t, toast: n }) {
let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !Nx(e));
return r.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ className: ah({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -26918,7 +26918,7 @@ function HS({ data: e, readOnly: t, toast: n }) {
}) : null]
}),
/* @__PURE__ */ (0, C.jsx)("div", {
- className: ih({
+ className: ah({
padding: "none",
className: "flex flex-col overflow-hidden"
}),
@@ -26946,9 +26946,9 @@ function HS({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: Xf,
+ icon: Zf,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
@@ -28427,22 +28427,22 @@ function _w({ className: e, triggerClassName: t, popoverClassName: n, size: r =
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: Um("group flex flex-col", e),
+ className: Wm("group flex flex-col", e),
children: ({ isOpen: e }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)(tg, {
ref: l,
- className: Um("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
+ className: Wm("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
children: [/* @__PURE__ */ (0, C.jsx)(Ev, {
- className: Um("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: Wm("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, C.jsx)(fw, { className: Um("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, C.jsx)(fw, { className: Wm("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
}), /* @__PURE__ */ (0, C.jsx)(K_, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Um(Gx, Wx, "p-2", n),
+ className: Wm(Gx, Wx, "p-2", n),
children: /* @__PURE__ */ (0, C.jsx)(j_, {
items: a,
- className: Um(Kx, "max-h-[240px] overflow-auto"),
+ className: Wm(Kx, "max-h-[240px] overflow-auto"),
children: /* @__PURE__ */ (0, C.jsx)(gw.Provider, {
value: r,
children: i
@@ -28455,7 +28455,7 @@ function vw({ className: e, children: t, ...n }) {
let r = (0, S.useContext)(gw);
return /* @__PURE__ */ (0, C.jsx)(F_, {
...n,
- className: (t) => Um(qx, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => Wm(qx, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
@@ -28570,7 +28570,7 @@ function Tw({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ep,
+ leadingIcon: tp,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...Z(r.busy),
@@ -28579,7 +28579,7 @@ function Tw({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: zf,
+ leadingIcon: Bf,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -28592,7 +28592,7 @@ function Ew({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Wb).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = rx(r, c);
return /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: ih({
+ className: ah({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -28614,7 +28614,7 @@ function Ew({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ep,
+ leadingIcon: tp,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...Z(i.busy),
@@ -28632,7 +28632,7 @@ function Ew({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, C.jsx)(X, {
variant: "secondary",
size: "small",
- leadingIcon: Pf,
+ leadingIcon: Ff,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -28643,7 +28643,7 @@ function Ew({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? Nf : kf,
+ leadingIcon: n ? Pf : Af,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -28685,7 +28685,7 @@ function Dw(e) {
exact: !0
});
},
- onError: (e) => M(J(e))
+ onError: (e) => M(q(e))
});
(0, S.useEffect)(() => {
let e = P.data;
@@ -28708,7 +28708,7 @@ function Dw(e) {
onSuccess: (e, t) => {
Sx([t]), h(ix(l, [t], !1)), g("已取消关注来源");
},
- onError: (e) => M(J(e))
+ onError: (e) => M(q(e))
}), oe = (e) => void s({
title: "取消关注来源",
body: "将移除这个来源及已抓取的条目,媒体文件保留。",
@@ -28732,14 +28732,14 @@ function Dw(e) {
h(ix(l, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
- M(`${t.length}/${e.ids.length} 个来源未更新:${J(t[0]?.error)}`);
+ M(`${t.length}/${e.ids.length} 个来源未更新:${q(t[0]?.error)}`);
return;
}
M("");
let n = e.action === "remove" ? "删除" : e.action === "enabled" ? "启用" : "暂停";
g(`已${n} ${e.done.length} 个关注来源`);
},
- onError: (e) => M(J(e))
+ onError: (e) => M(q(e))
}), ce = ut({
mutationFn: async (e) => {
let t = ((await yx()).groups || []).flatMap((e) => [
@@ -28759,7 +28759,7 @@ function Dw(e) {
}
M(""), g(`已批量标记 ${e.ids.length} 项`);
},
- onError: (e) => M(J(e))
+ onError: (e) => M(q(e))
}), le = (0, S.useRef)({
check: ne,
remove: oe,
@@ -28837,7 +28837,7 @@ function Dw(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ep,
+ leadingIcon: tp,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ue.readOnly,
...Z(ue.busy),
@@ -28846,7 +28846,7 @@ function Dw(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: zf,
+ leadingIcon: Bf,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ue.readOnly,
onClick: () => le.current.remove(e.row.original.source)
@@ -28895,7 +28895,7 @@ function Dw(e) {
getPaginationRowModel: ow()
}), he = me.getRowModel().rows, ge = L ? he.map((e) => e.original.source.id) : N.slice(pe.start, pe.end).flatMap((e) => e.map((e) => e.id)), _e = rx(l, ge), ve = [...l], ye = Dx(k), be = Ox(k), xe = N.length > 0 && x.size >= N.length;
return v.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ className: ah({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -28914,7 +28914,7 @@ function Dw(e) {
}),
/* @__PURE__ */ (0, C.jsx)(X, {
variant: "primary",
- leadingIcon: ep,
+ leadingIcon: tp,
disabled: u,
"aria-label": "检查全部",
iconOnly: E,
@@ -28929,14 +28929,14 @@ function Dw(e) {
children: [/* @__PURE__ */ (0, C.jsx)(X, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Zf,
+ leadingIcon: Qf,
"aria-label": Ab[0][1],
"aria-pressed": !L,
onClick: () => p("default")
}), /* @__PURE__ */ (0, C.jsx)(X, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: rp,
+ leadingIcon: ip,
"aria-label": Ab[1][1],
"aria-pressed": L,
onClick: () => p("table")
@@ -28961,14 +28961,14 @@ function Dw(e) {
/* @__PURE__ */ (0, C.jsx)(X, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: i === "asc" ? Mf : Of,
+ leadingIcon: i === "asc" ? Nf : kf,
"aria-label": Vb(n, i),
onClick: () => d(n, i === "asc" ? "desc" : "asc")
}),
L ? null : /* @__PURE__ */ (0, C.jsx)(X, {
variant: "secondary",
iconOnly: E,
- leadingIcon: xe ? kf : Nf,
+ leadingIcon: xe ? Af : Pf,
"aria-label": xe ? "全部展开" : "全部收起",
onClick: () => w(xe ? /* @__PURE__ */ new Set() : new Set(N.map((e) => String(e[0].author_key || e[0].id)))),
children: xe ? "全部展开" : "全部收起"
@@ -28983,13 +28983,13 @@ function Dw(e) {
label: P.data.message || `${P.data.older ? "抓取历史" : "检查更新"}:已完成 ${P.data.checked || 0}/${P.data.total} 个来源`,
value: P.data.checked || 0,
max: P.data.total
- }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: P.data?.message || "正在准备检查任务" }) : null,
- j ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, C.jsx)(ch, { label: P.data?.message || "正在准备检查任务" }) : null,
+ j ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "操作未完成",
children: j
}) : null,
- ye.length ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ ye.length ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: `${ye.length} 个来源检查失败`,
extra: /* @__PURE__ */ (0, C.jsx)("ul", {
@@ -28998,7 +28998,7 @@ function Dw(e) {
}),
children: "这些来源这一轮没有取到更新。"
}) : null,
- be ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ be ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
children: `候选已入库,但这一次的原始响应没有留档:${be}`
}) : null
@@ -29193,9 +29193,9 @@ function Dw(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: tp,
+ icon: np,
title: "还没有关注来源",
children: "关注来源及其检查状态会显示在这里。"
});
@@ -29209,7 +29209,7 @@ var Ow = [
], kw = (e) => Ow.some(([t]) => t === e);
function Aw({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ className: ah({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -29252,7 +29252,7 @@ function jw(e) {
});
}, A = Qb(O), j = O.filter(Wb).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !Nx(e)).length;
return /* @__PURE__ */ (0, C.jsxs)(lh, { children: [
- a ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ a ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
title: "本机只能浏览",
extra: s ? /* @__PURE__ */ (0, C.jsx)("p", {
@@ -29375,7 +29375,7 @@ function jw(e) {
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var Mw = "/api/library-processing", Nw = ["library-processing"], Pw = (e) => Ym(Mw, e);
+var Mw = "/api/library-processing", Nw = ["library-processing"], Pw = (e) => Xm(Mw, e);
async function Fw(e) {
await dh.fetchQuery({
queryKey: Nw,
@@ -29458,20 +29458,20 @@ function Jw({ toast: e, mode: t, monitor: n }) {
var Yw = [
{
label: "扫描并补全资料",
- icon: Rf,
+ icon: zf,
command: {}
},
{
label: "只扫描",
- icon: Gf,
+ icon: Kf,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: Wf,
+ icon: Gf,
command: { stage: "collect" }
}
-], Xw = Um(qx, Jx, "text-body-2-medium"), Zw = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Qw = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", $w = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。`;
+], Xw = Wm(qx, Jx, "text-body-2-medium"), Zw = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Qw = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", $w = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。`;
function eT({ busy: e, onRun: t }) {
let n = (0, S.useRef)(null), [r, i] = (0, S.useState)(!1), a = (n) => {
e || (i(!1), t(n));
@@ -29481,14 +29481,14 @@ function eT({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, C.jsx)(X, {
- leadingIcon: Rf,
+ leadingIcon: zf,
onClick: () => a({}),
...Z(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, C.jsx)(X, {
ref: n,
iconOnly: !0,
- leadingIcon: kf,
+ leadingIcon: Af,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -29525,12 +29525,12 @@ function tT({ state: e, problem: t, settled: n, onRetry: r }) {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
title: "处理较慢",
children: Qw
}) : null,
- t || e.status === "failed" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ t || e.status === "failed" ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
extra: /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col items-start gap-3 pt-1",
@@ -29572,12 +29572,12 @@ function tT({ state: e, problem: t, settled: n, onRetry: r }) {
}),
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "success",
title: "处理完成",
children: $w(n)
}) : null,
- e.status !== "running" && o ? /* @__PURE__ */ (0, C.jsxs)(ch, {
+ e.status !== "running" && o ? /* @__PURE__ */ (0, C.jsxs)(J, {
tone: "neutral",
children: [o, e.issues_log ? ` 完整记录:${e.issues_log}` : ""]
}) : null
@@ -29586,7 +29586,7 @@ function tT({ state: e, problem: t, settled: n, onRetry: r }) {
}
function nT(e) {
let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = Jw(e), o = ut({
- mutationFn: (e) => Xm(Mw, e),
+ mutationFn: (e) => Zm(Mw, e),
onSuccess: (e) => {
a(), dh.setQueryData(Nw, e), dh.invalidateQueries({ queryKey: Nw });
}
@@ -29594,7 +29594,7 @@ function nT(e) {
(0, S.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? J(o.error) : r.isError ? r.data ? Rw : J(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = Uw(s), f = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? q(o.error) : r.isError ? r.data ? Rw : q(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = Uw(s), f = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, C.jsxs)("div", {
@@ -29631,7 +29631,7 @@ function nT(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: d })
+ })] }) : /* @__PURE__ */ (0, C.jsx)(ch, { label: d })
}) : null
]
}), /* @__PURE__ */ (0, C.jsxs)("footer", {
@@ -29640,13 +29640,13 @@ function nT(e) {
/* @__PURE__ */ (0, C.jsx)($x, {
href: "/scraping",
size: "small",
- trailingIcon: Af,
+ trailingIcon: jf,
children: "来源和凭证"
}),
s.candidates ? /* @__PURE__ */ (0, C.jsx)($x, {
href: "/review",
size: "small",
- trailingIcon: Af,
+ trailingIcon: jf,
children: "复核资料"
}) : null,
u ? null : /* @__PURE__ */ (0, C.jsx)(eT, {
@@ -29704,9 +29704,9 @@ function aT({ value: e, max: t }) {
});
}
function oT(e) {
- let { job: t } = Jw(e), n = t.data, r = t.isError ? n ? Rw : J(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ let { job: t } = Jw(e), n = t.data, r = t.isError ? n ? Rw : q(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Uw(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Yf : Bf;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Uw(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Xf : Vf;
return /* @__PURE__ */ (0, C.jsxs)("aside", {
role: a ? "alert" : "status",
className: iT[s],
@@ -29725,14 +29725,14 @@ function oT(e) {
}), /* @__PURE__ */ (0, C.jsx)($x, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: Af,
+ trailingIcon: jf,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/quality-goals/quality-goals.ts
-var sT = "/api/quality-goals?limit=200", cT = ["quality-goals"], lT = (e) => Ym(sT, e);
+var sT = "/api/quality-goals?limit=200", cT = ["quality-goals"], lT = (e) => Xm(sT, e);
async function uT(e) {
await dh.fetchQuery({
queryKey: cT,
@@ -29746,7 +29746,7 @@ function fT({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
let c = () => i(r.id);
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-goal-id": r.id,
- className: ih({
+ className: ah({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -29815,14 +29815,14 @@ function pT(e) {
queryKey: cT,
queryFn: ({ signal: e }) => lT(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ if (!n) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "读取失败",
- children: t.error ? J(t.error) : "读取高清版目标失败"
+ children: t.error ? q(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
return r.length ? /* @__PURE__ */ (0, C.jsxs)(lh, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ className: ah({
variant: "raised",
className: "flex flex-col gap-1 px-6 py-5 max-sm:px-4"
}),
@@ -29839,9 +29839,9 @@ function pT(e) {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(oh, {
+ })] }) : /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: lp,
+ icon: up,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
@@ -29942,7 +29942,7 @@ function RT(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var zT = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", BT = (e) => Ym(hT, e), VT = (e) => Xm(gT, e), HT = (e, t) => Xm(_T, {
+var zT = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", BT = (e) => Xm(hT, e), VT = (e) => Zm(gT, e), HT = (e, t) => Zm(_T, {
genre: e,
tag: t
});
@@ -30018,7 +30018,7 @@ function qT(e) {
/* @__PURE__ */ (0, C.jsx)(X, {
variant: "secondary",
size: "small",
- leadingIcon: Pf,
+ leadingIcon: Ff,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -30180,7 +30180,7 @@ function $T({ genre: e, tags: t, locked: n, toast: r }) {
}
r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await GT();
},
- onError: (e) => s(J(e))
+ onError: (e) => s(q(e))
}), l = () => {
let e = i.trim();
if (!e) {
@@ -30300,7 +30300,7 @@ function iE({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, C.jsx)(X, {
variant: "secondary",
size: "small",
- leadingIcon: Qf,
+ leadingIcon: $f,
onClick: () => t(e.id),
children: "打开原视频"
})]
@@ -30344,7 +30344,7 @@ function oE({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, not
children: [o ? /* @__PURE__ */ (0, C.jsx)(Vy, {
variant: "secondary",
size: "small",
- trailingIcon: Vf,
+ trailingIcon: Hf,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -30475,7 +30475,7 @@ function sE({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var cE = ih({
+var cE = ah({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
@@ -30521,9 +30521,9 @@ function uE(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "inset",
- icon: qf,
+ icon: Jf,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
}) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, C.jsx)(oE, {
@@ -30535,7 +30535,7 @@ function uE(e) {
note: f.revealNote
}) : /* @__PURE__ */ (0, C.jsx)(rE, { url: n.preview_url }), j = _ ? k : y ? /* @__PURE__ */ (0, C.jsxs)("h4", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(Km, {
+ children: [/* @__PURE__ */ (0, C.jsx)(qm, {
variant: "caption",
color: "blue",
children: y
@@ -30574,7 +30574,7 @@ function uE(e) {
className: "min-w-0 flex-1",
children: j
}),
- O ? /* @__PURE__ */ (0, C.jsx)(Km, {
+ O ? /* @__PURE__ */ (0, C.jsx)(qm, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -30595,7 +30595,7 @@ function uE(e) {
!_ && k ? k : null,
w.length || t === "creator_tags" ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, C.jsx)(Km, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, C.jsx)(qm, {
variant: "caption",
color: "soft",
children: e
@@ -30728,7 +30728,7 @@ function pE(e) {
}
WT(u, [t.item_key]), fe([t.item_key]), o(zT(n));
},
- onError: (e, { row: t }) => I(t.item_key, J(e))
+ onError: (e, { row: t }) => I(t.item_key, q(e))
}), me = ut({
mutationFn: async (e) => {
let t = de, n = [], r = [];
@@ -30740,7 +30740,7 @@ function pE(e) {
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
- r.push([a.item_key, J(e)]);
+ r.push([a.item_key, q(e)]);
}
}
return {
@@ -30753,7 +30753,7 @@ function pE(e) {
WT(u, t), fe(t), n.forEach(([e, t]) => I(e, t)), D(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
- D(J(e));
+ D(q(e));
}
}), he = (e) => {
if (!(me.isPending || !de.length)) {
@@ -30792,7 +30792,7 @@ function pE(e) {
return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
- te ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ te ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
title: "本机只能浏览",
extra: l ? /* @__PURE__ */ (0, C.jsx)("p", {
@@ -30902,8 +30902,8 @@ function pE(e) {
handlers: be
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, C.jsx)(oh, {
- icon: Ff,
+ }, e.key)) : /* @__PURE__ */ (0, C.jsx)(sh, {
+ icon: If,
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
@@ -30920,7 +30920,7 @@ function pE(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var mE = "/api/scraping", hE = "/api/scraping/settings", gE = "/api/scraping/check", _E = "/api/scraping/cover", vE = ["scraping"], yE = ["scraping", "cover"], bE = 2e3, xE = (e) => Ym(mE, e), SE = (e) => Ym(_E, e);
+var mE = "/api/scraping", hE = "/api/scraping/settings", gE = "/api/scraping/check", _E = "/api/scraping/cover", vE = ["scraping"], yE = ["scraping", "cover"], bE = 2e3, xE = (e) => Xm(mE, e), SE = (e) => Xm(_E, e);
async function CE(e) {
await Promise.all([dh.fetchQuery({
queryKey: vE,
@@ -30953,7 +30953,7 @@ function OE({ source: e, toast: t }) {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = ut({
- mutationFn: (t) => Xm(hE, {
+ mutationFn: (t) => Zm(hE, {
source: e.source,
network: n,
cookie: i,
@@ -30966,7 +30966,7 @@ function OE({ source: e, toast: t }) {
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = ut({ mutationFn: () => Xm(gE, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = ut({ mutationFn: () => Zm(gE, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -30990,7 +30990,7 @@ function OE({ source: e, toast: t }) {
p("Cookie 文件未读取,请重新选择");
}
}
- let T = f || (g.error ? J(g.error) : "") || (_.error ? J(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
+ let T = f || (g.error ? q(g.error) : "") || (_.error ? q(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
return /* @__PURE__ */ (0, C.jsxs)(eS, {
title: e.label,
onSubmit: y,
@@ -31024,7 +31024,7 @@ function OE({ source: e, toast: t }) {
children: /* @__PURE__ */ (0, C.jsx)($x, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: Af,
+ trailingIcon: jf,
children: "配置 Peach 代理"
})
}) : null,
@@ -31082,7 +31082,7 @@ function OE({ source: e, toast: t }) {
})
] }) : null,
T ? /* @__PURE__ */ (0, C.jsx)(aS, { children: T }) : null,
- E.map((t) => /* @__PURE__ */ (0, C.jsx)(ch, {
+ E.map((t) => /* @__PURE__ */ (0, C.jsx)(J, {
tone: t.ok ? "success" : "error",
children: wE(t, e.label)
}, t.label))
@@ -31116,7 +31116,7 @@ function kE({ toast: e }) {
queryFn: ({ signal: e }) => SE(e),
refetchInterval: (e) => e.state.data?.status === "running" && bE
}), c = ut({
- mutationFn: () => Xm(_E, { code: t }),
+ mutationFn: () => Zm(_E, { code: t }),
onSuccess: () => {
i(!0), o(null), dh.invalidateQueries({ queryKey: yE });
}
@@ -31137,7 +31137,7 @@ function kE({ toast: e }) {
]);
let u = (e) => {
e.preventDefault(), !(l || c.isPending || !t.trim()) && c.mutate();
- }, d = c.error ? J(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
+ }, d = c.error ? q(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
return /* @__PURE__ */ (0, C.jsx)(eS, {
title: "高清封面",
onSubmit: u,
@@ -31161,12 +31161,12 @@ function kE({ toast: e }) {
children: "抓取封面"
})]
}),
- l ? /* @__PURE__ */ (0, C.jsx)(sh, { label: "正在抓取封面" }) : null,
- d ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ l ? /* @__PURE__ */ (0, C.jsx)(ch, { label: "正在抓取封面" }) : null,
+ d ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: d
}) : null,
- a?.status === "complete" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ a?.status === "complete" ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "success",
children: a.result || "封面采集完成"
}) : null
@@ -31188,15 +31188,15 @@ function AE({ toast: e }) {
source: t,
toast: e
}, t.source))
- ] }) : /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ ] }) : /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "读取失败",
- children: t.error ? J(t.error) : "读取采集来源失败"
+ children: t.error ? q(t.error) : "读取采集来源失败"
}) });
}
//#endregion
//#region src/configuration-endpoints.ts
-var jE = "/api/configuration", ME = "/api/pick-folder", NE = ["configuration"], PE = (e) => Ym(jE, e);
+var jE = "/api/configuration", ME = "/api/pick-folder", NE = ["configuration"], PE = (e) => Xm(jE, e);
async function FE(e) {
await dh.fetchQuery({
queryKey: NE,
@@ -31205,7 +31205,7 @@ async function FE(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var IE = Wm({
+var IE = Gm({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -31271,10 +31271,10 @@ function LE({ state: e, size: t = "md", shape: n = "pill" }) {
let r = IE[t];
return /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
- className: Um("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Um("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Wm("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Wm("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, C.jsx)("span", {
- className: Um("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, C.jsx)("span", { className: Um("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: Wm("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, C.jsx)("span", { className: Wm("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
@@ -31282,7 +31282,7 @@ function RE({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
return /* @__PURE__ */ (0, C.jsx)(kv, {
ref: i,
...a,
- className: (t) => Um("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => Wm("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
children: (e) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(LE, {
state: e,
size: n,
@@ -31306,7 +31306,7 @@ function BE({ startup: e, receipt: t }) {
return /* @__PURE__ */ (0, C.jsxs)(eS, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => Xm("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => Zm("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
@@ -31382,7 +31382,7 @@ function WE({ initial: e }) {
(0, S.useEffect)(() => {
let e = new AbortController(), t, r = async () => {
try {
- let i = await Ym("/api/media-repair", e.signal);
+ let i = await Xm("/api/media-repair", e.signal);
if (e.signal.aborted) return;
n(i), i.status === "running" && (t = setTimeout(r, 2e3));
} catch {}
@@ -31391,10 +31391,10 @@ function WE({ initial: e }) {
e.abort(), clearTimeout(t);
};
}, [o]);
- let s = () => void a.run("start", (e) => Xm("/api/media-repair", {
+ let s = () => void a.run("start", (e) => Zm("/api/media-repair", {
allow_metered: r,
restart: !0
- }, "POST", e), n), c = () => void a.run("stop", (e) => Xm("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
+ }, "POST", e), n), c = () => void a.run("stop", (e) => Zm("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
return /* @__PURE__ */ (0, C.jsxs)(eS, {
title: "播放兼容修复",
children: [/* @__PURE__ */ (0, C.jsxs)(nS, { children: [
@@ -31409,7 +31409,7 @@ function WE({ initial: e }) {
label: "修复进度",
value: l
}) : null,
- t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "info",
title: "没有要修的",
children: "库里的片子都能直接播,没找到缺时间戳表的。"
@@ -31455,7 +31455,7 @@ function JE({ initial: e, initialJob: t }) {
d.current = !1;
}), []);
let p = async () => {
- let e = await Xm("/api/configuration/update-restart", {});
+ let e = await Zm("/api/configuration/update-restart", {});
d.current && a(e);
}, m = () => void s({
title: "更新已准备好",
@@ -31469,7 +31469,7 @@ function JE({ initial: e, initialJob: t }) {
}, [i.state]), (0, S.useEffect)(() => {
let e = new AbortController(), t = GE.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
try {
- let t = await Ym("/api/configuration/update-status", e.signal);
+ let t = await Xm("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -31477,7 +31477,7 @@ function JE({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await Ym("/api/configuration/automatic-updates", e.signal);
+ let n = await Xm("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
o += 1, o >= qE && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
@@ -31489,12 +31489,12 @@ function JE({ initial: e, initialJob: t }) {
};
}, [i.state]);
let h = () => {
- f || (u.current = !1, c(""), l.run("download", (e) => Xm("/api/configuration/update", {}, "POST", e), a));
- }, g = () => void l.run("check", (e) => Ym("/api/configuration/updates", e), r, (t) => {
+ f || (u.current = !1, c(""), l.run("download", (e) => Zm("/api/configuration/update", {}, "POST", e), a));
+ }, g = () => void l.run("check", (e) => Xm("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
- }), l.setError(J(t));
+ }), l.setError(q(t));
}), _ = l.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
return /* @__PURE__ */ (0, C.jsxs)(eS, {
title: "检查更新",
@@ -31521,7 +31521,7 @@ function JE({ initial: e, initialJob: t }) {
divided: !0,
children: [
n.checked_at ? /* @__PURE__ */ (0, C.jsxs)(iS, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !_ ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n.state === "available" && !_ ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "info",
title: "有可用更新",
children: n.message
@@ -31598,7 +31598,7 @@ function XE({ data: e, receipt: t }) {
}
function ZE({ initial: e, receipt: t }) {
let [n, r] = (0, S.useState)(e.mode), [i, a] = (0, S.useState)(e.interval_hours), o = Zy(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => Xm("/api/configuration/automatic-updates", {
+ r.preventDefault(), e.available && o.run("save", (e) => Zm("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
@@ -31675,7 +31675,7 @@ function $E({ uninstall: e }) {
body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await Xm("/api/configuration/uninstall", {
+ let e = await Zm("/api/configuration/uninstall", {
delete_data: t,
confirmation: "卸载 Peach"
});
@@ -31944,14 +31944,14 @@ function pD(e) {
library_icon: e.library_icon || ""
})) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => fD(e));
}
-var mD = (e) => !(e instanceof qm) || e.status !== 400 ? null : e.body?.errors ?? null;
+var mD = (e) => !(e instanceof Jm) || e.status !== 400 ? null : e.body?.errors ?? null;
function hD({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-6",
children: [e.editable ? /* @__PURE__ */ (0, C.jsx)(gD, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, C.jsx)(J, {
tone: "neutral",
title: "只读",
children: e.notice
@@ -31982,16 +31982,16 @@ function gD({ data: e, receipt: t }) {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await Xm(ME, { initial: n[e]?.path ?? "" });
+ let { path: t } = await Zm(ME, { initial: n[e]?.path ?? "" });
t && (E(e, { path: t }), D(e, ""));
} catch (t) {
- D(e, J(t));
+ D(e, q(t));
} finally {
b.current = !1, y(null);
}
}
}, j = (r) => {
- r.preventDefault(), p(""), T.run("save", (t) => Xm(jE, {
+ r.preventDefault(), p(""), T.run("save", (t) => Zm(jE, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -32001,12 +32001,12 @@ function gD({ data: e, receipt: t }) {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
let t = mD(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(J(e));
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(q(e));
});
};
if (m) return /* @__PURE__ */ (0, C.jsx)(eS, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, C.jsx)(nS, { children: /* @__PURE__ */ (0, C.jsxs)(ch, {
+ children: /* @__PURE__ */ (0, C.jsx)(nS, { children: /* @__PURE__ */ (0, C.jsxs)(J, {
tone: "success",
title: "配置已保存",
children: [
@@ -32059,7 +32059,7 @@ function gD({ data: e, receipt: t }) {
...Z(v === r)
}),
n.length > 1 ? /* @__PURE__ */ (0, C.jsx)(Uy, {
- icon: If,
+ icon: Lf,
"aria-label": "移除这个文件夹",
onClick: () => k(r)
}) : null
@@ -32141,7 +32141,7 @@ function gD({ data: e, receipt: t }) {
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ f ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "没有保存",
children: f
@@ -32216,7 +32216,7 @@ function bD({ initial: e, receipt: t }) {
requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());
return;
}
- h.run("save", (e) => Xm("/api/configuration/access", {
+ h.run("save", (e) => Zm("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -32226,8 +32226,8 @@ function bD({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof qm ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(J(e));
+ let t = e instanceof Jm ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(q(e));
});
}, _ = yD[n.mode], v = n.mode !== "locked";
return /* @__PURE__ */ (0, C.jsxs)(eS, {
@@ -32237,7 +32237,7 @@ function bD({ initial: e, receipt: t }) {
ref: m,
children: /* @__PURE__ */ (0, C.jsxs)(nS, { children: [
_ ? /* @__PURE__ */ (0, C.jsx)(iS, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n.mode === "open" ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
@@ -32287,7 +32287,7 @@ function bD({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ u ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
@@ -32305,31 +32305,84 @@ function bD({ initial: e, receipt: t }) {
});
}
//#endregion
+//#region src/react/settings/tunnel-settings.tsx
+function xD({ data: e, initial: t, receipt: n }) {
+ let [r, i] = (0, S.useState)(t), [a, o] = (0, S.useState)(e.revision), s = Zy(), c = r.state === "starting" || r.state === "running";
+ return /* @__PURE__ */ (0, C.jsxs)(eS, {
+ title: "Cloudflare 临时链接",
+ onSubmit: (e) => {
+ e.preventDefault(), s.run("toggle", (e) => Zm("/api/configuration/tunnel", {
+ revision: a,
+ enabled: !c
+ }, "POST", e), (e) => {
+ i(e), o(e.revision), n(e.enabled ? "临时远程链接已启动" : "临时远程链接已停止");
+ });
+ },
+ children: [/* @__PURE__ */ (0, C.jsxs)(nS, { children: [
+ /* @__PURE__ */ (0, C.jsx)(iS, { children: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。" }),
+ r.available ? null : /* @__PURE__ */ (0, C.jsx)(J, {
+ tone: "warning",
+ title: "找不到 cloudflared",
+ children: "请安装官方 cloudflared,或在设置文件的 tunnel.binary 指定路径。"
+ }),
+ r.state === "running" && r.url ? /* @__PURE__ */ (0, C.jsx)(J, {
+ tone: "info",
+ title: "临时链接",
+ children: /* @__PURE__ */ (0, C.jsx)(sS, {
+ href: r.url,
+ children: r.url
+ })
+ }) : null,
+ r.state === "starting" ? /* @__PURE__ */ (0, C.jsx)(J, {
+ tone: "info",
+ title: "正在连接",
+ children: "正在等待 Cloudflare 返回入口地址。"
+ }) : null,
+ r.error ? /* @__PURE__ */ (0, C.jsx)(aS, { children: r.error }) : null
+ ] }), /* @__PURE__ */ (0, C.jsx)(rS, {
+ status: r.enabled ? "服务重启时会按设置尝试恢复。" : "默认关闭,不会自动暴露本机服务。",
+ children: /* @__PURE__ */ (0, C.jsx)(X, {
+ type: "submit",
+ ...Z(s.busy === "toggle"),
+ children: c ? "停止临时链接" : "启动临时链接"
+ })
+ })]
+ });
+}
+//#endregion
//#region src/react/settings/network-settings.tsx
-var xD = [
+var SD = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function SD({ data: e, receipt: t }) {
+function CD({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.peach_proxy ? /* @__PURE__ */ (0, C.jsx)(CD, {
- initial: e.peach_proxy,
- receipt: t
- }) : null, e.access ? /* @__PURE__ */ (0, C.jsx)(bD, {
- initial: e.access,
- receipt: t
- }) : null]
+ children: [
+ e.peach_proxy ? /* @__PURE__ */ (0, C.jsx)(wD, {
+ initial: e.peach_proxy,
+ receipt: t
+ }) : null,
+ e.access ? /* @__PURE__ */ (0, C.jsx)(bD, {
+ initial: e.access,
+ receipt: t
+ }) : null,
+ e.tunnel ? /* @__PURE__ */ (0, C.jsx)(xD, {
+ data: e,
+ initial: e.tunnel,
+ receipt: t
+ }) : null
+ ]
});
}
-function CD({ initial: e, receipt: t }) {
+function wD({ initial: e, receipt: t }) {
let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.mode), [o, s] = (0, S.useState)(""), c = Zy();
return /* @__PURE__ */ (0, C.jsxs)(eS, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => Xm("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => Zm("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -32346,7 +32399,7 @@ function CD({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: xD.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: SD.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
id: e,
children: t
}, e))
@@ -32364,7 +32417,7 @@ function CD({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n.needs_selection ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
@@ -32382,23 +32435,23 @@ function CD({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function wD({ receipt: e }) {
+function TD({ receipt: e }) {
let t = lt({
queryKey: NE,
queryFn: ({ signal: e }) => PE(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, C.jsx)("div", {
className: "configpage",
- children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "打不开配置",
- children: t.error ? J(t.error) : "没有读到配置"
+ children: t.error ? q(t.error) : "没有读到配置"
})
});
let r = {
data: n,
receipt: e
- }, i = !!(n.peach_proxy || n.access);
+ }, i = !!(n.peach_proxy || n.access || n.tunnel);
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "configpage",
children: [
@@ -32416,7 +32469,7 @@ function wD({ receipt: e }) {
className: "configgroup",
children: "网络与访问"
}) : null,
- i ? /* @__PURE__ */ (0, C.jsx)(SD, { ...r }) : null,
+ i ? /* @__PURE__ */ (0, C.jsx)(CD, { ...r }) : null,
/* @__PURE__ */ (0, C.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
@@ -32427,15 +32480,15 @@ function wD({ receipt: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var TD = "/api/stats", ED = ["stats"], DD = (e) => Ym(TD, e);
-async function OD(e) {
+var ED = "/api/stats", DD = ["stats"], OD = (e) => Xm(ED, e);
+async function kD(e) {
await dh.fetchQuery({
- queryKey: ED,
- queryFn: () => DD(e)
+ queryKey: DD,
+ queryFn: () => OD(e)
});
}
-var kD = (e, t) => t ? Math.round(e / t * 100) : 0, AD = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, jD = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, MD = (e) => (e.max_reached || 0) * 100, ND = (e) => e.kind === "online" ? "在线直接观看" : jD(e) < MD(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", PD = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
-function FD(e) {
+var AD = (e, t) => t ? Math.round(e / t * 100) : 0, jD = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, MD = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, ND = (e) => (e.max_reached || 0) * 100, PD = (e) => e.kind === "online" ? "在线直接观看" : MD(e) < ND(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", FD = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
+function ID(e) {
let t = Math.max(1, ...e) * 1.1, n = Math.min(22, 110 / Math.max(1, e.length)), r = Math.min(15, n * .68);
return e.map((e, i) => ({
radius: 32 + i * n,
@@ -32445,7 +32498,7 @@ function FD(e) {
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function ID({ children: e, className: t = "", previewCount: n = 10 }) {
+function LD({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, S.useId)(), i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(!1), l = S.Children.toArray(e), u = l.length > n;
(0, S.useLayoutEffect)(() => {
let e = i.current;
@@ -32485,27 +32538,27 @@ function ID({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, C.jsx)(kf, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, C.jsx)(Af, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/stats/radial-card.tsx
-var LD = [
+var RD = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], RD = [
+], zD = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], zD = [
+], BD = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -32513,12 +32566,12 @@ var LD = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function BD({ title: e, rows: t, unit: n = "个视频" }) {
+function VD({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, S.useState)(-1), [a, o] = (0, S.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
- let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = FD(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
+ let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = ID(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: `${ih({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`,
+ className: `${ah({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`,
children: [
/* @__PURE__ */ (0, C.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -32565,7 +32618,7 @@ function BD({ title: e, rows: t, unit: n = "个视频" }) {
pathLength: 100,
transform: "rotate(-90 160 160)",
strokeDasharray: `${u[t].length} ${100 - u[t].length}`,
- className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${LD[t % 6]}` : `cursor-pointer transition-opacity ${LD[t % 6]}`
+ className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${RD[t % 6]}` : `cursor-pointer transition-opacity ${RD[t % 6]}`
})
]
}, e.name))
@@ -32580,13 +32633,13 @@ function BD({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${zD[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${BD[t % 6]}`,
children: [
/* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, C.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${RD[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${zD[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, C.jsx)("b", {
@@ -32605,8 +32658,8 @@ function BD({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var VD = 10, HD = `${ih()} flex flex-col gap-4`, UD = "添加媒体文件夹或关注来源,开始建立你的馆藏。", WD = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", GD = "开始播放后,这里会显示最近的真实观看证据。", KD = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", qD = "添加媒体文件夹后,这里会显示存储空间。";
-function JD({ term: e, value: t }) {
+var HD = 10, UD = `${ah()} flex flex-col gap-4`, WD = "添加媒体文件夹或关注来源,开始建立你的馆藏。", GD = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", KD = "开始播放后,这里会显示最近的真实观看证据。", qD = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", JD = "添加媒体文件夹后,这里会显示存储空间。";
+function YD({ term: e, value: t }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, C.jsx)("span", {
@@ -32618,7 +32671,7 @@ function JD({ term: e, value: t }) {
})]
});
}
-function YD({ term: e, value: t, total: n }) {
+function XD({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, C.jsxs)("p", {
@@ -32627,7 +32680,7 @@ function YD({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, C.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [kD(t, n), "%"]
+ children: [AD(t, n), "%"]
})]
})]
}), /* @__PURE__ */ (0, C.jsx)(uh, {
@@ -32637,7 +32690,7 @@ function YD({ term: e, value: t, total: n }) {
})]
});
}
-function XD({ term: e, figure: t, unit: n }) {
+function ZD({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -32656,26 +32709,26 @@ function XD({ term: e, figure: t, unit: n }) {
]
});
}
-function ZD({ headline: e, children: t }) {
+function QD({ headline: e, children: t }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `${HD} md:flex-row md:gap-6`,
+ className: `${UD} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function QD({ data: t, configurable: r, openMediaSettings: i }) {
+function $D({ data: t, configurable: r, openMediaSettings: i }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, C.jsx)(BD, {
+ children: [/* @__PURE__ */ (0, C.jsx)(VD, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: n(t.bytes)
}))
- }), /* @__PURE__ */ (0, C.jsx)(BD, {
+ }), /* @__PURE__ */ (0, C.jsx)(VD, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -32683,9 +32736,9 @@ function QD({ data: t, configurable: r, openMediaSettings: i }) {
detail: n(e.bytes)
}))
})]
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: cp,
+ icon: lp,
title: "还没有视频",
actions: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [r ? /* @__PURE__ */ (0, C.jsx)(X, {
size: "small",
@@ -32696,35 +32749,35 @@ function QD({ data: t, configurable: r, openMediaSettings: i }) {
size: "small",
children: "添加关注"
})] }),
- children: UD
+ children: WD
});
}
-function $D({ attribution: e }) {
+function eO({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, C.jsx)(YD, {
+ /* @__PURE__ */ (0, C.jsx)(XD, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, C.jsx)(YD, {
+ /* @__PURE__ */ (0, C.jsx)(XD, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, C.jsx)(YD, {
+ /* @__PURE__ */ (0, C.jsx)(XD, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, C.jsx)(YD, {
+ /* @__PURE__ */ (0, C.jsx)(XD, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, C.jsx)(YD, {
+ /* @__PURE__ */ (0, C.jsx)(XD, {
term: "已探测时长",
value: e.duration,
total: t
@@ -32732,7 +32785,7 @@ function $D({ attribution: e }) {
]
});
}
-function eO({ volume: e }) {
+function tO({ volume: e }) {
let t = e.total, r = e.used ?? 0;
return /* @__PURE__ */ (0, C.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5",
@@ -32744,7 +32797,7 @@ function eO({ volume: e }) {
children: e.label
}), /* @__PURE__ */ (0, C.jsx)("b", {
className: "text-body-2-medium whitespace-nowrap text-text-primary",
- children: t == null ? e.online ? "容量未取得" : "离线" : `${kD(r, t)}%`
+ children: t == null ? e.online ? "容量未取得" : "离线" : `${AD(r, t)}%`
})]
}),
/* @__PURE__ */ (0, C.jsx)("small", {
@@ -32768,25 +32821,25 @@ function eO({ volume: e }) {
]
});
}
-function tO({ volumes: e, configurable: t, openMediaSettings: n }) {
+function nO({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-col gap-5",
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(eO, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(tO, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: Gf,
+ icon: Kf,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, C.jsx)(X, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: qD
+ children: JD
});
}
-function nO({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, C.jsx)(ID, {
- previewCount: VD,
+function rO({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, C.jsx)(LD, {
+ previewCount: HD,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, C.jsx)("li", {
className: "min-w-0",
@@ -32810,23 +32863,23 @@ function nO({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: $f,
+ icon: ep,
title: "还没有内容标签",
actions: /* @__PURE__ */ (0, C.jsx)($x, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: WD
+ children: GD
});
}
-function rO({ rows: e }) {
+function iO({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = jD(e);
+ let t = MD(e);
return /* @__PURE__ */ (0, C.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
@@ -32834,14 +32887,14 @@ function rO({ rows: e }) {
children: [/* @__PURE__ */ (0, C.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, C.jsx)("a", {
- href: PD(e),
+ href: FD(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, C.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, C.jsx)("span", { children: ND(e) })]
+ children: [/* @__PURE__ */ (0, C.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, C.jsx)("span", { children: PD(e) })]
})]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -32850,24 +32903,24 @@ function rO({ rows: e }) {
value: t
}), /* @__PURE__ */ (0, C.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${MD(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${ND(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: Kf,
+ icon: qf,
title: "还没有观看记录",
actions: /* @__PURE__ */ (0, C.jsx)($x, {
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: GD
+ children: KD
});
}
-function iO({ sources: e, videos: t }) {
+function aO({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)("article", {
@@ -32897,19 +32950,19 @@ function iO({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: $f,
+ icon: ep,
title: "还没有标签来源",
actions: /* @__PURE__ */ (0, C.jsx)($x, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: KD
+ children: qD
});
}
-function aO({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+function oO({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
return /* @__PURE__ */ (0, C.jsx)(Py, {
id: e,
className: Rx({
@@ -32925,17 +32978,17 @@ function aO({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function oO(e) {
+function sO(e) {
let t = lt({
- queryKey: ED,
- queryFn: ({ signal: e }) => DD(e)
+ queryKey: DD,
+ queryFn: ({ signal: e }) => OD(e)
}), r = t.data;
- if (!r) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ if (!r) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "读取失败",
- children: t.error ? J(t.error) : "读取统计失败"
+ children: t.error ? q(t.error) : "读取统计失败"
}) });
- let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = kD(r.tag_cov, r.attribution.videos);
+ let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = AD(r.tag_cov, r.attribution.videos);
return /* @__PURE__ */ (0, C.jsxs)(lh, { children: [
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -32948,34 +33001,34 @@ function oO(e) {
"aria-label": "统计视图",
className: zx,
children: [
- /* @__PURE__ */ (0, C.jsx)(aO, {
+ /* @__PURE__ */ (0, C.jsx)(oO, {
id: "inventory",
label: "馆藏视频",
- icon: Rf,
+ icon: zf,
accent: 0,
figure: o.toLocaleString(),
detail: n(s)
}),
- /* @__PURE__ */ (0, C.jsx)(aO, {
+ /* @__PURE__ */ (0, C.jsx)(oO, {
id: "viewing",
label: "看过",
- icon: Hf,
+ icon: Uf,
accent: 1,
figure: i.played.toLocaleString(),
- detail: AD(i.play_seconds)
+ detail: jD(i.play_seconds)
}),
- /* @__PURE__ */ (0, C.jsx)(aO, {
+ /* @__PURE__ */ (0, C.jsx)(oO, {
id: "coverage",
label: "内容标签",
- icon: $f,
+ icon: ep,
accent: 2,
figure: `${c}%`,
detail: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, C.jsx)(aO, {
+ /* @__PURE__ */ (0, C.jsx)(oO, {
id: "storage",
label: "使用空间",
- icon: Gf,
+ icon: Kf,
accent: 3,
figure: `${a.online} 个卷`,
detail: a.measured ? `已用 ${n(a.used)}` : "容量未取得"
@@ -32984,15 +33037,15 @@ function oO(e) {
}),
/* @__PURE__ */ (0, C.jsx)(Fy, {
id: "inventory",
- children: /* @__PURE__ */ (0, C.jsx)(QD, {
+ children: /* @__PURE__ */ (0, C.jsx)($D, {
data: r,
...e
})
}),
/* @__PURE__ */ (0, C.jsx)(Fy, {
id: "viewing",
- children: /* @__PURE__ */ (0, C.jsx)(ZD, {
- headline: /* @__PURE__ */ (0, C.jsx)(XD, {
+ children: /* @__PURE__ */ (0, C.jsx)(QD, {
+ headline: /* @__PURE__ */ (0, C.jsx)(ZD, {
term: "观看",
figure: i.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -33000,31 +33053,31 @@ function oO(e) {
children: /* @__PURE__ */ (0, C.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(JD, {
+ /* @__PURE__ */ (0, C.jsx)(YD, {
term: "馆藏观看",
value: i.library_played
}),
- /* @__PURE__ */ (0, C.jsx)(JD, {
+ /* @__PURE__ */ (0, C.jsx)(YD, {
term: "在线直接观看",
value: i.online_played
}),
- /* @__PURE__ */ (0, C.jsx)(JD, {
+ /* @__PURE__ */ (0, C.jsx)(YD, {
term: "高潮计数",
value: i.o_total
}),
- /* @__PURE__ */ (0, C.jsx)(JD, {
+ /* @__PURE__ */ (0, C.jsx)(YD, {
term: "快进扫过",
value: i.skimmed
}),
- /* @__PURE__ */ (0, C.jsx)(JD, {
+ /* @__PURE__ */ (0, C.jsx)(YD, {
term: "明确不喜欢",
value: i.dislike
}),
- /* @__PURE__ */ (0, C.jsx)(JD, {
+ /* @__PURE__ */ (0, C.jsx)(YD, {
term: "看过了",
value: i.seen
}),
- /* @__PURE__ */ (0, C.jsx)(JD, {
+ /* @__PURE__ */ (0, C.jsx)(YD, {
term: "回收站",
value: i.trash
})
@@ -33034,24 +33087,24 @@ function oO(e) {
}),
/* @__PURE__ */ (0, C.jsx)(Fy, {
id: "coverage",
- children: /* @__PURE__ */ (0, C.jsx)(ZD, {
- headline: /* @__PURE__ */ (0, C.jsx)(XD, {
+ children: /* @__PURE__ */ (0, C.jsx)(QD, {
+ headline: /* @__PURE__ */ (0, C.jsx)(ZD, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, C.jsx)($D, { attribution: r.attribution })
+ children: /* @__PURE__ */ (0, C.jsx)(eO, { attribution: r.attribution })
})
}),
/* @__PURE__ */ (0, C.jsx)(Fy, {
id: "storage",
- children: /* @__PURE__ */ (0, C.jsx)(ZD, {
- headline: /* @__PURE__ */ (0, C.jsx)(XD, {
+ children: /* @__PURE__ */ (0, C.jsx)(QD, {
+ headline: /* @__PURE__ */ (0, C.jsx)(ZD, {
term: "使用空间",
figure: String(a.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, C.jsx)(tO, {
+ children: /* @__PURE__ */ (0, C.jsx)(nO, {
volumes: r.storage_volumes,
...e
})
@@ -33060,7 +33113,7 @@ function oO(e) {
]
}),
/* @__PURE__ */ (0, C.jsxs)(Ay, {
- className: `${ih({ padding: "none" })} flex flex-col`,
+ className: `${ah({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, C.jsx)("div", {
className: "px-4 pt-3",
@@ -33089,7 +33142,7 @@ function oO(e) {
/* @__PURE__ */ (0, C.jsx)(Fy, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(nO, {
+ children: /* @__PURE__ */ (0, C.jsx)(rO, {
tags: r.top_tags,
...e
})
@@ -33097,12 +33150,12 @@ function oO(e) {
/* @__PURE__ */ (0, C.jsx)(Fy, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(rO, { rows: r.recent })
+ children: /* @__PURE__ */ (0, C.jsx)(iO, { rows: r.recent })
}),
/* @__PURE__ */ (0, C.jsx)(Fy, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(iO, {
+ children: /* @__PURE__ */ (0, C.jsx)(aO, {
sources: r.tag_source,
videos: r.attribution.videos
})
@@ -33113,7 +33166,7 @@ function oO(e) {
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function sO(e, t) {
+function cO(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -33124,7 +33177,7 @@ function sO(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function cO(e, t) {
+function lO(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -33135,7 +33188,7 @@ function cO(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function lO(e, t) {
+function uO(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -33146,66 +33199,66 @@ function lO(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function uO(e, t) {
+function dO(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function dO(e) {
+function fO(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function fO(e, t) {
- return mO(e.source, t.source) || e.index - t.index;
-}
function pO(e, t) {
- return mO(e.target, t.target) || e.index - t.index;
+ return hO(e.source, t.source) || e.index - t.index;
}
function mO(e, t) {
+ return hO(e.target, t.target) || e.index - t.index;
+}
+function hO(e, t) {
return e.y0 - t.y0;
}
-function hO(e) {
+function gO(e) {
return e.value;
}
-function gO(e) {
+function _O(e) {
return e.index;
}
-function _O(e) {
+function vO(e) {
return e.nodes;
}
-function vO(e) {
+function yO(e) {
return e.links;
}
-function yO(e, t) {
+function bO(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function bO({ nodes: e }) {
+function xO({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function xO() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = gO, c = uO, l, u, d = _O, f = vO, p = 6;
+function SO() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = _O, c = dO, l, u, d = vO, f = yO, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), bO(e), e;
+ return h(e), g(e), _(e), v(e), x(e), xO(e), e;
}
m.update = function(e) {
- return bO(e), e;
+ return xO(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : dO(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : fO(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : dO(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : fO(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -33213,9 +33266,9 @@ function xO() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : dO(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : fO(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : dO(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : fO(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -33231,12 +33284,12 @@ function xO() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = yO(n, t)), typeof i != "object" && (i = r.target = yO(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = bO(n, t)), typeof i != "object" && (i = r.target = bO(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(lO(t.sourceLinks, hO), lO(t.targetLinks, hO)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(uO(t.sourceLinks, gO), uO(t.targetLinks, gO)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -33261,7 +33314,7 @@ function xO() {
}
}
function y({ nodes: t }) {
- let r = sO(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = cO(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -33270,7 +33323,7 @@ function xO() {
return o;
}
function b(e) {
- let n = cO(e, (e) => (r - t - (e.length - 1) * o) / lO(e, hO));
+ let n = lO(e, (e) => (r - t - (e.length - 1) * o) / uO(e, gO));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -33287,7 +33340,7 @@ function xO() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (sO(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (cO(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -33306,7 +33359,7 @@ function xO() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(mO), w(i, n);
+ l === void 0 && i.sort(hO), w(i, n);
}
}
function C(e, t, n) {
@@ -33322,7 +33375,7 @@ function xO() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(mO), w(i, n);
+ l === void 0 && i.sort(hO), w(i, n);
}
}
function w(e, n) {
@@ -33343,12 +33396,12 @@ function xO() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(pO);
- for (let { target: { targetLinks: t } } of e) t.sort(fO);
+ for (let { source: { sourceLinks: e } } of t) e.sort(mO);
+ for (let { target: { targetLinks: t } } of e) t.sort(pO);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(pO), n.sort(fO);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(mO), n.sort(pO);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -33378,15 +33431,15 @@ function xO() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var SO = Math.PI, CO = 2 * SO, wO = 1e-6, TO = CO - wO;
-function EO() {
+var CO = Math.PI, wO = 2 * CO, TO = 1e-6, EO = wO - TO;
+function DO() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function DO() {
- return new EO();
+function OO() {
+ return new DO();
}
-EO.prototype = DO.prototype = {
- constructor: EO,
+DO.prototype = OO.prototype = {
+ constructor: DO,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -33407,11 +33460,11 @@ EO.prototype = DO.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > wO) {
- if (!(Math.abs(u * s - c * l) > wO) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > TO) {
+ if (!(Math.abs(u * s - c * l) > TO) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((SO - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > wO && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((CO - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > TO && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -33419,7 +33472,7 @@ EO.prototype = DO.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > wO || Math.abs(this._y1 - l) > wO) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % CO + CO), d > TO ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > wO && (this._ += "A" + n + "," + n + ",0," + +(d >= SO) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > TO || Math.abs(this._y1 - l) > TO) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % wO + wO), d > EO ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > TO && (this._ += "A" + n + "," + n + ",0," + +(d >= CO) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -33430,90 +33483,90 @@ EO.prototype = DO.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function OO(e) {
+function kO(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function kO(e) {
+function AO(e) {
return e[0];
}
-function AO(e) {
+function jO(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var jO = Array.prototype.slice;
+var MO = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function MO(e) {
+function NO(e) {
return e.source;
}
-function NO(e) {
+function PO(e) {
return e.target;
}
-function PO(e) {
- var t = MO, n = NO, r = kO, i = AO, a = null;
+function FO(e) {
+ var t = NO, n = PO, r = AO, i = jO, a = null;
function o() {
- var o, s = jO.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = DO(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = MO.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = OO(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : OO(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : kO(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : OO(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : kO(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function FO(e, t, n, r, i) {
+function IO(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function IO() {
- return PO(FO);
+function LO() {
+ return FO(IO);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function LO(e) {
+function RO(e) {
return [e.source.x1, e.y0];
}
-function RO(e) {
+function zO(e) {
return [e.target.x0, e.y1];
}
-function zO() {
- return IO().source(LO).target(RO);
+function BO() {
+ return LO().source(RO).target(zO);
}
//#endregion
//#region src/react/taste/taste.ts
-var BO = "/api/taste", VO = "/api/taste/refresh", HO = "/api/taste/import", UO = "/api/taste/source", WO = (e) => ["taste", e], GO = ["taste", "refresh"], KO = [
+var VO = "/api/taste", HO = "/api/taste/refresh", UO = "/api/taste/import", WO = "/api/taste/source", GO = (e) => ["taste", e], KO = ["taste", "refresh"], qO = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], qO = (e, t) => Ym(`${BO}?window=${e}`, t), JO = (e) => Ym(VO, e);
-async function YO(e, t) {
+], JO = (e, t) => Xm(`${VO}?window=${e}`, t), YO = (e) => Xm(HO, e);
+async function XO(e, t) {
await dh.fetchQuery({
- queryKey: WO(e),
- queryFn: () => qO(e, t)
+ queryKey: GO(e),
+ queryFn: () => JO(e, t)
});
}
-var XO = (e) => Xm(VO, {
+var ZO = (e) => Zm(HO, {
window: e,
background: !0
-}), ZO = (e, t) => Xm(UO, {
+}), QO = (e, t) => Zm(WO, {
operation: "remove",
source_key: e,
window: t
});
-async function QO(e) {
- let t = await fetch(HO, {
+async function $O(e) {
+ let t = await fetch(UO, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -33527,38 +33580,38 @@ async function QO(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new qm(e || `导入失败(${t.status})`, t.status, n);
+ throw new Jm(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var $O = 2e3, ek = 1e4, tk = (e) => e?.status === "running" ? $O : ek, nk = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", rk = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, ik = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function ak(e) {
+var ek = 2e3, tk = 1e4, nk = (e) => e?.status === "running" ? ek : tk, rk = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", ik = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, ak = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function ok(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function ok(e) {
- let t = e.map(ik), n = Math.max(1, ...t);
+function sk(e) {
+ let t = e.map(ak), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var sk = {
+var ck = {
x: 160,
y: 140
-}, ck = [
+}, lk = [
25,
50,
75,
100
-], lk = (e, t, n) => {
+], uk = (e, t, n) => {
let r = e / t * Math.PI * 2 - Math.PI / 2;
- return [sk.x + Math.cos(r) * n, sk.y + Math.sin(r) * n];
+ return [ck.x + Math.cos(r) * n, ck.y + Math.sin(r) * n];
};
-function uk(e) {
+function dk(e) {
let t = e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).slice().sort((e, t) => Number(t.score) - Number(e.score)).slice(0, 6);
if (t.length < 3) return [];
let n = Math.max(...t.map((e) => Number(e.score)));
return t.map((e, r) => {
- let [i, a] = lk(r, t.length, Number(e.score) / n * 100), [o, s] = lk(r, t.length, 116);
+ let [i, a] = uk(r, t.length, Number(e.score) / n * 100), [o, s] = uk(r, t.length, 116);
return {
name: e.name,
x: i,
@@ -33568,7 +33621,7 @@ function uk(e) {
};
});
}
-var dk = (e, t) => Array.from({ length: t }, (n, r) => lk(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), fk = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), pk = [
+var fk = (e, t) => Array.from({ length: t }, (n, r) => uk(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), pk = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), mk = [
"周一",
"周二",
"周三",
@@ -33576,8 +33629,8 @@ var dk = (e, t) => Array.from({ length: t }, (n, r) => lk(r, t, e).map((e) => e.
"周五",
"周六",
"周日"
-], mk = (e, t) => e ? Math.max(.12, e / t) : 0;
-function hk(e) {
+], hk = (e, t) => e ? Math.max(.12, e / t) : 0;
+function gk(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -33587,14 +33640,14 @@ function hk(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${pk[t]} ${n}:00`,
+ label: `${mk[t]} ${n}:00`,
count: e,
- share: mk(e, r)
+ share: hk(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function gk(e) {
+function _k(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -33612,7 +33665,7 @@ function gk(e) {
key: r,
label: r,
count: s,
- share: mk(s, o)
+ share: hk(s, o)
};
});
return {
@@ -33622,17 +33675,17 @@ function gk(e) {
end: t.at(-1).date
};
}
-var _k = {
+var vk = {
width: 720,
height: 435
-}, vk = {
+}, yk = {
source: 145,
target: 545
};
-function yk(e = []) {
+function bk(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = xO().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = SO().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -33647,7 +33700,7 @@ function yk(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = zO();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = BO();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -33677,22 +33730,22 @@ function yk(e = []) {
total: a
};
}
-var bk = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, xk = [
+var xk = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, Sk = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], Sk = [
+], Ck = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], Ck = `${ih({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function wk({ title: e, figure: t, note: n }) {
+], wk = `${ah({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function Tk({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, C.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, C.jsxs)("span", {
@@ -33710,8 +33763,8 @@ function wk({ title: e, figure: t, note: n }) {
})]
});
}
-function Tk({ rows: e, label: t }) {
- let n = uk(e);
+function Ek({ rows: e, label: t }) {
+ let n = dk(e);
if (!n.length) return null;
let r = n.length;
return /* @__PURE__ */ (0, C.jsxs)("svg", {
@@ -33721,14 +33774,14 @@ function Tk({ rows: e, label: t }) {
className: "block w-full overflow-visible",
children: [
/* @__PURE__ */ (0, C.jsx)("title", { children: n.map((e) => e.name).join(",") }),
- ck.map((e) => /* @__PURE__ */ (0, C.jsx)("polygon", {
- points: dk(e, r),
+ lk.map((e) => /* @__PURE__ */ (0, C.jsx)("polygon", {
+ points: fk(e, r),
fill: "none",
className: "stroke-separator-border",
strokeWidth: 1
}, e)),
/* @__PURE__ */ (0, C.jsx)("polygon", {
- points: fk(n),
+ points: pk(n),
strokeWidth: 2,
strokeLinejoin: "round",
fillOpacity: .18,
@@ -33745,10 +33798,10 @@ function Tk({ rows: e, label: t }) {
]
});
}
-function Ek({ rows: e, label: t }) {
+function Dk({ rows: e, label: t }) {
let n = e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).slice().sort((e, t) => Number(t.score) - Number(e.score)).slice(0, 8);
if (!n.length) return null;
- let r = ok(n);
+ let r = sk(n);
return /* @__PURE__ */ (0, C.jsx)("ol", {
"aria-label": t,
className: "flex flex-col gap-2",
@@ -33781,12 +33834,12 @@ function Ek({ rows: e, label: t }) {
}, e.name))
});
}
-function Dk({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {
+function Ok({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {
let [c, l] = (0, S.useState)(null), u = o ? 30 : 0, d = o ? 18 : 0;
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Ck,
+ className: wk,
children: [
- /* @__PURE__ */ (0, C.jsx)(wk, {
+ /* @__PURE__ */ (0, C.jsx)(Tk, {
title: e,
figure: (c ? c.count : r).toLocaleString(),
note: c ? c.label : t
@@ -33826,11 +33879,11 @@ function Dk({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var Ok = "口味网站访问";
-function kk({ activity: e }) {
- let t = hk(e), n = gk(e);
+var kk = "口味网站访问";
+function Ak({ activity: e }) {
+ let t = gk(e), n = _k(e);
if (!n.cells.length) return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Ck,
+ className: wk,
children: [/* @__PURE__ */ (0, C.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "浏览活跃时间"
@@ -33839,7 +33892,7 @@ function kk({ activity: e }) {
children: "还没有可用于分析的口味网站访问记录。"
})]
});
- let r = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [pk.map((e, t) => /* @__PURE__ */ (0, C.jsx)("text", {
+ let r = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [mk.map((e, t) => /* @__PURE__ */ (0, C.jsx)("text", {
x: 0,
y: 18 + t * 17 + 7,
dominantBaseline: "middle",
@@ -33854,18 +33907,18 @@ function kk({ activity: e }) {
}, t))] });
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "inline-grid w-full gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, C.jsx)(Dk, {
+ children: [/* @__PURE__ */ (0, C.jsx)(Ok, {
title: "浏览活跃时间",
- unit: Ok,
+ unit: kk,
cells: t.cells,
total: t.total,
columns: 24,
rows: 7,
axis: r,
footer: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, C.jsx)(Dk, {
+ }), /* @__PURE__ */ (0, C.jsx)(Ok, {
title: "每日活跃",
- unit: Ok,
+ unit: kk,
cells: n.cells,
total: n.total,
columns: 13,
@@ -33874,14 +33927,14 @@ function kk({ activity: e }) {
})]
});
}
-function Ak({ flows: e }) {
- let [t, n] = (0, S.useState)(null), r = yk(e);
+function jk({ flows: e }) {
+ let [t, n] = (0, S.useState)(null), r = bk(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Ck,
+ className: wk,
children: [
- /* @__PURE__ */ (0, C.jsx)(wk, {
+ /* @__PURE__ */ (0, C.jsx)(Tk, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -33889,7 +33942,7 @@ function Ak({ flows: e }) {
/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, C.jsxs)("svg", {
- viewBox: `0 0 ${_k.width} ${_k.height}`,
+ viewBox: `0 0 ${vk.width} ${vk.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -33903,7 +33956,7 @@ function Ak({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${xk[e.color]}`,
+ className: `outline-none transition-opacity ${Sk[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -33937,15 +33990,15 @@ function Ak({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? Sk[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? Ck[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, C.jsxs)("text", {
- x: vk[e.side],
+ x: yk[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [bk(e.name), /* @__PURE__ */ (0, C.jsx)("tspan", {
- x: vk[e.side],
+ children: [xk(e.name), /* @__PURE__ */ (0, C.jsx)("tspan", {
+ x: yk[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -33962,8 +34015,8 @@ function Ak({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var jk = 10, Mk = Um(qx, Jx, "text-body-2-medium"), Nk = `${ih()} flex flex-col gap-4`, Pk = "rounded-xl bg-background-primary-default p-3", Fk = "读取运行 Peach 的这台电脑上的浏览记录", Ik = "导入或读取浏览记录后,这里会列出已采集设备。", Lk = "馆藏里暂时没有对得上浏览信号的标签。", Rk = "采集浏览记录后,这里会显示聚合后的口味证据。", zk = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", Bk = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Vk = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Hk = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Uk = "这个数据源将不再用于口味分析。原始导出文件保留。", Wk = "peach-taste-guide-dismissed";
-function Gk({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var Mk = 10, Nk = Wm(qx, Jx, "text-body-2-medium"), Pk = `${ah()} flex flex-col gap-4`, Fk = "rounded-xl bg-background-primary-default p-3", Ik = "读取运行 Peach 的这台电脑上的浏览记录", Lk = "导入或读取浏览记录后,这里会列出已采集设备。", Rk = "馆藏里暂时没有对得上浏览信号的标签。", zk = "采集浏览记录后,这里会显示聚合后的口味证据。", Bk = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", Vk = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Hk = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Uk = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Wk = "这个数据源将不再用于口味分析。原始导出文件保留。", Gk = "peach-taste-guide-dismissed";
+function Kk({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
className: Rx(),
children: /* @__PURE__ */ (0, C.jsx)(Bx, {
@@ -33975,7 +34028,7 @@ function Gk({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function Kk({ name: e, domain: t }) {
+function qk({ name: e, domain: t }) {
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, C.jsx)("img", {
@@ -33989,22 +34042,22 @@ function Kk({ name: e, domain: t }) {
})]
});
}
-function qk({ html: e }) {
+function Jk({ html: e }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-cover",
dangerouslySetInnerHTML: { __html: e }
});
}
-function Jk({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, C.jsx)(oh, {
+function Yk({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ if (!e.length) return /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: np,
+ icon: rp,
title: "暂无足够证据",
children: r
});
- let o = ok(e);
- return /* @__PURE__ */ (0, C.jsx)(ID, {
- previewCount: jk,
+ let o = sk(e);
+ return /* @__PURE__ */ (0, C.jsx)(LD, {
+ previewCount: Mk,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
@@ -34023,15 +34076,15 @@ function Jk({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, C.jsx)(Kk, {
+ n === "domain" ? /* @__PURE__ */ (0, C.jsx)(qk, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, C.jsx)(Kk, {
+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, C.jsx)(qk, {
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, C.jsx)(qk, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, C.jsx)(Jk, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -34043,10 +34096,10 @@ function Jk({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a
children: e.name
}), /* @__PURE__ */ (0, C.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: ak(e)
+ children: ok(e)
})]
}),
- s ? /* @__PURE__ */ (0, C.jsx)(jf, {
+ s ? /* @__PURE__ */ (0, C.jsx)(Mf, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -34066,9 +34119,9 @@ function Jk({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a
})
});
}
-function Yk({ label: e, panels: t, onSignal: n, avatarInner: r }) {
+function Xk({ label: e, panels: t, onSignal: n, avatarInner: r }) {
return /* @__PURE__ */ (0, C.jsxs)(Ay, {
- className: `${ih({ padding: "none" })} flex flex-col`,
+ className: `${ah({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "px-4 pt-3",
children: /* @__PURE__ */ (0, C.jsx)(My, {
@@ -34083,7 +34136,7 @@ function Yk({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}), t.map((e) => /* @__PURE__ */ (0, C.jsx)(Fy, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(Jk, {
+ children: /* @__PURE__ */ (0, C.jsx)(Yk, {
...e.props,
onSignal: n,
avatarInner: r
@@ -34091,7 +34144,7 @@ function Yk({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function Xk({ data: e, onSignal: t, navigate: n }) {
+function Zk({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -34106,7 +34159,7 @@ function Xk({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Nk,
+ className: Pk,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, C.jsxs)("header", {
@@ -34132,7 +34185,7 @@ function Xk({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${Pk}`,
+ className: `flex min-w-0 flex-col gap-1 ${Fk}`,
children: [/* @__PURE__ */ (0, C.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -34147,7 +34200,7 @@ function Xk({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${Pk} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${Fk} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, C.jsx)("b", {
@@ -34157,30 +34210,30 @@ function Xk({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, C.jsx)(jf, {
+ }), /* @__PURE__ */ (0, C.jsx)(Mf, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: np,
+ icon: rp,
title: "还没有可探索的入口",
- children: Lk
+ children: Rk
})
]
});
}
-function Zk({ onboarding: e, done: t }) {
+function Qk({ onboarding: e, done: t }) {
let [n, r] = (0, S.useState)(() => {
try {
- return localStorage.getItem(Wk) === "1";
+ return localStorage.getItem(Gk) === "1";
} catch {
return !1;
}
});
return t || n ? null : /* @__PURE__ */ (0, C.jsx)("div", {
- className: ih({
+ className: ah({
padding: "none",
className: "p-4"
}),
@@ -34190,11 +34243,11 @@ function Zk({ onboarding: e, done: t }) {
children: [
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Bk
+ children: Vk
}),
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Vk
+ children: Hk
}),
/* @__PURE__ */ (0, C.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -34224,7 +34277,7 @@ function Zk({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Hk
+ children: Uk
}),
/* @__PURE__ */ (0, C.jsx)("span", {
className: "self-start",
@@ -34233,7 +34286,7 @@ function Zk({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(Wk, "1");
+ localStorage.setItem(Gk, "1");
} catch {}
r(!0);
},
@@ -34244,7 +34297,7 @@ function Zk({ onboarding: e, done: t }) {
})
});
}
-function Qk({ busy: e, onRefresh: t, onImport: n }) {
+function $k({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, S.useRef)(null), [i, a] = (0, S.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -34253,15 +34306,15 @@ function Qk({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, C.jsx)(X, {
- leadingIcon: Lf,
- title: Fk,
+ leadingIcon: Rf,
+ title: Ik,
onClick: t,
...Z(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, C.jsx)(X, {
ref: r,
iconOnly: !0,
- leadingIcon: kf,
+ leadingIcon: Af,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -34279,17 +34332,17 @@ function Qk({ busy: e, onRefresh: t, onImport: n }) {
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
- className: Mk,
+ className: Nk,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, C.jsx)(Lf, {
+ children: [/* @__PURE__ */ (0, C.jsx)(Rf, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
- className: Mk,
+ className: Nk,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, C.jsx)(op, {
+ children: [/* @__PURE__ */ (0, C.jsx)(sp, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -34297,36 +34350,36 @@ function Qk({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function $k({ sources: e, window: t, toast: n }) {
+function eA({ sources: e, window: t, toast: n }) {
let r = ut({
- mutationFn: (e) => ZO(e, t),
+ mutationFn: (e) => QO(e, t),
onSuccess: (e) => {
- dh.setQueryData(WO(t), e.dashboard), n("已移除口味数据源");
+ dh.setQueryData(GO(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Nk,
+ className: Pk,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, C.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "数据源"
}),
- r.error ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ r.error ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
- children: J(r.error)
+ children: q(r.error)
}) : null,
e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${Pk}`,
+ className: `flex min-w-0 items-center gap-3 ${Fk}`,
children: [
/* @__PURE__ */ (0, C.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, C.jsx)(op, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, C.jsx)(sp, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, C.jsx)(Rf, {
+ }) : /* @__PURE__ */ (0, C.jsx)(zf, {
"aria-hidden": !0,
className: "size-4"
})
@@ -34346,12 +34399,12 @@ function $k({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: zf,
+ leadingIcon: Bf,
...Z(r.isPending),
onClick: () => {
r.isPending || s({
title: "移除口味数据源",
- body: Uk,
+ body: Wk,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -34359,33 +34412,33 @@ function $k({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: Rf,
+ icon: zf,
title: "还没有数据源",
- children: Ik
+ children: Lk
})
]
});
}
-function eA(e) {
+function tA(e) {
let { onSignal: t, navigate: r, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, S.useState)("all"), [l, u] = (0, S.useState)("browser"), [d, f] = (0, S.useState)(!1), [p, m] = (0, S.useState)(null), h = (0, S.useRef)(null), g = lt({
- queryKey: WO(s),
- queryFn: ({ signal: e }) => qO(s, e),
+ queryKey: GO(s),
+ queryFn: ({ signal: e }) => JO(s, e),
placeholderData: I
}), _ = lt({
- queryKey: GO,
- queryFn: ({ signal: e }) => JO(e),
- refetchInterval: (e) => tk(e.state.data)
+ queryKey: KO,
+ queryFn: ({ signal: e }) => YO(e),
+ refetchInterval: (e) => nk(e.state.data)
}), v = ut({
- mutationFn: () => XO(s),
+ mutationFn: () => ZO(s),
onSuccess: () => {
- f(!0), m(null), dh.invalidateQueries({ queryKey: GO });
+ f(!0), m(null), dh.invalidateQueries({ queryKey: KO });
}
}), y = ut({
- mutationFn: (e) => QO(e),
+ mutationFn: (e) => $O(e),
onSuccess: (e) => {
- dh.setQueryData(WO("all"), e.dashboard), c("all"), i("已导入口味数据");
+ dh.setQueryData(GO("all"), e.dashboard), c("all"), i("已导入口味数据");
}
}), b = _.data?.status === "running";
(0, S.useEffect)(() => {
@@ -34408,12 +34461,12 @@ function eA(e) {
}, w = () => {
b || v.isPending || (v.reset(), v.mutate());
}, T = g.data;
- if (!T) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ if (!T) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "读取失败",
- children: g.error ? J(g.error) : "读取口味分析失败"
+ children: g.error ? q(g.error) : "读取口味分析失败"
}) });
- let E = T.summary || {}, D = T.coverage || {}, O = T.rankings || {}, k = T.storage || {}, A = O.browser_categories || [], j = T.gaps || [], M = D.tagged || 0, N = D.identified || 0, ee = v.error ? J(v.error) : y.error ? J(y.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
+ let E = T.summary || {}, D = T.coverage || {}, O = T.rankings || {}, k = T.storage || {}, A = O.browser_categories || [], j = T.gaps || [], M = D.tagged || 0, N = D.identified || 0, ee = v.error ? q(v.error) : y.error ? q(y.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
return /* @__PURE__ */ (0, C.jsxs)(lh, { children: [
/* @__PURE__ */ (0, C.jsxs)(Ay, {
selectedKey: l,
@@ -34443,12 +34496,12 @@ function eA(e) {
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: KO.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: qO.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, C.jsx)(Qk, {
+ /* @__PURE__ */ (0, C.jsx)($k, {
busy: b || v.isPending || y.isPending,
onRefresh: w,
onImport: () => h.current?.click()
@@ -34464,7 +34517,7 @@ function eA(e) {
]
})]
}),
- /* @__PURE__ */ (0, C.jsx)(Zk, {
+ /* @__PURE__ */ (0, C.jsx)(Qk, {
onboarding: o,
done: !!(E.history_sources || T.updated_at)
}),
@@ -34482,9 +34535,9 @@ function eA(e) {
className: "text-caption-1-regular text-text-secondary",
children: `${_.data.message || "正在读取浏览记录"} · ${_.data.checked || 0} / ${_.data.total}`
})]
- }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: _.data?.message || "正在读取浏览记录并更新口味分析" }) : null,
- y.isPending ? /* @__PURE__ */ (0, C.jsx)(sh, { label: "正在导入历史文件" }) : null,
- ee ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, C.jsx)(ch, { label: _.data?.message || "正在读取浏览记录并更新口味分析" }) : null,
+ y.isPending ? /* @__PURE__ */ (0, C.jsx)(ch, { label: "正在导入历史文件" }) : null,
+ ee ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: ee
}) : null
@@ -34497,29 +34550,29 @@ function eA(e) {
/* @__PURE__ */ (0, C.jsxs)("div", {
className: zx,
children: [
- /* @__PURE__ */ (0, C.jsx)(Gk, {
+ /* @__PURE__ */ (0, C.jsx)(Kk, {
accent: 0,
- icon: Kf,
+ icon: qf,
term: "浏览记录",
figure: Number(E.history_visits || 0).toLocaleString(),
- detail: `${E.history_sources || 0} 个数据源 · ${nk(E.range_start)}—${nk(E.range_end)}`
+ detail: `${E.history_sources || 0} 个数据源 · ${rk(E.range_start)}—${rk(E.range_end)}`
}),
- /* @__PURE__ */ (0, C.jsx)(Gk, {
+ /* @__PURE__ */ (0, C.jsx)(Kk, {
accent: 1,
- icon: $f,
+ icon: ep,
term: "口味维度",
figure: A.length.toLocaleString(),
detail: A[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, C.jsx)(Gk, {
+ /* @__PURE__ */ (0, C.jsx)(Kk, {
accent: 2,
- icon: np,
+ icon: rp,
term: "浏览候选",
figure: j.length.toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(Gk, {
+ /* @__PURE__ */ (0, C.jsx)(Kk, {
accent: 3,
- icon: Rf,
+ icon: zf,
term: "私有导出",
figure: Number(k.exports || 0).toLocaleString(),
detail: n(k.bytes || 0)
@@ -34527,7 +34580,7 @@ function eA(e) {
]
}),
/* @__PURE__ */ (0, C.jsxs)("section", {
- className: `${Nk} md:flex-row md:gap-6`,
+ className: `${Pk} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -34536,31 +34589,31 @@ function eA(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, C.jsx)(Tk, {
+ /* @__PURE__ */ (0, C.jsx)(Ek, {
rows: A,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, C.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: T.updated_at ? `更新于 ${nk(T.updated_at)}` : "尚未采集浏览记录"
+ children: T.updated_at ? `更新于 ${rk(T.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-0 grow",
- children: A.length ? /* @__PURE__ */ (0, C.jsx)(Ek, {
+ children: A.length ? /* @__PURE__ */ (0, C.jsx)(Dk, {
rows: A,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, C.jsx)(sh, {
shell: "plain",
- icon: np,
+ icon: rp,
title: "暂无口味维度",
- children: Rk
+ children: zk
})
})]
}),
- /* @__PURE__ */ (0, C.jsx)(kk, { activity: T.activity }),
- /* @__PURE__ */ (0, C.jsx)(Ak, { flows: T.creator_flows }),
- /* @__PURE__ */ (0, C.jsx)(Yk, {
+ /* @__PURE__ */ (0, C.jsx)(Ak, { activity: T.activity }),
+ /* @__PURE__ */ (0, C.jsx)(jk, { flows: T.creator_flows }),
+ /* @__PURE__ */ (0, C.jsx)(Xk, {
label: "浏览器口味维度",
onSignal: t,
avatarInner: a,
@@ -34602,7 +34655,7 @@ function eA(e) {
rows: j,
kind: "",
visual: "none",
- empty: zk
+ empty: Bk
}
}
]
@@ -34616,35 +34669,35 @@ function eA(e) {
/* @__PURE__ */ (0, C.jsxs)("div", {
className: zx,
children: [
- /* @__PURE__ */ (0, C.jsx)(Gk, {
+ /* @__PURE__ */ (0, C.jsx)(Kk, {
accent: 0,
- icon: Hf,
+ icon: Uf,
term: "Peach 看过",
figure: Number(E.peach_items || 0).toLocaleString(),
- detail: rk(E.peach_seconds || 0)
+ detail: ik(E.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, C.jsx)(Gk, {
+ /* @__PURE__ */ (0, C.jsx)(Kk, {
accent: 1,
- icon: ap,
+ icon: op,
term: "喜欢",
figure: Number(E.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(Gk, {
+ /* @__PURE__ */ (0, C.jsx)(Kk, {
accent: 2,
- icon: ip,
+ icon: ap,
term: "不合口味",
figure: Number(E.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(Gk, {
+ /* @__PURE__ */ (0, C.jsx)(Kk, {
accent: 3,
- icon: $f,
+ icon: ep,
term: "有标签",
figure: M.toLocaleString()
})
]
}),
/* @__PURE__ */ (0, C.jsxs)("section", {
- className: `${Nk} md:flex-row md:gap-6`,
+ className: `${Pk} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -34664,18 +34717,18 @@ function eA(e) {
]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, C.jsx)(tA, {
+ children: [/* @__PURE__ */ (0, C.jsx)(nA, {
term: "有标签",
value: M,
rest: D.untagged || 0
- }), /* @__PURE__ */ (0, C.jsx)(tA, {
+ }), /* @__PURE__ */ (0, C.jsx)(nA, {
term: "有身份",
value: N,
rest: D.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, C.jsx)(Yk, {
+ /* @__PURE__ */ (0, C.jsx)(Xk, {
label: "Peach 口味维度",
onSignal: t,
avatarInner: a,
@@ -34716,19 +34769,19 @@ function eA(e) {
})
]
}),
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, C.jsx)(Zk, {
data: T,
onSignal: t,
navigate: r
}),
- /* @__PURE__ */ (0, C.jsx)($k, {
+ /* @__PURE__ */ (0, C.jsx)(eA, {
sources: T.sources || [],
window: s,
toast: i
})
] });
}
-function tA({ term: e, value: t, rest: n }) {
+function nA({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -34750,16 +34803,16 @@ function tA({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/react/entry.tsx
-var nA = null;
-function rA() {
- return nA?.isConnected || (nA = document.createElement("div"), nA.className = "peach-react", nA.dataset.reactOverlays = "", document.body.append(nA)), nA;
+var rA = null;
+function iA() {
+ return rA?.isConnected || (rA = document.createElement("div"), rA.className = "peach-react", rA.dataset.reactOverlays = "", document.body.append(rA)), rA;
}
-function iA(e) {
+function aA(e) {
return (t, n) => {
- let r = (0, Ef.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, C.jsx)(E, {
+ let r = (0, Df.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, C.jsx)(E, {
client: dh,
children: /* @__PURE__ */ (0, C.jsx)(yc, {
- getContainer: rA,
+ getContainer: iA,
children: /* @__PURE__ */ (0, C.jsx)(e, { ...t })
})
}));
@@ -34769,47 +34822,47 @@ function iA(e) {
};
};
}
-var aA = {
+var oA = {
activity: {
prefetch: (e, t) => vh(t),
- mount: iA(Nh)
+ mount: aA(Nh)
},
"avatar-picker": {
prefetch: async () => {},
- mount: iA(ub)
+ mount: aA(ub)
},
configuration: {
prefetch: (e, t) => FE(t),
- mount: iA(wD)
+ mount: aA(TD)
},
"follow-manage": {
prefetch: (e, t) => bx(t),
- mount: iA(jw)
+ mount: aA(jw)
},
"library-processing": {
prefetch: (e, t) => Fw(t),
- mount: iA((e) => e.mode === "notice" ? /* @__PURE__ */ (0, C.jsx)(oT, { ...e }) : /* @__PURE__ */ (0, C.jsx)(nT, { ...e }))
+ mount: aA((e) => e.mode === "notice" ? /* @__PURE__ */ (0, C.jsx)(oT, { ...e }) : /* @__PURE__ */ (0, C.jsx)(nT, { ...e }))
},
"quality-goals": {
prefetch: (e, t) => uT(t),
- mount: iA(pT)
+ mount: aA(pT)
},
review: {
prefetch: (e, t) => UT(t),
- mount: iA(pE)
+ mount: aA(pE)
},
scraping: {
prefetch: (e, t) => CE(t),
- mount: iA(AE)
+ mount: aA(AE)
},
stats: {
- prefetch: (e, t) => OD(t),
- mount: iA(oO)
+ prefetch: (e, t) => kD(t),
+ mount: aA(sO)
},
taste: {
- prefetch: (e, t) => YO("all", t),
- mount: iA(eA)
+ prefetch: (e, t) => XO("all", t),
+ mount: aA(tA)
}
};
//#endregion
-export { aA as pages };
+export { oA as pages };