Peach: Local-first video metadata scraper and media manager.
feat(auth): 已登录的设备在浏览器名前加浏览器标志
longmeidao5d47324d2038
diff --git a/frontend/src/react/components/browser-icon.tsx b/frontend/src/react/components/browser-icon.tsxindex 1b2f9016d..6259154a9 100644--- a/frontend/src/react/components/browser-icon.tsx+++ b/frontend/src/react/components/browser-icon.tsx@@ -9,11 +9,12 @@ export function browserIconId(name: string): string | undefined {return icons.get(normalize(name));}-export function BrowserIcon({ name }: {name:string}) {+/** `className` 换掉默认尺寸(独立图块 24px);行内跟文字时传更小的尺寸。 */+export function BrowserIcon({ name, className }: {name:string; className?:string}) {const [failed,setFailed] = useState('');const id = browserIconId(name);return id && failed !== id? <img src={`/browser-icon/${id}`} width={24} height={24} alt="" aria-hidden loading="lazy"- className="size-6 shrink-0 object-contain" onError={() => setFailed(id)} />- : <RiCompassLine aria-hidden className="size-5 shrink-0 text-foreground-icon-secondary" />;+ className={`${className ?? 'size-6 shrink-0'} object-contain`} onError={() => setFailed(id)} />+ : <RiCompassLine aria-hidden className={`${className ?? 'size-5 shrink-0'} text-foreground-icon-secondary`} />;}diff --git a/frontend/src/react/settings/device-sessions.tsx b/frontend/src/react/settings/device-sessions.tsxindex fcf768f09..03dacbfdc 100644--- a/frontend/src/react/settings/device-sessions.tsx+++ b/frontend/src/react/settings/device-sessions.tsx@@ -2,7 +2,7 @@** 列表单独取:服务端要拿这次请求的 cookie 认出哪一行是本机。撤销与改密码同一条边界,* 只在运行 Peach 的电脑上做,别处打开只能看。行是 BoardUI `SettingsRow`,行首是终端形态图标,- * 系统词前是平台标志(Remix Icon),本机标记是 `Chip`,+ * 浏览器名前是浏览器标志(`BrowserIcon`),系统词前是平台标志(Remix Icon),本机标记是 `Chip`,* 撤销键是 BoardUI `Button`,确认走 `confirmModal()`。 */import { useEffect, useState } from 'react';import { useQuery } from '@tanstack/react-query';@@ -16,6 +16,7 @@ import { Button } from '@/components/base/buttons/button';import { SettingsRow } from '@/components/application/settings/settings-rows';import { apiGet, apiSend, errorMessage } from '../../api';+import { BrowserIcon, browserIconId } from '../components/browser-icon';import { devicesSkeleton, rememberShape } from '../../configuration-skeleton';import { ErrorText, Footer, Help, Rows, Section, SectionSkeleton, Stack } from './section';@@ -42,13 +43,21 @@ const SYSTEMS: Record<string, { platform?: Glyph; terminal: Glyph }> = {Linux: { terminal: RiComputerLine },};-/** 设备名是「浏览器 · 系统」,系统词前放平台标志;认不出系统时照原文。 */+/** 设备名是「浏览器 · 系统」:浏览器名前放浏览器标志,系统词前放平台标志;认不出的词照原文、不配图。 */function DeviceLabel({ row }: { row: DeviceSession }) {+ if (!row.device) return deviceName(row);const parts = row.device.split(' · ');- const system = parts.at(-1) ?? '';- const Platform = SYSTEMS[system]?.platform;- if (!Platform) return deviceName(row);- return <>{parts.length > 1 ? `${parts[0]} · ` : ''}<Platform aria-hidden className="inline size-4 -mt-0.5 mr-1 align-middle text-foreground-icon-secondary" />{system}</>;+ const system = SYSTEMS[parts.at(-1) ?? ''] ? parts.pop()! : '';+ const browser = parts.join(' · ');+ const Platform = system ? SYSTEMS[system]!.platform : undefined;+ const mark = 'inline size-4 -mt-0.5 mr-1 align-middle';+ return (+ <>+ {browser ? <>{browserIconId(browser) ? <BrowserIcon name={browser} className={mark} /> : null}{browser}</> : null}+ {browser && system ? ' · ' : null}+ {system ? <>{Platform ? <Platform aria-hidden className={`${mark} text-foreground-icon-secondary`} /> : null}{system}</> : null}+ </>+ );}function TerminalIcon({ row }: { row: DeviceSession }) {diff --git a/frontend/test/react/device-sessions.test.tsx b/frontend/test/react/device-sessions.test.tsxindex a30ed52f7..2618db17d 100644--- a/frontend/test/react/device-sessions.test.tsx+++ b/frontend/test/react/device-sessions.test.tsx@@ -63,16 +63,20 @@ it('列出设备:本机排第一并标「本机」,其余写最近活动与expect(buttonNamed('撤销其他设备', card)).not.toBeNull();});-it('每行有终端图标,认得出系统时系统词前有平台标志', async () => {+it('每行有终端图标,认得出的浏览器与系统各在名字前配标志', async () => {const tablet = row({ id: 'eeeeeeeeeeeeeeee', device: 'Chrome · Android 平板' });- serve(listing([desk, phone, tablet, laptop]));+ const linux = row({ id: 'ffffffffffffffff', device: 'Firefox · Linux' });+ serve(listing([desk, phone, tablet, laptop, linux]));const host = await render();const lines = [...section(host, '已登录的设备')!.querySelectorAll('p.text-body-regular')];- /* 行首图标和标签同在一个 flex 容器里;平台标志在标签 <p> 内。 */+ expect(lines.map(line => line.textContent)).toEqual(['Chrome · Windows', 'Safari · iPhone', 'Chrome · Android 平板', '未识别的浏览器', 'Firefox · Linux']);+ /* 行首图标和标签同在一个 flex 容器里;浏览器标志是素材图,平台标志是字形,都在标签 <p> 内。 */const terminals = lines.map(line => line.parentElement!.previousElementSibling?.tagName.toLowerCase());- expect(terminals).toEqual(['svg', 'svg', 'svg', 'svg']);- expect(lines.map(line => line.querySelectorAll('svg').length)).toEqual([1, 1, 1, 0]);- const shapes = lines.map(line => line.parentElement!.previousElementSibling!.innerHTML);+ expect(terminals).toEqual(['svg', 'svg', 'svg', 'svg', 'svg']);+ expect(lines.map(line => line.querySelector('img')?.getAttribute('src'))).toEqual(+ ['/browser-icon/chrome', '/browser-icon/safari', '/browser-icon/chrome', undefined, '/browser-icon/firefox']);+ expect(lines.map(line => line.querySelectorAll('svg').length)).toEqual([1, 1, 1, 0, 0]);+ const shapes = lines.slice(0, 4).map(line => line.parentElement!.previousElementSibling!.innerHTML);/* 电脑、手机、平板、认不出的设备各是一种图形。 */expect(new Set(shapes).size).toBe(4);});diff --git a/web/dist/peach-app.browser-icon-N9Od-bAf.js b/web/dist/peach-app.browser-icon-N9Od-bAf.jsnew file mode 100644index 000000000..cb4977149--- /dev/null+++ b/web/dist/peach-app.browser-icon-N9Od-bAf.js@@ -0,0 +1,840 @@+(function() {+ try {+ var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1449fb87-d639-423e-8fca-84f00717c20b", e._sentryDebugIdIdentifier = "sentry-dbid-1449fb87-d639-423e-8fca-84f00717c20b");+ } catch {}+})();+import { E3 as e, __toESM as t, require_jsx_runtime as n, require_react as r } from "./peach-app.js";+// ../resources/browser-icons/manifest.json+var i = /* @__PURE__ */ t(r(), 1), a = {+ version: 1,+ note: "浏览器品牌标识仅用于识别相应数据源;商标归各自所有者。",+ icons: [+ {+ id: "chrome",+ aliases: [+ "chrome",+ "Google Chrome",+ "谷歌浏览器"+ ],+ file: "chrome.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chrome/chrome_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "eccdfe9d867373e2da66eedfcaaab40cbcdf6a221b83d6ee1400895a3e4c8046",+ bytes: 3166+ },+ {+ id: "chrome-beta",+ aliases: ["chrome-beta", "chrome beta"],+ file: "chrome-beta.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chrome-beta/chrome-beta_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "34d7c73511f666e282e6ffca64315b53c287402de0e594976574a20e9031434f",+ bytes: 3731+ },+ {+ id: "chrome-dev",+ aliases: ["chrome-dev", "chrome dev"],+ file: "chrome-dev.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chrome-dev/chrome-dev_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "3cc498eae83afeefb6f3ab5d24f4edead0ce6597e3afb91e4dcdaff923bb5a0a",+ bytes: 3706+ },+ {+ id: "chrome-canary",+ aliases: ["chrome-canary", "chrome canary"],+ file: "chrome-canary.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chrome-canary/chrome-canary_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "590d38919b0c3df5dffeb1d4cbe9a24b211920932bcc367778f4962270e0997c",+ bytes: 1858+ },+ {+ id: "chromium",+ aliases: ["chromium", "Chromium浏览器"],+ file: "chromium.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chromium/chromium_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "9fc23dba1ec6765aee3e6c200ee1b77a7e4ac56a25dd5a89027d3b01f3389d21",+ bytes: 2035+ },+ {+ id: "edge",+ aliases: [+ "edge",+ "Microsoft Edge",+ "微软Edge"+ ],+ file: "edge.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/edge/edge_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "a189a6054451f74073ba27c9e0ff35f46402263a2f883a74b9f6a89bb42b7975",+ bytes: 3574+ },+ {+ id: "edge-beta",+ aliases: ["edge-beta", "edge beta"],+ file: "edge-beta.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/edge-beta/edge-beta_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "074d4b135e89f1621d55a48831196b5c95b27084e15ffeee7bd3ef869a06e394",+ bytes: 3820+ },+ {+ id: "edge-dev",+ aliases: ["edge-dev", "edge dev"],+ file: "edge-dev.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/edge-dev/edge-dev_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "70df54bb62d68ae61f042b54bced912ba87f334675b625963fa82bba172e2501",+ bytes: 3671+ },+ {+ id: "edge-canary",+ aliases: ["edge-canary", "edge canary"],+ file: "edge-canary.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/edge-canary/edge-canary_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "b0ec80dc2b855f7dc6b4ecee8735c3a397d5803a7a4801011c545d765e5ac705",+ bytes: 3728+ },+ {+ id: "firefox",+ aliases: [+ "firefox",+ "Mozilla Firefox",+ "火狐浏览器"+ ],+ file: "firefox.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/firefox/firefox_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "98c4837a6cdce28d66cd51ea1e13cf130a5ac7bd097579a6714ad8345c16d3c9",+ bytes: 3943+ },+ {+ id: "firefox-beta",+ aliases: ["firefox-beta", "firefox beta"],+ file: "firefox-beta.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/firefox-beta/firefox-beta_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "2f25600de1c538cdf5965541c1f4960ef0a0da76fc0030b5a36af8288b9dac94",+ bytes: 4365+ },+ {+ id: "firefox-developer-edition",+ aliases: [+ "firefox-developer-edition",+ "firefox developer edition",+ "Firefox Developer Edition",+ "Firefox Dev"+ ],+ file: "firefox-developer-edition.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/firefox-developer-edition/firefox-developer-edition_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "482ee0acf9deccbaf0253801f0a2ded2798b33166e3696fc1ae97f15788a335c",+ bytes: 4463+ },+ {+ id: "firefox-nightly",+ aliases: ["firefox-nightly", "firefox nightly"],+ file: "firefox-nightly.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/firefox-nightly/firefox-nightly_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "4082cba90a03962cd7be1ef6a8e7b3915d8b8e5411f919fbeb4d4f62684aa4cb",+ bytes: 4124+ },+ {+ id: "brave",+ aliases: ["brave"],+ file: "brave.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/brave/brave_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "fc67ee59d32612dc08eac9461fae8840441e888cceae7c07465ebdbfa58c5d63",+ bytes: 2416+ },+ {+ id: "brave-beta",+ aliases: ["brave-beta", "brave beta"],+ file: "brave-beta.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/brave-beta/brave-beta_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "fb029b4501f68c803429385b496bee9c3ce16710f8f12f9bae9f7db74bce2e1a",+ bytes: 3085+ },+ {+ id: "brave-dev",+ aliases: ["brave-dev", "brave dev"],+ file: "brave-dev.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/brave-dev/brave-dev_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "1797ab7fc86b1952851082f1dbeb7ff6816525d2654cdc0e455f7dd6d109a0da",+ bytes: 3837+ },+ {+ id: "brave-nightly",+ aliases: ["brave-nightly", "brave nightly"],+ file: "brave-nightly.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/brave-nightly/brave-nightly_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "e2f0e7506642d7491521f10250d0ede60c2a1e89ea7fdb6f8a2a366189643de4",+ bytes: 3929+ },+ {+ id: "vivaldi",+ aliases: ["vivaldi"],+ file: "vivaldi.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/vivaldi/vivaldi_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "2cef8b72a605bfd4b3a665e88773ff6e915972db1e874fd3373f34d8e43c03d1",+ bytes: 2657+ },+ {+ id: "vivaldi-snapshot",+ aliases: ["vivaldi-snapshot", "vivaldi snapshot"],+ file: "vivaldi-snapshot.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/vivaldi-snapshot/vivaldi-snapshot_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "d7adcb47765e5982d50565a4db328c6656d19503252f49855ae891dc655df22e",+ bytes: 2286+ },+ {+ id: "opera",+ aliases: ["opera"],+ file: "opera.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera/opera_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "907f47f584ca0f83446680a2ce1b4dc4dc81ac2e2bec0090e5b4ac98ccade4d4",+ bytes: 2152+ },+ {+ id: "opera-beta",+ aliases: ["opera-beta", "opera beta"],+ file: "opera-beta.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-beta/opera-beta_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "1a5164ba569241ac87ceb2878190a261d52a63e4218ee16290f6adde7fe1380e",+ bytes: 4225+ },+ {+ id: "opera-developer",+ aliases: ["opera-developer", "opera developer"],+ file: "opera-developer.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-developer/opera-developer_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "b5f0fbb90b11daa64b1642beddb00ae73120f46184f6a31e83584a6d2c91efc2",+ bytes: 3854+ },+ {+ id: "opera-gx",+ aliases: ["opera-gx", "opera gx"],+ file: "opera-gx.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-gx/opera-gx_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "d92a6e2dbecfdbc0e4986d6eabce5f7c75804699fe8a7b64fe0c0167617a7d0e",+ bytes: 1504+ },+ {+ id: "opera-neon",+ aliases: ["opera-neon", "opera neon"],+ file: "opera-neon.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-neon/opera-neon_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "12d0a029aa3f3b5e70805bb2c39304efdb1db75e59e9ba89f05f880dc0b6aa1a",+ bytes: 3385+ },+ {+ id: "opera-mini",+ aliases: ["opera-mini", "opera mini"],+ file: "opera-mini.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-mini/opera-mini_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "2509f1615ead4c8ddb25dfcc6024ba2e2b98f4da2a012a4039882597903646f9",+ bytes: 3009+ },+ {+ id: "safari",+ aliases: ["safari", "Apple Safari"],+ file: "safari.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/safari/safari_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "5a4608283c36615ebcfb0762f64cfe5706b03bfdcedc5810fe10ee883ca4fff0",+ bytes: 4497+ },+ {+ id: "safari-technology-preview",+ aliases: ["safari-technology-preview", "safari technology preview"],+ file: "safari-technology-preview.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/safari-technology-preview/safari-technology-preview_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "29a6403e566b4b53f125bcdb7381d86eb14558e84d7ff4eb9f74e559fd4d8c72",+ bytes: 4404+ },+ {+ id: "samsung-internet",+ aliases: [+ "samsung-internet",+ "samsung internet",+ "Samsung Internet Browser"+ ],+ file: "samsung-internet.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/samsung-internet/samsung-internet_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "239c8d26b38cba9fa9468555a93637b29de64d2f0f2769ddd007d78c564288b0",+ bytes: 1814+ },+ {+ id: "tor",+ aliases: ["tor"],+ file: "tor.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/tor/tor_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "54bae0a77f813c2c9bf7594b52e98931630a450a5ea42dced26e0df3f432fe01",+ bytes: 3685+ },+ {+ id: "tor-alpha",+ aliases: ["tor-alpha", "tor alpha"],+ file: "tor-alpha.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/tor-alpha/tor-alpha_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "9b8b2dfae28ac7fcb452e25225ce337b954ab9c8dc7939364ed1219c9c42864a",+ bytes: 3643+ },+ {+ id: "yandex",+ aliases: ["yandex"],+ file: "yandex.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/yandex/yandex_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "803d73b46b135e783ef9984a35ffcb0b43f31cfe8d6be4a1371598ebdc549f89",+ bytes: 3139+ },+ {+ id: "uc",+ aliases: ["uc", "UC浏览器"],+ file: "uc.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/uc/uc_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "7bfd919258b12a5900a8d19eabe1a16a0f7f50eaebe872fb7f13f6929cdf4c1e",+ bytes: 2853+ },+ {+ id: "dolphin",+ aliases: ["dolphin"],+ file: "dolphin.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/dolphin/dolphin_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "2c796d4a3ac4303edc73e33c3a36d709fbaa644b701d98ca1460aa6679c19aa9",+ bytes: 2018+ },+ {+ id: "maxthon",+ aliases: [+ "maxthon",+ "傲游",+ "傲游浏览器"+ ],+ file: "maxthon.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/maxthon/maxthon_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "f807f58b4a0550a5470a713a4737054c5d5ecebe61687c77e77b2bfab1c544c5",+ bytes: 1375+ },+ {+ id: "midori",+ aliases: ["midori"],+ file: "midori.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/midori/midori_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "b3149a3d9dcbe8158078f8c47a39e839c2609f2dbce574e6175d4ef7f381f0d4",+ bytes: 4288+ },+ {+ id: "falkon",+ aliases: ["falkon"],+ file: "falkon.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/falkon/falkon_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "93992beb736d43622ddc085b41955aea13a735c011928c56076b5ed5c74d694c",+ bytes: 4285+ },+ {+ id: "pale-moon",+ aliases: ["pale-moon", "pale moon"],+ file: "pale-moon.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/pale-moon/pale-moon_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "6ffacc33960787e0411897a33524bb03c78df9204cf7dbfc5f063f4b5e73d5e1",+ bytes: 4771+ },+ {+ id: "seamonkey",+ aliases: ["seamonkey"],+ file: "seamonkey.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/seamonkey/seamonkey_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "37dd8ccb6700d83b030614329253af2ac68c44084c887a2d5ca10ea91aa066a5",+ bytes: 4525+ },+ {+ id: "web",+ aliases: [+ "web",+ "Epiphany",+ "GNOME Web"+ ],+ file: "web.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/web/web_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "3f149719ecd35cefa8dae87a699550fbfa44b4d2d3b4b4c90ade545c3b9754a8",+ bytes: 2678+ },+ {+ id: "qutebrowser",+ aliases: ["qutebrowser"],+ file: "qutebrowser.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/qutebrowser/qutebrowser_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "8134a7f55a2ca191361ba3ecc5219e3d707a945c7e91e38da310ee12ffeee3eb",+ bytes: 3818+ },+ {+ id: "epic",+ aliases: ["epic"],+ file: "epic.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/epic/epic_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "53dfd851e21ab4f0727891cb2e330503cc250c05216d825be016e84e98ea4dd4",+ bytes: 5534+ },+ {+ id: "icecat",+ aliases: ["icecat"],+ file: "icecat.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/icecat/icecat_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "828718a56d67123abe3526fd42835ffbbb05769791922c2a0564dae92762ecc9",+ bytes: 5700+ },+ {+ id: "basilisk",+ aliases: ["basilisk"],+ file: "basilisk.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/basilisk/basilisk_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "9a0b3f467fe972e7a3e805fcc4b719eccfb1bb1d29d9a9f3afec7cc9dc2349f3",+ bytes: 2331+ },+ {+ id: "avant",+ aliases: ["avant"],+ file: "avant.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/avant/avant_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "a4c66ad8bc25ce59f71713f7c93629cd17b989d886cb8beacf178730631b01a5",+ bytes: 4586+ },+ {+ id: "otter",+ aliases: ["otter"],+ file: "otter.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/otter/otter_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "8fea2736a78b36e8c9eabfd5c47e7b46f28209aa9f1e2a199a54cfeeac290812",+ bytes: 5220+ },+ {+ id: "netsurf",+ aliases: ["netsurf"],+ file: "netsurf.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/netsurf/netsurf_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "d57d4ff6fb7052d5228932da17955232ecc5051908cf6580d73c6db3d2b248bd",+ bytes: 4003+ },+ {+ id: "puffin",+ aliases: ["puffin"],+ file: "puffin.png",+ content_type: "image/png",+ source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/puffin/puffin_48x48.png",+ source_page: "https://github.com/alrra/browser-logos",+ revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",+ license: "Logo and trademark belong to the browser owner",+ sha256: "e182c2f54a37e0e1ff6a9469f1cb65bb8299f9b5eaca162c29b7cb9f6cc79768",+ bytes: 3697+ },+ {+ id: "aside",+ aliases: ["aside", "Aside Browser"],+ file: "aside.png",+ content_type: "image/png",+ source_url: "https://aside.com/icon.png?icon.0lfc1q-r_ms2e.png",+ source_page: "https://aside.com/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "949971a69f8643358bd52875a02a53e60136a88790487c83e42a24cb39f0adea",+ bytes: 27423+ },+ {+ id: "zen",+ aliases: ["zen", "Zen Browser"],+ file: "zen.svg",+ content_type: "image/svg+xml",+ source_url: "https://zen-browser.app/favicon.svg",+ source_page: "https://zen-browser.app/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "090a9ce0283dc66359be584bd1db9227faf4f15fc666f261759852e2519c7c68",+ bytes: 531+ },+ {+ id: "qq",+ aliases: [+ "qq",+ "QQBrowser",+ "QQ浏览器"+ ],+ file: "qq.ico",+ content_type: "image/x-icon",+ source_url: "https://browser.qq.com/favicon.ico",+ source_page: "https://browser.qq.com/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "0c4cfdc5683b15f0b3b1019db71edfa975cadccbd61ce2f340acbdc4b114dbed",+ bytes: 2047+ },+ {+ id: "360se",+ aliases: ["360se", "360安全浏览器"],+ file: "360se.png",+ content_type: "image/png",+ source_url: "https://p4.ssl.qhimg.com/t110b9a93016f838be146a5b14d.png",+ source_page: "https://browser.360.cn/se/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "3363c9c2dd239ab6ac3a59501bf609cc2a94664ab5a1b8f0f0a2bec21aaab34a",+ bytes: 2219+ },+ {+ id: "360chrome",+ aliases: ["360chrome", "360极速浏览器"],+ file: "360chrome.ico",+ content_type: "image/x-icon",+ source_url: "https://browser.360.cn/ee/favicon.ico",+ source_page: "https://browser.360.cn/ee/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "eb11e02318a389cf4b9e06a8ca66694d2d544fbe8bfd28555e2189727675bd8e",+ bytes: 5430+ },+ {+ id: "sogou",+ aliases: [+ "sogou",+ "搜狗",+ "搜狗浏览器",+ "Sogou Explorer"+ ],+ file: "sogou.ico",+ content_type: "image/x-icon",+ source_url: "https://sogou.browser.qq.com/favicon.ico",+ source_page: "https://ie.sogou.com/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "d9b78205c61561e23594886cc7bd24a5842a36602384f059efe670455c40c74f",+ bytes: 5430+ },+ {+ id: "arc",+ aliases: ["arc"],+ file: "arc.png",+ content_type: "image/png",+ source_url: "https://arc.net/favicon.png",+ source_page: "https://arc.net/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "2e6881ee4ea7b22e3bdd97f2432b7ce5bb3e3d5bbbdb5457a4a4f8b69a43e7bd",+ bytes: 1586+ },+ {+ id: "librewolf",+ aliases: ["librewolf"],+ file: "librewolf.svg",+ content_type: "image/svg+xml",+ source_url: "https://librewolf.net/icon.svg",+ source_page: "https://librewolf.net/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "b85d68f1b5b47b9b2c3a3e6b5f5a0f887577e0eb6ee8387fb7b81f5f8e4017c4",+ bytes: 5916+ },+ {+ id: "floorp",+ aliases: ["floorp"],+ file: "floorp.svg",+ content_type: "image/svg+xml",+ source_url: "https://floorp.app/icon.svg?51b46abeef3fc9d9",+ source_page: "https://floorp.app/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "15cf85f15cd722524008cb621763eb8560561048df210cf3a6180732c254f49b",+ bytes: 2199+ },+ {+ id: "waterfox",+ aliases: ["waterfox"],+ file: "waterfox.svg",+ content_type: "image/svg+xml",+ source_url: "https://www.waterfox.com/favicons/favicon.svg",+ source_page: "https://www.waterfox.net/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "05294e9a22b85b32fa632657ac3c2258f56d37f30931ababc494fe8a4b86ea7a",+ bytes: 9266+ },+ {+ id: "duckduckgo",+ aliases: ["duckduckgo"],+ file: "duckduckgo.png",+ content_type: "image/png",+ source_url: "https://duckduckgo.com/static-assets/favicons/DDG-iOS-icon_152x152.png",+ source_page: "https://duckduckgo.com/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "f6e52a35e8854ebf14c9b8442302f6f7d5d0063f0215b7210edf4676d7fd7369",+ bytes: 3576+ },+ {+ id: "115",+ aliases: [+ "115",+ "115浏览器",+ "115 Browser"+ ],+ file: "115.ico",+ content_type: "image/x-icon",+ source_url: "https://115.com/",+ source_page: "https://115.com/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "fba0c364bb745bef18683be03f08b086cb5e46498b8c1dbd32ecdee6624303fe",+ bytes: 63051,+ extraction: {+ method: "PE resource extraction",+ executable: "115chrome.exe",+ executable_sha256: "31d3c29ffade6eb30504173b299d396a42758b2093c442b2adebe83f03750ae9",+ resource_group: "IDR_MAINFRAME"+ }+ },+ {+ id: "360chromex",+ aliases: [+ "360chromex",+ "360极速X",+ "360极速浏览器X"+ ],+ file: "360chrome.ico",+ content_type: "image/x-icon",+ source_url: "https://browser.360.cn/ee/favicon.ico",+ source_page: "https://browser.360.cn/ee/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "eb11e02318a389cf4b9e06a8ca66694d2d544fbe8bfd28555e2189727675bd8e",+ bytes: 5430+ },+ {+ id: "quark",+ aliases: [+ "quark",+ "夸克",+ "夸克浏览器"+ ],+ file: "quark.png",+ content_type: "image/png",+ source_url: "https://gw.alicdn.com/imgextra/i3/O1CN018r2tKf28YP7ev0fPF_!!6000000007944-2-tps-48-48.png",+ source_page: "https://www.quark.cn/",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "824e079d7d987305f2a0d15de5b1dfe0dc8cb7131afe1dbdaf1ea3ae3dd2d740",+ bytes: 1210+ },+ {+ id: "2345",+ aliases: [+ "2345",+ "2345浏览器",+ "2345加速浏览器"+ ],+ file: "2345.png",+ content_type: "image/png",+ source_url: "https://img.onlinedown.net/download/202306/190435-649ac2436780c.png",+ source_page: "https://www.onlinedown.net/soft/111609.htm",+ revision: "",+ license: "Logo and trademark belong to the browser owner",+ sha256: "4c7a1b786d1208c89e00027c46544debe27a6f684b859cfd116b4e796703d38e",+ bytes: 29648+ }+ ]+}, o = n(), s = (e) => e.normalize("NFKC").toLowerCase().replace(/[\s_-]/g, ""), c = new Map(a.icons.flatMap((e) => e.aliases.map((t) => [s(t), e.id])));+function l(e) {+ return c.get(s(e));+}+function u({ name: t, className: n }) {+ let [r, a] = (0, i.useState)(""), s = l(t);+ return s && r !== s ? /* @__PURE__ */ (0, o.jsx)("img", {+ src: `/browser-icon/${s}`,+ width: 24,+ height: 24,+ alt: "",+ "aria-hidden": !0,+ loading: "lazy",+ className: `${n ?? "size-6 shrink-0"} object-contain`,+ onError: () => a(s)+ }) : /* @__PURE__ */ (0, o.jsx)(e, {+ "aria-hidden": !0,+ className: `${n ?? "size-5 shrink-0"} text-foreground-icon-secondary`+ });+}+export { u as BrowserIcon, l as browserIconId };++//# debugId=1449fb87-d639-423e-8fca-84f00717c20b\ No newline at end of filediff --git a/web/dist/peach-app.configuration-page-TW25Ckir.js b/web/dist/peach-app.configuration-page-OLdLz6eb.jssimilarity index 89%rename from web/dist/peach-app.configuration-page-TW25Ckir.jsrename to web/dist/peach-app.configuration-page-OLdLz6eb.jsindex 573ad8ecb..a7d63d0aa 100644--- a/web/dist/peach-app.configuration-page-TW25Ckir.js+++ b/web/dist/peach-app.configuration-page-OLdLz6eb.js@@ -1,7 +1,7 @@(function() {try {var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e94f4b51-17e0-4c78-bb81-65399db4a550", e._sentryDebugIdIdentifier = "sentry-dbid-e94f4b51-17e0-4c78-bb81-65399db4a550");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "55b00cec-0fd4-4080-bc81-bbd453712b2f", e._sentryDebugIdIdentifier = "sentry-dbid-55b00cec-0fd4-4080-bc81-bbd453712b2f");} catch {}})();import { AnimatedItems as e, Cell as t, ChartBackground as n, ChartContainer as r, ChartLegend as i, ChartLegendContent as a, ChartTip as o, ChartTooltip as s, ChartTooltipContent as c, Curve as l, DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME as u, DATA_ITEM_INDEX_ATTRIBUTE_NAME as d, DefaultZIndexes as f, EvilBarChart as p, LabelList as m, LabelListFromLabelProp as h, Layer as g, LoadingIndicator as _, PolarChart as v, PolarLabelContextProvider as y, PolarLabelListContextProvider as b, RegisterGraphicalItemId as x, Sector as S, SetPolarGraphicalItem as C, SetPolarLegendPayload as w, SetTooltipEntrySettings as T, Shape as ee, TIP_SWATCH as te, Text as ne, ZIndexLayer as re, adaptEventsOfChild as ie, arrayTooltipSearcher as ae, createSelector as oe, defaultPolarChartProps as se, findAllByType as ce, get as le, getClassNameFromUnknown as ue, getColorsCount as de, getMaxRadius as fe, getPercentValue as pe, getTooltipNameProp as me, getValueByDataKey as he, interpolate as ge, isNumber as _e, matchAppend as ve, mathSign as ye, polarToCartesian as be, resolveDefaultProps as xe, selectActiveTooltipDataKey as Se, selectActiveTooltipGraphicalItemId as Ce, selectActiveTooltipIndex as we, selectChartDataAndAlwaysIgnoreIndexes as Te, selectChartOffsetInternal as Ee, selectUnfilteredPolarItems as De, svgPropertiesNoEvents as Oe, svgPropertiesNoEventsFromUnknown as ke, tone as Ae, useAnimationCallbacks as je, useAppSelector as Me, useMouseClickItemDispatch as Ne, useMouseEnterItemDispatch as Pe, useMouseLeaveItemDispatch as Fe, usePolarChartLayout as Ie } from "./peach-app.chart-tip-CRxYp6KT.js";@@ -10,19 +10,20 @@ import { CodeBlock as Yn } from "./peach-app.code-block-CyDva4Ms.js";import { FolderField as Xn, FolderFieldLine as Zn, FolderRow as Qn, MEDIA_SOURCES as $n, MediaReadPolicy as er, MediaReadPolicyHelp as tr, SourceSelect as nr, isCloudSource as rr, sourceMark as ir, useFolderRows as ar } from "./peach-app.folder-rows-BWBfTyUD.js";import { ConnectionStatus as or } from "./peach-app.connection-status-DI6kgn3i.js";import { SourceIcon as sr } from "./peach-app.source-view-DalWfDkm.js";+import { BrowserIcon as cr, browserIconId as lr } from "./peach-app.browser-icon-N9Od-bAf.js";// src/react/settings/configuration-panel.ts-var Z = /* @__PURE__ */ qt(Mn(), 1), cr = "flex flex-col gap-6";-function lr(e) {+var Z = /* @__PURE__ */ qt(Mn(), 1), ur = "flex flex-col gap-6";+function dr(e) {return e ? {- className: e.active ? `${cr} ui-board-group-active` : cr,+ className: e.active ? `${ur} ui-board-group-active` : ur,"data-board-group": String(e.index),id: e.id,role: "tabpanel","aria-labelledby": e.labelledBy- } : { className: cr };+ } : { className: ur };}// src/react/settings/userscript-probe.ts-function ur() {+function fr() {let e = (0, Z.useRef)(null), [t, n] = (0, Z.useState)(0), [r, i] = (0, Z.useState)("checking");return (0, Z.useEffect)(() => {let t = kn(), n = !1, r = e.current, a, o = () => {@@ -54,13 +55,13 @@ function ur() {}// src/react/settings/userscript-status.tsxvar Q = jn();-function dr(e, t) {+function pr(e, t) {let n = e.split(".").map(Number), r = t.split(".").map(Number);for (let e = 0; e < 3; e++) if (n[e] !== r[e]) return n[e] > r[e];return !0;}-function fr({ enabled: e, release: t }) {- let { frame: n, attempt: r, status: i, retry: a } = ur(), o = typeof i == "object", s = o && !dr(i.version, t.minimum_version), c = o && !dr(i.version, t.version), l = i === "checking" ? "progress" : i === "missing" ? "neutral" : s || c || !i.paired ? "warning" : "success", u = i === "checking" ? "检测中" : i === "missing" ? "未检测到" : s ? "需更新" : c ? "可更新" : i.paired ? "已连接" : "待配对", d = i === "checking" ? "checking" : i === "missing" ? "missing" : s ? "required" : c ? "available" : i.paired ? e ? "enabled" : "disabled" : "unpaired";+function mr({ enabled: e, release: t }) {+ let { frame: n, attempt: r, status: i, retry: a } = fr(), o = typeof i == "object", s = o && !pr(i.version, t.minimum_version), c = o && !pr(i.version, t.version), l = i === "checking" ? "progress" : i === "missing" ? "neutral" : s || c || !i.paired ? "warning" : "success", u = i === "checking" ? "检测中" : i === "missing" ? "未检测到" : s ? "需更新" : c ? "可更新" : i.paired ? "已连接" : "待配对", d = i === "checking" ? "checking" : i === "missing" ? "missing" : s ? "required" : c ? "available" : i.paired ? e ? "enabled" : "disabled" : "unpaired";return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)("iframe", {ref: n,title: "Peach 用户脚本检测",@@ -138,23 +139,23 @@ function fr({ enabled: e, release: t }) {})] });}// src/react/settings/jav-browser-settings.tsx-var pr = "/api/configuration/jav-browser";-function mr({ receipt: e, refreshKey: t }) {+var hr = "/api/configuration/jav-browser";+function gr({ receipt: e, refreshKey: t }) {let n = X({queryKey: ["jav-browser-settings", t],- queryFn: ({ signal: e }) => W(pr, e),+ queryFn: ({ signal: e }) => W(hr, e),refetchOnMount: "always",refetchOnWindowFocus: "always"});return n.error && !n.data ? /* @__PURE__ */ (0, Q.jsx)(k, { children: q(n.error) }) : n.isFetching && !n.data ? /* @__PURE__ */ (0, Q.jsx)(Ft, {label: "正在读取浏览器添加设置",html: yn- }) : n.data ? /* @__PURE__ */ (0, Q.jsx)(hr, {+ }) : n.data ? /* @__PURE__ */ (0, Q.jsx)(_r, {initial: n.data,receipt: e}) : null;}-function hr({ initial: e, receipt: t }) {+function _r({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.provider), [o, s] = (0, Z.useState)(""), c = Y();(0, Z.useEffect)(() => {An("javBrowser", {@@ -163,7 +164,7 @@ function hr({ initial: e, receipt: t }) {}), r(e), a((t) => e.providers.some((e) => e.key === t) ? t : e.provider), e.enabled || s("");}, [e]);let l = (e) => {- c.run(e, (t) => G(pr, {+ c.run(e, (t) => G(hr, {action: e,provider: i}, "POST", t), (n) => {@@ -177,7 +178,7 @@ function hr({ initial: e, receipt: t }) {children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex min-w-0 flex-col gap-4",children: [- /* @__PURE__ */ (0, Q.jsx)(fr, {+ /* @__PURE__ */ (0, Q.jsx)(mr, {enabled: n.enabled,release: n.userscript}),@@ -250,17 +251,17 @@ function hr({ initial: e, receipt: t }) {});}// src/react/settings/download-settings.tsx-var gr = "/api/configuration/downloads", _r = "/api/configuration/downloads/check", vr = "/api/configuration/downloads/folder", yr = "/api/configuration/downloads/pikpak/login", br = "/api/configuration/downloads/pikpak/logout", xr = "/api/configuration/downloads/pikpak/browser-login", Sr = 2e3, Cr = Dn("pikpak");-function wr({ initial: e, receipt: t, panel: n, issues: r }) {+var vr = "/api/configuration/downloads", yr = "/api/configuration/downloads/check", br = "/api/configuration/downloads/folder", xr = "/api/configuration/downloads/pikpak/login", Sr = "/api/configuration/downloads/pikpak/logout", Cr = "/api/configuration/downloads/pikpak/browser-login", wr = 2e3, Tr = Dn("pikpak");+function Er({ initial: e, receipt: t, panel: n, issues: r }) {return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...lr(n),- children: [r, e ? /* @__PURE__ */ (0, Q.jsx)(Tr, {+ ...dr(n),+ children: [r, e ? /* @__PURE__ */ (0, Q.jsx)(Dr, {initial: e,receipt: t}) : null]});}-function Tr({ initial: e, receipt: t }) {+function Dr({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)("");(0, Z.useEffect)(() => {r((t) => ({@@ -271,20 +272,20 @@ function Tr({ initial: e, receipt: t }) {}, [e.media_sources, e.pikpak_roots]);let o = n.media_sources ?? [], s = o.includes("pikpak"), c = o.some((e) => Ye.includes(e)), l = s && (n.pikpak.logged_in || !!i.trim());return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [- c ? /* @__PURE__ */ (0, Q.jsx)(Er, {+ c ? /* @__PURE__ */ (0, Q.jsx)(Or, {state: n,settle: r,receipt: t,pikpakAccount: l}) : null,- s ? /* @__PURE__ */ (0, Q.jsx)(kr, {+ s ? /* @__PURE__ */ (0, Q.jsx)(jr, {state: n,settle: r,receipt: t,username: i,setUsername: a}) : null,- /* @__PURE__ */ (0, Q.jsx)(mr, {+ /* @__PURE__ */ (0, Q.jsx)(gr, {receipt: t,refreshKey: JSON.stringify([n.media_sources,@@ -295,8 +296,8 @@ function Tr({ initial: e, receipt: t }) {})] });}-function Er({ state: e, settle: t, receipt: n, pikpakAccount: r }) {- let [i, a] = (0, Z.useState)(e.config), [o, s] = (0, Z.useState)(""), [c, l] = (0, Z.useState)(String(e.config.wait_hours)), [u, d] = (0, Z.useState)(null), [f, p] = (0, Z.useState)(""), [m, h] = (0, Z.useState)(Dr), [g, _] = (0, Z.useState)(""), [v, y] = (0, Z.useState)(!1), b = Y(), x = e.media_sources ?? [], S = x.includes("115"), C = x.includes("pikpak"), w = (e) => i.targets[e] ?? "", T = (e, t) => a({+function Or({ state: e, settle: t, receipt: n, pikpakAccount: r }) {+ let [i, a] = (0, Z.useState)(e.config), [o, s] = (0, Z.useState)(""), [c, l] = (0, Z.useState)(String(e.config.wait_hours)), [u, d] = (0, Z.useState)(null), [f, p] = (0, Z.useState)(""), [m, h] = (0, Z.useState)(kr), [g, _] = (0, Z.useState)(""), [v, y] = (0, Z.useState)(!1), b = Y(), x = e.media_sources ?? [], S = x.includes("115"), C = x.includes("pikpak"), w = (e) => i.targets[e] ?? "", T = (e, t) => a({...i,targets: {...i.targets,@@ -325,7 +326,7 @@ function Er({ state: e, settle: t, receipt: n, pikpakAccount: r }) {target: !e.config.targets[115],root: !e.config.pikpak_root};- b.run("auto", (e) => W(_r, e), (e) => te(e, t), (e) => _(q(e)));+ b.run("auto", (e) => W(yr, e), (e) => te(e, t), (e) => _(q(e)));}, []), /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "download",title: "云下载",@@ -340,13 +341,13 @@ function Er({ state: e, settle: t, receipt: n, pikpakAccount: r }) {token: o,pikpak_account: r};- b.run("save", (e) => G(gr, f, "POST", e), (e) => {+ b.run("save", (e) => G(vr, f, "POST", e), (e) => {let { report: r, ...i } = e;t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? te(r, {address: !i.config.clouddrive_address,target: u,root: !i.config.pikpak_root- }, i.config.targets[115] ?? "") : (d(null), p(""), h(Dr), y(!1), _("")), n("已保存配置");+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(kr), y(!1), _("")), n("已保存配置");}, (e) => _(q(e)));},children: [@@ -441,7 +442,7 @@ function Er({ state: e, settle: t, receipt: n, pikpakAccount: r }) {divided: !0,children: /* @__PURE__ */ (0, Q.jsx)(_t, { label: "正在检查 CloudDrive2" })}) : null,- u ? /* @__PURE__ */ (0, Q.jsx)(Or, {+ u ? /* @__PURE__ */ (0, Q.jsx)(Ar, {report: u,detected: f,suggested: m,@@ -453,7 +454,7 @@ function Er({ state: e, settle: t, receipt: n, pikpakAccount: r }) {pikpak_root: i.pikpak_root,pikpak_account: r};- b.run("folder", (e) => G(vr, t, "POST", e), (t) => {+ b.run("folder", (e) => G(br, t, "POST", e), (t) => {d(t), h((t) => ({...t,target: {@@ -485,7 +486,7 @@ function Er({ state: e, settle: t, receipt: n, pikpakAccount: r }) {pikpak_root: i.pikpak_root,pikpak_account: r};- b.run("check", (e) => G(_r, t, "POST", e), (t) => te(t, e), (e) => _(q(e)));+ b.run("check", (e) => G(yr, t, "POST", e), (t) => te(t, e), (e) => _(q(e)));},disabled: !e.available,...K(b.busy === "check"),@@ -500,12 +501,12 @@ function Er({ state: e, settle: t, receipt: n, pikpakAccount: r }) {]});}-var Dr = {+var kr = {target: null,root: "",saved: !1};-function Or({ report: e, detected: t, suggested: n, create: r, creating: i }) {+function Ar({ report: e, detected: t, suggested: n, create: r, creating: i }) {let a = n.target, o = !!(t || a || n.root || e.permissions.length || e.folder || e.quota);return !o && !e.problems.length ? null : /* @__PURE__ */ (0, Q.jsxs)(V, {divided: !0,@@ -567,30 +568,30 @@ function Or({ report: e, detected: t, suggested: n, create: r, creating: i }) {] }) : null, e.problems.map((e) => /* @__PURE__ */ (0, Q.jsx)(k, { children: e }, e))]});}-function kr({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {+function jr({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {let [a, o] = (0, Z.useState)(""), [s, c] = (0, Z.useState)(!1), [l, u] = (0, Z.useState)(""), [d, f] = (0, Z.useState)(""), [p, m] = (0, Z.useState)(""), h = Y(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";(0, Z.useEffect)(() => {if (!v) return;let e = new AbortController(), r, i = async () => {try {- let r = await W(xr, e.signal);+ let r = await W(Cr, e.signal);if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;} catch (t) {if (e.signal.aborted) return;f(q(t));}- r = setTimeout(i, Sr);+ r = setTimeout(i, wr);};- return r = setTimeout(i, Sr), () => {+ return r = setTimeout(i, wr), () => {e.abort(), clearTimeout(r);};}, [v]);let y = () => {- m(""), h.run("browser", (e) => G(xr, {}, "POST", e), (e) => {+ m(""), h.run("browser", (e) => G(Cr, {}, "POST", e), (e) => {t(e), f("");}, (e) => f(q(e)));}, b = () => {- h.run("cancel", (e) => G(`${xr}/cancel`, {}, "POST", e), (e) => {+ h.run("cancel", (e) => G(`${Cr}/cancel`, {}, "POST", e), (e) => {t(e), f(""), m(e.pikpak_browser.message);}, (e) => f(q(e)));}, x = (e) => {@@ -600,11 +601,11 @@ function kr({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {password: a,remember: s};- h.run("login", (e) => G(yr, i, "POST", e), (e) => {+ h.run("login", (e) => G(xr, i, "POST", e), (e) => {t(e.settings), f(""), e.ok ? (u(""), o(""), n("已登录 PikPak")) : u(e.captcha_url ?? "");}, (e) => f(q(e)));}, S = () => {- h.run("logout", (e) => G(br, {}, "POST", e), (e) => {+ h.run("logout", (e) => G(Sr, {}, "POST", e), (e) => {t(e), f(""), n("已登出 PikPak");}, (e) => f(q(e)));}, C = /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [@@ -654,7 +655,7 @@ function kr({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "pikpak",title: "PikPak 账号",- icon: /* @__PURE__ */ (0, Q.jsx)(Cr, {}),+ icon: /* @__PURE__ */ (0, Q.jsx)(Tr, {}),onSubmit: x,aside: /* @__PURE__ */ (0, Q.jsx)(H, {tone: g.logged_in ? "success" : v ? "progress" : T ? "error" : "neutral",@@ -705,7 +706,7 @@ function kr({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {});}// src/react/settings/library-sharing-settings.tsx-function Ar({ initial: e, receipt: t }) {+function Mr({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(null), [o, s] = (0, Z.useState)(!1), [c, l] = (0, Z.useState)(!1), u = (0, Z.useMemo)(() => i ? JSON.stringify(i.data, null, 2) : "", [i]), d = Y(), f = (e) => void d.run("save", (t) => G("/api/configuration/library-sharing", {enabled: e,schema: n.schema,@@ -835,7 +836,7 @@ function Ar({ initial: e, receipt: t }) {] });}// src/react/settings/remote-reporting-settings.tsx-function jr({ value: e, onChange: t, busy: n = !1 }) {+function Nr({ value: e, onChange: t, busy: n = !1 }) {return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {label: "发送版本统计与错误诊断(推荐)",description: "上传版本、系统信息、故障类型、代码位置与发生次数。",@@ -857,9 +858,9 @@ function jr({ value: e, onChange: t, busy: n = !1 }) {})})] });}-function Mr({ initial: e, receipt: t }) {+function Pr({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), i = Y();- return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(jr, {+ return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Nr, {value: n,busy: i.busy === "save",onChange: (e) => {@@ -876,8 +877,8 @@ function Mr({ initial: e, receipt: t }) {}) : null] });}// src/react/components/animated-number.tsx-var Nr = .6;-function Pr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), className: n }) {+var Fr = .6;+function Ir({ value: e, format: t = (e) => Math.round(e).toLocaleString(), className: n }) {let r = Un(), [i, a] = (0, Z.useState)(e), o = (0, Z.useRef)(e);return (0, Z.useEffect)(() => {if (r || o.current === e) {@@ -885,7 +886,7 @@ function Pr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), classreturn;}let t = Yt(o.current, e, {- duration: Nr,+ duration: Fr,ease: "easeOut",onUpdate: (e) => {o.current = e, a(e);@@ -898,7 +899,7 @@ function Pr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), class});}// node_modules/recharts/es6/state/selectors/pieSelectors.js-function Fr(e, t) {+function Lr(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -908,30 +909,30 @@ function Fr(e, t) {}return n;}-function Ir(e) {+function Rr(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Fr(Object(n), !0).forEach(function(t) {- Lr(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Fr(Object(n)).forEach(function(t) {+ t % 2 ? Lr(Object(n), !0).forEach(function(t) {+ zr(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Lr(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Lr(e, t, n) {- return (t = Rr(t)) in e ? Object.defineProperty(e, t, {+function zr(e, t, n) {+ return (t = Br(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Rr(e) {- var t = zr(e, "string");+function Br(e) {+ var t = Vr(e, "string");return typeof t == "symbol" ? t : t + "";}-function zr(e, t) {+function Vr(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -941,20 +942,20 @@ function zr(e, t) {}return (t === "string" ? String : Number)(e);}-var Br = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find((e) => e.id === t)), Vr = [], Hr = (e, t, n) => n?.length === 0 ? Vr : n, Ur = oe([+var Hr = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find((e) => e.id === t)), Ur = [], Wr = (e, t, n) => n?.length === 0 ? Ur : n, Gr = oe([Te,- Br,- Hr+ Hr,+ Wr], (e, t, n) => {var r = e.chartData;if (t != null) {var i = t?.data != null && t.data.length > 0 ? t.data : r;- if (i && i.length || n == null || (i = n.map((e) => Ir(Ir({}, t.presentationProps), e.props))), i != null) return i;+ if (i && i.length || n == null || (i = n.map((e) => Rr(Rr({}, t.presentationProps), e.props))), i != null) return i;}-}), Wr = oe([- Ur,- Br,- Hr+}), Kr = oe([+ Gr,+ Hr,+ Wr], (e, t, n) => {if (e != null && t != null) return e.map((e, r) => {var i, a = he(e, t.nameKey, t.name), o = n != null && (i = n[r]) != null && (i = i.props) != null && i.fill ? n[r].props.fill : typeof e == "object" && e && "fill" in e ? e.fill : t.fill;@@ -966,42 +967,42 @@ var Br = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find(type: t.legendType};});-}), Gr = oe([- Ur,- Br,+}), qr = oe([+ Gr,Hr,+ Wr,Ee], (e, t, n, r) => {- if (t != null && e != null) return gi({+ if (t != null && e != null) return vi({offset: r,pieSettings: t,displayedData: e,cells: n});-}), Kr = ["key"], qr = [+}), Jr = ["key"], Yr = ["onMouseEnter","onClick","onMouseLeave"-], Jr = ["id"], Yr = ["id"];-function Xr() {- return Xr = Object.assign ? Object.assign.bind() : function(e) {+], Xr = ["id"], Zr = ["id"];+function Qr() {+ return Qr = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, Xr.apply(null, arguments);+ }, Qr.apply(null, arguments);}-function Zr(e, t) {+function $r(e, t) {if (e == null) return {};- var n, r, i = Qr(e, t);+ var n, r, i = ei(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Qr(e, t) {+function ei(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -1010,7 +1011,7 @@ function Qr(e, t) {}return n;}-function $r(e, t) {+function ti(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -1023,27 +1024,27 @@ function $r(e, t) {function $(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? $r(Object(n), !0).forEach(function(t) {- ei(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $r(Object(n)).forEach(function(t) {+ t % 2 ? ti(Object(n), !0).forEach(function(t) {+ ni(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ti(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function ei(e, t, n) {- return (t = ti(t)) in e ? Object.defineProperty(e, t, {+function ni(e, t, n) {+ return (t = ri(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function ti(e) {- var t = ni(e, "string");+function ri(e) {+ var t = ii(e, "string");return typeof t == "symbol" ? t : t + "";}-function ni(e, t) {+function ii(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -1053,12 +1054,12 @@ function ni(e, t) {}return (t === "string" ? String : Number)(e);}-var ri = S;-function ii(e) {- var n = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), r = Me((t) => Wr(t, e.id, n));+var ai = S;+function oi(e) {+ var n = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), r = Me((t) => Kr(t, e.id, n));return r == null ? null : /*#__PURE__*/ Z.createElement(w, { legendPayload: r });}-function ai(e) {+function si(e) {if (e != null && typeof e != "boolean" && typeof e != "function") {if (/*#__PURE__*/ Z.isValidElement(e)) {var t = e.props?.fill;@@ -1068,8 +1069,8 @@ function ai(e) {return typeof n == "string" ? n : void 0;}}-var oi = /*#__PURE__*/ Z.memo((e) => {- var t = e.dataKey, n = e.nameKey, r = e.sectors, i = e.stroke, a = e.strokeWidth, o = e.fill, s = e.name, c = e.hide, l = e.tooltipType, u = e.formatter, d = e.id, f = e.activeShape, p = ai(f), m = {+var ci = /*#__PURE__*/ Z.memo((e) => {+ var t = e.dataKey, n = e.nameKey, r = e.sectors, i = e.stroke, a = e.strokeWidth, o = e.fill, s = e.name, c = e.hide, l = e.tooltipType, u = e.formatter, d = e.id, f = e.activeShape, p = si(f), m = {dataDefinedOnItem: r.map((e) => {var t = e.tooltipPayload;return p == null || t == null ? t : t.map((e) => $($({}, e), {}, {@@ -1094,42 +1095,42 @@ var oi = /*#__PURE__*/ Z.memo((e) => {}};return /*#__PURE__*/ Z.createElement(T, { tooltipEntrySettings: m });-}), si = (e, t) => e > t ? "start" : e < t ? "end" : "middle", ci = (e, t, n) => pe(typeof t == "function" ? t(e) : t, n, n * .8), li = (e, t, n) => {+}), li = (e, t) => e > t ? "start" : e < t ? "end" : "middle", ui = (e, t, n) => pe(typeof t == "function" ? t(e) : t, n, n * .8), di = (e, t, n) => {var r = t.top, i = t.left, a = t.width, o = t.height, s = fe(a, o);return {cx: i + pe(e.cx, a, a / 2),cy: r + pe(e.cy, o, o / 2),innerRadius: pe(e.innerRadius, s, 0),- outerRadius: ci(n, e.outerRadius, s),+ outerRadius: ui(n, e.outerRadius, s),maxRadius: e.maxRadius || Math.sqrt(a * a + o * o) / 2};-}, ui = (e, t) => ye(t - e) * Math.min(Math.abs(t - e), 360), di = (e, t) => {+}, fi = (e, t) => ye(t - e) * Math.min(Math.abs(t - e), 360), pi = (e, t) => {if (/*#__PURE__*/ Z.isValidElement(e)) return /*#__PURE__*/ Z.cloneElement(e, t);if (typeof e == "function") return e(t);var n = en("recharts-pie-label-line", typeof e == "boolean" ? "" : e.className);t.key;- var r = Zr(t, Kr);- return /*#__PURE__*/ Z.createElement(l, Xr({}, r, {+ var r = $r(t, Jr);+ return /*#__PURE__*/ Z.createElement(l, Qr({}, r, {type: "linear",className: n}));-}, fi = (e, t, n) => {+}, mi = (e, t, n) => {if (/*#__PURE__*/ Z.isValidElement(e)) return /*#__PURE__*/ Z.cloneElement(e, t);var r = n;if (typeof e == "function" && (r = e(t), /*#__PURE__*/ Z.isValidElement(r))) return r;var i = en("recharts-pie-label-text", ue(e));- return /*#__PURE__*/ Z.createElement(ne, Xr({}, t, {+ return /*#__PURE__*/ Z.createElement(ne, Qr({}, t, {alignmentBaseline: "middle",className: i}), r);};-function pi(e) {+function hi(e) {var t = e.sectors, n = e.props, r = e.showLabels, i = n.label, a = n.labelLine, o = n.dataKey;if (!r || !i || !t) return null;var s = Oe(n), c = ke(i), l = ke(a), u = typeof i == "object" && "offsetRadius" in i && typeof i.offsetRadius == "number" && i.offsetRadius || 20, d = t.map((e, t) => {var n = (e.startAngle + e.endAngle) / 2, r = be(e.cx, e.cy, e.outerRadius + u, n), d = $($($($({}, s), e), {}, { stroke: "none" }, c), {}, {index: t,- textAnchor: si(r.x, e.cx)+ textAnchor: li(r.x, e.cx)}, r), p = $($($($({}, s), e), {}, {fill: "none",stroke: e.fill@@ -1141,20 +1142,20 @@ function pi(e) {return /*#__PURE__*/ Z.createElement(re, {zIndex: f.label,key: `label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${t}`- }, /*#__PURE__*/ Z.createElement(g, null, a && di(a, p), fi(i, d, he(e, o))));+ }, /*#__PURE__*/ Z.createElement(g, null, a && pi(a, p), mi(i, d, he(e, o))));});return /*#__PURE__*/ Z.createElement(g, { className: "recharts-pie-labels" }, d);}-function mi(e) {+function gi(e) {var t = e.sectors, n = e.props, r = e.showLabels, i = n.label;- return typeof i == "object" && i && "position" in i ? /*#__PURE__*/ Z.createElement(h, { label: i }) : /*#__PURE__*/ Z.createElement(pi, {+ return typeof i == "object" && i && "position" in i ? /*#__PURE__*/ Z.createElement(h, { label: i }) : /*#__PURE__*/ Z.createElement(hi, {sectors: t,props: n,showLabels: r});}-function hi(e) {- var t = e.sectors, n = e.activeShape, r = e.inactiveShape, i = e.allOtherPieProps, a = e.shape, o = e.id, s = e.animationElapsedTime, c = e.isAnimating, l = e.isEntrance, f = Me(we), p = Me(Se), m = Me(Ce), h = i.onMouseEnter, _ = i.onClick, v = i.onMouseLeave, y = Zr(i, qr), b = Pe(h, i.dataKey, o), x = Fe(v), S = Ne(_, i.dataKey, o);+function _i(e) {+ var t = e.sectors, n = e.activeShape, r = e.inactiveShape, i = e.allOtherPieProps, a = e.shape, o = e.id, s = e.animationElapsedTime, c = e.isAnimating, l = e.isEntrance, f = Me(we), p = Me(Se), m = Me(Ce), h = i.onMouseEnter, _ = i.onClick, v = i.onMouseLeave, y = $r(i, Yr), b = Pe(h, i.dataKey, o), x = Fe(v), S = Ne(_, i.dataKey, o);return t == null || t.length === 0 ? null : /*#__PURE__*/ Z.createElement(Z.Fragment, null, t.map((e, h) => {if (e?.startAngle === 0 && e?.endAngle === 0 && t.length !== 1) return null;var _ = m == null || m === o, v = String(h) === f && (p == null || i.dataKey === p) && _, C = n && v ? n : f ? r : null, w = $($({}, e), {}, {@@ -1168,7 +1169,7 @@ function hi(e) {[d]: h,[u]: o});- return /*#__PURE__*/ Z.createElement(g, Xr({+ return /*#__PURE__*/ Z.createElement(g, Qr({key: `sector-${e?.startAngle}-${e?.endAngle}-${e.midAngle}-${h}`,tabIndex: -1,className: "recharts-pie-sector"@@ -1178,13 +1179,13 @@ function hi(e) {onClick: S(e, h)}), /*#__PURE__*/ Z.createElement(ee, {option: C ?? a,- DefaultShape: ri,+ DefaultShape: ai,shapeProps: w}));}));}-function gi(e) {- var t = e.pieSettings, n = e.displayedData, r = e.cells, i = e.offset, a = t.cornerRadius, o = t.startAngle, s = t.endAngle, c = t.dataKey, l = t.nameKey, u = t.tooltipType, d = Math.abs(t.minAngle), f = ui(o, s), p = Math.abs(f), m = n.length <= 1 ? 0 : t.paddingAngle ?? 0, h = n.filter((e) => he(e, c, 0) !== 0).length, g = (p >= 360 ? h : h - 1) * m, _ = n.reduce((e, t) => {+function vi(e) {+ var t = e.pieSettings, n = e.displayedData, r = e.cells, i = e.offset, a = t.cornerRadius, o = t.startAngle, s = t.endAngle, c = t.dataKey, l = t.nameKey, u = t.tooltipType, d = Math.abs(t.minAngle), f = fi(o, s), p = Math.abs(f), m = n.length <= 1 ? 0 : t.paddingAngle ?? 0, h = n.filter((e) => he(e, c, 0) !== 0).length, g = (p >= 360 ? h : h - 1) * m, _ = n.reduce((e, t) => {var n = he(t, c, 0);return e + (_e(n) ? n : 0);}, 0), v = d > 0 && _ > 0 && n.some((e) => {@@ -1194,7 +1195,7 @@ function gi(e) {if (_ > 0) {var x;b = n.map((e, n) => {- var s = he(e, c, 0), d = he(e, l, n), p = li(t, i, e), h = (_e(s) ? s : 0) / _, g, b = $($({}, e), r && r[n] && r[n].props), S = b != null && "fill" in b && typeof b.fill == "string" ? b.fill : t.fill;+ var s = he(e, c, 0), d = he(e, l, n), p = di(t, i, e), h = (_e(s) ? s : 0) / _, g, b = $($({}, e), r && r[n] && r[n].props), S = b != null && "fill" in b && typeof b.fill == "string" ? b.fill : t.fill;g = n ? x.endAngle + ye(f) * m * (s === 0 ? 0 : 1) : o;var C = g + ye(f) * ((s === 0 ? 0 : v) + h * y), w = (g + C) / 2, T = (p.innerRadius + p.outerRadius) / 2, ee = [{name: d,@@ -1226,7 +1227,7 @@ function gi(e) {}return b;}-function _i(e) {+function yi(e) {var t = e.showLabels, n = e.sectors, r = e.children, i = (0, Z.useMemo)(() => !t || !n ? [] : n.map((e) => ({value: e.value,payload: e.payload,@@ -1245,7 +1246,7 @@ function _i(e) {})), [n, t]);return /*#__PURE__*/ Z.createElement(b, { value: t ? i : void 0 }, r);}-var vi = (e, t) => {+var bi = (e, t) => {if (e == null) return [];var n = [], r = e.find((e) => e.status !== "removed"), i = r ? r.next.startAngle : 0;return e.forEach((e, r) => {@@ -1267,11 +1268,11 @@ var vi = (e, t) => {}}), n;};-function yi(t) {+function xi(t) {var n = t.props, r = t.previousSectorsRef, i = t.id, a = n.sectors, o = n.activeShape, s = n.inactiveShape, c = n.animationInterpolateFn, l = je(n.onAnimationStart, n.onAnimationEnd), u = l.isAnimating, d = l.handleAnimationStart, f = l.handleAnimationEnd, p = Ie();if (p == null) return null;var m = a[0];- return /*#__PURE__*/ Z.createElement(_i, {+ return /*#__PURE__*/ Z.createElement(yi, {showLabels: !u,sectors: a}, /*#__PURE__*/ Z.createElement(e, {@@ -1288,7 +1289,7 @@ function yi(t) {animationInterpolateFn: c,animationMatchBy: n.animationMatchBy,layout: p- }, (e, t, r) => /*#__PURE__*/ Z.createElement(g, null, /*#__PURE__*/ Z.createElement(hi, {+ }, (e, t, r) => /*#__PURE__*/ Z.createElement(g, null, /*#__PURE__*/ Z.createElement(_i, {sectors: e,activeShape: o,inactiveShape: s,@@ -1298,7 +1299,7 @@ function yi(t) {animationElapsedTime: t,isAnimating: u || t < 1,isEntrance: r- }))), /*#__PURE__*/ Z.createElement(mi, {+ }))), /*#__PURE__*/ Z.createElement(gi, {showLabels: !u,sectors: a,props: n@@ -1312,11 +1313,11 @@ function yi(t) {clockWise: !1}, n.children));}-var bi = {+var Si = {animationBegin: 400,animationDuration: 1500,animationEasing: "ease",- animationInterpolateFn: vi,+ animationInterpolateFn: bi,animationMatchBy: ve,cx: "50%",cy: "50%",@@ -1334,17 +1335,17 @@ var bi = {outerRadius: "80%",paddingAngle: 0,rootTabIndex: 0,- shape: ri,+ shape: ai,startAngle: 0,stroke: "#fff",zIndex: f.area};-function xi(e) {- var n = e.id, r = Zr(e, Jr), i = e.hide, a = e.className, o = e.rootTabIndex, s = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), c = Me((e) => Gr(e, n, s)), l = (0, Z.useRef)(null), u = en("recharts-pie", a);+function Ci(e) {+ var n = e.id, r = $r(e, Xr), i = e.hide, a = e.className, o = e.rootTabIndex, s = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), c = Me((e) => qr(e, n, s)), l = (0, Z.useRef)(null), u = en("recharts-pie", a);return i || c == null ? (l.current = null, /*#__PURE__*/ Z.createElement(g, {tabIndex: o,className: u- })) : /*#__PURE__*/ Z.createElement(re, { zIndex: e.zIndex }, /*#__PURE__*/ Z.createElement(oi, {+ })) : /*#__PURE__*/ Z.createElement(re, { zIndex: e.zIndex }, /*#__PURE__*/ Z.createElement(ci, {dataKey: e.dataKey,nameKey: e.nameKey,sectors: c,@@ -1360,14 +1361,14 @@ function xi(e) {}), /*#__PURE__*/ Z.createElement(g, {tabIndex: o,className: u- }, /*#__PURE__*/ Z.createElement(yi, {+ }, /*#__PURE__*/ Z.createElement(xi, {props: $($({}, r), {}, { sectors: c }),previousSectorsRef: l,id: n})));}-function Si(e) {- var t = xe(e, bi), n = t.id, r = Zr(t, Yr), i = Oe(r);+function wi(e) {+ var t = xe(e, Si), n = t.id, r = $r(t, Zr), i = Oe(r);return /*#__PURE__*/ Z.createElement(x, {id: n,type: "pie"@@ -1395,12 +1396,12 @@ function Si(e) {cornerRadius: r.cornerRadius,presentationProps: i,maxRadius: t.maxRadius- }), /*#__PURE__*/ Z.createElement(ii, Xr({}, r, { id: e })), /*#__PURE__*/ Z.createElement(xi, Xr({}, r, { id: e }))));+ }), /*#__PURE__*/ Z.createElement(oi, Qr({}, r, { id: e })), /*#__PURE__*/ Z.createElement(Ci, Qr({}, r, { id: e }))));}-var Ci = Si;-Ci.displayName = "Pie";+var Ti = wi;+Ti.displayName = "Pie";// node_modules/recharts/es6/chart/PieChart.js-function wi(e, t) {+function Ei(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -1410,30 +1411,30 @@ function wi(e, t) {}return n;}-function Ti(e) {+function Di(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? wi(Object(n), !0).forEach(function(t) {- Ei(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wi(Object(n)).forEach(function(t) {+ t % 2 ? Ei(Object(n), !0).forEach(function(t) {+ Oi(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ei(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Ei(e, t, n) {- return (t = Di(t)) in e ? Object.defineProperty(e, t, {+function Oi(e, t, n) {+ return (t = ki(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Di(e) {- var t = Oi(e, "string");+function ki(e) {+ var t = Ai(e, "string");return typeof t == "symbol" ? t : t + "";}-function Oi(e, t) {+function Ai(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -1443,27 +1444,27 @@ function Oi(e, t) {}return (t === "string" ? String : Number)(e);}-var ki = ["item"], Ai = Ti(Ti({}, se), {}, {+var ji = ["item"], Mi = Di(Di({}, se), {}, {layout: "centric",startAngle: 0,endAngle: 360-}), ji = /*#__PURE__*/ (0, Z.forwardRef)((e, t) => {- var n = xe(e, Ai);+}), Ni = /*#__PURE__*/ (0, Z.forwardRef)((e, t) => {+ var n = xe(e, Mi);return /*#__PURE__*/ Z.createElement(v, {chartName: "PieChart",defaultTooltipEventType: "item",- validateTooltipEventTypes: ki,+ validateTooltipEventTypes: ji,tooltipPayloadSearcher: ae,categoricalChartProps: n,ref: t});-}), Mi = 5, Ni = 2e3, Pi = 0, Fi = "80%", Ii = 0, Li = 0, Ri = 0, zi = 360, Bi = [], Vi = (0, Z.createContext)(null);-function Hi() {- let e = (0, Z.use)(Vi);+}), Pi = 5, Fi = 2e3, Ii = 0, Li = "80%", Ri = 0, zi = 0, Bi = 0, Vi = 360, Hi = [], Ui = (0, Z.createContext)(null);+function Wi() {+ let e = (0, Z.use)(Ui);if (!e) throw Error("Pie chart parts (<Pie />, <Tooltip />, …) must be used within <EvilPieChart />");return e;}-function Ui({ config: e, data: t, dataKey: n, nameKey: i, children: a, className: o, chartProps: s, defaultSelectedSector: c = null, onSelectionChange: l, isLoading: u = !1 }) {+function Gi({ config: e, data: t, dataKey: n, nameKey: i, children: a, className: o, chartProps: s, defaultSelectedSector: c = null, onSelectionChange: l, isLoading: u = !1 }) {let [d, f] = (0, Z.useState)(c), p = (0, Z.useCallback)((e) => {if (f(e), e === null) {l?.(null);@@ -1496,12 +1497,12 @@ function Ui({ config: e, data: t, dataKey: n, nameKey: i, children: a, classNamed,p]);- return /* @__PURE__ */ (0, Q.jsx)(Vi, {+ return /* @__PURE__ */ (0, Q.jsx)(Ui, {value: m,children: /* @__PURE__ */ (0, Q.jsxs)(r, {className: o,config: e,- children: [/* @__PURE__ */ (0, Q.jsx)(_, { isLoading: u }), /* @__PURE__ */ (0, Q.jsx)(ji, {+ children: [/* @__PURE__ */ (0, Q.jsx)(_, { isLoading: u }), /* @__PURE__ */ (0, Q.jsx)(Ni, {id: "evil-charts-pie-chart",accessibilityLayer: !0,...s,@@ -1510,10 +1511,10 @@ function Ui({ config: e, data: t, dataKey: n, nameKey: i, children: a, className})});}-function Wi({ variant: e = "gradient", innerRadius: t = Pi, outerRadius: n = Fi, cornerRadius: r = Ii, paddingAngle: i = Li, startAngle: a = Ri, endAngle: o = zi, isClickable: s = !1, glowingSectors: c = Bi, children: l, pieProps: u }) {- let { config: d, data: f, dataKey: p, nameKey: m, isLoading: h, selectedSector: g, selectSector: _ } = Hi(), v = (0, Z.useId)().replace(/:/g, "");- if (h) return /* @__PURE__ */ (0, Q.jsx)(Ci, {- data: Qi,+function Ki({ variant: e = "gradient", innerRadius: t = Ii, outerRadius: n = Li, cornerRadius: r = Ri, paddingAngle: i = zi, startAngle: a = Bi, endAngle: o = Vi, isClickable: s = !1, glowingSectors: c = Hi, children: l, pieProps: u }) {+ let { config: d, data: f, dataKey: p, nameKey: m, isLoading: h, selectedSector: g, selectSector: _ } = Wi(), v = (0, Z.useId)().replace(/:/g, "");+ if (h) return /* @__PURE__ */ (0, Q.jsx)(Ti, {+ data: ea,dataKey: "value",nameKey: "name",innerRadius: t,@@ -1524,13 +1525,13 @@ function Wi({ variant: e = "gradient", innerRadius: t = Pi, outerRadius: n = Fi,endAngle: o,strokeWidth: 0,isAnimationActive: !1,- shape: (e) => /* @__PURE__ */ (0, Q.jsx)($i, { ...e })+ shape: (e) => /* @__PURE__ */ (0, Q.jsx)(ta, { ...e })});- let y = Yi(l, p), b = f.map((e) => ({+ let y = Zi(l, p), b = f.map((e) => ({...e,fill: `url(#${v}-colors-${e[m]})`}));- return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Ci, {+ return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Ti, {data: b,dataKey: p,nameKey: m,@@ -1562,18 +1563,18 @@ function Wi({ variant: e = "gradient", innerRadius: t = Pi, outerRadius: n = Fi,},...u,children: y- }), /* @__PURE__ */ (0, Q.jsxs)("defs", { children: [/* @__PURE__ */ (0, Q.jsx)(Xi, {+ }), /* @__PURE__ */ (0, Q.jsxs)("defs", { children: [/* @__PURE__ */ (0, Q.jsx)(Qi, {id: v,config: d,variant: e- }), c.length > 0 && /* @__PURE__ */ (0, Q.jsx)(Zi, {+ }), c.length > 0 && /* @__PURE__ */ (0, Q.jsx)($i, {id: v,glowingSectors: c})] })] });}-var Gi = () => null;-function Ki({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, nameKey: i } = Hi();+var qi = () => null;+function Ji({ variant: e, roundness: t, defaultIndex: n }) {+ let { isLoading: r, nameKey: i } = Wi();return r ? null : /* @__PURE__ */ (0, Q.jsx)(s, {defaultIndex: n,content: /* @__PURE__ */ (0, Q.jsx)(c, {@@ -1584,8 +1585,8 @@ function Ki({ variant: e, roundness: t, defaultIndex: n }) {})});}-function qi({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { nameKey: o, selectedSector: s, selectSector: c } = Hi();+function Yi({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {+ let { nameKey: o, selectedSector: s, selectSector: c } = Wi();return /* @__PURE__ */ (0, Q.jsx)(i, {verticalAlign: n,align: t,@@ -1598,13 +1599,13 @@ function qi({ variant: e, align: t = "center", verticalAlign: n = "bottom", isCl})});}-function Ji({ variant: e = "dots" }) {+function Xi({ variant: e = "dots" }) {return /* @__PURE__ */ (0, Q.jsx)(n, { variant: e });}-var Yi = (e, t) => {+var Zi = (e, t) => {let n = null;return Z.Children.forEach(e, (e) => {- if (!(0, Z.isValidElement)(e) || e.type !== Gi) return;+ if (!(0, Z.isValidElement)(e) || e.type !== qi) return;let { dataKey: r, labelListProps: i } = e.props;n = /* @__PURE__ */ (0, Q.jsx)(m, {dataKey: r ?? t,@@ -1616,7 +1617,7 @@ var Yi = (e, t) => {...i});}), n;-}, Xi = ({ id: e, config: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: Object.entries(t).map(([t, n]) => {+}, Qi = ({ id: e, config: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: Object.entries(t).map(([t, n]) => {let r = de(n);return /* @__PURE__ */ (0, Q.jsx)("linearGradient", {id: `${e}-colors-${t}`,@@ -1638,7 +1639,7 @@ var Yi = (e, t) => {}, i);})}, `${e}-colors-${t}`);-}) }), Zi = ({ id: e, glowingSectors: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => /* @__PURE__ */ (0, Q.jsxs)("filter", {+}) }), $i = ({ id: e, glowingSectors: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => /* @__PURE__ */ (0, Q.jsxs)("filter", {id: `${e}-glow-${t}`,x: "-100%",y: "-100%",@@ -1658,11 +1659,11 @@ var Yi = (e, t) => {}),/* @__PURE__ */ (0, Q.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, Q.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, Q.jsx)("feMergeNode", { in: "SourceGraphic" })] })]-}, `${e}-glow-${t}`)) }), Qi = Array.from({ length: Mi }, (e, t) => ({+}, `${e}-glow-${t}`)) }), ea = Array.from({ length: Pi }, (e, t) => ({name: `loading${t}`,- value: 100 / Mi-})), $i = (e) => {- let { index: t = 0, ...n } = e, r = t / Mi * (Ni / 1e3);+ value: 100 / Pi+})), ta = (e) => {+ let { index: t = 0, ...n } = e, r = t / Pi * (Fi / 1e3);return /* @__PURE__ */ (0, Q.jsx)(Sn.g, {initial: { opacity: .15 },animate: { opacity: [@@ -1671,7 +1672,7 @@ var Yi = (e, t) => {.15] },transition: {- duration: Ni / 1e3,+ duration: Fi / 1e3,delay: r,repeat: Infinity,ease: "easeInOut"@@ -1682,9 +1683,9 @@ var Yi = (e, t) => {})});};-Ui.Pie = Wi, Ui.Label = Gi, Ui.Tooltip = Ki, Ui.Legend = qi, Ui.Background = Ji;+Gi.Pie = Ki, Gi.Label = qi, Gi.Tooltip = Ji, Gi.Legend = Yi, Gi.Background = Xi;// src/react/settings/storage-charts.tsx-var ea = {+var na = {database: "var(--color-chart-1)",backups: "var(--color-chart-2)",playback: "var(--color-chart-3)",@@ -1694,7 +1695,7 @@ var ea = {sources: "var(--color-chart-7)",records: "var(--color-chart-8)",tools: "var(--color-chart-9)"-}, ta = "var(--color-text-tertiary)", na = {+}, ra = "var(--color-text-tertiary)", ia = {database: "bg-chart-1",backups: "bg-chart-2",playback: "bg-chart-3",@@ -1704,23 +1705,23 @@ var ea = {sources: "bg-chart-7",records: "bg-chart-8",tools: "bg-chart-9"-}, ra = (e) => J(e);-function ia(e) {- let t = e.filter((e) => ea[e.key] && e.bytes > 0).map((e) => ({+}, aa = (e) => J(e);+function oa(e) {+ let t = e.filter((e) => na[e.key] && e.bytes > 0).map((e) => ({key: e.key,label: e.label,bytes: e.bytes,- color: ea[e.key]- })), n = e.filter((e) => !ea[e.key]).reduce((e, t) => e + t.bytes, 0);+ color: na[e.key]+ })), n = e.filter((e) => !na[e.key]).reduce((e, t) => e + t.bytes, 0);return n > 0 ? [...t, {key: "rest",label: "其余",bytes: n,- color: ta+ color: ra}] : t;}-function aa({ storage: e }) {- let t = e.usage, n = ia(t.categories), r = Object.fromEntries(n.map((e) => [e.key, {+function sa({ storage: e }) {+ let t = e.usage, n = oa(t.categories), r = Object.fromEntries(n.map((e) => [e.key, {label: e.label,colors: Ae(e.color)}])), i = n.map((e) => ({@@ -1732,14 +1733,14 @@ function aa({ storage: e }) {children: [/* @__PURE__ */ (0, Q.jsxs)("div", {className: "relative mx-auto size-48 flex-none",role: "img",- "aria-label": `数据目录共 ${ra(t.total_bytes)},各类占比`,- children: [/* @__PURE__ */ (0, Q.jsxs)(Ui, {+ "aria-label": `数据目录共 ${aa(t.total_bytes)},各类占比`,+ children: [/* @__PURE__ */ (0, Q.jsxs)(Gi, {data: i,dataKey: "value",nameKey: "slice",config: r,className: "aspect-square size-48 flex-none",- children: [/* @__PURE__ */ (0, Q.jsx)(Ui.Pie, {+ children: [/* @__PURE__ */ (0, Q.jsx)(Gi.Pie, {innerRadius: "68%",outerRadius: "100%",paddingAngle: 1,@@ -1747,13 +1748,13 @@ function aa({ storage: e }) {}), /* @__PURE__ */ (0, Q.jsx)(o, {nameKey: "slice",hideLabel: !0,- format: ra+ format: aa})]}), /* @__PURE__ */ (0, Q.jsxs)("div", {className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center",children: [/* @__PURE__ */ (0, Q.jsx)("b", {className: "text-title-2-medium tabular-nums text-text-primary",- children: ra(t.total_bytes)+ children: aa(t.total_bytes)}), /* @__PURE__ */ (0, Q.jsxs)("small", {className: "text-caption-1-regular tabular-nums text-text-secondary",children: [t.total_files.toLocaleString(), " 个文件"]@@ -1769,20 +1770,20 @@ function aa({ storage: e }) {children: [/* @__PURE__ */ (0, Q.jsx)("i", {"aria-hidden": !0,- className: `${te} ${na[e.key] || "bg-text-tertiary"}`+ className: `${te} ${ia[e.key] || "bg-text-tertiary"}`}),e.label,/* @__PURE__ */ (0, Q.jsx)("span", {className: "tabular-nums text-text-primary",- children: ra(e.bytes)+ children: aa(e.bytes)})]}, e.key))- }), /* @__PURE__ */ (0, Q.jsx)(oa, { storage: e })]+ }), /* @__PURE__ */ (0, Q.jsx)(ca, { storage: e })]})]});}-function oa({ storage: e }) {+function ca({ storage: e }) {if (e.total_bytes === null || e.free_bytes === null || !e.usage) return null;let t = Math.min(e.usage.total_bytes, e.total_bytes), n = e.free_bytes, r = Math.max(0, e.total_bytes - n - t), i = {peach: {@@ -1791,7 +1792,7 @@ function oa({ storage: e }) {},others: {label: "其他文件",- colors: Ae(ta)+ colors: Ae(ra)},free: {label: "可用",@@ -1804,7 +1805,7 @@ function oa({ storage: e }) {className: "text-caption-1-regular text-text-secondary",children: ["所在磁盘共 ",- ra(e.total_bytes),+ aa(e.total_bytes),e.system_drive ? "(系统盘)" : "",",Peach 占 ",((t) => {@@ -1812,7 +1813,7 @@ function oa({ storage: e }) {return n < .1 ? "不到 0.1%" : `${n.toFixed(+(n < 10))}%`;})(t),", 可用 ",- ra(n)+ aa(n)]}), /* @__PURE__ */ (0, Q.jsxs)(p, {data: [{@@ -1843,26 +1844,26 @@ function oa({ storage: e }) {/* @__PURE__ */ (0, Q.jsx)(p.Bar, { dataKey: "free" }),/* @__PURE__ */ (0, Q.jsx)(o, {hideLabel: !0,- format: ra+ format: aa})]})]});}// src/react/settings/storage-settings.tsx-var sa = "/api/configuration/storage", ca = 1500, la = 864e5, ua = (e) => e instanceof qe && e.body?.errors?.target || q(e);-function da(e) {+var la = "/api/configuration/storage", ua = 1500, da = 864e5, fa = (e) => e instanceof qe && e.body?.errors?.target || q(e);+function pa(e) {if (e.free_bytes === null || e.total_bytes === null) return "未取得";let t = `${J(e.free_bytes)} 可用,共 ${J(e.total_bytes)}`;return e.system_drive ? `${t}(系统盘)` : t;}-var fa = (e) => e.cleanable && e.reclaimable > 0;-function pa({ job: e }) {+var ma = (e) => e.cleanable && e.reclaimable > 0;+function ha({ job: e }) {let t = e.files || 0, n = e.expected_files || 0, r = /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: ["已统计 ",- /* @__PURE__ */ (0, Q.jsx)(Pr, { value: t }),+ /* @__PURE__ */ (0, Q.jsx)(Ir, { value: t })," 个文件 · ",- /* @__PURE__ */ (0, Q.jsx)(Pr, {+ /* @__PURE__ */ (0, Q.jsx)(Ir, {value: e.bytes || 0,format: J})@@ -1882,8 +1883,8 @@ function pa({ job: e }) {] })] }) : /* @__PURE__ */ (0, Q.jsx)(_t, { label: "正在统计占用空间" }), n ? null : /* @__PURE__ */ (0, Q.jsx)(N, { children: r })]});}-function ma({ category: e, selected: t, disabled: n, onToggle: r }) {- let i = fa(e), a = e.cleanable ? e.reclaimable > 0 ? `清理后${e.note}` : "没有可以清理的文件" : `不能清理:${e.note}`;+function ga({ category: e, selected: t, disabled: n, onToggle: r }) {+ let i = ma(e), a = e.cleanable ? e.reclaimable > 0 ? `清理后${e.note}` : "没有可以清理的文件" : `不能清理:${e.note}`;return /* @__PURE__ */ (0, Q.jsxs)("div", {"data-category": e.key,className: "flex min-h-13 w-full items-start gap-3 border-b border-separator-border py-2.5 pr-3 last:border-b-0",@@ -1902,7 +1903,7 @@ function ma({ category: e, selected: t, disabled: n, onToggle: r }) {className: "flex items-center gap-2 text-body-regular text-text-primary",children: [/* @__PURE__ */ (0, Q.jsx)("i", {"aria-hidden": !0,- className: `size-2.5 shrink-0 rounded-xs ${na[e.key] || "bg-text-tertiary"}`+ className: `size-2.5 shrink-0 rounded-xs ${ia[e.key] || "bg-text-tertiary"}`}), e.label]}),/* @__PURE__ */ (0, Q.jsx)("p", {@@ -1917,7 +1918,7 @@ function ma({ category: e, selected: t, disabled: n, onToggle: r }) {}),/* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex shrink-0 flex-col items-end gap-0.5 text-right",- children: [/* @__PURE__ */ (0, Q.jsx)(Pr, {+ children: [/* @__PURE__ */ (0, Q.jsx)(Ir, {value: e.bytes,format: J,className: "text-body-regular text-text-primary"@@ -1929,22 +1930,22 @@ function ma({ category: e, selected: t, disabled: n, onToggle: r }) {]});}-function ha({ initial: e, receipt: t }) {+function _a({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(""), [o, s] = (0, Z.useState)(/* @__PURE__ */ new Set()), c = Y(), l = n.job.state !== "idle", u = (0, Z.useRef)(l);(0, Z.useEffect)(() => {if (!l) return;let e = new AbortController(), t = setTimeout(() => {- W(sa, e.signal).then(r, () => {+ W(la, e.signal).then(r, () => {e.signal.aborted || r((e) => ({ ...e }));});- }, ca);+ }, ua);return () => {e.abort(), clearTimeout(t);};}, [n]), (0, Z.useEffect)(() => {l ? u.current = !0 : u.current && (u.current = !1, s(/* @__PURE__ */ new Set()), n.job.error || t(n.job.message || "已统计占用空间"));}, [l]);- let d = () => void c.run("measure", (e) => G(`${sa}/measure`, {}, "POST", e), r), f = n.usage, p = f?.categories.filter(fa) ?? [], m = p.filter((e) => o.has(e.key)), h = (e, t) => {+ let d = () => void c.run("measure", (e) => G(`${la}/measure`, {}, "POST", e), r), f = n.usage, p = f?.categories.filter(ma) ?? [], m = p.filter((e) => o.has(e.key)), h = (e, t) => {if (!e.length) return;let n = e.reduce((e, t) => e + t.reclaimable, 0);nn({@@ -1952,7 +1953,7 @@ function ha({ initial: e, receipt: t }) {body: `将删除 ${J(n)}:${e.map((e) => `${e.label} ${J(e.reclaimable)}(清理后${e.note})`).join(";")}。`,confirmLabel: `清理 ${J(n)}`,danger: e.some((e) => e.key === "backups"),- onConfirm: async () => r(await G(`${sa}/clean`, { categories: e.map((e) => e.key) }))+ onConfirm: async () => r(await G(`${la}/clean`, { categories: e.map((e) => e.key) }))});}, g = () => void c.run("relocate", async (e) => {let t = (await G(Ct, { initial: n.data_root }, "POST", e)).path;@@ -1964,13 +1965,13 @@ function ha({ initial: e, receipt: t }) {confirmLabel: "迁移数据目录",onConfirm: async () => {try {- a((await G(`${sa}/relocate`, { target: t })).message);+ a((await G(`${la}/relocate`, { target: t })).message);} catch (e) {- throw Error(ua(e));+ throw Error(fa(e));}}});- }, () => void 0), _ = n.relocation.last, v = _ && (_.state === "error" || (_.notes?.length ?? 0) > 0 || Date.now() - _.finished_at * 1e3 < la), y = f?.categories.find((e) => e.key === n.job.category)?.label, b = i || (n.job.state === "cleaning" ? `正在清理${y || ""}…` : n.job.state === "measuring" ? "正在统计占用空间…" : m.length ? `已选 ${m.length} 类,可释放 ${J(m.reduce((e, t) => e + t.reclaimable, 0))}` : f ? `统计于 ${(/* @__PURE__ */ new Date(f.measured_at * 1e3)).toLocaleString()}` : ""), x = l || !!i, S = (e) => (t) => s((n) => {+ }, () => void 0), _ = n.relocation.last, v = _ && (_.state === "error" || (_.notes?.length ?? 0) > 0 || Date.now() - _.finished_at * 1e3 < da), y = f?.categories.find((e) => e.key === n.job.category)?.label, b = i || (n.job.state === "cleaning" ? `正在清理${y || ""}…` : n.job.state === "measuring" ? "正在统计占用空间…" : m.length ? `已选 ${m.length} 类,可释放 ${J(m.reduce((e, t) => e + t.reclaimable, 0))}` : f ? `统计于 ${(/* @__PURE__ */ new Date(f.measured_at * 1e3)).toLocaleString()}` : ""), x = l || !!i, S = (e) => (t) => s((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;});@@ -1988,12 +1989,12 @@ function ha({ initial: e, receipt: t }) {})}), /* @__PURE__ */ (0, Q.jsx)(j, {term: "所在磁盘",- children: da(n)+ children: pa(n)})] }),/* @__PURE__ */ (0, Q.jsxs)(V, {divided: !0,children: [- n.job.state === "measuring" ? /* @__PURE__ */ (0, Q.jsx)(pa, { job: n.job }) : null,+ n.job.state === "measuring" ? /* @__PURE__ */ (0, Q.jsx)(ha, { job: n.job }) : null,f ? /* @__PURE__ */ (0, Q.jsxs)("div", {"data-storage-result": "",className: Qt({@@ -2003,10 +2004,10 @@ function ha({ initial: e, receipt: t }) {}),children: [/* @__PURE__ */ (0, Q.jsx)("div", {className: "border-b border-separator-border p-4",- children: /* @__PURE__ */ (0, Q.jsx)(aa, { storage: n })+ children: /* @__PURE__ */ (0, Q.jsx)(sa, { storage: n })}), /* @__PURE__ */ (0, Q.jsx)("div", {className: "flex flex-col pl-4",- children: f.categories.map((e) => /* @__PURE__ */ (0, Q.jsx)(ma, {+ children: f.categories.map((e) => /* @__PURE__ */ (0, Q.jsx)(ga, {category: e,selected: o.has(e.key),disabled: x,@@ -2065,16 +2066,16 @@ function ha({ initial: e, receipt: t }) {});}// src/react/settings/maintenance-settings.tsx-var ga = [+var va = [["6", "每 6 小时"],["24", "每天"],["168", "每周"]];-function _a({ data: e, receipt: t, reopenTutorial: n, panel: r }) {+function ya({ data: e, receipt: t, reopenTutorial: n, panel: r }) {return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...lr(r),+ ...dr(r),children: [- e.storage ? /* @__PURE__ */ (0, Q.jsx)(ha, {+ e.storage ? /* @__PURE__ */ (0, Q.jsx)(_a, {initial: e.storage,receipt: t}) : null,@@ -2082,30 +2083,30 @@ function _a({ data: e, receipt: t, reopenTutorial: n, panel: r }) {id: "librarySharing",guide: "reporting",title: "数据上传",- children: [e.remote_reporting ? /* @__PURE__ */ (0, Q.jsx)(Mr, {+ children: [e.remote_reporting ? /* @__PURE__ */ (0, Q.jsx)(Pr, {initial: e.remote_reporting,receipt: t}) : null, e.library_sharing ? /* @__PURE__ */ (0, Q.jsx)("div", {className: "border-t border-separator-border",- children: /* @__PURE__ */ (0, Q.jsx)(Ar, {+ children: /* @__PURE__ */ (0, Q.jsx)(Mr, {initial: e.library_sharing,receipt: t})}) : null]}) : null,- /* @__PURE__ */ (0, Q.jsx)(ba, { facts: e.facts }),- /* @__PURE__ */ (0, Q.jsx)(va, {+ /* @__PURE__ */ (0, Q.jsx)(Sa, { facts: e.facts }),+ /* @__PURE__ */ (0, Q.jsx)(ba, {receipt: t,reopenTutorial: n}),- e.uninstall ? /* @__PURE__ */ (0, Q.jsx)(xa, {+ e.uninstall ? /* @__PURE__ */ (0, Q.jsx)(Ca, {uninstall: e.uninstall,receipt: t}) : null]});}-function va({ reopenTutorial: e }) {+function ba({ reopenTutorial: e }) {return /* @__PURE__ */ (0, Q.jsx)("section", {"aria-label": "新手教程",className: "w-full",@@ -2120,7 +2121,7 @@ function va({ reopenTutorial: e }) {}) }) })});}-function ya({ initial: e, receipt: t }) {+function xa({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e.mode), [i, a] = (0, Z.useState)(e.interval_hours), o = Y(e.error), s = (r) => {r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {mode: n,@@ -2163,7 +2164,7 @@ function ya({ initial: e, receipt: t }) {onSelectionChange: (e) => {e !== null && a(Number(e));},- children: ga.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: va.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,children: t}, e))@@ -2183,7 +2184,7 @@ function ya({ initial: e, receipt: t }) {]});}-function ba({ facts: e }) {+function Sa({ facts: e }) {return /* @__PURE__ */ (0, Q.jsx)(L, {guide: "facts",title: "运行信息",@@ -2196,7 +2197,7 @@ function ba({ facts: e }) {}, e.term)) })});}-function xa({ uninstall: e, receipt: t }) {+function Ca({ uninstall: e, receipt: t }) {let [n, r] = (0, Z.useState)(!1), [i, a] = (0, Z.useState)(""), o = () => void nn({title: "卸载 Peach",danger: !0,@@ -2253,23 +2254,23 @@ function xa({ uninstall: e, receipt: t }) {});}// src/react/settings/release-updates.tsx-var Sa = /* @__PURE__ */ new Set([+var wa = /* @__PURE__ */ new Set(["downloading","verifying","extracting","preparing","restarting","installing"-]), Ca = [+]), Ta = [65,75,90-], wa = 120, Ta = "https://github.com/peach-mitao/peach/releases";-function Ea({ initial: e, initialJob: t }) {+], Ea = 120, Da = "https://github.com/peach-mitao/peach/releases";+function Oa({ initial: e, initialJob: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(t || {state: "idle",progress: 0- }), [o, s] = (0, Z.useState)(""), c = Y(), l = (0, Z.useRef)(!1), u = (0, Z.useRef)(!0), d = Sa.has(i.state);+ }), [o, s] = (0, Z.useState)(""), c = Y(), l = (0, Z.useRef)(!1), u = (0, Z.useRef)(!0), d = wa.has(i.state);(0, Z.useEffect)(() => (u.current = !0, () => {u.current = !1;}), []);@@ -2286,7 +2287,7 @@ function Ea({ initial: e, initialJob: t }) {(0, Z.useEffect)(() => {i.state !== "ready" || l.current || (l.current = !0, p());}, [i.state]), (0, Z.useEffect)(() => {- let e = new AbortController(), t = Sa.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {+ let e = new AbortController(), t = wa.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {try {let t = await W("/api/configuration/update-status", e.signal);if (e.signal.aborted) return;@@ -2299,9 +2300,9 @@ function Ea({ initial: e, initialJob: t }) {let n = await W("/api/configuration/automatic-updates", e.signal);!e.signal.aborted && n.result && r(n.result);} catch {- o += 1, o >= wa && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");+ o += 1, o >= Ea && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");}- !e.signal.aborted && o < wa && (n = setTimeout(c, t));+ !e.signal.aborted && o < Ea && (n = setTimeout(c, t));};return n = setTimeout(c, t), () => {e.abort(), clearTimeout(n);@@ -2367,7 +2368,7 @@ function Ea({ initial: e, initialJob: t }) {/* @__PURE__ */ (0, Q.jsx)(At, {label: "更新准备进度",value: i.progress,- stops: Ca+ stops: Ta}),/* @__PURE__ */ (0, Q.jsxs)(N, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),/* @__PURE__ */ (0, Q.jsx)(N, { children: _ })@@ -2388,7 +2389,7 @@ function Ea({ initial: e, initialJob: t }) {children: "GitHub"}),/* @__PURE__ */ (0, Q.jsx)(A, {- href: n.release_url || Ta,+ href: n.release_url || Da,children: "查看发布页"})]@@ -2422,7 +2423,7 @@ function Ea({ initial: e, initialJob: t }) {});}// src/react/settings/upgrade-repairs.tsx-var Da = {+var ka = {pending: "等待修复",running: "正在修复",failed: "需要重试",@@ -2430,7 +2431,7 @@ var Da = {complete: "已完成",unavailable: "当前部署未启用"};-function Oa() {+function Aa() {let { snapshot: e } = Bn(), [t, n] = (0, Z.useState)(null), r = Y();(0, Z.useEffect)(() => n(null), [e]);let i = t ?? e?.repairs, a = i?.state || "pending", o = i?.items.reduce((e, t) => e + (t.pending || 0), 0) || 0, s = i?.items.reduce((e, t) => e + (t.failed || 0), 0) || 0, c = i?.items.reduce((e, t) => e + (t.review_count || 0), 0) || 0;@@ -2441,7 +2442,7 @@ function Oa() {tone: a === "failed" ? "error" : a === "running" ? "progress" : a === "review" ? "warning" : a === "complete" ? "success" : "neutral",children: /* @__PURE__ */ (0, Q.jsx)("span", {"data-copy-key": `upgradeRepairs.${a}.status`,- children: Da[a] || "未取得"+ children: ka[a] || "未取得"}, a)}),children: [@@ -2449,15 +2450,15 @@ function Oa() {/* @__PURE__ */ (0, Q.jsxs)(lt, { children: [/* @__PURE__ */ (0, Q.jsx)(j, {term: "待完成",- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Pr, { value: o }), " 项"] })+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Ir, { value: o }), " 项"] })}),/* @__PURE__ */ (0, Q.jsx)(j, {term: "失败",- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Pr, { value: s }), " 项"] })+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Ir, { value: s }), " 项"] })}),/* @__PURE__ */ (0, Q.jsx)(j, {term: "待复核",- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Pr, { value: c }), " 项"] })+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Ir, { value: c }), " 项"] })})] }),i?.message || r.error ? /* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsx)(k, { children: r.error || i?.message }) }) : null,@@ -2481,27 +2482,27 @@ function Oa() {});}// src/react/settings/general-settings.tsx-function ka({ data: e, receipt: t, panel: n }) {+function ja({ data: e, receipt: t, panel: n }) {return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...lr(n),+ ...dr(n),children: [- e.updates ? /* @__PURE__ */ (0, Q.jsx)(Ea, {+ e.updates ? /* @__PURE__ */ (0, Q.jsx)(Oa, {initial: e.updates,initialJob: e.update_job}) : null,- /* @__PURE__ */ (0, Q.jsx)(Oa, {}),- e.automatic_updates ? /* @__PURE__ */ (0, Q.jsx)(ya, {+ /* @__PURE__ */ (0, Q.jsx)(Aa, {}),+ e.automatic_updates ? /* @__PURE__ */ (0, Q.jsx)(xa, {initial: e.automatic_updates,receipt: t}) : null,- e.startup ? /* @__PURE__ */ (0, Q.jsx)(Aa, {+ e.startup ? /* @__PURE__ */ (0, Q.jsx)(Ma, {startup: e.startup,receipt: t}) : null]});}-function Aa({ startup: e, receipt: t }) {+function Ma({ startup: e, receipt: t }) {let [n, r] = (0, Z.useState)(e.enabled), [i, a] = (0, Z.useState)(e.silent), [o, s] = (0, Z.useState)(e.desktop), c = Y(), l = e.available && !e.desktop_message;return /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "startup",@@ -2559,7 +2560,7 @@ function Aa({ startup: e, receipt: t }) {});}// src/react/restart-redirect.ts-var ja = 8e3, Ma = [+var Na = 8e3, Pa = [{name: "机械硬盘,或内存 8 GB 以内",cache: "10–20 GiB",@@ -2578,12 +2579,12 @@ var ja = 8e3, Ma = [read: "256 / 128 KB",task: "2 个起步"}-], Na = [+], Fa = [["cache", "缓存上限"],["read", "读取长度(默认 / 最小)"],["task", "同时处理视频"]];-function Pa() {+function Ia() {return /* @__PURE__ */ (0, Q.jsx)("div", {className: "@container flex flex-col gap-3",children: /* @__PURE__ */ (0, Q.jsxs)(O, {@@ -2598,14 +2599,14 @@ function Pa() {/* @__PURE__ */ (0, Q.jsx)("ul", {"aria-label": "按缓存所在硬盘分档",className: "flex flex-col gap-2",- children: Ma.map((e) => /* @__PURE__ */ (0, Q.jsxs)("li", {+ children: Pa.map((e) => /* @__PURE__ */ (0, Q.jsxs)("li", {className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, Q.jsx)("p", {className: "text-body-medium text-text-primary",children: e.name}), /* @__PURE__ */ (0, Q.jsx)("dl", {className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",- children: Na.map(([t, n]) => /* @__PURE__ */ (0, Q.jsxs)("div", {+ children: Fa.map(([t, n]) => /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex flex-col",children: [/* @__PURE__ */ (0, Q.jsx)("dt", {className: "text-caption-1-regular text-text-secondary",@@ -2635,15 +2636,15 @@ function Pa() {});}// src/react/settings/cloud-proxy-settings.tsx-var Fa = "/api/configuration/cloud-proxies", Ia = [+var La = "/api/configuration/cloud-proxies", Ra = [["direct", "直连"],["system", "跟随系统"],["http", "HTTP 代理"],["socks5", "SOCKS5 代理"]];-function La({ receipt: e }) {+function za({ receipt: e }) {let [t, n] = (0, Z.useState)(null), [r, i] = (0, Z.useState)(!0), a = (0, Z.useRef)(/* @__PURE__ */ new Set()), o = (0, Z.useRef)(/* @__PURE__ */ new Set()), [s, c] = (0, Z.useState)(!1), l = (0, Z.useRef)(() => void 0), u = Y(), d = () => {- o.current.size || u.run("refresh", (e) => W(Fa, e), (e) => {+ o.current.size || u.run("refresh", (e) => W(La, e), (e) => {a.current.clear(), n(e), i(!1);}, (e) => {i(!1), u.setError(e instanceof Error ? e.message : "无法读取网盘代理");@@ -2697,7 +2698,7 @@ function La({ receipt: e }) {children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: ir(e.location) }), e.name]}) }), /* @__PURE__ */ (0, Q.jsx)(N, { children: "尚未匹配 CloudDrive 账号" })]}, e.root)),- t?.accounts.map((t) => /* @__PURE__ */ (0, Q.jsx)(Ra, {+ t?.accounts.map((t) => /* @__PURE__ */ (0, Q.jsx)(Ba, {initial: t,receipt: e,onDirty: () => a.current.add(t.id),@@ -2721,7 +2722,7 @@ function La({ receipt: e }) {}) })]});}-function Ra({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {+function Ba({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {let [a, o] = (0, Z.useState)(e), [s, c] = (0, Z.useState)([]), l = a.libraries?.map((e) => e.name).join("、") || a.name, u = Y(), d = (e, t) => {o((n) => ({...n,@@ -2731,7 +2732,7 @@ function Ra({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {return /* @__PURE__ */ (0, Q.jsxs)("form", {"aria-label": `${l} 代理`,onSubmit: (e) => {- e.preventDefault(), i(!0), u.run("save", (e) => G(Fa, {+ e.preventDefault(), i(!0), u.run("save", (e) => G(La, {id: a.id,revision: a.revision,...s.includes("api") ? { api: a.api } : {},@@ -2751,13 +2752,13 @@ function Ra({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {" · ",a.path] }),- /* @__PURE__ */ (0, Q.jsx)(za, {+ /* @__PURE__ */ (0, Q.jsx)(Va, {label: "数据代理",value: a.data,disabled: !a.writable || !!u.busy,onChange: (e) => d("data", e)}),- /* @__PURE__ */ (0, Q.jsx)(za, {+ /* @__PURE__ */ (0, Q.jsx)(Va, {label: "API 代理",value: a.api,disabled: !a.writable || !!u.busy,@@ -2781,7 +2782,7 @@ function Ra({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {]});}-function za({ label: e, value: t, disabled: n, onChange: r }) {+function Va({ label: e, value: t, disabled: n, onChange: r }) {let i = t.mode === "http" || t.mode === "socks5";return /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex min-w-0 flex-col gap-3",@@ -2800,7 +2801,7 @@ function za({ label: e, value: t, disabled: n, onChange: r }) {children: [t.mode === "unknown" ? /* @__PURE__ */ (0, Q.jsx)(z, {id: "unknown",children: "无法识别的代理类型"- }) : null, Ia.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ }) : null, Ra.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,children: t}, e))]@@ -2868,7 +2869,7 @@ function za({ label: e, value: t, disabled: n, onChange: r }) {});}// src/react/settings/library-icon-picker.tsx-var Ba = [+var Ha = [["", "自动识别"],["hard-drive", "磁盘"],["database", "资料库"],@@ -2912,13 +2913,13 @@ var Ba = [["star", "收藏"],["tags", "主题"]];-function Va(e) {+function Ua(e) {let t = e === "local" ? "" : xt[e];return t ? [t, "自动识别"] : ["hard-drive", "默认"];}-var Ha = "auto";-function Ua({ value: e, label: t, kind: n = "local", onChange: r }) {- let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), [s, c] = (0, Z.useState)(e), [l, u] = Va(n);+var Wa = "auto";+function Ga({ value: e, label: t, kind: n = "local", onChange: r }) {+ let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), [s, c] = (0, Z.useState)(e), [l, u] = Ua(n);return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(E, {ref: i,variant: "secondary",@@ -2932,7 +2933,7 @@ function Ua({ value: e, label: t, kind: n = "local", onChange: r }) {children: /* @__PURE__ */ (0, Q.jsxs)("span", {"data-icon-choice": !0,className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: e || l }), ((e) => e && Ba.find(([t]) => t === e)?.[1] || u)(e)]+ children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: e || l }), ((e) => e && Ha.find(([t]) => t === e)?.[1] || u)(e)]})}), /* @__PURE__ */ (0, Q.jsx)(ze, {triggerRef: i,@@ -2952,15 +2953,15 @@ function Ua({ value: e, label: t, kind: n = "local", onChange: r }) {}),/* @__PURE__ */ (0, Q.jsx)(We, {"aria-label": "可选图标",- value: s || Ha,- onChange: (e) => c(e === Ha ? "" : e),+ value: s || Wa,+ onChange: (e) => c(e === Wa ? "" : e),className: "inline-grid grid-cols-7 gap-1",- children: Ba.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {- value: e || Ha,+ children: Ha.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {+ value: e || Wa,"aria-label": e ? t : u,className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",children: /* @__PURE__ */ (0, Q.jsx)(Vt, { mark: e || l })- }, e || Ha))+ }, e || Wa))}),/* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",@@ -2981,19 +2982,19 @@ function Ua({ value: e, label: t, kind: n = "local", onChange: r }) {})] });}// src/react/settings/library-policy-settings.tsx-var Wa = [+var Ka = [["probe", "读取视频信息"],["metadata", "联网补资料"],["cover", "联网补封面"],["people", "联网补人物图片"],["preview", "生成九宫格预览"]-], Ga = [+], qa = ["probe","metadata","cover","people","preview"-], Ka = [+], Ja = [["auto","自动补全",@@ -3010,7 +3011,7 @@ var Wa = ["逐项选择要做的步骤"]];-function qa() {+function Ya() {return /* @__PURE__ */ (0, Q.jsxs)("div", {"data-policy-legend": "",className: "flex flex-col gap-1",@@ -3042,7 +3043,7 @@ function qa() {})]});}-function Ja({ name: e, value: t, onChange: n }) {+function Xa({ name: e, value: t, onChange: n }) {return /* @__PURE__ */ (0, Q.jsx)(Lt, {"data-guide-target": "library-policy",className: "w-full",@@ -3051,10 +3052,10 @@ function Ja({ name: e, value: t, onChange: n }) {prefix: "处理方式",renderValue: /* @__PURE__ */ (0, Q.jsx)("span", {className: "truncate",- children: Ka.find(([e]) => e === t)?.[1]+ children: Ja.find(([e]) => e === t)?.[1]}),onSelectionChange: (e) => n(String(e)),- children: Ka.map(([e, t, n]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: Ja.map(([e, t, n]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,textValue: t,children: /* @__PURE__ */ (0, Q.jsxs)("span", {@@ -3067,15 +3068,15 @@ function Ja({ name: e, value: t, onChange: n }) {}, e))});}-function Ya({ name: e, value: t, onChange: n }) {+function Za({ name: e, value: t, onChange: n }) {return /* @__PURE__ */ (0, Q.jsx)(O, {defaultOpen: !0,- summary: `${e} 的处理步骤(${t.length}/${Wa.length})`,+ summary: `${e} 的处理步骤(${t.length}/${Ka.length})`,children: /* @__PURE__ */ (0, Q.jsx)("div", {className: "flex flex-wrap gap-x-6 gap-y-2",role: "group","aria-label": `${e} 处理步骤`,- children: Wa.map(([e, r]) => /* @__PURE__ */ (0, Q.jsx)(D, {+ children: Ka.map(([e, r]) => /* @__PURE__ */ (0, Q.jsx)(D, {isSelected: t.includes(e),onChange: (r) => n(r ? [...t, e] : t.filter((t) => t !== e)),children: r@@ -3083,7 +3084,7 @@ function Ya({ name: e, value: t, onChange: n }) {})});}-function Xa({ id: e, name: t, value: n, onChange: r }) {+function Qa({ id: e, name: t, value: n, onChange: r }) {let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), s = Ke.find(([e]) => e === n)?.[1] || "无颜色", c = (t) => {r(t), Tn(e, t), o(!1);};@@ -3166,8 +3167,8 @@ function Xa({ id: e, name: t, value: n, onChange: r }) {})] });}// src/react/settings/push-discovery-settings.tsx-var Za = "/api/configuration/push-discovery", Qa = "/api/configuration/push-discovery/secret";-function $a({ initial: e, receipt: t }) {+var $a = "/api/configuration/push-discovery", eo = "/api/configuration/push-discovery/secret";+function to({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.prefixes), [o, s] = (0, Z.useState)(""), c = Y(), l = n.media_roots, [u, d] = (0, Z.useState)(e), f = (e, n) => {r(e), d(e), a(e.prefixes), s(""), t(n);}, p = (e, t) => a((n) => n.map((n, r) => r === e ? {@@ -3181,9 +3182,9 @@ function $a({ initial: e, receipt: t }) {cloud: n.cloud,prefixes: i};- c.run("save", (e) => G(Za, t, "POST", e), (e) => f(e, "已保存配置"), (e) => s(q(e)));+ c.run("save", (e) => G($a, t, "POST", e), (e) => f(e, "已保存配置"), (e) => s(q(e)));}, h = () => {- c.run("secret", (e) => G(Qa, {}, "POST", e), (e) => f(e, "已更换共享密钥"), (e) => s(q(e)));+ c.run("secret", (e) => G(eo, {}, "POST", e), (e) => f(e, "已更换共享密钥"), (e) => s(q(e)));}, g = `已入库 ${u.queue.ingested} 个文件` + (u.queue.failed ? `,${u.queue.failed} 个入库失败` : "") + (u.queue.pending ? `,队列里还有 ${u.queue.pending} 条` : ""), _ = u.local_running ? `正在监视 ${u.local_roots.join("、")}` : u.local_message || "没有运行";return /* @__PURE__ */ (0, Q.jsxs)(L, {id: "pushDiscovery",@@ -3346,7 +3347,7 @@ function $a({ initial: e, receipt: t }) {});}// src/react/settings/media-settings.tsx-async function eo(e) {+async function no(e) {let t;try {t = await mn();@@ -3361,14 +3362,14 @@ async function eo(e) {});return n;}-var to = (e) => $n.find(([t]) => t === e)?.[1] ?? e, no = [...$n, ["smb", "SMB 共享"]], ro = (e) => e.library_icon || Va(e.transport === "smb" ? "smb" : e.location)[0], io = async (e) => (await G(Ct, { initial: e })).path, ao = (e) => ({+var ro = (e) => $n.find(([t]) => t === e)?.[1] ?? e, io = [...$n, ["smb", "SMB 共享"]], ao = (e) => e.library_icon || Ua(e.transport === "smb" ? "smb" : e.location)[0], oo = async (e) => (await G(Ct, { initial: e })).path, so = (e) => ({library_id: e.library_id,library: e.library,library_icon: e.library_icon,library_color: e.library_color,library_policy: e.library_policy,library_stages: e.library_stages-}), oo = (e) => e.library_stages ? Ga.filter((t) => e.library_stages.split(",").includes(t)) : [], so = (e = "") => ({+}), co = (e) => e.library_stages ? qa.filter((t) => e.library_stages.split(",").includes(t)) : [], lo = (e = "") => ({path: e,transport: e.startsWith("smb://") ? "smb" : "filesystem",location: "local",@@ -3381,7 +3382,7 @@ var to = (e) => $n.find(([t]) => t === e)?.[1] ?? e, no = [...$n, ["smb", "SMBlibrary_stages: "",cost: "free"});-function co(e) {+function uo(e) {let t = e.media_sources?.filter((e) => $n.some(([t]) => t === e.location));return t?.length ? t.map((e) => ({transport: e.transport === "smb" || e.path.startsWith("smb://") ? "smb" : "filesystem",@@ -3400,15 +3401,15 @@ function co(e) {root_id: e.root_id,library_id: e.library_id || kn(),cost: e.cost ?? zn(e.location)- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => so(e));+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => lo(e));}-var lo = (e) => !(e instanceof qe) || e.status !== 400 ? null : e.body?.errors ?? null;-function uo({ data: e, receipt: t, panel: n }) {+var fo = (e) => !(e instanceof qe) || e.status !== 400 ? null : e.body?.errors ?? null;+function po({ data: e, receipt: t, panel: n }) {let r = !!e.media_sources?.some((e) => rr(e.location));return (0, Z.useEffect)(() => {if (e.editable) {let t = /* @__PURE__ */ new Map();- for (let n of co(e)) t.set(n.library_id, (t.get(n.library_id) ?? 0) + 1);+ for (let n of uo(e)) t.set(n.library_id, (t.get(n.library_id) ?? 0) + 1);An("media", {folders: [...t.values()],cloud: r@@ -3423,9 +3424,9 @@ function uo({ data: e, receipt: t, panel: n }) {prefixes: t.prefixes.length});}, [e, r]), /* @__PURE__ */ (0, Q.jsxs)("div", {- ...lr(n),+ ...dr(n),children: [- e.editable ? /* @__PURE__ */ (0, Q.jsx)(fo, {+ e.editable ? /* @__PURE__ */ (0, Q.jsx)(mo, {data: e,receipt: t}) : /* @__PURE__ */ (0, Q.jsx)(F, {@@ -3433,20 +3434,20 @@ function uo({ data: e, receipt: t, panel: n }) {title: "只读",children: e.notice}),- e.editable ? null : /* @__PURE__ */ (0, Q.jsx)(mo, { data: e }),- r ? /* @__PURE__ */ (0, Q.jsx)(La, { receipt: t }) : null,- e.push_discovery ? /* @__PURE__ */ (0, Q.jsx)($a, {+ e.editable ? null : /* @__PURE__ */ (0, Q.jsx)(go, { data: e }),+ r ? /* @__PURE__ */ (0, Q.jsx)(za, { receipt: t }) : null,+ e.push_discovery ? /* @__PURE__ */ (0, Q.jsx)(to, {initial: e.push_discovery,receipt: t}) : null]});}-function fo({ data: e, receipt: t }) {+function mo({ data: e, receipt: t }) {let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = ar({- initial: () => co(e),- blank: () => so(),- pickFolder: io,+ initial: () => uo(e),+ blank: () => lo(),+ pickFolder: oo,describe: q}), [d, f] = (0, Z.useState)(!1), [p, m] = (0, Z.useState)(!1), [h, g] = (0, Z.useState)(""), [_, v] = (0, Z.useState)({}), [y, b] = (0, Z.useState)(null), x = (0, Z.useRef)(e.revision), S = (0, Z.useRef)(!1), C = Y();Vn();@@ -3463,7 +3464,7 @@ function fo({ data: e, receipt: t }) {let ne = (e, t) => {let i = n.find((e) => e.library_id === t);if (i) {- r(e, ao(i));+ r(e, so(i));return;}let a = kn();@@ -3478,7 +3479,7 @@ function fo({ data: e, receipt: t }) {};(0, Z.useEffect)(() => {if (!y) return;- let e = setTimeout(() => location.assign(y.url), ja);+ let e = setTimeout(() => location.assign(y.url), Na);return () => clearTimeout(e);}, [y]);let re = (e) => {@@ -3488,7 +3489,7 @@ function fo({ data: e, receipt: t }) {m(!0);let n = e.currentTarget;requestAnimationFrame(() => n.querySelector(`[data-media-read-policy="${t}"] button`)?.focus());- } else C.busy || S.current || (g(""), S.current = !0, eo(d).then((e) => {+ } else C.busy || S.current || (g(""), S.current = !0, no(d).then((e) => {S.current = !1, e && ie();}));}, ie = () => {@@ -3501,7 +3502,7 @@ function fo({ data: e, receipt: t }) {}, "POST", t), (e) => {x.current = e.revision, s([]), t("已保存配置"), b(e);}, (e) => {- let t = lo(e);+ let t = fo(e);s(t?.media_dirs ?? []), (!t || t.port) && g(t?.port || q(e));});};@@ -3528,7 +3529,7 @@ function fo({ data: e, receipt: t }) {title: "媒体库与目录",onSubmit: re,children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [- /* @__PURE__ */ (0, Q.jsx)(qa, {}),+ /* @__PURE__ */ (0, Q.jsx)(Ya, {}),/* @__PURE__ */ (0, Q.jsx)("div", {role: "group","aria-label": "媒体库与目录",@@ -3551,7 +3552,7 @@ function fo({ data: e, receipt: t }) {/* @__PURE__ */ (0, Q.jsxs)("div", {"data-library-head": "",children: [- /* @__PURE__ */ (0, Q.jsx)(Ua, {+ /* @__PURE__ */ (0, Q.jsx)(Ga, {label: `${f} 图标`,value: e.library_icon,kind: e.transport === "smb" ? "smb" : e.location,@@ -3565,26 +3566,26 @@ function fo({ data: e, receipt: t }) {value: e.library,onChange: (e) => w(t, { library: e })}),- /* @__PURE__ */ (0, Q.jsx)(Xa, {+ /* @__PURE__ */ (0, Q.jsx)(Qa, {id: e.library_id,name: e.library,value: e.library_color,onChange: (e) => w(t, { library_color: e })}),- /* @__PURE__ */ (0, Q.jsx)(Ja, {+ /* @__PURE__ */ (0, Q.jsx)(Xa, {name: f,value: d,onChange: (n) => w(t, {library_policy: n,- library_stages: n === "custom" ? e.library_stages || Ga.join(",") : ""+ library_stages: n === "custom" ? e.library_stages || qa.join(",") : ""})})]}),- d === "custom" ? /* @__PURE__ */ (0, Q.jsx)(Ya, {+ d === "custom" ? /* @__PURE__ */ (0, Q.jsx)(Za, {name: f,- value: oo(e),- onChange: (e) => w(t, { library_stages: Ga.filter((t) => e.includes(t)).join(",") })+ value: co(e),+ onChange: (e) => w(t, { library_stages: qa.filter((t) => e.includes(t)).join(",") })}) : null,/* @__PURE__ */ (0, Q.jsxs)("div", {"data-library-folders": "",@@ -3602,12 +3603,12 @@ function fo({ data: e, receipt: t }) {picking: c === i,onPick: () => void l(i),onRemove: n.length > 1 ? () => a(i) : void 0,- status: ae(t) ? /* @__PURE__ */ (0, Q.jsx)(po, { online: ae(t)?.online }) : null,+ status: ae(t) ? /* @__PURE__ */ (0, Q.jsx)(ho, { online: ae(t)?.online }) : null,children: [/* @__PURE__ */ (0, Q.jsxs)(Zn, { children: [/* @__PURE__ */ (0, Q.jsx)(nr, {index: i,value: t.transport === "smb" ? "smb" : t.location,- options: no,+ options: io,onChange: (e) => {let n = e === "smb";r(i, {@@ -3660,7 +3661,7 @@ function fo({ data: e, receipt: t }) {selectedKey: t.library_id,renderValue: /* @__PURE__ */ (0, Q.jsxs)("span", {className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: ro(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {+ children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: ao(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {className: "truncate",children: f})]@@ -3673,7 +3674,7 @@ function fo({ data: e, receipt: t }) {textValue: e.library || "未命名媒体库",children: /* @__PURE__ */ (0, Q.jsxs)("span", {className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: ro(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {+ children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: ao(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {className: "truncate",children: e.library || "未命名媒体库"})]@@ -3770,7 +3771,7 @@ function fo({ data: e, receipt: t }) {"aria-label": `给 ${f} 添加文件夹`,onClick: () => {i(), r(n.length, {- ...ao(e),+ ...so(e),location: e.location,cost: e.cost});@@ -3790,7 +3791,7 @@ function fo({ data: e, receipt: t }) {children: "添加媒体库"}),/* @__PURE__ */ (0, Q.jsx)(N, { children: pt }),- oe ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(tr, {}), /* @__PURE__ */ (0, Q.jsx)(Pa, {})] }) : null,+ oe ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(tr, {}), /* @__PURE__ */ (0, Q.jsx)(Ia, {})] }) : null,se.map((e) => /* @__PURE__ */ (0, Q.jsxs)(N, { children: ["未检测到 ",e.name,@@ -3820,18 +3821,18 @@ function fo({ data: e, receipt: t }) {})]});}-function po({ online: e }) {+function ho({ online: e }) {return /* @__PURE__ */ (0, Q.jsx)(or, { online: e });}-function mo({ data: e }) {+function go({ data: e }) {let t = e.media_sources, n = Y();return t ? /* @__PURE__ */ (0, Q.jsxs)(L, {guide: "mounts",title: "挂载状态",children: [/* @__PURE__ */ (0, Q.jsx)(lt, { children: t.map((e, t) => /* @__PURE__ */ (0, Q.jsxs)(j, {- term: /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: ir(e.location) }), to(e.location)] }),- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, Q.jsx)(po, { online: e.online })]+ term: /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: ir(e.location) }), ro(e.location)] }),+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, Q.jsx)(ho, { online: e.online })]}, t)) }),n.error ? /* @__PURE__ */ (0, Q.jsx)(V, {divided: !0,@@ -3847,12 +3848,12 @@ function mo({ data: e }) {}) : null;}// src/react/settings/service-preferences.tsx-var ho = [+var _o = [["off", "关闭"],["precise", "每 10 秒一张"],["coarse", "每 30 秒一张"]];-function go({ epoch: e = 0, disabled: t = !1 }) {+function vo({ epoch: e = 0, disabled: t = !1 }) {let n = X({queryKey: Ht,queryFn: ({ signal: e }) => _n(e),@@ -3875,7 +3876,7 @@ function go({ epoch: e = 0, disabled: t = !1 }) {onSelectionChange: (e) => {e !== null && r.mutate(String(e));},- children: ho.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: _o.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,children: t}, e))@@ -3895,7 +3896,7 @@ function go({ epoch: e = 0, disabled: t = !1 }) {}) : null] });}-function _o({ receipt: e }) {+function yo({ receipt: e }) {let t = Xt();(0, Z.useSyncExternalStore)(t.subscribe, t.version);let n = X({@@ -3907,8 +3908,8 @@ function _o({ receipt: e }) {guide: "follow-options",title: "关注采集",children: [/* @__PURE__ */ (0, Q.jsxs)(I, { children: [- /* @__PURE__ */ (0, Q.jsx)(vo, {}),- /* @__PURE__ */ (0, Q.jsx)(yo, {}),+ /* @__PURE__ */ (0, Q.jsx)(bo, {}),+ /* @__PURE__ */ (0, Q.jsx)(xo, {}),/* @__PURE__ */ (0, Q.jsx)(B, {label: "首次采集范围",description: "新关注的来源第一次回看多久以前的内容。",@@ -3953,7 +3954,7 @@ function _o({ receipt: e }) {}) : null]});}-function vo() {+function bo() {let e = X({queryKey: ct,queryFn: ({ signal: e }) => pn(e),@@ -4012,7 +4013,7 @@ function vo() {role: "status",children: t.isPending ? "正在保存…" : "正在检查来源更新…"}) }) : null,- /* @__PURE__ */ (0, Q.jsx)(bo, {+ /* @__PURE__ */ (0, Q.jsx)(So, {kind: "follow",status: n,title: "上次自动检查失败"@@ -4020,7 +4021,7 @@ function vo() {u ? /* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsx)(k, { children: q(u) }) }) : null] });}-function yo() {+function xo() {let e = X({queryKey: at,queryFn: ({ signal: e }) => fn(e),@@ -4049,14 +4050,14 @@ function yo() {role: "status",children: "正在拉取订阅源…"}) }) : null,- /* @__PURE__ */ (0, Q.jsx)(bo, {+ /* @__PURE__ */ (0, Q.jsx)(So, {kind: "feed",status: t,title: "上次自动拉取失败"})] });}-function bo({ kind: e, status: t, title: n }) {+function So({ kind: e, status: t, title: n }) {let r = Wn(e);if (!t?.enabled || t.running || !t.last_error) return null;let i = t.consecutive_failures ?? 0, a = xn(t.next_run_at), o = [i > 1 ? `已连续失败 ${i} 次` : "", a ? `下一轮 ${a}` : ""].filter(Boolean).join(","), s = [@@ -4079,7 +4080,7 @@ function bo({ kind: e, status: t, title: n }) {}) });}// src/react/settings/media-processing-settings.tsx-function xo({ receipt: e }) {+function Co({ receipt: e }) {let t = X({queryKey: yt,queryFn: ({ signal: e }) => hn(e)@@ -4100,7 +4101,7 @@ function xo({ receipt: e }) {})})}) }),- /* @__PURE__ */ (0, Q.jsx)(go, { disabled: !t.data || t.data.metadata_only || !!n.busy }),+ /* @__PURE__ */ (0, Q.jsx)(vo, { disabled: !t.data || t.data.metadata_only || !!n.busy }),/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {label: "抽帧解码方式",description: "用于生成封面、九宫格和时间轴。",@@ -4139,7 +4140,7 @@ function xo({ receipt: e }) {]});}-function So({ receipt: e }) {+function wo({ receipt: e }) {let t = X({queryKey: yt,queryFn: ({ signal: e }) => hn(e)@@ -4187,7 +4188,7 @@ function So({ receipt: e }) {});}// src/react/boardui/components/base/textarea/textarea.tsx-var Co = Rn({+var To = Rn({field: "relative flex w-full flex-col rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease",fieldSize: {medium: "p-2",@@ -4200,8 +4201,8 @@ var Co = Rn({},footer: "flex w-full items-start justify-between gap-3",count: "ms-auto shrink-0 pt-px text-caption-1-medium text-text-tertiary tabular-nums"-}), wo = 20;-function To({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i = "vertical", fieldClassName: a, className: o, ref: s, groupRef: c, onInput: l, ...u }) {+}), Eo = 20;+function Do({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i = "vertical", fieldClassName: a, className: o, ref: s, groupRef: c, onInput: l, ...u }) {let d = (0, Z.useContext)(Gt), f = e ?? d.size ?? "medium", p = (0, Z.useRef)(null), m = (e) => {p.current = e, typeof s == "function" ? s(e) : s && (s.current = e);}, h = () => {@@ -4211,14 +4212,14 @@ function To({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i =e.style.height = "", e.style.maxHeight = "", e.style.overflowY = "";return;}- let i = parseFloat(window.getComputedStyle(e).lineHeight) || wo, a = r ? r * i : Infinity;+ let i = parseFloat(window.getComputedStyle(e).lineHeight) || Eo, a = r ? r * i : Infinity;e.style.height = "0px";let o = Math.max(e.scrollHeight, t * i);e.style.height = `${Math.min(o, a)}px`, e.style.maxHeight = r ? `${a}px` : "", e.style.overflowY = o > a ? "auto" : "hidden";};return (0, Z.useLayoutEffect)(h), /* @__PURE__ */ (0, Q.jsx)(Re, {ref: c,- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => on(Co.field, Co.fieldSize[f], 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", d.fieldClassName, a),+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => on(To.field, To.fieldSize[f], 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", d.fieldClassName, a),children: /* @__PURE__ */ (0, Q.jsx)(Ve, {ref: m,rows: t,@@ -4226,12 +4227,12 @@ function To({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i =onInput: (e) => {h(), l?.(e);},- className: on(Co.textarea, Co.resize[n ? "none" : i], d.inputClassName, o)+ className: on(To.textarea, To.resize[n ? "none" : i], d.inputClassName, o)})});}-To.displayName = "TextareaBase";-function Eo({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResize: a, maxRows: o, resize: s, maxLength: c, showCount: l = !1, fieldClassName: u, ref: d, groupRef: f, className: p, value: m, defaultValue: h, onChange: g, ..._ }) {+Do.displayName = "TextareaBase";+function Oo({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResize: a, maxRows: o, resize: s, maxLength: c, showCount: l = !1, fieldClassName: u, ref: d, groupRef: f, className: p, value: m, defaultValue: h, onChange: g, ..._ }) {let [v, y] = (0, Z.useState)(() => (h ?? "").length), b = m === void 0 ? v : m.length;return /* @__PURE__ */ (0, Q.jsx)(Wt, {..._,@@ -4249,7 +4250,7 @@ function Eo({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResizetooltip: n,children: e}),- /* @__PURE__ */ (0, Q.jsx)(To, {+ /* @__PURE__ */ (0, Q.jsx)(Do, {ref: d,groupRef: f,placeholder: r,@@ -4261,22 +4262,22 @@ function Eo({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResizefieldClassName: u}),(t || l) && /* @__PURE__ */ (0, Q.jsxs)("div", {- className: Co.footer,+ className: To.footer,children: [t && /* @__PURE__ */ (0, Q.jsx)(dt, {isInvalid: m,children: t}), l && /* @__PURE__ */ (0, Q.jsx)("span", {- className: on(Co.count, m && "text-text-error-primary"),+ className: on(To.count, m && "text-text-error-primary"),children: c ? `${b}/${c}` : b})]})] })});}-Eo.displayName = "Textarea";+Oo.displayName = "Textarea";// src/react/settings/code-pattern-settings.tsx-var Do = "^\\+{3}\\s*(?<code>FC2-PPV-\\d+)\n\\[(?<code>[A-Z]+-\\d+)\\]";-function Oo({ receipt: e }) {+var ko = "^\\+{3}\\s*(?<code>FC2-PPV-\\d+)\n\\[(?<code>[A-Z]+-\\d+)\\]";+function Ao({ receipt: e }) {let t = X({queryKey: Nt,queryFn: ({ signal: e }) => gn(e)@@ -4291,7 +4292,7 @@ function Oo({ receipt: e }) {On.setQueryData(Nt, t), r(null), e("已保存配置");});},- children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: "内置规则认不出番号时,按这里的规则从文件名里取。每行一条正则表达式,番号写在 (?<code>…) 里,没有命名组就取第一个括号。规则在下一次处理时对还没有番号的视频生效。" }), /* @__PURE__ */ (0, Q.jsx)(Eo, {+ children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: "内置规则认不出番号时,按这里的规则从文件名里取。每行一条正则表达式,番号写在 (?<code>…) 里,没有命名组就取第一个括号。规则在下一次处理时对还没有番号的视频生效。" }), /* @__PURE__ */ (0, Q.jsx)(Oo, {id: "codePatternSetting","aria-label": "番号识别规则",rows: 3,@@ -4299,7 +4300,7 @@ function Oo({ receipt: e }) {maxRows: 12,spellCheck: "false",autoComplete: "off",- placeholder: Do,+ placeholder: ko,value: a,isDisabled: !t.data,isInvalid: !!o,@@ -4313,7 +4314,7 @@ function Oo({ receipt: e }) {});}// src/react/settings/password-pair.tsx-function ko({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {+function jo({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(P, {id: "access-password",type: "password",@@ -4343,12 +4344,12 @@ function ko({ label: e, password: t, confirmation: n, onPassword: r, onConfirmat})] });}// src/react/settings/access-settings.tsx-var Ao = {+var Mo = {legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"};-function jo({ initial: e, receipt: t, devices: n }) {+function No({ initial: e, receipt: t, devices: n }) {let [r, i] = (0, Z.useState)(e), [a, o] = (0, Z.useState)(""), [s, c] = (0, Z.useState)(""), [l, u] = (0, Z.useState)(""), [d, f] = (0, Z.useState)(!1), [p, m] = (0, Z.useState)({}), h = (0, Z.useRef)(null), g = Y(), _ = (e) => {e.preventDefault();let n = {};@@ -4365,7 +4366,7 @@ function jo({ initial: e, receipt: t, devices: n }) {let t = e instanceof qe ? e.body : null, n = t?.errors || t?.detail?.errors;n ? m(n) : g.setError(q(e));});- }, v = Ao[r.mode], y = r.mode !== "locked";+ }, v = Mo[r.mode], y = r.mode !== "locked";return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsxs)(L, {guide: "access",title: "访问密码",@@ -4397,7 +4398,7 @@ function jo({ initial: e, receipt: t, devices: n }) {isInvalid: !!p.current_password,hint: p.current_password}) : null,- y && !d ? /* @__PURE__ */ (0, Q.jsx)(ko, {+ y && !d ? /* @__PURE__ */ (0, Q.jsx)(jo, {label: r.mode === "password" ? "新访问密码" : "设置访问密码",password: s,confirmation: l,@@ -4422,7 +4423,7 @@ function jo({ initial: e, receipt: t, devices: n }) {}), n && (r.mode === "password" || r.mode === "legacy") ? n(r) : null] });}// src/react/settings/device-sessions.tsx-var Mo = "/api/configuration/access/sessions", No = (e) => e.device || "未识别的浏览器", Po = {+var Po = "/api/configuration/access/sessions", Fo = (e) => e.device || "未识别的浏览器", Io = {iPhone: {platform: ft,terminal: Jt@@ -4453,37 +4454,41 @@ var Mo = "/api/configuration/access/sessions", No = (e) => e.device || "未识},Linux: { terminal: Jn }};-function Fo({ row: e }) {- let t = e.device.split(" · "), n = t.at(-1) ?? "", r = Po[n]?.platform;- return r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [- t.length > 1 ? `${t[0]} · ` : "",- /* @__PURE__ */ (0, Q.jsx)(r, {+function Lo({ row: e }) {+ if (!e.device) return Fo(e);+ let t = e.device.split(" · "), n = Io[t.at(-1) ?? ""] ? t.pop() : "", r = t.join(" · "), i = n ? Io[n].platform : void 0, a = "inline size-4 -mt-0.5 mr-1 align-middle";+ return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [+ r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [lr(r) ? /* @__PURE__ */ (0, Q.jsx)(cr, {+ name: r,+ className: a+ }) : null, r] }) : null,+ r && n ? " · " : null,+ n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [i ? /* @__PURE__ */ (0, Q.jsx)(i, {"aria-hidden": !0,- className: "inline size-4 -mt-0.5 mr-1 align-middle text-foreground-icon-secondary"- }),- n- ] }) : No(e);+ className: `${a} text-foreground-icon-secondary`+ }) : null, n] }) : null+ ] });}-function Io({ row: e }) {- let t = Po[e.device.split(" · ").at(-1) ?? ""]?.terminal ?? sn;+function Ro({ row: e }) {+ let t = Io[e.device.split(" · ").at(-1) ?? ""]?.terminal ?? sn;return /* @__PURE__ */ (0, Q.jsx)(t, {"aria-hidden": !0,className: "size-5 shrink-0 text-foreground-icon-secondary"});}-function Lo(e, t = Date.now() / 1e3) {+function zo(e, t = Date.now() / 1e3) {let n = Math.max(0, t - e);return n < 60 ? "刚刚" : n < 3600 ? `${Math.floor(n / 60)} 分钟前` : n < 86400 ? `${Math.floor(n / 3600)} 小时前` : n < 2592e3 ? `${Math.floor(n / 86400)} 天前` : (/* @__PURE__ */ new Date(e * 1e3)).toLocaleDateString("zh-CN");}-function Ro(e) {+function Bo(e) {return e.network === "loopback" ? "运行 Peach 的电脑" : e.network ? e.remote ? `公网入口 · ${e.network}` : e.network : "";}-var zo = (e) => [`最近活动 ${Lo(e.last_seen)}`, Ro(e)].filter(Boolean).join(" · ");-function Bo({ revision: e, receipt: t }) {+var Vo = (e) => [`最近活动 ${zo(e.last_seen)}`, Bo(e)].filter(Boolean).join(" · ");+function Ho({ revision: e, receipt: t }) {let n = X({queryKey: ["access-sessions", e],refetchOnMount: "always",- queryFn: ({ signal: e }) => W(Mo, e)+ queryFn: ({ signal: e }) => W(Po, e)});return n.error ? /* @__PURE__ */ (0, Q.jsx)(L, {title: "已登录的设备",@@ -4491,12 +4496,12 @@ function Bo({ revision: e, receipt: t }) {}) : n.isFetching || !n.data ? /* @__PURE__ */ (0, Q.jsx)(Ft, {label: "正在读取已登录的设备",html: ln- }) : /* @__PURE__ */ (0, Q.jsx)(Vo, {+ }) : /* @__PURE__ */ (0, Q.jsx)(Uo, {initial: n.data,receipt: t});}-function Vo({ initial: e, receipt: t }) {+function Uo({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e);(0, Z.useEffect)(() => r(e), [e]);let i = n.sessions.filter((e) => !e.current);@@ -4508,10 +4513,10 @@ function Vo({ initial: e, receipt: t }) {}, [n, i.length]);let a = (e) => void nn({title: "撤销这台设备的登录",- body: `${No(e)}(${zo(e)})下次打开 Peach 需要重新输入访问密码。`,+ body: `${Fo(e)}(${Vo(e)})下次打开 Peach 需要重新输入访问密码。`,confirmLabel: "撤销登录",onConfirm: async () => {- r(await G(`${Mo}/revoke`, {+ r(await G(`${Po}/revoke`, {revision: n.revision,id: e.id})), t("已撤销登录");@@ -4521,9 +4526,9 @@ function Vo({ initial: e, receipt: t }) {title: "已登录的设备",children: [n.sessions.length ? /* @__PURE__ */ (0, Q.jsx)(I, { children: n.sessions.map((e) => /* @__PURE__ */ (0, Q.jsx)(B, {- label: /* @__PURE__ */ (0, Q.jsx)(Fo, { row: e }),- description: zo(e),- icon: /* @__PURE__ */ (0, Q.jsx)(Io, { row: e }),+ label: /* @__PURE__ */ (0, Q.jsx)(Lo, { row: e }),+ description: Vo(e),+ icon: /* @__PURE__ */ (0, Q.jsx)(Ro, { row: e }),children: e.current ? /* @__PURE__ */ (0, Q.jsx)(et, {color: "blue",variant: "caption",@@ -4531,7 +4536,7 @@ function Vo({ initial: e, receipt: t }) {}) : n.manageable ? /* @__PURE__ */ (0, Q.jsx)(E, {size: "small",variant: "secondary",- "aria-label": `撤销 ${No(e)} 的登录`,+ "aria-label": `撤销 ${Fo(e)} 的登录`,onClick: () => a(e),children: "撤销"}) : null@@ -4549,7 +4554,7 @@ function Vo({ initial: e, receipt: t }) {body: `除本机以外的 ${i.length} 台设备下次打开 Peach 需要重新输入访问密码。`,confirmLabel: "撤销登录",onConfirm: async () => {- let e = await G(`${Mo}/revoke`, {+ let e = await G(`${Po}/revoke`, {revision: n.revision,scope: "others"});@@ -4563,7 +4568,7 @@ function Vo({ initial: e, receipt: t }) {});}// src/react/components/configuration-fields.tsx-function Ho({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a, isInvalid: o, children: s }) {+function Wo({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a, isInvalid: o, children: s }) {let c = `${e}-label`;return /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex flex-col gap-1.5",@@ -4592,7 +4597,7 @@ function Ho({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a,]});}-function Uo({ prefix: e, suffix: t, ...n }) {+function Go({ prefix: e, suffix: t, ...n }) {let r = () => /* @__PURE__ */ (0, Q.jsx)("span", {className: "shrink-0 pr-1 text-body-regular text-text-secondary",children: t@@ -4607,18 +4612,18 @@ function Uo({ prefix: e, suffix: t, ...n }) {});}// src/react/settings/port-settings.tsx-var Wo = [{+var Ko = [{value: "0.0.0.0",label: "同一局域网的设备"}, {value: "127.0.0.1",label: "只有这台电脑"}];-function Go({ data: e, receipt: t }) {+function qo({ data: e, receipt: t }) {let n = e.network, r = n ? n.editable : e.editable && e.port_editable !== !1, [i, a] = (0, Z.useState)(n?.host ?? "127.0.0.1"), [o, s] = (0, Z.useState)(n?.mdns_name ?? "peach"), [c, l] = (0, Z.useState)(String(e.port)), [u, d] = (0, Z.useState)({}), [f, p] = (0, Z.useState)(null), m = Y();return (0, Z.useEffect)(() => {if (!f) return;- let e = setTimeout(() => location.assign(f.url), ja);+ let e = setTimeout(() => location.assign(f.url), Na);return () => clearTimeout(e);}, [f]), f ? /* @__PURE__ */ (0, Q.jsx)(L, {guide: "port",@@ -4654,33 +4659,33 @@ function Go({ data: e, receipt: t }) {});} : void 0,children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [- n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Ko, {+ n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Jo, {label: "本机地址",value: n.local_url,receipt: t}), n.lan_url || n.ip_url ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [- /* @__PURE__ */ (0, Q.jsx)(Ko, {+ /* @__PURE__ */ (0, Q.jsx)(Jo, {label: "手机连接地址",value: n.lan_url || n.ip_url,receipt: t}),- n.lan_url && n.ip_url ? /* @__PURE__ */ (0, Q.jsx)(Ko, {+ n.lan_url && n.ip_url ? /* @__PURE__ */ (0, Q.jsx)(Jo, {label: "备用 IP 地址",value: n.ip_url,receipt: t}) : null,/* @__PURE__ */ (0, Q.jsxs)(N, { children: ["手机与电脑连接同一 Wi-Fi。", n.ip_url && n.lan_url ? "名称地址打不开时,可尝试备用 IP 地址。" : ""] })] }) : /* @__PURE__ */ (0, Q.jsx)(N, { children: n.scope === "local" ? "当前只允许这台电脑访问,手机无法连接。" : "局域网连接地址未取得,请检查电脑的网络连接和服务启动配置。" })] }) : null,- r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [n?.editable ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Ho, {+ r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [n?.editable ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Wo, {id: "configHost",label: "谁可以访问",value: i,onChange: a,- options: Wo,+ options: Ko,isDisabled: !!m.busy,isInvalid: !!u.host,children: u.host ? /* @__PURE__ */ (0, Q.jsx)(k, { children: u.host }) : null- }), i === "0.0.0.0" ? /* @__PURE__ */ (0, Q.jsx)(Uo, {+ }), i === "0.0.0.0" ? /* @__PURE__ */ (0, Q.jsx)(Go, {id: "configMdnsName",label: "局域网访问地址",value: o,@@ -4694,7 +4699,7 @@ function Go({ data: e, receipt: t }) {validationBehavior: "aria",isInvalid: !!u.mdns_name,hint: u.mdns_name || void 0- }) : null] }) : null, /* @__PURE__ */ (0, Q.jsx)(Uo, {+ }) : null] }) : null, /* @__PURE__ */ (0, Q.jsx)(Go, {id: "configPort",label: "端口",prefix: "localhost:",@@ -4722,7 +4727,7 @@ function Go({ data: e, receipt: t }) {}) : null]});}-function Ko({ label: e, value: t, receipt: n }) {+function Jo({ label: e, value: t, receipt: n }) {let r = Y();return /* @__PURE__ */ (0, Q.jsxs)("div", {className: "flex min-w-0 flex-col gap-2",@@ -4747,12 +4752,12 @@ function Ko({ label: e, value: t, receipt: n }) {});}// src/react/settings/peach-proxy-fields.tsx-var qo = [+var Yo = [["environment", "跟随环境"],["direct", "直连"],["proxy", "自定义"]];-function Jo({ mode: e, onChange: t, labelledBy: n }) {+function Xo({ mode: e, onChange: t, labelledBy: n }) {return /* @__PURE__ */ (0, Q.jsx)(R, {"aria-label": n ? void 0 : "连接方式","aria-labelledby": n,@@ -4760,13 +4765,13 @@ function Jo({ mode: e, onChange: t, labelledBy: n }) {onSelectionChange: (e) => {e !== null && t(String(e));},- children: qo.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {+ children: Yo.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {id: e,children: t}, e))});}-function Yo({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {+function Zo({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {return /* @__PURE__ */ (0, Q.jsx)(P, {id: e,type: "password",@@ -4782,11 +4787,11 @@ function Yo({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {});}// src/react/settings/tunnel-settings.tsx-var Xo = 2e3, Zo = [["quick", "临时链接"], ["named", "命名隧道"]], Qo = {+var Qo = 2e3, $o = [["quick", "临时链接"], ["named", "命名隧道"]], es = {quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"};-function $o({ revision: e, initial: t, receipt: n }) {+function ts({ revision: e, initial: t, receipt: n }) {let [r, i] = (0, Z.useState)(t), [a, o] = (0, Z.useState)(e), [s, c] = (0, Z.useState)(t.mode), [l, u] = (0, Z.useState)(t.hostname), [d, f] = (0, Z.useState)(""), [p, m] = (0, Z.useState)({}), h = Y(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";(0, Z.useEffect)(() => {if (r.state !== "starting") return;@@ -4794,7 +4799,7 @@ function $o({ revision: e, initial: t, receipt: n }) {un(e.signal).then((t) => {!e.signal.aborted && t.tunnel && (On.setQueryData(Ze, t), i(t.tunnel), o(t.revision));}).catch(() => void 0);- }, Xo);+ }, Qo);return () => {e.abort(), window.clearInterval(t);};@@ -4831,13 +4836,13 @@ function $o({ revision: e, initial: t, receipt: n }) {isDisabled: g,onChange: (e) => c(e),className: Mt,- children: Zo.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {+ children: $o.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {value: e,className: jt,children: t}, e))}) : null,- /* @__PURE__ */ (0, Q.jsx)(N, { children: Qo[_ ? "named" : "quick"] }),+ /* @__PURE__ */ (0, Q.jsx)(N, { children: es[_ ? "named" : "quick"] }),_ ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(P, {id: "tunnel-hostname",label: "公开主机名",@@ -4897,36 +4902,36 @@ function $o({ revision: e, initial: t, receipt: n }) {});}// src/react/settings/network-settings.tsx-function es({ data: e, receipt: t, panel: n, issues: r }) {+function ns({ data: e, receipt: t, panel: n, issues: r }) {return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...lr(n),+ ...dr(n),children: [r,- e.network || e.editable && e.port_editable !== !1 && !e.section_errors?.media_sources ? /* @__PURE__ */ (0, Q.jsx)(Go, {+ e.network || e.editable && e.port_editable !== !1 && !e.section_errors?.media_sources ? /* @__PURE__ */ (0, Q.jsx)(qo, {data: e,receipt: t}) : null,- e.access ? /* @__PURE__ */ (0, Q.jsx)(jo, {+ e.access ? /* @__PURE__ */ (0, Q.jsx)(No, {initial: e.access,receipt: t,- devices: (e) => /* @__PURE__ */ (0, Q.jsx)(Bo, {+ devices: (e) => /* @__PURE__ */ (0, Q.jsx)(Ho, {revision: e.revision,receipt: t})}) : null,- e.tunnel ? /* @__PURE__ */ (0, Q.jsx)($o, {+ e.tunnel ? /* @__PURE__ */ (0, Q.jsx)(ts, {revision: e.revision,initial: e.tunnel,receipt: t}) : null,- e.peach_proxy ? /* @__PURE__ */ (0, Q.jsx)(ts, {+ e.peach_proxy ? /* @__PURE__ */ (0, Q.jsx)(rs, {initial: e.peach_proxy,receipt: t}) : null]});}-function ts({ initial: e, receipt: t }) {+function rs({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.mode), [o, s] = (0, Z.useState)(""), c = Y();return /* @__PURE__ */ (0, Q.jsxs)(L, {id: "peachProxy",@@ -4944,7 +4949,7 @@ function ts({ initial: e, receipt: t }) {/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {label: "连接方式",description: "Peach 访问外网和采集来源时使用。",- children: /* @__PURE__ */ (0, Q.jsx)(Jo, {+ children: /* @__PURE__ */ (0, Q.jsx)(Xo, {mode: i,onChange: a})@@ -4952,7 +4957,7 @@ function ts({ initial: e, receipt: t }) {i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, Q.jsxs)(V, {divided: !0,children: [- i === "proxy" ? /* @__PURE__ */ (0, Q.jsx)(Yo, {+ i === "proxy" ? /* @__PURE__ */ (0, Q.jsx)(Zo, {id: "peachProxyAddress",value: o,onChange: s,@@ -4975,11 +4980,11 @@ function ts({ initial: e, receipt: t }) {});}// src/react/follow-manage/credentials.tsx-var ns = "将清除这个来源在本机和共享副本中的登录凭据。", rs = "其他系统用户可以读取此凭据文件。请在运行 Peach 的 Mac 或 Linux 电脑上,将文件权限设为仅当前用户可读写(0600)。";-function is(e, t) {+var is = "将清除这个来源在本机和共享副本中的登录凭据。", as = "其他系统用户可以读取此凭据文件。请在运行 Peach 的 Mac 或 Linux 电脑上,将文件权限设为仅当前用户可读写(0600)。";+function os(e, t) {return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";}-function as({ row: e }) {+function ss({ row: e }) {if (rn(e)) return /* @__PURE__ */ (0, Q.jsx)(et, {variant: "caption",color: "lime",@@ -4992,7 +4997,7 @@ function as({ row: e }) {children: $e[e.requirement] || ""});}-function os({ row: e, readOnly: t, toast: n }) {+function cs({ row: e, readOnly: t, toast: n }) {let [r, i] = (0, Z.useState)({}), [a, o] = (0, Z.useState)(""), s = rn(e), c = Hn({mutationFn: (t) => Pn(e.provider, t),onSuccess: (e, t) => {@@ -5019,7 +5024,7 @@ function os({ row: e, readOnly: t, toast: n }) {children: (e.needs || []).map((n) => /* @__PURE__ */ (0, Q.jsx)(P, {type: "password",label: n,- placeholder: is(e, n),+ placeholder: os(e, n),autoComplete: "off",spellCheck: "false",isDisabled: t,@@ -5039,7 +5044,7 @@ function os({ row: e, readOnly: t, toast: n }) {...K(c.isPending),onClick: () => void nn({title: "清除来源凭据",- body: ns,+ body: is,confirmLabel: "清除来源凭据",danger: !0,onConfirm: () => c.mutateAsync({})@@ -5066,7 +5071,7 @@ function os({ row: e, readOnly: t, toast: n }) {]});}-function ss({ row: e, readOnly: t, toast: n }) {+function ls({ row: e, readOnly: t, toast: n }) {let r = /* @__PURE__ */ (0, Q.jsxs)("span", {className: "flex min-w-0 flex-wrap items-center gap-2",children: [@@ -5078,7 +5083,7 @@ function ss({ row: e, readOnly: t, toast: n }) {className: "min-w-0 text-body-medium wrap-anywhere text-text-primary",children: e.provider_label}),- /* @__PURE__ */ (0, Q.jsx)(as, { row: e }),+ /* @__PURE__ */ (0, Q.jsx)(ss, { row: e }),e.missing.map((e) => /* @__PURE__ */ (0, Q.jsx)(et, {variant: "caption",color: "rose",@@ -5096,7 +5101,7 @@ function ss({ row: e, readOnly: t, toast: n }) {/* @__PURE__ */ (0, Q.jsx)(O, {summary: rn(e) ? "修改凭据" : "填写凭据",defaultOpen: e.requirement === "required" && !rn(e),- children: /* @__PURE__ */ (0, Q.jsx)(os, {+ children: /* @__PURE__ */ (0, Q.jsx)(cs, {row: e,readOnly: t,toast: n@@ -5105,12 +5110,12 @@ function ss({ row: e, readOnly: t, toast: n }) {e.world_readable ? /* @__PURE__ */ (0, Q.jsx)(F, {tone: "error",title: "凭据文件权限过宽",- children: rs+ children: as}) : null]});}-function cs({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {+function us({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {let i = e.providers || [], a = i.filter((e) => e.requirement === "required" && !rn(e));if ((0, Z.useEffect)(() => {An("credentials", { done: i.filter(rn).map((e) => e.provider) });@@ -5148,7 +5153,7 @@ function cs({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {padding: "none",className: "flex flex-col overflow-hidden"}),- children: e.rows.map((e) => /* @__PURE__ */ (0, Q.jsx)(ss, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, Q.jsx)(ls, {row: e,readOnly: t,toast: n@@ -5178,7 +5183,7 @@ function cs({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {});}// src/react/settings/entry-links-settings.tsx-function ls({ initial: e, receipt: t }) {+function ds({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e.sites), i = Y(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,host: t@@ -5218,31 +5223,31 @@ function ls({ initial: e, receipt: t }) {});}// src/react/settings/indexer-settings.tsx-var us = "/api/configuration/indexers";-function ds({ receipt: e }) {+var fs = "/api/configuration/indexers";+function ps({ receipt: e }) {let t = X({queryKey: ["indexers"],- queryFn: ({ signal: e }) => W(us, e),+ queryFn: ({ signal: e }) => W(fs, e),refetchOnMount: "always"});return t.error ? /* @__PURE__ */ (0, Q.jsx)(k, { children: q(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, Q.jsx)(Ft, {label: "正在读取资源搜索设置",html: vn- }) : t.data ? /* @__PURE__ */ (0, Q.jsx)(ms, {+ }) : t.data ? /* @__PURE__ */ (0, Q.jsx)(gs, {initial: t.data,receipt: e}) : null;}-function fs(e) {+function ms(e) {try {return new globalThis.URL(e).host;} catch {return e;}}-function ps({ row: e, index: t }) {+function hs({ row: e, index: t }) {let n = [- e.url ? fs(e.url) : "未填地址",+ e.url ? ms(e.url) : "未填地址",e.enabled ? "已启用" : "已停用",e.api_key_set && !e.clear_api_key ? "已保存 API key" : e.api_key ? "API key 待保存" : "没有 API key"];@@ -5257,7 +5262,7 @@ function ps({ row: e, index: t }) {})]});}-function ms({ initial: e, receipt: t }) {+function gs({ initial: e, receipt: t }) {let [n, r] = (0, Z.useState)(e.indexers), i = Y();(0, Z.useEffect)(() => {An("indexers", { open: e.indexers.map((e) => !e.url) });@@ -5270,7 +5275,7 @@ function ms({ initial: e, receipt: t }) {guide: "indexers",title: "资源搜索",onSubmit: (e) => {- e.preventDefault(), i.run("save", (e) => G(us, { indexers: n }, "POST", e), (e) => {+ e.preventDefault(), i.run("save", (e) => G(fs, { indexers: n }, "POST", e), (e) => {r(e.indexers), t("已保存索引器");});},@@ -5290,7 +5295,7 @@ function ms({ initial: e, receipt: t }) {className: "min-w-0 border-t border-separator-border pt-2",children: /* @__PURE__ */ (0, Q.jsx)(O, {defaultOpen: !e.url,- summary: /* @__PURE__ */ (0, Q.jsx)(ps, {+ summary: /* @__PURE__ */ (0, Q.jsx)(hs, {row: e,index: t}),@@ -5375,7 +5380,7 @@ function ms({ initial: e, receipt: t }) {});}// src/react/settings/source-settings.tsx-function hs({ data: e, receipt: t, panel: n, issues: r }) {+function _s({ data: e, receipt: t, panel: n, issues: r }) {let i = X({queryKey: ot,queryFn: ({ signal: e }) => dn(e),@@ -5383,7 +5388,7 @@ function hs({ data: e, receipt: t, panel: n, issues: r }) {refetchOnMount: "always"});return /* @__PURE__ */ (0, Q.jsxs)("div", {- ...lr(n),+ ...dr(n),children: [r,/* @__PURE__ */ (0, Q.jsx)("div", {@@ -5394,7 +5399,7 @@ function hs({ data: e, receipt: t, panel: n, issues: r }) {children: "采集来源与登录状态"})}),- i.data ? /* @__PURE__ */ (0, Q.jsx)(cs, {+ i.data ? /* @__PURE__ */ (0, Q.jsx)(us, {data: i.data,readOnly: !!e.ledger_read_only,toast: t,@@ -5407,9 +5412,9 @@ function hs({ data: e, receipt: t, panel: n, issues: r }) {label: "正在读取来源凭据",html: an}),- /* @__PURE__ */ (0, Q.jsx)(_o, { receipt: t }),- /* @__PURE__ */ (0, Q.jsx)(ds, { receipt: t }),- e.entry_links ? /* @__PURE__ */ (0, Q.jsx)(ls, {+ /* @__PURE__ */ (0, Q.jsx)(yo, { receipt: t }),+ /* @__PURE__ */ (0, Q.jsx)(ps, { receipt: t }),+ e.entry_links ? /* @__PURE__ */ (0, Q.jsx)(ds, {initial: e.entry_links,receipt: t}) : null@@ -5417,7 +5422,7 @@ function hs({ data: e, receipt: t, panel: n, issues: r }) {});}// src/react/settings/configuration-shape.ts-function gs(e) {+function vs(e) {let t = e.downloads;if (!t) return null;let n = t.media_sources ?? [];@@ -5430,7 +5435,7 @@ function gs(e) {browserLogin: t.pikpak_browser.available};}-function _s(e) {+function ys(e) {let t = e.tunnel;return {port: !!(e.editable && e.port_editable !== !1),@@ -5444,7 +5449,7 @@ function _s(e) {tunnelNote: !!(t && (!t.available || t.state === "starting" || t.state === "running" && t.url))};}-function vs(e) {+function bs(e) {let t = e.updates, n = e.update_job?.state ?? "idle", r = !t || t.state === "unchecked" && !t.checked_at && n === "idle", i = +!!t?.package_kind + (r ? 0 : +!!t?.checked_at + (t?.state === "unchecked" ? 0 : 1) + (n === "idle" ? 0 : 1)), a = e.automatic_updates, o = e.storage;return {releaseFacts: t?.package_kind ? 5 : 4,@@ -5465,12 +5470,12 @@ function vs(e) {};}// src/react/settings/configuration-page.tsx-function ys({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r }) {+function xs({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r }) {let i = X({queryKey: Ze,queryFn: ({ signal: e }) => un(e)}), a = i.data;- return a ? /* @__PURE__ */ (0, Q.jsx)(Ss, {+ return a ? /* @__PURE__ */ (0, Q.jsx)(ws, {data: a,receipt: e,reopenTutorial: t,@@ -5489,7 +5494,7 @@ function ys({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r })})});}-function bs({ data: e, sections: t, reload: n, refreshing: r }) {+function Ss({ data: e, sections: t, reload: n, refreshing: r }) {return /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => {let i = e.section_errors?.[t];return i ? /* @__PURE__ */ (0, Q.jsx)(F, {@@ -5506,14 +5511,14 @@ function bs({ data: e, sections: t, reload: n, refreshing: r }) {}, t) : null;}) });}-var xs = 0;-function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i, reload: a, refreshing: o }) {- let [s] = (0, Z.useState)(() => `board-tabs-${++xs}`), [c, l] = (0, Z.useState)(r), u = (0, Z.useRef)(null), d = (0, Z.useRef)(c);+var Cs = 0;+function ws({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i, reload: a, refreshing: o }) {+ let [s] = (0, Z.useState)(() => `board-tabs-${++Cs}`), [c, l] = (0, Z.useState)(r), u = (0, Z.useRef)(null), d = (0, Z.useRef)(c);(0, Z.useEffect)(() => {l(r);}, [r]), (0, Z.useEffect)(() => {- let t = gs(e);- t && An("downloads", t), An("network", _s(e)), An("maintenance", vs(e));+ let t = vs(e);+ t && An("downloads", t), An("network", ys(e)), An("maintenance", bs(e));}, [e]), (0, Z.useLayoutEffect)(() => {if (d.current === c) return;d.current = c;@@ -5537,7 +5542,7 @@ function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: ilet h = (0, Z.useRef)([]), g = {data: e,receipt: t- }, _ = (t) => /* @__PURE__ */ (0, Q.jsx)(bs, {+ }, _ = (t) => /* @__PURE__ */ (0, Q.jsx)(Ss, {data: e,sections: t,reload: a,@@ -5552,22 +5557,22 @@ function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i{title: "媒体库与入库",body: (n) => /* @__PURE__ */ (0, Q.jsxs)("div", {- ...lr(n),+ ...dr(n),children: [_(["media_sources","library_count","mount_dependencies"]),- !e.section_errors?.media_sources && !e.section_errors?.library_count ? /* @__PURE__ */ (0, Q.jsx)(uo, { ...g }) : null,- /* @__PURE__ */ (0, Q.jsx)(Oo, { receipt: t }),- /* @__PURE__ */ (0, Q.jsx)(xo, { receipt: t })+ !e.section_errors?.media_sources && !e.section_errors?.library_count ? /* @__PURE__ */ (0, Q.jsx)(po, { ...g }) : null,+ /* @__PURE__ */ (0, Q.jsx)(Ao, { receipt: t }),+ /* @__PURE__ */ (0, Q.jsx)(Co, { receipt: t })]})},{title: "来源与订阅",- body: (e) => /* @__PURE__ */ (0, Q.jsx)(hs, {+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(_s, {...g,panel: e,issues: _(["entry_links"])@@ -5575,7 +5580,7 @@ function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i},...b || e.section_errors?.downloads ? [{title: "下载渠道",- body: (e) => /* @__PURE__ */ (0, Q.jsx)(wr, {+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(Er, {initial: b,receipt: t,panel: e,@@ -5584,7 +5589,7 @@ function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i}] : [],...y ? [{title: "网络与访问",- body: (e) => /* @__PURE__ */ (0, Q.jsx)(es, {+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(ns, {...g,panel: e,issues: _(v)@@ -5593,7 +5598,7 @@ function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i{title: "应用与维护",body: (e) => /* @__PURE__ */ (0, Q.jsxs)("div", {- ...lr(e),+ ...dr(e),children: [_(["startup",@@ -5606,9 +5611,9 @@ function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i"automatic_updates","facts"]),- /* @__PURE__ */ (0, Q.jsx)(ka, { ...g }),- /* @__PURE__ */ (0, Q.jsx)(So, { receipt: t }),- /* @__PURE__ */ (0, Q.jsx)(_a, {+ /* @__PURE__ */ (0, Q.jsx)(ja, { ...g }),+ /* @__PURE__ */ (0, Q.jsx)(wo, { receipt: t }),+ /* @__PURE__ */ (0, Q.jsx)(ya, {...g,reopenTutorial: n})@@ -5618,7 +5623,7 @@ function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i{title: "系统诊断",body: (e) => /* @__PURE__ */ (0, Q.jsx)("div", {- ...lr(e),+ ...dr(e),children: e.active ? i : null})}@@ -5669,6 +5674,6 @@ function Ss({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i})] }, e))]});}-export { ys as ConfigurationPage };+export { xs as ConfigurationPage };-//# debugId=e94f4b51-17e0-4c78-bb81-65399db4a550\ No newline at end of file+//# debugId=55b00cec-0fd4-4080-bc81-bbd453712b2f\ No newline at end of filediff --git a/web/dist/peach-app.js b/web/dist/peach-app.jsindex 1b263854f..2fee24670 100644--- a/web/dist/peach-app.js+++ b/web/dist/peach-app.js@@ -2,7 +2,7 @@(function() {try {var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b89a8277-b2cf-4ea3-a549-4ff73cd867c8", e._sentryDebugIdIdentifier = "sentry-dbid-b89a8277-b2cf-4ea3-a549-4ff73cd867c8");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "20b7dbd8-19aa-4f3d-a345-c6aab3de9f31", e._sentryDebugIdIdentifier = "sentry-dbid-20b7dbd8-19aa-4f3d-a345-c6aab3de9f31");} catch {}})();var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {@@ -79067,8 +79067,8 @@ async function v6(e, t) {if (r.status === "rejected") throw r.reason;if (n.status === "rejected") throw n.reason;}-var y6 = _6(() => import("./peach-app.jav-page-DXAjQAx0.js")), b6 = _6(() => import("./peach-app.stats-page-fAkPsLC6.js")), x6 = _6(() => import("./peach-app.taste-page-O5P41pRb.js")), S6 = _6(() => import("./peach-app.review-page-kd1HFP2A.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), w6 = _6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), T6 = _6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), E6 = _6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), D6 = _6(async () => {- let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-TW25Ckir.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);+var y6 = _6(() => import("./peach-app.jav-page-DXAjQAx0.js")), b6 = _6(() => import("./peach-app.stats-page-fAkPsLC6.js")), x6 = _6(() => import("./peach-app.taste-page-CspPdKW5.js")), S6 = _6(() => import("./peach-app.review-page-kd1HFP2A.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), w6 = _6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), T6 = _6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), E6 = _6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), D6 = _6(async () => {+ let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-OLdLz6eb.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);return {ConfigurationPage: e,DiagnosticsPage: t@@ -84267,4 +84267,4 @@ if (!$9) throw Error("主界面宿主缺失");tBe($9);export { HL as $2ec61d1d4f780267$export$a8a3e93435678ff9, XL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, pz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, TD as $72abaeab4d80592f$export$78efe591171d7d45, aB as $76d00c5a4edb230a$export$76ccd210b9029917, nB as $76d00c5a4edb230a$export$816b5d811295e6bc, cB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, uB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, tB as $76d00c5a4edb230a$export$f850895b287ef28e, khe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Ohe as $b4f18e3395fe64d7$export$3e41faf802a29e71, The as $b4f18e3395fe64d7$export$b2539bed5023c21c, mB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Mhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, fE as $ea3928288112382f$export$439d29a4e110a164, Ez as $f2ff30fde7b014be$export$3ddf2d174ce01153, Nz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Pz as $fe21c36db05242bb$export$d7b12c4107be0d61, gge as $l, qj as ACCENTS, xAe as AMANE_BRIDGE_CHECK_URL, I$ as AMANE_BRIDGE_KEY, SAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, JU as ArtSlot, h2 as BATCH_DELETE_TEXT, J as Button, bL as ButtonLink, KB as Bx, d$ as CLEANUP_ENTRY, u$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, V1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, $$ as CONFIGURATION_KEY, GY as CONFIGURATION_URL, CAe as COOKIE_TEXT_LIMIT, F$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, j$ as CUSTOM_SOURCES_KEY, A$ as CUSTOM_SOURCES_URL, lG as CatalogViewToggle, BV as Checkbox, zV as CheckboxGlyph, AV as ChevronSortDown, qU as Chip, nW as CloudDownloadDialog, PH as CollapseChevron, NH as CollapseRegion, i$ as CollectionSummary, eTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, AQ as DIAGNOSTICS_KEY, $Te as DIRECTORY_TEMPLATE_ERROR, lW as DISCOVERY_SORTS, XU as DOWNLOADS_KEY, YU as DOWNLOADS_URL, dY as DUPLICATES_KEY, GJ as DataTableFooter, VJ as DataTableFrame, WJ as DataTableSort, BH as Disclosure, fye as DownloadsPanel, age as E3, tTe as ENTITY_REVIEW_KINDS, z1 as ENTRY_LINKS_HELP, B1 as ENTRY_LINKS_HINT, RB as Ea, Uge as EmptyFocusButton, fV as EmptyState, RH as ErrorText, Nge as Eu, ave as ExternalLink, Vr as FEEDS_KEY, $Y as FEED_SCHEDULE_KEY, c$ as FIELDSET_FOOT, VFe as FLOW_LABEL_X, Y3 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, M8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, NZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, QY as FOLLOW_SCHEDULE_KEY, cve as Fact, sve as FactList, zH as FieldLabel, x$ as Fieldset, b$ as FieldsetTitle, Epe as FilterGlass, pL as FilterGlassRows, fL as FilterIconButton, mL as FilterPill, ive as Footer, UB as Gg, hL as GlassPill, XB as HN, LH as Help, rV as HintText, NFe as IDLE_POLL_MS, Uwe as IDLE_REPAIR, cL as IconButton, MQ as IndexSearch, cV as Input, sV as InputBase, C$ as IssueRow, dM as JAV_LAYOUTS, P0 as JAV_RECOMMENDATION_GRID, wX as JUNK_KEY, vW as JavHeader, Lwe as KEEP_LABELS, Jhe as L1, Ur as LAYOUTS, R1 as LIBRARY_FOLDER_HELP, $V as LIBRARY_PROCESSING_KEY, LY as LINKS_KEY, RY as LINK_CHECK_KEY, TTe as LINK_KINDS, zY as LINK_PRUNE_KEY, nr as LOC, nV as Label, E$ as LibraryProcessingCard, kV as LibraryShortcuts, hH as LinkButton, vge as Lo, OH as LoadingDots, sge as M6, ATe as MEDIA_PROCESSING_KEY, tX as MEDIA_PROCESSING_URL, gY as MEDIA_REPAIR_KEY, hY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, PV as MENU_ITEM, FV as MENU_ITEM_INTERACTIVE, NV as MENU_POPOVER_SURFACE, bge as Ma, yH as MenuDialog, yK as MixCard, lV as ModalFrame, Sx as MotionConfigContext, eV as NR, S$ as NameLink, dV as Note, zge as OA, iX as ORGANIZE_KEY, f2 as ORGANIZE_PARAMETER_HINT, d2 as ORGANIZE_SCOPE_HINT, u2 as ORGANIZE_TEXT, sX as ORPHAN_RECORDS_KEY, m2 as ORPHAN_RECORDS_TEXT, VB as OV, EB as P7, xX as PERFORMER_DELETE_KEY, xye as PHASES, KY as PICK_FOLDER_URL, p$ as PLAIN_STAT_STRIP, O$ as PLAYLISTS_KEY, Oje as POLICY_COLUMNS, Aje as POLICY_COVER_NOTE, kje as POLICY_MATRIX, L1 as POLICY_SUMMARY, UJ as Pagination, T$ as PathLine, QB as Pf, LI as PillTabList, Uke as PlainStat, AH as Progress, xY as QUALITY_GOALS_KEY, ZB as RB, j0 as RELEASE_COLUMN_VISIBILITY_KEY, A0 as RELEASE_COLUMN_WIDTHS_KEY, uW as RELEASE_SORTS, iMe as RELEASE_SORT_COLUMNS, h$ as REPAIR_CARD_TEXT, _Y as REPAIR_LIBRARIES_KEY, fX as RESOURCE_APPLY_KEY, dX as RESOURCE_SCAN_KEY, p2 as RESOURCE_SYNC_TEXT, Yke as RESULT_PANEL, Xke as RESULT_SECTION, $we as REVIEW_CATEGORIES, CX as REVIEW_COUNTS_KEY, nTe as REVIEW_DECISION_LABELS, wY as REVIEW_KEY, TY as REVIEW_LABELS, DY as REVIEW_QUEUES, OY as REVIEW_QUEUE_LABELS, BG as RetryNote, Lge as Rf, tV as Rk, tve as Rows, yAe as SCRAPING_CHECK_URL, N$ as SCRAPING_COVER_URL, P$ as SCRAPING_KEY, vAe as SCRAPING_SETTINGS_URL, oU as SEGMENT, aU as SEGMENTED_TRACK, ZY as SETTINGS_KEY, qY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, b3 as STATS_KEY, Vke as STAT_STRIP, Hke as STAT_STRIP_SIX, eve as Section, Zke as SectionHeading, rve as SectionSkeleton, iU as SegmentedRadioGroup, Cve as SegmentedTabList, NG as Segments, HJ as Select, WU as Select$1, r1 as SelectField, GU as SelectItem, QJ as SelectionActions, Tj as SelectionDock, $J as SelectionPopover, FH as SettingsCard, $_e as SettingsRow, IH as SettingsSectionLabel, PG as Shuffle, fve as SiteLabel, dG as SortDirectionIcon, FG as SortKeys, pQ as SourceAvatar, WH as SourceLabel, VH as SourceMark, nve as Stack, Wke as StatCard, w$ as StatusLabel, Pge as Su, Q2 as Switch, KI as TASKS_KEY, SFe as TASTE_REFRESH_KEY, CFe as TASTE_WINDOWS, eX as THUMBNAIL_JOBS_KEY, EX as TRASH_KEY, ape as TRIGGER_LABELS, AJ as Table, eY as TableColumnControls, tY as TableColumnResizer, rY as TableSelectionHeader, $Q as TagManager, ove as TaskCenterLink, jH as TaskProgress, aV as TextField, iV as TextFieldContext, zB as Un, Rge as Uz, iW as WANTS_KEY, p4 as WantMagnets, Gg as WithPromise, AB as Wt, LB as Xc, $B as Xf, MB as Xl, jB as Xt, OB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, YB as _p, Ige as aB, Ei as addAlias, Ti as addSource, oW as addWant, dS as animate, B as apiGet, V as apiSend, aM as appSettingsStore, vEe as applyConfirmText, bX as applyLeftovers, _Ee as applyPlanText, bEe as applyText, lM as applyTheme, gy as asNumber, oEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, vq as autoResetPageIndex, _o as avatarInner, E3 as bandRows, eEe as baseName, Hwe as batchOperate, Cue as beginPlayerGuidePreview, Aj as boundedPreference, zwe as bulkCloudPreferences, gV as busyProps, Fge as cB, ZNe as cachedMagnetStates, zg as calcGeneratorVelocity, lTe as canApprove, mg as cancelFrame, dEe as candidateText, wU as cardClass, wM as cardRatio, RJ as catalogListSkeletonCellHtml, IB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, kTe as checkLine, Hi as checkReceipt, Ui as checkSummary, TAe as checkText, Ki as checkedText, oK as clickedBlank, G5 as closeDrawerAfterNav, jwe as cloudLocations, v0 as cloudProxySkeleton, GC as clsx, Cge as cn, av as collectMotionValues, Rq as columnVisibilityFeature, TJ as column_getCanSort, xJ as column_getSortFn, sTe as commonReviewSources, Af as configurationSection, DFe as configureTasteBrowser, ll as confirmModal, rpe as controlTask, eq as copyInstancePropertiesWithoutMemos, lo as coverUrl, kq as createColumnHelper, fAe as createPlaylist, Xi as credentialDone, m0 as credentialsSkeleton, vTe as currentReviewRow, q as cx, cge as d6, rge as d7, GB as dZ, hTe as decisionPayload, gTe as decisionReceipt, mTe as defaultChoice, SEe as deletePerformerVideos, mAe as deletePlaylist, S0 as devicesSkeleton, x as diagnosticHeaders, I1 as diagnosticsSkeleton, Aye as discoveryArtwork, dW as discoveryKey, Dye as discoveryScore, r9 as disposeStage, Fwe as distinctName, Bi as dropSources, Mge as du, Bwe as duplicateVictims, $I as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, _q as expandRowModel, yB as f1, bo as facePos, ei as feedIntervalText, z$ as fetchAmaneBridge, vi as fetchCheckJob, e1 as fetchConfiguration, R$ as fetchCoverJob, _i as fetchCredentials, M$ as fetchCustomSources, SX as fetchDeletePerformers, xEe as fetchDeletePlan, jQ as fetchDiagnostics, fW as fetchDiscoveries, pY as fetchDuplicates, $fe as fetchEarlier, NTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, MTe as fetchFollowSchedule, OX as fetchJunkSummary, sH as fetchLibraryProcessing, HY as fetchLinkCheck, UY as fetchLinkPrune, VY as fetchLinkStats, jTe as fetchMediaProcessing, vY as fetchMediaRepair, br as fetchMediaSources, aX as fetchOrganize, KTe as fetchOrganizeExample, cX as fetchOrphanRecords, ji as fetchPending, k$ as fetchPlaylists, SY as fetchQualityGoals, hW as fetchReleases, yY as fetchRepairLibraries, yi as fetchResolveJob, mX as fetchResourceApply, pX as fetchResourceScan, PY as fetchReview, DX as fetchReviewCounts, nX as fetchSettings, L$ as fetchSources, x3 as fetchStats, bi as fetchSuggestions, JI as fetchTasks, K3 as fetchTaste, OFe as fetchTasteJob, PTe as fetchThumbnailJobs, kX as fetchTrashSummary, aW as fetchWants, aTe as filterReviewRows, er as firstGrapheme, IK as flexRender, UFe as flowGraph, WFe as flowLabel, HPe as fmtCount, Jn as fmtDur, Xn as fmtSize, Qfe as foldByKind, hpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, _pe as followupDetail, Zfe as followupTally, pg as frame, wB as g4, Vq as getDefaultPaginationState, CM as gridLayout, li as groupByAuthor, mpe as groupFollowups, jY as groupReviewRows, hEe as hasChanges, hX as hasResourceRoots, XI as hasResultProblems, PFe as historySpan, bB as i2, MFe as importTasteExport, h0 as indexersSkeleton, Fg as interpolate, cW as invalidateWants, QI as isActive, $r as isBroken, qr as isLayout, gv as isMotionValue, EY as isReviewCategory, gpe as isRoutine, g0 as javBrowserSkeleton, I0 as javContentSkeleton, gM as javLayout, F0 as javTagSkeleton, DEe as junkBreakdown, hAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, S3 as known, qhe as l1, ege as l7, ppe as latestOfKind, $n as leadingGraphemes, eFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, TB as m7, WB as mM, Dn as mapLimit, Ai as markItem, D3 as max, QPe as mediumRows, epe as mergeFinished, O3 as min, CTe as mirrorText, Kwe as missingToolText, mY as mixedCloudPreferences, rL as momentText, fS as motion, sv as motionValue, rn as nameFallback, Ue as notifyManager, lge as oe, nEe as organizeOutcome, Q0 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Op as peachHistory, Op as peachHistory$1, pTe as pendingGenres, WPe as percentText, YTe as pickOrganizeFolder, f$ as plainStatClass, tEe as planSummary, C3 as playedFor, KPe as playedItemUrl, qI as pollInterval, Ys as popCount, dAe as posterUrl, txe as previewLibraryColor, JTe as previewOrganize, Ywe as previewUrl, dpe as problemDestination, nH as processingActive, eL as progressText, UH as providerIcon, OTe as pruneText, _X as purgeCount, sEe as purgeOrphan, qB as pv, jge as qE, H as queryClient, xB as r2, BFe as radarRows, YPe as radialArc, XPe as radialBarSize, JPe as radialCeiling, qPe as radialSlices, zN as randomId, RFe as rankDetail, zFe as rankShares, T3 as reachedShare, tL as readableErrorHeadline, Oye as recommendationScore, yTe as recordGenre, lEe as recordsText, gAe as recreatePlaylist, lAe as refreshPlaylists, El as relayoutCovers, M0 as releaseColumns, pW as releaseFilters, mW as releaseKey, Vi as reloadFollowManage, STe as reloadReview, Nje as rememberShape, ZTe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, jFe as removeTasteSource, sW as removeWants, Oi as renameAliasGroup, pAe as renamePlaylist, Se as replaceEqualDeep, nFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, XK as require_with_selector, wye as resetWants, mr as resolveFollowSort, Hg as resolveStartTime, F_e as restartEffectText, uAe as resumeAssetId, iTe as reviewGroupingOptions, AY as reviewQueueData, kY as reviewQueueOf, EEe as reviewSummary, oTe as reviewWindow, dTe as rowEvidence, NY as rowFieldName, Jq as rowPaginationFeature, hJ as rowSelectionFeature, OJ as rowSortingFeature, MY as rowSubject, fTe as rowTags, uTe as rowTitle, Zhe as s5, ki as saveCredential, gEe as scanLine, zTe as schedulePollInterval, Eye as searchNote, cTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, xTe as settleReviewRows, Pwe as sharedNamePrefix, kp as shellNavigate, b8 as showToast, Bn as siteMarkUrl, cq as skipFirstRun, FI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, yEe as sourceMeta, Bs as spinnerHtml, Ng as spring, mV as spriteGlyph, xi as startCheck, ETe as startLinkCheck, DTe as startLinkPrune, XTe as startOrganize, Si as startResolve, pEe as startResourceApply, fEe as startResourceScan, AFe as startTasteRefresh, Bke as statCardClass, spe as statusLabel, Gwe as statusLine, Qr as statusText, TM as storeJavLayout, _Te as submitDecision, iL as summaryItems, Aq as tableFeatures, lq as tableMemo, di as tableRows, upe as taskIssues, fpe as taskSubject, q3 as tasteDate, IFe as tasteDimensions, FFe as tasteHours, G3 as tasteKey, TFe as tasteRefetchInterval, EFe as tasteTime, VI as textLang, k0 as tierPlaceholdersHtml, rh as time, mge as tl, hi as toggleGroup, J3 as topScores, Tge as um, yge as uo, gH as useAction, OZ as useBackgroundJob, cG as useCatalogView, IU as useClientUpdates, hm as useConstant, aL as useEntityNames, dL as useHorizontalScroller, gm as useIsomorphicLayoutEffect, aK as useLibraryTints, It as useMutation, VV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, eS as useReducedMotion, RTe as useRunSchedule, ITe as useSaveFollowSchedule, rX as useSaveSettings, BTe as useSaveThumbnailMode, kJ as useTable, JJ as useTablePreferences, vL as useViewGlide, Vwe as victimBytes, hge as vl, Tye as wantName, GPe as watchNote, w3 as watchedShare, Ac as wireHorizontalScroller, QTe as withOrganizeJob, kye as writeJavQuery, oge as z3 };-//# debugId=b89a8277-b2cf-4ea3-a549-4ff73cd867c8\ No newline at end of file+//# debugId=20b7dbd8-19aa-4f3d-a345-c6aab3de9f31\ No newline at end of filediff --git a/web/dist/peach-app.taste-page-CspPdKW5.js b/web/dist/peach-app.taste-page-CspPdKW5.jsnew file mode 100644index 000000000..34229c90f--- /dev/null+++ b/web/dist/peach-app.taste-page-CspPdKW5.js@@ -0,0 +1,2484 @@+(function() {+ try {+ var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "96611576-f0a2-497f-a0aa-23d03e23b489", e._sentryDebugIdIdentifier = "sentry-dbid-96611576-f0a2-497f-a0aa-23d03e23b489");+ } catch {}+})();+import { ActivePoints as e, AnimatedItems as t, CHART_CARD as n, CHART_COLORS as r, CartesianLabelListContextProvider as i, CategoryTick as a, ChartBackground as o, ChartContainer as s, ChartHead as c, ChartLegend as l, ChartLegendContent as u, ChartTip as d, ChartTooltip as f, ChartTooltipContent as p, DefaultZIndexes as m, Dots as h, EvilBarChart as g, LabelListFromLabelProp as _, Layer as v, LoadingIndicator as y, PolarChart as b, PolarLabelContextProvider as x, PolarLabelFromLabelProp as S, RegisterGraphicalItemId as C, SetPolarGraphicalItem as ee, SetPolarLegendPayload as w, SetTooltipEntrySettings as T, Text as E, ZIndexLayer as D, adaptEventsOfChild as te, addRadiusAxis as ne, arrayTooltipSearcher as re, categoryAxisWidth as ie, cn as ae, createSelector as O, defaultPolarChartProps as oe, defaultPolarRadiusAxisProps as se, fitLabel as ce, getAxisTypeBasedOnLayout as le, getBandSizeOfAxis as ue, getClassNameFromUnknown as de, getColorsCount as fe, getTooltipNameProp as pe, getValueByDataKey as me, identity as he, interpolate as ge, isArrayLike as _e, isCategoricalAxis as ve, isNullish as ye, iteratee as be, matchAnimationItems as xe, matchByIndex as Se, noop as Ce, polarToCartesian as k, removeRadiusAxis as we, resolveDefaultProps as A, selectAngleAxis as Te, selectChartDataAndAlwaysIgnoreIndexes as Ee, selectChartLayout as De, selectPolarViewBox as Oe, selectRadiusAxis as ke, selectUnfilteredPolarItems as Ae, svgPropertiesAndEvents as je, svgPropertiesNoEvents as j, svgPropertiesNoEventsFromUnknown as Me, tone as Ne, useAnimationCallbacks as Pe, useAnimationStartSnapshot as Fe, useAppDispatch as Ie, useAppSelector as M, useIsPanorama as Le, usePolarChartLayout as Re } from "./peach-app.chart-tip-CRxYp6KT.js";+import { $542a13ca2fa5b484$export$5b6b19405a83ff9d as ze, $b4f18e3395fe64d7$export$3d96ec278d3efce4 as Be, $b4f18e3395fe64d7$export$3e41faf802a29e71 as Ve, $b4f18e3395fe64d7$export$b2539bed5023c21c as He, Button as N, ButtonLink as Ue, Disclosure as We, E3 as Ge, EmptyState as P, FLOW_LABEL_X as Ke, FLOW_VIEWBOX as qe, Gg as Je, IDLE_POLL_MS as Ye, Input as Xe, M6 as Ze, MENU_ITEM as Qe, MENU_ITEM_INTERACTIVE as $e, MENU_POPOVER_SURFACE as et, MenuDialog as tt, Note as F, OV as nt, Progress as rt, Rf as it, SEGMENT as at, SEGMENTED_TRACK as ot, STAT_STRIP as st, SegmentedTabList as ct, Select$1 as lt, SelectItem as ut, StatCard as dt, TASTE_REFRESH_KEY as ft, TASTE_WINDOWS as pt, TaskProgress as mt, Wt as ht, Xt as gt, _8 as _t, __toESM as vt, aB as yt, avatarInner as bt, busyProps as I, cB as xt, cardClass as L, clsx as R, configureTasteBrowser as St, confirmModal as Ct, cx as wt, errorMessage as z, f1 as Tt, fetchTaste as Et, fetchTasteJob as Dt, firstGrapheme as Ot, flowGraph as kt, flowLabel as At, fmtSize as jt, g4 as Mt, historySpan as Nt, importTasteExport as Pt, keepPreviousData as Ft, mM as It, pv as B, queryClient as V, r2 as Lt, radarRows as Rt, rankDetail as zt, rankShares as Bt, removeTasteSource as Vt, require_jsx_runtime as Ht, require_react as Ut, siteMarkUrl as Wt, startTasteRefresh as Gt, statCardClass as Kt, tasteDate as qt, tasteDimensions as Jt, tasteHours as Yt, tasteKey as H, tasteRefetchInterval as Xt, tasteTime as Zt, topScores as Qt, uo as $t, useBackgroundJob as en, useMutation as tn, useQuery as nn } from "./peach-app.js";+import { Page as rn } from "./peach-app.page-QAncjzM1.js";+import { LEGACY_AVATAR_IMG as an } from "./peach-app.legacy-avatar-NSITxLRS.js";+import { ActivityHeat as on, BAR_DOMAIN as sn, ExpandableRanking as cn, PolarAngleAxis as ln, Polygon as un, barLabel as dn, selectPolarAxisScale as fn, selectPolarAxisTicks as U } from "./peach-app.expandable-ranking-dFA65P9N.js";+import { BrowserIcon as pn } from "./peach-app.browser-icon-N9Od-bAf.js";+var mn = O([(e, t) => U(e, "angleAxis", t, !1)], (e) => {+ if (e) return e.map((e) => e.coordinate);+}), hn = O([(e, t) => U(e, "radiusAxis", t, !1)], (e) => {+ if (e) return e.map((e) => e.coordinate);+}), W = /* @__PURE__ */ vt(Ut()), gn = [+ "gridType",+ "radialLines",+ "angleAxisId",+ "radiusAxisId",+ "cx",+ "cy",+ "innerRadius",+ "outerRadius",+ "polarAngles",+ "polarRadius",+ "zIndex"+];+function _n(e, t) {+ if (e == null) return {};+ var n, r, i = vn(e, t);+ if (Object.getOwnPropertySymbols) {+ var a = Object.getOwnPropertySymbols(e);+ for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);+ }+ return i;+}+function vn(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }+ return n;+}+function G() {+ return G = Object.assign ? Object.assign.bind() : function(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t];+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);+ }+ return e;+ }, G.apply(null, arguments);+}+function yn(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function bn(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? yn(Object(n), !0).forEach(function(t) {+ xn(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yn(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function xn(e, t, n) {+ return (t = Sn(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function Sn(e) {+ var t = Cn(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function Cn(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+var wn = (e, t, n, r) => {+ var i = "";+ return r.forEach((r, a) => {+ var o = k(t, n, e, r);+ i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;+ }), i += "Z", i;+}, Tn = (e) => {+ var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.polarAngles, o = e.radialLines;+ if (!a || !a.length || !o) return null;+ var s = bn({}, j(e));+ return /*#__PURE__*/ W.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {+ var a = k(t, n, r, e), o = k(t, n, i, e);+ return /*#__PURE__*/ W.createElement("line", G({ key: `line-${e}` }, s, {+ x1: a.x,+ y1: a.y,+ x2: o.x,+ y2: o.y+ }));+ }));+}, En = (e) => {+ var t = e.cx, n = e.cy, r = e.radius, i = bn({}, j(e));+ return /*#__PURE__*/ W.createElement("circle", G({}, i, {+ className: R("recharts-polar-grid-concentric-circle", e.className),+ cx: t,+ cy: n,+ r+ }));+}, Dn = (e) => {+ var t = e.radius, n = bn({}, j(e));+ return /*#__PURE__*/ W.createElement("path", G({}, n, {+ className: R("recharts-polar-grid-concentric-polygon", e.className),+ d: wn(t, e.cx, e.cy, e.polarAngles)+ }));+}, On = (e) => {+ var t = e.polarRadius, n = e.gridType;+ if (!t || !t.length) return null;+ var r = Math.max(...t), i = e.fill && e.fill !== "none";+ return /*#__PURE__*/ W.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ W.createElement(En, G({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ W.createElement(Dn, G({}, e, { radius: r })), t.map((t, r) => {+ var i = r;+ return n === "circle" ? /*#__PURE__*/ W.createElement(En, G({ key: i }, e, {+ fill: "none",+ radius: t+ })) : /*#__PURE__*/ W.createElement(Dn, G({ key: i }, e, {+ fill: "none",+ radius: t+ }));+ }));+}, kn = {+ angleAxisId: 0,+ radiusAxisId: 0,+ gridType: "polygon",+ radialLines: !0,+ zIndex: m.grid,+ stroke: "#ccc",+ strokeWidth: 1,+ fill: "none"+}, An = (e) => {+ var t = A(e, kn), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = _n(t, gn), m = M(Oe), h = M((e) => mn(e, i)), g = M((e) => hn(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;+ if (_ == null || v == null) return null;+ var y = bn({+ cx: m?.cx ?? o ?? 0,+ cy: m?.cy ?? s ?? 0,+ innerRadius: m?.innerRadius ?? c ?? 0,+ outerRadius: m?.outerRadius ?? l ?? 0,+ polarAngles: _,+ polarRadius: v,+ zIndex: f+ }, p);+ return y.outerRadius <= 0 ? null : /*#__PURE__*/ W.createElement(D, { zIndex: y.zIndex }, /*#__PURE__*/ W.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ W.createElement(On, G({+ gridType: n,+ radialLines: r+ }, y, {+ polarAngles: _,+ polarRadius: v+ })), /*#__PURE__*/ W.createElement(Tn, G({+ gridType: n,+ radialLines: r+ }, y, {+ polarAngles: _,+ polarRadius: v+ }))));+};+An.displayName = "PolarGrid";+// node_modules/es-toolkit/dist/compat/_internal/toArray.mjs+function jn(e) {+ return Array.isArray(e) ? e : Array.from(e);+}+// node_modules/es-toolkit/dist/compat/math/maxBy.mjs+function Mn(e, t = he) {+ if (e == null) return;+ let n = jn(e);+ if (n.length === 0) return;+ let r = be(t), i, a;+ for (let e = 0; e < n.length; e++) {+ let t = n[e], o = r(t, e, n);+ o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);+ }+ return i;+}+// node_modules/es-toolkit/dist/compat/math/minBy.mjs+function Nn(e, t = he) {+ if (e == null) return;+ let n = jn(e);+ if (n.length === 0) return;+ let r = be(t), i, a;+ for (let e = 0; e < n.length; e++) {+ let t = n[e], o = r(t, e, n);+ o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);+ }+ return i;+}+// node_modules/recharts/es6/polar/PolarRadiusAxis.js+var Pn = ["type"], Fn = [+ "cx",+ "cy",+ "angle",+ "axisLine"+], In = [+ "angle",+ "tickFormatter",+ "stroke",+ "tick"+];+function K() {+ return K = Object.assign ? Object.assign.bind() : function(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t];+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);+ }+ return e;+ }, K.apply(null, arguments);+}+function Ln(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function q(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? Ln(Object(n), !0).forEach(function(t) {+ Rn(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ln(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function Rn(e, t, n) {+ return (t = zn(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function zn(e) {+ var t = Bn(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function Bn(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+function Vn(e, t) {+ if (e == null) return {};+ var n, r, i = Hn(e, t);+ if (Object.getOwnPropertySymbols) {+ var a = Object.getOwnPropertySymbols(e);+ for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);+ }+ return i;+}+function Hn(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }+ return n;+}+var Un = "radiusAxis";+function Wn(e) {+ var t = Ie(), n = Re(), r = (0, W.useMemo)(() => {+ var t = e.type, r = Vn(e, Pn), i = le(n, "radiusAxis", t);+ if (i != null) return q(q({}, r), {}, { type: i });+ }, [e, n]);+ return (0, W.useEffect)(() => r == null ? Ce : (t(ne(r)), () => {+ t(we(r));+ }), [t, r]), null;+}+var Gn = (e, t, n, r) => {+ var i = e.coordinate;+ return k(n, r, i, t);+}, Kn = (e) => {+ var t;+ switch (e) {+ case "left":+ t = "end";+ break;+ case "right":+ t = "start";+ break;+ default: t = "middle";+ }+ return t;+}, qn = (e, t, n, r) => {+ var i = Mn(r, (e) => e.coordinate || 0);+ return {+ cx: t,+ cy: n,+ startAngle: e,+ endAngle: e,+ innerRadius: Nn(r, (e) => e.coordinate || 0)?.coordinate || 0,+ outerRadius: i?.coordinate || 0,+ clockWise: !1+ };+}, Jn = (e, t) => {+ var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = Vn(e, Fn), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = k(n, r, s[0], i), l = k(n, r, s[1], i), u = q(q(q({}, j(o)), {}, { fill: "none" }, j(a)), {}, {+ x1: c.x,+ y1: c.y,+ x2: l.x,+ y2: l.y+ });+ return /*#__PURE__*/ W.createElement("line", K({ className: "recharts-polar-radius-axis-line" }, u));+}, Yn = (e, t, n) => /*#__PURE__*/ W.isValidElement(e) ? /*#__PURE__*/ W.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ W.createElement(E, K({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Xn = (e, t) => {+ var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = Vn(e, In), s = Kn(e.orientation), c = j(o), l = Me(a), u = t.map((t, o) => {+ var u = Gn(t, e.angle, e.cx, e.cy), d = q(q(q(q({+ textAnchor: s,+ transform: `rotate(${90 - n}, ${u.x}, ${u.y})`+ }, c), {}, {+ stroke: "none",+ fill: i+ }, l), {}, { index: o }, u), {}, { payload: t });+ return /*#__PURE__*/ W.createElement(v, K({+ className: R("recharts-polar-radius-axis-tick", de(a)),+ key: `tick-${t.coordinate}`+ }, te(e, t, o)), Yn(a, d, r ? r(t.value, o) : t.value));+ });+ return /*#__PURE__*/ W.createElement(v, { className: "recharts-polar-radius-axis-ticks" }, u);+}, Zn = (e) => {+ var t = e.radiusAxisId, n = M(Oe), r = M((e) => fn(e, "radiusAxis", t)), i = M((e) => U(e, "radiusAxis", t, !1));+ if (n == null || !i || !i.length || r == null) return null;+ var a = q(q({}, e), {}, { scale: r }, n), o = a.tick, s = a.axisLine;+ return /*#__PURE__*/ W.createElement(D, { zIndex: a.zIndex }, /*#__PURE__*/ W.createElement(v, { className: R("recharts-polar-radius-axis", Un, a.className) }, s && Jn(a, i), o && Xn(a, i), /*#__PURE__*/ W.createElement(x, qn(a.angle, a.cx, a.cy, i), /*#__PURE__*/ W.createElement(S, { label: a.label }), a.children)));+};+function Qn(e) {+ var t = A(e, se);+ return /*#__PURE__*/ W.createElement(W.Fragment, null, /*#__PURE__*/ W.createElement(Wn, {+ domain: t.domain,+ id: t.radiusAxisId,+ scale: t.scale,+ type: t.type,+ dataKey: t.dataKey,+ unit: void 0,+ name: t.name,+ allowDuplicatedCategory: t.allowDuplicatedCategory,+ allowDataOverflow: t.allowDataOverflow,+ reversed: t.reversed,+ includeHidden: t.includeHidden,+ allowDecimals: t.allowDecimals,+ niceTicks: t.niceTicks ?? "auto",+ ticks: t.ticks,+ tickCount: t.tickCount,+ tick: t.tick+ }), /*#__PURE__*/ W.createElement(Zn, t));+}+Qn.displayName = "PolarRadiusAxis";+// node_modules/es-toolkit/dist/array/last.mjs+function $n(e) {+ return e[e.length - 1];+}+// node_modules/es-toolkit/dist/compat/array/last.mjs+function er(e) {+ if (_e(e) && e.length !== 0) return $n(jn(e));+}+// node_modules/recharts/es6/state/selectors/radarSelectors.js+function tr(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function nr(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? tr(Object(n), !0).forEach(function(t) {+ rr(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tr(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function rr(e, t, n) {+ return (t = ir(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function ir(e) {+ var t = ar(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function ar(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+var or = (e, t) => fn(e, "radiusAxis", t), sr = O([or], (e) => {+ if (e != null) return { scale: e };+}), cr = O([ke, or], (e, t) => {+ if (e != null && t != null) return nr(nr({}, e), {}, { scale: t });+}), lr = (e, t, n, r) => U(e, "radiusAxis", t, r), ur = (e, t, n) => Te(e, n), dr = (e, t, n) => fn(e, "angleAxis", n), fr = O([ur, dr], (e, t) => {+ if (e != null && t != null) return nr(nr({}, e), {}, { scale: t });+}), pr = (e, t, n, r) => U(e, "angleAxis", n, r), mr = O([+ ur,+ dr,+ Oe+], (e, t, n) => {+ if (n != null && t != null) return {+ scale: t,+ type: e.type,+ dataKey: e.dataKey,+ cx: n.cx,+ cy: n.cy+ };+}), hr = (e, t, n, r, i) => i, gr = O([+ De,+ cr,+ lr,+ fr,+ pr+], (e, t, n, r, i) => ve(e, "radiusAxis") ? ue(t, n, !1) : ue(r, i, !1)), _r = O([Ae, hr], (e, t) => {+ if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;+}), vr = O([+ sr,+ mr,+ Ee,+ _r,+ gr+], (e, t, n, r, i) => {+ var a = n.chartData, o = n.dataStartIndex, s = n.dataEndIndex;+ if (e != null && t != null && a != null && i != null && r != null) return Ar({+ radiusAxis: e,+ angleAxis: t,+ displayedData: a.slice(o, s + 1),+ dataKey: r,+ bandSize: i+ });+}), yr = ["id"];+function J() {+ return J = Object.assign ? Object.assign.bind() : function(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t];+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);+ }+ return e;+ }, J.apply(null, arguments);+}+function br(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function Y(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? br(Object(n), !0).forEach(function(t) {+ xr(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : br(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function xr(e, t, n) {+ return (t = Sr(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function Sr(e) {+ var t = Cr(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function Cr(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+function wr(e, t) {+ if (e == null) return {};+ var n, r, i = Tr(e, t);+ if (Object.getOwnPropertySymbols) {+ var a = Object.getOwnPropertySymbols(e);+ for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);+ }+ return i;+}+function Tr(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }+ return n;+}+function Er(e, t) {+ return e && e !== "none" ? e : t;+}+var Dr = (e) => {+ var t = e.dataKey, n = e.name, r = e.stroke, i = e.fill, a = e.legendType;+ return [{+ inactive: e.hide,+ dataKey: t,+ type: a,+ color: Er(r, i),+ value: pe(n, t),+ payload: e+ }];+}, Or = /*#__PURE__*/ W.memo((e) => {+ var t = e.dataKey, n = e.stroke, r = e.strokeWidth, i = e.fill, a = e.name, o = e.hide, s = e.tooltipType, c = e.id, l = {+ dataDefinedOnItem: void 0,+ getPosition: Ce,+ settings: {+ stroke: n,+ strokeWidth: r,+ fill: i,+ nameKey: void 0,+ dataKey: t,+ name: pe(a, t),+ hide: o,+ type: s,+ color: Er(n, i),+ unit: "",+ graphicalItemId: c+ }+ };+ return /*#__PURE__*/ W.createElement(T, { tooltipEntrySettings: l });+});+function kr(e) {+ var t = e.points, n = e.props, r = n.dot, i = n.dataKey;+ n.id;+ var a = wr(n, yr), o = j(a);+ return /*#__PURE__*/ W.createElement(h, {+ points: t,+ dot: r,+ className: "recharts-radar-dots",+ dotClassName: "recharts-radar-dot",+ dataKey: i,+ baseProps: o+ });+}+function Ar(e) {+ var t = e.radiusAxis, n = e.angleAxis, r = e.displayedData, i = e.dataKey, a = e.bandSize, o = n.cx, s = n.cy, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;+ r.forEach((e, r) => {+ var a = me(e, n.dataKey, r), d = me(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? er(d) : d, m = ye(p) ? 0 : t.scale.map(p) ?? 0;+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(Y(Y({}, k(o, s, m, f)), {}, {+ name: a,+ value: d,+ cx: o,+ cy: s,+ radius: m,+ angle: f,+ payload: e+ }));+ });+ var d = [];+ return c && l.forEach((e) => {+ if (Array.isArray(e.value)) {+ var n = e.value[0], r = ye(n) ? 0 : t.scale.map(n) ?? 0;+ d.push(Y(Y({}, e), {}, { radius: r }, k(o, s, r, e.angle)));+ } else d.push(e);+ }), {+ points: l,+ isRange: c,+ baseLinePoints: d+ };+}+function jr(e) {+ var t = e.showLabels, n = e.points, r = e.children, a = n.map((e) => {+ var t = {+ x: e.x,+ y: e.y,+ width: 0,+ lowerWidth: 0,+ upperWidth: 0,+ height: 0+ };+ return Y(Y({}, t), {}, {+ value: e.value ?? "",+ payload: e.payload,+ parentViewBox: void 0,+ viewBox: t,+ fill: void 0+ });+ });+ return /*#__PURE__*/ W.createElement(i, { value: t ? a : void 0 }, r);+}+function Mr(e) {+ var t = e.points, n = e.baseLinePoints, r = e.props;+ if (t == null) return null;+ var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ W.isValidElement(i) ? /*#__PURE__*/ W.cloneElement(i, Y(Y({}, r), {}, { points: t })) : typeof i == "function" ? i(Y(Y({}, r), {}, { points: t })) : /*#__PURE__*/ W.createElement(un, J({}, je(r), {+ onMouseEnter: (e) => {+ var t = r.onMouseEnter;+ t && t(r, e);+ },+ onMouseLeave: (e) => {+ var t = r.onMouseLeave;+ t && t(r, e);+ },+ points: t,+ baseLinePoints: a ? n : void 0,+ connectNulls: o+ }));+ return /*#__PURE__*/ W.createElement(v, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ W.createElement(kr, {+ props: r,+ points: t+ }));+}+var Nr = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [Y(Y({}, e.next), {}, {+ x: ge(e.prev.x, e.next.x, t),+ y: ge(e.prev.y, e.next.y, t)+})] : [Y(Y({}, e.next), {}, {+ x: ge(e.next.cx, e.next.x, t),+ y: ge(e.next.cy, e.next.y, t)+})]);+function Pr(e) {+ var n = e.props, r = e.previousPointsRef, i = e.previousBaseLinePointsRef, a = n.points, o = n.baseLinePoints, s = n.isAnimationActive, c = n.animationBegin, l = n.animationDuration, u = n.animationEasing, d = n.animationMatchBy, f = n.animationInterpolateFn, p = n.onAnimationStart, m = n.onAnimationEnd, h = Fe(n, i), g = h.startValue, v = xe(g ?? null, o, d), y = Pe(p, m), b = y.isAnimating, x = y.handleAnimationStart, S = y.handleAnimationEnd, C = Re();+ return C == null ? null : /*#__PURE__*/ W.createElement(jr, {+ showLabels: !b,+ points: a+ }, /*#__PURE__*/ W.createElement(t, {+ animationInput: n,+ animationIdPrefix: "recharts-radar-",+ items: a,+ previousItemsRef: r,+ isAnimationActive: s,+ animationBegin: c,+ animationDuration: l,+ animationEasing: u,+ onAnimationStart: x,+ onAnimationEnd: S,+ animationInterpolateFn: f,+ animationMatchBy: d,+ layout: C+ }, (e, t) => {+ var r = t === 1 ? o : f(v, t, C);+ return h.syncStepValue(r, t), /*#__PURE__*/ W.createElement(Mr, {+ points: e,+ baseLinePoints: r,+ props: n+ });+ }), /*#__PURE__*/ W.createElement(_, { label: n.label }), n.children);+}+function Fr(e) {+ var t = (0, W.useRef)(void 0), n = (0, W.useRef)(void 0);+ return /*#__PURE__*/ W.createElement(Pr, {+ props: e,+ previousPointsRef: t,+ previousBaseLinePointsRef: n+ });+}+var Ir = {+ activeDot: !0,+ angleAxisId: 0,+ animationBegin: 0,+ animationDuration: 1500,+ animationEasing: "ease",+ animationMatchBy: Se,+ animationInterpolateFn: Nr,+ dot: !1,+ hide: !1,+ isAnimationActive: "auto",+ label: !1,+ legendType: "rect",+ radiusAxisId: 0,+ zIndex: m.area+};+function Lr(t) {+ var n = t.hide, r = t.className, i = t.points;+ if (n) return null;+ var a = R("recharts-radar", r);+ return /*#__PURE__*/ W.createElement(D, { zIndex: t.zIndex }, /*#__PURE__*/ W.createElement(v, { className: a }, /*#__PURE__*/ W.createElement(Fr, t)), /*#__PURE__*/ W.createElement(e, {+ points: i,+ mainColor: Er(t.stroke, t.fill),+ itemDataKey: t.dataKey,+ activeDot: t.activeDot+ }));+}+function Rr(e) {+ var t = Le(), n = M((n) => vr(n, e.radiusAxisId, e.angleAxisId, t, e.id));+ return n?.points == null ? null : /*#__PURE__*/ W.createElement(Lr, J({}, e, {+ points: n?.points,+ baseLinePoints: n?.baseLinePoints,+ isRange: n?.isRange+ }));+}+function zr(e) {+ var t = A(e, Ir);+ return /*#__PURE__*/ W.createElement(C, {+ id: t.id,+ type: "radar"+ }, (e) => /*#__PURE__*/ W.createElement(W.Fragment, null, /*#__PURE__*/ W.createElement(ee, {+ type: "radar",+ id: e,+ data: void 0,+ dataKey: t.dataKey,+ hide: t.hide,+ angleAxisId: t.angleAxisId,+ radiusAxisId: t.radiusAxisId+ }), /*#__PURE__*/ W.createElement(w, { legendPayload: Dr(t) }), /*#__PURE__*/ W.createElement(Or, {+ dataKey: t.dataKey,+ stroke: t.stroke,+ strokeWidth: t.strokeWidth,+ fill: t.fill,+ name: t.name,+ hide: t.hide,+ tooltipType: t.tooltipType,+ id: e+ }), /*#__PURE__*/ W.createElement(Rr, J({}, t, { id: e }))));+}+zr.displayName = "Radar";+// node_modules/recharts/es6/chart/RadarChart.js+function Br(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function Vr(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? Br(Object(n), !0).forEach(function(t) {+ Hr(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Br(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function Hr(e, t, n) {+ return (t = Ur(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function Ur(e) {+ var t = Wr(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function Wr(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+var Gr = ["axis"], Kr = Vr(Vr({}, oe), {}, {+ layout: "centric",+ startAngle: 90,+ endAngle: -270+}), qr = /*#__PURE__*/ (0, W.forwardRef)((e, t) => {+ var n = A(e, Kr);+ return /*#__PURE__*/ W.createElement(b, {+ chartName: "RadarChart",+ defaultTooltipEventType: "axis",+ validateTooltipEventTypes: Gr,+ tooltipPayloadSearcher: re,+ categoricalChartProps: n,+ ref: t+ });+}), X = Ht(), Jr = W.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {+ let c = W.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;+ if (e === void 0 || t === void 0) return null;+ switch (o) {+ case "border": return /* @__PURE__ */ (0, X.jsx)(Xr, {+ cx: e,+ cy: t,+ dotId: c,+ fillOpacity: a,+ gradientUrl: l,+ className: i,+ maskId: s+ });+ case "colored-border": return /* @__PURE__ */ (0, X.jsx)(Zr, {+ cx: e,+ cy: t,+ dotId: c,+ fillOpacity: a,+ gradientUrl: l,+ className: i,+ maskId: s+ });+ default: return /* @__PURE__ */ (0, X.jsx)(Yr, {+ cx: e,+ cy: t,+ dotId: c,+ fillOpacity: a,+ gradientUrl: l,+ className: i,+ maskId: s+ });+ }+}), Yr = W.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, X.jsxs)("g", {+ className: a,+ mask: o ? `url(#${o})` : void 0,+ children: [/* @__PURE__ */ (0, X.jsx)("defs", { children: /* @__PURE__ */ (0, X.jsx)("clipPath", {+ id: `dot-clip-${n}`,+ children: /* @__PURE__ */ (0, X.jsx)("circle", {+ cx: e,+ cy: t,+ r: 3+ })+ }) }), /* @__PURE__ */ (0, X.jsx)("rect", {+ x: "0",+ y: t - 3,+ width: "100%",+ height: 6,+ fill: i,+ fillOpacity: r,+ clipPath: `url(#dot-clip-${n})`+ })]+}));+Yr.displayName = "DefaultDot";+var Xr = W.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, X.jsxs)("g", {+ className: ae(a, "text-background"),+ mask: o ? `url(#${o})` : void 0,+ children: [+ /* @__PURE__ */ (0, X.jsx)("defs", { children: /* @__PURE__ */ (0, X.jsx)("clipPath", {+ id: `dot-clip-${n}`,+ children: /* @__PURE__ */ (0, X.jsx)("circle", {+ cx: e,+ cy: t,+ r: 6+ })+ }) }),+ /* @__PURE__ */ (0, X.jsx)("circle", {+ cx: e,+ cy: t,+ r: 6,+ fill: "currentColor"+ }),+ /* @__PURE__ */ (0, X.jsx)("rect", {+ x: "0",+ y: t - (6 - 5 / 2),+ width: "100%",+ height: 7,+ fill: i,+ fillOpacity: r,+ clipPath: `url(#dot-clip-inner-${n})`+ }),+ /* @__PURE__ */ (0, X.jsx)("defs", { children: /* @__PURE__ */ (0, X.jsx)("clipPath", {+ id: `dot-clip-inner-${n}`,+ children: /* @__PURE__ */ (0, X.jsx)("circle", {+ cx: e,+ cy: t,+ r: 6 - 5 / 2+ })+ }) })+ ]+}));+Xr.displayName = "PrimaryBorderDot";+var Zr = W.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, X.jsxs)("g", {+ className: ae(a, "text-background"),+ mask: o ? `url(#${o})` : void 0,+ children: [+ /* @__PURE__ */ (0, X.jsx)("defs", { children: /* @__PURE__ */ (0, X.jsx)("clipPath", {+ id: `dot-clip-${n}`,+ children: /* @__PURE__ */ (0, X.jsx)("circle", {+ cx: e,+ cy: t,+ r: 3.5+ })+ }) }),+ /* @__PURE__ */ (0, X.jsx)("rect", {+ x: "0",+ y: t - 3 - 1 / 2,+ width: "100%",+ height: 7,+ fill: i,+ fillOpacity: r,+ clipPath: `url(#dot-clip-${n})`+ }),+ /* @__PURE__ */ (0, X.jsx)("circle", {+ cx: e,+ cy: t,+ r: 3 - 1 / 2,+ fill: "currentColor"+ })+ ]+}));+Zr.displayName = "ColoredBorderDot";+// src/react/evilcharts/registry/charts/recharts-radar-chart.tsx+var Qr = 1, $r = .3, ei = 6, ti = 1500, ni = "value", ri = (0, W.createContext)(null);+function Z() {+ let e = (0, W.use)(ri);+ if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");+ return e;+}+function Q({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: c = null, onSelectionChange: l, isLoading: u = !1, loadingPoints: d }) {+ let f = (0, W.useId)().replace(/:/g, ""), [p, m] = (0, W.useState)(c), h = yi(u, d), g = (0, W.useCallback)((e) => {+ m(e), l?.(e);+ }, [l]), _ = (0, W.useMemo)(() => ({+ config: e,+ isLoading: u,+ selectedDataKey: p,+ selectDataKey: g+ }), [+ e,+ u,+ p,+ g+ ]);+ return /* @__PURE__ */ (0, X.jsx)(ri, {+ value: _,+ children: /* @__PURE__ */ (0, X.jsxs)(s, {+ className: r,+ config: e,+ children: [/* @__PURE__ */ (0, X.jsx)(y, { isLoading: u }), /* @__PURE__ */ (0, X.jsxs)(qr, {+ id: f,+ data: u ? h : t,+ ...i,+ children: [+ a && /* @__PURE__ */ (0, X.jsx)(o, { variant: a }),+ n,+ u && /* @__PURE__ */ (0, X.jsx)(bi, {})+ ]+ })]+ })+ });+}+function ii({ dataKey: e, variant: t = "filled", fillOpacity: n = $r, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = Z(), d = (0, W.useId)().replace(/:/g, "");+ if (c) return null;+ let f = i && l !== null && l !== e, p = {+ stroke: f ? .2 : 1,+ fill: f ? .1 : 1,+ dot: f ? .2 : 1+ }, m = t === "filled", { dot: h, activeDot: g } = fi(a, d, e, p.dot);+ return /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [/* @__PURE__ */ (0, X.jsx)(zr, {+ dataKey: e,+ stroke: `url(#${d}-radar-stroke-${e})`,+ strokeOpacity: p.stroke,+ strokeWidth: Qr,+ fill: m ? `url(#${d}-radar-fill-${e})` : "none",+ fillOpacity: m ? n * p.fill : 0,+ dot: h,+ activeDot: g,+ filter: r ? `url(#${d}-radar-glow-${e})` : void 0,+ className: "transition-opacity duration-200",+ style: i ? { cursor: "pointer" } : void 0,+ onClick: () => {+ i && u(l === e ? null : e);+ },+ ...o+ }), /* @__PURE__ */ (0, X.jsxs)("defs", { children: [+ /* @__PURE__ */ (0, X.jsx)(mi, {+ id: d,+ dataKey: e,+ config: s+ }),+ /* @__PURE__ */ (0, X.jsx)(hi, {+ id: d,+ dataKey: e,+ config: s+ }),+ m && /* @__PURE__ */ (0, X.jsx)(gi, {+ id: d,+ dataKey: e,+ config: s+ }),+ r && /* @__PURE__ */ (0, X.jsx)(_i, {+ id: d,+ dataKey: e+ })+ ] })] });+}+var ai = () => null, oi = () => null;+function si({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {+ return /* @__PURE__ */ (0, X.jsx)(An, {+ gridType: e,+ stroke: t,+ strokeOpacity: n,+ strokeDasharray: r,+ ...i+ });+}+function ci({ tick: e = {+ fill: "currentColor",+ fontSize: 12+}, tickLine: t = !1, ...n }) {+ let { isLoading: r } = Z();+ return r ? null : /* @__PURE__ */ (0, X.jsx)(ln, {+ tick: e,+ tickLine: t,+ ...n+ });+}+function li({ tick: e = {+ fill: "currentColor",+ fontSize: 10+}, tickLine: t = !1, axisLine: n = !1, ...r }) {+ let { isLoading: i } = Z();+ return i ? null : /* @__PURE__ */ (0, X.jsx)(Qn, {+ tick: e,+ tickLine: t,+ axisLine: n,+ ...r+ });+}+function ui({ variant: e, roundness: t, defaultIndex: n }) {+ let { isLoading: r, selectedDataKey: i } = Z();+ return r ? null : /* @__PURE__ */ (0, X.jsx)(f, {+ defaultIndex: n,+ cursor: !1,+ content: /* @__PURE__ */ (0, X.jsx)(p, {+ selected: i,+ roundness: t,+ variant: e+ })+ });+}+function di({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = Z();+ return i ? null : /* @__PURE__ */ (0, X.jsx)(l, {+ verticalAlign: n,+ align: t,+ content: /* @__PURE__ */ (0, X.jsx)(u, {+ selected: a,+ onSelectChange: o,+ isClickable: r,+ variant: e+ })+ });+}+var fi = (e, t, n, r) => {+ let i = !1, a = !1;+ return W.Children.forEach(e, (e) => {+ if ((0, W.isValidElement)(e)) {+ if (e.type === ai) {+ let { variant: a } = e.props;+ i = /* @__PURE__ */ (0, X.jsx)(Jr, {+ type: a,+ dataKey: n,+ chartId: t,+ fillOpacity: r+ });+ }+ if (e.type === oi) {+ let { variant: i } = e.props;+ a = /* @__PURE__ */ (0, X.jsx)(Jr, {+ type: i,+ dataKey: n,+ chartId: t,+ fillOpacity: r+ });+ }+ }+ }), {+ dot: i,+ activeDot: a+ };+}, pi = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [/* @__PURE__ */ (0, X.jsx)("stop", {+ offset: "0%",+ stopColor: `var(--color-${e}-0)`,+ stopOpacity: n?.[0]+}), /* @__PURE__ */ (0, X.jsx)("stop", {+ offset: "100%",+ stopColor: `var(--color-${e}-0)`,+ stopOpacity: n?.[n.length - 1]+})] }) : /* @__PURE__ */ (0, X.jsx)(X.Fragment, { children: Array.from({ length: t }, (r, i) => {+ let a = `${i / (t - 1) * 100}%`;+ return /* @__PURE__ */ (0, X.jsx)("stop", {+ offset: a,+ stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,+ stopOpacity: n?.[i]+ }, a);+}) }), mi = ({ id: e, dataKey: t, config: n }) => {+ let r = fe(n[t] ?? {});+ return /* @__PURE__ */ (0, X.jsx)("linearGradient", {+ id: `${e}-colors-${t}`,+ x1: "0",+ y1: "0",+ x2: "1",+ y2: "0",+ children: /* @__PURE__ */ (0, X.jsx)(pi, {+ dataKey: t,+ colorsCount: r+ })+ });+}, hi = ({ id: e, dataKey: t, config: n }) => {+ let r = fe(n[t] ?? {});+ return /* @__PURE__ */ (0, X.jsx)("linearGradient", {+ id: `${e}-radar-stroke-${t}`,+ x1: "0",+ y1: "0",+ x2: "1",+ y2: "1",+ children: /* @__PURE__ */ (0, X.jsx)(pi, {+ dataKey: t,+ colorsCount: r+ })+ });+}, gi = ({ id: e, dataKey: t, config: n }) => {+ let r = fe(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);+ return /* @__PURE__ */ (0, X.jsx)("radialGradient", {+ id: `${e}-radar-fill-${t}`,+ cx: "50%",+ cy: "50%",+ r: "50%",+ children: /* @__PURE__ */ (0, X.jsx)(pi, {+ dataKey: t,+ colorsCount: r,+ opacities: i+ })+ });+}, _i = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, X.jsxs)("filter", {+ id: `${e}-radar-glow-${t}`,+ x: "-50%",+ y: "-50%",+ width: "200%",+ height: "200%",+ children: [+ /* @__PURE__ */ (0, X.jsx)("feGaussianBlur", {+ in: "SourceGraphic",+ stdDeviation: "4",+ result: "blur"+ }),+ /* @__PURE__ */ (0, X.jsx)("feColorMatrix", {+ in: "blur",+ type: "matrix",+ values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0",+ result: "glow"+ }),+ /* @__PURE__ */ (0, X.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, X.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, X.jsx)("feMergeNode", { in: "SourceGraphic" })] })+ ]+}), vi = (e) => [+ "A",+ "B",+ "C",+ "D",+ "E",+ "F"+].slice(0, e).map((e) => ({+ skill: e,+ [ni]: 30 + Math.random() * 70+}));+function yi(e, t = ei) {+ let [n, r] = (0, W.useState)(0);+ return (0, W.useEffect)(() => {+ if (!e) return;+ let t = setInterval(() => {+ r((e) => e + 1);+ }, ti);+ return () => clearInterval(t);+ }, [e]), (0, W.useMemo)(() => vi(t), [t, n]);+}+var bi = () => /* @__PURE__ */ (0, X.jsx)(zr, {+ dataKey: ni,+ stroke: "currentColor",+ strokeOpacity: .3,+ strokeWidth: 2,+ fill: "currentColor",+ fillOpacity: .1,+ dot: !1,+ isAnimationActive: !0,+ animationDuration: ti,+ animationEasing: "ease-in-out"+});+Q.Radar = ii, Q.Dot = ai, Q.ActiveDot = oi, Q.PolarGrid = si, Q.PolarAngleAxis = ci, Q.PolarRadiusAxis = li, Q.Tooltip = ui, Q.Legend = di;+// src/react/taste/charts.tsx+function xi(e) {+ let { x: t = 0, cx: n, textAnchor: r, payload: i, ...a } = e, o = String(i?.value ?? ""), s = typeof n == "number" ? n * 2 : 0, c = s ? r === "start" ? s - t : r === "end" ? t : 2 * Math.min(t, s - t) : 56;+ return /* @__PURE__ */ (0, X.jsxs)("g", { children: [/* @__PURE__ */ (0, X.jsx)("title", { children: o }), /* @__PURE__ */ (0, X.jsx)(E, {+ ...a,+ x: t,+ textAnchor: r,+ fill: "currentColor",+ fontSize: 12,+ children: ce(o, c - 4)+ })] });+}+var Si = [+ "stroke-chart-1",+ "stroke-chart-2",+ "stroke-chart-3",+ "stroke-chart-4",+ "stroke-chart-5",+ "stroke-chart-6"+], Ci = [+ "fill-chart-1",+ "fill-chart-2",+ "fill-chart-3",+ "fill-chart-4",+ "fill-chart-5",+ "fill-chart-6"+], wi = { value: {+ label: "标签出现次数",+ colors: Ne(r[3])+} }, Ti = [+ "min-h-24",+ "min-h-24",+ "min-h-24",+ "min-h-32",+ "min-h-40",+ "min-h-48",+ "min-h-52",+ "min-h-60",+ "min-h-64"+], Ei = 26, Di = { radius: wi.value }, Oi = (e, t) => Math.sqrt(e / t);+function ki({ rows: e, label: t }) {+ let n = Rt(e);+ if (!n.length) return null;+ let r = n[0].value, i = n.map((e) => ({+ ...e,+ radius: Oi(e.value, r)+ }));+ return /* @__PURE__ */ (0, X.jsx)("div", {+ role: "img",+ "aria-label": `${t}:${i.map((e) => e.name).join(",")}`,+ children: /* @__PURE__ */ (0, X.jsxs)(Q, {+ data: i,+ config: Di,+ chartProps: { outerRadius: "58%" },+ className: "aspect-auto h-70 text-text-secondary",+ children: [+ /* @__PURE__ */ (0, X.jsx)(Q.PolarGrid, {}),+ /* @__PURE__ */ (0, X.jsx)(Q.PolarAngleAxis, {+ dataKey: "name",+ tick: /* @__PURE__ */ (0, X.jsx)(xi, {})+ }),+ /* @__PURE__ */ (0, X.jsx)(Q.PolarRadiusAxis, {+ domain: [0, 1],+ allowDecimals: !0,+ tick: !1+ }),+ /* @__PURE__ */ (0, X.jsx)(Q.Radar, { dataKey: "radius" }),+ /* @__PURE__ */ (0, X.jsx)(d, { valueKey: "value" })+ ]+ })+ });+}+function Ai({ rows: e, label: t }) {+ let n = Qt(e, 8);+ return n.length ? /* @__PURE__ */ (0, X.jsx)("section", {+ "aria-label": t,+ className: `flex grow flex-col ${Ti[n.length]}`,+ children: /* @__PURE__ */ (0, X.jsxs)(g, {+ data: n,+ config: wi,+ layout: "horizontal",+ barRadius: 4,+ chartProps: {+ maxBarSize: Ei,+ margin: {+ top: 5,+ right: 56,+ bottom: 5,+ left: 5+ }+ },+ className: "aspect-auto text-text-secondary",+ children: [+ /* @__PURE__ */ (0, X.jsx)(g.YAxis, {+ dataKey: "name",+ interval: 0,+ tick: /* @__PURE__ */ (0, X.jsx)(a, { along: "y" }),+ width: ie(n.map((e) => e.name))+ }),+ /* @__PURE__ */ (0, X.jsx)(g.XAxis, {+ hide: !0,+ domain: sn+ }),+ /* @__PURE__ */ (0, X.jsx)(g.Bar, {+ dataKey: "value",+ enableHoverHighlight: !0,+ barProps: {+ dataKey: "value",+ label: dn("right")+ }+ }),+ /* @__PURE__ */ (0, X.jsx)(d, {})+ ]+ })+ }) : null;+}+function ji({ flows: e }) {+ let [t, r] = (0, W.useState)(null), i = kt(e);+ if (!i) return null;+ let a = t?.node ?? null, o = (e, n) => t ? a === null ? t.label === n : e.source === a || e.target === a : !0;+ return /* @__PURE__ */ (0, X.jsxs)("section", {+ className: n,+ children: [+ /* @__PURE__ */ (0, X.jsx)(c, {+ title: "创作者线索来源",+ figure: (t ? t.value : i.total).toLocaleString(),+ note: t ? t.label : "条线索"+ }),+ /* @__PURE__ */ (0, X.jsx)("ol", {+ "aria-label": "来源网站与创作者线索",+ className: "flex flex-col sm:hidden",+ children: [...i.links].sort((e, t) => t.value - e.value).map((e) => /* @__PURE__ */ (0, X.jsxs)("li", {+ className: "flex items-baseline justify-between gap-3 border-b border-separator-border py-2 text-body-2-regular text-text-primary last:border-b-0",+ children: [/* @__PURE__ */ (0, X.jsx)("span", {+ className: "min-w-0 wrap-anywhere",+ children: e.label+ }), /* @__PURE__ */ (0, X.jsx)("b", {+ className: "shrink-0 tabular-nums",+ children: e.value.toLocaleString()+ })]+ }, e.key))+ }),+ /* @__PURE__ */ (0, X.jsx)("div", {+ className: "min-w-0 max-sm:hidden",+ children: /* @__PURE__ */ (0, X.jsxs)("svg", {+ viewBox: `0 0 ${qe.width} ${i.height}`,+ fill: "none",+ role: "img",+ "aria-label": "来源网站与创作者线索",+ className: "block h-auto w-full",+ onPointerLeave: () => r(null),+ children: [/* @__PURE__ */ (0, X.jsx)("g", { children: i.links.map((e) => /* @__PURE__ */ (0, X.jsx)("path", {+ d: e.d,+ strokeWidth: e.width,+ tabIndex: 0,+ role: "img",+ "aria-label": `${e.label}:${e.value} 条线索`,+ fillOpacity: 0,+ strokeOpacity: o(e, e.label) ? .55 : .08,+ className: `outline-none transition-opacity ${Si[e.color]}`,+ onPointerEnter: () => r({+ value: e.value,+ label: e.label,+ node: null+ }),+ onFocus: () => r({+ value: e.value,+ label: e.label,+ node: null+ }),+ onBlur: () => r(null)+ }, e.key)) }), /* @__PURE__ */ (0, X.jsx)("g", { children: i.nodes.map((e) => /* @__PURE__ */ (0, X.jsxs)("g", {+ tabIndex: 0,+ role: "img",+ "aria-label": `${e.name}:${e.value} 条线索`,+ className: "outline-none focus-visible:opacity-100",+ onPointerEnter: () => r({+ value: e.value,+ label: e.name,+ node: e.index+ }),+ onFocus: () => r({+ value: e.value,+ label: e.name,+ node: e.index+ }),+ onBlur: () => r(null),+ children: [/* @__PURE__ */ (0, X.jsx)("rect", {+ x: e.x,+ y: e.y,+ width: 10,+ height: e.height,+ rx: 5,+ className: e.side === "source" ? Ci[e.color] : "fill-text-secondary"+ }), /* @__PURE__ */ (0, X.jsxs)("text", {+ x: Ke[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: [At(e.name), /* @__PURE__ */ (0, X.jsx)("tspan", {+ x: Ke[e.side],+ dy: 15,+ children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`+ })]+ })]+ }, e.id)) })]+ })+ }),+ /* @__PURE__ */ (0, X.jsxs)("footer", {+ className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary max-sm:hidden",+ children: [/* @__PURE__ */ (0, X.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, X.jsx)("span", { children: "创作者 · 线索占比" })]+ })+ ]+ });+}+// src/react/taste/browser-sources.tsx+var Mi = "flex min-w-0 items-center gap-3 rounded-xl bg-background-primary-default p-3";+function Ni({ browsers: e, sources: t, range: n, children: r }) {+ let [i, a] = (0, W.useState)(!1), [o, s] = (0, W.useState)(""), [c, l] = (0, W.useState)(""), u = tn({+ mutationFn: (e) => St(e, n),+ onSuccess: (e) => {+ V.setQueryData(H(n), e.dashboard), a(!1), s(""), l("");+ }+ });+ return /* @__PURE__ */ (0, X.jsxs)("section", {+ className: `${L()} flex flex-col gap-4`,+ "aria-label": "数据源",+ children: [+ /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex flex-wrap items-center justify-between gap-3",+ children: [/* @__PURE__ */ (0, X.jsx)("h3", {+ className: "text-title-2-medium text-text-primary",+ children: "数据源"+ }), /* @__PURE__ */ (0, X.jsx)(N, {+ variant: "secondary",+ onClick: () => a(!0),+ disabled: i,+ children: "添加浏览器"+ })]+ }),+ u.error ? /* @__PURE__ */ (0, X.jsx)(F, {+ tone: "error",+ children: z(u.error)+ }) : null,+ i ? /* @__PURE__ */ (0, X.jsxs)("form", {+ className: "flex flex-col gap-3",+ onSubmit: (e) => {+ e.preventDefault(), u.isPending || u.mutate({+ operation: "add",+ name: o,+ path: c+ });+ },+ children: [+ /* @__PURE__ */ (0, X.jsx)(Xe, {+ label: "浏览器名称",+ value: o,+ onChange: s,+ maxLength: 80,+ isRequired: !0,+ isDisabled: u.isPending+ }),+ /* @__PURE__ */ (0, X.jsx)(Xe, {+ label: "资料目录或历史文件",+ value: c,+ onChange: l,+ maxLength: 1024,+ isRequired: !0,+ isDisabled: u.isPending,+ hint: "请选择运行 Peach 的电脑上的浏览器资料。"+ }),+ /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex gap-2",+ children: [/* @__PURE__ */ (0, X.jsx)(N, {+ variant: "ghost",+ disabled: u.isPending,+ onClick: () => {+ a(!1), u.reset();+ },+ children: "取消"+ }), /* @__PURE__ */ (0, X.jsx)(N, {+ type: "submit",+ variant: "secondary",+ disabled: !o.trim() || !c.trim(),+ ...I(u.isPending),+ children: "添加"+ })]+ })+ ]+ }) : null,+ /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "inline-grid w-full min-w-0 gap-2 sm:grid-cols-2",+ children: [r, e.map((e) => {+ let n = t.filter((t) => e.source_keys?.includes(t.source_key)), r = n.reduce((e, t) => e + (t.visits || 0), 0), i = n.reduce((e, t) => e + (t.bookmarks || 0), 0);+ return /* @__PURE__ */ (0, X.jsxs)("div", {+ "data-taste-source": "browser",+ className: Mi,+ children: [+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",+ children: /* @__PURE__ */ (0, X.jsx)(pn, { name: e.name })+ }),+ /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex min-w-0 grow flex-col gap-0.5",+ children: [+ /* @__PURE__ */ (0, X.jsx)("b", {+ className: "text-body-2-medium break-words text-text-primary",+ children: e.name+ }),+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "break-all text-caption-1-regular text-text-secondary",+ children: e.path+ }),+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: e.enabled ? e.available ? `历史与书签 · ${e.profiles} 个资料` : "资料目录不可用" : "已停止读取"+ }),+ n.length ? /* @__PURE__ */ (0, X.jsxs)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: [+ r.toLocaleString(),+ " 条历史 · ",+ i.toLocaleString(),+ " 枚书签"+ ]+ }) : null+ ]+ }),+ /* @__PURE__ */ (0, X.jsxs)("span", {+ className: "flex shrink-0 gap-1",+ children: [/* @__PURE__ */ (0, X.jsx)(N, {+ variant: "secondary",+ size: "small",+ ...I(u.isPending),+ iconOnly: !0,+ leadingIcon: e.enabled ? nt : Je,+ "aria-label": `${e.enabled ? "停止读取" : "启用"} ${e.name}`,+ onClick: () => {+ e.enabled ? Ct({+ title: `停止读取 ${e.name}`,+ body: "已导入的历史与书签仍用于口味分析。",+ confirmLabel: "停止读取",+ onConfirm: () => u.mutateAsync({+ operation: "disable",+ id: e.id+ })+ }) : u.mutate({+ operation: "enable",+ id: e.id+ });+ }+ }), /* @__PURE__ */ (0, X.jsx)(N, {+ variant: "secondary",+ size: "small",+ iconOnly: !0,+ leadingIcon: Ze,+ ...I(u.isPending),+ "aria-label": `删除 ${e.name}`,+ onClick: () => {+ Ct({+ title: `删除 ${e.name}`,+ body: "移除该浏览器的读取配置和已导入历史、书签,浏览器原文件保留。可以通过添加浏览器重新接入。",+ confirmLabel: "删除浏览器来源",+ danger: !0,+ onConfirm: () => u.mutateAsync({+ operation: "delete_browser",+ id: e.id+ })+ });+ }+ })]+ })+ ]+ }, e.id);+ })]+ })+ ]+ });+}+// src/react/taste/taste-page.tsx+var Pi = 10, Fi = wt(Qe, $e, "text-body-2-medium"), Ii = `${L()} flex flex-col gap-4`, Li = "rounded-xl bg-background-primary-default p-3", Ri = "读取运行 Peach 的这台电脑上的浏览历史与书签", zi = "导入或读取浏览记录后,这里会列出记录来自哪些设备。", Bi = "馆藏中暂时没有与你浏览过的内容相符的标签。", Vi = "读取浏览记录后,这里会按类别汇总你浏览过的内容。", Hi = "这些标签出现在浏览记录中,Peach 的观看或评价记录中尚未出现这些标签", Ui = "采集浏览记录后,这里会列出浏览过的标签。", Wi = "采集浏览记录后,这里会列出浏览过的创作者。", Gi = "采集浏览记录后,这里会列出常访问的网站。", Ki = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", qi = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", Ji = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", Yi = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器记录」。", Xi = "记录在其他设备上:导出文件后,选择「导入历史文件」或「导入书签文件」。书签支持浏览器导出的 HTML 文件和 Chromium Bookmarks JSON 文件。", Zi = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Qi = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", $i = "peach-taste-guide-dismissed", ea = (0, W.createContext)(/* @__PURE__ */ (0, X.jsx)(Ue, {+ size: "small",+ href: "/",+ children: "浏览馆藏"+}));+function ta() {+ return (0, W.useContext)(ea);+}+function $({ icon: e, term: t, figure: n, detail: r, detailTitle: i, accent: a }) {+ return /* @__PURE__ */ (0, X.jsx)("div", {+ className: Kt(),+ children: /* @__PURE__ */ (0, X.jsx)(dt, {+ label: t,+ icon: e,+ accent: a,+ figure: n,+ footer: /* @__PURE__ */ (0, X.jsx)("span", {+ className: "block min-w-0 truncate",+ title: i || r,+ children: r ?? ""+ })+ })+ });+}+function na({ name: e, domain: t }) {+ return /* @__PURE__ */ (0, X.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: [Ot(e).toUpperCase(), /* @__PURE__ */ (0, X.jsx)("img", {+ src: Wt({ domain: t }),+ alt: "",+ loading: "lazy",+ width: 20,+ height: 20,+ onError: (e) => e.currentTarget.remove(),+ className: "absolute size-5 object-contain"+ })]+ });+}+function ra({ html: e }) {+ return /* @__PURE__ */ (0, X.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 ${an}`,+ dangerouslySetInnerHTML: { __html: e }+ });+}+function ia({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {+ if (!e.length) return /* @__PURE__ */ (0, X.jsx)(P, {+ size: "compact",+ icon: B,+ title: "记录还不够",+ actions: /* @__PURE__ */ (0, X.jsx)(ta, {}),+ children: r+ });+ let a = Bt(e);+ return /* @__PURE__ */ (0, X.jsx)(cn, {+ previewCount: Pi,+ className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",+ children: e.map((e, r) => {+ let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [+ /* @__PURE__ */ (0, X.jsx)("svg", {+ viewBox: "0 0 100 1",+ preserveAspectRatio: "none",+ "aria-hidden": !0,+ className: "absolute inset-0 -z-10 size-full overflow-hidden rounded-lg opacity-15",+ children: /* @__PURE__ */ (0, X.jsx)("rect", {+ width: a[r],+ height: 1,+ className: "fill-chart-4"+ })+ }),+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",+ children: r + 1+ }),+ n === "domain" ? /* @__PURE__ */ (0, X.jsx)(na, {+ name: e.name,+ domain: e.name+ }) : null,+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, X.jsx)(na, {+ name: e.name,+ domain: s+ }) : null,+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, X.jsx)(ra, { html: bt(e.name, e.entity_id ? {+ id: e.entity_id,+ has_image: !!e.has_image,+ image_version: e.image_version,+ avatar_focus: e.avatar_focus,+ avatar_stand_in: e.avatar_stand_in+ } : null, e.has_avatar ? e.representative_asset_id ?? null : null, n === "creator" ? "creator" : t || "performer") }) : null,+ /* @__PURE__ */ (0, X.jsxs)("span", {+ className: "flex min-w-0 grow flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, X.jsx)("b", {+ className: "min-w-0 text-body-medium break-words text-text-primary",+ children: e.name+ }), /* @__PURE__ */ (0, X.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: zt(e)+ })]+ }),+ o ? /* @__PURE__ */ (0, X.jsx)(Lt, {+ "aria-hidden": !0,+ className: "size-4 shrink-0 text-text-tertiary"+ }) : null+ ] }), l = "relative isolate flex min-h-11 w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left";+ return /* @__PURE__ */ (0, X.jsx)("li", {+ className: "min-w-0",+ children: o ? /* @__PURE__ */ (0, X.jsx)("button", {+ type: "button",+ onClick: () => i(t, e.name),+ className: `${l} cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring`,+ children: c+ }) : /* @__PURE__ */ (0, X.jsx)("div", {+ className: l,+ children: c+ })+ }, `${e.name}:${r}`);+ })+ });+}+function aa({ label: e, panels: t, onSignal: n }) {+ return /* @__PURE__ */ (0, X.jsxs)(He, {+ className: `${L({ padding: "none" })} flex flex-col`,+ children: [/* @__PURE__ */ (0, X.jsx)("div", {+ className: "px-4 pt-3",+ children: /* @__PURE__ */ (0, X.jsx)(ct, {+ "aria-label": e,+ className: ot,+ children: t.map((e) => /* @__PURE__ */ (0, X.jsx)(Ve, {+ id: e.id,+ className: at,+ children: e.name+ }, e.id))+ })+ }), t.map((e) => /* @__PURE__ */ (0, X.jsx)(Be, {+ id: e.id,+ className: "px-4 pt-3.5 pb-4",+ children: /* @__PURE__ */ (0, X.jsx)(ia, {+ ...e.props,+ onSignal: n+ })+ }, e.id))]+ });+}+function oa({ data: e, onSignal: t, navigate: n }) {+ let r = e.analysis;+ if (!r?.headline) return null;+ let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({+ key: `tag:${e.tag}`,+ title: e.title,+ detail: e.detail,+ act: () => t("tag", e.tag)+ })), ...(r.next_steps || []).map((e) => ({+ key: `route:${e.route}`,+ title: e.title,+ detail: e.detail,+ act: () => n(e.route)+ }))];+ return /* @__PURE__ */ (0, X.jsxs)("section", {+ className: Ii,+ "aria-label": "口味总结",+ children: [+ /* @__PURE__ */ (0, X.jsxs)("header", {+ className: "flex flex-col gap-2",+ children: [+ /* @__PURE__ */ (0, X.jsx)("h3", {+ className: "text-title-2-medium text-text-primary",+ children: "口味总结"+ }),+ /* @__PURE__ */ (0, X.jsx)("p", {+ className: "max-w-prose text-title-2-regular wrap-anywhere text-text-primary",+ children: r.headline+ }),+ /* @__PURE__ */ (0, X.jsxs)("p", {+ className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",+ children: [/* @__PURE__ */ (0, X.jsx)("i", {+ "aria-hidden": !0,+ className: `size-2 shrink-0 rounded-full ${i.level === "high" ? "bg-status-lime-text" : i.level === "medium" ? "bg-status-yellow-text" : "bg-text-tertiary"}`+ }), /* @__PURE__ */ (0, X.jsx)("span", {+ className: "min-w-0 wrap-anywhere",+ children: i.label || "仍在学习"+ })]+ })+ ]+ }),+ r.points?.length ? /* @__PURE__ */ (0, X.jsx)("div", {+ className: "inline-grid w-full gap-3 sm:grid-cols-2",+ children: r.points.map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {+ className: `flex min-w-0 flex-col gap-1 ${Li}`,+ children: [/* @__PURE__ */ (0, X.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: e.label+ }), /* @__PURE__ */ (0, X.jsx)("b", {+ className: "text-body-2-medium break-words text-text-primary",+ children: e.text+ })]+ }, e.label))+ }) : null,+ a.length ? /* @__PURE__ */ (0, X.jsx)("div", {+ className: "flex flex-col gap-2",+ children: a.map((e) => /* @__PURE__ */ (0, X.jsxs)("button", {+ type: "button",+ onClick: e.act,+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${Li} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,+ children: [/* @__PURE__ */ (0, X.jsxs)("span", {+ className: "flex min-w-0 grow flex-col gap-1",+ children: [/* @__PURE__ */ (0, X.jsx)("b", {+ className: "text-body-2-medium wrap-anywhere text-text-primary",+ children: e.title+ }), /* @__PURE__ */ (0, X.jsx)("small", {+ className: "text-caption-1-regular wrap-anywhere text-text-secondary",+ children: e.detail+ })]+ }), /* @__PURE__ */ (0, X.jsx)(Lt, {+ "aria-hidden": !0,+ className: "size-4 shrink-0 text-text-tertiary"+ })]+ }, e.key))+ }) : /* @__PURE__ */ (0, X.jsx)(P, {+ size: "compact",+ icon: B,+ title: "还没有可探索的入口",+ actions: /* @__PURE__ */ (0, X.jsx)(Ue, {+ size: "small",+ href: "/",+ children: "浏览馆藏"+ }),+ children: Bi+ })+ ]+ });+}+function sa({ onboarding: e, done: t }) {+ let [n, r] = (0, W.useState)(() => {+ try {+ return localStorage.getItem($i) === "1";+ } catch {+ return !1;+ }+ });+ return t || n ? null : /* @__PURE__ */ (0, X.jsx)("div", {+ className: L({+ padding: "none",+ className: "p-4"+ }),+ children: /* @__PURE__ */ (0, X.jsxs)(We, {+ summary: "浏览器历史记录导入指南",+ defaultOpen: e,+ children: [+ /* @__PURE__ */ (0, X.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: Yi+ }),+ /* @__PURE__ */ (0, X.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: Xi+ }),+ /* @__PURE__ */ (0, X.jsxs)("ul", {+ className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",+ children: [/* @__PURE__ */ (0, X.jsxs)("li", { children: [+ "Chrome:在 ",+ /* @__PURE__ */ (0, X.jsxs)("a", {+ href: "https://takeout.google.com/",+ target: "_blank",+ rel: "noopener noreferrer",+ className: "text-text-primary underline-offset-4 hover:underline",+ children: ["Google Takeout", /* @__PURE__ */ (0, X.jsx)(ht, {+ "aria-hidden": !0,+ className: "size-(--icon-inline) shrink-0"+ })]+ }),+ " ",+ "选择 Chrome 历史记录,下载 ZIP 后直接导入。"+ ] }), /* @__PURE__ */ (0, X.jsxs)("li", { children: [+ "其他浏览器:用 ",+ /* @__PURE__ */ (0, X.jsxs)("a", {+ href: "https://github.com/purarue/browserexport",+ target: "_blank",+ rel: "noopener noreferrer",+ className: "text-text-primary underline-offset-4 hover:underline",+ children: ["browserexport", /* @__PURE__ */ (0, X.jsx)(ht, {+ "aria-hidden": !0,+ className: "size-(--icon-inline) shrink-0"+ })]+ }),+ " ",+ "导出历史记录,再导入导出文件。"+ ] })]+ }),+ /* @__PURE__ */ (0, X.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: Zi+ }),+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "self-start",+ children: /* @__PURE__ */ (0, X.jsx)(N, {+ variant: "secondary",+ size: "small",+ onClick: () => {+ try {+ localStorage.setItem($i, "1");+ } catch {}+ r(!0);+ },+ children: "跳过"+ })+ })+ ]+ })+ });+}+function ca({ busy: e, onRefresh: t, onImport: n, onImportBookmarks: r }) {+ let i = (0, W.useRef)(null), [a, o] = (0, W.useState)(!1), s = (e) => {+ o(!1), e();+ };+ return /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [/* @__PURE__ */ (0, X.jsxs)("span", {+ "data-guide-target": "history-import",+ "data-button-group": !0,+ "data-split-button": !0,+ "data-variant": "primary",+ children: [/* @__PURE__ */ (0, X.jsx)(N, {+ leadingIcon: Ge,+ title: Ri,+ onClick: t,+ ...I(e),+ children: "读取浏览器记录"+ }), /* @__PURE__ */ (0, X.jsx)(N, {+ ref: i,+ iconOnly: !0,+ leadingIcon: Tt,+ "aria-label": "更多取得浏览记录的方式",+ "aria-haspopup": "dialog",+ "aria-expanded": a,+ ...I(e),+ onClick: () => {+ e || o(!0);+ }+ })]+ }), /* @__PURE__ */ (0, X.jsx)(ze, {+ triggerRef: i,+ isOpen: a,+ onOpenChange: o,+ placement: "bottom end",+ offset: 4,+ className: et,+ children: /* @__PURE__ */ (0, X.jsxs)(tt, {+ "aria-label": "更多取得浏览记录的方式",+ className: "flex w-52 flex-col gap-1 outline-none",+ children: [+ /* @__PURE__ */ (0, X.jsxs)("button", {+ type: "button",+ className: Fi,+ onClick: () => s(t),+ children: [/* @__PURE__ */ (0, X.jsx)(Ge, {+ "aria-hidden": !0,+ className: "size-4 shrink-0"+ }), "读取浏览器记录"]+ }),+ /* @__PURE__ */ (0, X.jsxs)("button", {+ type: "button",+ className: Fi,+ onClick: () => s(n),+ children: [/* @__PURE__ */ (0, X.jsx)(it, {+ "aria-hidden": !0,+ className: "size-4 shrink-0"+ }), "导入历史文件"]+ }),+ /* @__PURE__ */ (0, X.jsxs)("button", {+ type: "button",+ className: Fi,+ onClick: () => s(r),+ children: [/* @__PURE__ */ (0, X.jsx)(Mt, {+ "aria-hidden": !0,+ className: "size-4 shrink-0"+ }), "导入书签文件"]+ })+ ]+ })+ })] });+}+function la({ sources: e, browsers: t, window: n, toast: r, emptyActions: i }) {+ let a = tn({+ mutationFn: (e) => Vt(e, n),+ onSuccess: (e) => {+ V.setQueryData(H(n), e.dashboard), r("已移除口味数据源");+ }+ });+ return /* @__PURE__ */ (0, X.jsxs)(Ni, {+ browsers: t,+ sources: e,+ range: n,+ children: [a.error ? /* @__PURE__ */ (0, X.jsx)("div", {+ className: "sm:col-span-2",+ children: /* @__PURE__ */ (0, X.jsx)(F, {+ tone: "error",+ children: z(a.error)+ })+ }) : null, e.length ? /* @__PURE__ */ (0, X.jsx)(X.Fragment, { children: e.filter((e) => !t.some((t) => t.source_keys?.includes(e.source_key))).map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {+ "data-taste-source": "import",+ className: Mi,+ children: [+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, X.jsx)(it, {+ "aria-hidden": !0,+ className: "size-4"+ }) : /* @__PURE__ */ (0, X.jsx)(_t, {+ "aria-hidden": !0,+ className: "size-4"+ })+ }),+ /* @__PURE__ */ (0, X.jsxs)("span", {+ className: "flex min-w-0 grow flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, X.jsx)("b", {+ className: "min-w-0 text-body-2-medium break-words text-text-primary",+ children: e.profile+ }), /* @__PURE__ */ (0, X.jsx)("small", {+ className: "min-w-0 text-caption-1-regular break-words text-text-secondary",+ children: `导入文件 · ${e.host} · ${Number(e.visits || e.bookmarks || 0).toLocaleString()} ${e.bookmarks ? "枚书签" : "条历史"}`+ })]+ }),+ /* @__PURE__ */ (0, X.jsx)(N, {+ variant: "secondary",+ size: "small",+ "aria-label": `移除 ${e.profile}`,+ className: "shrink-0",+ iconOnly: !0,+ leadingIcon: Ze,+ ...I(a.isPending),+ onClick: () => {+ a.isPending || Ct({+ title: "移除口味数据源",+ body: Qi,+ confirmLabel: "移除口味数据源",+ onConfirm: () => a.mutateAsync(e.source_key)+ });+ }+ })+ ]+ }, e.source_key)) }) : t.length ? null : /* @__PURE__ */ (0, X.jsx)(P, {+ size: "compact",+ icon: _t,+ title: "还没有数据源",+ actions: i,+ children: zi+ })]+ });+}+function ua(e) {+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, W.useState)("all"), [s, c] = (0, W.useState)("browser"), l = (0, W.useRef)(null), u = (0, W.useRef)(null), d = nn({+ queryKey: H(a),+ queryFn: ({ signal: e }) => Et(a, e),+ placeholderData: Ft,+ refetchInterval: (e) => Xt(e.state.data)+ }), { job: f, running: p, outcome: m, start: h } = en({+ queryKey: ft,+ queryFn: ({ signal: e }) => Dt(e),+ start: () => Gt(a),+ idlePollMs: Ye,+ onFinish: (e) => {+ e.status !== "failed" && (V.invalidateQueries({ queryKey: ["taste"] }), r(e.warnings?.length ? "部分浏览记录未取得" : "已更新口味分析"));+ }+ }), g = tn({+ mutationFn: (e) => Et(e, void 0, !0),+ onSuccess: (e, t) => {+ V.setQueryData(H(t), e);+ }+ }), _ = tn({+ mutationFn: (e) => Pt(e),+ onSuccess: (e) => {+ V.setQueryData(H("all"), e.dashboard), o("all"), r("已导入口味数据");+ }+ }), v = (e) => {+ let t = e.currentTarget.files?.[0];+ e.currentTarget.value = "", t && !_.isPending && (_.reset(), _.mutate(t));+ }, y = () => {+ p || h.isPending || (h.reset(), h.mutate());+ }, b = d.data;+ if (!b) return /* @__PURE__ */ (0, X.jsx)(rn, { children: /* @__PURE__ */ (0, X.jsx)(F, {+ tone: "error",+ title: "口味分析读取失败",+ children: d.error ? z(d.error) : "读取口味分析失败"+ }) });+ let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, ee = b.storage || {}, w = Jt(C.browser_categories || []), T = Rt(w).length > 0, E = b.gaps || [], D = S.tagged || 0, te = S.identified || 0, ne = h.error ? z(h.error) : _.error ? z(_.error) : g.error ? z(g.error) : m?.status === "failed" ? m.error || "读取未取得" : "", re = /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex flex-wrap justify-center gap-2",+ children: [/* @__PURE__ */ (0, X.jsx)(N, {+ variant: "secondary",+ ...I(p || h.isPending || _.isPending),+ onClick: y,+ children: "读取浏览器记录"+ }), /* @__PURE__ */ (0, X.jsx)(N, {+ variant: "secondary",+ ...I(_.isPending),+ onClick: () => l.current?.click(),+ children: "导入历史文件"+ })]+ });+ return /* @__PURE__ */ (0, X.jsx)(rn, { children: /* @__PURE__ */ (0, X.jsxs)(ea, {+ value: a === "all" ? s === "peach" ? /* @__PURE__ */ (0, X.jsx)(Ue, {+ size: "small",+ variant: "secondary",+ href: "/",+ children: "浏览馆藏"+ }) : re : /* @__PURE__ */ (0, X.jsx)(N, {+ size: "small",+ variant: "secondary",+ onClick: () => o("all"),+ children: "查看全部时间"+ }),+ children: [+ /* @__PURE__ */ (0, X.jsxs)(He, {+ selectedKey: s,+ onSelectionChange: (e) => c(String(e)),+ className: "flex flex-col gap-5",+ children: [+ /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex flex-wrap items-center justify-between gap-3",+ children: [/* @__PURE__ */ (0, X.jsxs)(ct, {+ "aria-label": "口味分析的数据来源",+ className: ot,+ children: [/* @__PURE__ */ (0, X.jsx)(Ve, {+ id: "browser",+ className: at,+ children: "浏览器记录"+ }), /* @__PURE__ */ (0, X.jsx)(Ve, {+ id: "peach",+ className: at,+ children: "Peach 观看与评价"+ })]+ }), /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex flex-wrap items-center gap-2",+ children: [+ /* @__PURE__ */ (0, X.jsx)(lt, {+ "aria-label": "分析范围",+ selectedKey: a,+ onSelectionChange: (e) => {+ e !== null && o(String(e));+ },+ children: pt.map(([e, t]) => /* @__PURE__ */ (0, X.jsx)(ut, {+ id: e,+ children: t+ }, e))+ }),+ /* @__PURE__ */ (0, X.jsx)(ca, {+ busy: p || h.isPending || _.isPending,+ onRefresh: y,+ onImport: () => l.current?.click(),+ onImportBookmarks: () => u.current?.click()+ }),+ /* @__PURE__ */ (0, X.jsx)("input", {+ ref: l,+ type: "file",+ tabIndex: -1,+ "aria-hidden": !0,+ className: "hidden",+ onChange: v+ }),+ /* @__PURE__ */ (0, X.jsx)("input", {+ ref: u,+ type: "file",+ tabIndex: -1,+ "aria-hidden": !0,+ className: "hidden",+ "data-bookmark-import": !0,+ onChange: v+ })+ ]+ })]+ }),+ /* @__PURE__ */ (0, X.jsx)(sa, {+ onboarding: i,+ done: !!(x.history_sources || b.updated_at)+ }),+ /* @__PURE__ */ (0, X.jsxs)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-3 empty:hidden",+ children: [+ p ? /* @__PURE__ */ (0, X.jsx)(mt, {+ label: f?.message || "正在读取浏览记录并更新口味分析",+ value: f?.checked,+ total: f?.total+ }) : null,+ _.isPending ? /* @__PURE__ */ (0, X.jsx)(mt, { label: "正在导入口味数据" }) : null,+ b.stale && b.error ? /* @__PURE__ */ (0, X.jsx)(F, {+ tone: "error",+ action: /* @__PURE__ */ (0, X.jsx)(N, {+ variant: "secondary",+ size: "small",+ ...I(g.isPending),+ onClick: () => g.mutate(a),+ children: "立即重试"+ }),+ children: `口味分析更新失败,当前显示 ${Zt(b.computed_at)} 的结果。${b.error}`+ }) : b.stale ? /* @__PURE__ */ (0, X.jsx)(mt, { label: `正在更新口味分析,当前显示 ${Zt(b.computed_at)} 的结果` }) : null,+ ne ? /* @__PURE__ */ (0, X.jsx)(F, {+ tone: "error",+ children: ne+ }) : null,+ m?.warnings?.length ? /* @__PURE__ */ (0, X.jsx)(F, {+ tone: "warning",+ children: m.warnings.join(";")+ }) : null+ ]+ }),+ /* @__PURE__ */ (0, X.jsxs)(Be, {+ id: "browser",+ className: "flex flex-col gap-5",+ children: [+ /* @__PURE__ */ (0, X.jsxs)("div", {+ className: st,+ children: [+ /* @__PURE__ */ (0, X.jsx)($, {+ accent: 0,+ icon: $t,+ term: "浏览记录",+ figure: Number(x.history_visits || 0).toLocaleString(),+ detail: Nt(x),+ detailTitle: `${qt(x.range_start)}—${qt(x.range_end)}`+ }),+ /* @__PURE__ */ (0, X.jsx)($, {+ accent: 1,+ icon: It,+ term: "口味维度",+ figure: w.length.toLocaleString(),+ detail: w[0]?.name || "尚无主维度"+ }),+ /* @__PURE__ */ (0, X.jsx)($, {+ accent: 2,+ icon: B,+ term: "浏览线索",+ figure: E.length.toLocaleString()+ }),+ /* @__PURE__ */ (0, X.jsx)($, {+ accent: 3,+ icon: Mt,+ term: "浏览器书签",+ figure: Number(x.bookmarks || 0).toLocaleString(),+ detail: `${Number(ee.exports || 0).toLocaleString()} 份私有导出 · ${jt(ee.bytes || 0)}`+ })+ ]+ }),+ /* @__PURE__ */ (0, X.jsxs)("section", {+ className: T ? `${Ii} md:flex-row md:gap-6` : Ii,+ "aria-label": "浏览器画像",+ children: [/* @__PURE__ */ (0, X.jsxs)("div", {+ className: T ? "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0" : "flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1",+ children: [+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: "浏览器画像"+ }),+ T ? /* @__PURE__ */ (0, X.jsx)(ki, {+ rows: w,+ label: "主要口味维度"+ }) : null,+ /* @__PURE__ */ (0, X.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: b.updated_at ? `更新于 ${qt(b.updated_at)}` : "尚未采集浏览记录"+ })+ ]+ }), /* @__PURE__ */ (0, X.jsx)("div", {+ className: "flex min-w-0 grow flex-col",+ children: w.length ? /* @__PURE__ */ (0, X.jsx)(Ai, {+ rows: w,+ label: "口味维度排名"+ }) : /* @__PURE__ */ (0, X.jsx)(P, {+ size: "compact",+ icon: B,+ title: "暂无口味维度",+ actions: /* @__PURE__ */ (0, X.jsx)(ta, {}),+ children: Vi+ })+ })]+ }),+ /* @__PURE__ */ (0, X.jsx)(on, {+ activity: b.activity,+ title: "浏览活跃时间",+ dailyTitle: "每日活跃",+ words: {+ unit: "口味网站访问",+ series: "访问",+ cellUnit: "次访问"+ },+ tone: 4,+ empty: "还没有可用于分析的口味网站访问记录。"+ }),+ /* @__PURE__ */ (0, X.jsx)(ji, { flows: b.creator_flows }),+ /* @__PURE__ */ (0, X.jsx)(aa, {+ label: "浏览器口味维度",+ onSignal: t,+ panels: [+ {+ id: "tags",+ name: "标签",+ props: {+ rows: C.browser_tags || [],+ kind: "tag",+ visual: "none",+ empty: Ui+ }+ },+ {+ id: "creators",+ name: "创作者",+ props: {+ rows: C.browser_creators || [],+ kind: "creator",+ visual: "creator",+ empty: Wi+ }+ },+ {+ id: "performers",+ name: "女优",+ props: {+ rows: C.browser_performers || [],+ kind: "performer",+ visual: "entity",+ empty: "还没有与已建档女优关联的浏览记录。"+ }+ },+ {+ id: "domains",+ name: "常访问网站",+ props: {+ rows: C.domains || [],+ kind: "",+ visual: "domain",+ empty: Gi+ }+ },+ {+ id: "gaps",+ name: "浏览线索",+ props: {+ rows: E,+ kind: "",+ visual: "none",+ empty: Hi+ }+ }+ ]+ })+ ]+ }),+ /* @__PURE__ */ (0, X.jsxs)(Be, {+ id: "peach",+ className: "flex flex-col gap-5",+ children: [+ /* @__PURE__ */ (0, X.jsxs)("div", {+ className: st,+ children: [+ /* @__PURE__ */ (0, X.jsx)($, {+ accent: 0,+ icon: gt,+ term: "Peach 看过",+ figure: Number(x.peach_items || 0).toLocaleString(),+ detail: Yt(x.peach_seconds || 0)+ }),+ /* @__PURE__ */ (0, X.jsx)($, {+ accent: 1,+ icon: yt,+ term: "喜欢",+ figure: Number(x.liked || 0).toLocaleString()+ }),+ /* @__PURE__ */ (0, X.jsx)($, {+ accent: 2,+ icon: xt,+ term: "不合口味",+ figure: Number(x.disliked || 0).toLocaleString()+ }),+ /* @__PURE__ */ (0, X.jsx)($, {+ accent: 3,+ icon: It,+ term: "有标签",+ figure: D.toLocaleString()+ })+ ]+ }),+ /* @__PURE__ */ (0, X.jsxs)("section", {+ className: `${Ii} md:flex-row md:gap-6`,+ "aria-label": "Peach 观看",+ children: [/* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",+ children: [+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: "Peach 观看"+ }),+ /* @__PURE__ */ (0, X.jsx)("b", {+ className: "text-display-4-medium tabular-nums text-text-primary",+ children: Number(x.peach_items || 0).toLocaleString()+ }),+ /* @__PURE__ */ (0, X.jsx)("span", {+ className: "text-body-2-regular text-text-secondary",+ children: "部作品有观看或评价记录"+ })+ ]+ }), /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex min-w-0 grow flex-col",+ children: [/* @__PURE__ */ (0, X.jsx)(da, {+ term: "有标签",+ value: D,+ rest: S.untagged || 0+ }), /* @__PURE__ */ (0, X.jsx)(da, {+ term: "有身份",+ value: te,+ rest: S.unidentified || 0+ })]+ })]+ }),+ /* @__PURE__ */ (0, X.jsx)(aa, {+ label: "Peach 口味维度",+ onSignal: t,+ panels: [+ {+ id: "tags",+ name: "标签",+ props: {+ rows: C.peach_tags || [],+ kind: "tag",+ visual: "none",+ empty: Ki+ }+ },+ {+ id: "creators",+ name: "创作者",+ props: {+ rows: C.peach_creators || [],+ kind: "creator",+ visual: "creator",+ empty: qi+ }+ },+ {+ id: "performers",+ name: "女优",+ props: {+ rows: C.peach_performers || [],+ kind: "performer",+ visual: "entity",+ empty: Ji+ }+ }+ ]+ })+ ]+ })+ ]+ }),+ /* @__PURE__ */ (0, X.jsx)(oa, {+ data: b,+ onSignal: t,+ navigate: n+ }),+ /* @__PURE__ */ (0, X.jsx)(la, {+ sources: b.sources || [],+ browsers: b.browsers || [],+ window: a,+ toast: r,+ emptyActions: re+ })+ ]+ }) });+}+function da({ term: e, value: t, rest: n }) {+ let r = Math.max(t + n, 1);+ return /* @__PURE__ */ (0, X.jsxs)("div", {+ className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",+ children: [/* @__PURE__ */ (0, X.jsxs)("p", {+ className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",+ children: [/* @__PURE__ */ (0, X.jsx)("span", { children: e }), /* @__PURE__ */ (0, X.jsxs)("b", {+ className: "tabular-nums",+ children: [t.toLocaleString(), /* @__PURE__ */ (0, X.jsx)("span", {+ className: "ml-1.5 text-caption-1-regular text-text-secondary",+ children: `${n.toLocaleString()} 项待补`+ })]+ })]+ }), /* @__PURE__ */ (0, X.jsx)(rt, {+ label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,+ value: t,+ max: r+ })]+ });+}+export { $i as TASTE_GUIDE_KEY, ua as TastePage };++//# debugId=96611576-f0a2-497f-a0aa-23d03e23b489\ No newline at end of filediff --git a/web/dist/peach-app.taste-page-O5P41pRb.js b/web/dist/peach-app.taste-page-O5P41pRb.jsdeleted file mode 100644index 74daa29e8..000000000--- a/web/dist/peach-app.taste-page-O5P41pRb.js+++ /dev/null@@ -1,3312 +0,0 @@-(function() {- try {- var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9b65577e-8550-4492-95cf-43eb640447a0", e._sentryDebugIdIdentifier = "sentry-dbid-9b65577e-8550-4492-95cf-43eb640447a0");- } catch {}-})();-import { ActivePoints as e, AnimatedItems as t, CHART_CARD as n, CHART_COLORS as r, CartesianLabelListContextProvider as i, CategoryTick as a, ChartBackground as o, ChartContainer as s, ChartHead as c, ChartLegend as l, ChartLegendContent as u, ChartTip as d, ChartTooltip as f, ChartTooltipContent as p, DefaultZIndexes as m, Dots as h, EvilBarChart as g, LabelListFromLabelProp as _, Layer as v, LoadingIndicator as y, PolarChart as b, PolarLabelContextProvider as x, PolarLabelFromLabelProp as S, RegisterGraphicalItemId as C, SetPolarGraphicalItem as ee, SetPolarLegendPayload as w, SetTooltipEntrySettings as T, Text as te, ZIndexLayer as E, adaptEventsOfChild as ne, addRadiusAxis as re, arrayTooltipSearcher as ie, categoryAxisWidth as ae, cn as oe, createSelector as D, defaultPolarChartProps as se, defaultPolarRadiusAxisProps as ce, fitLabel as le, getAxisTypeBasedOnLayout as ue, getBandSizeOfAxis as de, getClassNameFromUnknown as fe, getColorsCount as pe, getTooltipNameProp as me, getValueByDataKey as he, identity as ge, interpolate as _e, isArrayLike as ve, isCategoricalAxis as ye, isNullish as be, iteratee as xe, matchAnimationItems as Se, matchByIndex as Ce, noop as we, polarToCartesian as O, removeRadiusAxis as Te, resolveDefaultProps as Ee, selectAngleAxis as De, selectChartDataAndAlwaysIgnoreIndexes as Oe, selectChartLayout as ke, selectPolarViewBox as Ae, selectRadiusAxis as je, selectUnfilteredPolarItems as Me, svgPropertiesAndEvents as Ne, svgPropertiesNoEvents as k, svgPropertiesNoEventsFromUnknown as Pe, tone as Fe, useAnimationCallbacks as Ie, useAnimationStartSnapshot as Le, useAppDispatch as Re, useAppSelector as A, useIsPanorama as ze, usePolarChartLayout as Be } from "./peach-app.chart-tip-CRxYp6KT.js";-import { $542a13ca2fa5b484$export$5b6b19405a83ff9d as Ve, $b4f18e3395fe64d7$export$3d96ec278d3efce4 as He, $b4f18e3395fe64d7$export$3e41faf802a29e71 as Ue, $b4f18e3395fe64d7$export$b2539bed5023c21c as We, Button as j, ButtonLink as Ge, Disclosure as Ke, E3 as qe, EmptyState as M, FLOW_LABEL_X as Je, FLOW_VIEWBOX as Ye, Gg as Xe, IDLE_POLL_MS as Ze, Input as Qe, M6 as $e, MENU_ITEM as et, MENU_ITEM_INTERACTIVE as tt, MENU_POPOVER_SURFACE as nt, MenuDialog as rt, Note as N, OV as it, Progress as at, Rf as ot, SEGMENT as st, SEGMENTED_TRACK as ct, STAT_STRIP as lt, SegmentedTabList as ut, Select$1 as dt, SelectItem as ft, StatCard as pt, TASTE_REFRESH_KEY as mt, TASTE_WINDOWS as ht, TaskProgress as gt, Wt as _t, Xt as vt, _8 as yt, __toESM as bt, aB as xt, avatarInner as St, busyProps as P, cB as Ct, cardClass as F, clsx as I, configureTasteBrowser as wt, confirmModal as Tt, cx as Et, errorMessage as L, f1 as Dt, fetchTaste as Ot, fetchTasteJob as kt, firstGrapheme as At, flowGraph as jt, flowLabel as Mt, fmtSize as Nt, g4 as Pt, historySpan as Ft, importTasteExport as It, keepPreviousData as Lt, mM as Rt, pv as R, queryClient as z, r2 as zt, radarRows as Bt, rankDetail as Vt, rankShares as Ht, removeTasteSource as Ut, require_jsx_runtime as Wt, require_react as Gt, siteMarkUrl as Kt, startTasteRefresh as qt, statCardClass as Jt, tasteDate as Yt, tasteDimensions as Xt, tasteHours as Zt, tasteKey as B, tasteRefetchInterval as Qt, tasteTime as $t, topScores as en, uo as tn, useBackgroundJob as nn, useMutation as V, useQuery as rn } from "./peach-app.js";-import { Page as an } from "./peach-app.page-QAncjzM1.js";-import { LEGACY_AVATAR_IMG as on } from "./peach-app.legacy-avatar-NSITxLRS.js";-import { ActivityHeat as sn, BAR_DOMAIN as cn, ExpandableRanking as ln, PolarAngleAxis as un, Polygon as dn, barLabel as fn, selectPolarAxisScale as pn, selectPolarAxisTicks as H } from "./peach-app.expandable-ranking-dFA65P9N.js";-var mn = D([(e, t) => H(e, "angleAxis", t, !1)], (e) => {- if (e) return e.map((e) => e.coordinate);-}), hn = D([(e, t) => H(e, "radiusAxis", t, !1)], (e) => {- if (e) return e.map((e) => e.coordinate);-}), U = /* @__PURE__ */ bt(Gt()), gn = [- "gridType",- "radialLines",- "angleAxisId",- "radiusAxisId",- "cx",- "cy",- "innerRadius",- "outerRadius",- "polarAngles",- "polarRadius",- "zIndex"-];-function _n(e, t) {- if (e == null) return {};- var n, r, i = vn(e, t);- if (Object.getOwnPropertySymbols) {- var a = Object.getOwnPropertySymbols(e);- for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);- }- return i;-}-function vn(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;-}-function W() {- return W = Object.assign ? Object.assign.bind() : function(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t];- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);- }- return e;- }, W.apply(null, arguments);-}-function yn(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function bn(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? yn(Object(n), !0).forEach(function(t) {- xn(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yn(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function xn(e, t, n) {- return (t = Sn(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function Sn(e) {- var t = Cn(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function Cn(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-var wn = (e, t, n, r) => {- var i = "";- return r.forEach((r, a) => {- var o = O(t, n, e, r);- i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;- }), i += "Z", i;-}, Tn = (e) => {- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.polarAngles, o = e.radialLines;- if (!a || !a.length || !o) return null;- var s = bn({}, k(e));- return /*#__PURE__*/ U.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {- var a = O(t, n, r, e), o = O(t, n, i, e);- return /*#__PURE__*/ U.createElement("line", W({ key: `line-${e}` }, s, {- x1: a.x,- y1: a.y,- x2: o.x,- y2: o.y- }));- }));-}, En = (e) => {- var t = e.cx, n = e.cy, r = e.radius, i = bn({}, k(e));- return /*#__PURE__*/ U.createElement("circle", W({}, i, {- className: I("recharts-polar-grid-concentric-circle", e.className),- cx: t,- cy: n,- r- }));-}, Dn = (e) => {- var t = e.radius, n = bn({}, k(e));- return /*#__PURE__*/ U.createElement("path", W({}, n, {- className: I("recharts-polar-grid-concentric-polygon", e.className),- d: wn(t, e.cx, e.cy, e.polarAngles)- }));-}, On = (e) => {- var t = e.polarRadius, n = e.gridType;- if (!t || !t.length) return null;- var r = Math.max(...t), i = e.fill && e.fill !== "none";- return /*#__PURE__*/ U.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ U.createElement(En, W({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ U.createElement(Dn, W({}, e, { radius: r })), t.map((t, r) => {- var i = r;- return n === "circle" ? /*#__PURE__*/ U.createElement(En, W({ key: i }, e, {- fill: "none",- radius: t- })) : /*#__PURE__*/ U.createElement(Dn, W({ key: i }, e, {- fill: "none",- radius: t- }));- }));-}, kn = {- angleAxisId: 0,- radiusAxisId: 0,- gridType: "polygon",- radialLines: !0,- zIndex: m.grid,- stroke: "#ccc",- strokeWidth: 1,- fill: "none"-}, An = (e) => {- var t = Ee(e, kn), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = _n(t, gn), m = A(Ae), h = A((e) => mn(e, i)), g = A((e) => hn(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;- if (_ == null || v == null) return null;- var y = bn({- cx: m?.cx ?? o ?? 0,- cy: m?.cy ?? s ?? 0,- innerRadius: m?.innerRadius ?? c ?? 0,- outerRadius: m?.outerRadius ?? l ?? 0,- polarAngles: _,- polarRadius: v,- zIndex: f- }, p);- return y.outerRadius <= 0 ? null : /*#__PURE__*/ U.createElement(E, { zIndex: y.zIndex }, /*#__PURE__*/ U.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ U.createElement(On, W({- gridType: n,- radialLines: r- }, y, {- polarAngles: _,- polarRadius: v- })), /*#__PURE__*/ U.createElement(Tn, W({- gridType: n,- radialLines: r- }, y, {- polarAngles: _,- polarRadius: v- }))));-};-An.displayName = "PolarGrid";-// node_modules/es-toolkit/dist/compat/_internal/toArray.mjs-function jn(e) {- return Array.isArray(e) ? e : Array.from(e);-}-// node_modules/es-toolkit/dist/compat/math/maxBy.mjs-function Mn(e, t = ge) {- if (e == null) return;- let n = jn(e);- if (n.length === 0) return;- let r = xe(t), i, a;- for (let e = 0; e < n.length; e++) {- let t = n[e], o = r(t, e, n);- o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);- }- return i;-}-// node_modules/es-toolkit/dist/compat/math/minBy.mjs-function Nn(e, t = ge) {- if (e == null) return;- let n = jn(e);- if (n.length === 0) return;- let r = xe(t), i, a;- for (let e = 0; e < n.length; e++) {- let t = n[e], o = r(t, e, n);- o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);- }- return i;-}-// node_modules/recharts/es6/polar/PolarRadiusAxis.js-var Pn = ["type"], Fn = [- "cx",- "cy",- "angle",- "axisLine"-], In = [- "angle",- "tickFormatter",- "stroke",- "tick"-];-function G() {- return G = Object.assign ? Object.assign.bind() : function(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t];- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);- }- return e;- }, G.apply(null, arguments);-}-function Ln(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function K(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Ln(Object(n), !0).forEach(function(t) {- Rn(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ln(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function Rn(e, t, n) {- return (t = zn(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function zn(e) {- var t = Bn(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function Bn(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-function Vn(e, t) {- if (e == null) return {};- var n, r, i = Hn(e, t);- if (Object.getOwnPropertySymbols) {- var a = Object.getOwnPropertySymbols(e);- for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);- }- return i;-}-function Hn(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;-}-var Un = "radiusAxis";-function Wn(e) {- var t = Re(), n = Be(), r = (0, U.useMemo)(() => {- var t = e.type, r = Vn(e, Pn), i = ue(n, "radiusAxis", t);- if (i != null) return K(K({}, r), {}, { type: i });- }, [e, n]);- return (0, U.useEffect)(() => r == null ? we : (t(re(r)), () => {- t(Te(r));- }), [t, r]), null;-}-var Gn = (e, t, n, r) => {- var i = e.coordinate;- return O(n, r, i, t);-}, Kn = (e) => {- var t;- switch (e) {- case "left":- t = "end";- break;- case "right":- t = "start";- break;- default: t = "middle";- }- return t;-}, qn = (e, t, n, r) => {- var i = Mn(r, (e) => e.coordinate || 0);- return {- cx: t,- cy: n,- startAngle: e,- endAngle: e,- innerRadius: Nn(r, (e) => e.coordinate || 0)?.coordinate || 0,- outerRadius: i?.coordinate || 0,- clockWise: !1- };-}, Jn = (e, t) => {- var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = Vn(e, Fn), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = O(n, r, s[0], i), l = O(n, r, s[1], i), u = K(K(K({}, k(o)), {}, { fill: "none" }, k(a)), {}, {- x1: c.x,- y1: c.y,- x2: l.x,- y2: l.y- });- return /*#__PURE__*/ U.createElement("line", G({ className: "recharts-polar-radius-axis-line" }, u));-}, Yn = (e, t, n) => /*#__PURE__*/ U.isValidElement(e) ? /*#__PURE__*/ U.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ U.createElement(te, G({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Xn = (e, t) => {- var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = Vn(e, In), s = Kn(e.orientation), c = k(o), l = Pe(a), u = t.map((t, o) => {- var u = Gn(t, e.angle, e.cx, e.cy), d = K(K(K(K({- textAnchor: s,- transform: `rotate(${90 - n}, ${u.x}, ${u.y})`- }, c), {}, {- stroke: "none",- fill: i- }, l), {}, { index: o }, u), {}, { payload: t });- return /*#__PURE__*/ U.createElement(v, G({- className: I("recharts-polar-radius-axis-tick", fe(a)),- key: `tick-${t.coordinate}`- }, ne(e, t, o)), Yn(a, d, r ? r(t.value, o) : t.value));- });- return /*#__PURE__*/ U.createElement(v, { className: "recharts-polar-radius-axis-ticks" }, u);-}, Zn = (e) => {- var t = e.radiusAxisId, n = A(Ae), r = A((e) => pn(e, "radiusAxis", t)), i = A((e) => H(e, "radiusAxis", t, !1));- if (n == null || !i || !i.length || r == null) return null;- var a = K(K({}, e), {}, { scale: r }, n), o = a.tick, s = a.axisLine;- return /*#__PURE__*/ U.createElement(E, { zIndex: a.zIndex }, /*#__PURE__*/ U.createElement(v, { className: I("recharts-polar-radius-axis", Un, a.className) }, s && Jn(a, i), o && Xn(a, i), /*#__PURE__*/ U.createElement(x, qn(a.angle, a.cx, a.cy, i), /*#__PURE__*/ U.createElement(S, { label: a.label }), a.children)));-};-function Qn(e) {- var t = Ee(e, ce);- return /*#__PURE__*/ U.createElement(U.Fragment, null, /*#__PURE__*/ U.createElement(Wn, {- domain: t.domain,- id: t.radiusAxisId,- scale: t.scale,- type: t.type,- dataKey: t.dataKey,- unit: void 0,- name: t.name,- allowDuplicatedCategory: t.allowDuplicatedCategory,- allowDataOverflow: t.allowDataOverflow,- reversed: t.reversed,- includeHidden: t.includeHidden,- allowDecimals: t.allowDecimals,- niceTicks: t.niceTicks ?? "auto",- ticks: t.ticks,- tickCount: t.tickCount,- tick: t.tick- }), /*#__PURE__*/ U.createElement(Zn, t));-}-Qn.displayName = "PolarRadiusAxis";-// node_modules/es-toolkit/dist/array/last.mjs-function $n(e) {- return e[e.length - 1];-}-// node_modules/es-toolkit/dist/compat/array/last.mjs-function er(e) {- if (ve(e) && e.length !== 0) return $n(jn(e));-}-// node_modules/recharts/es6/state/selectors/radarSelectors.js-function tr(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function nr(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? tr(Object(n), !0).forEach(function(t) {- rr(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tr(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function rr(e, t, n) {- return (t = ir(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function ir(e) {- var t = ar(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function ar(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-var or = (e, t) => pn(e, "radiusAxis", t), sr = D([or], (e) => {- if (e != null) return { scale: e };-}), cr = D([je, or], (e, t) => {- if (e != null && t != null) return nr(nr({}, e), {}, { scale: t });-}), lr = (e, t, n, r) => H(e, "radiusAxis", t, r), ur = (e, t, n) => De(e, n), dr = (e, t, n) => pn(e, "angleAxis", n), fr = D([ur, dr], (e, t) => {- if (e != null && t != null) return nr(nr({}, e), {}, { scale: t });-}), pr = (e, t, n, r) => H(e, "angleAxis", n, r), mr = D([- ur,- dr,- Ae-], (e, t, n) => {- if (n != null && t != null) return {- scale: t,- type: e.type,- dataKey: e.dataKey,- cx: n.cx,- cy: n.cy- };-}), hr = (e, t, n, r, i) => i, gr = D([- ke,- cr,- lr,- fr,- pr-], (e, t, n, r, i) => ye(e, "radiusAxis") ? de(t, n, !1) : de(r, i, !1)), _r = D([Me, hr], (e, t) => {- if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;-}), vr = D([- sr,- mr,- Oe,- _r,- gr-], (e, t, n, r, i) => {- var a = n.chartData, o = n.dataStartIndex, s = n.dataEndIndex;- if (e != null && t != null && a != null && i != null && r != null) return Ar({- radiusAxis: e,- angleAxis: t,- displayedData: a.slice(o, s + 1),- dataKey: r,- bandSize: i- });-}), yr = ["id"];-function q() {- return q = Object.assign ? Object.assign.bind() : function(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t];- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);- }- return e;- }, q.apply(null, arguments);-}-function br(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function J(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? br(Object(n), !0).forEach(function(t) {- xr(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : br(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function xr(e, t, n) {- return (t = Sr(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function Sr(e) {- var t = Cr(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function Cr(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-function wr(e, t) {- if (e == null) return {};- var n, r, i = Tr(e, t);- if (Object.getOwnPropertySymbols) {- var a = Object.getOwnPropertySymbols(e);- for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);- }- return i;-}-function Tr(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;-}-function Er(e, t) {- return e && e !== "none" ? e : t;-}-var Dr = (e) => {- var t = e.dataKey, n = e.name, r = e.stroke, i = e.fill, a = e.legendType;- return [{- inactive: e.hide,- dataKey: t,- type: a,- color: Er(r, i),- value: me(n, t),- payload: e- }];-}, Or = /*#__PURE__*/ U.memo((e) => {- var t = e.dataKey, n = e.stroke, r = e.strokeWidth, i = e.fill, a = e.name, o = e.hide, s = e.tooltipType, c = e.id, l = {- dataDefinedOnItem: void 0,- getPosition: we,- settings: {- stroke: n,- strokeWidth: r,- fill: i,- nameKey: void 0,- dataKey: t,- name: me(a, t),- hide: o,- type: s,- color: Er(n, i),- unit: "",- graphicalItemId: c- }- };- return /*#__PURE__*/ U.createElement(T, { tooltipEntrySettings: l });-});-function kr(e) {- var t = e.points, n = e.props, r = n.dot, i = n.dataKey;- n.id;- var a = wr(n, yr), o = k(a);- return /*#__PURE__*/ U.createElement(h, {- points: t,- dot: r,- className: "recharts-radar-dots",- dotClassName: "recharts-radar-dot",- dataKey: i,- baseProps: o- });-}-function Ar(e) {- var t = e.radiusAxis, n = e.angleAxis, r = e.displayedData, i = e.dataKey, a = e.bandSize, o = n.cx, s = n.cy, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;- r.forEach((e, r) => {- var a = he(e, n.dataKey, r), d = he(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? er(d) : d, m = be(p) ? 0 : t.scale.map(p) ?? 0;- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(J(J({}, O(o, s, m, f)), {}, {- name: a,- value: d,- cx: o,- cy: s,- radius: m,- angle: f,- payload: e- }));- });- var d = [];- return c && l.forEach((e) => {- if (Array.isArray(e.value)) {- var n = e.value[0], r = be(n) ? 0 : t.scale.map(n) ?? 0;- d.push(J(J({}, e), {}, { radius: r }, O(o, s, r, e.angle)));- } else d.push(e);- }), {- points: l,- isRange: c,- baseLinePoints: d- };-}-function jr(e) {- var t = e.showLabels, n = e.points, r = e.children, a = n.map((e) => {- var t = {- x: e.x,- y: e.y,- width: 0,- lowerWidth: 0,- upperWidth: 0,- height: 0- };- return J(J({}, t), {}, {- value: e.value ?? "",- payload: e.payload,- parentViewBox: void 0,- viewBox: t,- fill: void 0- });- });- return /*#__PURE__*/ U.createElement(i, { value: t ? a : void 0 }, r);-}-function Mr(e) {- var t = e.points, n = e.baseLinePoints, r = e.props;- if (t == null) return null;- var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ U.isValidElement(i) ? /*#__PURE__*/ U.cloneElement(i, J(J({}, r), {}, { points: t })) : typeof i == "function" ? i(J(J({}, r), {}, { points: t })) : /*#__PURE__*/ U.createElement(dn, q({}, Ne(r), {- onMouseEnter: (e) => {- var t = r.onMouseEnter;- t && t(r, e);- },- onMouseLeave: (e) => {- var t = r.onMouseLeave;- t && t(r, e);- },- points: t,- baseLinePoints: a ? n : void 0,- connectNulls: o- }));- return /*#__PURE__*/ U.createElement(v, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ U.createElement(kr, {- props: r,- points: t- }));-}-var Nr = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [J(J({}, e.next), {}, {- x: _e(e.prev.x, e.next.x, t),- y: _e(e.prev.y, e.next.y, t)-})] : [J(J({}, e.next), {}, {- x: _e(e.next.cx, e.next.x, t),- y: _e(e.next.cy, e.next.y, t)-})]);-function Pr(e) {- var n = e.props, r = e.previousPointsRef, i = e.previousBaseLinePointsRef, a = n.points, o = n.baseLinePoints, s = n.isAnimationActive, c = n.animationBegin, l = n.animationDuration, u = n.animationEasing, d = n.animationMatchBy, f = n.animationInterpolateFn, p = n.onAnimationStart, m = n.onAnimationEnd, h = Le(n, i), g = h.startValue, v = Se(g ?? null, o, d), y = Ie(p, m), b = y.isAnimating, x = y.handleAnimationStart, S = y.handleAnimationEnd, C = Be();- return C == null ? null : /*#__PURE__*/ U.createElement(jr, {- showLabels: !b,- points: a- }, /*#__PURE__*/ U.createElement(t, {- animationInput: n,- animationIdPrefix: "recharts-radar-",- items: a,- previousItemsRef: r,- isAnimationActive: s,- animationBegin: c,- animationDuration: l,- animationEasing: u,- onAnimationStart: x,- onAnimationEnd: S,- animationInterpolateFn: f,- animationMatchBy: d,- layout: C- }, (e, t) => {- var r = t === 1 ? o : f(v, t, C);- return h.syncStepValue(r, t), /*#__PURE__*/ U.createElement(Mr, {- points: e,- baseLinePoints: r,- props: n- });- }), /*#__PURE__*/ U.createElement(_, { label: n.label }), n.children);-}-function Fr(e) {- var t = (0, U.useRef)(void 0), n = (0, U.useRef)(void 0);- return /*#__PURE__*/ U.createElement(Pr, {- props: e,- previousPointsRef: t,- previousBaseLinePointsRef: n- });-}-var Ir = {- activeDot: !0,- angleAxisId: 0,- animationBegin: 0,- animationDuration: 1500,- animationEasing: "ease",- animationMatchBy: Ce,- animationInterpolateFn: Nr,- dot: !1,- hide: !1,- isAnimationActive: "auto",- label: !1,- legendType: "rect",- radiusAxisId: 0,- zIndex: m.area-};-function Lr(t) {- var n = t.hide, r = t.className, i = t.points;- if (n) return null;- var a = I("recharts-radar", r);- return /*#__PURE__*/ U.createElement(E, { zIndex: t.zIndex }, /*#__PURE__*/ U.createElement(v, { className: a }, /*#__PURE__*/ U.createElement(Fr, t)), /*#__PURE__*/ U.createElement(e, {- points: i,- mainColor: Er(t.stroke, t.fill),- itemDataKey: t.dataKey,- activeDot: t.activeDot- }));-}-function Rr(e) {- var t = ze(), n = A((n) => vr(n, e.radiusAxisId, e.angleAxisId, t, e.id));- return n?.points == null ? null : /*#__PURE__*/ U.createElement(Lr, q({}, e, {- points: n?.points,- baseLinePoints: n?.baseLinePoints,- isRange: n?.isRange- }));-}-function zr(e) {- var t = Ee(e, Ir);- return /*#__PURE__*/ U.createElement(C, {- id: t.id,- type: "radar"- }, (e) => /*#__PURE__*/ U.createElement(U.Fragment, null, /*#__PURE__*/ U.createElement(ee, {- type: "radar",- id: e,- data: void 0,- dataKey: t.dataKey,- hide: t.hide,- angleAxisId: t.angleAxisId,- radiusAxisId: t.radiusAxisId- }), /*#__PURE__*/ U.createElement(w, { legendPayload: Dr(t) }), /*#__PURE__*/ U.createElement(Or, {- dataKey: t.dataKey,- stroke: t.stroke,- strokeWidth: t.strokeWidth,- fill: t.fill,- name: t.name,- hide: t.hide,- tooltipType: t.tooltipType,- id: e- }), /*#__PURE__*/ U.createElement(Rr, q({}, t, { id: e }))));-}-zr.displayName = "Radar";-// node_modules/recharts/es6/chart/RadarChart.js-function Br(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function Vr(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Br(Object(n), !0).forEach(function(t) {- Hr(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Br(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function Hr(e, t, n) {- return (t = Ur(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function Ur(e) {- var t = Wr(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function Wr(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-var Gr = ["axis"], Kr = Vr(Vr({}, se), {}, {- layout: "centric",- startAngle: 90,- endAngle: -270-}), qr = /*#__PURE__*/ (0, U.forwardRef)((e, t) => {- var n = Ee(e, Kr);- return /*#__PURE__*/ U.createElement(b, {- chartName: "RadarChart",- defaultTooltipEventType: "axis",- validateTooltipEventTypes: Gr,- tooltipPayloadSearcher: ie,- categoricalChartProps: n,- ref: t- });-}), Y = Wt(), Jr = U.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {- let c = U.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;- if (e === void 0 || t === void 0) return null;- switch (o) {- case "border": return /* @__PURE__ */ (0, Y.jsx)(Xr, {- cx: e,- cy: t,- dotId: c,- fillOpacity: a,- gradientUrl: l,- className: i,- maskId: s- });- case "colored-border": return /* @__PURE__ */ (0, Y.jsx)(Zr, {- cx: e,- cy: t,- dotId: c,- fillOpacity: a,- gradientUrl: l,- className: i,- maskId: s- });- default: return /* @__PURE__ */ (0, Y.jsx)(Yr, {- cx: e,- cy: t,- dotId: c,- fillOpacity: a,- gradientUrl: l,- className: i,- maskId: s- });- }-}), Yr = U.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, Y.jsxs)("g", {- className: a,- mask: o ? `url(#${o})` : void 0,- children: [/* @__PURE__ */ (0, Y.jsx)("defs", { children: /* @__PURE__ */ (0, Y.jsx)("clipPath", {- id: `dot-clip-${n}`,- children: /* @__PURE__ */ (0, Y.jsx)("circle", {- cx: e,- cy: t,- r: 3- })- }) }), /* @__PURE__ */ (0, Y.jsx)("rect", {- x: "0",- y: t - 3,- width: "100%",- height: 6,- fill: i,- fillOpacity: r,- clipPath: `url(#dot-clip-${n})`- })]-}));-Yr.displayName = "DefaultDot";-var Xr = U.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, Y.jsxs)("g", {- className: oe(a, "text-background"),- mask: o ? `url(#${o})` : void 0,- children: [- /* @__PURE__ */ (0, Y.jsx)("defs", { children: /* @__PURE__ */ (0, Y.jsx)("clipPath", {- id: `dot-clip-${n}`,- children: /* @__PURE__ */ (0, Y.jsx)("circle", {- cx: e,- cy: t,- r: 6- })- }) }),- /* @__PURE__ */ (0, Y.jsx)("circle", {- cx: e,- cy: t,- r: 6,- fill: "currentColor"- }),- /* @__PURE__ */ (0, Y.jsx)("rect", {- x: "0",- y: t - (6 - 5 / 2),- width: "100%",- height: 7,- fill: i,- fillOpacity: r,- clipPath: `url(#dot-clip-inner-${n})`- }),- /* @__PURE__ */ (0, Y.jsx)("defs", { children: /* @__PURE__ */ (0, Y.jsx)("clipPath", {- id: `dot-clip-inner-${n}`,- children: /* @__PURE__ */ (0, Y.jsx)("circle", {- cx: e,- cy: t,- r: 6 - 5 / 2- })- }) })- ]-}));-Xr.displayName = "PrimaryBorderDot";-var Zr = U.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, Y.jsxs)("g", {- className: oe(a, "text-background"),- mask: o ? `url(#${o})` : void 0,- children: [- /* @__PURE__ */ (0, Y.jsx)("defs", { children: /* @__PURE__ */ (0, Y.jsx)("clipPath", {- id: `dot-clip-${n}`,- children: /* @__PURE__ */ (0, Y.jsx)("circle", {- cx: e,- cy: t,- r: 3.5- })- }) }),- /* @__PURE__ */ (0, Y.jsx)("rect", {- x: "0",- y: t - 3 - 1 / 2,- width: "100%",- height: 7,- fill: i,- fillOpacity: r,- clipPath: `url(#dot-clip-${n})`- }),- /* @__PURE__ */ (0, Y.jsx)("circle", {- cx: e,- cy: t,- r: 3 - 1 / 2,- fill: "currentColor"- })- ]-}));-Zr.displayName = "ColoredBorderDot";-// src/react/evilcharts/registry/charts/recharts-radar-chart.tsx-var Qr = 1, $r = .3, ei = 6, ti = 1500, ni = "value", ri = (0, U.createContext)(null);-function X() {- let e = (0, U.use)(ri);- if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");- return e;-}-function Z({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: c = null, onSelectionChange: l, isLoading: u = !1, loadingPoints: d }) {- let f = (0, U.useId)().replace(/:/g, ""), [p, m] = (0, U.useState)(c), h = yi(u, d), g = (0, U.useCallback)((e) => {- m(e), l?.(e);- }, [l]), _ = (0, U.useMemo)(() => ({- config: e,- isLoading: u,- selectedDataKey: p,- selectDataKey: g- }), [- e,- u,- p,- g- ]);- return /* @__PURE__ */ (0, Y.jsx)(ri, {- value: _,- children: /* @__PURE__ */ (0, Y.jsxs)(s, {- className: r,- config: e,- children: [/* @__PURE__ */ (0, Y.jsx)(y, { isLoading: u }), /* @__PURE__ */ (0, Y.jsxs)(qr, {- id: f,- data: u ? h : t,- ...i,- children: [- a && /* @__PURE__ */ (0, Y.jsx)(o, { variant: a }),- n,- u && /* @__PURE__ */ (0, Y.jsx)(bi, {})- ]- })]- })- });-}-function ii({ dataKey: e, variant: t = "filled", fillOpacity: n = $r, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = X(), d = (0, U.useId)().replace(/:/g, "");- if (c) return null;- let f = i && l !== null && l !== e, p = {- stroke: f ? .2 : 1,- fill: f ? .1 : 1,- dot: f ? .2 : 1- }, m = t === "filled", { dot: h, activeDot: g } = fi(a, d, e, p.dot);- return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(zr, {- dataKey: e,- stroke: `url(#${d}-radar-stroke-${e})`,- strokeOpacity: p.stroke,- strokeWidth: Qr,- fill: m ? `url(#${d}-radar-fill-${e})` : "none",- fillOpacity: m ? n * p.fill : 0,- dot: h,- activeDot: g,- filter: r ? `url(#${d}-radar-glow-${e})` : void 0,- className: "transition-opacity duration-200",- style: i ? { cursor: "pointer" } : void 0,- onClick: () => {- i && u(l === e ? null : e);- },- ...o- }), /* @__PURE__ */ (0, Y.jsxs)("defs", { children: [- /* @__PURE__ */ (0, Y.jsx)(mi, {- id: d,- dataKey: e,- config: s- }),- /* @__PURE__ */ (0, Y.jsx)(hi, {- id: d,- dataKey: e,- config: s- }),- m && /* @__PURE__ */ (0, Y.jsx)(gi, {- id: d,- dataKey: e,- config: s- }),- r && /* @__PURE__ */ (0, Y.jsx)(_i, {- id: d,- dataKey: e- })- ] })] });-}-var ai = () => null, oi = () => null;-function si({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {- return /* @__PURE__ */ (0, Y.jsx)(An, {- gridType: e,- stroke: t,- strokeOpacity: n,- strokeDasharray: r,- ...i- });-}-function ci({ tick: e = {- fill: "currentColor",- fontSize: 12-}, tickLine: t = !1, ...n }) {- let { isLoading: r } = X();- return r ? null : /* @__PURE__ */ (0, Y.jsx)(un, {- tick: e,- tickLine: t,- ...n- });-}-function li({ tick: e = {- fill: "currentColor",- fontSize: 10-}, tickLine: t = !1, axisLine: n = !1, ...r }) {- let { isLoading: i } = X();- return i ? null : /* @__PURE__ */ (0, Y.jsx)(Qn, {- tick: e,- tickLine: t,- axisLine: n,- ...r- });-}-function ui({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, selectedDataKey: i } = X();- return r ? null : /* @__PURE__ */ (0, Y.jsx)(f, {- defaultIndex: n,- cursor: !1,- content: /* @__PURE__ */ (0, Y.jsx)(p, {- selected: i,- roundness: t,- variant: e- })- });-}-function di({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = X();- return i ? null : /* @__PURE__ */ (0, Y.jsx)(l, {- verticalAlign: n,- align: t,- content: /* @__PURE__ */ (0, Y.jsx)(u, {- selected: a,- onSelectChange: o,- isClickable: r,- variant: e- })- });-}-var fi = (e, t, n, r) => {- let i = !1, a = !1;- return U.Children.forEach(e, (e) => {- if ((0, U.isValidElement)(e)) {- if (e.type === ai) {- let { variant: a } = e.props;- i = /* @__PURE__ */ (0, Y.jsx)(Jr, {- type: a,- dataKey: n,- chartId: t,- fillOpacity: r- });- }- if (e.type === oi) {- let { variant: i } = e.props;- a = /* @__PURE__ */ (0, Y.jsx)(Jr, {- type: i,- dataKey: n,- chartId: t,- fillOpacity: r- });- }- }- }), {- dot: i,- activeDot: a- };-}, pi = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)("stop", {- offset: "0%",- stopColor: `var(--color-${e}-0)`,- stopOpacity: n?.[0]-}), /* @__PURE__ */ (0, Y.jsx)("stop", {- offset: "100%",- stopColor: `var(--color-${e}-0)`,- stopOpacity: n?.[n.length - 1]-})] }) : /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: Array.from({ length: t }, (r, i) => {- let a = `${i / (t - 1) * 100}%`;- return /* @__PURE__ */ (0, Y.jsx)("stop", {- offset: a,- stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,- stopOpacity: n?.[i]- }, a);-}) }), mi = ({ id: e, dataKey: t, config: n }) => {- let r = pe(n[t] ?? {});- return /* @__PURE__ */ (0, Y.jsx)("linearGradient", {- id: `${e}-colors-${t}`,- x1: "0",- y1: "0",- x2: "1",- y2: "0",- children: /* @__PURE__ */ (0, Y.jsx)(pi, {- dataKey: t,- colorsCount: r- })- });-}, hi = ({ id: e, dataKey: t, config: n }) => {- let r = pe(n[t] ?? {});- return /* @__PURE__ */ (0, Y.jsx)("linearGradient", {- id: `${e}-radar-stroke-${t}`,- x1: "0",- y1: "0",- x2: "1",- y2: "1",- children: /* @__PURE__ */ (0, Y.jsx)(pi, {- dataKey: t,- colorsCount: r- })- });-}, gi = ({ id: e, dataKey: t, config: n }) => {- let r = pe(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);- return /* @__PURE__ */ (0, Y.jsx)("radialGradient", {- id: `${e}-radar-fill-${t}`,- cx: "50%",- cy: "50%",- r: "50%",- children: /* @__PURE__ */ (0, Y.jsx)(pi, {- dataKey: t,- colorsCount: r,- opacities: i- })- });-}, _i = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, Y.jsxs)("filter", {- id: `${e}-radar-glow-${t}`,- x: "-50%",- y: "-50%",- width: "200%",- height: "200%",- children: [- /* @__PURE__ */ (0, Y.jsx)("feGaussianBlur", {- in: "SourceGraphic",- stdDeviation: "4",- result: "blur"- }),- /* @__PURE__ */ (0, Y.jsx)("feColorMatrix", {- in: "blur",- type: "matrix",- values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0",- result: "glow"- }),- /* @__PURE__ */ (0, Y.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, Y.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, Y.jsx)("feMergeNode", { in: "SourceGraphic" })] })- ]-}), vi = (e) => [- "A",- "B",- "C",- "D",- "E",- "F"-].slice(0, e).map((e) => ({- skill: e,- [ni]: 30 + Math.random() * 70-}));-function yi(e, t = ei) {- let [n, r] = (0, U.useState)(0);- return (0, U.useEffect)(() => {- if (!e) return;- let t = setInterval(() => {- r((e) => e + 1);- }, ti);- return () => clearInterval(t);- }, [e]), (0, U.useMemo)(() => vi(t), [t, n]);-}-var bi = () => /* @__PURE__ */ (0, Y.jsx)(zr, {- dataKey: ni,- stroke: "currentColor",- strokeOpacity: .3,- strokeWidth: 2,- fill: "currentColor",- fillOpacity: .1,- dot: !1,- isAnimationActive: !0,- animationDuration: ti,- animationEasing: "ease-in-out"-});-Z.Radar = ii, Z.Dot = ai, Z.ActiveDot = oi, Z.PolarGrid = si, Z.PolarAngleAxis = ci, Z.PolarRadiusAxis = li, Z.Tooltip = ui, Z.Legend = di;-// src/react/taste/charts.tsx-function xi(e) {- let { x: t = 0, cx: n, textAnchor: r, payload: i, ...a } = e, o = String(i?.value ?? ""), s = typeof n == "number" ? n * 2 : 0, c = s ? r === "start" ? s - t : r === "end" ? t : 2 * Math.min(t, s - t) : 56;- return /* @__PURE__ */ (0, Y.jsxs)("g", { children: [/* @__PURE__ */ (0, Y.jsx)("title", { children: o }), /* @__PURE__ */ (0, Y.jsx)(te, {- ...a,- x: t,- textAnchor: r,- fill: "currentColor",- fontSize: 12,- children: le(o, c - 4)- })] });-}-var Si = [- "stroke-chart-1",- "stroke-chart-2",- "stroke-chart-3",- "stroke-chart-4",- "stroke-chart-5",- "stroke-chart-6"-], Ci = [- "fill-chart-1",- "fill-chart-2",- "fill-chart-3",- "fill-chart-4",- "fill-chart-5",- "fill-chart-6"-], wi = { value: {- label: "标签出现次数",- colors: Fe(r[3])-} }, Ti = [- "min-h-24",- "min-h-24",- "min-h-24",- "min-h-32",- "min-h-40",- "min-h-48",- "min-h-52",- "min-h-60",- "min-h-64"-], Ei = 26, Di = { radius: wi.value }, Oi = (e, t) => Math.sqrt(e / t);-function ki({ rows: e, label: t }) {- let n = Bt(e);- if (!n.length) return null;- let r = n[0].value, i = n.map((e) => ({- ...e,- radius: Oi(e.value, r)- }));- return /* @__PURE__ */ (0, Y.jsx)("div", {- role: "img",- "aria-label": `${t}:${i.map((e) => e.name).join(",")}`,- children: /* @__PURE__ */ (0, Y.jsxs)(Z, {- data: i,- config: Di,- chartProps: { outerRadius: "58%" },- className: "aspect-auto h-70 text-text-secondary",- children: [- /* @__PURE__ */ (0, Y.jsx)(Z.PolarGrid, {}),- /* @__PURE__ */ (0, Y.jsx)(Z.PolarAngleAxis, {- dataKey: "name",- tick: /* @__PURE__ */ (0, Y.jsx)(xi, {})- }),- /* @__PURE__ */ (0, Y.jsx)(Z.PolarRadiusAxis, {- domain: [0, 1],- allowDecimals: !0,- tick: !1- }),- /* @__PURE__ */ (0, Y.jsx)(Z.Radar, { dataKey: "radius" }),- /* @__PURE__ */ (0, Y.jsx)(d, { valueKey: "value" })- ]- })- });-}-function Ai({ rows: e, label: t }) {- let n = en(e, 8);- return n.length ? /* @__PURE__ */ (0, Y.jsx)("section", {- "aria-label": t,- className: `flex grow flex-col ${Ti[n.length]}`,- children: /* @__PURE__ */ (0, Y.jsxs)(g, {- data: n,- config: wi,- layout: "horizontal",- barRadius: 4,- chartProps: {- maxBarSize: Ei,- margin: {- top: 5,- right: 56,- bottom: 5,- left: 5- }- },- className: "aspect-auto text-text-secondary",- children: [- /* @__PURE__ */ (0, Y.jsx)(g.YAxis, {- dataKey: "name",- interval: 0,- tick: /* @__PURE__ */ (0, Y.jsx)(a, { along: "y" }),- width: ae(n.map((e) => e.name))- }),- /* @__PURE__ */ (0, Y.jsx)(g.XAxis, {- hide: !0,- domain: cn- }),- /* @__PURE__ */ (0, Y.jsx)(g.Bar, {- dataKey: "value",- enableHoverHighlight: !0,- barProps: {- dataKey: "value",- label: fn("right")- }- }),- /* @__PURE__ */ (0, Y.jsx)(d, {})- ]- })- }) : null;-}-function ji({ flows: e }) {- let [t, r] = (0, U.useState)(null), i = jt(e);- if (!i) return null;- let a = t?.node ?? null, o = (e, n) => t ? a === null ? t.label === n : e.source === a || e.target === a : !0;- return /* @__PURE__ */ (0, Y.jsxs)("section", {- className: n,- children: [- /* @__PURE__ */ (0, Y.jsx)(c, {- title: "创作者线索来源",- figure: (t ? t.value : i.total).toLocaleString(),- note: t ? t.label : "条线索"- }),- /* @__PURE__ */ (0, Y.jsx)("ol", {- "aria-label": "来源网站与创作者线索",- className: "flex flex-col sm:hidden",- children: [...i.links].sort((e, t) => t.value - e.value).map((e) => /* @__PURE__ */ (0, Y.jsxs)("li", {- className: "flex items-baseline justify-between gap-3 border-b border-separator-border py-2 text-body-2-regular text-text-primary last:border-b-0",- children: [/* @__PURE__ */ (0, Y.jsx)("span", {- className: "min-w-0 wrap-anywhere",- children: e.label- }), /* @__PURE__ */ (0, Y.jsx)("b", {- className: "shrink-0 tabular-nums",- children: e.value.toLocaleString()- })]- }, e.key))- }),- /* @__PURE__ */ (0, Y.jsx)("div", {- className: "min-w-0 max-sm:hidden",- children: /* @__PURE__ */ (0, Y.jsxs)("svg", {- viewBox: `0 0 ${Ye.width} ${i.height}`,- fill: "none",- role: "img",- "aria-label": "来源网站与创作者线索",- className: "block h-auto w-full",- onPointerLeave: () => r(null),- children: [/* @__PURE__ */ (0, Y.jsx)("g", { children: i.links.map((e) => /* @__PURE__ */ (0, Y.jsx)("path", {- d: e.d,- strokeWidth: e.width,- tabIndex: 0,- role: "img",- "aria-label": `${e.label}:${e.value} 条线索`,- fillOpacity: 0,- strokeOpacity: o(e, e.label) ? .55 : .08,- className: `outline-none transition-opacity ${Si[e.color]}`,- onPointerEnter: () => r({- value: e.value,- label: e.label,- node: null- }),- onFocus: () => r({- value: e.value,- label: e.label,- node: null- }),- onBlur: () => r(null)- }, e.key)) }), /* @__PURE__ */ (0, Y.jsx)("g", { children: i.nodes.map((e) => /* @__PURE__ */ (0, Y.jsxs)("g", {- tabIndex: 0,- role: "img",- "aria-label": `${e.name}:${e.value} 条线索`,- className: "outline-none focus-visible:opacity-100",- onPointerEnter: () => r({- value: e.value,- label: e.name,- node: e.index- }),- onFocus: () => r({- value: e.value,- label: e.name,- node: e.index- }),- onBlur: () => r(null),- children: [/* @__PURE__ */ (0, Y.jsx)("rect", {- x: e.x,- y: e.y,- width: 10,- height: e.height,- rx: 5,- className: e.side === "source" ? Ci[e.color] : "fill-text-secondary"- }), /* @__PURE__ */ (0, Y.jsxs)("text", {- x: Je[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: [Mt(e.name), /* @__PURE__ */ (0, Y.jsx)("tspan", {- x: Je[e.side],- dy: 15,- children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`- })]- })]- }, e.id)) })]- })- }),- /* @__PURE__ */ (0, Y.jsxs)("footer", {- className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary max-sm:hidden",- children: [/* @__PURE__ */ (0, Y.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, Y.jsx)("span", { children: "创作者 · 线索占比" })]- })- ]- });-}-var Mi = {- version: 1,- note: "浏览器品牌标识仅用于识别相应数据源;商标归各自所有者。",- icons: [- {- id: "chrome",- aliases: [- "chrome",- "Google Chrome",- "谷歌浏览器"- ],- file: "chrome.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chrome/chrome_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "eccdfe9d867373e2da66eedfcaaab40cbcdf6a221b83d6ee1400895a3e4c8046",- bytes: 3166- },- {- id: "chrome-beta",- aliases: ["chrome-beta", "chrome beta"],- file: "chrome-beta.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chrome-beta/chrome-beta_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "34d7c73511f666e282e6ffca64315b53c287402de0e594976574a20e9031434f",- bytes: 3731- },- {- id: "chrome-dev",- aliases: ["chrome-dev", "chrome dev"],- file: "chrome-dev.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chrome-dev/chrome-dev_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "3cc498eae83afeefb6f3ab5d24f4edead0ce6597e3afb91e4dcdaff923bb5a0a",- bytes: 3706- },- {- id: "chrome-canary",- aliases: ["chrome-canary", "chrome canary"],- file: "chrome-canary.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chrome-canary/chrome-canary_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "590d38919b0c3df5dffeb1d4cbe9a24b211920932bcc367778f4962270e0997c",- bytes: 1858- },- {- id: "chromium",- aliases: ["chromium", "Chromium浏览器"],- file: "chromium.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/chromium/chromium_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "9fc23dba1ec6765aee3e6c200ee1b77a7e4ac56a25dd5a89027d3b01f3389d21",- bytes: 2035- },- {- id: "edge",- aliases: [- "edge",- "Microsoft Edge",- "微软Edge"- ],- file: "edge.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/edge/edge_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "a189a6054451f74073ba27c9e0ff35f46402263a2f883a74b9f6a89bb42b7975",- bytes: 3574- },- {- id: "edge-beta",- aliases: ["edge-beta", "edge beta"],- file: "edge-beta.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/edge-beta/edge-beta_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "074d4b135e89f1621d55a48831196b5c95b27084e15ffeee7bd3ef869a06e394",- bytes: 3820- },- {- id: "edge-dev",- aliases: ["edge-dev", "edge dev"],- file: "edge-dev.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/edge-dev/edge-dev_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "70df54bb62d68ae61f042b54bced912ba87f334675b625963fa82bba172e2501",- bytes: 3671- },- {- id: "edge-canary",- aliases: ["edge-canary", "edge canary"],- file: "edge-canary.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/edge-canary/edge-canary_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "b0ec80dc2b855f7dc6b4ecee8735c3a397d5803a7a4801011c545d765e5ac705",- bytes: 3728- },- {- id: "firefox",- aliases: [- "firefox",- "Mozilla Firefox",- "火狐浏览器"- ],- file: "firefox.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/firefox/firefox_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "98c4837a6cdce28d66cd51ea1e13cf130a5ac7bd097579a6714ad8345c16d3c9",- bytes: 3943- },- {- id: "firefox-beta",- aliases: ["firefox-beta", "firefox beta"],- file: "firefox-beta.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/firefox-beta/firefox-beta_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "2f25600de1c538cdf5965541c1f4960ef0a0da76fc0030b5a36af8288b9dac94",- bytes: 4365- },- {- id: "firefox-developer-edition",- aliases: [- "firefox-developer-edition",- "firefox developer edition",- "Firefox Developer Edition",- "Firefox Dev"- ],- file: "firefox-developer-edition.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/firefox-developer-edition/firefox-developer-edition_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "482ee0acf9deccbaf0253801f0a2ded2798b33166e3696fc1ae97f15788a335c",- bytes: 4463- },- {- id: "firefox-nightly",- aliases: ["firefox-nightly", "firefox nightly"],- file: "firefox-nightly.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/firefox-nightly/firefox-nightly_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "4082cba90a03962cd7be1ef6a8e7b3915d8b8e5411f919fbeb4d4f62684aa4cb",- bytes: 4124- },- {- id: "brave",- aliases: ["brave"],- file: "brave.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/brave/brave_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "fc67ee59d32612dc08eac9461fae8840441e888cceae7c07465ebdbfa58c5d63",- bytes: 2416- },- {- id: "brave-beta",- aliases: ["brave-beta", "brave beta"],- file: "brave-beta.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/brave-beta/brave-beta_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "fb029b4501f68c803429385b496bee9c3ce16710f8f12f9bae9f7db74bce2e1a",- bytes: 3085- },- {- id: "brave-dev",- aliases: ["brave-dev", "brave dev"],- file: "brave-dev.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/brave-dev/brave-dev_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "1797ab7fc86b1952851082f1dbeb7ff6816525d2654cdc0e455f7dd6d109a0da",- bytes: 3837- },- {- id: "brave-nightly",- aliases: ["brave-nightly", "brave nightly"],- file: "brave-nightly.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/brave-nightly/brave-nightly_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "e2f0e7506642d7491521f10250d0ede60c2a1e89ea7fdb6f8a2a366189643de4",- bytes: 3929- },- {- id: "vivaldi",- aliases: ["vivaldi"],- file: "vivaldi.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/vivaldi/vivaldi_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "2cef8b72a605bfd4b3a665e88773ff6e915972db1e874fd3373f34d8e43c03d1",- bytes: 2657- },- {- id: "vivaldi-snapshot",- aliases: ["vivaldi-snapshot", "vivaldi snapshot"],- file: "vivaldi-snapshot.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/vivaldi-snapshot/vivaldi-snapshot_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "d7adcb47765e5982d50565a4db328c6656d19503252f49855ae891dc655df22e",- bytes: 2286- },- {- id: "opera",- aliases: ["opera"],- file: "opera.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera/opera_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "907f47f584ca0f83446680a2ce1b4dc4dc81ac2e2bec0090e5b4ac98ccade4d4",- bytes: 2152- },- {- id: "opera-beta",- aliases: ["opera-beta", "opera beta"],- file: "opera-beta.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-beta/opera-beta_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "1a5164ba569241ac87ceb2878190a261d52a63e4218ee16290f6adde7fe1380e",- bytes: 4225- },- {- id: "opera-developer",- aliases: ["opera-developer", "opera developer"],- file: "opera-developer.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-developer/opera-developer_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "b5f0fbb90b11daa64b1642beddb00ae73120f46184f6a31e83584a6d2c91efc2",- bytes: 3854- },- {- id: "opera-gx",- aliases: ["opera-gx", "opera gx"],- file: "opera-gx.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-gx/opera-gx_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "d92a6e2dbecfdbc0e4986d6eabce5f7c75804699fe8a7b64fe0c0167617a7d0e",- bytes: 1504- },- {- id: "opera-neon",- aliases: ["opera-neon", "opera neon"],- file: "opera-neon.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-neon/opera-neon_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "12d0a029aa3f3b5e70805bb2c39304efdb1db75e59e9ba89f05f880dc0b6aa1a",- bytes: 3385- },- {- id: "opera-mini",- aliases: ["opera-mini", "opera mini"],- file: "opera-mini.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/opera-mini/opera-mini_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "2509f1615ead4c8ddb25dfcc6024ba2e2b98f4da2a012a4039882597903646f9",- bytes: 3009- },- {- id: "safari",- aliases: ["safari", "Apple Safari"],- file: "safari.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/safari/safari_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "5a4608283c36615ebcfb0762f64cfe5706b03bfdcedc5810fe10ee883ca4fff0",- bytes: 4497- },- {- id: "safari-technology-preview",- aliases: ["safari-technology-preview", "safari technology preview"],- file: "safari-technology-preview.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/safari-technology-preview/safari-technology-preview_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "29a6403e566b4b53f125bcdb7381d86eb14558e84d7ff4eb9f74e559fd4d8c72",- bytes: 4404- },- {- id: "samsung-internet",- aliases: [- "samsung-internet",- "samsung internet",- "Samsung Internet Browser"- ],- file: "samsung-internet.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/samsung-internet/samsung-internet_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "239c8d26b38cba9fa9468555a93637b29de64d2f0f2769ddd007d78c564288b0",- bytes: 1814- },- {- id: "tor",- aliases: ["tor"],- file: "tor.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/tor/tor_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "54bae0a77f813c2c9bf7594b52e98931630a450a5ea42dced26e0df3f432fe01",- bytes: 3685- },- {- id: "tor-alpha",- aliases: ["tor-alpha", "tor alpha"],- file: "tor-alpha.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/tor-alpha/tor-alpha_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "9b8b2dfae28ac7fcb452e25225ce337b954ab9c8dc7939364ed1219c9c42864a",- bytes: 3643- },- {- id: "yandex",- aliases: ["yandex"],- file: "yandex.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/yandex/yandex_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "803d73b46b135e783ef9984a35ffcb0b43f31cfe8d6be4a1371598ebdc549f89",- bytes: 3139- },- {- id: "uc",- aliases: ["uc", "UC浏览器"],- file: "uc.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/uc/uc_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "7bfd919258b12a5900a8d19eabe1a16a0f7f50eaebe872fb7f13f6929cdf4c1e",- bytes: 2853- },- {- id: "dolphin",- aliases: ["dolphin"],- file: "dolphin.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/dolphin/dolphin_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "2c796d4a3ac4303edc73e33c3a36d709fbaa644b701d98ca1460aa6679c19aa9",- bytes: 2018- },- {- id: "maxthon",- aliases: [- "maxthon",- "傲游",- "傲游浏览器"- ],- file: "maxthon.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/maxthon/maxthon_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "f807f58b4a0550a5470a713a4737054c5d5ecebe61687c77e77b2bfab1c544c5",- bytes: 1375- },- {- id: "midori",- aliases: ["midori"],- file: "midori.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/midori/midori_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "b3149a3d9dcbe8158078f8c47a39e839c2609f2dbce574e6175d4ef7f381f0d4",- bytes: 4288- },- {- id: "falkon",- aliases: ["falkon"],- file: "falkon.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/falkon/falkon_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "93992beb736d43622ddc085b41955aea13a735c011928c56076b5ed5c74d694c",- bytes: 4285- },- {- id: "pale-moon",- aliases: ["pale-moon", "pale moon"],- file: "pale-moon.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/pale-moon/pale-moon_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "6ffacc33960787e0411897a33524bb03c78df9204cf7dbfc5f063f4b5e73d5e1",- bytes: 4771- },- {- id: "seamonkey",- aliases: ["seamonkey"],- file: "seamonkey.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/seamonkey/seamonkey_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "37dd8ccb6700d83b030614329253af2ac68c44084c887a2d5ca10ea91aa066a5",- bytes: 4525- },- {- id: "web",- aliases: [- "web",- "Epiphany",- "GNOME Web"- ],- file: "web.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/web/web_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "3f149719ecd35cefa8dae87a699550fbfa44b4d2d3b4b4c90ade545c3b9754a8",- bytes: 2678- },- {- id: "qutebrowser",- aliases: ["qutebrowser"],- file: "qutebrowser.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/qutebrowser/qutebrowser_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "8134a7f55a2ca191361ba3ecc5219e3d707a945c7e91e38da310ee12ffeee3eb",- bytes: 3818- },- {- id: "epic",- aliases: ["epic"],- file: "epic.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/epic/epic_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "53dfd851e21ab4f0727891cb2e330503cc250c05216d825be016e84e98ea4dd4",- bytes: 5534- },- {- id: "icecat",- aliases: ["icecat"],- file: "icecat.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/icecat/icecat_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "828718a56d67123abe3526fd42835ffbbb05769791922c2a0564dae92762ecc9",- bytes: 5700- },- {- id: "basilisk",- aliases: ["basilisk"],- file: "basilisk.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/basilisk/basilisk_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "9a0b3f467fe972e7a3e805fcc4b719eccfb1bb1d29d9a9f3afec7cc9dc2349f3",- bytes: 2331- },- {- id: "avant",- aliases: ["avant"],- file: "avant.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/avant/avant_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "a4c66ad8bc25ce59f71713f7c93629cd17b989d886cb8beacf178730631b01a5",- bytes: 4586- },- {- id: "otter",- aliases: ["otter"],- file: "otter.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/otter/otter_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "8fea2736a78b36e8c9eabfd5c47e7b46f28209aa9f1e2a199a54cfeeac290812",- bytes: 5220- },- {- id: "netsurf",- aliases: ["netsurf"],- file: "netsurf.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/netsurf/netsurf_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "d57d4ff6fb7052d5228932da17955232ecc5051908cf6580d73c6db3d2b248bd",- bytes: 4003- },- {- id: "puffin",- aliases: ["puffin"],- file: "puffin.png",- content_type: "image/png",- source_url: "https://raw.githubusercontent.com/alrra/browser-logos/58881b84c4d73adc03c06fa2c275a7abee02d935/src/puffin/puffin_48x48.png",- source_page: "https://github.com/alrra/browser-logos",- revision: "58881b84c4d73adc03c06fa2c275a7abee02d935",- license: "Logo and trademark belong to the browser owner",- sha256: "e182c2f54a37e0e1ff6a9469f1cb65bb8299f9b5eaca162c29b7cb9f6cc79768",- bytes: 3697- },- {- id: "aside",- aliases: ["aside", "Aside Browser"],- file: "aside.png",- content_type: "image/png",- source_url: "https://aside.com/icon.png?icon.0lfc1q-r_ms2e.png",- source_page: "https://aside.com/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "949971a69f8643358bd52875a02a53e60136a88790487c83e42a24cb39f0adea",- bytes: 27423- },- {- id: "zen",- aliases: ["zen", "Zen Browser"],- file: "zen.svg",- content_type: "image/svg+xml",- source_url: "https://zen-browser.app/favicon.svg",- source_page: "https://zen-browser.app/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "090a9ce0283dc66359be584bd1db9227faf4f15fc666f261759852e2519c7c68",- bytes: 531- },- {- id: "qq",- aliases: [- "qq",- "QQBrowser",- "QQ浏览器"- ],- file: "qq.ico",- content_type: "image/x-icon",- source_url: "https://browser.qq.com/favicon.ico",- source_page: "https://browser.qq.com/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "0c4cfdc5683b15f0b3b1019db71edfa975cadccbd61ce2f340acbdc4b114dbed",- bytes: 2047- },- {- id: "360se",- aliases: ["360se", "360安全浏览器"],- file: "360se.png",- content_type: "image/png",- source_url: "https://p4.ssl.qhimg.com/t110b9a93016f838be146a5b14d.png",- source_page: "https://browser.360.cn/se/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "3363c9c2dd239ab6ac3a59501bf609cc2a94664ab5a1b8f0f0a2bec21aaab34a",- bytes: 2219- },- {- id: "360chrome",- aliases: ["360chrome", "360极速浏览器"],- file: "360chrome.ico",- content_type: "image/x-icon",- source_url: "https://browser.360.cn/ee/favicon.ico",- source_page: "https://browser.360.cn/ee/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "eb11e02318a389cf4b9e06a8ca66694d2d544fbe8bfd28555e2189727675bd8e",- bytes: 5430- },- {- id: "sogou",- aliases: [- "sogou",- "搜狗",- "搜狗浏览器",- "Sogou Explorer"- ],- file: "sogou.ico",- content_type: "image/x-icon",- source_url: "https://sogou.browser.qq.com/favicon.ico",- source_page: "https://ie.sogou.com/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "d9b78205c61561e23594886cc7bd24a5842a36602384f059efe670455c40c74f",- bytes: 5430- },- {- id: "arc",- aliases: ["arc"],- file: "arc.png",- content_type: "image/png",- source_url: "https://arc.net/favicon.png",- source_page: "https://arc.net/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "2e6881ee4ea7b22e3bdd97f2432b7ce5bb3e3d5bbbdb5457a4a4f8b69a43e7bd",- bytes: 1586- },- {- id: "librewolf",- aliases: ["librewolf"],- file: "librewolf.svg",- content_type: "image/svg+xml",- source_url: "https://librewolf.net/icon.svg",- source_page: "https://librewolf.net/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "b85d68f1b5b47b9b2c3a3e6b5f5a0f887577e0eb6ee8387fb7b81f5f8e4017c4",- bytes: 5916- },- {- id: "floorp",- aliases: ["floorp"],- file: "floorp.svg",- content_type: "image/svg+xml",- source_url: "https://floorp.app/icon.svg?51b46abeef3fc9d9",- source_page: "https://floorp.app/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "15cf85f15cd722524008cb621763eb8560561048df210cf3a6180732c254f49b",- bytes: 2199- },- {- id: "waterfox",- aliases: ["waterfox"],- file: "waterfox.svg",- content_type: "image/svg+xml",- source_url: "https://www.waterfox.com/favicons/favicon.svg",- source_page: "https://www.waterfox.net/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "05294e9a22b85b32fa632657ac3c2258f56d37f30931ababc494fe8a4b86ea7a",- bytes: 9266- },- {- id: "duckduckgo",- aliases: ["duckduckgo"],- file: "duckduckgo.png",- content_type: "image/png",- source_url: "https://duckduckgo.com/static-assets/favicons/DDG-iOS-icon_152x152.png",- source_page: "https://duckduckgo.com/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "f6e52a35e8854ebf14c9b8442302f6f7d5d0063f0215b7210edf4676d7fd7369",- bytes: 3576- },- {- id: "115",- aliases: [- "115",- "115浏览器",- "115 Browser"- ],- file: "115.ico",- content_type: "image/x-icon",- source_url: "https://115.com/",- source_page: "https://115.com/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "fba0c364bb745bef18683be03f08b086cb5e46498b8c1dbd32ecdee6624303fe",- bytes: 63051,- extraction: {- method: "PE resource extraction",- executable: "115chrome.exe",- executable_sha256: "31d3c29ffade6eb30504173b299d396a42758b2093c442b2adebe83f03750ae9",- resource_group: "IDR_MAINFRAME"- }- },- {- id: "360chromex",- aliases: [- "360chromex",- "360极速X",- "360极速浏览器X"- ],- file: "360chrome.ico",- content_type: "image/x-icon",- source_url: "https://browser.360.cn/ee/favicon.ico",- source_page: "https://browser.360.cn/ee/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "eb11e02318a389cf4b9e06a8ca66694d2d544fbe8bfd28555e2189727675bd8e",- bytes: 5430- },- {- id: "quark",- aliases: [- "quark",- "夸克",- "夸克浏览器"- ],- file: "quark.png",- content_type: "image/png",- source_url: "https://gw.alicdn.com/imgextra/i3/O1CN018r2tKf28YP7ev0fPF_!!6000000007944-2-tps-48-48.png",- source_page: "https://www.quark.cn/",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "824e079d7d987305f2a0d15de5b1dfe0dc8cb7131afe1dbdaf1ea3ae3dd2d740",- bytes: 1210- },- {- id: "2345",- aliases: [- "2345",- "2345浏览器",- "2345加速浏览器"- ],- file: "2345.png",- content_type: "image/png",- source_url: "https://img.onlinedown.net/download/202306/190435-649ac2436780c.png",- source_page: "https://www.onlinedown.net/soft/111609.htm",- revision: "",- license: "Logo and trademark belong to the browser owner",- sha256: "4c7a1b786d1208c89e00027c46544debe27a6f684b859cfd116b4e796703d38e",- bytes: 29648- }- ]-}, Ni = (e) => e.normalize("NFKC").toLowerCase().replace(/[\s_-]/g, ""), Pi = new Map(Mi.icons.flatMap((e) => e.aliases.map((t) => [Ni(t), e.id])));-function Fi(e) {- return Pi.get(Ni(e));-}-function Ii({ name: e }) {- let [t, n] = (0, U.useState)(""), r = Fi(e);- return r && t !== r ? /* @__PURE__ */ (0, Y.jsx)("img", {- src: `/browser-icon/${r}`,- width: 24,- height: 24,- alt: "",- "aria-hidden": !0,- loading: "lazy",- className: "size-6 shrink-0 object-contain",- onError: () => n(r)- }) : /* @__PURE__ */ (0, Y.jsx)(qe, {- "aria-hidden": !0,- className: "size-5 shrink-0 text-foreground-icon-secondary"- });-}-// src/react/taste/browser-sources.tsx-var Li = "flex min-w-0 items-center gap-3 rounded-xl bg-background-primary-default p-3";-function Ri({ browsers: e, sources: t, range: n, children: r }) {- let [i, a] = (0, U.useState)(!1), [o, s] = (0, U.useState)(""), [c, l] = (0, U.useState)(""), u = V({- mutationFn: (e) => wt(e, n),- onSuccess: (e) => {- z.setQueryData(B(n), e.dashboard), a(!1), s(""), l("");- }- });- return /* @__PURE__ */ (0, Y.jsxs)("section", {- className: `${F()} flex flex-col gap-4`,- "aria-label": "数据源",- children: [- /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex flex-wrap items-center justify-between gap-3",- children: [/* @__PURE__ */ (0, Y.jsx)("h3", {- className: "text-title-2-medium text-text-primary",- children: "数据源"- }), /* @__PURE__ */ (0, Y.jsx)(j, {- variant: "secondary",- onClick: () => a(!0),- disabled: i,- children: "添加浏览器"- })]- }),- u.error ? /* @__PURE__ */ (0, Y.jsx)(N, {- tone: "error",- children: L(u.error)- }) : null,- i ? /* @__PURE__ */ (0, Y.jsxs)("form", {- className: "flex flex-col gap-3",- onSubmit: (e) => {- e.preventDefault(), u.isPending || u.mutate({- operation: "add",- name: o,- path: c- });- },- children: [- /* @__PURE__ */ (0, Y.jsx)(Qe, {- label: "浏览器名称",- value: o,- onChange: s,- maxLength: 80,- isRequired: !0,- isDisabled: u.isPending- }),- /* @__PURE__ */ (0, Y.jsx)(Qe, {- label: "资料目录或历史文件",- value: c,- onChange: l,- maxLength: 1024,- isRequired: !0,- isDisabled: u.isPending,- hint: "请选择运行 Peach 的电脑上的浏览器资料。"- }),- /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex gap-2",- children: [/* @__PURE__ */ (0, Y.jsx)(j, {- variant: "ghost",- disabled: u.isPending,- onClick: () => {- a(!1), u.reset();- },- children: "取消"- }), /* @__PURE__ */ (0, Y.jsx)(j, {- type: "submit",- variant: "secondary",- disabled: !o.trim() || !c.trim(),- ...P(u.isPending),- children: "添加"- })]- })- ]- }) : null,- /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "inline-grid w-full min-w-0 gap-2 sm:grid-cols-2",- children: [r, e.map((e) => {- let n = t.filter((t) => e.source_keys?.includes(t.source_key)), r = n.reduce((e, t) => e + (t.visits || 0), 0), i = n.reduce((e, t) => e + (t.bookmarks || 0), 0);- return /* @__PURE__ */ (0, Y.jsxs)("div", {- "data-taste-source": "browser",- className: Li,- children: [- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",- children: /* @__PURE__ */ (0, Y.jsx)(Ii, { name: e.name })- }),- /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex min-w-0 grow flex-col gap-0.5",- children: [- /* @__PURE__ */ (0, Y.jsx)("b", {- className: "text-body-2-medium break-words text-text-primary",- children: e.name- }),- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "break-all text-caption-1-regular text-text-secondary",- children: e.path- }),- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: e.enabled ? e.available ? `历史与书签 · ${e.profiles} 个资料` : "资料目录不可用" : "已停止读取"- }),- n.length ? /* @__PURE__ */ (0, Y.jsxs)("span", {- className: "text-caption-1-regular text-text-secondary",- children: [- r.toLocaleString(),- " 条历史 · ",- i.toLocaleString(),- " 枚书签"- ]- }) : null- ]- }),- /* @__PURE__ */ (0, Y.jsxs)("span", {- className: "flex shrink-0 gap-1",- children: [/* @__PURE__ */ (0, Y.jsx)(j, {- variant: "secondary",- size: "small",- ...P(u.isPending),- iconOnly: !0,- leadingIcon: e.enabled ? it : Xe,- "aria-label": `${e.enabled ? "停止读取" : "启用"} ${e.name}`,- onClick: () => {- e.enabled ? Tt({- title: `停止读取 ${e.name}`,- body: "已导入的历史与书签仍用于口味分析。",- confirmLabel: "停止读取",- onConfirm: () => u.mutateAsync({- operation: "disable",- id: e.id- })- }) : u.mutate({- operation: "enable",- id: e.id- });- }- }), /* @__PURE__ */ (0, Y.jsx)(j, {- variant: "secondary",- size: "small",- iconOnly: !0,- leadingIcon: $e,- ...P(u.isPending),- "aria-label": `删除 ${e.name}`,- onClick: () => {- Tt({- title: `删除 ${e.name}`,- body: "移除该浏览器的读取配置和已导入历史、书签,浏览器原文件保留。可以通过添加浏览器重新接入。",- confirmLabel: "删除浏览器来源",- danger: !0,- onConfirm: () => u.mutateAsync({- operation: "delete_browser",- id: e.id- })- });- }- })]- })- ]- }, e.id);- })]- })- ]- });-}-// src/react/taste/taste-page.tsx-var zi = 10, Bi = Et(et, tt, "text-body-2-medium"), Q = `${F()} flex flex-col gap-4`, Vi = "rounded-xl bg-background-primary-default p-3", Hi = "读取运行 Peach 的这台电脑上的浏览历史与书签", Ui = "导入或读取浏览记录后,这里会列出记录来自哪些设备。", Wi = "馆藏中暂时没有与你浏览过的内容相符的标签。", Gi = "读取浏览记录后,这里会按类别汇总你浏览过的内容。", Ki = "这些标签出现在浏览记录中,Peach 的观看或评价记录中尚未出现这些标签", qi = "采集浏览记录后,这里会列出浏览过的标签。", Ji = "采集浏览记录后,这里会列出浏览过的创作者。", Yi = "采集浏览记录后,这里会列出常访问的网站。", Xi = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", Zi = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", Qi = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", $i = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器记录」。", ea = "记录在其他设备上:导出文件后,选择「导入历史文件」或「导入书签文件」。书签支持浏览器导出的 HTML 文件和 Chromium Bookmarks JSON 文件。", ta = "需要刷新时再次读取或导入;数据源可在页面底部移除。", na = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", ra = "peach-taste-guide-dismissed", ia = (0, U.createContext)(/* @__PURE__ */ (0, Y.jsx)(Ge, {- size: "small",- href: "/",- children: "浏览馆藏"-}));-function aa() {- return (0, U.useContext)(ia);-}-function $({ icon: e, term: t, figure: n, detail: r, detailTitle: i, accent: a }) {- return /* @__PURE__ */ (0, Y.jsx)("div", {- className: Jt(),- children: /* @__PURE__ */ (0, Y.jsx)(pt, {- label: t,- icon: e,- accent: a,- figure: n,- footer: /* @__PURE__ */ (0, Y.jsx)("span", {- className: "block min-w-0 truncate",- title: i || r,- children: r ?? ""- })- })- });-}-function oa({ name: e, domain: t }) {- return /* @__PURE__ */ (0, Y.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: [At(e).toUpperCase(), /* @__PURE__ */ (0, Y.jsx)("img", {- src: Kt({ domain: t }),- alt: "",- loading: "lazy",- width: 20,- height: 20,- onError: (e) => e.currentTarget.remove(),- className: "absolute size-5 object-contain"- })]- });-}-function sa({ html: e }) {- return /* @__PURE__ */ (0, Y.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 ${on}`,- dangerouslySetInnerHTML: { __html: e }- });-}-function ca({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {- if (!e.length) return /* @__PURE__ */ (0, Y.jsx)(M, {- size: "compact",- icon: R,- title: "记录还不够",- actions: /* @__PURE__ */ (0, Y.jsx)(aa, {}),- children: r- });- let a = Ht(e);- return /* @__PURE__ */ (0, Y.jsx)(ln, {- previewCount: zi,- className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",- children: e.map((e, r) => {- let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [- /* @__PURE__ */ (0, Y.jsx)("svg", {- viewBox: "0 0 100 1",- preserveAspectRatio: "none",- "aria-hidden": !0,- className: "absolute inset-0 -z-10 size-full overflow-hidden rounded-lg opacity-15",- children: /* @__PURE__ */ (0, Y.jsx)("rect", {- width: a[r],- height: 1,- className: "fill-chart-4"- })- }),- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",- children: r + 1- }),- n === "domain" ? /* @__PURE__ */ (0, Y.jsx)(oa, {- name: e.name,- domain: e.name- }) : null,- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, Y.jsx)(oa, {- name: e.name,- domain: s- }) : null,- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, Y.jsx)(sa, { html: St(e.name, e.entity_id ? {- id: e.entity_id,- has_image: !!e.has_image,- image_version: e.image_version,- avatar_focus: e.avatar_focus,- avatar_stand_in: e.avatar_stand_in- } : null, e.has_avatar ? e.representative_asset_id ?? null : null, n === "creator" ? "creator" : t || "performer") }) : null,- /* @__PURE__ */ (0, Y.jsxs)("span", {- className: "flex min-w-0 grow flex-col gap-0.5",- children: [/* @__PURE__ */ (0, Y.jsx)("b", {- className: "min-w-0 text-body-medium break-words text-text-primary",- children: e.name- }), /* @__PURE__ */ (0, Y.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: Vt(e)- })]- }),- o ? /* @__PURE__ */ (0, Y.jsx)(zt, {- "aria-hidden": !0,- className: "size-4 shrink-0 text-text-tertiary"- }) : null- ] }), l = "relative isolate flex min-h-11 w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left";- return /* @__PURE__ */ (0, Y.jsx)("li", {- className: "min-w-0",- children: o ? /* @__PURE__ */ (0, Y.jsx)("button", {- type: "button",- onClick: () => i(t, e.name),- className: `${l} cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring`,- children: c- }) : /* @__PURE__ */ (0, Y.jsx)("div", {- className: l,- children: c- })- }, `${e.name}:${r}`);- })- });-}-function la({ label: e, panels: t, onSignal: n }) {- return /* @__PURE__ */ (0, Y.jsxs)(We, {- className: `${F({ padding: "none" })} flex flex-col`,- children: [/* @__PURE__ */ (0, Y.jsx)("div", {- className: "px-4 pt-3",- children: /* @__PURE__ */ (0, Y.jsx)(ut, {- "aria-label": e,- className: ct,- children: t.map((e) => /* @__PURE__ */ (0, Y.jsx)(Ue, {- id: e.id,- className: st,- children: e.name- }, e.id))- })- }), t.map((e) => /* @__PURE__ */ (0, Y.jsx)(He, {- id: e.id,- className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, Y.jsx)(ca, {- ...e.props,- onSignal: n- })- }, e.id))]- });-}-function ua({ data: e, onSignal: t, navigate: n }) {- let r = e.analysis;- if (!r?.headline) return null;- let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({- key: `tag:${e.tag}`,- title: e.title,- detail: e.detail,- act: () => t("tag", e.tag)- })), ...(r.next_steps || []).map((e) => ({- key: `route:${e.route}`,- title: e.title,- detail: e.detail,- act: () => n(e.route)- }))];- return /* @__PURE__ */ (0, Y.jsxs)("section", {- className: Q,- "aria-label": "口味总结",- children: [- /* @__PURE__ */ (0, Y.jsxs)("header", {- className: "flex flex-col gap-2",- children: [- /* @__PURE__ */ (0, Y.jsx)("h3", {- className: "text-title-2-medium text-text-primary",- children: "口味总结"- }),- /* @__PURE__ */ (0, Y.jsx)("p", {- className: "max-w-prose text-title-2-regular wrap-anywhere text-text-primary",- children: r.headline- }),- /* @__PURE__ */ (0, Y.jsxs)("p", {- className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",- children: [/* @__PURE__ */ (0, Y.jsx)("i", {- "aria-hidden": !0,- className: `size-2 shrink-0 rounded-full ${i.level === "high" ? "bg-status-lime-text" : i.level === "medium" ? "bg-status-yellow-text" : "bg-text-tertiary"}`- }), /* @__PURE__ */ (0, Y.jsx)("span", {- className: "min-w-0 wrap-anywhere",- children: i.label || "仍在学习"- })]- })- ]- }),- r.points?.length ? /* @__PURE__ */ (0, Y.jsx)("div", {- className: "inline-grid w-full gap-3 sm:grid-cols-2",- children: r.points.map((e) => /* @__PURE__ */ (0, Y.jsxs)("div", {- className: `flex min-w-0 flex-col gap-1 ${Vi}`,- children: [/* @__PURE__ */ (0, Y.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: e.label- }), /* @__PURE__ */ (0, Y.jsx)("b", {- className: "text-body-2-medium break-words text-text-primary",- children: e.text- })]- }, e.label))- }) : null,- a.length ? /* @__PURE__ */ (0, Y.jsx)("div", {- className: "flex flex-col gap-2",- children: a.map((e) => /* @__PURE__ */ (0, Y.jsxs)("button", {- type: "button",- onClick: e.act,- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${Vi} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,- children: [/* @__PURE__ */ (0, Y.jsxs)("span", {- className: "flex min-w-0 grow flex-col gap-1",- children: [/* @__PURE__ */ (0, Y.jsx)("b", {- className: "text-body-2-medium wrap-anywhere text-text-primary",- children: e.title- }), /* @__PURE__ */ (0, Y.jsx)("small", {- className: "text-caption-1-regular wrap-anywhere text-text-secondary",- children: e.detail- })]- }), /* @__PURE__ */ (0, Y.jsx)(zt, {- "aria-hidden": !0,- className: "size-4 shrink-0 text-text-tertiary"- })]- }, e.key))- }) : /* @__PURE__ */ (0, Y.jsx)(M, {- size: "compact",- icon: R,- title: "还没有可探索的入口",- actions: /* @__PURE__ */ (0, Y.jsx)(Ge, {- size: "small",- href: "/",- children: "浏览馆藏"- }),- children: Wi- })- ]- });-}-function da({ onboarding: e, done: t }) {- let [n, r] = (0, U.useState)(() => {- try {- return localStorage.getItem(ra) === "1";- } catch {- return !1;- }- });- return t || n ? null : /* @__PURE__ */ (0, Y.jsx)("div", {- className: F({- padding: "none",- className: "p-4"- }),- children: /* @__PURE__ */ (0, Y.jsxs)(Ke, {- summary: "浏览器历史记录导入指南",- defaultOpen: e,- children: [- /* @__PURE__ */ (0, Y.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: $i- }),- /* @__PURE__ */ (0, Y.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: ea- }),- /* @__PURE__ */ (0, Y.jsxs)("ul", {- className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",- children: [/* @__PURE__ */ (0, Y.jsxs)("li", { children: [- "Chrome:在 ",- /* @__PURE__ */ (0, Y.jsxs)("a", {- href: "https://takeout.google.com/",- target: "_blank",- rel: "noopener noreferrer",- className: "text-text-primary underline-offset-4 hover:underline",- children: ["Google Takeout", /* @__PURE__ */ (0, Y.jsx)(_t, {- "aria-hidden": !0,- className: "size-(--icon-inline) shrink-0"- })]- }),- " ",- "选择 Chrome 历史记录,下载 ZIP 后直接导入。"- ] }), /* @__PURE__ */ (0, Y.jsxs)("li", { children: [- "其他浏览器:用 ",- /* @__PURE__ */ (0, Y.jsxs)("a", {- href: "https://github.com/purarue/browserexport",- target: "_blank",- rel: "noopener noreferrer",- className: "text-text-primary underline-offset-4 hover:underline",- children: ["browserexport", /* @__PURE__ */ (0, Y.jsx)(_t, {- "aria-hidden": !0,- className: "size-(--icon-inline) shrink-0"- })]- }),- " ",- "导出历史记录,再导入导出文件。"- ] })]- }),- /* @__PURE__ */ (0, Y.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: ta- }),- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "self-start",- children: /* @__PURE__ */ (0, Y.jsx)(j, {- variant: "secondary",- size: "small",- onClick: () => {- try {- localStorage.setItem(ra, "1");- } catch {}- r(!0);- },- children: "跳过"- })- })- ]- })- });-}-function fa({ busy: e, onRefresh: t, onImport: n, onImportBookmarks: r }) {- let i = (0, U.useRef)(null), [a, o] = (0, U.useState)(!1), s = (e) => {- o(!1), e();- };- return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("span", {- "data-guide-target": "history-import",- "data-button-group": !0,- "data-split-button": !0,- "data-variant": "primary",- children: [/* @__PURE__ */ (0, Y.jsx)(j, {- leadingIcon: qe,- title: Hi,- onClick: t,- ...P(e),- children: "读取浏览器记录"- }), /* @__PURE__ */ (0, Y.jsx)(j, {- ref: i,- iconOnly: !0,- leadingIcon: Dt,- "aria-label": "更多取得浏览记录的方式",- "aria-haspopup": "dialog",- "aria-expanded": a,- ...P(e),- onClick: () => {- e || o(!0);- }- })]- }), /* @__PURE__ */ (0, Y.jsx)(Ve, {- triggerRef: i,- isOpen: a,- onOpenChange: o,- placement: "bottom end",- offset: 4,- className: nt,- children: /* @__PURE__ */ (0, Y.jsxs)(rt, {- "aria-label": "更多取得浏览记录的方式",- className: "flex w-52 flex-col gap-1 outline-none",- children: [- /* @__PURE__ */ (0, Y.jsxs)("button", {- type: "button",- className: Bi,- onClick: () => s(t),- children: [/* @__PURE__ */ (0, Y.jsx)(qe, {- "aria-hidden": !0,- className: "size-4 shrink-0"- }), "读取浏览器记录"]- }),- /* @__PURE__ */ (0, Y.jsxs)("button", {- type: "button",- className: Bi,- onClick: () => s(n),- children: [/* @__PURE__ */ (0, Y.jsx)(ot, {- "aria-hidden": !0,- className: "size-4 shrink-0"- }), "导入历史文件"]- }),- /* @__PURE__ */ (0, Y.jsxs)("button", {- type: "button",- className: Bi,- onClick: () => s(r),- children: [/* @__PURE__ */ (0, Y.jsx)(Pt, {- "aria-hidden": !0,- className: "size-4 shrink-0"- }), "导入书签文件"]- })- ]- })- })] });-}-function pa({ sources: e, browsers: t, window: n, toast: r, emptyActions: i }) {- let a = V({- mutationFn: (e) => Ut(e, n),- onSuccess: (e) => {- z.setQueryData(B(n), e.dashboard), r("已移除口味数据源");- }- });- return /* @__PURE__ */ (0, Y.jsxs)(Ri, {- browsers: t,- sources: e,- range: n,- children: [a.error ? /* @__PURE__ */ (0, Y.jsx)("div", {- className: "sm:col-span-2",- children: /* @__PURE__ */ (0, Y.jsx)(N, {- tone: "error",- children: L(a.error)- })- }) : null, e.length ? /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: e.filter((e) => !t.some((t) => t.source_keys?.includes(e.source_key))).map((e) => /* @__PURE__ */ (0, Y.jsxs)("div", {- "data-taste-source": "import",- className: Li,- children: [- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, Y.jsx)(ot, {- "aria-hidden": !0,- className: "size-4"- }) : /* @__PURE__ */ (0, Y.jsx)(yt, {- "aria-hidden": !0,- className: "size-4"- })- }),- /* @__PURE__ */ (0, Y.jsxs)("span", {- className: "flex min-w-0 grow flex-col gap-0.5",- children: [/* @__PURE__ */ (0, Y.jsx)("b", {- className: "min-w-0 text-body-2-medium break-words text-text-primary",- children: e.profile- }), /* @__PURE__ */ (0, Y.jsx)("small", {- className: "min-w-0 text-caption-1-regular break-words text-text-secondary",- children: `导入文件 · ${e.host} · ${Number(e.visits || e.bookmarks || 0).toLocaleString()} ${e.bookmarks ? "枚书签" : "条历史"}`- })]- }),- /* @__PURE__ */ (0, Y.jsx)(j, {- variant: "secondary",- size: "small",- "aria-label": `移除 ${e.profile}`,- className: "shrink-0",- iconOnly: !0,- leadingIcon: $e,- ...P(a.isPending),- onClick: () => {- a.isPending || Tt({- title: "移除口味数据源",- body: na,- confirmLabel: "移除口味数据源",- onConfirm: () => a.mutateAsync(e.source_key)- });- }- })- ]- }, e.source_key)) }) : t.length ? null : /* @__PURE__ */ (0, Y.jsx)(M, {- size: "compact",- icon: yt,- title: "还没有数据源",- actions: i,- children: Ui- })]- });-}-function ma(e) {- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, U.useState)("all"), [s, c] = (0, U.useState)("browser"), l = (0, U.useRef)(null), u = (0, U.useRef)(null), d = rn({- queryKey: B(a),- queryFn: ({ signal: e }) => Ot(a, e),- placeholderData: Lt,- refetchInterval: (e) => Qt(e.state.data)- }), { job: f, running: p, outcome: m, start: h } = nn({- queryKey: mt,- queryFn: ({ signal: e }) => kt(e),- start: () => qt(a),- idlePollMs: Ze,- onFinish: (e) => {- e.status !== "failed" && (z.invalidateQueries({ queryKey: ["taste"] }), r(e.warnings?.length ? "部分浏览记录未取得" : "已更新口味分析"));- }- }), g = V({- mutationFn: (e) => Ot(e, void 0, !0),- onSuccess: (e, t) => {- z.setQueryData(B(t), e);- }- }), _ = V({- mutationFn: (e) => It(e),- onSuccess: (e) => {- z.setQueryData(B("all"), e.dashboard), o("all"), r("已导入口味数据");- }- }), v = (e) => {- let t = e.currentTarget.files?.[0];- e.currentTarget.value = "", t && !_.isPending && (_.reset(), _.mutate(t));- }, y = () => {- p || h.isPending || (h.reset(), h.mutate());- }, b = d.data;- if (!b) return /* @__PURE__ */ (0, Y.jsx)(an, { children: /* @__PURE__ */ (0, Y.jsx)(N, {- tone: "error",- title: "口味分析读取失败",- children: d.error ? L(d.error) : "读取口味分析失败"- }) });- let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, ee = b.storage || {}, w = Xt(C.browser_categories || []), T = Bt(w).length > 0, te = b.gaps || [], E = S.tagged || 0, ne = S.identified || 0, re = h.error ? L(h.error) : _.error ? L(_.error) : g.error ? L(g.error) : m?.status === "failed" ? m.error || "读取未取得" : "", ie = /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex flex-wrap justify-center gap-2",- children: [/* @__PURE__ */ (0, Y.jsx)(j, {- variant: "secondary",- ...P(p || h.isPending || _.isPending),- onClick: y,- children: "读取浏览器记录"- }), /* @__PURE__ */ (0, Y.jsx)(j, {- variant: "secondary",- ...P(_.isPending),- onClick: () => l.current?.click(),- children: "导入历史文件"- })]- });- return /* @__PURE__ */ (0, Y.jsx)(an, { children: /* @__PURE__ */ (0, Y.jsxs)(ia, {- value: a === "all" ? s === "peach" ? /* @__PURE__ */ (0, Y.jsx)(Ge, {- size: "small",- variant: "secondary",- href: "/",- children: "浏览馆藏"- }) : ie : /* @__PURE__ */ (0, Y.jsx)(j, {- size: "small",- variant: "secondary",- onClick: () => o("all"),- children: "查看全部时间"- }),- children: [- /* @__PURE__ */ (0, Y.jsxs)(We, {- selectedKey: s,- onSelectionChange: (e) => c(String(e)),- className: "flex flex-col gap-5",- children: [- /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex flex-wrap items-center justify-between gap-3",- children: [/* @__PURE__ */ (0, Y.jsxs)(ut, {- "aria-label": "口味分析的数据来源",- className: ct,- children: [/* @__PURE__ */ (0, Y.jsx)(Ue, {- id: "browser",- className: st,- children: "浏览器记录"- }), /* @__PURE__ */ (0, Y.jsx)(Ue, {- id: "peach",- className: st,- children: "Peach 观看与评价"- })]- }), /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex flex-wrap items-center gap-2",- children: [- /* @__PURE__ */ (0, Y.jsx)(dt, {- "aria-label": "分析范围",- selectedKey: a,- onSelectionChange: (e) => {- e !== null && o(String(e));- },- children: ht.map(([e, t]) => /* @__PURE__ */ (0, Y.jsx)(ft, {- id: e,- children: t- }, e))- }),- /* @__PURE__ */ (0, Y.jsx)(fa, {- busy: p || h.isPending || _.isPending,- onRefresh: y,- onImport: () => l.current?.click(),- onImportBookmarks: () => u.current?.click()- }),- /* @__PURE__ */ (0, Y.jsx)("input", {- ref: l,- type: "file",- tabIndex: -1,- "aria-hidden": !0,- className: "hidden",- onChange: v- }),- /* @__PURE__ */ (0, Y.jsx)("input", {- ref: u,- type: "file",- tabIndex: -1,- "aria-hidden": !0,- className: "hidden",- "data-bookmark-import": !0,- onChange: v- })- ]- })]- }),- /* @__PURE__ */ (0, Y.jsx)(da, {- onboarding: i,- done: !!(x.history_sources || b.updated_at)- }),- /* @__PURE__ */ (0, Y.jsxs)("div", {- "aria-live": "polite",- className: "flex flex-col gap-3 empty:hidden",- children: [- p ? /* @__PURE__ */ (0, Y.jsx)(gt, {- label: f?.message || "正在读取浏览记录并更新口味分析",- value: f?.checked,- total: f?.total- }) : null,- _.isPending ? /* @__PURE__ */ (0, Y.jsx)(gt, { label: "正在导入口味数据" }) : null,- b.stale && b.error ? /* @__PURE__ */ (0, Y.jsx)(N, {- tone: "error",- action: /* @__PURE__ */ (0, Y.jsx)(j, {- variant: "secondary",- size: "small",- ...P(g.isPending),- onClick: () => g.mutate(a),- children: "立即重试"- }),- children: `口味分析更新失败,当前显示 ${$t(b.computed_at)} 的结果。${b.error}`- }) : b.stale ? /* @__PURE__ */ (0, Y.jsx)(gt, { label: `正在更新口味分析,当前显示 ${$t(b.computed_at)} 的结果` }) : null,- re ? /* @__PURE__ */ (0, Y.jsx)(N, {- tone: "error",- children: re- }) : null,- m?.warnings?.length ? /* @__PURE__ */ (0, Y.jsx)(N, {- tone: "warning",- children: m.warnings.join(";")- }) : null- ]- }),- /* @__PURE__ */ (0, Y.jsxs)(He, {- id: "browser",- className: "flex flex-col gap-5",- children: [- /* @__PURE__ */ (0, Y.jsxs)("div", {- className: lt,- children: [- /* @__PURE__ */ (0, Y.jsx)($, {- accent: 0,- icon: tn,- term: "浏览记录",- figure: Number(x.history_visits || 0).toLocaleString(),- detail: Ft(x),- detailTitle: `${Yt(x.range_start)}—${Yt(x.range_end)}`- }),- /* @__PURE__ */ (0, Y.jsx)($, {- accent: 1,- icon: Rt,- term: "口味维度",- figure: w.length.toLocaleString(),- detail: w[0]?.name || "尚无主维度"- }),- /* @__PURE__ */ (0, Y.jsx)($, {- accent: 2,- icon: R,- term: "浏览线索",- figure: te.length.toLocaleString()- }),- /* @__PURE__ */ (0, Y.jsx)($, {- accent: 3,- icon: Pt,- term: "浏览器书签",- figure: Number(x.bookmarks || 0).toLocaleString(),- detail: `${Number(ee.exports || 0).toLocaleString()} 份私有导出 · ${Nt(ee.bytes || 0)}`- })- ]- }),- /* @__PURE__ */ (0, Y.jsxs)("section", {- className: T ? `${Q} md:flex-row md:gap-6` : Q,- "aria-label": "浏览器画像",- children: [/* @__PURE__ */ (0, Y.jsxs)("div", {- className: T ? "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0" : "flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1",- children: [- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: "浏览器画像"- }),- T ? /* @__PURE__ */ (0, Y.jsx)(ki, {- rows: w,- label: "主要口味维度"- }) : null,- /* @__PURE__ */ (0, Y.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: b.updated_at ? `更新于 ${Yt(b.updated_at)}` : "尚未采集浏览记录"- })- ]- }), /* @__PURE__ */ (0, Y.jsx)("div", {- className: "flex min-w-0 grow flex-col",- children: w.length ? /* @__PURE__ */ (0, Y.jsx)(Ai, {- rows: w,- label: "口味维度排名"- }) : /* @__PURE__ */ (0, Y.jsx)(M, {- size: "compact",- icon: R,- title: "暂无口味维度",- actions: /* @__PURE__ */ (0, Y.jsx)(aa, {}),- children: Gi- })- })]- }),- /* @__PURE__ */ (0, Y.jsx)(sn, {- activity: b.activity,- title: "浏览活跃时间",- dailyTitle: "每日活跃",- words: {- unit: "口味网站访问",- series: "访问",- cellUnit: "次访问"- },- tone: 4,- empty: "还没有可用于分析的口味网站访问记录。"- }),- /* @__PURE__ */ (0, Y.jsx)(ji, { flows: b.creator_flows }),- /* @__PURE__ */ (0, Y.jsx)(la, {- label: "浏览器口味维度",- onSignal: t,- panels: [- {- id: "tags",- name: "标签",- props: {- rows: C.browser_tags || [],- kind: "tag",- visual: "none",- empty: qi- }- },- {- id: "creators",- name: "创作者",- props: {- rows: C.browser_creators || [],- kind: "creator",- visual: "creator",- empty: Ji- }- },- {- id: "performers",- name: "女优",- props: {- rows: C.browser_performers || [],- kind: "performer",- visual: "entity",- empty: "还没有与已建档女优关联的浏览记录。"- }- },- {- id: "domains",- name: "常访问网站",- props: {- rows: C.domains || [],- kind: "",- visual: "domain",- empty: Yi- }- },- {- id: "gaps",- name: "浏览线索",- props: {- rows: te,- kind: "",- visual: "none",- empty: Ki- }- }- ]- })- ]- }),- /* @__PURE__ */ (0, Y.jsxs)(He, {- id: "peach",- className: "flex flex-col gap-5",- children: [- /* @__PURE__ */ (0, Y.jsxs)("div", {- className: lt,- children: [- /* @__PURE__ */ (0, Y.jsx)($, {- accent: 0,- icon: vt,- term: "Peach 看过",- figure: Number(x.peach_items || 0).toLocaleString(),- detail: Zt(x.peach_seconds || 0)- }),- /* @__PURE__ */ (0, Y.jsx)($, {- accent: 1,- icon: xt,- term: "喜欢",- figure: Number(x.liked || 0).toLocaleString()- }),- /* @__PURE__ */ (0, Y.jsx)($, {- accent: 2,- icon: Ct,- term: "不合口味",- figure: Number(x.disliked || 0).toLocaleString()- }),- /* @__PURE__ */ (0, Y.jsx)($, {- accent: 3,- icon: Rt,- term: "有标签",- figure: E.toLocaleString()- })- ]- }),- /* @__PURE__ */ (0, Y.jsxs)("section", {- className: `${Q} md:flex-row md:gap-6`,- "aria-label": "Peach 观看",- children: [/* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",- children: [- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: "Peach 观看"- }),- /* @__PURE__ */ (0, Y.jsx)("b", {- className: "text-display-4-medium tabular-nums text-text-primary",- children: Number(x.peach_items || 0).toLocaleString()- }),- /* @__PURE__ */ (0, Y.jsx)("span", {- className: "text-body-2-regular text-text-secondary",- children: "部作品有观看或评价记录"- })- ]- }), /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex min-w-0 grow flex-col",- children: [/* @__PURE__ */ (0, Y.jsx)(ha, {- term: "有标签",- value: E,- rest: S.untagged || 0- }), /* @__PURE__ */ (0, Y.jsx)(ha, {- term: "有身份",- value: ne,- rest: S.unidentified || 0- })]- })]- }),- /* @__PURE__ */ (0, Y.jsx)(la, {- label: "Peach 口味维度",- onSignal: t,- panels: [- {- id: "tags",- name: "标签",- props: {- rows: C.peach_tags || [],- kind: "tag",- visual: "none",- empty: Xi- }- },- {- id: "creators",- name: "创作者",- props: {- rows: C.peach_creators || [],- kind: "creator",- visual: "creator",- empty: Zi- }- },- {- id: "performers",- name: "女优",- props: {- rows: C.peach_performers || [],- kind: "performer",- visual: "entity",- empty: Qi- }- }- ]- })- ]- })- ]- }),- /* @__PURE__ */ (0, Y.jsx)(ua, {- data: b,- onSignal: t,- navigate: n- }),- /* @__PURE__ */ (0, Y.jsx)(pa, {- sources: b.sources || [],- browsers: b.browsers || [],- window: a,- toast: r,- emptyActions: ie- })- ]- }) });-}-function ha({ term: e, value: t, rest: n }) {- let r = Math.max(t + n, 1);- return /* @__PURE__ */ (0, Y.jsxs)("div", {- className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",- children: [/* @__PURE__ */ (0, Y.jsxs)("p", {- className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",- children: [/* @__PURE__ */ (0, Y.jsx)("span", { children: e }), /* @__PURE__ */ (0, Y.jsxs)("b", {- className: "tabular-nums",- children: [t.toLocaleString(), /* @__PURE__ */ (0, Y.jsx)("span", {- className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: `${n.toLocaleString()} 项待补`- })]- })]- }), /* @__PURE__ */ (0, Y.jsx)(at, {- label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,- value: t,- max: r- })]- });-}-export { ra as TASTE_GUIDE_KEY, ma as TastePage };--//# debugId=9b65577e-8550-4492-95cf-43eb640447a0\ No newline at end of file