Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(release): 补齐抢锁取消回归与发布依赖

longmeidaoafaf2497b8f0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6348f4745..f1df8d542 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -27,6 +27,8 @@ Removed / Fixed / Security。
### 修复
+- **馆藏**:升级补全正在运行时,扫描与采集等待后台任务让路,避免因处理锁被占用而立即失败;等待期间仍可停止任务。
+- **更新**:更新应用与采集桥的兼容依赖,保持现有来源接口和资料保护规则。
- **播放**:作品详情的统计、图片入口与加载速度控件保持同高,宽度足够时并排显示,空间不足时自动换行。
- **馆藏**:修复部分数据库统计下首页和 JAV 页顶部人物、厂牌聚合过慢的问题。
- **播放**:缺少显示时间戳表的 MP4 可在索引位于文件末尾时重建播放头;旧版失败缓存会重新检查这类布局,无法判断编辑起点的文件继续转码。
diff --git a/docs/reference-snapshots/upstream-review.md b/docs/reference-snapshots/upstream-review.md
index ab4283e06..a867e4ab1 100644
--- a/docs/reference-snapshots/upstream-review.md
+++ b/docs/reference-snapshots/upstream-review.md
@@ -6,7 +6,7 @@
### 稳定版 v0.23.0 暂不采用
-2026-10-28 复核官方 [v0.23.0](https://github.com/sqzw-x/amane/releases/tag/v0.23.0),提交 `4230de458c3197e1e17b6c5b42cc385fc6961d15`。[相对现固定提交的差集](https://github.com/sqzw-x/amane/compare/fd9294fbe5b4aa88ce1df84d534f6816ad9460d5...4230de458c3197e1e17b6c5b42cc385fc6961d15)含 16 个提交、142 个文件,爬虫只改了 `theporndb`;桥消费的 makers、prestige、faleno、dahlia、mgstage、fc2club、freejavbt、airav、avsox 站点类和 `amane.net` 都没有变化,其余是 CLI、服务端与图片代理。继续固定 v0.22.1;桥接站点或网络接口出现修复时再升级。
+2026-10-30 复核官方 [v0.23.0](https://github.com/sqzw-x/amane/releases/tag/v0.23.0),提交 `4230de458c3197e1e17b6c5b42cc385fc6961d15`。[相对现固定提交的差集](https://github.com/sqzw-x/amane/compare/fd9294fbe5b4aa88ce1df84d534f6816ad9460d5...4230de458c3197e1e17b6c5b42cc385fc6961d15)含 16 个提交、142 个文件,爬虫只改了 `theporndb`;桥消费的 makers、prestige、faleno、dahlia、mgstage、fc2club、freejavbt、airav、avsox 站点类和 `amane.net` 都没有变化,其余是 CLI、服务端与图片代理。继续固定 v0.22.1;桥接站点或网络接口出现修复时再升级。本次更新其约束允许的传递依赖,并核对独立环境的离线类加载。
### 稳定版 v0.22.1 的桥接范围
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index c4c95956d..823c274ea 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -13,7 +13,7 @@
"clsx": "2.1.1",
"d3-sankey": "0.12.3",
"diff": "9.0.0",
- "motion": "14.7.1",
+ "motion": "14.8.0",
"react": "19.3.1",
"react-aria": "3.53.1",
"react-aria-components": "1.22.1",
@@ -25,7 +25,7 @@
},
"devDependencies": {
"@sentry/cli": "3.8.2",
- "@sentry/vite-plugin": "11.9.0",
+ "@sentry/vite-plugin": "11.10.0",
"@shadcn/lint": "0.2.3",
"@tailwindcss/vite": "4.3.3",
"@types/d3-sankey": "0.12.5",
@@ -1170,13 +1170,13 @@
"license": "MIT"
},
"node_modules/@sentry/bundler-plugins": {
- "version": "11.9.0",
- "resolved": "https://registry.npmjs.org/@sentry/bundler-plugins/-/bundler-plugins-11.9.0.tgz",
- "integrity": "sha512-wpz/gcM/6rld/wb4Mhf8kbDN9ngG5myKQSZC+45gzqR1w+GcdfVnYkp3sHL9AV4mrwL8skhTItdUghMwMTknKg==",
+ "version": "11.10.0",
+ "resolved": "https://registry.npmjs.org/@sentry/bundler-plugins/-/bundler-plugins-11.10.0.tgz",
+ "integrity": "sha512-+ngJ485rIYll5uOhWSvSO+Vx4S24MGe5KcLKlUZghr+BXK+ib32uBOZNG294wGyeauLTDvdjncLEYwiaBnP/5w==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@sentry/core": "11.9.0",
+ "@sentry/core": "11.10.0",
"dotenv": "^17.4.2",
"glob": "^13.0.6",
"magic-string": "~0.30.8 || ^1.0.0",
@@ -1768,9 +1768,9 @@
}
},
"node_modules/@sentry/conventions": {
- "version": "0.27.0",
- "resolved": "https://registry.npmjs.org/@sentry/conventions/-/conventions-0.27.0.tgz",
- "integrity": "sha512-Mrqd/o7n/z7qWSYfQQA7x4fFTA0IqOG6JNsbBpnC97khPwZk7n6DPtOO7YgaYplSl8R8QLRbBz9Xv2lVhToSAg==",
+ "version": "0.29.0",
+ "resolved": "https://registry.npmjs.org/@sentry/conventions/-/conventions-0.29.0.tgz",
+ "integrity": "sha512-kYq9/HJ/l6MYP/srIc20dy1W4mWyJfCF0OWFF+RhBGZwyr/wCmtabRFKyw7kqM+DTwZXQOjSTSZUcJhDowcInQ==",
"dev": true,
"license": "MIT",
"engines": {
@@ -1778,26 +1778,26 @@
}
},
"node_modules/@sentry/core": {
- "version": "11.9.0",
- "resolved": "https://registry.npmjs.org/@sentry/core/-/core-11.9.0.tgz",
- "integrity": "sha512-t0dZyHILt2XVC4Fe9UmAty6YRfOuQv95cvWeNl+HlW4LphjF5/jkALV3cJCUMdhpblYELgIJC4U/S/GoYuI2bA==",
+ "version": "11.10.0",
+ "resolved": "https://registry.npmjs.org/@sentry/core/-/core-11.10.0.tgz",
+ "integrity": "sha512-l/OtTo1v+TQgZtHG2Q5N4IX+gFdAE1tZ27K/P21UCzJglWk54TPEm+d9T2lulPqMK06kZcLwDgRAhE2GO4YS5w==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@sentry/conventions": "^0.27.0"
+ "@sentry/conventions": "^0.29.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
}
},
"node_modules/@sentry/vite-plugin": {
- "version": "11.9.0",
- "resolved": "https://registry.npmjs.org/@sentry/vite-plugin/-/vite-plugin-11.9.0.tgz",
- "integrity": "sha512-PgvJ5o8QZJitEsjr64NrxmCmup5jdT27Vj4RxrQAzng3GpmntU9VKnnpECnV5tc6XOWPw83fUAU1eE954HhAgQ==",
+ "version": "11.10.0",
+ "resolved": "https://registry.npmjs.org/@sentry/vite-plugin/-/vite-plugin-11.10.0.tgz",
+ "integrity": "sha512-1eUQmGMk7nPwGS6PN3nuzM8+U0mzP0zaPjmO3ua4IX6gd7HFpefkxriFgO9yGOhCBMSWkIkVzxl7hUrRTCIIfw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@sentry/bundler-plugins": "11.9.0"
+ "@sentry/bundler-plugins": "11.10.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
@@ -3894,18 +3894,19 @@
}
},
"node_modules/framer-motion": {
- "version": "14.7.1",
- "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-14.7.1.tgz",
- "integrity": "sha512-mFDYZxyfeZnpvL/zEQEqLZNYVA/ya47c9TBfZb/PEoNBBVSVvCLkMrCv9U38cuw72W161XENZwZB0+4nIBLEJg==",
+ "version": "14.8.0",
+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-14.8.0.tgz",
+ "integrity": "sha512-PQsSx+UlaKiyPhADjVT5wALBErJJdbMeKQS4gQx6ibOrSNni7qjqfTKMvf6YHGG8pQWi6njs7AqrIG7R2hbnxA==",
"license": "MIT",
"dependencies": {
- "motion-dom": "14.7.1",
+ "motion-dom": "14.8.0",
"motion-utils": "14.7.0",
"tslib": "^2.4.0"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
- "react-dom": "^18.0.0 || ^19.0.0"
+ "react-dom": "^18.0.0 || ^19.0.0",
+ "remix": "^3.1.0"
},
"peerDependenciesMeta": {
"react": {
@@ -3913,6 +3914,9 @@
},
"react-dom": {
"optional": true
+ },
+ "remix": {
+ "optional": true
}
}
},
@@ -4338,17 +4342,18 @@
}
},
"node_modules/motion": {
- "version": "14.7.1",
- "resolved": "https://registry.npmjs.org/motion/-/motion-14.7.1.tgz",
- "integrity": "sha512-o+q7MExUC0RuCUF62HxF9v+fNVX7pUMYZqlyigQJJFAgAsmnnSlAOYeG41hGYkamxFR0rdBA0KXpaBJ28/GGAw==",
+ "version": "14.8.0",
+ "resolved": "https://registry.npmjs.org/motion/-/motion-14.8.0.tgz",
+ "integrity": "sha512-4KUxmgq8Lt8o/4/m8WnRicBQ+mJUMHl5Gp00o0R0+uU3NDqLwQX3GuBiqVillZl0NzOrhPuC00c5ydP6lokjmQ==",
"license": "MIT",
"dependencies": {
- "framer-motion": "14.7.1",
+ "framer-motion": "14.8.0",
"tslib": "^2.4.0"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
- "react-dom": "^18.0.0 || ^19.0.0"
+ "react-dom": "^18.0.0 || ^19.0.0",
+ "remix": "^3.1.0"
},
"peerDependenciesMeta": {
"react": {
@@ -4356,13 +4361,16 @@
},
"react-dom": {
"optional": true
+ },
+ "remix": {
+ "optional": true
}
}
},
"node_modules/motion-dom": {
- "version": "14.7.1",
- "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-14.7.1.tgz",
- "integrity": "sha512-p9q9F7+HoijbQjUG/cSGNmWS2t1OaAKxkd2RG5gQJRoDwoTap/Khb7K1P5rLW90crnSmx0rcRXzh3Jd5UNrpEw==",
+ "version": "14.8.0",
+ "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-14.8.0.tgz",
+ "integrity": "sha512-HzA41kvV7BgluM7L/XbW+gHFzDtJUbHnEsrlnIzPS9dqSfoPy9YzL6VKF7ai0TiQcykkkLUqvIxECAdwa9gwAw==",
"license": "MIT",
"dependencies": {
"motion-utils": "14.7.0"
diff --git a/frontend/package.json b/frontend/package.json
index 281500d1d..e860277e6 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -29,7 +29,7 @@
"clsx": "2.1.1",
"d3-sankey": "0.12.3",
"diff": "9.0.0",
- "motion": "14.7.1",
+ "motion": "14.8.0",
"react": "19.3.1",
"react-aria": "3.53.1",
"react-aria-components": "1.22.1",
@@ -41,7 +41,7 @@
},
"devDependencies": {
"@sentry/cli": "3.8.2",
- "@sentry/vite-plugin": "11.9.0",
+ "@sentry/vite-plugin": "11.10.0",
"@shadcn/lint": "0.2.3",
"@tailwindcss/vite": "4.3.3",
"@types/d3-sankey": "0.12.5",
diff --git a/package-lock.json b/package-lock.json
index 366152f20..f7dae42c3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,8 +9,8 @@
"@fontsource-variable/inter": "5.3.0",
"@phosphor-icons/core": "2.1.1",
"@videojs/cdn": "10.2.0",
- "healthicons": "2.0.0",
- "lucide-static": "1.62.0",
+ "healthicons": "3.0.0",
+ "lucide-static": "1.64.0",
"remixicon": "4.9.1",
"swiper": "14.3.0"
},
@@ -42,17 +42,49 @@
"dev": true,
"license": "Apache-2.0"
},
- "node_modules/healthicons": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/healthicons/-/healthicons-2.0.0.tgz",
- "integrity": "sha512-fl2Ja5CUwtWqdHf5Q0/V7OEGGQjTHlMrDZy0bwgE5ZvYnVwR51WLlLonl4NY6+7urEJchCnWUJglTUEEUS1dhg==",
+ "node_modules/clipboard": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz",
+ "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "good-listener": "^1.2.2",
+ "select": "^1.1.2",
+ "tiny-emitter": "^2.0.0"
+ }
+ },
+ "node_modules/delegate": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz",
+ "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==",
"dev": true,
"license": "MIT"
},
+ "node_modules/good-listener": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz",
+ "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "delegate": "^3.1.2"
+ }
+ },
+ "node_modules/healthicons": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/healthicons/-/healthicons-3.0.0.tgz",
+ "integrity": "sha512-Ta5S7xBo5wKrLvj6OUyMOPAE07yq5DoJfeyufGql/WpZq1KEbstHOF+OmQtd4LwPzoAMmIhZyQz8KkRDrWweqg==",
+ "dev": true,
+ "license": "CC0-1.0",
+ "dependencies": {
+ "clipboard": "^2.0.11"
+ }
+ },
"node_modules/lucide-static": {
- "version": "1.62.0",
- "resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-1.62.0.tgz",
- "integrity": "sha512-WBZA/m2PvkFpMGHDtsBck5P2A9G4ehLlYu4GwwICcmEm1BvYVgj00lCDxKRWLlbMlOibLaiwdQ88G5pHkSWgwA==",
+ "version": "1.64.0",
+ "resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-1.64.0.tgz",
+ "integrity": "sha512-UxWmMteOXbKHI5E4f2qVtxCAAsI9gsInYK1lNw0nrOA0w4FkJeOVZ+UOV6aGA2377FZe3qyiFYq3lqjBKZ6OuA==",
"dev": true,
"license": "ISC"
},
@@ -63,6 +95,13 @@
"dev": true,
"license": "Apache-2.0"
},
+ "node_modules/select": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz",
+ "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/swiper": {
"version": "14.3.0",
"resolved": "https://registry.npmjs.org/swiper/-/swiper-14.3.0.tgz",
@@ -82,6 +121,13 @@
"engines": {
"node": ">= 4.7.0"
}
+ },
+ "node_modules/tiny-emitter": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
+ "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==",
+ "dev": true,
+ "license": "MIT"
}
}
}
diff --git a/package.json b/package.json
index 77d7c1666..c236bfaa1 100644
--- a/package.json
+++ b/package.json
@@ -13,8 +13,8 @@
"@fontsource-variable/inter": "5.3.0",
"@videojs/cdn": "10.2.0",
"@phosphor-icons/core": "2.1.1",
- "healthicons": "2.0.0",
- "lucide-static": "1.62.0",
+ "healthicons": "3.0.0",
+ "lucide-static": "1.64.0",
"remixicon": "4.9.1",
"swiper": "14.3.0"
}
diff --git a/pyproject.toml b/pyproject.toml
index 1c3535048..3ca77977b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -45,7 +45,7 @@ dependencies = [
"pillow==13.0.0",
"protobuf==7.36.2",
"pystray==0.19.5",
- "pydantic==2.14.1",
+ "pydantic==2.14.2",
"resvg-py==0.5.0",
"sentry-sdk==2.73.0",
"socksio==1.0.0",
diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjs
index 77bc36c21..cb223c5ea 100644
--- a/scripts/vendor_web_dependencies.mjs
+++ b/scripts/vendor_web_dependencies.mjs
@@ -271,7 +271,7 @@ index = index.replace(
new RegExp(`<symbol id="i-sperm" viewBox="${SPERM_VIEWBOX}">[\\s\\S]*?<\\/symbol>`),
`<symbol id="i-sperm" viewBox="${SPERM_VIEWBOX}">${healthInner}</symbol>`);
index = index.replace(/Lucide static [0-9.]+, ISC/, `Lucide static ${versions["lucide-static"]}, ISC`);
-index = index.replace(/Health Icons sperm outline-24px, CC0\/public domain/,
+index = index.replace(/Health Icons [0-9.]+ sperm outline-24px, CC0\/public domain/,
`Health Icons ${versions.healthicons} sperm outline-24px, CC0/public domain`);
index = index.replace(/Phosphor [0-9.]+ regular, MIT/,
`Phosphor ${versions["@phosphor-icons/core"]} regular, MIT`);
@@ -342,7 +342,7 @@ stage("web/vendor/healthicons-ORIGIN.md",
`# Health Icons ${versions.healthicons}\n\n` +
`- npm 包:\`healthicons@${versions.healthicons}\`\n` +
`- npm lock integrity:\`${integrity("healthicons")}\`\n` +
- "- 许可证:npm 包为 MIT,图标由上游声明为 CC0/public domain;原文见 `healthicons-LICENSE.txt`\n" +
+ `- 许可证:${JSON.parse(text("node_modules", "healthicons", "package.json")).license};原文见 \`healthicons-LICENSE.txt\`\n` +
"- 消费者:`web/index.html` 的 `sperm` outline-24px symbol\n");
// 雪碧图的分区检查。少了它,新画一枚 symbol 只会安静地待在 index.html 里,
diff --git a/tests/test_metadata_library.py b/tests/test_metadata_library.py
index bec1e6993..ea0943b66 100644
--- a/tests/test_metadata_library.py
+++ b/tests/test_metadata_library.py
@@ -3610,6 +3610,41 @@ class ProcessingLockTests(unittest.TestCase):
(aid, 'local', str(PureWindowsPath(prefix) / video.name), video.name,
'video', code))
+ def test_a_user_can_cancel_while_waiting_for_the_processing_lock(self):
+ stopped = threading.Event()
+ errors = []
+ provider = stub_provider()
+ holder = FileLock(str(state_path(self.config)) + '.lock', timeout=0)
+ holder.acquire()
+
+ def user_run():
+ try:
+ process_library(self.config, self.db, self.root / 'generated', self.root / 'covers',
+ provider_factory=lambda: provider, database=self.database,
+ active=lambda: not stopped.is_set())
+ except Exception as error:
+ errors.append(error)
+
+ with patch('peach.library_processing.LOCK_RETRY_SECONDS', 0.01):
+ thread = threading.Thread(target=user_run)
+ thread.start()
+ try:
+ deadline = time.monotonic() + 10
+ while not library_processing._foreground_waiting() and time.monotonic() < deadline:
+ time.sleep(0.01)
+ self.assertTrue(library_processing._foreground_waiting())
+ stopped.set()
+ thread.join(10)
+ self.assertFalse(thread.is_alive())
+ finally:
+ stopped.set()
+ holder.release()
+ thread.join(10)
+ self.assertEqual(len(errors), 1)
+ self.assertIsInstance(errors[0], InterruptedError)
+ self.assertFalse(library_processing._foreground_waiting())
+ provider.query.assert_not_called()
+
def test_a_background_collection_steps_aside_while_the_processing_lock_is_held(self):
config, db, database = self.config, self.db, self.database
provider = stub_provider()
diff --git a/tools/amane-bridge/uv.lock b/tools/amane-bridge/uv.lock
index 6c40adb8c..8ef5717e1 100644
--- a/tools/amane-bridge/uv.lock
+++ b/tools/amane-bridge/uv.lock
@@ -1,17 +1,21 @@
version = 1
revision = 5
requires-python = ">=3.14"
+resolution-markers = [
+ "python_full_version >= '3.15'",
+ "python_full_version < '3.15'",
+]
[[package]]
name = "ag-ui-protocol"
-version = "0.1.22"
+version = "1.0.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pydantic" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/e8/f7/9bf788e7d3608725d022a248a58427040f4f930ab87ddb54bd29ee4d9a51/ag_ui_protocol-0.1.22.tar.gz", hash = "sha256:d21f265284a50d9fc87ad7bcbd58f737b4b16eef7b5375f13a6e925117b52046", size = 18110, upload-time = "2026-08-31T18:20:04.334Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/57/92/d88fdc7f4648dc38d3d54c595066bb3e63a4c091884ffb2f98272c33eef8/ag_ui_protocol-1.0.0.tar.gz", hash = "sha256:cfebecef2e7bc942cc8a52d908a4ea86a98f631d2ffdc6ec5812bb843eac74fb", size = 30759, upload-time = "2026-09-17T18:31:19.448Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/be/6c/af3d577e68c9474c99600e65b2c6283772aae187edca6f0f2f5cbd9f565a/ag_ui_protocol-0.1.22-py3-none-any.whl", hash = "sha256:fca13ee7820f8f53e869c19e09ddd75826c1799b27c2adb6f2e567295433c704", size = 22068, upload-time = "2026-08-31T18:20:03.43Z" },
+ { url = "https://files.pythonhosted.org/packages/82/b0/850be4576e6443dc575daa54188d8136ae2b2eca3f19e098e7a088fc9ebc/ag_ui_protocol-1.0.0-py3-none-any.whl", hash = "sha256:0058eaf0522201089d444e430fc35180bc8ad0222cae39e8568b313e8105d9e6", size = 36842, upload-time = "2026-09-17T18:31:18.471Z" },
]
[[package]]
@@ -461,15 +465,15 @@ wheels = [
[[package]]
name = "genai-prices"
-version = "0.1.13"
+version = "0.2.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "httpx2" },
{ name = "pydantic" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/ad/de/119c7ba00b9ddbf629de34cf390ab472da6d7bc5df0c51cdbec900280a74/genai_prices-0.1.13.tar.gz", hash = "sha256:76c9e2dd3917fdacdf3bc562297c4591384142ea2283c477e1512fafa4e3a384", size = 134622, upload-time = "2026-10-15T09:47:04.739Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/db/93/95297c8b37f0deec1780d7579e85915fd7fe4dbe0da38cb79bc0fcc16a2a/genai_prices-0.2.0.tar.gz", hash = "sha256:a0e92059e96492f2ffe55fa708908fe2fc0afe11d111f8051106d52ae8fd9c12", size = 159032, upload-time = "2026-10-29T14:41:09.524Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/41/5a/b6b7d55148d367d07bcd3efdf24e3086ad199ea5109d0c335a872dfaac95/genai_prices-0.1.13-py3-none-any.whl", hash = "sha256:6d2b40760a2f7f5e207bac9b98de0af80e60c58ead497872a5331a7cee610477", size = 142541, upload-time = "2026-10-15T09:47:03.424Z" },
+ { url = "https://files.pythonhosted.org/packages/0e/2a/c2369565aa7dde5ea33de724acae7cc753f9d19239daea0000779102f4b5/genai_prices-0.2.0-py3-none-any.whl", hash = "sha256:21ede75742043b3489a6cec3ad5722782640b34676563c6c755b52061812e6a3", size = 168199, upload-time = "2026-10-29T14:41:08.104Z" },
]
[[package]]
@@ -896,7 +900,7 @@ wheels = [
[[package]]
name = "openai"
-version = "3.40.0"
+version = "3.41.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio" },
@@ -906,21 +910,21 @@ dependencies = [
{ name = "sniffio" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/31/ce/5b2e20d41c4e82dbb4be0192c62ce53516111896f642466fa71b82dccf0f/openai-3.40.0.tar.gz", hash = "sha256:df309d434130e89a23e9c687fc4bcd3df0df705a33d3872503c87448df69f56f", size = 2391443, upload-time = "2026-10-27T15:38:54.916Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/8f/f1/3aaadae62d59a9b464f9d2e1deab74f9eb697244beb7dc37fff64df9c92c/openai-3.41.0.tar.gz", hash = "sha256:d065fc59d3d7d8537a77b3ceb527732952c6ff610158e8a2a95b246be637e86f", size = 2313147, upload-time = "2026-10-28T22:27:52.317Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/1c/d2/b59435562e893730bb620c720ddaaa84b016e870c9b7b6b85fb505540bdc/openai-3.40.0-py3-none-any.whl", hash = "sha256:dfcfd4f65ee5a8bb824da90c9ad7fa0dda7f3bd472a7c564dffc6183f0a0b55c", size = 2353063, upload-time = "2026-10-27T15:38:52.679Z" },
+ { url = "https://files.pythonhosted.org/packages/83/23/089333ff950ee07c30762160f4eff5ac5d376934c2d6797abf6da9cd06a5/openai-3.41.0-py3-none-any.whl", hash = "sha256:7060a74b239609b21f2919eb98807a8aad463b4f510b8b3b388b15559360b0a8", size = 2380171, upload-time = "2026-10-28T22:27:50.372Z" },
]
[[package]]
name = "opentelemetry-api"
-version = "1.45.1"
+version = "1.45.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/2e/02/6e0ae9cc61bd3169d401077b507b3ebc344745171e1051ab430be012dcd9/opentelemetry_api-1.45.1.tar.gz", hash = "sha256:aa38ed19bcc084ba42782a73255b3582283eced7ad6dddbd6695189e69adfb75", size = 72804, upload-time = "2026-10-06T17:32:58.133Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/19/14/cf3a6b6448849656e1e5f4e2101f3988dc6789724050096aba1bc5ccf592/opentelemetry_api-1.45.2.tar.gz", hash = "sha256:d7b0008e21e5fd61cbe7a7f34ca3b6905a78ab677d9bc395e299359c75cda6b4", size = 73277, upload-time = "2026-10-29T17:29:37.888Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/1e/41/f7dcf80b81ee8e71c1a2b59f14208bc723edbd89ed027a73b175abf6348e/opentelemetry_api-1.45.1-py3-none-any.whl", hash = "sha256:b31553efa588ae44bc306f863c785c5333a9ecc091248c6ee68b4b6c87fdedfb", size = 60256, upload-time = "2026-10-06T17:32:33.506Z" },
+ { url = "https://files.pythonhosted.org/packages/a9/2d/610db864d7513158cebb8f36cc88e67e73bd6c7aa1905ef18d89e1281c81/opentelemetry_api-1.45.2-py3-none-any.whl", hash = "sha256:2cbd737377e710ee740d261c94e93fa0f08e6d037c18f17513cc0a2d94479a34", size = 60335, upload-time = "2026-10-29T17:29:06.955Z" },
]
[[package]]
@@ -1019,7 +1023,7 @@ wheels = [
[[package]]
name = "pydantic"
-version = "2.14.1"
+version = "2.14.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "annotated-types" },
@@ -1027,9 +1031,9 @@ dependencies = [
{ name = "typing-extensions" },
{ name = "typing-inspection" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/7c/0b/8e10b2e693af8ec54346a14caf36221334775975a747c9ceaa3f8371d96d/pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26", size = 900362, upload-time = "2026-10-11T18:37:55.396Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/9f/d5/b4867fa7c7f04c34997d7d8aad744f64d210bb99d67cf18bf3fb1eea1aed/pydantic-2.14.2.tar.gz", hash = "sha256:fb7b2db6cefe8414dd612edeede49c4c433acb0432b0f92b95024e45f66c505d", size = 911596, upload-time = "2026-10-29T16:37:12.476Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/35/ea/a56b9fe5066f3537b7882f77e9c5dfb26d8c2eefdaed9b5fc73d57b4dc22/pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454", size = 488106, upload-time = "2026-10-11T18:37:53.437Z" },
+ { url = "https://files.pythonhosted.org/packages/97/01/c71a71258b58659c72504e5fd65b451f6e36e34dc931d0b237ded213c814/pydantic-2.14.2-py3-none-any.whl", hash = "sha256:7efbf7507b937931cd32a5755acb00ea1cf5ccb1d4e8067a5850d5069e382118", size = 490403, upload-time = "2026-10-29T16:37:10.181Z" },
]
[[package]]
@@ -1066,74 +1070,74 @@ openai = [
[[package]]
name = "pydantic-core"
-version = "2.50.1"
+version = "2.50.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/a6/24/af4ec4be49fbc810f35b0bdcacc3d433b56bbfa469fd3bfd4ae116cd9bf1/pydantic_core-2.50.1.tar.gz", hash = "sha256:e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09", size = 513515, upload-time = "2026-10-11T18:35:44.82Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/49/33/28b96e81677153715e3eafb9f26663a80841e859fde282a380359b0d3fa1/pydantic_core-2.50.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:1cf41f1ae3fa155cf167a72689ad044bcc1e3c97e064123677149bdfb5dafc4a", size = 2224428, upload-time = "2026-10-11T18:33:07.153Z" },
- { url = "https://files.pythonhosted.org/packages/94/40/15c06410c9b7b8da5805d27b64e09bd3f900e986728106db2689dbc51513/pydantic_core-2.50.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4df197990c15b5a37c5a277d131d9f2c67de6133f2e5dafd80d9bba4b99f46f9", size = 2023740, upload-time = "2026-10-11T18:33:08.763Z" },
- { url = "https://files.pythonhosted.org/packages/a1/4e/5eb629f6efc2a27e421d789dd4bfacbb5f6d09c80c28b13d1e87d73163d5/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0036473f5583e6a60e50b8b21651511564277a3f05cc5dab8cf579f552cd5f6c", size = 2049435, upload-time = "2026-10-11T18:33:10.366Z" },
- { url = "https://files.pythonhosted.org/packages/ba/8e/f195aebec49ad12318876ac2368c197a7939f5d52f8e156d2238ef8a4588/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:992c3514ec891fa7858099183e4d64e6bd5a5d4ff452fae29df22faa77a006bb", size = 2172975, upload-time = "2026-10-11T18:33:12.368Z" },
- { url = "https://files.pythonhosted.org/packages/e0/f5/7ad9fb83010cd5ea0948409db105676ed779c4e709e2d3d89b9fe2558794/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:739dc730e6be3bd5ec2f4ab5cfc7eb047cc45fc1497b3bafec74ff2ed07df597", size = 2364197, upload-time = "2026-10-11T18:33:14.244Z" },
- { url = "https://files.pythonhosted.org/packages/ca/fb/bf0aab3e78301d202b82a0322ec968cd703b11fc0623fde9a28708936f62/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:32fad3a91e51b6d2039c572db04a5a873260b399f6bd62c3552671fa7a4a2899", size = 2444259, upload-time = "2026-10-11T18:33:15.79Z" },
- { url = "https://files.pythonhosted.org/packages/45/35/38f6d6564fae57d9b12e5676dfa947e0e7d5c46dbeaa7eb3352261d6d299/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42b54c2c90ad348b5e3a85e03e715d572c1fde357ef104cdfe3b03b697a404ea", size = 2159857, upload-time = "2026-10-11T18:33:17.51Z" },
- { url = "https://files.pythonhosted.org/packages/65/a0/fb0a3ca10f139dcf765b2d312d10cf0f65c57c59993229d00ad12b14ceff/pydantic_core-2.50.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:2df1ff41884de2bc4b307bafd7c40a691094fad2ff8e767e5b45a319257bcf4e", size = 2233954, upload-time = "2026-10-11T18:33:19.591Z" },
- { url = "https://files.pythonhosted.org/packages/8c/6a/e63842252702aa4ec6e6b7178ca85e541a77459076592c23ebe2d9840b33/pydantic_core-2.50.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe90228920fd8ff2be62622b6bb8a2b11acd65046d50c6b130614b5879605a20", size = 2243876, upload-time = "2026-10-11T18:33:21.393Z" },
- { url = "https://files.pythonhosted.org/packages/39/25/5991cf8318b37e0dfab47b87541619a1df8501a793cba0d978846cba37a7/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:844b869f118e22a41a091bdcedda8a71bc1b0f62c38d1a0c3211cece47e1d8fc", size = 2277908, upload-time = "2026-10-11T18:33:23.324Z" },
- { url = "https://files.pythonhosted.org/packages/a7/3e/3ee8baaa6cc25a6961c69168cf9ff0f002d56f4e0d541ad6724c18fb61f3/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:2eb75304506894a281d346220a4f7481a1b8729577c5ed2a05395991966a8396", size = 2449285, upload-time = "2026-10-11T18:33:24.942Z" },
- { url = "https://files.pythonhosted.org/packages/c0/c7/acbec6deac13fe697a80c275a9b6661db62c4d323bac8a47347b1f39c7cd/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6b20a4bffabdad0db2927ac034ae3b8a681b1f7a0182f3e60b479ad2fde21ebb", size = 2479013, upload-time = "2026-10-11T18:33:26.925Z" },
- { url = "https://files.pythonhosted.org/packages/10/08/21a3f237b264389f6219d053ee78fc1b5c2fd402c1b1cb2b6cb8b85f9834/pydantic_core-2.50.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:99ba9bc2b8062ea0c326a990f7f00e6530c23579de66dd246e72c4cafef950a5", size = 1484400, upload-time = "2026-10-11T18:33:28.693Z" },
- { url = "https://files.pythonhosted.org/packages/09/ce/077a6d262d12ef09108377ac0717f029f420d773ace63cafd6143af75568/pydantic_core-2.50.1-cp314-cp314-win32.whl", hash = "sha256:cf356f70551d40374eaffb1aa63f1eb6d2006681cbd7a9faea173ce0f4dd7cd2", size = 2103222, upload-time = "2026-10-11T18:33:30.326Z" },
- { url = "https://files.pythonhosted.org/packages/14/4c/350a2415209c43d670eb71d3c040f332c04a30583d39e311b05c7ac15762/pydantic_core-2.50.1-cp314-cp314-win_amd64.whl", hash = "sha256:d32f3acc081cc3923386d88f422cde8892335e95f034e0104bb4cf9310d9915f", size = 2171586, upload-time = "2026-10-11T18:33:32.139Z" },
- { url = "https://files.pythonhosted.org/packages/bf/92/9bea6ca96580a0902fed366f064f0829e404f41889b34543279a1162b888/pydantic_core-2.50.1-cp314-cp314-win_arm64.whl", hash = "sha256:bed5163e03b98bc1fa2eb05d74c63d9c5c95d8ed6254985481640fbf5e237dea", size = 2155773, upload-time = "2026-10-11T18:33:33.896Z" },
- { url = "https://files.pythonhosted.org/packages/86/8c/f121f073cf32bdd5cba7e6230b1ce0ac845b0cf43e44dd597d95af272db2/pydantic_core-2.50.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:9572c1369e9c9da2d64a7b7992c786d90ff295abc93964cfe3125e4290768070", size = 2234017, upload-time = "2026-10-11T18:33:35.588Z" },
- { url = "https://files.pythonhosted.org/packages/a4/69/2bb2bcd6146cffe98d760a46c42ae71efd5151d9b2f9c9bf6619a3b32083/pydantic_core-2.50.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2005207aafe1231315718bf6ed5d064a7300fb4772754af35ee72fc68159492e", size = 2001016, upload-time = "2026-10-11T18:33:37.57Z" },
- { url = "https://files.pythonhosted.org/packages/20/b3/fbf854c7d07ec114260c26e9e2071a4381740f9ae09641dbfcbdf2a18c45/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64f6047f62a6c5ae08d0a6afb035667aa2d97c3d20d69762e034c5ea144d92a5", size = 2023015, upload-time = "2026-10-11T18:33:39.433Z" },
- { url = "https://files.pythonhosted.org/packages/65/20/6de55b2f92cdb614b745c6e9ced639fc4fd7e1e77604825a88bdece6fcbd/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ef800dd7d85bcdadf4c3076e4c94e43939493558a3b69a1ea830c706d4617bb", size = 2192543, upload-time = "2026-10-11T18:33:41.381Z" },
- { url = "https://files.pythonhosted.org/packages/0c/d9/19e91c94bd5c405945ce2f15526808aea37e162c253160de8ed7bf70b406/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b0135bcdcaa0f23573f286e4cb5e0fd2962700964ed13df085b85f2b97aeab9e", size = 2388704, upload-time = "2026-10-11T18:33:43.167Z" },
- { url = "https://files.pythonhosted.org/packages/b6/bc/2e24c8415eae1a25ee5a5484946a917123bad2e9d01689a759236928175a/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0b3a6f334c6a2345ca15318ff894502a90012536404b37c844a976c76c846e0b", size = 2464118, upload-time = "2026-10-11T18:33:44.856Z" },
- { url = "https://files.pythonhosted.org/packages/bd/1f/945b8053cb061c64e102bcaf7bfb9ed740c0bd4349f9bb978a7d4ddff4ab/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06e01fbbfdb9be777b316a71b6c49efaf4a08b615d0a98d678cda3023f79d019", size = 2150142, upload-time = "2026-10-11T18:33:46.661Z" },
- { url = "https://files.pythonhosted.org/packages/2b/78/96a3e50bf0d64aaae781107eb9335b7529d05a85793ed6e7241c4cd1d931/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a29a061fec0b4e2d714f277e70a3a18125ecff803f2fea6eade2f2e53711d112", size = 2245577, upload-time = "2026-10-11T18:33:48.574Z" },
- { url = "https://files.pythonhosted.org/packages/7a/5d/a6038a0322232758a6ebfa709f4ca14a60bf5b93940cd0b345056a557da4/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f5187624823423e1d1b82b1072ac41dc837389e18d3d0572cc19bbee46cd550a", size = 2263728, upload-time = "2026-10-11T18:33:50.527Z" },
- { url = "https://files.pythonhosted.org/packages/0d/4b/76ded3333a457a9344c4f2d63f2d82d0101654b05178fa4ddfe7d3627674/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3e46a9eb0a0901dd6275e6b06ac3a464885ef350ec4121fe486869de8053e4bb", size = 2293630, upload-time = "2026-10-11T18:33:52.362Z" },
- { url = "https://files.pythonhosted.org/packages/a9/00/9eca378335c9c1b72bc779bf6e4c2a82ce784f14ec48a0e87102c9870e05/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:756d669f04e62ec4148ecfe22be6a4484d9b1181a6ef32e205ebfd200540858b", size = 2468048, upload-time = "2026-10-11T18:33:54.118Z" },
- { url = "https://files.pythonhosted.org/packages/35/ca/e3832e9cf93651251de43c8c5c029ed680a3c1a0a1b17ee26c81bed08cbd/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:c516cc5367ca3448995d42cb994bf3f4c9002d2a7c22eac9622551269ad1b807", size = 2512159, upload-time = "2026-10-11T18:33:55.99Z" },
- { url = "https://files.pythonhosted.org/packages/4b/f2/773469b5a10a39116a2cb17edaf6d722f017dd8da07161b371465311c542/pydantic_core-2.50.1-cp314-cp314t-win32.whl", hash = "sha256:9d1bed94af6a63835461f3cf7502058eb166c58c4778e11d0f433cfb1bd69e19", size = 2098406, upload-time = "2026-10-11T18:33:58.043Z" },
- { url = "https://files.pythonhosted.org/packages/ee/42/0bb74f8f25204b259b11ab7c12dc7f180893b6bd706118b385147fb6efd5/pydantic_core-2.50.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c8dce1f1e0e5358b682a6ad3fa5e31b31d4560997b8e61417e9217c8d60f8a0c", size = 2148481, upload-time = "2026-10-11T18:33:59.913Z" },
- { url = "https://files.pythonhosted.org/packages/47/0d/d801646c9679a4e630e15cf521d4108b93854b42a6e6e02391bd4c6b1095/pydantic_core-2.50.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ceff0acc940be2715bd6ad17b24c0e5304abf44f6efd0f81ee8499e640f9dc86", size = 2174972, upload-time = "2026-10-11T18:34:01.875Z" },
- { url = "https://files.pythonhosted.org/packages/b2/84/23984b763d8862a02a13d27a44b6e8169428fd85ecfed88f54c29108604d/pydantic_core-2.50.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:8a6791afa2245e6c6b180122d105941644f5bd410bb18623b408808cc41a3102", size = 2224599, upload-time = "2026-10-11T18:34:04.016Z" },
- { url = "https://files.pythonhosted.org/packages/4d/90/a63cf8586abc1d1a3f6d9b18f0224789ebf003851f092ebda3c7c863fd32/pydantic_core-2.50.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:84f34323a61a365b4e9295de6028474754829aaddd59c7bf1a040e7487ef8f3c", size = 2024191, upload-time = "2026-10-11T18:34:05.901Z" },
- { url = "https://files.pythonhosted.org/packages/a6/6a/f34bff9808ffb4907fbf5f5040457d253cacf2da7fce9efbc99ca1b1a44d/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23edad659e8dbd8ca7e4e877fe6c81573abbdf215bd25a68b53e1272f58b80c7", size = 2048252, upload-time = "2026-10-11T18:34:07.757Z" },
- { url = "https://files.pythonhosted.org/packages/b2/54/13f419bf1eb59852003818e25935aaf175687d978f4c4bca70e08fe40a3b/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a5fce22f1e87d181e924e12da7d81cfe031fb3881a5ddf26ad28f141756ca43", size = 2173376, upload-time = "2026-10-11T18:34:09.592Z" },
- { url = "https://files.pythonhosted.org/packages/6d/6c/b5a34d24cd0c81669d8f8339d74e6815abcf2f8fb48ab4b49b84c09be1d5/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c73622ef819328873b53109ee4f77ceb598bffedd02daf916102be3228866b78", size = 2364559, upload-time = "2026-10-11T18:34:11.534Z" },
- { url = "https://files.pythonhosted.org/packages/eb/8d/d64d6216a8df365082665927ff923f183056f9049fee08e9777c9ac05296/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ce8c25ca38cc0e3d7753ba180808de2c0c8cb24eae0df64491e40921454e9831", size = 2444697, upload-time = "2026-10-11T18:34:13.535Z" },
- { url = "https://files.pythonhosted.org/packages/b8/0d/1b1149f60a00ea21ba5f70e28acbd40feb4598af414f80f53c921fac07c9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7689580e72a642ab5ec64d5f55b2e33636fa43b4ebe63c0c2c965ef307c7d1aa", size = 2159961, upload-time = "2026-10-11T18:34:15.56Z" },
- { url = "https://files.pythonhosted.org/packages/1e/35/f236549299dcc78e71e945495d7ec67e78d20844d0999c60601685003031/pydantic_core-2.50.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:d5c0e32fdbce7f1e8ef4d11f655694bf5f4175c757a9f1dc2be09b8864e5bcf5", size = 2234581, upload-time = "2026-10-11T18:34:17.502Z" },
- { url = "https://files.pythonhosted.org/packages/6a/85/26901a490522b7f75ef9bb9a7afb73e5bb550f0e1cb5b99a0069183e2eb9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:40f523349960fa30f3ea51404308ff50f9997a90df639590f47a057c1f32b415", size = 2244090, upload-time = "2026-10-11T18:34:19.402Z" },
- { url = "https://files.pythonhosted.org/packages/ca/2c/481bcfc70ceeb77a778ca6e5b705fe592cb64735c108157f81b7dd9c280e/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:d4193206b6587047437f6f11d7e776df23e1c1e23af2a54d9347275614791e10", size = 2277948, upload-time = "2026-10-11T18:34:21.317Z" },
- { url = "https://files.pythonhosted.org/packages/24/eb/f1e09333faa7ba447cde967310f758430cc7c5e987bdab5228816c70030d/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:84bc765b282a9d5b7fe0348b8648904f25a6a04b2139da52b1dd30c8ac3a2c8f", size = 2449688, upload-time = "2026-10-11T18:34:23.321Z" },
- { url = "https://files.pythonhosted.org/packages/d1/b3/036bde636db8f76d92996e81aefc75678ab5cec4a07eea1ad0c72a893fc3/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:ed1e728b39a383c81035b2459cfcb35d99dfb01f7d6ebe3a913bc1cc5b81e459", size = 2479286, upload-time = "2026-10-11T18:34:25.214Z" },
- { url = "https://files.pythonhosted.org/packages/d0/a3/07f018294ee18d144afeb6df1a47d9e92960f014be45c5ed13519fa5af95/pydantic_core-2.50.1-cp315-cp315-win32.whl", hash = "sha256:bc94f474417604bd383d2cd445d071b07dd55fedceed3ce33407bf1fcc107290", size = 2103683, upload-time = "2026-10-11T18:34:27.42Z" },
- { url = "https://files.pythonhosted.org/packages/5f/98/f9bd7e1f9b6709f155acb9ef826d9c3884fe925f811fd8e55b9b52280bad/pydantic_core-2.50.1-cp315-cp315-win_amd64.whl", hash = "sha256:983a662de2571cb2502fc8ff47b6770b03d025d2eb314c92f77b3f07c74720ed", size = 2171681, upload-time = "2026-10-11T18:34:29.508Z" },
- { url = "https://files.pythonhosted.org/packages/10/87/4bb3e1e7f385c076ab5af4d6dd0571b22042cd8207eb810d5b9fef15ae31/pydantic_core-2.50.1-cp315-cp315-win_arm64.whl", hash = "sha256:94845ff54dc5193f228cab81b2662a04bfbb892e95bdc15edf7399000ce57d54", size = 2156251, upload-time = "2026-10-11T18:34:31.455Z" },
- { url = "https://files.pythonhosted.org/packages/47/47/83643225b08f2aef6c8cc4bbe6e3f79c5e139c4364a6e450d0f399d87774/pydantic_core-2.50.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:4a53d13cdfbedbfa87f08b83c1a0a5efcc767d785a4b41934fa9cb672670493a", size = 2234363, upload-time = "2026-10-11T18:34:33.65Z" },
- { url = "https://files.pythonhosted.org/packages/5e/66/127ca649ba2f2462039dc1e694c6c01e00a3689f023a617364d3507e6d97/pydantic_core-2.50.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:efbecf43d321f7b9281441f1f213f7c21c66988b0e06c2730ba13ed47a46bb08", size = 2000972, upload-time = "2026-10-11T18:34:36.037Z" },
- { url = "https://files.pythonhosted.org/packages/5e/4f/e421e0a5d653b1203b090b2e48745976988d7338a647940704b5b9c2b399/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bc1f08f68dac9f9e83845a8039880aba2ab553eb9b2259c3243a313182c253fe", size = 2022925, upload-time = "2026-10-11T18:34:37.972Z" },
- { url = "https://files.pythonhosted.org/packages/d5/4e/ea5568e2491e1a71100f15ae8c2d01ef52db42a184a2d4e716bc79e5eb8f/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5dfe41f232befddb9c4377f6cfc702b51595e2d78ed082672adf8758d2c4619f", size = 2192867, upload-time = "2026-10-11T18:34:39.921Z" },
- { url = "https://files.pythonhosted.org/packages/ae/5e/3b8c3a35acbe219909ada5defad5d7d9fed845fb2b37bd5ec518f453c119/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:adc06d218a1cadfd2ec4628424d7d79ce4eba69c2965e7e7b55106f0da5208c8", size = 2388687, upload-time = "2026-10-11T18:34:42.184Z" },
- { url = "https://files.pythonhosted.org/packages/b6/aa/7889b4e515f91a2e8c0ae6b5081fec0feb30c4398d1434e14793c60f173a/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2cf91809d0721ab81592ba67bea7694821679c10b1a2e3c3460082b286c1918a", size = 2464415, upload-time = "2026-10-11T18:34:44.384Z" },
- { url = "https://files.pythonhosted.org/packages/08/78/93449e628eb8a6fdcce3eff9043081179d1bc7ce6f1bff32dc5006f41e00/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:23923ab9292c40da026330b1ecf4dc2618c8e86e0422e5d1fbf50d94d64ca4f8", size = 2150823, upload-time = "2026-10-11T18:34:46.392Z" },
- { url = "https://files.pythonhosted.org/packages/f4/f1/72c5bc129fceb0d00f05dc1e67f518c1728de1928c55f81fc13d7690de39/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:f3377c8c2b3ce898423c5e5dd94c7982e30aa7717a7e6ab2470b9de364963709", size = 2245806, upload-time = "2026-10-11T18:34:48.805Z" },
- { url = "https://files.pythonhosted.org/packages/28/2a/922a0e78f3aa6ab837b59f88190233fb8dad546c17995fde9bb3ed3b9b49/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:455a773617b5913bf5c20d0692e5787b119e52c4d40ea644ca31f5758fd31be2", size = 2264160, upload-time = "2026-10-11T18:34:50.876Z" },
- { url = "https://files.pythonhosted.org/packages/52/a8/0f1449e3e1b20941c9372faa18e7b6a092e30cdfa841902473f7989532ac/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:1a9006395dece0e32e704c315eff8a00bede494f6108546cfc5539c89fef4f9a", size = 2294031, upload-time = "2026-10-11T18:34:52.876Z" },
- { url = "https://files.pythonhosted.org/packages/d1/d0/1031f492857de70355fb16524bbb03efce5fd34c93ed4a1ec60be07e0d4b/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:d2d82aa62521c55ddfb000ae70f88cdd8de974078f6024e821dfe5addd0c818f", size = 2468423, upload-time = "2026-10-11T18:34:54.995Z" },
- { url = "https://files.pythonhosted.org/packages/46/52/269ffffa645b8e47906395a39cf9db1151ae9fa4bcd7f47b960bc31baf37/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:009634b83993777ddcd69cad0ffcace43dabde692109528e35f0fde91e386a8b", size = 2512598, upload-time = "2026-10-11T18:34:57.149Z" },
- { url = "https://files.pythonhosted.org/packages/31/5c/e47e28281f20326ff6f3c31d626f0a83e615d2d94ba41bb0ad6ec237184a/pydantic_core-2.50.1-cp315-cp315t-win32.whl", hash = "sha256:3fde4fdc6487a58d944ca87cf5adc95d5f266e872c19599f5f4c0a8a1b1f9f9f", size = 2098535, upload-time = "2026-10-11T18:34:59.313Z" },
- { url = "https://files.pythonhosted.org/packages/03/ad/759e181e69c1b472c60b2049e5f61d5da1deefdd5ce1df4bb2ebcf771f25/pydantic_core-2.50.1-cp315-cp315t-win_amd64.whl", hash = "sha256:1c8632d4ac04e6f91128fca584b3a8a507d81604c24eeaaad00d4be42765c32b", size = 2148645, upload-time = "2026-10-11T18:35:01.571Z" },
- { url = "https://files.pythonhosted.org/packages/6d/56/8a702c27e5be9f47e5f19d8669227424290e4c024e7c370279cbaf244b4e/pydantic_core-2.50.1-cp315-cp315t-win_arm64.whl", hash = "sha256:c3ede305158e75510be50869b319550ab072008c13d64d4ab1e094fb286b6f44", size = 2175297, upload-time = "2026-10-11T18:35:04.079Z" },
+sdist = { url = "https://files.pythonhosted.org/packages/af/8e/23ec1021834e35041fbb2f10946141e6acdfd39379c45cc4d65a4e8a1d98/pydantic_core-2.50.2.tar.gz", hash = "sha256:1b0e8dc3932cf4e9ed5727570325cacc716b9409ffc794a221c0ccc72e8eb775", size = 518711, upload-time = "2026-10-29T16:34:57.465Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/f2/64/fc525bb981a9f287cfa34346e7ed1d5ef7c043c2b9b517f54c6136032d10/pydantic_core-2.50.2-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:efad0bdc67d3b119c3bab6b94d341a27333c2bb89ed75dfa182a4a06cd0ea329", size = 2226414, upload-time = "2026-10-29T16:32:58.559Z" },
+ { url = "https://files.pythonhosted.org/packages/db/68/315701095f25687938ab79d263a6d939337456c2840fe69038fd38000338/pydantic_core-2.50.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:6ffb4dce3ecb2cd563aa30f9eb5088a1cf1f4f688b90cbb374fa96e49fc50b02", size = 2095041, upload-time = "2026-10-29T16:32:59.873Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/4b/efd3abf31aa24bc97b311735f418886f947b4f193df02a1977643963b03e/pydantic_core-2.50.2-cp314-cp314-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:150f6e101f575c21a4ecfed1be1c05bb89a0ad49cb9c846ed377583bd71b32c2", size = 2257635, upload-time = "2026-10-29T16:33:01.096Z" },
+ { url = "https://files.pythonhosted.org/packages/2d/6c/146b36eed4de8115a0fda76840703e75f5f8b36aeb3af86976bf094d1a17/pydantic_core-2.50.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1db9cab6197e797824f0479dd2ae5fd2e272aa61c61b7faa5a6e450ca7a0d3b7", size = 2116807, upload-time = "2026-10-29T16:33:02.692Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/94/db006ea79bbe405cc38b25899319c7d461ff1813cbdfe6aa90a65ed1dfff/pydantic_core-2.50.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:1b9f652e17a13bbc09b45f74c3c326cca72059ce4dcdef687fcb04389db413a9", size = 2201037, upload-time = "2026-10-29T16:33:03.942Z" },
+ { url = "https://files.pythonhosted.org/packages/41/f9/ea2bc1ec13a67af4a63c9a887fa0aa6ef4ade9018e2bb412d4fc80110e19/pydantic_core-2.50.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:823b222c4fc861a82c650998a6117ecbd150cc71bf8b78f9a31bf3f48c456108", size = 2374904, upload-time = "2026-10-29T16:33:05.458Z" },
+ { url = "https://files.pythonhosted.org/packages/44/8e/26a6a075301f0e563646037ea69bef8c63911d38fbd257f94cec69cdf985/pydantic_core-2.50.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:783abdfac21247d33bec40aa683d26bba30d61655c40de38b2decc4797aabf92", size = 2457626, upload-time = "2026-10-29T16:33:07.271Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/a2/8eeabaf1d394f0d3b9a27129ac21556eabee6f2ddcb418069ef4037e00b0/pydantic_core-2.50.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b29b7c5adf4b2be7c941f7f76432aa3269cd5052ff8610376b8ece24d7b02c51", size = 2245505, upload-time = "2026-10-29T16:33:08.824Z" },
+ { url = "https://files.pythonhosted.org/packages/bd/54/449778cd397e2682b30d1bcfab0872f6ac36702b59cc326296b7f4f14928/pydantic_core-2.50.2-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:4ac996e42a93d80122a23edce44e02c6b9c4913f5c6198a077da31475341a39a", size = 2259563, upload-time = "2026-10-29T16:33:10.107Z" },
+ { url = "https://files.pythonhosted.org/packages/26/c2/2f65691d25488ee0f3c17861d079e8ccb7817955522d07cd3c3970d30af5/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:99e1d482138a71902415ba375bb4627679a5fefd3bd07803c3a8f37632f4981d", size = 2290470, upload-time = "2026-10-29T16:33:11.273Z" },
+ { url = "https://files.pythonhosted.org/packages/9f/32/aa7c40234cd24536afa0895ff1d26f9f15638004e25242c5193ce053b96b/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:a53d5f11cd6d15569ba3e53f3498077f0d5e633f6ec604d2ea613e895017ebee", size = 2477272, upload-time = "2026-10-29T16:33:12.771Z" },
+ { url = "https://files.pythonhosted.org/packages/c4/43/c347c68e040cf93d8487a8f4fc28f2768312834c7d21c301538f416f9955/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:23385c4626f8b5a7792aa381ea573d9432cfbf4c21375a0a5eed2a4fb64e0e58", size = 2484352, upload-time = "2026-10-29T16:33:14.485Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/8e/72556126c8b6154fe7acaf757b96b2daa37aeffc3a517deb76e272f5ad09/pydantic_core-2.50.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:9a8a62281fd9c6a373b3fd3d473685e6838d43341eecde5f47729748e2c11ee3", size = 1491226, upload-time = "2026-10-29T16:33:15.603Z" },
+ { url = "https://files.pythonhosted.org/packages/5b/66/004c85511812964a36b3535af022c5c0dfcb760a31e4905b96310e8dd6c8/pydantic_core-2.50.2-cp314-cp314-win32.whl", hash = "sha256:18f008ef58cd30782f81b6e0119e20b7e884edcefbc2d370162ebe033f6e5c99", size = 2113134, upload-time = "2026-10-29T16:33:16.87Z" },
+ { url = "https://files.pythonhosted.org/packages/a3/5f/dcd3df20ab2a7279d42a8415fc184e8e77bcf9aa3c9ac3e938c1300a242c/pydantic_core-2.50.2-cp314-cp314-win_amd64.whl", hash = "sha256:b62c89545d21d930c333208fd548e7b4f262228ba3a322fd75c987a75ab11f31", size = 2253407, upload-time = "2026-10-29T16:33:18.47Z" },
+ { url = "https://files.pythonhosted.org/packages/4e/fb/0685895f5d199b215011dc4eb8ccea032a64ec23dfa88eeb5acca939c2d2/pydantic_core-2.50.2-cp314-cp314-win_arm64.whl", hash = "sha256:6e731bf5a5e8e25398544d7709e39068ec4230b0177e4db7fa955692fd415ba3", size = 2160456, upload-time = "2026-10-29T16:33:19.782Z" },
+ { url = "https://files.pythonhosted.org/packages/84/2f/4c8f67efe62837a508b74cf910904f73029cb211371351c5ceb36d56e85e/pydantic_core-2.50.2-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:33c6800ab9563adaa0d7893e9cd8f5b972ef1e6a23df70498e05c24f3fcec5e1", size = 2217558, upload-time = "2026-10-29T16:33:21.323Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/73/e0ef88cfbcca5409f57751289bc20be63a58af596a36e94b8cd795e59747/pydantic_core-2.50.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f81df206b937d0dca5efb38c25fc99037d82dbcd3740e34c3f81997d2322ac1c", size = 2074335, upload-time = "2026-10-29T16:33:22.658Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/cc/47844a3179ebce27064e13619594b3fc1a9b4509d8dec1e3960c5f87f5bb/pydantic_core-2.50.2-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:21ea3b00f1e87c66f3f9e92f9f6fec20495ac0e60d7d2e68ba1fc49739d7cf40", size = 2264201, upload-time = "2026-10-29T16:33:24.953Z" },
+ { url = "https://files.pythonhosted.org/packages/bc/d1/30e9d3c86d81884ee3199560ddfa2c1a66a8dc0736441748eae43064abbc/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:9eff570402175c7d5fff8497d5a9c05580664a79bb66c07b8f205d17f69e580b", size = 2094353, upload-time = "2026-10-29T16:33:26.739Z" },
+ { url = "https://files.pythonhosted.org/packages/d4/8f/392a5999480d0bcab4539db0dafa93265152396fd63e87be4d24e13d6d82/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:240fec32a74af0979f7253532859b3fd209ad5eea822416bb010929dba445c3d", size = 2203119, upload-time = "2026-10-29T16:33:28.154Z" },
+ { url = "https://files.pythonhosted.org/packages/cb/80/6e4e276a3fde5500224a39150e06a4f134f136165908be69402720718a36/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:92acf02c770b9d5c4e9a3e8d64e9d95ae26456a86ebb7b7cf64a97f899e5871b", size = 2392881, upload-time = "2026-10-29T16:33:29.305Z" },
+ { url = "https://files.pythonhosted.org/packages/70/d5/5eb56c6317ab4abf33ef9519a50bfac0c96f7f408bad1bc36da6f27d43e4/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:1ac5b99bc7b0a68ec64f5f75a6828a7bab5535c8df0cdc07901deb50e0815910", size = 2457290, upload-time = "2026-10-29T16:33:30.587Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/9e/f1fe9384bb37e4e728c51c79151808deacf7b2502e245f50b57c85eeb199/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:713d7c33c0e231e3786eb0ec95885814dd65d5f3a09754399b6acbf5e9365f11", size = 2241568, upload-time = "2026-10-29T16:33:32.04Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/f1/cffc4f8456c35690bcb65a8f2304afbf2f519766345a28aba553d5a55cc8/pydantic_core-2.50.2-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:61e13100b30d8d25fc0d1f0297014b32941bf0975a3584bd08f3adebb68d1ead", size = 2257185, upload-time = "2026-10-29T16:33:33.36Z" },
+ { url = "https://files.pythonhosted.org/packages/84/34/ccd4df1cc39cb1e42fb7ec86a0dc0a23e8479de04d3012ca6b0bf2279a03/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:523fe6574aea50f456cbc301c1cdddcbf237939f7657f9af99b4f0f71942b59c", size = 2299384, upload-time = "2026-10-29T16:33:34.799Z" },
+ { url = "https://files.pythonhosted.org/packages/83/60/404b4b0c416a61867ee642cdc1450bca4d8a9a10e5f5f21e1ecaad05fdc8/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:6c25b8826be85714b27dafe908d3461e1b09e3e31c0279a7029040c832c781ef", size = 2479384, upload-time = "2026-10-29T16:33:36.106Z" },
+ { url = "https://files.pythonhosted.org/packages/ca/0d/57c81418a2fdfde0578c71396df773965adebd4421d9985a0f8dcbe9ec4d/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:a59db03b80a156a6fbeae41096866d1cb89cdf31031ba44c768a804538880636", size = 2504616, upload-time = "2026-10-29T16:33:37.423Z" },
+ { url = "https://files.pythonhosted.org/packages/08/66/dec78e28a604f3f4985f5a795d4da3e5fef78b0921aeb7f614ed7c780a32/pydantic_core-2.50.2-cp314-cp314t-win32.whl", hash = "sha256:0d090ae76d5b09c003600c7779b3adcf3d1b49268f616c5c51d844e54c8e318d", size = 2093179, upload-time = "2026-10-29T16:33:38.705Z" },
+ { url = "https://files.pythonhosted.org/packages/d2/ea/79d9ee60648463804145d44b08f1e7e2474427d9704e3331d814483908b3/pydantic_core-2.50.2-cp314-cp314t-win_amd64.whl", hash = "sha256:9b01a092955c1c7530196ad526755cff4f2d11f37ca9a6fc9ebe37ca49a48977", size = 2220575, upload-time = "2026-10-29T16:33:39.929Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/01/aa6a7bd017c3228a41942da4fd788b86fb4aad9677212a4737a0c157fe74/pydantic_core-2.50.2-cp314-cp314t-win_arm64.whl", hash = "sha256:4ea01f30e119f1ec7a2034e85c40f491d469896aef02cd6436fd9292fe1be3fb", size = 2160866, upload-time = "2026-10-29T16:33:41.237Z" },
+ { url = "https://files.pythonhosted.org/packages/4b/7f/ec2974015b4be5e50266ce732b8942d3d0b3bff751ace8900999c6577bce/pydantic_core-2.50.2-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:a3317630e2791f56071b82f89bb71624146125e4311e6643f708c6ba744b5ac5", size = 2230936, upload-time = "2026-10-29T16:33:43.656Z" },
+ { url = "https://files.pythonhosted.org/packages/ae/ff/af99a09eddc348c1d0744c0df28dfcd4839ca497067f0fa2168208b41b1b/pydantic_core-2.50.2-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:f73930dacad5e611fe019e18df6f53c30629b1843d038d303b8dec86a32493bd", size = 2100409, upload-time = "2026-10-29T16:33:44.946Z" },
+ { url = "https://files.pythonhosted.org/packages/84/75/8db3c46f02d6005277e5c2ff5933c85e7e1eb8798aa334c676c828650c3f/pydantic_core-2.50.2-cp315-cp315-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:e2e6240a0a5ad847017b3d65187877fdb7a11d5a58d43c30736f9f523478913b", size = 2259728, upload-time = "2026-10-29T16:33:46.461Z" },
+ { url = "https://files.pythonhosted.org/packages/ee/9d/98c8d524921ca24e5c8a81a4b8f12209ac6ab05d0dd58b374e357da0ffc5/pydantic_core-2.50.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1fdf5b52ed22f1404c2433d0b46df2d86d9befb742d0b9b4042a2325c43cdb97", size = 2121771, upload-time = "2026-10-29T16:33:47.952Z" },
+ { url = "https://files.pythonhosted.org/packages/c4/ea/68c3b1fa919946012c940dea88e94e33e7dde46abe3e3d57053793c9bab8/pydantic_core-2.50.2-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:4e9392ddf67fe97ab9889f796d468c9908a8754b8b6c7520eb03a65012b9a1e7", size = 2196328, upload-time = "2026-10-29T16:33:49.131Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/9b/cfb6312a5b65b02eab6bc00fb0d258d0e2e49468dab29b430e7cb49b2ceb/pydantic_core-2.50.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:48e944091b7bff233920bed8a60b0ed6c96c73d3c5836bf51c4b9a4bfb58e4ca", size = 2380152, upload-time = "2026-10-29T16:33:50.503Z" },
+ { url = "https://files.pythonhosted.org/packages/41/5a/7fcced1d84ea294200abfa93e488f36d00732101d17bf5e1f1389e66de26/pydantic_core-2.50.2-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:91c92856b846aa690ea6239ffd6c5003c5e3e296a69095570bf4efee5bfa0bdc", size = 2462299, upload-time = "2026-10-29T16:33:51.884Z" },
+ { url = "https://files.pythonhosted.org/packages/e6/d0/dd0e355694094f0045922f4da60ac9bc7a314babc494e46089fb00640fd3/pydantic_core-2.50.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5299296ff5cafcb69851fd652de8f9268a0bb036bcbedbfcaa94cf743baf3986", size = 2249999, upload-time = "2026-10-29T16:33:53.333Z" },
+ { url = "https://files.pythonhosted.org/packages/3a/79/f5f4b36434604d22aacb7152667f87a470e68847c89b136c68a278cf409d/pydantic_core-2.50.2-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:d3d049b557875f9d15230eec8a731749a7a873d8ed6a051903b05bdf46e0e65f", size = 2262745, upload-time = "2026-10-29T16:33:54.79Z" },
+ { url = "https://files.pythonhosted.org/packages/14/21/a4c47a286745857758a4bb8d4d5e260c736a7bd6fab5da618f5711d1a3f1/pydantic_core-2.50.2-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:b0b25d647036972c2951059046cb498f72b7af5a2def27bf8e5f44c3067ab7dd", size = 2293663, upload-time = "2026-10-29T16:33:56.132Z" },
+ { url = "https://files.pythonhosted.org/packages/0d/db/25330e609fd219ce16d0a089af1b4b62095f01595dbe6972f7a7dfc313b9/pydantic_core-2.50.2-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:8835566b3e94026da3ce2249f9ee35c9d2ebe4cd131f6a39bfc82708d3010a46", size = 2473247, upload-time = "2026-10-29T16:33:57.607Z" },
+ { url = "https://files.pythonhosted.org/packages/53/16/704ca88b82156dc485da2dfb11d5d52a10b9ef15a294639c0aa5ebd1643e/pydantic_core-2.50.2-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:3fbcd402e4b607d4b8de5d4591215f31f042af03f9d09e58f693a6221e32833f", size = 2490536, upload-time = "2026-10-29T16:33:59.297Z" },
+ { url = "https://files.pythonhosted.org/packages/50/34/1fdd0eebee9f8b6c4ec3c2490f49dc59a652c8c5a7fa0cbcaada0d91cda9/pydantic_core-2.50.2-cp315-cp315-win32.whl", hash = "sha256:8431ecb131489cbdaf6f51f7ade47475f73aff4f1912552f75ba19a6cfe233a8", size = 2117204, upload-time = "2026-10-29T16:34:00.514Z" },
+ { url = "https://files.pythonhosted.org/packages/24/6b/702adc91486fb96ba55675d58ee15ddc38fb48553fb35e26fd005e303206/pydantic_core-2.50.2-cp315-cp315-win_amd64.whl", hash = "sha256:04cf672960b8c4fc28bb159c8cdd101fbd311c520237a5c0360448b851adfb41", size = 2261064, upload-time = "2026-10-29T16:34:01.773Z" },
+ { url = "https://files.pythonhosted.org/packages/36/0d/7f117432b8614526aa0d96fadd2b7fb7393156ddf2caf26a6fe606e6cfb6/pydantic_core-2.50.2-cp315-cp315-win_arm64.whl", hash = "sha256:36917e29c0b815d6b940bc91560fcf453b5b85d55c579796373f0ea11d1c111a", size = 2161783, upload-time = "2026-10-29T16:34:02.966Z" },
+ { url = "https://files.pythonhosted.org/packages/45/1c/2ba7a34fe8da4c83ec200fb9f85ab4d54b961be08367922743623f987849/pydantic_core-2.50.2-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:bd1fe69056a19c377a6c6de2c1240fb8676ba0512a969965efb486510c5e0f1f", size = 2223184, upload-time = "2026-10-29T16:34:04.214Z" },
+ { url = "https://files.pythonhosted.org/packages/47/01/f71a8da1f53a5be1787d2a97ba6fd9adba115305c7f15ea0bf733ed8336c/pydantic_core-2.50.2-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:9b2383933b1dd7a8c93e02f99ebfd305f1286057172483b8e6898bed3fef69d3", size = 2078174, upload-time = "2026-10-29T16:34:05.426Z" },
+ { url = "https://files.pythonhosted.org/packages/f6/0a/847e1f5427372692f6eb5c38261fed6b8cedf379e37d9f6134d48b9c8ee9/pydantic_core-2.50.2-cp315-cp315t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:a1b4d60bad57d6e0e7cd30cc4d1dc646d258dd6dfb7935ce76c7dd72dd1e98b0", size = 2268813, upload-time = "2026-10-29T16:34:06.733Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/bb/12966dc82b5e9c347981658b52e24349b6242902b644725c00ee7bdf4267/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:93bedc68c4138088ea3c042189c01d2945f530f0dcc36e1ea02df8418bd4f1cd", size = 2098331, upload-time = "2026-10-29T16:34:08.69Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/fe/340416b7ebe664524e7ada16ad2e3e069888b168010d75bda6a502bf2bf8/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:d684ff87d00de2f6abcbbfa9b0fdce8b513dd799a900809dcfa7eb62ad69832a", size = 2197432, upload-time = "2026-10-29T16:34:10.091Z" },
+ { url = "https://files.pythonhosted.org/packages/c9/4d/425162c3d88af0d190c4dc4f940402cc6dd44d934359a37f50da6b7e4672/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:bb6d49f00e2babd40af4889d6b9f4bf50879f522dd4e2e22cb705cac5e0c5e8e", size = 2399300, upload-time = "2026-10-29T16:34:11.462Z" },
+ { url = "https://files.pythonhosted.org/packages/2b/fe/2882bddf2e2038c8f41fa69f16ddeb6eeb1c002cc0cc0eb2157f73bb34e9/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:6d47b2d0e00e030e0ebdb08115a37da7294e7a6d196d134a77ed7ee6c142284b", size = 2462672, upload-time = "2026-10-29T16:34:12.79Z" },
+ { url = "https://files.pythonhosted.org/packages/6e/ac/d7e6bfc6a95573647d1a699e19228dd99914ae6aab79a2bec293a038e980/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:95838be125133fa314753f8cc5168f7c41e3a9dd5eef5383dbbbeed511bd4853", size = 2246293, upload-time = "2026-10-29T16:34:14.065Z" },
+ { url = "https://files.pythonhosted.org/packages/74/64/97473ccaeb4ae5eb338162bd8479af121484e67f7078499730e3ee0a5592/pydantic_core-2.50.2-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:2d4a043c820363359e40ac96270e1915e5376e116be1f59cee0701775de3e376", size = 2259507, upload-time = "2026-10-29T16:34:15.391Z" },
+ { url = "https://files.pythonhosted.org/packages/48/15/78a9b7a6a0d0679ce1e46cdd38ff95afd18dd2d6a01ed87c80a01bc003f7/pydantic_core-2.50.2-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:57bccd3e1128736c792094da1feac6da46ec3feb1957ef649a9b3e4f8de6fa04", size = 2303550, upload-time = "2026-10-29T16:34:17.162Z" },
+ { url = "https://files.pythonhosted.org/packages/39/ba/b697173f82e99cdcf5ec6654b2edb66a00f2f92ef9d9a168861fca3fcded/pydantic_core-2.50.2-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:24120c644322a35b5eb765416ac8442214c45689e255f5fc6e761e7e7c743c8b", size = 2474919, upload-time = "2026-10-29T16:34:18.841Z" },
+ { url = "https://files.pythonhosted.org/packages/71/10/986be76723784ae87f9664658fae39df340eaa21681cea95b6339d2e1b3e/pydantic_core-2.50.2-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:b1adf2f37521b578c438f6ec61d1c1d0c20b076863ddd5d8b6f3ab658857db3f", size = 2509095, upload-time = "2026-10-29T16:34:20.16Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/0b/38dbd38c67de7642f87348da70122b89ca4c5fe8227cfdd5cc00c1cdb454/pydantic_core-2.50.2-cp315-cp315t-win32.whl", hash = "sha256:d79aaa468193c1bed6b0560d3c5c9f9e369e3efb0b128b38a2537e2d51d42773", size = 2096972, upload-time = "2026-10-29T16:34:21.715Z" },
+ { url = "https://files.pythonhosted.org/packages/7a/df/154baf8413b08d6daf2f5dec211c303ec6bed50c032717f354f8dd85c994/pydantic_core-2.50.2-cp315-cp315t-win_amd64.whl", hash = "sha256:cc488daac19e6f5292180fac5e0ef7efffabeef4e096af9a17a75a7d3d6781f6", size = 2226659, upload-time = "2026-10-29T16:34:23.177Z" },
+ { url = "https://files.pythonhosted.org/packages/b5/17/eea7a1e7d98a79ef11b6d31748b70c58f8723f87d7ee42edbb6a101f6245/pydantic_core-2.50.2-cp315-cp315t-win_arm64.whl", hash = "sha256:91315aea7adb51821d4a3378ede953bfdd76e3bf71551de4a82d7638cef7dc02", size = 2166387, upload-time = "2026-10-29T16:34:24.433Z" },
]
[[package]]
@@ -1153,7 +1157,7 @@ wheels = [
[[package]]
name = "pydantic-settings"
-version = "2.16.1"
+version = "2.16.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pydantic" },
@@ -1161,9 +1165,9 @@ dependencies = [
{ name = "typing-extensions" },
{ name = "typing-inspection" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/05/ca/7817b4bf0c4b15c6a6ab8cdf4cb96c268335a8ca2f525de93b6ebe4c7d28/pydantic_settings-2.16.1.tar.gz", hash = "sha256:aff602a1886338c2df3d1e958e2193a8dc33cec75b91f202e83fd98484b4b0da", size = 303436, upload-time = "2026-10-20T11:37:19.024Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/d0/31/21d21e0e38a8f5f7a7f0cde22820117b6d17d6bc36f348129527f915d7f4/pydantic_settings-2.16.2.tar.gz", hash = "sha256:3dc08ffabed2bbd5dc2dd55ead7b78b4e4c5cd776aecd04310db5f1224caaf46", size = 309225, upload-time = "2026-10-28T11:14:28.066Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/3c/74/fdf926afe145d8629c4b2ff57f4ea1d64ed7abc4d84d97463b2517a2547e/pydantic_settings-2.16.1-py3-none-any.whl", hash = "sha256:30f5313340da4e8f1b440d1910b92a5bc3ccbb6b4ba70ec2b8395bc921f418f5", size = 80771, upload-time = "2026-10-20T11:37:17.298Z" },
+ { url = "https://files.pythonhosted.org/packages/39/88/4131c51ff87b7cd7f82a1194d0c0a2b7ca68c72d9da04c3b7e69ab91a79f/pydantic_settings-2.16.2-py3-none-any.whl", hash = "sha256:8d523e5c129b097686bde019bd6109bff53f4c8c3f63f1ddf9933ffa42e5ab4f", size = 81994, upload-time = "2026-10-28T11:14:26.716Z" },
]
[[package]]
@@ -1510,11 +1514,11 @@ wheels = [
[[package]]
name = "tzdata"
-version = "2026.5"
+version = "2026.6"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/d9/68/f1b440335057bfce71b6e50a9d09445aa2ecbd08359a337976627b8409e7/tzdata-2026.5.tar.gz", hash = "sha256:8cc73c0a0bfca7dbfa59235d60b2eff82231dee33f53d206db1acd9173cfc0a7", size = 200404, upload-time = "2026-10-03T09:23:14.143Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/7a/29/6a1391d31cd00ff9e927215a224a880e1e84e826b64ba80a499e51c074d8/tzdata-2026.6.tar.gz", hash = "sha256:85d2cd9c09f81f0bb29db27759fc83af4f1e620efb814f8c5bf8b4cc4feece6d", size = 201017, upload-time = "2026-10-28T09:57:09.137Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/94/21/1e5995a1c920cce14e4bffae20c665ec10e7ed03ab25e006cd741092b718/tzdata-2026.5-py2.py3-none-any.whl", hash = "sha256:b683bd1b6659ddcd810ff02ad09ba821d4bf1065072805063eb35c49617905ac", size = 347996, upload-time = "2026-10-03T09:23:12.535Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/66/9a06c2227fedfd4919f0eaaa8b94377d9730882a7e4f95823c9a331ab5e1/tzdata-2026.6-py2.py3-none-any.whl", hash = "sha256:0a10eec6e13ef16b627fabed9a5f2ba61a62b1c67f327305f4e7e412a70b4aec", size = 348210, upload-time = "2026-10-28T09:57:07.276Z" },
]
[[package]]
diff --git a/uv.lock b/uv.lock
index 74053da5e..08a1219e0 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1091,14 +1091,14 @@ wheels = [
[[package]]
name = "opentelemetry-api"
-version = "1.45.1"
+version = "1.45.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/2e/02/6e0ae9cc61bd3169d401077b507b3ebc344745171e1051ab430be012dcd9/opentelemetry_api-1.45.1.tar.gz", hash = "sha256:aa38ed19bcc084ba42782a73255b3582283eced7ad6dddbd6695189e69adfb75", size = 72804, upload-time = "2026-10-06T17:32:58.133Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/19/14/cf3a6b6448849656e1e5f4e2101f3988dc6789724050096aba1bc5ccf592/opentelemetry_api-1.45.2.tar.gz", hash = "sha256:d7b0008e21e5fd61cbe7a7f34ca3b6905a78ab677d9bc395e299359c75cda6b4", size = 73277, upload-time = "2026-10-29T17:29:37.888Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/1e/41/f7dcf80b81ee8e71c1a2b59f14208bc723edbd89ed027a73b175abf6348e/opentelemetry_api-1.45.1-py3-none-any.whl", hash = "sha256:b31553efa588ae44bc306f863c785c5333a9ecc091248c6ee68b4b6c87fdedfb", size = 60256, upload-time = "2026-10-06T17:32:33.506Z" },
+ { url = "https://files.pythonhosted.org/packages/a9/2d/610db864d7513158cebb8f36cc88e67e73bd6c7aa1905ef18d89e1281c81/opentelemetry_api-1.45.2-py3-none-any.whl", hash = "sha256:2cbd737377e710ee740d261c94e93fa0f08e6d037c18f17513cc0a2d94479a34", size = 60335, upload-time = "2026-10-29T17:29:06.955Z" },
]
[[package]]
@@ -1316,7 +1316,7 @@ requires-dist = [
{ name = "protobuf", specifier = "==7.36.2" },
{ name = "psutil", marker = "extra == 'dev'", specifier = "==7.2.2" },
{ name = "pyahocorasick", specifier = "==2.3.1" },
- { name = "pydantic", specifier = "==2.14.1" },
+ { name = "pydantic", specifier = "==2.14.2" },
{ name = "pyinstaller", marker = "extra == 'build'", specifier = "==6.22.3" },
{ name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin' and extra == 'macos'", specifier = "==12.2.2" },
{ name = "pystray", specifier = "==0.19.5" },
@@ -1571,7 +1571,7 @@ wheels = [
[[package]]
name = "pydantic"
-version = "2.14.1"
+version = "2.14.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "annotated-types" },
@@ -1579,81 +1579,81 @@ dependencies = [
{ name = "typing-extensions" },
{ name = "typing-inspection" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/7c/0b/8e10b2e693af8ec54346a14caf36221334775975a747c9ceaa3f8371d96d/pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26", size = 900362, upload-time = "2026-10-11T18:37:55.396Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/9f/d5/b4867fa7c7f04c34997d7d8aad744f64d210bb99d67cf18bf3fb1eea1aed/pydantic-2.14.2.tar.gz", hash = "sha256:fb7b2db6cefe8414dd612edeede49c4c433acb0432b0f92b95024e45f66c505d", size = 911596, upload-time = "2026-10-29T16:37:12.476Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/35/ea/a56b9fe5066f3537b7882f77e9c5dfb26d8c2eefdaed9b5fc73d57b4dc22/pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454", size = 488106, upload-time = "2026-10-11T18:37:53.437Z" },
+ { url = "https://files.pythonhosted.org/packages/97/01/c71a71258b58659c72504e5fd65b451f6e36e34dc931d0b237ded213c814/pydantic-2.14.2-py3-none-any.whl", hash = "sha256:7efbf7507b937931cd32a5755acb00ea1cf5ccb1d4e8067a5850d5069e382118", size = 490403, upload-time = "2026-10-29T16:37:10.181Z" },
]
[[package]]
name = "pydantic-core"
-version = "2.50.1"
+version = "2.50.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/a6/24/af4ec4be49fbc810f35b0bdcacc3d433b56bbfa469fd3bfd4ae116cd9bf1/pydantic_core-2.50.1.tar.gz", hash = "sha256:e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09", size = 513515, upload-time = "2026-10-11T18:35:44.82Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/49/33/28b96e81677153715e3eafb9f26663a80841e859fde282a380359b0d3fa1/pydantic_core-2.50.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:1cf41f1ae3fa155cf167a72689ad044bcc1e3c97e064123677149bdfb5dafc4a", size = 2224428, upload-time = "2026-10-11T18:33:07.153Z" },
- { url = "https://files.pythonhosted.org/packages/94/40/15c06410c9b7b8da5805d27b64e09bd3f900e986728106db2689dbc51513/pydantic_core-2.50.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4df197990c15b5a37c5a277d131d9f2c67de6133f2e5dafd80d9bba4b99f46f9", size = 2023740, upload-time = "2026-10-11T18:33:08.763Z" },
- { url = "https://files.pythonhosted.org/packages/a1/4e/5eb629f6efc2a27e421d789dd4bfacbb5f6d09c80c28b13d1e87d73163d5/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0036473f5583e6a60e50b8b21651511564277a3f05cc5dab8cf579f552cd5f6c", size = 2049435, upload-time = "2026-10-11T18:33:10.366Z" },
- { url = "https://files.pythonhosted.org/packages/ba/8e/f195aebec49ad12318876ac2368c197a7939f5d52f8e156d2238ef8a4588/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:992c3514ec891fa7858099183e4d64e6bd5a5d4ff452fae29df22faa77a006bb", size = 2172975, upload-time = "2026-10-11T18:33:12.368Z" },
- { url = "https://files.pythonhosted.org/packages/e0/f5/7ad9fb83010cd5ea0948409db105676ed779c4e709e2d3d89b9fe2558794/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:739dc730e6be3bd5ec2f4ab5cfc7eb047cc45fc1497b3bafec74ff2ed07df597", size = 2364197, upload-time = "2026-10-11T18:33:14.244Z" },
- { url = "https://files.pythonhosted.org/packages/ca/fb/bf0aab3e78301d202b82a0322ec968cd703b11fc0623fde9a28708936f62/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:32fad3a91e51b6d2039c572db04a5a873260b399f6bd62c3552671fa7a4a2899", size = 2444259, upload-time = "2026-10-11T18:33:15.79Z" },
- { url = "https://files.pythonhosted.org/packages/45/35/38f6d6564fae57d9b12e5676dfa947e0e7d5c46dbeaa7eb3352261d6d299/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42b54c2c90ad348b5e3a85e03e715d572c1fde357ef104cdfe3b03b697a404ea", size = 2159857, upload-time = "2026-10-11T18:33:17.51Z" },
- { url = "https://files.pythonhosted.org/packages/65/a0/fb0a3ca10f139dcf765b2d312d10cf0f65c57c59993229d00ad12b14ceff/pydantic_core-2.50.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:2df1ff41884de2bc4b307bafd7c40a691094fad2ff8e767e5b45a319257bcf4e", size = 2233954, upload-time = "2026-10-11T18:33:19.591Z" },
- { url = "https://files.pythonhosted.org/packages/8c/6a/e63842252702aa4ec6e6b7178ca85e541a77459076592c23ebe2d9840b33/pydantic_core-2.50.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe90228920fd8ff2be62622b6bb8a2b11acd65046d50c6b130614b5879605a20", size = 2243876, upload-time = "2026-10-11T18:33:21.393Z" },
- { url = "https://files.pythonhosted.org/packages/39/25/5991cf8318b37e0dfab47b87541619a1df8501a793cba0d978846cba37a7/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:844b869f118e22a41a091bdcedda8a71bc1b0f62c38d1a0c3211cece47e1d8fc", size = 2277908, upload-time = "2026-10-11T18:33:23.324Z" },
- { url = "https://files.pythonhosted.org/packages/a7/3e/3ee8baaa6cc25a6961c69168cf9ff0f002d56f4e0d541ad6724c18fb61f3/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:2eb75304506894a281d346220a4f7481a1b8729577c5ed2a05395991966a8396", size = 2449285, upload-time = "2026-10-11T18:33:24.942Z" },
- { url = "https://files.pythonhosted.org/packages/c0/c7/acbec6deac13fe697a80c275a9b6661db62c4d323bac8a47347b1f39c7cd/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6b20a4bffabdad0db2927ac034ae3b8a681b1f7a0182f3e60b479ad2fde21ebb", size = 2479013, upload-time = "2026-10-11T18:33:26.925Z" },
- { url = "https://files.pythonhosted.org/packages/10/08/21a3f237b264389f6219d053ee78fc1b5c2fd402c1b1cb2b6cb8b85f9834/pydantic_core-2.50.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:99ba9bc2b8062ea0c326a990f7f00e6530c23579de66dd246e72c4cafef950a5", size = 1484400, upload-time = "2026-10-11T18:33:28.693Z" },
- { url = "https://files.pythonhosted.org/packages/09/ce/077a6d262d12ef09108377ac0717f029f420d773ace63cafd6143af75568/pydantic_core-2.50.1-cp314-cp314-win32.whl", hash = "sha256:cf356f70551d40374eaffb1aa63f1eb6d2006681cbd7a9faea173ce0f4dd7cd2", size = 2103222, upload-time = "2026-10-11T18:33:30.326Z" },
- { url = "https://files.pythonhosted.org/packages/14/4c/350a2415209c43d670eb71d3c040f332c04a30583d39e311b05c7ac15762/pydantic_core-2.50.1-cp314-cp314-win_amd64.whl", hash = "sha256:d32f3acc081cc3923386d88f422cde8892335e95f034e0104bb4cf9310d9915f", size = 2171586, upload-time = "2026-10-11T18:33:32.139Z" },
- { url = "https://files.pythonhosted.org/packages/bf/92/9bea6ca96580a0902fed366f064f0829e404f41889b34543279a1162b888/pydantic_core-2.50.1-cp314-cp314-win_arm64.whl", hash = "sha256:bed5163e03b98bc1fa2eb05d74c63d9c5c95d8ed6254985481640fbf5e237dea", size = 2155773, upload-time = "2026-10-11T18:33:33.896Z" },
- { url = "https://files.pythonhosted.org/packages/86/8c/f121f073cf32bdd5cba7e6230b1ce0ac845b0cf43e44dd597d95af272db2/pydantic_core-2.50.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:9572c1369e9c9da2d64a7b7992c786d90ff295abc93964cfe3125e4290768070", size = 2234017, upload-time = "2026-10-11T18:33:35.588Z" },
- { url = "https://files.pythonhosted.org/packages/a4/69/2bb2bcd6146cffe98d760a46c42ae71efd5151d9b2f9c9bf6619a3b32083/pydantic_core-2.50.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2005207aafe1231315718bf6ed5d064a7300fb4772754af35ee72fc68159492e", size = 2001016, upload-time = "2026-10-11T18:33:37.57Z" },
- { url = "https://files.pythonhosted.org/packages/20/b3/fbf854c7d07ec114260c26e9e2071a4381740f9ae09641dbfcbdf2a18c45/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64f6047f62a6c5ae08d0a6afb035667aa2d97c3d20d69762e034c5ea144d92a5", size = 2023015, upload-time = "2026-10-11T18:33:39.433Z" },
- { url = "https://files.pythonhosted.org/packages/65/20/6de55b2f92cdb614b745c6e9ced639fc4fd7e1e77604825a88bdece6fcbd/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ef800dd7d85bcdadf4c3076e4c94e43939493558a3b69a1ea830c706d4617bb", size = 2192543, upload-time = "2026-10-11T18:33:41.381Z" },
- { url = "https://files.pythonhosted.org/packages/0c/d9/19e91c94bd5c405945ce2f15526808aea37e162c253160de8ed7bf70b406/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b0135bcdcaa0f23573f286e4cb5e0fd2962700964ed13df085b85f2b97aeab9e", size = 2388704, upload-time = "2026-10-11T18:33:43.167Z" },
- { url = "https://files.pythonhosted.org/packages/b6/bc/2e24c8415eae1a25ee5a5484946a917123bad2e9d01689a759236928175a/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0b3a6f334c6a2345ca15318ff894502a90012536404b37c844a976c76c846e0b", size = 2464118, upload-time = "2026-10-11T18:33:44.856Z" },
- { url = "https://files.pythonhosted.org/packages/bd/1f/945b8053cb061c64e102bcaf7bfb9ed740c0bd4349f9bb978a7d4ddff4ab/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06e01fbbfdb9be777b316a71b6c49efaf4a08b615d0a98d678cda3023f79d019", size = 2150142, upload-time = "2026-10-11T18:33:46.661Z" },
- { url = "https://files.pythonhosted.org/packages/2b/78/96a3e50bf0d64aaae781107eb9335b7529d05a85793ed6e7241c4cd1d931/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a29a061fec0b4e2d714f277e70a3a18125ecff803f2fea6eade2f2e53711d112", size = 2245577, upload-time = "2026-10-11T18:33:48.574Z" },
- { url = "https://files.pythonhosted.org/packages/7a/5d/a6038a0322232758a6ebfa709f4ca14a60bf5b93940cd0b345056a557da4/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f5187624823423e1d1b82b1072ac41dc837389e18d3d0572cc19bbee46cd550a", size = 2263728, upload-time = "2026-10-11T18:33:50.527Z" },
- { url = "https://files.pythonhosted.org/packages/0d/4b/76ded3333a457a9344c4f2d63f2d82d0101654b05178fa4ddfe7d3627674/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3e46a9eb0a0901dd6275e6b06ac3a464885ef350ec4121fe486869de8053e4bb", size = 2293630, upload-time = "2026-10-11T18:33:52.362Z" },
- { url = "https://files.pythonhosted.org/packages/a9/00/9eca378335c9c1b72bc779bf6e4c2a82ce784f14ec48a0e87102c9870e05/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:756d669f04e62ec4148ecfe22be6a4484d9b1181a6ef32e205ebfd200540858b", size = 2468048, upload-time = "2026-10-11T18:33:54.118Z" },
- { url = "https://files.pythonhosted.org/packages/35/ca/e3832e9cf93651251de43c8c5c029ed680a3c1a0a1b17ee26c81bed08cbd/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:c516cc5367ca3448995d42cb994bf3f4c9002d2a7c22eac9622551269ad1b807", size = 2512159, upload-time = "2026-10-11T18:33:55.99Z" },
- { url = "https://files.pythonhosted.org/packages/4b/f2/773469b5a10a39116a2cb17edaf6d722f017dd8da07161b371465311c542/pydantic_core-2.50.1-cp314-cp314t-win32.whl", hash = "sha256:9d1bed94af6a63835461f3cf7502058eb166c58c4778e11d0f433cfb1bd69e19", size = 2098406, upload-time = "2026-10-11T18:33:58.043Z" },
- { url = "https://files.pythonhosted.org/packages/ee/42/0bb74f8f25204b259b11ab7c12dc7f180893b6bd706118b385147fb6efd5/pydantic_core-2.50.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c8dce1f1e0e5358b682a6ad3fa5e31b31d4560997b8e61417e9217c8d60f8a0c", size = 2148481, upload-time = "2026-10-11T18:33:59.913Z" },
- { url = "https://files.pythonhosted.org/packages/47/0d/d801646c9679a4e630e15cf521d4108b93854b42a6e6e02391bd4c6b1095/pydantic_core-2.50.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ceff0acc940be2715bd6ad17b24c0e5304abf44f6efd0f81ee8499e640f9dc86", size = 2174972, upload-time = "2026-10-11T18:34:01.875Z" },
- { url = "https://files.pythonhosted.org/packages/b2/84/23984b763d8862a02a13d27a44b6e8169428fd85ecfed88f54c29108604d/pydantic_core-2.50.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:8a6791afa2245e6c6b180122d105941644f5bd410bb18623b408808cc41a3102", size = 2224599, upload-time = "2026-10-11T18:34:04.016Z" },
- { url = "https://files.pythonhosted.org/packages/4d/90/a63cf8586abc1d1a3f6d9b18f0224789ebf003851f092ebda3c7c863fd32/pydantic_core-2.50.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:84f34323a61a365b4e9295de6028474754829aaddd59c7bf1a040e7487ef8f3c", size = 2024191, upload-time = "2026-10-11T18:34:05.901Z" },
- { url = "https://files.pythonhosted.org/packages/a6/6a/f34bff9808ffb4907fbf5f5040457d253cacf2da7fce9efbc99ca1b1a44d/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23edad659e8dbd8ca7e4e877fe6c81573abbdf215bd25a68b53e1272f58b80c7", size = 2048252, upload-time = "2026-10-11T18:34:07.757Z" },
- { url = "https://files.pythonhosted.org/packages/b2/54/13f419bf1eb59852003818e25935aaf175687d978f4c4bca70e08fe40a3b/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a5fce22f1e87d181e924e12da7d81cfe031fb3881a5ddf26ad28f141756ca43", size = 2173376, upload-time = "2026-10-11T18:34:09.592Z" },
- { url = "https://files.pythonhosted.org/packages/6d/6c/b5a34d24cd0c81669d8f8339d74e6815abcf2f8fb48ab4b49b84c09be1d5/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c73622ef819328873b53109ee4f77ceb598bffedd02daf916102be3228866b78", size = 2364559, upload-time = "2026-10-11T18:34:11.534Z" },
- { url = "https://files.pythonhosted.org/packages/eb/8d/d64d6216a8df365082665927ff923f183056f9049fee08e9777c9ac05296/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ce8c25ca38cc0e3d7753ba180808de2c0c8cb24eae0df64491e40921454e9831", size = 2444697, upload-time = "2026-10-11T18:34:13.535Z" },
- { url = "https://files.pythonhosted.org/packages/b8/0d/1b1149f60a00ea21ba5f70e28acbd40feb4598af414f80f53c921fac07c9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7689580e72a642ab5ec64d5f55b2e33636fa43b4ebe63c0c2c965ef307c7d1aa", size = 2159961, upload-time = "2026-10-11T18:34:15.56Z" },
- { url = "https://files.pythonhosted.org/packages/1e/35/f236549299dcc78e71e945495d7ec67e78d20844d0999c60601685003031/pydantic_core-2.50.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:d5c0e32fdbce7f1e8ef4d11f655694bf5f4175c757a9f1dc2be09b8864e5bcf5", size = 2234581, upload-time = "2026-10-11T18:34:17.502Z" },
- { url = "https://files.pythonhosted.org/packages/6a/85/26901a490522b7f75ef9bb9a7afb73e5bb550f0e1cb5b99a0069183e2eb9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:40f523349960fa30f3ea51404308ff50f9997a90df639590f47a057c1f32b415", size = 2244090, upload-time = "2026-10-11T18:34:19.402Z" },
- { url = "https://files.pythonhosted.org/packages/ca/2c/481bcfc70ceeb77a778ca6e5b705fe592cb64735c108157f81b7dd9c280e/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:d4193206b6587047437f6f11d7e776df23e1c1e23af2a54d9347275614791e10", size = 2277948, upload-time = "2026-10-11T18:34:21.317Z" },
- { url = "https://files.pythonhosted.org/packages/24/eb/f1e09333faa7ba447cde967310f758430cc7c5e987bdab5228816c70030d/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:84bc765b282a9d5b7fe0348b8648904f25a6a04b2139da52b1dd30c8ac3a2c8f", size = 2449688, upload-time = "2026-10-11T18:34:23.321Z" },
- { url = "https://files.pythonhosted.org/packages/d1/b3/036bde636db8f76d92996e81aefc75678ab5cec4a07eea1ad0c72a893fc3/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:ed1e728b39a383c81035b2459cfcb35d99dfb01f7d6ebe3a913bc1cc5b81e459", size = 2479286, upload-time = "2026-10-11T18:34:25.214Z" },
- { url = "https://files.pythonhosted.org/packages/d0/a3/07f018294ee18d144afeb6df1a47d9e92960f014be45c5ed13519fa5af95/pydantic_core-2.50.1-cp315-cp315-win32.whl", hash = "sha256:bc94f474417604bd383d2cd445d071b07dd55fedceed3ce33407bf1fcc107290", size = 2103683, upload-time = "2026-10-11T18:34:27.42Z" },
- { url = "https://files.pythonhosted.org/packages/5f/98/f9bd7e1f9b6709f155acb9ef826d9c3884fe925f811fd8e55b9b52280bad/pydantic_core-2.50.1-cp315-cp315-win_amd64.whl", hash = "sha256:983a662de2571cb2502fc8ff47b6770b03d025d2eb314c92f77b3f07c74720ed", size = 2171681, upload-time = "2026-10-11T18:34:29.508Z" },
- { url = "https://files.pythonhosted.org/packages/10/87/4bb3e1e7f385c076ab5af4d6dd0571b22042cd8207eb810d5b9fef15ae31/pydantic_core-2.50.1-cp315-cp315-win_arm64.whl", hash = "sha256:94845ff54dc5193f228cab81b2662a04bfbb892e95bdc15edf7399000ce57d54", size = 2156251, upload-time = "2026-10-11T18:34:31.455Z" },
- { url = "https://files.pythonhosted.org/packages/47/47/83643225b08f2aef6c8cc4bbe6e3f79c5e139c4364a6e450d0f399d87774/pydantic_core-2.50.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:4a53d13cdfbedbfa87f08b83c1a0a5efcc767d785a4b41934fa9cb672670493a", size = 2234363, upload-time = "2026-10-11T18:34:33.65Z" },
- { url = "https://files.pythonhosted.org/packages/5e/66/127ca649ba2f2462039dc1e694c6c01e00a3689f023a617364d3507e6d97/pydantic_core-2.50.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:efbecf43d321f7b9281441f1f213f7c21c66988b0e06c2730ba13ed47a46bb08", size = 2000972, upload-time = "2026-10-11T18:34:36.037Z" },
- { url = "https://files.pythonhosted.org/packages/5e/4f/e421e0a5d653b1203b090b2e48745976988d7338a647940704b5b9c2b399/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bc1f08f68dac9f9e83845a8039880aba2ab553eb9b2259c3243a313182c253fe", size = 2022925, upload-time = "2026-10-11T18:34:37.972Z" },
- { url = "https://files.pythonhosted.org/packages/d5/4e/ea5568e2491e1a71100f15ae8c2d01ef52db42a184a2d4e716bc79e5eb8f/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5dfe41f232befddb9c4377f6cfc702b51595e2d78ed082672adf8758d2c4619f", size = 2192867, upload-time = "2026-10-11T18:34:39.921Z" },
- { url = "https://files.pythonhosted.org/packages/ae/5e/3b8c3a35acbe219909ada5defad5d7d9fed845fb2b37bd5ec518f453c119/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:adc06d218a1cadfd2ec4628424d7d79ce4eba69c2965e7e7b55106f0da5208c8", size = 2388687, upload-time = "2026-10-11T18:34:42.184Z" },
- { url = "https://files.pythonhosted.org/packages/b6/aa/7889b4e515f91a2e8c0ae6b5081fec0feb30c4398d1434e14793c60f173a/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2cf91809d0721ab81592ba67bea7694821679c10b1a2e3c3460082b286c1918a", size = 2464415, upload-time = "2026-10-11T18:34:44.384Z" },
- { url = "https://files.pythonhosted.org/packages/08/78/93449e628eb8a6fdcce3eff9043081179d1bc7ce6f1bff32dc5006f41e00/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:23923ab9292c40da026330b1ecf4dc2618c8e86e0422e5d1fbf50d94d64ca4f8", size = 2150823, upload-time = "2026-10-11T18:34:46.392Z" },
- { url = "https://files.pythonhosted.org/packages/f4/f1/72c5bc129fceb0d00f05dc1e67f518c1728de1928c55f81fc13d7690de39/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:f3377c8c2b3ce898423c5e5dd94c7982e30aa7717a7e6ab2470b9de364963709", size = 2245806, upload-time = "2026-10-11T18:34:48.805Z" },
- { url = "https://files.pythonhosted.org/packages/28/2a/922a0e78f3aa6ab837b59f88190233fb8dad546c17995fde9bb3ed3b9b49/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:455a773617b5913bf5c20d0692e5787b119e52c4d40ea644ca31f5758fd31be2", size = 2264160, upload-time = "2026-10-11T18:34:50.876Z" },
- { url = "https://files.pythonhosted.org/packages/52/a8/0f1449e3e1b20941c9372faa18e7b6a092e30cdfa841902473f7989532ac/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:1a9006395dece0e32e704c315eff8a00bede494f6108546cfc5539c89fef4f9a", size = 2294031, upload-time = "2026-10-11T18:34:52.876Z" },
- { url = "https://files.pythonhosted.org/packages/d1/d0/1031f492857de70355fb16524bbb03efce5fd34c93ed4a1ec60be07e0d4b/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:d2d82aa62521c55ddfb000ae70f88cdd8de974078f6024e821dfe5addd0c818f", size = 2468423, upload-time = "2026-10-11T18:34:54.995Z" },
- { url = "https://files.pythonhosted.org/packages/46/52/269ffffa645b8e47906395a39cf9db1151ae9fa4bcd7f47b960bc31baf37/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:009634b83993777ddcd69cad0ffcace43dabde692109528e35f0fde91e386a8b", size = 2512598, upload-time = "2026-10-11T18:34:57.149Z" },
- { url = "https://files.pythonhosted.org/packages/31/5c/e47e28281f20326ff6f3c31d626f0a83e615d2d94ba41bb0ad6ec237184a/pydantic_core-2.50.1-cp315-cp315t-win32.whl", hash = "sha256:3fde4fdc6487a58d944ca87cf5adc95d5f266e872c19599f5f4c0a8a1b1f9f9f", size = 2098535, upload-time = "2026-10-11T18:34:59.313Z" },
- { url = "https://files.pythonhosted.org/packages/03/ad/759e181e69c1b472c60b2049e5f61d5da1deefdd5ce1df4bb2ebcf771f25/pydantic_core-2.50.1-cp315-cp315t-win_amd64.whl", hash = "sha256:1c8632d4ac04e6f91128fca584b3a8a507d81604c24eeaaad00d4be42765c32b", size = 2148645, upload-time = "2026-10-11T18:35:01.571Z" },
- { url = "https://files.pythonhosted.org/packages/6d/56/8a702c27e5be9f47e5f19d8669227424290e4c024e7c370279cbaf244b4e/pydantic_core-2.50.1-cp315-cp315t-win_arm64.whl", hash = "sha256:c3ede305158e75510be50869b319550ab072008c13d64d4ab1e094fb286b6f44", size = 2175297, upload-time = "2026-10-11T18:35:04.079Z" },
+sdist = { url = "https://files.pythonhosted.org/packages/af/8e/23ec1021834e35041fbb2f10946141e6acdfd39379c45cc4d65a4e8a1d98/pydantic_core-2.50.2.tar.gz", hash = "sha256:1b0e8dc3932cf4e9ed5727570325cacc716b9409ffc794a221c0ccc72e8eb775", size = 518711, upload-time = "2026-10-29T16:34:57.465Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/f2/64/fc525bb981a9f287cfa34346e7ed1d5ef7c043c2b9b517f54c6136032d10/pydantic_core-2.50.2-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:efad0bdc67d3b119c3bab6b94d341a27333c2bb89ed75dfa182a4a06cd0ea329", size = 2226414, upload-time = "2026-10-29T16:32:58.559Z" },
+ { url = "https://files.pythonhosted.org/packages/db/68/315701095f25687938ab79d263a6d939337456c2840fe69038fd38000338/pydantic_core-2.50.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:6ffb4dce3ecb2cd563aa30f9eb5088a1cf1f4f688b90cbb374fa96e49fc50b02", size = 2095041, upload-time = "2026-10-29T16:32:59.873Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/4b/efd3abf31aa24bc97b311735f418886f947b4f193df02a1977643963b03e/pydantic_core-2.50.2-cp314-cp314-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:150f6e101f575c21a4ecfed1be1c05bb89a0ad49cb9c846ed377583bd71b32c2", size = 2257635, upload-time = "2026-10-29T16:33:01.096Z" },
+ { url = "https://files.pythonhosted.org/packages/2d/6c/146b36eed4de8115a0fda76840703e75f5f8b36aeb3af86976bf094d1a17/pydantic_core-2.50.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1db9cab6197e797824f0479dd2ae5fd2e272aa61c61b7faa5a6e450ca7a0d3b7", size = 2116807, upload-time = "2026-10-29T16:33:02.692Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/94/db006ea79bbe405cc38b25899319c7d461ff1813cbdfe6aa90a65ed1dfff/pydantic_core-2.50.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:1b9f652e17a13bbc09b45f74c3c326cca72059ce4dcdef687fcb04389db413a9", size = 2201037, upload-time = "2026-10-29T16:33:03.942Z" },
+ { url = "https://files.pythonhosted.org/packages/41/f9/ea2bc1ec13a67af4a63c9a887fa0aa6ef4ade9018e2bb412d4fc80110e19/pydantic_core-2.50.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:823b222c4fc861a82c650998a6117ecbd150cc71bf8b78f9a31bf3f48c456108", size = 2374904, upload-time = "2026-10-29T16:33:05.458Z" },
+ { url = "https://files.pythonhosted.org/packages/44/8e/26a6a075301f0e563646037ea69bef8c63911d38fbd257f94cec69cdf985/pydantic_core-2.50.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:783abdfac21247d33bec40aa683d26bba30d61655c40de38b2decc4797aabf92", size = 2457626, upload-time = "2026-10-29T16:33:07.271Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/a2/8eeabaf1d394f0d3b9a27129ac21556eabee6f2ddcb418069ef4037e00b0/pydantic_core-2.50.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b29b7c5adf4b2be7c941f7f76432aa3269cd5052ff8610376b8ece24d7b02c51", size = 2245505, upload-time = "2026-10-29T16:33:08.824Z" },
+ { url = "https://files.pythonhosted.org/packages/bd/54/449778cd397e2682b30d1bcfab0872f6ac36702b59cc326296b7f4f14928/pydantic_core-2.50.2-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:4ac996e42a93d80122a23edce44e02c6b9c4913f5c6198a077da31475341a39a", size = 2259563, upload-time = "2026-10-29T16:33:10.107Z" },
+ { url = "https://files.pythonhosted.org/packages/26/c2/2f65691d25488ee0f3c17861d079e8ccb7817955522d07cd3c3970d30af5/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:99e1d482138a71902415ba375bb4627679a5fefd3bd07803c3a8f37632f4981d", size = 2290470, upload-time = "2026-10-29T16:33:11.273Z" },
+ { url = "https://files.pythonhosted.org/packages/9f/32/aa7c40234cd24536afa0895ff1d26f9f15638004e25242c5193ce053b96b/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:a53d5f11cd6d15569ba3e53f3498077f0d5e633f6ec604d2ea613e895017ebee", size = 2477272, upload-time = "2026-10-29T16:33:12.771Z" },
+ { url = "https://files.pythonhosted.org/packages/c4/43/c347c68e040cf93d8487a8f4fc28f2768312834c7d21c301538f416f9955/pydantic_core-2.50.2-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:23385c4626f8b5a7792aa381ea573d9432cfbf4c21375a0a5eed2a4fb64e0e58", size = 2484352, upload-time = "2026-10-29T16:33:14.485Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/8e/72556126c8b6154fe7acaf757b96b2daa37aeffc3a517deb76e272f5ad09/pydantic_core-2.50.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:9a8a62281fd9c6a373b3fd3d473685e6838d43341eecde5f47729748e2c11ee3", size = 1491226, upload-time = "2026-10-29T16:33:15.603Z" },
+ { url = "https://files.pythonhosted.org/packages/5b/66/004c85511812964a36b3535af022c5c0dfcb760a31e4905b96310e8dd6c8/pydantic_core-2.50.2-cp314-cp314-win32.whl", hash = "sha256:18f008ef58cd30782f81b6e0119e20b7e884edcefbc2d370162ebe033f6e5c99", size = 2113134, upload-time = "2026-10-29T16:33:16.87Z" },
+ { url = "https://files.pythonhosted.org/packages/a3/5f/dcd3df20ab2a7279d42a8415fc184e8e77bcf9aa3c9ac3e938c1300a242c/pydantic_core-2.50.2-cp314-cp314-win_amd64.whl", hash = "sha256:b62c89545d21d930c333208fd548e7b4f262228ba3a322fd75c987a75ab11f31", size = 2253407, upload-time = "2026-10-29T16:33:18.47Z" },
+ { url = "https://files.pythonhosted.org/packages/4e/fb/0685895f5d199b215011dc4eb8ccea032a64ec23dfa88eeb5acca939c2d2/pydantic_core-2.50.2-cp314-cp314-win_arm64.whl", hash = "sha256:6e731bf5a5e8e25398544d7709e39068ec4230b0177e4db7fa955692fd415ba3", size = 2160456, upload-time = "2026-10-29T16:33:19.782Z" },
+ { url = "https://files.pythonhosted.org/packages/84/2f/4c8f67efe62837a508b74cf910904f73029cb211371351c5ceb36d56e85e/pydantic_core-2.50.2-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:33c6800ab9563adaa0d7893e9cd8f5b972ef1e6a23df70498e05c24f3fcec5e1", size = 2217558, upload-time = "2026-10-29T16:33:21.323Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/73/e0ef88cfbcca5409f57751289bc20be63a58af596a36e94b8cd795e59747/pydantic_core-2.50.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f81df206b937d0dca5efb38c25fc99037d82dbcd3740e34c3f81997d2322ac1c", size = 2074335, upload-time = "2026-10-29T16:33:22.658Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/cc/47844a3179ebce27064e13619594b3fc1a9b4509d8dec1e3960c5f87f5bb/pydantic_core-2.50.2-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:21ea3b00f1e87c66f3f9e92f9f6fec20495ac0e60d7d2e68ba1fc49739d7cf40", size = 2264201, upload-time = "2026-10-29T16:33:24.953Z" },
+ { url = "https://files.pythonhosted.org/packages/bc/d1/30e9d3c86d81884ee3199560ddfa2c1a66a8dc0736441748eae43064abbc/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:9eff570402175c7d5fff8497d5a9c05580664a79bb66c07b8f205d17f69e580b", size = 2094353, upload-time = "2026-10-29T16:33:26.739Z" },
+ { url = "https://files.pythonhosted.org/packages/d4/8f/392a5999480d0bcab4539db0dafa93265152396fd63e87be4d24e13d6d82/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:240fec32a74af0979f7253532859b3fd209ad5eea822416bb010929dba445c3d", size = 2203119, upload-time = "2026-10-29T16:33:28.154Z" },
+ { url = "https://files.pythonhosted.org/packages/cb/80/6e4e276a3fde5500224a39150e06a4f134f136165908be69402720718a36/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:92acf02c770b9d5c4e9a3e8d64e9d95ae26456a86ebb7b7cf64a97f899e5871b", size = 2392881, upload-time = "2026-10-29T16:33:29.305Z" },
+ { url = "https://files.pythonhosted.org/packages/70/d5/5eb56c6317ab4abf33ef9519a50bfac0c96f7f408bad1bc36da6f27d43e4/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:1ac5b99bc7b0a68ec64f5f75a6828a7bab5535c8df0cdc07901deb50e0815910", size = 2457290, upload-time = "2026-10-29T16:33:30.587Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/9e/f1fe9384bb37e4e728c51c79151808deacf7b2502e245f50b57c85eeb199/pydantic_core-2.50.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:713d7c33c0e231e3786eb0ec95885814dd65d5f3a09754399b6acbf5e9365f11", size = 2241568, upload-time = "2026-10-29T16:33:32.04Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/f1/cffc4f8456c35690bcb65a8f2304afbf2f519766345a28aba553d5a55cc8/pydantic_core-2.50.2-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:61e13100b30d8d25fc0d1f0297014b32941bf0975a3584bd08f3adebb68d1ead", size = 2257185, upload-time = "2026-10-29T16:33:33.36Z" },
+ { url = "https://files.pythonhosted.org/packages/84/34/ccd4df1cc39cb1e42fb7ec86a0dc0a23e8479de04d3012ca6b0bf2279a03/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:523fe6574aea50f456cbc301c1cdddcbf237939f7657f9af99b4f0f71942b59c", size = 2299384, upload-time = "2026-10-29T16:33:34.799Z" },
+ { url = "https://files.pythonhosted.org/packages/83/60/404b4b0c416a61867ee642cdc1450bca4d8a9a10e5f5f21e1ecaad05fdc8/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:6c25b8826be85714b27dafe908d3461e1b09e3e31c0279a7029040c832c781ef", size = 2479384, upload-time = "2026-10-29T16:33:36.106Z" },
+ { url = "https://files.pythonhosted.org/packages/ca/0d/57c81418a2fdfde0578c71396df773965adebd4421d9985a0f8dcbe9ec4d/pydantic_core-2.50.2-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:a59db03b80a156a6fbeae41096866d1cb89cdf31031ba44c768a804538880636", size = 2504616, upload-time = "2026-10-29T16:33:37.423Z" },
+ { url = "https://files.pythonhosted.org/packages/08/66/dec78e28a604f3f4985f5a795d4da3e5fef78b0921aeb7f614ed7c780a32/pydantic_core-2.50.2-cp314-cp314t-win32.whl", hash = "sha256:0d090ae76d5b09c003600c7779b3adcf3d1b49268f616c5c51d844e54c8e318d", size = 2093179, upload-time = "2026-10-29T16:33:38.705Z" },
+ { url = "https://files.pythonhosted.org/packages/d2/ea/79d9ee60648463804145d44b08f1e7e2474427d9704e3331d814483908b3/pydantic_core-2.50.2-cp314-cp314t-win_amd64.whl", hash = "sha256:9b01a092955c1c7530196ad526755cff4f2d11f37ca9a6fc9ebe37ca49a48977", size = 2220575, upload-time = "2026-10-29T16:33:39.929Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/01/aa6a7bd017c3228a41942da4fd788b86fb4aad9677212a4737a0c157fe74/pydantic_core-2.50.2-cp314-cp314t-win_arm64.whl", hash = "sha256:4ea01f30e119f1ec7a2034e85c40f491d469896aef02cd6436fd9292fe1be3fb", size = 2160866, upload-time = "2026-10-29T16:33:41.237Z" },
+ { url = "https://files.pythonhosted.org/packages/4b/7f/ec2974015b4be5e50266ce732b8942d3d0b3bff751ace8900999c6577bce/pydantic_core-2.50.2-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:a3317630e2791f56071b82f89bb71624146125e4311e6643f708c6ba744b5ac5", size = 2230936, upload-time = "2026-10-29T16:33:43.656Z" },
+ { url = "https://files.pythonhosted.org/packages/ae/ff/af99a09eddc348c1d0744c0df28dfcd4839ca497067f0fa2168208b41b1b/pydantic_core-2.50.2-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:f73930dacad5e611fe019e18df6f53c30629b1843d038d303b8dec86a32493bd", size = 2100409, upload-time = "2026-10-29T16:33:44.946Z" },
+ { url = "https://files.pythonhosted.org/packages/84/75/8db3c46f02d6005277e5c2ff5933c85e7e1eb8798aa334c676c828650c3f/pydantic_core-2.50.2-cp315-cp315-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:e2e6240a0a5ad847017b3d65187877fdb7a11d5a58d43c30736f9f523478913b", size = 2259728, upload-time = "2026-10-29T16:33:46.461Z" },
+ { url = "https://files.pythonhosted.org/packages/ee/9d/98c8d524921ca24e5c8a81a4b8f12209ac6ab05d0dd58b374e357da0ffc5/pydantic_core-2.50.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1fdf5b52ed22f1404c2433d0b46df2d86d9befb742d0b9b4042a2325c43cdb97", size = 2121771, upload-time = "2026-10-29T16:33:47.952Z" },
+ { url = "https://files.pythonhosted.org/packages/c4/ea/68c3b1fa919946012c940dea88e94e33e7dde46abe3e3d57053793c9bab8/pydantic_core-2.50.2-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:4e9392ddf67fe97ab9889f796d468c9908a8754b8b6c7520eb03a65012b9a1e7", size = 2196328, upload-time = "2026-10-29T16:33:49.131Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/9b/cfb6312a5b65b02eab6bc00fb0d258d0e2e49468dab29b430e7cb49b2ceb/pydantic_core-2.50.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:48e944091b7bff233920bed8a60b0ed6c96c73d3c5836bf51c4b9a4bfb58e4ca", size = 2380152, upload-time = "2026-10-29T16:33:50.503Z" },
+ { url = "https://files.pythonhosted.org/packages/41/5a/7fcced1d84ea294200abfa93e488f36d00732101d17bf5e1f1389e66de26/pydantic_core-2.50.2-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:91c92856b846aa690ea6239ffd6c5003c5e3e296a69095570bf4efee5bfa0bdc", size = 2462299, upload-time = "2026-10-29T16:33:51.884Z" },
+ { url = "https://files.pythonhosted.org/packages/e6/d0/dd0e355694094f0045922f4da60ac9bc7a314babc494e46089fb00640fd3/pydantic_core-2.50.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5299296ff5cafcb69851fd652de8f9268a0bb036bcbedbfcaa94cf743baf3986", size = 2249999, upload-time = "2026-10-29T16:33:53.333Z" },
+ { url = "https://files.pythonhosted.org/packages/3a/79/f5f4b36434604d22aacb7152667f87a470e68847c89b136c68a278cf409d/pydantic_core-2.50.2-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:d3d049b557875f9d15230eec8a731749a7a873d8ed6a051903b05bdf46e0e65f", size = 2262745, upload-time = "2026-10-29T16:33:54.79Z" },
+ { url = "https://files.pythonhosted.org/packages/14/21/a4c47a286745857758a4bb8d4d5e260c736a7bd6fab5da618f5711d1a3f1/pydantic_core-2.50.2-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:b0b25d647036972c2951059046cb498f72b7af5a2def27bf8e5f44c3067ab7dd", size = 2293663, upload-time = "2026-10-29T16:33:56.132Z" },
+ { url = "https://files.pythonhosted.org/packages/0d/db/25330e609fd219ce16d0a089af1b4b62095f01595dbe6972f7a7dfc313b9/pydantic_core-2.50.2-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:8835566b3e94026da3ce2249f9ee35c9d2ebe4cd131f6a39bfc82708d3010a46", size = 2473247, upload-time = "2026-10-29T16:33:57.607Z" },
+ { url = "https://files.pythonhosted.org/packages/53/16/704ca88b82156dc485da2dfb11d5d52a10b9ef15a294639c0aa5ebd1643e/pydantic_core-2.50.2-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:3fbcd402e4b607d4b8de5d4591215f31f042af03f9d09e58f693a6221e32833f", size = 2490536, upload-time = "2026-10-29T16:33:59.297Z" },
+ { url = "https://files.pythonhosted.org/packages/50/34/1fdd0eebee9f8b6c4ec3c2490f49dc59a652c8c5a7fa0cbcaada0d91cda9/pydantic_core-2.50.2-cp315-cp315-win32.whl", hash = "sha256:8431ecb131489cbdaf6f51f7ade47475f73aff4f1912552f75ba19a6cfe233a8", size = 2117204, upload-time = "2026-10-29T16:34:00.514Z" },
+ { url = "https://files.pythonhosted.org/packages/24/6b/702adc91486fb96ba55675d58ee15ddc38fb48553fb35e26fd005e303206/pydantic_core-2.50.2-cp315-cp315-win_amd64.whl", hash = "sha256:04cf672960b8c4fc28bb159c8cdd101fbd311c520237a5c0360448b851adfb41", size = 2261064, upload-time = "2026-10-29T16:34:01.773Z" },
+ { url = "https://files.pythonhosted.org/packages/36/0d/7f117432b8614526aa0d96fadd2b7fb7393156ddf2caf26a6fe606e6cfb6/pydantic_core-2.50.2-cp315-cp315-win_arm64.whl", hash = "sha256:36917e29c0b815d6b940bc91560fcf453b5b85d55c579796373f0ea11d1c111a", size = 2161783, upload-time = "2026-10-29T16:34:02.966Z" },
+ { url = "https://files.pythonhosted.org/packages/45/1c/2ba7a34fe8da4c83ec200fb9f85ab4d54b961be08367922743623f987849/pydantic_core-2.50.2-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:bd1fe69056a19c377a6c6de2c1240fb8676ba0512a969965efb486510c5e0f1f", size = 2223184, upload-time = "2026-10-29T16:34:04.214Z" },
+ { url = "https://files.pythonhosted.org/packages/47/01/f71a8da1f53a5be1787d2a97ba6fd9adba115305c7f15ea0bf733ed8336c/pydantic_core-2.50.2-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:9b2383933b1dd7a8c93e02f99ebfd305f1286057172483b8e6898bed3fef69d3", size = 2078174, upload-time = "2026-10-29T16:34:05.426Z" },
+ { url = "https://files.pythonhosted.org/packages/f6/0a/847e1f5427372692f6eb5c38261fed6b8cedf379e37d9f6134d48b9c8ee9/pydantic_core-2.50.2-cp315-cp315t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:a1b4d60bad57d6e0e7cd30cc4d1dc646d258dd6dfb7935ce76c7dd72dd1e98b0", size = 2268813, upload-time = "2026-10-29T16:34:06.733Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/bb/12966dc82b5e9c347981658b52e24349b6242902b644725c00ee7bdf4267/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:93bedc68c4138088ea3c042189c01d2945f530f0dcc36e1ea02df8418bd4f1cd", size = 2098331, upload-time = "2026-10-29T16:34:08.69Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/fe/340416b7ebe664524e7ada16ad2e3e069888b168010d75bda6a502bf2bf8/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:d684ff87d00de2f6abcbbfa9b0fdce8b513dd799a900809dcfa7eb62ad69832a", size = 2197432, upload-time = "2026-10-29T16:34:10.091Z" },
+ { url = "https://files.pythonhosted.org/packages/c9/4d/425162c3d88af0d190c4dc4f940402cc6dd44d934359a37f50da6b7e4672/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:bb6d49f00e2babd40af4889d6b9f4bf50879f522dd4e2e22cb705cac5e0c5e8e", size = 2399300, upload-time = "2026-10-29T16:34:11.462Z" },
+ { url = "https://files.pythonhosted.org/packages/2b/fe/2882bddf2e2038c8f41fa69f16ddeb6eeb1c002cc0cc0eb2157f73bb34e9/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:6d47b2d0e00e030e0ebdb08115a37da7294e7a6d196d134a77ed7ee6c142284b", size = 2462672, upload-time = "2026-10-29T16:34:12.79Z" },
+ { url = "https://files.pythonhosted.org/packages/6e/ac/d7e6bfc6a95573647d1a699e19228dd99914ae6aab79a2bec293a038e980/pydantic_core-2.50.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:95838be125133fa314753f8cc5168f7c41e3a9dd5eef5383dbbbeed511bd4853", size = 2246293, upload-time = "2026-10-29T16:34:14.065Z" },
+ { url = "https://files.pythonhosted.org/packages/74/64/97473ccaeb4ae5eb338162bd8479af121484e67f7078499730e3ee0a5592/pydantic_core-2.50.2-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:2d4a043c820363359e40ac96270e1915e5376e116be1f59cee0701775de3e376", size = 2259507, upload-time = "2026-10-29T16:34:15.391Z" },
+ { url = "https://files.pythonhosted.org/packages/48/15/78a9b7a6a0d0679ce1e46cdd38ff95afd18dd2d6a01ed87c80a01bc003f7/pydantic_core-2.50.2-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:57bccd3e1128736c792094da1feac6da46ec3feb1957ef649a9b3e4f8de6fa04", size = 2303550, upload-time = "2026-10-29T16:34:17.162Z" },
+ { url = "https://files.pythonhosted.org/packages/39/ba/b697173f82e99cdcf5ec6654b2edb66a00f2f92ef9d9a168861fca3fcded/pydantic_core-2.50.2-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:24120c644322a35b5eb765416ac8442214c45689e255f5fc6e761e7e7c743c8b", size = 2474919, upload-time = "2026-10-29T16:34:18.841Z" },
+ { url = "https://files.pythonhosted.org/packages/71/10/986be76723784ae87f9664658fae39df340eaa21681cea95b6339d2e1b3e/pydantic_core-2.50.2-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:b1adf2f37521b578c438f6ec61d1c1d0c20b076863ddd5d8b6f3ab658857db3f", size = 2509095, upload-time = "2026-10-29T16:34:20.16Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/0b/38dbd38c67de7642f87348da70122b89ca4c5fe8227cfdd5cc00c1cdb454/pydantic_core-2.50.2-cp315-cp315t-win32.whl", hash = "sha256:d79aaa468193c1bed6b0560d3c5c9f9e369e3efb0b128b38a2537e2d51d42773", size = 2096972, upload-time = "2026-10-29T16:34:21.715Z" },
+ { url = "https://files.pythonhosted.org/packages/7a/df/154baf8413b08d6daf2f5dec211c303ec6bed50c032717f354f8dd85c994/pydantic_core-2.50.2-cp315-cp315t-win_amd64.whl", hash = "sha256:cc488daac19e6f5292180fac5e0ef7efffabeef4e096af9a17a75a7d3d6781f6", size = 2226659, upload-time = "2026-10-29T16:34:23.177Z" },
+ { url = "https://files.pythonhosted.org/packages/b5/17/eea7a1e7d98a79ef11b6d31748b70c58f8723f87d7ee42edbb6a101f6245/pydantic_core-2.50.2-cp315-cp315t-win_arm64.whl", hash = "sha256:91315aea7adb51821d4a3378ede953bfdd76e3bf71551de4a82d7638cef7dc02", size = 2166387, upload-time = "2026-10-29T16:34:24.433Z" },
]
[[package]]
@@ -2424,11 +2424,11 @@ wheels = [
[[package]]
name = "tzdata"
-version = "2026.5"
+version = "2026.6"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/d9/68/f1b440335057bfce71b6e50a9d09445aa2ecbd08359a337976627b8409e7/tzdata-2026.5.tar.gz", hash = "sha256:8cc73c0a0bfca7dbfa59235d60b2eff82231dee33f53d206db1acd9173cfc0a7", size = 200404, upload-time = "2026-10-03T09:23:14.143Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/7a/29/6a1391d31cd00ff9e927215a224a880e1e84e826b64ba80a499e51c074d8/tzdata-2026.6.tar.gz", hash = "sha256:85d2cd9c09f81f0bb29db27759fc83af4f1e620efb814f8c5bf8b4cc4feece6d", size = 201017, upload-time = "2026-10-28T09:57:09.137Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/94/21/1e5995a1c920cce14e4bffae20c665ec10e7ed03ab25e006cd741092b718/tzdata-2026.5-py2.py3-none-any.whl", hash = "sha256:b683bd1b6659ddcd810ff02ad09ba821d4bf1065072805063eb35c49617905ac", size = 347996, upload-time = "2026-10-03T09:23:12.535Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/66/9a06c2227fedfd4919f0eaaa8b94377d9730882a7e4f95823c9a331ab5e1/tzdata-2026.6-py2.py3-none-any.whl", hash = "sha256:0a10eec6e13ef16b627fabed9a5f2ba61a62b1c67f327305f4e7e412a70b4aec", size = 348210, upload-time = "2026-10-28T09:57:07.276Z" },
]
[[package]]
@@ -2454,16 +2454,16 @@ wheels = [
[[package]]
name = "urllib3-future"
-version = "2.25.904"
+version = "2.25.905"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "h11" },
{ name = "jh2" },
{ name = "qh3", marker = "(platform_machine == 'AMD64' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'ARM64' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'aarch64' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'arm64' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'armv7l' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'i686' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'ppc64' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'ppc64le' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'riscv64' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'riscv64gc' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 's390x' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'x86' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'x86_64' and platform_python_implementation == 'CPython' and sys_platform == 'darwin') or (platform_machine == 'AMD64' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'ARM64' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'aarch64' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'arm64' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'armv7l' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'i686' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'ppc64' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'ppc64le' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'riscv64' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'riscv64gc' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 's390x' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'x86' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'x86_64' and platform_python_implementation == 'CPython' and sys_platform == 'linux') or (platform_machine == 'AMD64' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'ARM64' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'aarch64' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'arm64' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'armv7l' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'i686' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'ppc64' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'ppc64le' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'riscv64' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'riscv64gc' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 's390x' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'x86' and platform_python_implementation == 'CPython' and sys_platform == 'win32') or (platform_machine == 'x86_64' and platform_python_implementation == 'CPython' and sys_platform == 'win32')" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/7b/69/e2eeaf260c29b21ecc48b5c8ba6ade1e2e79be6499a8367627d1ce4d4bb5/urllib3_future-2.25.904.tar.gz", hash = "sha256:2ea5bcd64433e6d05ff1684a3cef51e94f33506f08e8fed344108d2abd0f416b", size = 1703564, upload-time = "2026-10-27T04:41:22.716Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/36/28/765b30ba80b434803d287f873453463d9eef9d5cb4e28004196460166976/urllib3_future-2.25.905.tar.gz", hash = "sha256:d5bd25dad01d7358b33f4c7b3f225506231158086ff790028c1de5b38c26e89e", size = 1704064, upload-time = "2026-10-28T13:20:47.275Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/02/89/f3c2b4db103a3a794da560355ec4bceb631128523d719b883a595df92d39/urllib3_future-2.25.904-py3-none-any.whl", hash = "sha256:530e6588ccaed48385098e98e35c4cf61439e18dc635995a9d1ab0c781d380d9", size = 890163, upload-time = "2026-10-27T04:41:20.659Z" },
+ { url = "https://files.pythonhosted.org/packages/37/78/e4f6952a009df5f65b3af31b6221d2d660e0a705245676b5fc73508d88ea/urllib3_future-2.25.905-py3-none-any.whl", hash = "sha256:c8e3629be86cf3c074769a23beb2b99993cc3454d2049bd3c0643952f6bfbafb", size = 890513, upload-time = "2026-10-28T13:20:45.319Z" },
]
[[package]]
diff --git a/web/dist/peach-app.chart-tip-Dv3VREj-.js b/web/dist/peach-app.chart-tip-CRxYp6KT.js
similarity index 99%
rename from web/dist/peach-app.chart-tip-Dv3VREj-.js
rename to web/dist/peach-app.chart-tip-CRxYp6KT.js
index b2b58babb..9400e92d7 100644
--- a/web/dist/peach-app.chart-tip-Dv3VREj-.js
+++ b/web/dist/peach-app.chart-tip-CRxYp6KT.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] = "b45c0b23-4ab8-4198-bfd8-c9f131e0354a", e._sentryDebugIdIdentifier = "sentry-dbid-b45c0b23-4ab8-4198-bfd8-c9f131e0354a");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "783ef6e2-3b75-466e-babe-8a5bc820bee3", e._sentryDebugIdIdentifier = "sentry-dbid-783ef6e2-3b75-466e-babe-8a5bc820bee3");
} catch {}
})();
import { MotionConfigContext as e, WithPromise as t, __commonJSMin as n, __exportAll as r, __toESM as i, asNumber as a, calcGeneratorVelocity as o, cancelFrame as s, cardClass as c, clsx as l, collectMotionValues as u, cx as d, frame as f, interpolate as p, isMotionValue as m, max as h, min as g, motion as _, motionValue as v, require_jsx_runtime as y, require_react as b, require_react_dom as x, require_with_selector as S, resolveStartTime as C, spring as w, time as T, useConstant as E, useIsomorphicLayoutEffect as D, useReducedMotion as O } from "./peach-app.js";
@@ -147,7 +147,7 @@ function ce(e, t, n, r) {
if (typeof e == "function") return ae(e);
if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return ue(e, t, n, r);
let i = typeof t == "function" ? t : k(t, n, r), a = Array.isArray(e) ? le(e, i) : le([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
- if (o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1) {
+ if (o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && !r?.mixer) {
let e = r?.ease;
a.accelerate = {
...o,
@@ -19798,4 +19798,4 @@ function kV({ nameKey: e, valueKey: t, hideLabel: n, format: r }) {
}
export { Nj as ActivePoints, OA as AnimatedItems, uV as CHART_CARD, xV as CHART_COLORS, uk as CartesianLabelListContextProvider, yV as CategoryTick, hD as Cell, jB as ChartBackground, oB as ChartContainer, dV as ChartEmpty, bV as ChartHead, SB as ChartLegend, vB as ChartLegendContent, kV as ChartTip, _B as ChartTooltip, hB as ChartTooltipContent, Rf as Curve, xl as DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME, bl as DATA_ITEM_INDEX_ATTRIBUTE_NAME, J as DefaultZIndexes, vk as Dot, sj as Dots, VB as EvilBarChart, hk as LabelList, gk as LabelListFromLabelProp, et as Layer, sB as LoadingIndicator, Zz as PolarChart, UO as PolarLabelContextProvider, nk as PolarLabelFromLabelProp, fk as PolarLabelListContextProvider, RA as RegisterGraphicalItemId, zm as Sector, YA as SetPolarGraphicalItem, aA as SetPolarLegendPayload, rA as SetTooltipEntrySettings, $k as Shape, TV as TIP_SURFACE, DV as TIP_SWATCH, OO as Text, EV as TipRow, hE as ZIndexLayer, wr as adaptEventsOfChild, jk as addAngleAxis, kk as addRadiusAxis, jE as arrayTooltipSearcher, vV as categoryAxisWidth, eB as cn, Jj as combineAllBarPositions, RC as combineAxisTicks, Xj as combineBarPosition, Vj as combineBarSizeList, gC as combineCategoricalDomain, vx as combineConfiguredScale, rg as combineDisplayedStackedData, BC as combineGraphicalItemTicks, bS as combineStackGroups, Yj as combineStackedData, V as createSelector, Nh as defaultPolarAngleAxisProps, Xz as defaultPolarChartProps, Ph as defaultPolarRadiusAxisProps, hm as degreeToRadian, Vk as findAllByType, _V as fitLabel, lt as get, Ih as getAxisTypeBasedOnLayout, ll as getBandSizeOfAxis, rl as getBaseValueOfBar, nl as getCateCoordinateOfBar, Pk as getClassNameFromUnknown, dB as getColorsCount, vm as getMaxRadius, el as getNormalizedStackId, bt as getPercentValue, dl as getTooltipNameProp, G as getValueByDataKey, Zj as getZIndexFromUnknown, Gr as identity, I as interpolate, qr as isArrayLike, Jc as isCategoricalAxis, L as isNullish, F as isNumber, ig as isStacked, Yi as iteratee, yA as matchAnimationItems, pA as matchAppend, fA as matchByIndex, mt as mathSign, Tt as noop, Y as pickAxisType, _m as polarToCartesian, ug as rechartsScaleFactory, Mk as removeAngleAxis, Ak as removeRadiusAxis, Ar as resolveDefaultProps, pt as roundTemplateLiteral, pT as selectActiveTooltipDataKey, mT as selectActiveTooltipGraphicalItemId, dT as selectActiveTooltipIndex, Wh as selectAngleAxis, Zh as selectAngleAxisRangeWithReversed, wh as selectBarCategoryGap, Ch as selectBarGap, Gm as selectChartDataAndAlwaysIgnoreIndexes, Wm as selectChartDataWithIndexes, K as selectChartLayout, Ml as selectChartOffsetInternal, IC as selectDuplicateDomain, Sk as selectPolarAppliedValues, Ek as selectPolarAxisCheckedDomain, bk as selectPolarItemsSettings, Tk as selectPolarNiceTicks, eg as selectPolarViewBox, Gh as selectRadiusAxis, $h as selectRadiusAxisRangeWithReversed, tC as selectRealScaleType, Kx as selectRenderableAxisSettings, Dh as selectReverseStackOrder, Th as selectRootBarSize, Sh as selectRootMaxBarSize, Eh as selectStackOffsetType, _S as selectTooltipAxis, yk as selectUnfilteredPolarItems, wV as sliceConfig, CV as sliceKey, He as svgPropertiesAndEvents, Be as svgPropertiesNoEvents, Ve as svgPropertiesNoEventsFromUnknown, SV as tone, Zc as truncateByDomain, DA as useAnimationCallbacks, bA as useAnimationStartSnapshot, z as useAppDispatch, B as useAppSelector, Il as useIsPanorama, nA as useMouseClickItemDispatch, eA as useMouseEnterItemDispatch, tA as useMouseLeaveItemDispatch, Du as usePolarChartLayout };
-//# debugId=b45c0b23-4ab8-4198-bfd8-c9f131e0354a
\ No newline at end of file
+//# debugId=783ef6e2-3b75-466e-babe-8a5bc820bee3
\ No newline at end of file
diff --git a/web/dist/peach-app.configuration-page-Cpe1NwYj.js b/web/dist/peach-app.configuration-page-DFsNUGcd.js
similarity index 99%
rename from web/dist/peach-app.configuration-page-Cpe1NwYj.js
rename to web/dist/peach-app.configuration-page-DFsNUGcd.js
index 49dba42d3..185c3494e 100644
--- a/web/dist/peach-app.configuration-page-Cpe1NwYj.js
+++ b/web/dist/peach-app.configuration-page-DFsNUGcd.js
@@ -1,10 +1,10 @@
(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] = "10cfb236-1b3c-48e6-8a96-23f7030ea9bf", e._sentryDebugIdIdentifier = "sentry-dbid-10cfb236-1b3c-48e6-8a96-23f7030ea9bf");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "edb71d45-6592-462a-ab5f-d73a107296a0", e._sentryDebugIdIdentifier = "sentry-dbid-edb71d45-6592-462a-ab5f-d73a107296a0");
} 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-Dv3VREj-.js";
+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";
import { $2ec61d1d4f780267$export$a8a3e93435678ff9 as Le, $3a442827418ebe87$export$eb2fcfdbd7ba97d4 as Re, $542a13ca2fa5b484$export$5b6b19405a83ff9d as ze, $72abaeab4d80592f$export$78efe591171d7d45 as Be, $bd263d78e9bf3c56$export$f5c9f3c2c4054eec as Ve, $ea3928288112382f$export$439d29a4e110a164 as He, $f2ff30fde7b014be$export$3ddf2d174ce01153 as Ue, $fe21c36db05242bb$export$a98f0dcb43a68a25 as We, $fe21c36db05242bb$export$d7b12c4107be0d61 as Ge, ACCENTS as Ke, ApiError as qe, Button as E, ButtonLink as Je, CLOUD_LOCATIONS as Ye, CLOUD_PROXY_HELP as Xe, CONFIGURATION_KEY as Ze, CONFIGURATION_URL as Qe, CREDENTIAL_STATE as $e, Checkbox as D, Chip as et, Disclosure as O, ENTRY_LINKS_HELP as tt, ENTRY_LINKS_HINT as nt, EmptyState as rt, ErrorText as k, ExternalLink as A, FEED_SCHEDULE_KEY as it, FOLLOW_CREDENTIALS_KEY as at, FOLLOW_INITIAL_RANGE_OPTIONS as ot, FOLLOW_SCHEDULE_KEY as st, Fact as j, FactList as ct, FieldLabel as lt, Footer as M, Help as N, HintText as ut, Input as P, LIBRARY_FOLDER_HELP as dt, LIBRARY_PROCESSING_KEY as ft, Label as pt, LinkButton as mt, LoadingDots as ht, M6 as gt, MEDIA_PROCESSING_KEY as _t, MEDIA_PROCESSING_URL as vt, MEDIA_SOURCE_ICONS as yt, MENU_POPOVER_SURFACE as bt, Note as F, PICK_FOLDER_URL as xt, POLICY_COLUMNS as St, POLICY_COVER_NOTE as Ct, POLICY_MATRIX as wt, POLICY_SUMMARY as Tt, PathLine as Et, PillTabList as Dt, Progress as Ot, Rows as I, SEGMENT as kt, SEGMENTED_TRACK as At, SETTINGS_KEY as jt, SETTINGS_URL as Mt, Section as L, SectionSkeleton as Nt, SegmentedRadioGroup as Pt, Select as Ft, Select$1 as R, SelectItem as z, SettingsCard as It, SettingsRow as B, SiteLabel as Lt, SourceLabel as Rt, SourceMark as zt, Stack as V, StatusLabel as H, Switch as U, THUMBNAIL_JOBS_KEY as Bt, TaskCenterLink as Vt, TextField as Ht, TextFieldContext as Ut, __toESM as Wt, animate as Gt, apiGet as W, apiSend as G, appSettingsStore as Kt, boundedPreference as qt, busyProps as K, cardClass as Jt, cloudProxySkeleton as Yt, clsx as Xt, cn as Zt, confirmModal as Qt, credentialDone as $t, credentialsSkeleton as en, cx as tn, errorMessage as q, fetchConfiguration as nn, fetchCredentials as rn, fetchFeedSchedule as an, fetchFollowSchedule as on, fetchMediaProcessing as sn, fetchSettings as cn, fetchThumbnailJobs as ln, fmtSize as J, indexersSkeleton as un, javBrowserSkeleton as dn, momentText as fn, motion as pn, overlayHost as mn, peachHistory$1 as hn, previewLibraryColor as gn, providerIcon as _n, queryClient as vn, randomId as yn, rememberShape as bn, require_jsx_runtime as xn, require_react as Sn, saveCredential as Cn, schedulePollInterval as wn, settingsPath as Tn, shellNavigate as En, sortCx as Dn, sourceDefaultCost as On, useAction as Y, useClientUpdates as kn, useLibraryTints as An, useMutation as jn, useQuery as X, useReducedMotion as Mn, useRunSchedule as Nn, useSaveFollowSchedule as Pn, useSaveSettings as Fn, useSaveThumbnailMode as In } from "./peach-app.js";
import { CodeBlock as Ln } from "./peach-app.code-block-CyDva4Ms.js";
import { FolderField as Rn, FolderFieldLine as zn, FolderRow as Bn, MEDIA_SOURCES as Vn, MediaReadPolicy as Hn, MediaReadPolicyHelp as Un, SourceSelect as Wn, isCloudSource as Gn, sourceMark as Kn, useFolderRows as qn } from "./peach-app.folder-rows-BWBfTyUD.js";
@@ -5458,4 +5458,4 @@ function $o({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
}
export { Xo as ConfigurationPage };
-//# debugId=10cfb236-1b3c-48e6-8a96-23f7030ea9bf
\ No newline at end of file
+//# debugId=edb71d45-6592-462a-ab5f-d73a107296a0
\ No newline at end of file
diff --git a/web/dist/peach-app.expandable-ranking-icp-Mk4j.js b/web/dist/peach-app.expandable-ranking-dFA65P9N.js
similarity index 99%
rename from web/dist/peach-app.expandable-ranking-icp-Mk4j.js
rename to web/dist/peach-app.expandable-ranking-dFA65P9N.js
index e261dff95..176039514 100644
--- a/web/dist/peach-app.expandable-ranking-icp-Mk4j.js
+++ b/web/dist/peach-app.expandable-ranking-dFA65P9N.js
@@ -1,10 +1,10 @@
(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] = "db98772f-5dcd-459b-a208-05e648c064b2", e._sentryDebugIdIdentifier = "sentry-dbid-db98772f-5dcd-459b-a208-05e648c064b2");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ee7ee7be-7043-4ddc-aba3-507f6b680211", e._sentryDebugIdIdentifier = "sentry-dbid-ee7ee7be-7043-4ddc-aba3-507f6b680211");
} catch {}
})();
-import { CHART_CARD as e, CategoryTick as t, ChartEmpty as n, ChartHead as r, ChartTip as i, Dot as a, EvilBarChart as o, Layer as s, TIP_SURFACE as c, TIP_SWATCH as l, Text as u, TipRow as d, ZIndexLayer as f, adaptEventsOfChild as p, addAngleAxis as m, categoryAxisWidth as h, combineAxisTicks as g, combineCategoricalDomain as _, combineConfiguredScale as v, combineGraphicalItemTicks as y, createSelector as b, defaultPolarAngleAxisProps as x, degreeToRadian as S, getAxisTypeBasedOnLayout as ee, getClassNameFromUnknown as te, noop as ne, pickAxisType as C, polarToCartesian as w, rechartsScaleFactory as re, removeAngleAxis as ie, resolveDefaultProps as ae, roundTemplateLiteral as oe, selectAngleAxis as T, selectAngleAxisRangeWithReversed as se, selectChartLayout as E, selectDuplicateDomain as D, selectPolarAppliedValues as ce, selectPolarAxisCheckedDomain as le, selectPolarNiceTicks as ue, selectPolarViewBox as de, selectRadiusAxis as fe, selectRadiusAxisRangeWithReversed as pe, selectRealScaleType as me, selectRenderableAxisSettings as he, svgPropertiesAndEvents as O, svgPropertiesNoEvents as k, svgPropertiesNoEventsFromUnknown as ge, tone as _e, useAppDispatch as ve, useAppSelector as A, useIsPanorama as ye, usePolarChartLayout as be } from "./peach-app.chart-tip-Dv3VREj-.js";
+import { CHART_CARD as e, CategoryTick as t, ChartEmpty as n, ChartHead as r, ChartTip as i, Dot as a, EvilBarChart as o, Layer as s, TIP_SURFACE as c, TIP_SWATCH as l, Text as u, TipRow as d, ZIndexLayer as f, adaptEventsOfChild as p, addAngleAxis as m, categoryAxisWidth as h, combineAxisTicks as g, combineCategoricalDomain as _, combineConfiguredScale as v, combineGraphicalItemTicks as y, createSelector as b, defaultPolarAngleAxisProps as x, degreeToRadian as S, getAxisTypeBasedOnLayout as ee, getClassNameFromUnknown as te, noop as ne, pickAxisType as C, polarToCartesian as w, rechartsScaleFactory as re, removeAngleAxis as ie, resolveDefaultProps as ae, roundTemplateLiteral as oe, selectAngleAxis as T, selectAngleAxisRangeWithReversed as se, selectChartLayout as E, selectDuplicateDomain as D, selectPolarAppliedValues as ce, selectPolarAxisCheckedDomain as le, selectPolarNiceTicks as ue, selectPolarViewBox as de, selectRadiusAxis as fe, selectRadiusAxisRangeWithReversed as pe, selectRealScaleType as me, selectRenderableAxisSettings as he, svgPropertiesAndEvents as O, svgPropertiesNoEvents as k, svgPropertiesNoEventsFromUnknown as ge, tone as _e, useAppDispatch as ve, useAppSelector as A, useIsPanorama as ye, usePolarChartLayout as be } from "./peach-app.chart-tip-CRxYp6KT.js";
import { __toESM as xe, clsx as j, f1 as Se, require_jsx_runtime as Ce, require_react as we } from "./peach-app.js";
// node_modules/recharts/es6/shape/Polygon.js
var M = /* @__PURE__ */ xe(we()), Te = [
@@ -624,4 +624,4 @@ function ct({ children: e, className: t = "", previewCount: n = 10 }) {
}
export { st as ActivityHeat, Y as BAR_DOMAIN, Qe as BarCard, ct as ExpandableRanking, q as PolarAngleAxis, I as Polygon, X as barLabel, z as selectPolarAxisScale, V as selectPolarAxisTicks, Pe as selectPolarGraphicalItemAxisTicks };
-//# debugId=db98772f-5dcd-459b-a208-05e648c064b2
\ No newline at end of file
+//# debugId=ee7ee7be-7043-4ddc-aba3-507f6b680211
\ No newline at end of file
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 661e276b2..fefae06bd 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] = "3c964309-0992-4699-b33d-0e022a308722", e._sentryDebugIdIdentifier = "sentry-dbid-3c964309-0992-4699-b33d-0e022a308722");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1887a47f-16fe-4cdd-88a0-e023e9a3fd51", e._sentryDebugIdIdentifier = "sentry-dbid-1887a47f-16fe-4cdd-88a0-e023e9a3fd51");
} 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) => {
@@ -14916,10 +14916,10 @@ function Dp({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
function Op(e, t, n) {
- let r = [], i = n || Ku.mix || Uf, a = e.length - 1;
- for (let n = 0; n < a; n++) {
- let a = i(e[n], e[n + 1]);
- t && (a = Qu(Array.isArray(t) ? t[n] || Zu : t, a)), r.push(a);
+ let r = [], i = Ku.mix || Uf, a = e.length - 1;
+ for (let o = 0; o < a; o++) {
+ let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);
+ t && (a = Qu(Array.isArray(t) ? t[o] || Zu : t, a)), r.push(a);
}
return r;
}
@@ -14959,22 +14959,25 @@ function Mp(e, t) {
function Np(e, t) {
return e.map(() => t || vd).splice(0, e.length - 1);
}
-function Pp({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ yd(r) ? r.map(wd) : wd(r) || vd, a = {
+function Pp({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+ let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ yd(r) ? r.map(wd) : wd(r) || vd, s = {
done: !1,
value: t[0]
};
- if (t.length === 2 && !Array.isArray(i) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, o = n === r ? void 0 : (Ku.mix || Uf)(n, r);
+ if (!a && t.length === 2 && !Array.isArray(o) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
+ let [n, r] = t, i = n === r ? void 0 : (Ku.mix || Uf)(n, r);
return {
calculatedDuration: e,
- next: (t) => (a.value = o ? o(i(e > 0 ? Gu(0, 1, t / e) : 1)) : r, a.done = t >= e, a)
+ next: (t) => (s.value = i ? i(o(e > 0 ? Gu(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let o = kp(Mp(n && n.length === t.length ? n : jp(t), e), t, { ease: Array.isArray(i) ? i : Np(t, i) });
+ let c = kp(Mp(n && n.length === t.length ? n : jp(t), e), t, {
+ ease: Array.isArray(o) ? o : Np(t, o),
+ mixer: a
+ });
return {
calculatedDuration: e,
- next: (t) => (a.value = o(t), a.done = t >= e, a)
+ next: (t) => (s.value = c(t), s.done = t >= e, s)
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
@@ -15069,7 +15072,7 @@ var qp = class {
let { options: e } = this;
Vp(e);
let { type: t = Pp, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Pp;
- s !== Pp && typeof o[0] != "number" && (this.mixKeyframes = Qu(Jp, Uf(o[0], o[1])), o = [0, 100]);
+ this.mixKeyframes = void 0, s !== Pp && typeof o[0] != "number" && (this.mixKeyframes = Qu(Jp, e.mixer?.(o[0], o[1]) || Uf(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -15698,8 +15701,8 @@ function uh(e) {
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && lh.test(e[t])) return !0;
return !1;
}
-// node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var dh = /* @__PURE__ */ new Set([
+// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
+var dh = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), fh = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -15710,58 +15713,54 @@ var dh = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), fh = () => !Ku.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function ph(e) {
+]), ph = () => !Ku.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function mh(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(ch.has(n) || dh.has(n))) return !1;
+ if (!n || !(ch.has(n) || fh.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return fh() && (ch.has(n) || dh.has(n) && uh(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return ph() && (ch.has(n) || fh.has(n) && uh(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !dh(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var mh = (e, t) => t && typeof e == "number" ? t.transform(e) : e, hh = {
+var hh = (e, t) => t && typeof e == "number" ? t.transform(e) : e, gh = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, gh = xm.length, _h = {}, vh = (e, t, n = mh(t, rm[e])) => (_h[e] || (_h[e] = (hh[e] || e) + "(")) + n + ")", yh = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
-function bh(e, t, n) {
+}, _h = xm.length, vh = {}, yh = (e, t, n = hh(t, rm[e])) => (vh[e] || (vh[e] = (gh[e] || e) + "(")) + n + ")", bh = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+function xh(e, t, n) {
let r = "";
- for (let i = 0; i < gh; i++) {
+ for (let i = 0; i < _h; i++) {
let a = xm[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = mh(o, im[a]));
- yh(a, o) || (r += vh(a, o, s || void 0) + " ");
+ let s = n && (t[a] = hh(o, im[a]));
+ bh(a, o) || (r += yh(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += vh("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += yh("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var xh = /* @__PURE__ */ new WeakMap(), Sh = 200, Ch = .001, wh = .1, Th = .001, Eh = 100, Dh = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Oh = (e, t) => e - t, kh = (e, t, n) => {
- let r = [];
- for (let i = 0; i <= n; i++) r.push(Df(e, t, i / n));
- return r;
-}, Ah = (e) => e.motionValue.owner, jh = (e) => xh.get(e), Mh = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), Nh = ({ name: e, motionValue: t }) => e && xm.includes(e) && t?.owner?.current instanceof HTMLElement && fh() && Km();
-function Ph(e) {
- let t = Ah(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (Mh(t, "transform") || "none") === "none" && !Mh(t, "pathRotation") && !t.projection?.isProjecting();
+var Sh = /* @__PURE__ */ new WeakMap(), Ch = 200, wh = .001, Th = .1, Eh = .001, Dh = 100, Oh = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), kh = (e, t) => Math.abs(e - t) <= wh, Ah = (e, t) => e - t, jh = (e, t, n) => jp(Array(n + 1)).map((n) => Df(e, t, n)), Mh = (e) => e.motionValue.owner, Nh = (e) => Sh.get(e), Ph = ({ state: e }) => e === "idle" || e === "finished", Fh = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), Ih = ({ name: e, motionValue: t }) => e && xm.includes(e) && t?.owner?.current instanceof HTMLElement && ph() && Km();
+function Lh(e) {
+ let t = Mh(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (Fh(t, "transform") || "none") === "none" && !Fh(t, "pathRotation") && !t.projection?.isProjecting() && !dh(e);
}
-var Fh = class extends Xp {
+var Rh = class extends Xp {
constructor(e) {
- let t = Ah(e).current, { driver: n = Zf } = e, r, i = Ph(e);
+ let t = Mh(e).current, { driver: n = Zf } = e, r, i = Lh(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = jh(t);
+ let n = Nh(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = jh(t);
+ let e = Nh(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -15772,7 +15771,7 @@ var Fh = class extends Xp {
};
}
get group() {
- return jh(Ah(this.options).current);
+ return Nh(Mh(this.options).current);
}
get js() {
return this.driver?.js;
@@ -15792,7 +15791,7 @@ var Fh = class extends Xp {
return this.isAccelerated() ? this.sampleAt(Od.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ xd(n) ? qm(n) : Dh(n) && Jm[n];
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ xd(n) ? qm(n) : Oh(n) && Jm[n];
if (o && !i && !r && e.length === 2 && t === Pp && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
@@ -15823,7 +15822,7 @@ var Fh = class extends Xp {
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || Ih(Ah(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || zh(Mh(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -15843,13 +15842,13 @@ var Fh = class extends Xp {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function Ih(e) {
+function zh(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
for (let s of t === void 0 ? xm : a) {
- let a = r.get(s), c = t === void 0 ? Mh(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ let a = r.get(s), c = t === void 0 ? Fh(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -15857,7 +15856,7 @@ function Ih(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && yh(r, i) || (n += vh(r, i) + " ");
+ t && bh(r, i) || (n += yh(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -15881,34 +15880,32 @@ function Ih(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, S = (e, t, n, r) => {
- let i = Math.min(Sh, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(Ch, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = kh(t, n, i).concat(r).sort(Oh), o = (e) => /* @__PURE__ */ $u(t, n, e), s, c;
- for (let t of e) {
- let e = a.map((e) => t.numberAt(e)), [n] = e, r = e.map((e) => e - n), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * Ch > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
- if (!o) {
- if (l.some((e) => !(Math.abs(e) <= Ch))) return;
- } else if (!s) s = l, c = (e) => (t.numberAt(e) - n) / o;
- else if (l.some((e, t) => !(Math.abs(e - s[t]) <= Ch))) return;
+ let a = jh(t, n, i).concat(r).sort(Ah), o = (e) => /* @__PURE__ */ $u(t, n, e), s, c;
+ for (let n of e) {
+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * wh > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
+ if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;
+ else if (l.some((e, t) => !kh(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => Math.abs(e - o(a[t])) <= Ch)) return "linear";
+ if (!s || s.every((e, t) => kh(e, o(a[t])))) return "linear";
let l = [], u = (e, t = c(e)) => l.push(Yp(t) + " " + Yp(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, C = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? Th : wh))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? Eh : Th))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = kh(t, n, Math.ceil((n - t) / 100));
+ }, s = jh(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(Oh)) e > c && o(c, e, 0), c = e;
- return i.sort(Oh);
+ for (let e of s.sort(Ah)) e > c && o(c, e, 0), c = e;
+ return i.sort(Ah);
}, w = (e) => {
let t;
for (let n of e) {
@@ -15917,10 +15914,10 @@ function Ih(e) {
t = e;
}
return t;
- }, T = (e, t, n, r = { fill: "both" }, i, a) => {
- let o = e.flatMap((e) => e.boundaries(t, n)), s = a || S(e, t, n, o), c = s ? [t, n] : C(e, t, n, o), l = c.map((e) => g(e, i)), u = { transform: l };
- return s || (u.offset = c.map((e) => /* @__PURE__ */ $u(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, i)), u = null), y(u, {
- ...r,
+ }, T = (e, t, n, r, i = { fill: "both" }, a) => {
+ let o = e.flatMap((e) => e.boundaries(t, n)), s = r || S(e, t, n, o), c = s ? [t, n] : C(e, t, n, o), l = c.map((e) => g(e, a)), u = { transform: l };
+ return s || (u.offset = c.map((e) => /* @__PURE__ */ $u(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), y(u, {
+ ...i,
duration: n - t,
easing: s || "linear"
});
@@ -15949,18 +15946,18 @@ function Ih(e) {
}
i = {}, a = xm.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = Mh(e, t);
- return n !== void 0 && parseFloat(n) !== +!!t.startsWith("scale");
+ let n = i[t] = Fh(e, t);
+ return n !== void 0 && !bh(t, n);
}), v(!1);
let m = !l && w(d);
try {
if (m && m[1] > t) {
let [e, n, r] = m;
- b(T(d, e, n, void 0, void 0, r), e - t, n - e);
+ b(T(d, e, n, r), e - t, n - e);
} else c > t && (b(T(d, t, c), 0, c - t), p.forEach((e) => e < c - 1 && b(y(null, { duration: e - t }), 0, e - t)));
if (l) {
let e = u + Math.floor((c - u) / l) * l;
- b(T(f, e, e + l, {
+ b(T(f, e, e + l, void 0, {
iterations: Infinity,
iterationStart: (c - e) / l,
fill: "forwards"
@@ -15996,20 +15993,18 @@ function Ih(e) {
r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);
}
return !0;
- }, O = () => !n.size && (u = !0, jh(t) === A && xh.delete(t), A.isJS || v(), !0), k = () => {
+ }, O = () => !n.size && (u = !0, Nh(t) === A && Sh.delete(t), A.isJS || v(), !0), k = () => {
let t = Od.now();
if (A.isJS || (A.isFinishing = !0, n.forEach((n) => {
let [r, a] = n.timing();
- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = Mh(e, n.name), o.has(n) || (c = !0));
- }), A.isFinishing = !1), l = !1, u || (n.forEach(({ state: e }, t) => {
- (e === "idle" || e === "finished") && n.delete(t);
- }), O())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = Fh(e, n.name), o.has(n) || (c = !0));
+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => Ph(e) && n.delete(e)), O())) return;
for (let e of n) if (!e.canAccelerate) return A.demote(!0);
A.isJS && (A.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
let r = c, a = d;
if (c = d = !1, r || !D(t)) {
if (a) {
- if (t - f < Eh) return A.demote();
+ if (t - f < Dh) return A.demote();
f = t;
}
if (!E(t)) return A.demote();
@@ -16022,12 +16017,11 @@ function Ih(e) {
u || (c ||= e, d ||= !!t, l || (l = !0, Td.isProcessing ? Jf.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
- let { state: t } = e;
- (t === "idle" || t === "finished") && n.delete(e), O() || A.schedule(!0);
+ Ph(e) && n.delete(e), O() || A.schedule(!0);
},
check() {
if (!A.isJS) {
- for (let t in i) if (Mh(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
+ for (let t in i) if (Fh(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
}
},
demote(e) {
@@ -16036,10 +16030,10 @@ function Ih(e) {
}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return xh.set(t, A), A;
+ return Sh.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var Lh = class extends qp {
+var Bh = class extends qp {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -16059,7 +16053,7 @@ var Lh = class extends qp {
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && ph(n), p = !f && Nh(n);
+ let f = u && !c && mh(n), p = !f && Ih(n);
r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Up(this.createdAt, this.resolvedAt));
let m;
if (f) {
@@ -16069,7 +16063,7 @@ var Lh = class extends qp {
} catch {
m = new Xp(n);
}
- } else m = p ? new Fh(n) : new Xp(n);
+ } else m = p ? new Rh(n) : new Xp(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -16123,7 +16117,7 @@ var Lh = class extends qp {
cancel() {
this._animation?.cancel(), this.keyframeResolver?.cancel();
}
-}, Rh = class {
+}, Vh = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -16163,10 +16157,10 @@ var Lh = class extends qp {
return this.getAll("startTime");
}
get duration() {
- return zh(this.animations, "duration");
+ return Hh(this.animations, "duration");
}
get iterationDuration() {
- return zh(this.animations, "iterationDuration");
+ return Hh(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -16184,7 +16178,7 @@ var Lh = class extends qp {
this.runAll("complete");
}
};
-function zh(e, t) {
+function Hh(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -16193,22 +16187,22 @@ function zh(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var Bh = class extends Rh {
+var Uh = class extends Vh {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, Vh = /* @__PURE__ */ new WeakMap(), Hh = (e, t = "") => `${e}:${t}`;
-function Uh(e) {
- let t = Vh.get(e);
- return t || (t = /* @__PURE__ */ new Map(), Vh.set(e, t)), t;
+}, Wh = /* @__PURE__ */ new WeakMap(), Gh = (e, t = "") => `${e}:${t}`;
+function Kh(e) {
+ let t = Wh.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), Wh.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function Wh(e, t, n, r = 0, i = 1) {
+function qh(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
// node_modules/motion-dom/dist/es/value/index.mjs
-var Gh = 30, Kh = (e) => !isNaN(parseFloat(e)), qh = { current: void 0 }, Jh = class {
+var Jh = 30, Yh = (e) => !isNaN(parseFloat(e)), Xh = { current: void 0 }, Zh = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
let t = Od.now();
@@ -16216,7 +16210,7 @@ var Gh = 30, Kh = (e) => !isNaN(parseFloat(e)), qh = { current: void 0 }, Jh = c
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = Od.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Kh(this.current));
+ this.current = e, this.updatedAt = Od.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Yh(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -16253,7 +16247,7 @@ var Gh = 30, Kh = (e) => !isNaN(parseFloat(e)), qh = { current: void 0 }, Jh = c
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
}
jump(e, t = !0) {
- this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, t && this.stop(), this.stopPassiveEffect?.();
+ t && (this.updatedAt = Od.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
}
dirty() {
let { current: e, changeSubscriber: t } = this;
@@ -16266,7 +16260,7 @@ var Gh = 30, Kh = (e) => !isNaN(parseFloat(e)), qh = { current: void 0 }, Jh = c
this.dependents?.delete(e);
}
get() {
- qh.current?.push(this);
+ Xh.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -16278,8 +16272,8 @@ var Gh = 30, Kh = (e) => !isNaN(parseFloat(e)), qh = { current: void 0 }, Jh = c
}
getVelocity() {
let e = Od.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Gh) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, Gh);
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Jh) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, Jh);
return /* @__PURE__ */ rd(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
@@ -16301,11 +16295,11 @@ var Gh = 30, Kh = (e) => !isNaN(parseFloat(e)), qh = { current: void 0 }, Jh = c
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function Yh(e, t) {
- return new Jh(e, t);
+function Qh(e, t) {
+ return new Zh(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function Xh(e, t) {
+function $h(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -16316,25 +16310,25 @@ function Xh(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function Zh(e, t) {
+function eg(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : Xh(n, e);
+ return n === e ? n : $h(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var Qh = {
+var tg = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, $h = (e) => ({
+}, ng = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), eg = {
+}), rg = {
type: "keyframes",
duration: .8
-}, tg = {
+}, eee = {
type: "keyframes",
ease: [
.25,
@@ -16343,7 +16337,7 @@ var Qh = {
1
],
duration: .3
-}, ng = (e, { keyframes: t }) => t.length > 2 ? eg : Sm.has(e) ? e.startsWith("scale") ? $h(t[1]) : Qh : tg, rg = /* @__PURE__ */ new Set([
+}, tee = (e, { keyframes: t }) => t.length > 2 ? rg : Sm.has(e) ? e.startsWith("scale") ? ng(t[1]) : tg : eee, nee = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -16354,15 +16348,16 @@ var Qh = {
"repeatDelay",
"from",
"elapsed",
- "out"
+ "out",
+ "mixer"
]);
-function eee(e) {
- for (let t in e) if (!rg.has(t)) return !0;
+function ree(e) {
+ for (let t in e) if (!nee.has(t)) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
var ig = (e, t, n, r = {}, i, a) => (o) => {
- let s = Zh(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ let s = eg(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
l -= /* @__PURE__ */ td(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
@@ -16381,7 +16376,7 @@ var ig = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- eee(s) || Object.assign(u, ng(e, u)), u.duration &&= /* @__PURE__ */ td(u.duration), u.repeatDelay &&= /* @__PURE__ */ td(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ ree(s) || Object.assign(u, tee(e, u)), u.duration &&= /* @__PURE__ */ td(u.duration), u.repeatDelay &&= /* @__PURE__ */ td(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (sh(u), u.delay === 0 && (d = !0)), (Ku.instantAnimations || Ku.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, sh(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
let e = zp(u.keyframes, s);
@@ -16392,16 +16387,16 @@ var ig = (e, t, n, r = {}, i, a) => (o) => {
return;
}
}
- return s.isSync ? new Xp(u) : new Lh(u);
-}, tee = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function nee(e) {
- let t = tee.exec(e);
+ return s.isSync ? new Xp(u) : new Bh(u);
+}, iee = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function aee(e) {
+ let t = iee.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
function ag(e, t, n = 1) {
- let [r, i] = nee(e);
+ let [r, i] = aee(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
@@ -16411,14 +16406,14 @@ function ag(e, t, n = 1) {
return Nd(i) ? ag(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function ree(e) {
+function oee(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
function og(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...ree(r)) : t;
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...oee(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
@@ -16433,32 +16428,32 @@ var cg = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, lg = /* @_
"right",
"bottom",
...xm
-]), iee = (e) => Array.isArray(e);
+]), see = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function aee(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Yh(n));
+function cee(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Qh(n));
}
-function oee(e) {
- return iee(e) ? e[e.length - 1] || 0 : e;
+function lee(e) {
+ return see(e) ? e[e.length - 1] || 0 : e;
}
-function see(e, t) {
+function uee(e, t) {
let { transitionEnd: n = {}, transition: r = {}, ...i } = sg(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) aee(e, t, oee(i[t]));
+ for (let t in i) cee(e, t, lee(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
var ug = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function cee(e) {
+function dee(e) {
return !!(ug(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
function dg(e, t) {
let n = e.getValue("willChange");
- if (cee(n)) return n.add(t);
+ if (dee(n)) return n.add(t);
if (!n && Ku.WillChange) {
let n = new Ku.WillChange("auto");
e.addValue("willChange", n), n.add(t);
@@ -16471,24 +16466,24 @@ function pg(e) {
return e.props[fg];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var lee = typeof window < "u";
-function uee({ protectedKeys: e, needsAnimating: t }, n) {
+var fee = typeof window < "u";
+function pee({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
function mg(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? Xh(a, c) : c;
+ a = a ? $h(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && uee(f, t)) continue;
+ if (i === void 0 || f && pee(f, t)) continue;
let o = {
delay: n,
- ...Zh(f?.out[t] || a || {}, t)
+ ...eg(f?.out[t] || a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
@@ -16497,7 +16492,7 @@ function mg(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
continue;
}
let p = !1;
- if (lee && window.MotionHandoffAnimation) {
+ if (fee && window.MotionHandoffAnimation) {
let n = pg(e);
if (n) {
let e = window.MotionHandoffAnimation(n, t, Jf);
@@ -16512,7 +16507,7 @@ function mg(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
if (o) {
let t = () => Jf.update(() => {
- o && see(e, o);
+ o && uee(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -16525,51 +16520,51 @@ function hg(e, t, n = {}) {
return a?.forEach((e) => {
e.notify("AnimationStart", t), l.push(hg(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + Wh(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + qh(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function dee(e, t, n = {}) {
+function mee(e, t, n = {}) {
return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => hg(e, t, n))) : typeof t == "string" ? hg(e, t, n) : Promise.all(mg(e, sg(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
// node_modules/motion-dom/dist/es/value/types/auto.mjs
-var fee = {
+var gg = {
test: (e) => e === "auto",
parse: (e) => e
-}, pee = (e) => (t) => t.test(e), mee = [
+}, hee = (e) => (t) => t.test(e), gee = [
Id,
W,
Qd,
Zd,
ef,
$d,
- fee
-], gg = (e) => mee.find(pee(e));
+ gg
+], _g = (e) => gee.find(hee(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function hee(e) {
+function _ee(e) {
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Yu(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var gee = /* @__PURE__ */ new Set([
+var vee = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function _ee(e, t, n) {
+function yee(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !gee.has(t) && hf(t) && (i = e[r]), r++;
+ typeof t == "string" && !vee.has(t) && hf(t) && (i = e[r]), r++;
}
if (i && n) for (let r of t) e[r] !== i && (e[r] = cm(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var _g = class extends Bm {
+var vg = class extends Bm {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -16597,7 +16592,7 @@ var _g = class extends Bm {
if (this.resolveNoneKeyframes(), !lg.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = gg(r), o = gg(i);
+ let a = _g(r), o = _g(i);
if (Fd(r) !== Fd(i) && jm[n]) this.needsMeasurement = !0;
else if (a !== o) {
if (Cm(a) && Cm(o)) for (let t = 0; t < e.length; t++) {
@@ -16609,8 +16604,8 @@ var _g = class extends Bm {
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || hee(e[t])) && n.push(t);
- n.length && _ee(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || _ee(e[t])) && n.push(t);
+ n.length && yee(e, n, t);
}
measure() {
let { element: e, name: t } = this;
@@ -16630,19 +16625,19 @@ var _g = class extends Bm {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, vg = [
+}, yg = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], vee = /* @__PURE__ */ new Set([
+], bee = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...vg,
+ ...yg,
"width",
"maxWidth",
"height",
@@ -16685,21 +16680,21 @@ var _g = class extends Bm {
"backgroundPositionY"
]);
// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function yee(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && vee.has(t) && (e[n] = e[n] + "px");
+function xee(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && bee.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var yg = [];
-function bee(e) {
- bg(e), yg.unshift(e);
+var bg = [];
+function See(e) {
+ xg(e), bg.unshift(e);
}
-function bg(e) {
- Wu(yg, e);
+function xg(e) {
+ Wu(bg, e);
}
-function xee(e) {
- return yg.find((t) => t.test(e));
+function Cee(e) {
+ return bg.find((t) => t.test(e));
}
-function xg(e, t, n = {}, r) {
+function Sg(e, t, n = {}, r) {
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
for (let o in t) {
@@ -16718,50 +16713,50 @@ function xg(e, t, n = {}, r) {
}
return i;
}
-function Sg(e, t, n, r, i) {
- return xg((r) => {
+function Cg(e, t, n, r, i) {
+ return Sg((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = See(i) ?? e.read(t, r, i);
+ o = wee(i) ?? e.read(t, r, i);
}
- a = Yh(o, { owner: i }), e(t, { [r]: a });
+ a = Qh(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function See(e) {
+function wee(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function Cg(e) {
+function wg(e) {
return Ju(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function wg(e) {
+function Tg(e) {
return Ju(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var Tg = {};
-function Eg(e) {
- return Tg.current?.add(e), e;
+var Eg = {};
+function Dg(e) {
+ return Eg.current?.add(e), e;
}
-var Dg = (e) => Tg.current ? Tg.current.bind(e) : e;
+var Og = (e) => Eg.current ? Eg.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Og(e, t, n) {
+function kg(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : Tg.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Eg.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
return i ? Array.from(i) : [];
}
return Array.from(e).filter((e) => e != null);
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Cee = class {
+var Tee = class {
constructor(e = Jf.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
@@ -16805,10 +16800,10 @@ var Cee = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function kg(e, { step: t, ...n } = {}) {
+function Ag(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Cee(t);
+ let a = r.get(n) ?? new Tee(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -16825,83 +16820,83 @@ function kg(e, { step: t, ...n } = {}) {
});
}
// node_modules/motion-dom/dist/es/effects/style/transform.mjs
-function wee(e) {
+function Eee(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (yh(i, a) || (t += (t && " ") + vh(i, a)));
+ a !== void 0 && (bh(i, a) || (t += (t && " ") + yh(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + vh("rotate", i)), t || "none";
+ return i && (t += (t && " ") + yh("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Ag = /* @__PURE__ */ new Set([
+var jg = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), jg = (e, t) => mh(e.get(t)?.get(), im[t]), Mg = (e, t, n, r) => {
+]), Mg = (e, t) => hh(e.get(t)?.get(), im[t]), Ng = (e, t, n, r) => {
let i, a;
if (Sm.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
(t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => xm.indexOf(e) - xm.indexOf(t)));
}
- t.get("transform") || (!Cg(e) && !t.get("transformBox") && Mg(e, t, "transformBox", new Jh("fill-box")), t.set("transform", new Jh("none"), () => {
- xh.get(e)?.check(), e.style.transform = wee(t);
+ t.get("transform") || (!wg(e) && !t.get("transformBox") && Ng(e, t, "transformBox", new Zh("fill-box")), t.set("transform", new Zh("none"), () => {
+ Sh.get(e)?.check(), e.style.transform = Eee(t);
})), a = t.get("transform");
- } else Ag.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new Jh(""), () => {
- let n = jg(t, "originX") ?? "50%", r = jg(t, "originY") ?? "50%", i = jg(t, "originZ") ?? 0;
+ } else jg.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new Zh(""), () => {
+ let n = Mg(t, "originX") ?? "50%", r = Mg(t, "originY") ?? "50%", i = Mg(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
}), a = t.get("transformOrigin")) : i = Vm(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = mh(r.getCurrent(), im[n]);
+ e.style[n] = hh(r.getCurrent(), im[n]);
};
return t.set(n, r, i, a);
-}, Tee = (e) => Cg(e) || wg(e), Ng = (e, t) => {
+}, Dee = (e) => wg(e) || Tg(e), Pg = (e, t) => {
if (Sm.has(t)) return bm(e, t);
let n = getComputedStyle(e), r = Vm(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, Eee = /*@__PURE__*/ kg(Mg, {
- test: Tee,
- read: Ng
+}, Oee = /*@__PURE__*/ Ag(Ng, {
+ test: Dee,
+ read: Pg
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Pg(e) {
+function Fg(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Fg(e, t, n) {
+function Ig(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
if (Sm.has(e)) o = !0;
else if (jd(e)) i[e] = n;
else {
- let t = mh(n, im[e]);
+ let t = hh(n, im[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = bh(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = xh(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var Dee = {
+var kee = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, Oee = {
+}, Aee = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function kee(e, t, n = 1, r = 0, i = !0) {
+function jee(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? Dee : Oee;
+ let a = i ? kee : Aee;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Ig = [
+var Lg = [
"transform",
"opacity",
"clipPath",
@@ -16911,52 +16906,55 @@ var Ig = [
"offsetRotate",
"offsetAnchor"
];
-function Lg(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Fg(e, s, l), c) {
+function Rg(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Ig(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of Ig) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && kee(d, i, a, o, !1);
+ for (let e of Lg) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && jee(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function Aee(e, t) {
+function Mee(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Rg = (e, t, n, r, i = n) => {
- let a = Aee(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Pg(i));
+var zg = (e, t, n, r, i = n) => {
+ let a = Mee(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Fg(i));
let o = im[n] || im[i], s = a ? () => {
- e[i] = mh(r.get(), im[n]);
+ e[i] = hh(r.get(), im[n]);
} : () => {
- let t = mh(r.get(), o);
+ let t = hh(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function jee(e, t, n, r) {
+function Nee(e, t, n, r) {
return Jf.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new Jh("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new Zh("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var Mee = /*@__PURE__*/ kg((e, t, n, r) => n.startsWith("path") && !Sm.has(n) ? jee(e, t, n, r) : n.startsWith("attr") ? Rg(e, t, n, r, zg(n)) : (Sm.has(n) || Ag.has(n) || Vm(n) || n in e.style ? Mg : Rg)(e, t, n, r), {
- test: wg,
- read: (e, t) => Sm.has(t) ? im[t]?.default || 0 : Vm(t) || Ig.includes(t) ? Ng(e, t) || e.getAttribute(Pg(t)) || 0 : (t = zg(t), e.getAttribute(Pg(t)) ?? e.getAttribute(t) ?? void 0)
+var Pee = /*@__PURE__*/ Ag((e, t, n, r) => n.startsWith("path") && !Sm.has(n) ? Nee(e, t, n, r) : n.startsWith("attr") ? zg(e, t, n, r, Bg(n)) : n === "d" ? t.set(n, r, () => {
+ let t = r.get()?.replace(/path\(|["')]/g, "");
+ t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
+}) : (Sm.has(n) || jg.has(n) || Vm(n) || n in e.style ? Ng : zg)(e, t, n, r), {
+ test: Tg,
+ read: (e, t) => Sm.has(t) ? im[t]?.default || 0 : Vm(t) || Lg.includes(t) ? Pg(e, t) || e.getAttribute(Fg(t)) || 0 : (t = Bg(t), e.getAttribute(Fg(t)) ?? e.getAttribute(t) ?? void 0)
});
-function zg(e) {
+function Bg(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function Bg({ top: e, left: t, right: n, bottom: r }) {
+function Vg({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -16968,7 +16966,7 @@ function Bg({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function Nee({ x: e, y: t }) {
+function Fee({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -16976,7 +16974,7 @@ function Nee({ x: e, y: t }) {
left: e.min
};
}
-function Pee(e, t) {
+function Iee(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -16993,13 +16991,13 @@ function Pee(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Vg(e) {
+function Hg(e) {
return e === void 0 || e === 1;
}
-function Hg({ scale: e, scaleX: t, scaleY: n }) {
- return !Vg(e) || !Vg(t) || !Vg(n);
+function Ug({ scale: e, scaleX: t, scaleY: n }) {
+ return !Hg(e) || !Hg(t) || !Hg(n);
}
-var Ug = [
+var Wg = [
"rotate",
"rotateX",
"rotateY",
@@ -17007,65 +17005,67 @@ var Ug = [
"skewX",
"skewY"
];
-function Wg(e) {
- return Hg(e) || Kg(e) || Gg(e);
-}
function Gg(e) {
- return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
+ return Ug(e) || qg(e) || Kg(e);
}
function Kg(e) {
- return qg(e.x) || qg(e.y);
+ return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
function qg(e) {
+ return Jg(e.x) || Jg(e.y);
+}
+function Jg(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function Jg(e, t, n) {
+function Yg(e, t, n) {
return n + t * (e - n);
}
-function Yg(e, t, n, r, i) {
- return i !== void 0 && (e = Jg(e, i, r)), Jg(e, n, r) + t;
+function Xg(e, t, n, r, i) {
+ return i !== void 0 && (e = Yg(e, i, r)), Yg(e, n, r) + t;
}
-function Xg(e, t = 0, n = 1, r, i) {
- e.min = Yg(e.min, t, n, r, i), e.max = Yg(e.max, t, n, r, i);
+function Zg(e, t = 0, n = 1, r, i) {
+ e.min = Xg(e.min, t, n, r, i), e.max = Xg(e.max, t, n, r, i);
}
-function Zg(e, { x: t, y: n }) {
- Xg(e.x, t.translate, t.scale, t.originPoint), Xg(e.y, n.translate, n.scale, n.originPoint);
+function Qg(e, { x: t, y: n }) {
+ Zg(e.x, t.translate, t.scale, t.originPoint), Zg(e.y, n.translate, n.scale, n.originPoint);
}
-var Qg = .999999999999, $g = 1.0000000000001;
-function Fee(e, t, n, r = !1) {
+var $g = .999999999999, e_ = 1.0000000000001;
+function Lee(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
let a, o;
- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (e_(e.x, -a.scroll.offset.x), e_(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, Zg(e, o)), r && (r.path?.[s] || r) !== a && Wg(a.latestValues) && r_(e, a.latestValues, a.layout?.layoutBox));
- t.x < $g && t.x > Qg && (t.x = 1), t.y < $g && t.y > Qg && (t.y = 1);
+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (t_(e.x, -a.scroll.offset.x), t_(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, Qg(e, o)), r && (r.path?.[s] || r) !== a && Gg(a.latestValues) && i_(e, a.latestValues, a.layout?.layoutBox));
+ t.x < e_ && t.x > $g && (t.x = 1), t.y < e_ && t.y > $g && (t.y = 1);
}
-function e_(e, t) {
+function t_(e, t) {
e.min += t, e.max += t;
}
-function t_(e, t, n, r, i = .5) {
- Xg(e, t, n, Df(e.min, e.max, i), r);
+function n_(e, t, n, r, i = .5) {
+ Zg(e, t, n, Df(e.min, e.max, i), r);
}
-function n_(e, t) {
+function r_(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function r_(e, t, n) {
+function i_(e, t, n) {
let r = n ?? e;
- t_(e.x, n_(t.x, r.x), t.scaleX, t.scale, t.originX), t_(e.y, n_(t.y, r.y), t.scaleY, t.scale, t.originY);
+ n_(e.x, r_(t.x, r.x), t.scaleX, t.scale, t.originX), n_(e.y, r_(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function i_(e, t) {
- return Bg(Pee(e.getBoundingClientRect(), t));
+function a_(e, t) {
+ return Vg(Iee(e.getBoundingClientRect(), t));
}
-function Iee(e, t, n) {
- let r = i_(e, n), { scroll: i } = t;
- return i && (e_(r.x, i.offset.x), e_(r.y, i.offset.y)), r;
+function Ree(e, t, n) {
+ let r = a_(e, n), { scroll: i } = t;
+ return i && (t_(r.x, i.offset.x), t_(r.y, i.offset.y)), r;
}
-// node_modules/motion-dom/dist/es/animation/animate/element.mjs
-var Lee = {}, Ree = (e) => wg(e) ? Mee : Eee, zee = class {
+var zee = () => ({
+ x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
+ y: document.documentElement.scrollTop || document.body?.scrollTop || 0
+}), Bee = {}, Vee = (e) => Tg(e) ? Pee : Oee, Hee = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = _g;
+ this.effect = e, this.current = t, this.KeyframeResolver = vg;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -17077,19 +17077,19 @@ var Lee = {}, Ree = (e) => wg(e) ? Mee : Eee, zee = class {
this.effect.flush(this.current);
}
measureViewportBox() {
- return i_(this.current);
+ return a_(this.current);
}
getProps() {
- return Lee;
+ return Bee;
}
};
-function Bee(e, t, n, r) {
- if (Tg.current?.track(e), r) return xg((e) => r.getValue(e, null), t, n, r);
- let i = Ree(e);
- return Sg(i, e, t, n, new zee(i, e));
+function Uee(e, t, n, r) {
+ if (Eg.current?.track(e), r) return Sg((e) => r.getValue(e, null), t, n, r);
+ let i = Vee(e);
+ return Cg(i, e, t, n, new Hee(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var Vee = /*@__PURE__*/ kg((e, t, n, r) => t.set(n, r, () => {
+var o_ = /*@__PURE__*/ Ag((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
test: (e) => Ju(e),
@@ -17097,159 +17097,172 @@ var Vee = /*@__PURE__*/ kg((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: a_, cancel: Hee } = /* @__PURE__ */ qf(queueMicrotask, !1);
+}), { schedule: s_, cancel: Wee } = /* @__PURE__ */ qf(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function o_(e, t, n) {
- let r = ug(e) ? e : Yh(e);
+function c_(e, t, n) {
+ let r = ug(e) ? e : Qh(e);
return r.start(ig("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var s_ = {}, c_ = {
+var l_ = {}, u_ = {
value: null,
- addProjectionMetrics: null
+ addProjectionMetrics: null,
+ countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function Uee(e, t) {
+function Gee(e, t) {
let n = Od.now();
- e = Dg(e);
+ e = Og(e);
let r = ({ timestamp: i }) => {
let a = i - n;
a >= t && (Yf(r), e(a - t));
};
- return Jf.setup(r, !0), Eg(() => Yf(r));
+ return Jf.setup(r, !0), Dg(() => Yf(r));
+}
+// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
+function Kee(e) {
+ return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function Wee(e) {
- return wg(e) && e.tagName === "svg";
+function qee(e) {
+ return Tg(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function l_(e) {
+function d_(e) {
return ug(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var u_ = (e) => typeof e == "number" ? e : parseFloat(e), Gee = vg.length, d_ = (e) => typeof e == "number" || W.test(e);
-function Kee(e, t, n, r, i, a) {
- i ? (e.opacity = Df(0, n.opacity ?? 1, qee(r)), e.opacityExit = Df(t.opacity ?? 1, 0, Jee(r))) : a && (e.opacity = Df(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < Gee; i++) {
- let a = vg[i], o = f_(t, a), s = f_(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || d_(o) === d_(s) ? (e[a] = Math.max(Df(u_(o), u_(s), r), 0), (Qd.test(s) || Qd.test(o)) && (e[a] += "%")) : e[a] = s);
- }
- for (let i = 0; i < Ug.length; i++) {
- let a = Ug[i];
+var f_ = (e) => typeof e == "number" ? e : parseFloat(e), Jee = yg.length, p_ = (e) => typeof e == "number" || W.test(e);
+function Yee(e, t, n, r, i, a) {
+ i ? (e.opacity = Df(0, n.opacity ?? 1, Xee(r)), e.opacityExit = Df(t.opacity ?? 1, 0, Zee(r))) : a && (e.opacity = Df(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < Jee; i++) {
+ let a = yg[i], o = m_(t, a), s = m_(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || p_(o) === p_(s) ? (e[a] = Math.max(Df(f_(o), f_(s), r), 0), (Qd.test(s) || Qd.test(o)) && (e[a] += "%")) : e[a] = s);
+ }
+ for (let i = 0; i < Wg.length; i++) {
+ let a = Wg[i];
(t[a] || n[a]) && (e[a] = Df(t[a] || 0, n[a] || 0, r));
}
}
-function f_(e, t) {
+function m_(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var qee = /*@__PURE__*/ p_(0, .5, md), Jee = /*@__PURE__*/ p_(.5, .95, Zu);
-function p_(e, t, n) {
+var Xee = /*@__PURE__*/ h_(0, .5, md), Zee = /*@__PURE__*/ h_(.5, .95, Zu);
+function h_(e, t, n) {
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ $u(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function m_(e, t) {
+function g_(e, t) {
e.min = t.min, e.max = t.max;
}
-function h_(e, t) {
- m_(e.x, t.x), m_(e.y, t.y);
+function __(e, t) {
+ g_(e.x, t.x), g_(e.y, t.y);
}
-function g_(e, t) {
+function v_(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Yee = .9999, Xee = 1.0001, Zee = -.01, Qee = .01;
-function __(e) {
+var Qee = .9999, $ee = 1.0001, ete = -.01, tte = .01;
+function y_(e) {
return e.max - e.min;
}
-function $ee(e, t, n) {
+function nte(e, t, n) {
return Math.abs(e - t) <= n;
}
-function v_(e, t, n, r = .5) {
- e.origin = r, e.originPoint = Df(t.min, t.max, e.origin), e.scale = __(n) / __(t), e.translate = Df(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Yee && e.scale <= Xee || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Zee && e.translate <= Qee || isNaN(e.translate)) && (e.translate = 0);
+function b_(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = Df(t.min, t.max, e.origin), e.scale = y_(n) / y_(t), e.translate = Df(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Qee && e.scale <= $ee || isNaN(e.scale)) && (e.scale = 1), (e.translate >= ete && e.translate <= tte || isNaN(e.translate)) && (e.translate = 0);
}
-function y_(e, t, n, r) {
- v_(e.x, t.x, n.x, r?.originX), v_(e.y, t.y, n.y, r?.originY);
+function x_(e, t, n, r) {
+ b_(e.x, t.x, n.x, r?.originX), b_(e.y, t.y, n.y, r?.originY);
}
-function b_(e, t, n, r = 0) {
- e.min = (r ? Df(n.min, n.max, r) : n.min) + t.min, e.max = e.min + __(t);
+function S_(e, t, n, r = 0) {
+ e.min = (r ? Df(n.min, n.max, r) : n.min) + t.min, e.max = e.min + y_(t);
}
-function ete(e, t, n, r) {
- b_(e.x, t.x, n.x, r?.x), b_(e.y, t.y, n.y, r?.y);
+function rte(e, t, n, r) {
+ S_(e.x, t.x, n.x, r?.x), S_(e.y, t.y, n.y, r?.y);
}
-function x_(e, t, n, r = 0) {
+function C_(e, t, n, r = 0) {
let i = r ? Df(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + __(t);
+ e.min = t.min - i, e.max = e.min + y_(t);
}
-function S_(e, t, n, r) {
- x_(e.x, t.x, n.x, r?.x), x_(e.y, t.y, n.y, r?.y);
+function w_(e, t, n, r) {
+ C_(e.x, t.x, n.x, r?.x), C_(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function C_(e, t, n, r, i) {
- return e -= t, e = Jg(e, 1 / n, r), i !== void 0 && (e = Jg(e, 1 / i, r)), e;
+function T_(e, t, n, r, i) {
+ return e -= t, e = Yg(e, 1 / n, r), i !== void 0 && (e = Yg(e, 1 / i, r)), e;
}
-function tte(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+function ite(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
if (Qd.test(t) && (t = parseFloat(t), t = Df(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = Df(a.min, a.max, r);
- e === a && (s -= t), e.min = C_(e.min, t, n, s, i), e.max = C_(e.max, t, n, s, i);
+ e === a && (s -= t), e.min = T_(e.min, t, n, s, i), e.max = T_(e.max, t, n, s, i);
}
-function w_(e, t, [n, r, i], a, o) {
- tte(e, t[n], t[r], t[i], t.scale, a, o);
+function E_(e, t, [n, r, i], a, o) {
+ ite(e, t[n], t[r], t[i], t.scale, a, o);
}
-var T_ = [
+var ate = [
"x",
"scaleX",
"originX"
-], E_ = [
+], ote = [
"y",
"scaleY",
"originY"
];
function D_(e, t, n, r) {
- w_(e.x, t, T_, n?.x, r?.x), w_(e.y, t, E_, n?.y, r?.y);
+ E_(e.x, t, ate, n?.x, r?.x), E_(e.y, t, ote, n?.y, r?.y);
+}
+// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
+var O_ = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), k_ = O_("applewebkit/") && !O_("chrome/") ? Math.round : Zu;
+function A_(e) {
+ e.min = k_(e.min), e.max = k_(e.max);
+}
+function ste(e) {
+ A_(e.x), A_(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var O_ = () => ({
+var j_ = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), k_ = () => ({
- x: O_(),
- y: O_()
-}), A_ = () => ({
+}), M_ = () => ({
+ x: j_(),
+ y: j_()
+}), N_ = () => ({
min: 0,
max: 0
-}), j_ = () => ({
- x: A_(),
- y: A_()
+}), P_ = () => ({
+ x: N_(),
+ y: N_()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function M_(e) {
+function F_(e) {
return e.translate === 0 && e.scale === 1;
}
-function N_(e) {
- return M_(e.x) && M_(e.y);
+function I_(e) {
+ return F_(e.x) && F_(e.y);
}
-function P_(e, t) {
+function L_(e, t) {
return e.min === t.min && e.max === t.max;
}
-function F_(e, t) {
- return P_(e.x, t.x) && P_(e.y, t.y);
+function cte(e, t) {
+ return L_(e.x, t.x) && L_(e.y, t.y);
}
-function I_(e, t) {
+function R_(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function L_(e, t) {
- return I_(e.x, t.x) && I_(e.y, t.y);
+function z_(e, t) {
+ return R_(e.x, t.x) && R_(e.y, t.y);
}
-function R_(e) {
- return __(e.x) / __(e.y);
+function B_(e) {
+ return y_(e.x) / y_(e.y);
}
-function z_(e, t) {
+function V_(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
// node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var nte = class {
+var lte = class {
constructor() {
this.members = [];
}
@@ -17297,22 +17310,22 @@ var nte = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function B_(e, t) {
+function H_(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var V_ = { correct: (e, t) => {
+var U_ = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (W.test(e)) e = parseFloat(e);
else return e;
}
- return `${B_(e, t.target.x)}% ${B_(e, t.target.y)}%`;
-} }, rte = {
- borderRadius: /* @__PURE__ */ Object.assign({}, V_, { applyTo: /* @__PURE__ */ vg.slice() }),
- borderTopLeftRadius: V_,
- borderTopRightRadius: V_,
- borderBottomLeftRadius: V_,
- borderBottomRightRadius: V_,
+ return `${H_(e, t.target.x)}% ${H_(e, t.target.y)}%`;
+} }, ute = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, U_, { applyTo: /* @__PURE__ */ yg.slice() }),
+ borderTopLeftRadius: U_,
+ borderTopRightRadius: U_,
+ borderBottomLeftRadius: U_,
+ borderBottomRightRadius: U_,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
let r = e, i = Cf.parse(e);
if (i.length > 5) return r;
@@ -17323,13 +17336,13 @@ var V_ = { correct: (e, t) => {
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function ite(e, t, n) {
+function dte(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e } = n;
e && (r = `perspective(${e}px) ${r}`);
- for (let e = 0; e < Ug.length; e++) {
- let t = Ug[e], i = n[t];
+ for (let e = 0; e < Wg.length; e++) {
+ let t = Wg[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -17337,11 +17350,11 @@ function ite(e, t, n) {
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
}
// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function H_(e) {
+function W_(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var ate = (e, t) => e.depth - t.depth, ote = class {
+var fte = (e, t) => e.depth - t.depth, pte = class {
constructor() {
this.children = [], this.isDirty = !1;
}
@@ -17352,26 +17365,22 @@ var ate = (e, t) => e.depth - t.depth, ote = class {
Wu(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(ate), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(fte), this.isDirty = !1, this.children.forEach(e);
}
-}, U_ = {
+}, G_ = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, W_ = {
- nodes: 0,
- calculatedTargetDeltas: 0,
- calculatedProjections: 0
-}, G_ = [
+}, K_ = [
"z",
"skew",
"skewZ"
-], ste = 1e3, cte = 0;
-function K_(e, t, n, r) {
+], mte = 1e3, hte = 0;
+function q_(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var q_ = (e) => e.instance && xh.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function J_(e) {
+var J_ = (e) => e.instance && Sh.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function Y_(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
@@ -17381,24 +17390,44 @@ function J_(e) {
window.MotionCancelOptimisedAnimation(n, "transform", Jf, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && J_(r);
+ r && !r.hasCheckedOptimisedAppear && Y_(r);
}
-function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(s_, {
- ...rte,
- ...s_
+function X_(e) {
+ if (e) return e.options.allowProjection === !1 ? X_(e.parent) : e.projection;
+}
+function Z_({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(l_, {
+ ...ute,
+ ...l_
}), class {
+ static create(e, t, n) {
+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : X_(e.parent));
+ d.setOptions({
+ layoutId: r,
+ layout: i,
+ alwaysMeasureLayout: !!a || o && Kee(o),
+ visualElement: e,
+ animationType: typeof i == "string" ? i : "both",
+ initialPromotionConfig: n,
+ crossfade: u,
+ layoutScroll: s,
+ layoutRoot: c,
+ layoutAnchor: l
+ });
+ let f = d.getStack()?.lead;
+ f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
+ }
constructor(e = {}, n = t?.()) {
- this.id = cte++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = hte++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, c_.value && (W_.nodes = W_.calculatedTargetDeltas = W_.calculatedProjections = 0), this.nodes.forEach(dte), this.nodes.forEach(yte), this.nodes.forEach(bte), this.nodes.forEach(fte), c_.addProjectionMetrics && c_.addProjectionMetrics(W_);
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(vte), this.nodes.forEach(sv), this.nodes.forEach(cv), this.nodes.forEach(yte), u_.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new ote());
+ this.root === this && (this.nodes = new pte());
}
addEventListener(e, t) {
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new ed()), this.eventHandlers.get(e).add(t);
@@ -17411,7 +17440,7 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = wg(t) && !Wee(t), this.instance = t;
+ this.isSVG = Tg(t) && !qee(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
@@ -17419,7 +17448,7 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = Uee(i, 250), U_.hasAnimatedSinceResize && (U_.hasAnimatedSinceResize = !1, this.nodes.forEach(Q_)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = Gee(i, 250), G_.hasAnimatedSinceResize && (G_.hasAnimatedSinceResize = !1, this.nodes.forEach(ov)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -17431,16 +17460,16 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || wte, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !L_(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || Ste, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !z_(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...Zh(a, "layout"),
+ ...eg(a, "layout"),
onPlay: o,
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || Q_(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || ov(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
@@ -17457,7 +17486,7 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(xte), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(lv), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -17468,11 +17497,11 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && J_(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- q_(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Y_(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ J_(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, q_(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, J_(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -17482,22 +17511,22 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(mte), this.nodes.forEach(X_);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(ev), this.nodes.forEach($_);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(Z_);
+ this.nodes.forEach(tv);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(gte), this.nodes.forEach(_te), this.nodes.forEach(vte), this.nodes.forEach(lte), this.nodes.forEach(ute)) : this.nodes.forEach(Z_), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(rv), this.nodes.forEach(iv), this.nodes.forEach(av), this.nodes.forEach(gte), this.nodes.forEach(_te)) : this.nodes.forEach(tv), this.clearAllSnapshots();
let e = Od.now();
Td.delta = Gu(0, 1e3 / 60, e - Td.timestamp), Td.timestamp = e, Td.isProcessing = !0, Xf.update.process(Td), Xf.preRender.process(Td), Xf.render.process(Td), Td.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, a_.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, s_.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(pte), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(Q_), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Jf.preRender(this.updateProjection, !1, !0));
@@ -17508,13 +17537,13 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !__(this.snapshot.measuredBox.x) && !__(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !y_(this.snapshot.measuredBox.x) && !y_(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= j_(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= P_(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);
}
@@ -17534,13 +17563,13 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && q_(this);
- let t = this.projectionDelta && !N_(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || Wg(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && J_(this);
+ let t = this.projectionDelta && !I_(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || Gg(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Tte(n), {
+ return e && (n = this.removeTransform(n)), ste(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -17550,42 +17579,42 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return j_();
+ if (!e) return P_();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(Ete))) {
+ if (!(this.scroll?.wasRoot || this.path.some(Cte))) {
let { scroll: e } = this.root;
- e && (e_(t.x, e.offset.x), e_(t.y, e.offset.y));
+ e && (t_(t.x, e.offset.x), t_(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = j_();
- if (h_(t, e), this.scroll?.wasRoot) return t;
+ let t = P_();
+ if (__(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && h_(t, e), e_(t.x, i.offset.x), e_(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && __(t, e), t_(t.x, i.offset.x), t_(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || j_();
- h_(a, e);
+ let a = n || P_();
+ __(a, e);
for (let e = i; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (e_(a.x, -n.scroll.offset.x), e_(a.y, -n.scroll.offset.y)), Wg(n.latestValues) && r_(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (t_(a.x, -n.scroll.offset.x), t_(a.y, -n.scroll.offset.y)), Gg(n.latestValues) && i_(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && Wg(this.latestValues) && r_(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && Gg(this.latestValues) && i_(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = j_();
- h_(t, e);
+ let t = P_();
+ __(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!Wg(n.latestValues)) continue;
+ if (!Gg(n.latestValues)) continue;
let r;
- n.instance && (Hg(n.latestValues) && n.updateSnapshot(), r = j_(), h_(r, n.measurePageBox())), D_(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Ug(n.latestValues) && n.updateSnapshot(), r = P_(), __(r, n.measurePageBox())), D_(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return Wg(this.latestValues) && D_(t, this.latestValues), t;
+ return Gg(this.latestValues) && D_(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -17612,16 +17641,16 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!this.layout || !(r || i)) return;
this.resolvedRelativeTargetAt = Td.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = j_(), this.targetWithTransforms = j_()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), ete(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : h_(this.target, this.layout.layoutBox), Zg(this.target, this.targetDelta)) : h_(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), c_.value && W_.calculatedTargetDeltas++);
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = P_(), this.targetWithTransforms = P_()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), rte(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : __(this.target, this.layout.layoutBox), Qg(this.target, this.targetDelta)) : __(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), u_.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Hg(this.parent.latestValues) || Kg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Ug(this.parent.latestValues) || qg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = j_(), this.relativeTargetOrigin = j_(), S_(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), h_(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = P_(), this.relativeTargetOrigin = P_(), w_(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), __(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
@@ -17631,11 +17660,11 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === Td.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- h_(this.layoutCorrected, this.layout.layoutBox);
+ __(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- Fee(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = j_());
+ Lee(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = P_());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (g_(this.prevProjectionDelta.x, this.projectionDelta.x), g_(this.prevProjectionDelta.y, this.projectionDelta.y)), y_(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && z_(this.projectionDelta.x, this.prevProjectionDelta.x) && z_(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), c_.value && W_.calculatedProjections++) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (v_(this.prevProjectionDelta.x, this.projectionDelta.x), v_(this.prevProjectionDelta.y, this.projectionDelta.y)), x_(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && V_(this.projectionDelta.x, this.prevProjectionDelta.x) && V_(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), u_.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -17647,22 +17676,22 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = k_(), this.projectionDelta = k_(), this.projectionDeltaWithTransform = k_();
+ this.prevProjectionDelta = M_(), this.projectionDelta = M_(), this.projectionDeltaWithTransform = M_();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = k_();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = M_();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = j_(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(Cte));
+ let s = P_(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(xte));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- $_(o.x, e.x, n), $_(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (S_(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Ste(this.relativeTarget, this.relativeTargetOrigin, s, n), f && F_(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= j_(), h_(f, this.relativeTarget)), c && (this.animationValues = a, Kee(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ uv(o.x, e.x, n), uv(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (w_(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), bte(this.relativeTarget, this.relativeTargetOrigin, s, n), f && cte(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= P_(), __(f, this.relativeTarget)), c && (this.animationValues = a, Yee(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (Yf(this.pendingAnimation), void 0), this.pendingAnimation = Jf.update(() => {
- U_.hasAnimatedSinceResize = !0, this.motionValue ||= Yh(0), this.motionValue.jump(0, !1), this.currentAnimation = o_(this.motionValue, [0, 1e3], {
+ G_.hasAnimatedSinceResize = !0, this.motionValue ||= Qh(0), this.motionValue.jump(0, !1), this.currentAnimation = c_(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -17681,20 +17710,20 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta?.(ste), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(mte), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && av(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && pv(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || j_(), iv(i.x, t.x, e.x), iv(i.y, t.y, e.y);
+ i = this.target || P_(), fv(i.x, t.x, e.x), fv(i.y, t.y, e.y);
}
- h_(t, i), r_(t, r), y_(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ __(t, i), i_(t, r), x_(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new nte()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new lte()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -17727,10 +17756,10 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!Gg(t)) return;
+ if (!Kg(t)) return;
let n = {};
- for (let t = 0; t < G_.length; t++) K_(G_[t], e, n, this.animationValues);
- for (let t = 0; t < Ug.length; t++) K_(Ug[t], e, n, this.animationValues);
+ for (let t = 0; t < K_.length; t++) q_(K_[t], e, n, this.animationValues);
+ for (let t = 0; t < Wg.length; t++) q_(Wg[t], e, n, this.animationValues);
e.render();
for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);
e.scheduleRender();
@@ -17744,70 +17773,70 @@ function Y_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = l_(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = d_(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
return;
}
if (!this.projectionDelta || !this.layout || !n.target) {
- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = l_(t?.pointerEvents) || ""), this.hasProjected && !Wg(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = d_(t?.pointerEvents) || ""), this.hasProjected && !Gg(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = ite(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = dte(this.projectionDeltaWithTransform, this.treeScale, i);
r && (a = r(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in s_) {
+ for (let t in l_) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = s_[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = l_[t], c = a === "none" ? i[t] : r(i[t], n);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = n === this ? l_(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? d_(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(X_), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach($_), this.root.sharedNodes.clear();
}
};
}
-function lte(e) {
- e.updateLayout(), hte(e);
+function gte(e) {
+ e.updateLayout(), nv(e);
}
-function ute(e) {
+function _te(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {
- if (i === "size") H_((e) => {
- let t = __(r[e]);
+ if (i === "size") W_((e) => {
+ let t = y_(r[e]);
r[e].min = a[e].min, r[e].max = r[e].min + t;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- m_(r[e], a[e]);
- } else av(i, t.layoutBox, n) && H_((t) => {
- let n = __(a[t]);
+ g_(r[e], a[e]);
+ } else pv(i, t.layoutBox, n) && W_((t) => {
+ let n = y_(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
}, s = a ? t.measuredBox : t.layoutBox;
o(s, n);
- let c = k_();
- y_(c, n, t.layoutBox);
- let l = k_();
- y_(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !N_(c), d = !1, f = e.getClosestProjectingParent();
+ let c = M_();
+ x_(c, n, t.layoutBox);
+ let l = M_();
+ x_(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !I_(c), d = !1, f = e.getClosestProjectingParent();
if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {
let { snapshot: r, layout: i } = f;
if (r && i) {
- let s = e.options.layoutAnchor || void 0, c = j_();
- S_(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = j_();
- S_(l, n, i.layoutBox, s), a && o(c, l), L_(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = P_();
+ w_(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = P_();
+ w_(l, n, i.layoutBox, s), a && o(c, l), z_(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -17821,65 +17850,65 @@ function ute(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function dte(e) {
- c_.value && W_.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function vte(e) {
+ u_.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function fte(e) {
+function yte(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function pte(e) {
+function Q_(e) {
e.clearSnapshot();
}
-function X_(e) {
+function $_(e) {
e.clearMeasurements();
}
-function mte(e) {
+function ev(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function Z_(e) {
+function tv(e) {
e.isLayoutDirty = !1;
}
-function hte(e) {
+function nv(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- H_((e) => e_(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ W_((e) => t_(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function gte(e) {
+function rv(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function _te(e) {
+function iv(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function vte(e) {
+function av(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function Q_(e) {
+function ov(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function yte(e) {
+function sv(e) {
e.resolveTargetDelta();
}
-function bte(e) {
+function cv(e) {
e.calcProjection();
}
-function xte(e) {
+function lv(e) {
e.resetSkewAndRotation();
}
-function $_(e, t, n) {
+function uv(e, t, n) {
e.translate = Df(t.translate, 0, n), e.scale = Df(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function ev(e, t, n, r) {
+function dv(e, t, n, r) {
e.min = Df(t.min, n.min, r), e.max = Df(t.max, n.max, r);
}
-function Ste(e, t, n, r) {
- ev(e.x, t.x, n.x, r), ev(e.y, t.y, n.y, r);
+function bte(e, t, n, r) {
+ dv(e.x, t.x, n.x, r), dv(e.y, t.y, n.y, r);
}
-function Cte(e) {
+function xte(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var wte = {
+var Ste = {
duration: .45,
ease: [
.4,
@@ -17887,61 +17916,52 @@ var wte = {
.1,
1
]
-}, tv = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), nv = tv("applewebkit/") && !tv("chrome/") ? Math.round : Zu;
-function rv(e) {
- e.min = nv(e.min), e.max = nv(e.max);
-}
-function Tte(e) {
- rv(e.x), rv(e.y);
-}
-function iv(e, t, n) {
- e.max = __(n) + (e.min = t.min);
+};
+function fv(e, t, n) {
+ e.max = y_(n) + (e.min = t.min);
}
-function av(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !$ee(R_(t), R_(n), .2);
+function pv(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !nte(B_(t), B_(n), .2);
}
-function Ete(e) {
+function Cte(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function ov(e, t, n, r = { passive: !0 }) {
+function mv(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var Dte = /* @__PURE__ */ Y_({
- attachResizeListener: (e, t) => ov(e, "resize", t),
- measureScroll: () => ({
- x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
- y: document.documentElement.scrollTop || document.body?.scrollTop || 0
- }),
+var wte = /* @__PURE__ */ Z_({
+ attachResizeListener: (e, t) => mv(e, "resize", t),
+ measureScroll: zee,
checkIsScrollRoot: () => !0
-}), sv = { current: void 0 }, cv = /* @__PURE__ */ Y_({
+}), hv = { current: void 0 }, gv = /* @__PURE__ */ Z_({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!sv.current) {
- let e = new Dte({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), sv.current = e;
+ if (!hv.current) {
+ let e = new wte({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), hv.current = e;
}
- return sv.current;
+ return hv.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), lv = /* @__PURE__ */ new WeakMap();
+}), _v = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function uv(e) {
+function vv(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function dv(e) {
+function yv(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var fv = [
+var bv = [
"animate",
"whileInView",
"whileFocus",
@@ -17949,29 +17969,29 @@ var fv = [
"whileTap",
"whileDrag",
"exit"
-], pv = /* @__PURE__ */ ["initial"].concat(fv);
+], xv = /* @__PURE__ */ ["initial"].concat(bv);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function mv(e) {
- if (uv(e.animate)) return !0;
- for (let t = 0; t < pv.length; t++) if (dv(e[pv[t]])) return !0;
+function Sv(e) {
+ if (vv(e.animate)) return !0;
+ for (let t = 0; t < xv.length; t++) if (yv(e[xv[t]])) return !0;
return !1;
}
-function hv(e) {
- return !!(mv(e) || e.variants);
+function Cv(e) {
+ return !!(Sv(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Ote(e, t, n) {
+function Tte(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
if (ug(i)) e.addValue(r, i);
- else if (ug(a)) e.addValue(r, Yh(i, { owner: e }));
+ else if (ug(a)) e.addValue(r, Qh(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, Yh(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, Qh(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -17979,17 +17999,17 @@ function Ote(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var gv = { current: null }, _v = { current: !1 }, kte = typeof window < "u";
-function vv() {
- if (_v.current = !0, kte) {
+var wv = { current: null }, Tv = { current: !1 }, Ete = typeof window < "u";
+function Ev() {
+ if (Tv.current = !0, Ete) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => gv.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => wv.current = e.matches;
e.addEventListener("change", t), t();
- } else gv.current = !1;
+ } else wv.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var yv = [
+var Dv = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -17997,14 +18017,14 @@ var yv = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], bv = {};
-function xv(e) {
- bv = e;
+], Ov = {};
+function kv(e) {
+ Ov = e;
}
-function Ate() {
- return bv;
+function Dte() {
+ return Ov;
}
-var jte = class {
+var Ote = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
@@ -18016,7 +18036,7 @@ var jte = class {
this.renderScheduledAt < e && (this.renderScheduledAt = e, Jf.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = mv(t), this.isVariantNode = hv(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = Sv(t), this.isVariantNode = Cv(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
@@ -18025,7 +18045,7 @@ var jte = class {
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, lv.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, _v.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -18035,7 +18055,7 @@ var jte = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (_v.current || vv(), this.shouldReduceMotion = gv.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Tv.current || Ev(), this.shouldReduceMotion = wv.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
this.projection?.unmount(), Yf(this.notifyUpdate), Yf(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
@@ -18070,7 +18090,7 @@ var jte = class {
let n = Sm.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && Jf.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), xh.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && Jf.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Sh.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -18081,8 +18101,8 @@ var jte = class {
}
updateFeatures() {
let e = "animation";
- for (e in bv) {
- let t = bv[e];
+ for (e in Ov) {
+ let t = Ov[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -18095,7 +18115,7 @@ var jte = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : j_();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : P_();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -18105,14 +18125,14 @@ var jte = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && xh.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < yv.length; t++) {
- let n = yv[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Sh.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < Dv.length; t++) {
+ let n = Dv[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Ote(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = Tte(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -18142,7 +18162,7 @@ var jte = class {
}
getValue(e, t) {
let n = this.props.values?.[e];
- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = Yh(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = Qh(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
@@ -18158,11 +18178,11 @@ var jte = class {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- a_.render(this.render);
+ s_.render(this.render);
}
-}, Sv = class extends jte {
+}, Av = class extends Ote {
constructor() {
- super(...arguments), this.KeyframeResolver = _g;
+ super(...arguments), this.KeyframeResolver = vg;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -18183,29 +18203,29 @@ var jte = class {
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Cv(e, { style: t, vars: n }, r, i) {
+function jv(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function wv(e, { layout: t, layoutId: n }) {
- return Sm.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!s_[e] || e === "opacity");
+function Mv(e, { layout: t, layoutId: n }) {
+ return Sm.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!l_[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function Tv(e, t, n) {
+function Nv(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (ug(r[t]) || i && ug(i[t]) || wv(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (ug(r[t]) || i && ug(i[t]) || Mv(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function Mte(e) {
+function kte(e) {
return window.getComputedStyle(e);
}
-var Nte = class extends Sv {
+var Ate = class extends Av {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Cv;
+ super(...arguments), this.type = "html", this.renderInstance = jv;
}
mount(e) {
super.mount(e);
@@ -18213,69 +18233,69 @@ var Nte = class extends Sv {
readValueFromInstance(e, t) {
if (Sm.has(t)) return this.projection?.isProjecting ? vm(t) : bm(e, t);
{
- let n = Mte(e), r = (jd(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = kte(e), r = (jd(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return i_(e, t);
+ return a_(e, t);
}
build(e, t, n) {
- Fg(e, t, n.transformTemplate);
+ Ig(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Tv(e, t, n);
+ return Nv(e, t, n);
}
-}, Ev = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, Pv = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function Dv(e) {
+function Fv(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var Pte = (e) => (t) => Ev(t) && e(t, Dv(t));
+var jte = (e) => (t) => Pv(t) && e(t, Fv(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Ov(e, t, n, r) {
- return ov(e, t, Pte(n), r);
+function Iv(e, t, n, r) {
+ return mv(e, t, jte(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var kv = /* @__PURE__ */ new WeakMap(), Av, jv = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : wg(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Fte = /*@__PURE__*/ jv("inline", "width", "offsetWidth"), Ite = /*@__PURE__*/ jv("block", "height", "offsetHeight");
-function Lte({ target: e, borderBoxSize: t }) {
- kv.get(e)?.forEach((n) => {
+var Lv = /* @__PURE__ */ new WeakMap(), Rv, zv = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Tg(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Mte = /*@__PURE__*/ zv("inline", "width", "offsetWidth"), Nte = /*@__PURE__*/ zv("block", "height", "offsetHeight");
+function Pte({ target: e, borderBoxSize: t }) {
+ Lv.get(e)?.forEach((n) => {
n(e, {
get width() {
- return Fte(e, t);
+ return Mte(e, t);
},
get height() {
- return Ite(e, t);
+ return Nte(e, t);
}
});
});
}
-function Rte(e) {
- e.forEach(Lte);
+function Fte(e) {
+ e.forEach(Pte);
}
-function zte() {
- typeof ResizeObserver < "u" && (Av = new ResizeObserver(Rte));
+function Ite() {
+ typeof ResizeObserver < "u" && (Rv = new ResizeObserver(Fte));
}
-function Bte(e, t) {
- Av || zte();
- let n = Og(e);
+function Lte(e, t) {
+ Rv || Ite();
+ let n = kg(e);
return n.forEach((e) => {
- let n = kv.get(e);
- n || (n = /* @__PURE__ */ new Set(), kv.set(e, n)), n.add(t), Av?.observe(e);
+ let n = Lv.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Lv.set(e, n)), n.add(t), Rv?.observe(e);
}), () => {
n.forEach((e) => {
- let n = kv.get(e);
- n?.delete(t), n?.size || Av?.unobserve(e);
+ let n = Lv.get(e);
+ n?.delete(t), n?.size || Rv?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Mv = /* @__PURE__ */ new Set(), Nv;
-function Vte() {
- Nv = () => {
+var Bv = /* @__PURE__ */ new Set(), Vv;
+function Rte() {
+ Vv = () => {
let e = {
get width() {
return window.innerWidth;
@@ -18284,26 +18304,26 @@ function Vte() {
return window.innerHeight;
}
};
- Mv.forEach((t) => t(e));
- }, window.addEventListener("resize", Nv);
+ Bv.forEach((t) => t(e));
+ }, window.addEventListener("resize", Vv);
}
-function Hte(e) {
- return Mv.add(e), Nv || Vte(), () => {
- Mv.delete(e), !Mv.size && typeof Nv == "function" && (window.removeEventListener("resize", Nv), Nv = void 0);
+function zte(e) {
+ return Bv.add(e), Vv || Rte(), () => {
+ Bv.delete(e), !Bv.size && typeof Vv == "function" && (window.removeEventListener("resize", Vv), Vv = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Pv(e, t) {
- return Eg(typeof e == "function" ? Hte(e) : Bte(e, t));
+function Hv(e, t) {
+ return Dg(typeof e == "function" ? zte(e) : Lte(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Fv = (e, t) => Math.abs(e - t);
-function Ute(e, t) {
- let n = Fv(e.x, t.x), r = Fv(e.y, t.y);
+var Uv = (e, t) => Math.abs(e - t);
+function Bte(e, t) {
+ let n = Uv(e.x, t.x), r = Uv(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Iv = /*#__PURE__*/ new Set(["auto", "scroll"]), Lv = class {
+var Wv = /*#__PURE__*/ new Set(["auto", "scroll"]), Gv = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -18311,8 +18331,8 @@ var Iv = /*#__PURE__*/ new Set(["auto", "scroll"]), Lv = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = zv(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Vv(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Ute(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = qv(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = Yv(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Bte(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -18325,40 +18345,40 @@ var Iv = /*#__PURE__*/ new Set(["auto", "scroll"]), Lv = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = zv(t, this.transformPagePoint), this.hasPendingMove = !0, Jf.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = qv(t, this.transformPagePoint), this.hasPendingMove = !0, Jf.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = Vv(e.type === "pointercancel" ? this.lastMoveEventInfo : zv(t, this.transformPagePoint), this.history);
+ let a = Yv(e.type === "pointercancel" ? this.lastMoveEventInfo : qv(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !Ev(e)) return;
+ }, !Pv(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = zv(Dv(e), this.transformPagePoint), { point: c } = s;
+ let s = qv(Fv(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
timestamp: Od.now()
}];
let { onSessionStart: l } = t;
- l && l(e, Vv(s, this.history));
+ l && l(e, Yv(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Qu(Ov(this.contextWindow, "pointermove", this.handlePointerMove, u), Ov(this.contextWindow, "pointerup", this.handlePointerUp, u), Ov(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Qu(Iv(this.contextWindow, "pointermove", this.handlePointerMove, u), Iv(this.contextWindow, "pointerup", this.handlePointerUp, u), Iv(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Iv.has(e.overflowX) || Iv.has(e.overflowY)) && this.scrollPositions.set(t, Rv(t)), t = t.parentElement;
+ (Wv.has(e.overflowX) || Wv.has(e.overflowY)) && this.scrollPositions.set(t, Kv(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Rv(window)), this.removeScrollListeners = Qu(ov(window, "scroll", this.onElementScroll, { capture: !0 }), ov(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Kv(window)), this.removeScrollListeners = Qu(mv(window, "scroll", this.onElementScroll, { capture: !0 }), mv(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Rv(e), i = {
+ let n = e === window, r = Kv(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
@@ -18370,42 +18390,42 @@ var Iv = /*#__PURE__*/ new Set(["auto", "scroll"]), Lv = class {
end() {
this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), Yf(this.updatePoint);
}
-}, Rv = (e) => e === window ? {
+}, Kv = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function zv(e, t) {
+function qv(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Bv(e, t) {
+function Jv(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Vv({ point: e }, t) {
+function Yv({ point: e }, t) {
return {
point: e,
- delta: Bv(e, Hv(t)),
- offset: Bv(e, Wte(t)),
- velocity: Gte(t, .1)
+ delta: Jv(e, Xv(t)),
+ offset: Jv(e, Vte(t)),
+ velocity: Hte(t, .1)
};
}
-function Wte(e) {
+function Vte(e) {
return e[0];
}
-function Hv(e) {
+function Xv(e) {
return e[e.length - 1];
}
-function Gte(e, t) {
+function Hte(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Hv(e);
+ let n = e.length - 1, r = null, i = Xv(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ td(t)));) n--;
if (!r) return {
x: 0,
@@ -18424,95 +18444,95 @@ function Gte(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var Uv = /* @__PURE__ */ new Set([
+var Ute = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Kte(e) {
- return Uv.has(e.tagName) || e.isContentEditable === !0;
+function Wte(e) {
+ return Ute.has(e.tagName) || e.isContentEditable === !0;
}
-var qte = /* @__PURE__ */ new Set([
+var Gte = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Jte(e) {
- return qte.has(e.tagName) || e.isContentEditable === !0;
+function Kte(e) {
+ return Gte.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var Wv = {
+var Zv = {
x: !1,
y: !1
};
-function Gv() {
- return Wv.x || Wv.y;
+function Qv() {
+ return Zv.x || Zv.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function Yte(e) {
- return e === "x" || e === "y" ? Wv[e] ? null : (Wv[e] = !0, () => {
- Wv[e] = !1;
- }) : Wv.x || Wv.y ? null : (Wv.x = Wv.y = !0, () => {
- Wv.x = Wv.y = !1;
+function qte(e) {
+ return e === "x" || e === "y" ? Zv[e] ? null : (Zv[e] = !0, () => {
+ Zv[e] = !1;
+ }) : Zv.x || Zv.y ? null : (Zv.x = Zv.y = !0, () => {
+ Zv.x = Zv.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function Xte(e, { min: t, max: n }, r) {
+function Jte(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? Df(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Df(n, e, r.max) : Math.min(e, n)), e;
}
-function Kv(e, t, n) {
+function $v(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function Zte(e, { top: t, left: n, bottom: r, right: i }) {
+function Yte(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Kv(e.x, n, i),
- y: Kv(e.y, t, r)
+ x: $v(e.x, n, i),
+ y: $v(e.y, t, r)
};
}
-function qv(e, t) {
+function ey(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function Qte(e, t) {
+function Xte(e, t) {
return {
- x: qv(e.x, t.x),
- y: qv(e.y, t.y)
+ x: ey(e.x, t.x),
+ y: ey(e.y, t.y)
};
}
-function $te(e, t) {
- let n = .5, r = __(e), i = __(t);
+function Zte(e, t) {
+ let n = .5, r = y_(e), i = y_(t);
return i > r ? n = /* @__PURE__ */ $u(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ $u(e.min, e.max - i, t.min)), Gu(0, 1, n);
}
-function ene(e, t) {
+function Qte(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var Jv = .35;
-function tne(e = Jv) {
- return e === !1 ? e = 0 : e === !0 && (e = Jv), {
- x: Yv(e, "left", "right"),
- y: Yv(e, "top", "bottom")
+var ty = .35;
+function $te(e = ty) {
+ return e === !1 ? e = 0 : e === !0 && (e = ty), {
+ x: ny(e, "left", "right"),
+ y: ny(e, "top", "bottom")
};
}
-function Yv(e, t, n) {
+function ny(e, t, n) {
return {
- min: Xv(e, t),
- max: Xv(e, n)
+ min: ry(e, t),
+ max: ry(e, n)
};
}
-function Xv(e, t) {
+function ry(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function Zv(e) {
+function iy(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -18521,12 +18541,12 @@ function Zv(e) {
}
return t;
}
-var nne = /* @__PURE__ */ new WeakMap(), rne = class {
+var ene = /* @__PURE__ */ new WeakMap(), tne = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = j_(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = P_(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
if (this.visualElement.presenceContext?.isPresent === !1) return;
@@ -18534,15 +18554,15 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
- if (n && !r && (this.openDragLock?.(), this.openDragLock = Yte(n), !this.openDragLock)) return;
+ if (n && !r && (this.openDragLock?.(), this.openDragLock = qte(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: a } = this.visualElement;
- a && (a.isAnimationBlocked = !0, a.target = void 0), H_((e) => {
+ a && (a.isAnimationBlocked = !0, a.target = void 0), W_((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
if (Nd(t) && (t = ag(t, this.visualElement.current) || 0), W.test(t)) t = parseFloat(t);
else if (Qd.test(t)) {
let n = a?.layout?.layoutBox[e];
- n && (t = __(n) * (parseFloat(t) / 100));
+ n && (t = y_(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
}), i && Jf.update(() => i(e, t), !1, !0), dg(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
@@ -18552,7 +18572,7 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = ny(o), this.currentDirection === null) return;
+ if (this.currentDirection = rne(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
this.updateAxis("x", o), this.updateAxis("y", o), this.visualElement.render(), a && Jf.update(() => a(e, t), !1, !0);
@@ -18565,7 +18585,7 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Lv(e, {
+ this.panSession = new Gv(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -18597,32 +18617,32 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !ty(e, n, this.currentDirection)) return;
+ if (!t || !cy(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = Xte(i, a, this.elastic[e])), r.set(i);
+ a && (i = Jte(i, a, this.elastic[e])), r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- Qv(e) ? this.constraints && this.scroll === Zv(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r ? Zte(r.layoutBox, e) : !1, this.elastic = tne(t), i !== this.constraints && !Qv(e) && r && this.constraints && !this.hasMutatedConstraints && H_((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = ene(r.layoutBox[e], this.constraints[e]));
+ ay(e) ? this.constraints && this.scroll === iy(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r ? Yte(r.layoutBox, e) : !1, this.elastic = $te(t), i !== this.constraints && !ay(e) && r && this.constraints && !this.hasMutatedConstraints && W_((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Qte(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!Qv(e)) return !1;
- let n = $v(e), { projection: r } = this.visualElement;
+ if (!ay(e)) return !1;
+ let n = oy(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = Zv(r);
- let i = Iee(n, r.root, this.visualElement.getTransformPagePoint()), a = Qte(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = iy(r);
+ let i = Ree(n, r.root, this.visualElement.getTransformPagePoint()), a = Xte(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t(Nee(a));
- this.hasMutatedConstraints = !!e, e && (a = Bg(e));
+ let e = t(Fee(a));
+ this.hasMutatedConstraints = !!e, e && (a = Vg(e));
}
return a;
}
startAnimation(e, t) {
- let { drag: n, dragMomentum: r, dragElastic: i, dragTransition: a, dragSnapToOrigin: o, onDragTransitionEnd: s } = this.getProps(), c = this.constraints || {}, l = H_((s) => {
- if (!ty(s, t || n, this.currentDirection)) return;
+ let { drag: n, dragMomentum: r, dragElastic: i, dragTransition: a, dragSnapToOrigin: o, onDragTransitionEnd: s } = this.getProps(), c = this.constraints || {}, l = W_((s) => {
+ if (!cy(s, t || n, this.currentDirection)) return;
let l = c[s] || {};
(o === !0 || o === s) && (l = {
min: 0,
@@ -18648,7 +18668,7 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
return dg(this.visualElement, e), n.start(ig(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- H_((e) => this.getAxisMotionValue(e).stop());
+ W_((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -18659,8 +18679,8 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- H_((e) => {
- if (!ty(e, n, this.currentDirection)) return;
+ W_((e) => {
+ if (!cy(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - Df(r, o, .5));
});
@@ -18668,41 +18688,41 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!Qv(t) || !n || !this.constraints) return;
+ if (!ay(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- H_((e) => {
+ W_((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = $te({
+ i[e] = Zte({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), H_((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), W_((t) => {
let n = this.getAxisMotionValue(t);
- if (!ty(t, e, null) || !n.get()) return;
+ if (!cy(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(Df(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- nne.set(this.visualElement, this);
- let e = this.visualElement.current, t = Ov(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Jte(i);
+ ene.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Iv(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Kte(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = Qv(t) && $v(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= ine(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = ay(t) && oy(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= nne(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
i.layout || (i.root?.updateScroll(), i.updateLayout()), Jf.read(r);
- let o = ov(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (H_((t) => {
- if (!ty(t, this.getProps().drag, this.currentDirection)) return;
+ let o = mv(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (W_((t) => {
+ if (!cy(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -18712,7 +18732,7 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = Jv, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = ty, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -18720,32 +18740,32 @@ var nne = /* @__PURE__ */ new WeakMap(), rne = class {
};
}
};
-function Qv(e) {
+function ay(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var $v = (e) => "current" in e ? e.current : e;
-function ey(e) {
+var oy = (e) => "current" in e ? e.current : e;
+function sy(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function ine(e, t, n) {
- let r = Pv(e, ey(n)), i = Pv(t, ey(n));
+function nne(e, t, n) {
+ let r = Hv(e, sy(n)), i = Hv(t, sy(n));
return () => {
r(), i();
};
}
-function ty(e, t, n) {
+function cy(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function ny(e, t = 10) {
+function rne(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function ry(e, t) {
- let n = Og(e), r = new AbortController();
+function ly(e, t) {
+ let n = kg(e), r = new AbortController();
return [
n,
{
@@ -18753,16 +18773,16 @@ function ry(e, t) {
...t,
signal: r.signal
},
- Eg(() => r.abort())
+ Dg(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function ane(e) {
- return !(e.pointerType === "touch" || Gv());
+function ine(e) {
+ return !(e.pointerType === "touch" || Qv());
}
-function one(e, t, n = {}) {
- t = Dg(t);
- let [r, i, a] = ry(e, n);
+function ane(e, t, n = {}) {
+ t = Og(t);
+ let [r, i, a] = ly(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -18776,7 +18796,7 @@ function one(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!ane(n)) return;
+ if (!ine(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -18784,71 +18804,71 @@ function one(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var iy = (e, t) => t ? e === t || iy(e, t.parentElement) : !1, ay = /* @__PURE__ */ new WeakSet();
+var uy = (e, t) => t ? e === t || uy(e, t.parentElement) : !1, dy = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function oy(e) {
+function fy(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function sy(e, t) {
+function py(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var sne = (e, t) => {
- let n = !1, r = oy(() => {
- ay.has(e) || (n = !0, sy(e, "down"));
- }), i = oy(() => {
- n && (n = !1, sy(e, "up"));
+var one = (e, t) => {
+ let n = !1, r = fy(() => {
+ dy.has(e) || (n = !0, py(e, "down"));
+ }), i = fy(() => {
+ n && (n = !1, py(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && sy(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && py(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function cy(e) {
- return Ev(e) && !Gv();
+function my(e) {
+ return Pv(e) && !Qv();
}
-var ly = /* @__PURE__ */ new WeakSet();
-function cne(e, t, n = {}) {
- t = Dg(t);
- let [r, i, a] = ry(e, n), o = (e) => {
+var hy = /* @__PURE__ */ new WeakSet();
+function sne(e, t, n = {}) {
+ t = Og(t);
+ let [r, i, a] = ly(e, n), o = (e) => {
let r = e.currentTarget;
- if (!cy(e) || ly.has(e)) return;
- ay.add(r), n.stopPropagation && ly.add(e);
+ if (!my(e) || hy.has(e)) return;
+ dy.add(r), n.stopPropagation && hy.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), ay.has(r) && ay.delete(r), cy(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), dy.has(r) && dy.delete(r), my(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || iy(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || uy(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Cg(e) && (e.addEventListener("focus", () => sne(e, i), i), !Kte(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), wg(e) && (e.addEventListener("focus", () => one(e, i), i), !Wte(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function uy(e, t) {
+function gy(e, t) {
let n = window.getComputedStyle(e);
return Vm(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var dy = class {
+var _y = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, fy = /* @__PURE__ */ new Set([
+}, vy = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -18872,15 +18892,15 @@ var dy = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), py = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), yy = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function lne(e, t, n, r) {
- Cv(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(fy.has(n) ? n : Pg(n), t.attrs[n]);
+function cne(e, t, n, r) {
+ jv(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(vy.has(n) ? n : Fg(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function my(e, t, n) {
- let r = Tv(e, t, n);
+function by(e, t, n) {
+ let r = Nv(e, t, n);
for (let n in e) if (n !== "children" && (ug(e[n]) || ug(t[n]))) {
let t = xm.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
@@ -18888,9 +18908,9 @@ function my(e, t, n) {
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var une = class extends Sv {
+var lne = class extends Av {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = j_;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = P_;
}
getBaseTargetFromProps(e, t) {
return Sm.has(t) ? super.getBaseTargetFromProps(e, t) ?? vm(t) : e[t];
@@ -18903,27 +18923,27 @@ var une = class extends Sv {
let e = om(t);
return e && e.default || 0;
}
- if (Ig.includes(t)) {
+ if (Lg.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = fy.has(t) ? t : Pg(t), e.getAttribute(t);
+ return t = vy.has(t) ? t : Fg(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return my(e, t, n);
+ return by(e, t, n);
}
build(e, t, n) {
- Lg(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ Rg(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- lne(e, t, n, r);
+ cne(e, t, n, r);
}
mount(e) {
- this.isSVGTag = py(e.tagName), super.mount(e);
+ this.isSVGTag = yy(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function hy(e, t) {
+function xy(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -18931,18 +18951,18 @@ function hy(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var dne = [...fv].reverse(), gy = (e) => e?.out === !0 ? e : e?.out;
-function fne(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => dee(e, t, n))), n = _y(), r = !0, i = !1;
+var une = [...bv].reverse(), Sy = (e) => e?.out === !0 ? e : e?.out;
+function dne(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => mee(e, t, n))), n = Cy(), r = !0, i = !1;
function a(a) {
let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && sg(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && gy(f(l ?? (g && g.props.initial))?.transition);
- if (dne.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? dv(f) || f === !1 ? f : void 0 : l, y = dv(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || uv(v) || typeof v == "boolean") return;
+ let _ = u && Sy(f(l ?? (g && g.props.initial))?.transition);
+ if (une.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? yv(f) || f === !1 ? f : void 0 : l, y = yv(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || vv(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -18950,14 +18970,14 @@ function fne(e) {
};
return;
}
- let S = pne(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = fne(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
let { transition: r, transitionEnd: i, ...a } = sg(e, n, cg(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = gy(r) || D;
+ }, D = Sy(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -18965,7 +18985,7 @@ function fne(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !hy(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !xy(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -18981,7 +19001,7 @@ function fne(e) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
let t = sg(s, n)?.transition?.delayChildren;
- r.delay = Wh(s.enteringChildren, e, t);
+ r.delay = qh(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -19019,16 +19039,16 @@ function fne(e) {
},
getState: () => n,
reset: () => {
- n = _y(), i = !0;
+ n = Cy(), i = !0;
}
};
}
-function pne(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !hy(t, e) : !1;
+function fne(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !xy(t, e) : !1;
}
-function _y() {
+function Cy() {
let e = {};
- for (let t of fv) e[t] = {
+ for (let t of bv) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -19038,55 +19058,55 @@ function _y() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var vy = /* @__PURE__ */ (0, P.createContext)({
+var wy = /* @__PURE__ */ (0, P.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function yy(e, t) {
+function Ty(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function mne(...e) {
+function pne(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = yy(e, t);
+ let r = Ty(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : yy(e[t], null);
+ typeof n == "function" ? n() : Ty(e[t], null);
}
};
};
}
-function hne(...e) {
- return P.useCallback(mne(...e), e);
+function mne(...e) {
+ return P.useCallback(pne(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var by = (e) => {
+var Ey = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, xy = (e) => {
+}, Dy = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = by(r);
+ let [a, o] = Ey(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = by(e.offsetParent);
+ let [i, a] = Ey(e.offsetParent);
return [t / i, n / a];
-}, Sy = class extends P.Component {
+}, hne = class extends P.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (Cg(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = Cg(e) && e.offsetWidth || 0, r = Cg(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = xy(t);
+ if (wg(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = wg(e) && e.offsetWidth || 0, r = wg(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Dy(t);
}
return null;
}
@@ -19095,7 +19115,7 @@ var by = (e) => {
return this.props.children;
}
};
-function Cy({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function gne({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, P.useId)(), c = (0, P.useRef)(null), l = (0, P.useRef)({
width: 0,
height: 0,
@@ -19104,7 +19124,7 @@ function Cy({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, P.useContext)(vy), d = hne(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, P.useContext)(wy), d = mne(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -19117,10 +19137,10 @@ function Cy({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
let d = i ?? o.head;
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
- return a_.setup(() => {
- let [e, t] = xy(r);
+ return s_.setup(() => {
+ let [e, t] = Dy(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), a_.read(() => {
+ }), s_.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -19128,7 +19148,7 @@ function Cy({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, F.jsx)(Sy, {
+ }, [t]), (0, F.jsx)(hne, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -19137,8 +19157,8 @@ function Cy({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var wy = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = Bu(Ty), d = (0, P.useId)(), f = (0, P.useRef)(), p = (0, P.useRef)(n), m = (0, P.useRef)(r);
+var _ne = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = Bu(vne), d = (0, P.useId)(), f = (0, P.useRef)(), p = (0, P.useRef)(n), m = (0, P.useRef)(r);
Vu(() => {
p.current = n, m.current = r;
});
@@ -19164,7 +19184,7 @@ var wy = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
u.forEach((e, t) => u.set(t, !1));
}, [n]), P.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, F.jsx)(Cy, {
+ }, [n]), e = (0, F.jsx)(gne, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -19177,11 +19197,11 @@ var wy = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
children: e
});
};
-function Ty() {
+function vne() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Ey(e = !0) {
+function Oy(e = !0) {
let t = (0, P.useContext)(Hu);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, P.useId)();
@@ -19195,23 +19215,23 @@ function Ey(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Dy() {
- return gne((0, P.useContext)(Hu));
+function ky() {
+ return Ay((0, P.useContext)(Hu));
}
-function gne(e) {
+function Ay(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Oy = (e) => e.key || "";
-function ky(e) {
+var jy = (e) => e.key || "";
+function My(e) {
let t = [];
return P.Children.forEach(e, (e) => {
(0, P.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Ay = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = Ey(o), f = (0, P.useMemo)(() => ky(e), [e]), p = o && !u ? [] : f.map(Oy), m = (0, P.useRef)(!0), h = Bu(() => /* @__PURE__ */ new Map()), g = (0, P.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, P.useState)(f), [y, b] = (0, P.useState)(f);
+var Ny = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Oy(o), f = (0, P.useMemo)(() => My(e), [e]), p = o && !u ? [] : f.map(jy), m = (0, P.useRef)(!0), h = Bu(() => /* @__PURE__ */ new Map()), g = (0, P.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, P.useState)(f), [y, b] = (0, P.useState)(f);
Vu(() => {
o && !u && !y.length && d?.();
}, [
@@ -19227,7 +19247,7 @@ var Ay = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
}, [y]), Vu(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Oy(y[e]);
+ let t = jy(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -19239,15 +19259,15 @@ var Ay = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Oy(n));
+ let r = p.indexOf(jy(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(Oy(e))) ? e = f : a === "wait" && (e = S), b(ky(e)), v(f), null;
+ return S.every((e) => h.get(jy(e))) ? e = f : a === "wait" && (e = S), b(My(e)), v(f), null;
}
let { forceRender: C } = (0, P.useContext)(zu);
return (0, F.jsx)(F.Fragment, { children: y.map((e) => {
- let _ = Oy(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, F.jsx)(wy, {
+ let _ = jy(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, F.jsx)(_ne, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -19268,8 +19288,8 @@ var Ay = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, jy = /* @__PURE__ */ (0, P.createContext)({ strict: !1 }), My = {
- animation: ["variants", ...fv],
+}, Py = /* @__PURE__ */ (0, P.createContext)({ strict: !1 }), Fy = {
+ animation: ["variants", ...bv],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -19296,32 +19316,32 @@ var Ay = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Ny = !1;
-function _ne() {
- if (Ny) return;
+}, Iy = !1;
+function Ly() {
+ if (Iy) return;
let e = {};
- for (let t in My) e[t] = { isEnabled: (e) => My[t].some((t) => !!e[t]) };
- xv(e), Ny = !0;
+ for (let t in Fy) e[t] = { isEnabled: (e) => Fy[t].some((t) => !!e[t]) };
+ kv(e), Iy = !0;
}
-function Py() {
- return _ne(), Ate();
+function Ry() {
+ return Ly(), Dte();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function vne(e) {
- let t = Py();
+function zy(e) {
+ let t = Ry();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- xv(t);
+ kv(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function yne({ children: e, ...t }) {
- let n = (0, P.useContext)(vy);
+function By({ children: e, ...t }) {
+ let n = (0, P.useContext)(wy);
t = {
...n,
...t
- }, t.transition = Xh(t.transition, n.transition), t.isStatic = Bu(() => t.isStatic);
+ }, t.transition = $h(t.transition, n.transition), t.isStatic = Bu(() => t.isStatic);
let r = (0, P.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -19329,77 +19349,77 @@ function yne({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, F.jsx)(vy.Provider, {
+ return (0, F.jsx)(wy.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Fy = /* @__PURE__ */ (0, P.createContext)({});
+var Vy = /* @__PURE__ */ (0, P.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function bne(e, t) {
- if (mv(e)) {
+function Hy(e, t) {
+ if (Sv(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || dv(t) ? t : void 0,
- animate: dv(n) ? n : void 0
+ initial: t === !1 || yv(t) ? t : void 0,
+ animate: yv(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function xne(e) {
- let { initial: t, animate: n } = bne(e, (0, P.useContext)(Fy));
+function Uy(e) {
+ let { initial: t, animate: n } = Hy(e, (0, P.useContext)(Vy));
return (0, P.useMemo)(() => ({
initial: t,
animate: n
- }), [Iy(t), Iy(n)]);
+ }), [Wy(t), Wy(n)]);
}
-function Iy(e) {
+function Wy(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Ly = () => ({
+var Gy = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Ry(e, t, n) {
- for (let r in t) !ug(t[r]) && !wv(r, n) && (e[r] = t[r]);
+function Ky(e, t, n) {
+ for (let r in t) !ug(t[r]) && !Mv(r, n) && (e[r] = t[r]);
}
-function Sne({ transformTemplate: e }, t) {
+function qy({ transformTemplate: e }, t) {
return (0, P.useMemo)(() => {
- let n = Ly();
- return Fg(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Gy();
+ return Ig(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function Cne(e, t) {
+function yne(e, t) {
let n = e.style || {}, r = {};
- return Ry(r, n, e), Object.assign(r, Sne(e, t)), r;
+ return Ky(r, n, e), Object.assign(r, qy(e, t)), r;
}
-function wne(e, t) {
- let n = {}, r = Cne(e, t);
+function bne(e, t) {
+ let n = {}, r = yne(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var zy = () => ({
- ...Ly(),
+var Jy = () => ({
+ ...Gy(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function Tne(e, t, n, r) {
+function xne(e, t, n, r) {
let i = (0, P.useMemo)(() => {
- let n = zy();
- return Lg(n, t, py(r), e.transformTemplate, e.style), {
+ let n = Jy();
+ return Rg(n, t, yy(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Ry(t, e.style, e), {
+ return Ky(t, e.style, e), {
...i,
style: {
...t,
@@ -19410,21 +19430,21 @@ function Tne(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var Ene = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function By(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Ene.has(e);
+var Sne = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function Yy(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Sne.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function Dne(e, t) {
- return e.startsWith("on") ? !By(e) : t?.(e) ?? !By(e);
+function Cne(e, t) {
+ return e.startsWith("on") ? !Yy(e) : t?.(e) ?? !Yy(e);
}
-function One(e, t, n, r) {
+function wne(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || ug(e[a]) || (Dne(a, r) || n === !0 && By(a) || !t && !By(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || ug(e[a]) || (Cne(a, r) || n === !0 && Yy(a) || !t && !Yy(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var kne = [
+var Tne = [
"animate",
"circle",
"defs",
@@ -19452,12 +19472,12 @@ var kne = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Vy(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(kne.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Xy(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(Tne.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function Ane(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Vy(e) ? Tne : wne)(t, r, i, e), l = One(t, typeof e == "string", a, s), u = e === P.Fragment ? {} : {
+function Ene(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Xy(e) ? xne : bne)(t, r, i, e), l = wne(t, typeof e == "string", a, s), u = e === P.Fragment ? {} : {
...l,
...c,
ref: n
@@ -19468,21 +19488,21 @@ function Ane(e, t, n, { latestValues: r }, i, a = !1, o, s) {
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function jne({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function Dne({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: Mne(n, r, i, e),
+ latestValues: One(n, r, i, e),
renderState: t()
};
}
-function Mne(e, t, n, r) {
+function One(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = l_(a[e]);
- let { initial: o, animate: s } = e, c = mv(e), l = hv(e);
+ for (let e in a) i[e] = d_(a[e]);
+ let { initial: o, animate: s } = e, c = Sv(e), l = Cv(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !uv(d)) {
+ if (d && typeof d != "boolean" && !vv(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
let r = og(e, t[n]);
@@ -19502,18 +19522,18 @@ function Mne(e, t, n, r) {
}
return i;
}
-var Hy = (e) => (t, n) => {
- let r = (0, P.useContext)(Fy), i = (0, P.useContext)(Hu), a = () => jne(e, t, r, i);
+var Zy = (e) => (t, n) => {
+ let r = (0, P.useContext)(Vy), i = (0, P.useContext)(Hu), a = () => Dne(e, t, r, i);
return n ? a() : Bu(a);
-}, Nne = /*@__PURE__*/ Hy({
- scrapeMotionValuesFromProps: Tv,
- createRenderState: Ly
-}), Pne = /*@__PURE__*/ Hy({
- scrapeMotionValuesFromProps: my,
- createRenderState: zy
-}), Fne = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+}, kne = /*@__PURE__*/ Zy({
+ scrapeMotionValuesFromProps: Nv,
+ createRenderState: Gy
+}), Ane = /*@__PURE__*/ Zy({
+ scrapeMotionValuesFromProps: by,
+ createRenderState: Jy
+}), jne = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function Ine(e, t, n) {
+function Mne(e, t, n) {
let r = (0, P.useRef)(n);
(0, P.useInsertionEffect)(() => {
r.current = n;
@@ -19531,14 +19551,10 @@ function Ine(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Uy = /* @__PURE__ */ (0, P.createContext)({});
-// node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function Lne(e) {
- return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
-}
+var Qy = /* @__PURE__ */ (0, P.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Rne(e, t, n, r, i, a) {
- let { visualElement: o } = (0, P.useContext)(Fy), s = (0, P.useContext)(jy), c = (0, P.useContext)(Hu), l = (0, P.useContext)(vy), u = l.reducedMotion, d = l.skipAnimations, f = (0, P.useRef)(null), p = (0, P.useRef)(!1);
+function Nne(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, P.useContext)(Vy), s = (0, P.useContext)(Py), c = (0, P.useContext)(Hu), l = (0, P.useContext)(wy), u = l.reducedMotion, d = l.skipAnimations, f = (0, P.useRef)(null), p = (0, P.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -19549,8 +19565,8 @@ function Rne(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, P.useContext)(Uy);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && zne(f.current, n, i, h), (0, P.useInsertionEffect)(() => {
+ let m = f.current, h = (0, P.useContext)(Qy);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, P.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
let g = n[fg], _ = (0, P.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
@@ -19564,67 +19580,47 @@ function Rne(e, t, n, r, i, a) {
}), !1), m.enteringChildren = void 0);
}), m;
}
-function zne(e, t, n, r) {
- let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t, f = e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Wy(e.parent));
- f.setOptions({
- layoutId: i,
- layout: a,
- alwaysMeasureLayout: !!o || s && Lne(s),
- visualElement: e,
- animationType: typeof a == "string" ? a : "both",
- initialPromotionConfig: r,
- crossfade: d,
- layoutScroll: c,
- layoutRoot: l,
- layoutAnchor: u
- });
- let p = f.getStack()?.lead;
- p && !f.root.isUpdateBlocked() && (p.willUpdate(), p.scheduleCheckAfterUnmount());
-}
-function Wy(e) {
- if (e) return e.options.allowProjection === !1 ? Wy(e.parent) : e.projection;
-}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Gy(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && vne(r);
- let a = n ? n === "svg" : Vy(e), o = a ? Pne : Nne;
+function $y(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && zy(r);
+ let a = n ? n === "svg" : Xy(e), o = a ? Ane : kne;
function s(n, s) {
- let c, l = Bne(n);
- Bu(() => !!sv.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = Pne(n);
+ Bu(() => !!hv.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, P.useContext)(vy),
+ ...(0, P.useContext)(wy),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = xne(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = Uy(n), m = o(n, d);
if (!d && typeof window < "u") {
- Vne(u, r);
- let t = Hne(u);
- p.visualElement = Rne(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ Fne(u, r);
+ let t = Ine(u);
+ p.visualElement = Nne(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, F.jsxs)(Fy.Provider, {
+ return (0, F.jsxs)(Vy.Provider, {
value: p,
children: [c && p.visualElement ? (0, F.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, Ane(e, n, Ine(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, Ene(e, n, Mne(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, P.forwardRef)(s);
- return c[Fne] = e, c;
+ return c[jne] = e, c;
}
-function Bne({ layoutId: e }) {
+function Pne({ layoutId: e }) {
let t = (0, P.useContext)(zu).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Vne(e, t) {
- (0, P.useContext)(jy).strict;
+function Fne(e, t) {
+ (0, P.useContext)(Py).strict;
}
-function Hne(e) {
- let { drag: t, layout: n } = Py();
+function Ine(e) {
+ let { drag: t, layout: n } = Ry();
if (!t && !n) return {};
let r = {
...t,
@@ -19637,19 +19633,19 @@ function Hne(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Une(e, t) {
- if (typeof Proxy > "u") return Gy;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Gy(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Gy(a, void 0, e, t)), n.get(a)) });
+function Lne(e, t) {
+ if (typeof Proxy > "u") return $y;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => $y(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, $y(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Wne = (e, t) => t.isSVG ?? Vy(e) ? new une(t) : new Nte(t, { allowProjection: e !== P.Fragment }), Gne = class extends dy {
+var Rne = (e, t) => t.isSVG ?? Xy(e) ? new lne(t) : new Ate(t, { allowProjection: e !== P.Fragment }), zne = class extends _y {
constructor(e) {
- super(e), e.animationState ||= fne(e);
+ super(e), e.animationState ||= dne(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- uv(e) && (this.unmountControls = e.subscribe(this.node));
+ vv(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -19660,11 +19656,11 @@ var Wne = (e, t) => t.isSVG ?? Vy(e) ? new une(t) : new Nte(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Kne = 0, qne = {
- animation: { Feature: Gne },
- exit: { Feature: class extends dy {
+}, Bne = 0, Vne = {
+ animation: { Feature: zne },
+ exit: { Feature: class extends _y {
constructor() {
- super(...arguments), this.id = Kne++;
+ super(...arguments), this.id = Bne++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -19694,9 +19690,9 @@ var Wne = (e, t) => t.isSVG ?? Vy(e) ? new une(t) : new Nte(t, { allowProjection
}
unmount() {}
} }
-}, Jne = class extends dy {
+}, Hne = class extends _y {
constructor(e) {
- super(e), this.removeGroupControls = Zu, this.removeListeners = Zu, this.controls = new rne(e);
+ super(e), this.removeGroupControls = Zu, this.removeListeners = Zu, this.controls = new tne(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -19709,14 +19705,14 @@ var Wne = (e, t) => t.isSVG ?? Vy(e) ? new une(t) : new Nte(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Ky = (e) => (t, n) => {
+}, eb = (e) => (t, n) => {
e && Jf.update(() => e(t, n), !1, !0);
-}, Yne = class extends dy {
+}, Une = class extends _y {
constructor() {
super(...arguments), this.removePointerDownListener = Zu;
}
onPointerDown(e) {
- this.session = new Lv(e, this.createPanHandlers(), {
+ this.session = new Gv(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -19724,16 +19720,16 @@ var Wne = (e, t) => t.isSVG ?? Vy(e) ? new une(t) : new Nte(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Ky(e),
- onStart: Ky(t),
- onMove: Ky(n),
+ onSessionStart: eb(e),
+ onStart: eb(t),
+ onMove: eb(n),
onEnd: (e, t) => {
delete this.session, r && Jf.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Ov(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Iv(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -19741,12 +19737,12 @@ var Wne = (e, t) => t.isSVG ?? Vy(e) ? new une(t) : new Nte(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, qy = !1, Jy = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, tb = !1, nb = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), Yy = (e, t) => {
+}), rb = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -19755,33 +19751,33 @@ var Wne = (e, t) => t.isSVG ?? Vy(e) ? new une(t) : new Nte(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Xne = class extends P.Component {
+}, Wne = class extends P.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), qy && i.root.didUpdate(), i.options.layoutId !== r && Yy(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), tb && i.root.didUpdate(), i.options.layoutId !== r && rb(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...Jy(this.props),
+ ...nb(this.props),
onExitComplete: () => this.safeToRemove()
- })), U_.hasEverUpdated = !0;
+ })), G_.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Yy(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), rb(o, n)), o.setOptions({
...o.options,
- ...Jy(this.props)
- }), qy = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || Jf.postRender(() => {
+ ...nb(this.props)
+ }), tb = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || Jf.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), a_.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), s_.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- qy = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ tb = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -19790,39 +19786,39 @@ var Wne = (e, t) => t.isSVG ?? Vy(e) ? new une(t) : new Nte(t, { allowProjection
return null;
}
};
-function Xy(e) {
- let [t, n] = Ey(), r = (0, P.useContext)(zu);
- return (0, F.jsx)(Xne, {
+function ib(e) {
+ let [t, n] = Oy(), r = (0, P.useContext)(zu);
+ return (0, F.jsx)(Wne, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, P.useContext)(Uy),
+ switchLayoutGroup: (0, P.useContext)(Qy),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Zne = {
- pan: { Feature: Yne },
+var Gne = {
+ pan: { Feature: Une },
drag: {
- Feature: Jne,
- ProjectionNode: cv,
- MeasureLayout: Xy
+ Feature: Hne,
+ ProjectionNode: gv,
+ MeasureLayout: ib
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Zy(e, t, n, r) {
+function ab(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && Jf.postRender(() => o(t, Dv(t)));
+ o && Jf.postRender(() => o(t, Fv(t)));
}
-var Qne = class extends dy {
+var Kne = class extends _y {
mount() {
let { current: e } = this.node;
- e && (this.unmount = one(e, (e, t) => (Zy(this.node, t, "Hover", "Start"), (e) => Zy(this.node, e, "Hover", "End"))));
+ e && (this.unmount = ane(e, (e, t) => (ab(this.node, t, "Hover", "Start"), (e) => ab(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, $ne = class extends dy {
+}, qne = class extends _y {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -19839,51 +19835,51 @@ var Qne = class extends dy {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Qu(ov(this.node.current, "focus", () => this.onFocus()), ov(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Qu(mv(this.node.current, "focus", () => this.onFocus()), mv(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function Qy(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Zy(e, t, "Tap", n);
+function ob(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || ab(e, t, "Tap", n);
}
-var ere = class extends dy {
+var Jne = class extends _y {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = cne(e, (e, t) => (Qy(this.node, t, "Start"), (e, { success: t }) => Qy(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = sne(e, (e, t) => (ob(this.node, t, "Start"), (e, { success: t }) => ob(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, $y = /* @__PURE__ */ new WeakMap(), eb = /* @__PURE__ */ new WeakMap(), tre = (e) => {
- let t = $y.get(e.target);
+}, sb = /* @__PURE__ */ new WeakMap(), cb = /* @__PURE__ */ new WeakMap(), Yne = (e) => {
+ let t = sb.get(e.target);
t && t(e);
-}, nre = (e) => {
- e.forEach(tre);
+}, Xne = (e) => {
+ e.forEach(Yne);
};
-function rre({ root: e, ...t }) {
+function Zne({ root: e, ...t }) {
let n = e || document;
- eb.has(n) || eb.set(n, {});
- let r = eb.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(nre, {
+ cb.has(n) || cb.set(n, {});
+ let r = cb.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Xne, {
root: e,
...t
})), r[i];
}
-function ire(e, t, n) {
- let r = rre(t);
- return $y.set(e, n), r.observe(e), () => {
- $y.delete(e), r.unobserve(e);
+function Qne(e, t, n) {
+ let r = Zne(t);
+ return sb.set(e, n), r.observe(e), () => {
+ sb.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var are = {
+var $ne = {
some: 0,
all: 1
-}, ore = class extends dy {
+}, ere = class extends _y {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -19892,7 +19888,7 @@ var are = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : are[r]
+ threshold: typeof r == "number" ? r : $ne[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -19900,7 +19896,7 @@ var are = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = ire(this.node.current, a, o);
+ this.stopObserver = Qne(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -19912,61 +19908,61 @@ var are = {
"amount",
"margin",
"root"
- ].some(sre(e, t)) && this.startObserver();
+ ].some(tre(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function sre({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function tre({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var cre = /*@__PURE__*/ Une(/* @__PURE__ */ Object.assign({}, qne, {
- inView: { Feature: ore },
- tap: { Feature: ere },
- focus: { Feature: $ne },
- hover: { Feature: Qne }
-}, Zne, { layout: {
- ProjectionNode: cv,
- MeasureLayout: Xy
-} }), Wne);
+var nre = /*@__PURE__*/ Lne(/* @__PURE__ */ Object.assign({}, Vne, {
+ inView: { Feature: ere },
+ tap: { Feature: Jne },
+ focus: { Feature: qne },
+ hover: { Feature: Kne }
+}, Gne, { layout: {
+ ProjectionNode: gv,
+ MeasureLayout: ib
+} }), Rne);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function tb() {
- !_v.current && vv();
- let [e] = (0, P.useState)(gv.current);
+function lb() {
+ !Tv.current && Ev();
+ let [e] = (0, P.useState)(wv.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function nb(e) {
+function ub(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function rb(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && nb(t) ? Og(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function db(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && ub(t) ? kg(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function lre(e, t, n) {
+function rre(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function ib(e, t) {
+function fb(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function ure(e, t, n, r) {
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : ib(t, r) ?? e;
+function ire(e, t, n, r) {
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : fb(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function dre(e, t, n) {
+function are(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (Wu(e, i), r--);
}
}
-function fre(e, t, n, r, i, a) {
- dre(e, i, a);
+function ore(e, t, n, r, i, a) {
+ are(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: Df(i, a, r[o]),
@@ -19974,19 +19970,19 @@ function fre(e, t, n, r, i, a) {
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function pre(e, t, n = 0) {
+function sre(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function mre(e, t) {
+function cre(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var hre = "easeInOut", gre = 20;
-function _re(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var lre = "easeInOut", ure = 20;
+function dre(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : ure(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : ire(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -20001,10 +19997,12 @@ function _re(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = vre(e), { delay: l = 0, times: u = jp(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(a, s) : l, S = c.length, C = Zm(d) ? d : i?.[d || "keyframes"];
+ let c = fre(e), { delay: l = 0, times: u = jp(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ r.mixer ||= n.mixer;
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = Zm(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && cb(c)) {
+ if (S === 2 && hre(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -20020,9 +20018,9 @@ function _re(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Ap(u, T), c.length === 1 && c.unshift(null), m && m < gre) {
+ if (T > 0 && Ap(u, T), c.length === 1 && c.unshift(null), m && m < ure) {
let e = b > 0 ? g / b : 0;
- b = lre(b, m, g);
+ b = rre(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
@@ -20032,20 +20030,20 @@ function _re(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ bd(f, e - 1));
}
- pre(u, m, e);
+ sre(u, m, e);
}
let E = w + b;
- fre(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ ore(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
if (ug(g)) {
- let e = ab(g, c);
- b(_, v, ob("default", e));
+ let e = pb(g, c);
+ b(_, v, mb("default", e));
} else {
- let e = rb(g, _, r, l), t = e.length;
+ let e = db(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = ab(r, c);
- for (let e in _) b(_[e], yre(v, e), ob(e, i), n, t);
+ let r = e[n], i = pb(r, c);
+ for (let e in _) b(_[e], pre(v, e), mb(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -20055,13 +20053,13 @@ function _re(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(mre);
+ a.sort(cre);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
o.push(n), c.push(/* @__PURE__ */ $u(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(hre)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(lre)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -20073,50 +20071,51 @@ function _re(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
duration: p,
ease: l,
times: c,
+ mixer: a.mixer || t.mixer,
...n
};
}
}), s;
}
-function ab(e, t) {
+function pb(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function ob(e, t) {
+function mb(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function vre(e) {
+function fre(e) {
return Array.isArray(e) ? e : [e];
}
-function yre(e, t) {
+function pre(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var sb = (e) => typeof e == "number", cb = (e) => e.every(sb);
+var mre = (e) => typeof e == "number", hre = (e) => e.every(mre);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function lb(e, t) {
- return ug(e) || typeof e == "number" || typeof e == "string" && !nb(t);
+function gre(e, t) {
+ return ug(e) || typeof e == "number" || typeof e == "string" && !ub(t);
}
-function ub(e, t, n, r) {
+function hb(e, t, n, r) {
let i = [];
- if (lb(e, t)) i.push(o_(e, nb(t) && t.default || t, n && (n.default || n)));
+ if (gre(e, t)) i.push(c_(e, ub(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = rb(e, t, r), o = a.length;
+ let a = db(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...Bee(r, t, s, lv.get(r))) : i.push(...Sg(xee(r) ?? Vee, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...Uee(r, t, s, _v.get(r))) : i.push(...Cg(Cee(r) ?? o_, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function db(e, t, n, r) {
+function _re(e, t, n, r) {
let i = [];
- return _re(e.map((e) => {
+ return dre(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = Yh(0);
+ let t = e[0], n = Qh(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -20129,30 +20128,30 @@ function db(e, t, n, r) {
}
return e;
}), t, n, { spring: Ep }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...ub(n, e, t));
+ i.push(...hb(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var fb = 0;
-function pb(e, t) {
+var gb = 0;
+function vre(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var mb = (e, t) => t === void 0 ? e : {
+var _b = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function hb(e) {
+function vb(e) {
e.pause(), e.time = 0, e.stop();
}
-var gb = class e {
+var yb = class e {
constructor(e = [], t = {}, n) {
- this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.isWrapped = !1, this.stop = () => {
+ this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Eg.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new Bh(n), this.watch()) : (this.invalidate(), this.flush());
+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new Uh(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
r && (r.animations.push(this), this.finished.then(() => Wu(r.animations, this)));
}
@@ -20167,7 +20166,7 @@ var gb = class e {
item: e,
at: t,
marker: {
- name: "_m" + fb++,
+ name: "_m" + gb++,
time: 0,
callback: e
}
@@ -20178,7 +20177,7 @@ var gb = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + fb++,
+ name: "_m" + gb++,
time: 0,
callback: t,
pause: !0
@@ -20269,45 +20268,53 @@ var gb = class e {
return this.parent ? this.parent.invalidate() : this.isDirty || (this.isDirty = !0, queueMicrotask(() => this.flush())), this;
}
flush() {
- this.isDirty && !this.parent && this.build();
+ this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (hb(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (vb(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, hb(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, vb(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
- let d = /* @__PURE__ */ new Map(), f = {}, p = db(this.toSequence(d), {
- defaultTransition: n,
- ...u
- }, c, f), m = f.labels, h = u.duration ?? f.duration, g = f.duration ? h / f.duration : 1;
- if (m.forEach((e, t) => m.set(t, e * g)), this.markers = [], d.forEach((e, t) => {
- e.time = m.get(t), m.delete(t), h = Math.max(h, e.time), this.markers.push(e);
- }), this.markers.sort((e, t) => e.time - t.time), this.labels = m, this.totalDuration = h, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
- let e = this.clock = Yh(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), p.unshift(this.clockAnimation = o_(e, [0, h], {
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Eg.current;
+ Eg.current = this.motionScope;
+ let m;
+ try {
+ m = _re(this.toSequence(d), {
+ defaultTransition: n,
+ ...u
+ }, c, f);
+ } finally {
+ Eg.current = p;
+ }
+ let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;
+ if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {
+ e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);
+ }), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
+ let e = this.clock = Qh(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = c_(e, [0, g], {
...u,
- duration: h,
+ duration: g,
ease: "linear"
}));
}
- let _ = this.group = new Bh(p);
- t = Math.min(t, h), this.isDone && t < h && this.newFinished(), this.scrollTimeline ? this.detachScroll = _.attachTimeline(this.scrollTimeline) : (_.speed = this.playbackSpeed, this.isPaused && _.pause(), t && (_.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
+ let v = this.group = new Uh(m);
+ t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), mb(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), _b(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? mb(n, r) : r === void 0 ? n : Array.isArray(n) ? pb(n, r) : {
+ } : typeof n == "string" ? _b(n, r) : r === void 0 ? n : Array.isArray(n) ? vre(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : ib(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : fb(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -20348,72 +20355,76 @@ var gb = class e {
this.isDone = !1, this.finished = new Promise((e) => {
this.resolveFinished = e;
});
+ let e = this.motionScope?.add(() => {
+ this.isKilled = !0, this.stop();
+ });
+ e && this.finished.then(e);
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function _b(e) {
+function yre(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function vb(e = {}) {
+function bre(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = Tg.current, s = o?.transition, c = {};
- n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r);
- let l;
- if (_b(e)) {
+ let o = Eg.current?.transition, s = {};
+ n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
+ let c;
+ if (yre(e)) {
let n = {
- ...c,
+ ...s,
...i,
scope: t
};
- s && (n.defaultTransition = {
- ...s,
+ o && (n.defaultTransition = {
+ ...o,
...n.defaultTransition
- }), l = new gb(e, n);
+ }), c = new yb(e, n);
} else {
- let { onComplete: n, ...r } = a || {}, o = {
- ...c,
+ let { onComplete: n, ...r } = a || {}, l = {
...s,
+ ...o,
...r
}, { onUpdate: u } = r;
- l = new gb([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new yb([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
- ...o,
+ ...l,
onUpdate: void 0
}
] : [
e,
i,
- o
+ l
]], {
- ...c,
+ ...s,
onComplete: n,
scope: t
- }, ub(e, i, o, t));
+ }, hb(e, i, l, t));
}
- return o && l.finished.then(o.add(() => l.stop())), l;
+ return c;
}
return i;
}
-var yb = /* @__PURE__ */ Object.assign(/* @__PURE__ */ vb(), {
- addEffect: bee,
- removeEffect: bg
+var bb = /* @__PURE__ */ Object.assign(/* @__PURE__ */ bre(), {
+ addEffect: See,
+ removeEffect: xg
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function bb(e, t, n, r) {
+function xre(e, t, n, r) {
if (e == null) return [];
- let i = Og(e, r), a = i.length, o = [];
+ let i = kg(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...Zh(s, e) };
+ let i = { ...eg(s, e) };
i.duration &&= /* @__PURE__ */ td(i.duration), i.delay &&= /* @__PURE__ */ td(i.delay);
- let a = Uh(r), c = Hh(e, i.pseudoElement || ""), l = a.get(c);
+ let a = Kh(r), c = Gh(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -20429,7 +20440,7 @@ function bb(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = uy(r, i)), lm(t), yee(t, i), !a && t.length < 2 && t.unshift(uy(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = gy(r, i)), lm(t), xee(t, i), !a && t.length < 2 && t.unshift(gy(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
@@ -20438,12 +20449,12 @@ function bb(e, t, n, r) {
}
return s;
}
-var bre = /*@__PURE__*/ ((e) => {
+var Sre = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new Bh(bb(t, n, r, e));
+ return new Uh(xre(t, n, r, e));
}
return t;
-})(), xb = cre, Sb = class {
+})(), xb = nre, Sb = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -20484,7 +20495,7 @@ var wb = class extends Sb {
}
return null;
}
-}, xre = class extends Cb {
+}, Cre = class extends Cb {
static {
this.type = "section";
}
@@ -20724,7 +20735,7 @@ var Ob = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, Sre = class extends Ob {
+}, wre = class extends Ob {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -20779,7 +20790,7 @@ function Ab(e) {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = Cre(a) ? a : null, o = n ? s.get(n) : null;
+ let n = Tre(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -20804,7 +20815,7 @@ function Ab(e) {
i
]);
}
-function Cre(e) {
+function Tre(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -20817,14 +20828,14 @@ function jb(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var Mb = (e) => wre(e) ? e.document : Tre(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Nb = (e) => Mb(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+var Mb = (e) => Ere(e) ? e.document : Dre(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Nb = (e) => Mb(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
function Pb(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function wre(e) {
+function Ere(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Tre(e) {
+function Dre(e) {
return Pb(e) && e.nodeType === 9;
}
function Fb(e) {
@@ -20852,9 +20863,9 @@ function Lb(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var Ere = !1;
+var Ore = !1;
function Rb() {
- return Ere;
+ return Ore;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
function zb(e, t) {
@@ -20897,8 +20908,8 @@ function Hb(e) {
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var Dre = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function Ore(e) {
+var kre = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Are(e) {
let t = Nb(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
@@ -20908,11 +20919,11 @@ function Ore(e) {
}
return i;
}
-function kre(e, t) {
+function jre(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
function Ub(e, t) {
- return Dre ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Ore(e) && kre(e, t) && (!e.parentElement || Ub(e.parentElement, e));
+ return kre ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Are(e) && jre(e, t) && (!e.parentElement || Ub(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
var Wb = [
@@ -20930,14 +20941,14 @@ var Wb = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Are = Wb.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+], Mre = Wb.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
Wb.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var jre = Wb.join(":not([hidden]):not([tabindex=\"-1\"]),");
+var Nre = Wb.join(":not([hidden]):not([tabindex=\"-1\"]),");
function Gb(e, t) {
- return e.matches(Are) && !qb(e) && (t?.skipVisibilityCheck || Ub(e));
+ return e.matches(Mre) && !qb(e) && (t?.skipVisibilityCheck || Ub(e));
}
function Kb(e) {
- return e.matches(jre) && Ub(e) && !qb(e);
+ return e.matches(Nre) && Ub(e) && !qb(e);
}
function qb(e) {
let t = e;
@@ -20995,7 +21006,7 @@ function Zb(e) {
}, [e]);
}
var Qb = !1;
-function Mre(e) {
+function Pre(e) {
for (; e && !Gb(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
let t = Bb(Nb(e).document);
if (!t || t === e) return;
@@ -21031,13 +21042,13 @@ function tx(e) {
}
var nx = tx(function() {
return ex(/^Mac/i);
-}), Nre = tx(function() {
+}), Fre = tx(function() {
return ex(/^iPhone/i);
}), rx = tx(function() {
return ex(/^iPad/i) || nx() && navigator.maxTouchPoints > 1;
}), ix = tx(function() {
- return Nre() || rx();
-}), Pre = tx(function() {
+ return Fre() || rx();
+}), Ire = tx(function() {
return nx() || ix();
}), ax = tx(function() {
return $b(/AppleWebKit/i) && (ix() || !ox());
@@ -21050,19 +21061,19 @@ var nx = tx(function() {
function cx(e) {
return e.pointerType === "" && e.isTrusted ? !0 : sx() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Fre(e) {
+function Lre(e) {
return !sx() && e.width === 0 && e.height === 0 || sx() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var Ire = /*#__PURE__*/ (0, P.createContext)({
+var Rre = /*#__PURE__*/ (0, P.createContext)({
isNative: !0,
- open: zre,
+ open: Vre,
useHref: (e) => e
});
function lx() {
- return (0, P.useContext)(Ire);
+ return (0, P.useContext)(Rre);
}
-function Lre(e, t) {
+function zre(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
@@ -21085,15 +21096,15 @@ function ux(e, t, n = !0) {
ux.isOpening = n, jb(e), e.dispatchEvent(s), ux.isOpening = !1;
}
ux.isOpening = !1;
-function Rre(e, t) {
+function Bre(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function zre(e, t) {
- Rre(e, (e) => ux(e, t));
+function Vre(e, t) {
+ Bre(e, (e) => ux(e, t));
}
function dx(e) {
let t = lx().useHref(e.href ?? "");
@@ -21118,17 +21129,17 @@ function fx(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Bre(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Lre(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function Hre(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && zre(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
var px = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, mx = /*#__PURE__*/ P.createContext(px), Vre = /*#__PURE__*/ P.createContext(!1);
+}, mx = /*#__PURE__*/ P.createContext(px), Ure = /*#__PURE__*/ P.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
var hx = /* @__PURE__ */ new WeakMap();
-function Hre(e = !1) {
+function Wre(e = !1) {
let t = (0, P.useContext)(mx), n = (0, P.useRef)(null);
if (n.current === null && !e) {
let e = P.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
@@ -21143,40 +21154,40 @@ function Hre(e = !1) {
}
return n.current;
}
-function Ure(e) {
- let t = (0, P.useContext)(mx), n = Hre(!!e), r = `react-aria${t.prefix}`;
+function Gre(e) {
+ let t = (0, P.useContext)(mx), n = Wre(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Wre(e) {
+function Kre(e) {
let t = P.useId(), [n] = (0, P.useState)(gx()), r = n ? "react-aria" : `react-aria${px.prefix}`;
return e || `${r}-${t}`;
}
-var Gre = typeof P.useId == "function" ? Wre : Ure;
-function Kre() {
+var qre = typeof P.useId == "function" ? Kre : Gre;
+function Jre() {
return !1;
}
-function qre() {
+function Yre() {
return !0;
}
-function Jre(e) {
+function Xre(e) {
return () => {};
}
function gx() {
- return typeof P.useSyncExternalStore == "function" ? P.useSyncExternalStore(Jre, Kre, qre) : (0, P.useContext)(Vre);
+ return typeof P.useSyncExternalStore == "function" ? P.useSyncExternalStore(Xre, Jre, Yre) : (0, P.useContext)(Ure);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var _x = null, vx = /* @__PURE__ */ new Set(), yx = /* @__PURE__ */ new Map(), bx = !1, xx = !1, Yre = {
+var _x = null, vx = /* @__PURE__ */ new Set(), yx = /* @__PURE__ */ new Map(), bx = !1, xx = !1, Zre = {
Tab: !0,
Escape: !0
};
function Sx(e, t) {
for (let n of vx) n(e, t);
}
-function Xre(e) {
+function Qre(e) {
return !(e.metaKey || !nx() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function Cx(e) {
- bx = !0, !ux.isOpening && Xre(e) && (_x = "keyboard", Sx("keyboard", e));
+ bx = !0, !ux.isOpening && Qre(e) && (_x = "keyboard", Sx("keyboard", e));
}
function wx(e) {
_x = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (bx = !0, Sx("pointer", e));
@@ -21221,13 +21232,13 @@ var Ax = (e, t) => {
value: yx.get(n).focus
}), r.removeEventListener("keydown", Cx, !0), r.removeEventListener("keyup", Cx, !0), r.removeEventListener("click", Tx, !0), r.removeEventListener("invalid", Ox, !0), n.removeEventListener("focus", Ex, !0), n.removeEventListener("blur", Dx, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", wx, !0), r.removeEventListener("pointermove", wx, !0), r.removeEventListener("pointerup", wx, !0)), yx.delete(n));
};
-function Zre(e) {
+function $re(e) {
let t = Mb(e), n;
return t.readyState === "loading" ? (n = () => {
kx(e);
}, t.addEventListener("DOMContentLoaded", n)) : kx(e), () => Ax(e, n);
}
-typeof document < "u" && Zre();
+typeof document < "u" && $re();
function jx() {
return _x !== "pointer";
}
@@ -21249,7 +21260,7 @@ function Px() {
};
}, []), gx() ? null : e;
}
-var Qre = /* @__PURE__ */ new Set([
+var eie = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -21260,9 +21271,9 @@ var Qre = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function $re(e, t, n) {
+function tie(e, t, n) {
let r = n ? G(n) : void 0, i = Mb(r), a = Nb(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = Bb(i);
- return e = e || u instanceof o && !Qre.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Yre[n.key]);
+ return e = e || u instanceof o && !eie.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Zre[n.key]);
}
function Fx(e = {}) {
let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, P.useState)(n || jx());
@@ -21274,7 +21285,7 @@ function Ix(e, t, n) {
kx(), (0, P.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- $re(!!n?.isTextInput, t, r) && e(jx());
+ tie(!!n?.isTextInput, t, r) && e(jx());
};
return vx.add(t), () => {
vx.delete(t);
@@ -21286,7 +21297,7 @@ var Lx = /* @__PURE__ */ new Map(), Rx = /* @__PURE__ */ new Set();
function zx(e) {
return "propertyName" in e;
}
-function eie(e) {
+function nie(e) {
let t = G(e);
if (!zx(e) || !t) return;
let n = Lx.get(t);
@@ -21299,15 +21310,15 @@ function Bx(e) {
if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", Bx), Lx.delete(t)), Lx.size === 0)) for (let e of Rx) e(!0), Rx.delete(e);
}
function Vx() {
- Ib(document, "transitionrun", eie), Ib(document, "transitionend", Bx);
+ Ib(document, "transitionrun", nie), Ib(document, "transitionend", Bx);
}
-function tie() {
+function rie() {
for (let [e] of Lx) "isConnected" in e && !e.isConnected && Lx.delete(e);
}
typeof document < "u" && (document.readyState === "loading" ? Ib(document, "DOMContentLoaded", Vx) : Vx());
function Hx(e) {
let t = window.requestAnimationFrame(() => {
- if (tie(), Lx.size === 0) return e(!1);
+ if (rie(), Lx.size === 0) return e(!1);
Rx.add(e);
});
return () => {
@@ -21333,7 +21344,7 @@ function Wx(...e) {
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function nie(e) {
+function iie(e) {
let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(t), i = (0, P.useRef)(null), a = (0, P.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
@@ -21346,14 +21357,14 @@ function nie(e) {
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var rie = !!(typeof window < "u" && window.document && window.document.createElement), Gx = /* @__PURE__ */ new Map(), Kx;
+var aie = !!(typeof window < "u" && window.document && window.document.createElement), Gx = /* @__PURE__ */ new Map(), Kx;
typeof FinalizationRegistry < "u" && (Kx = new FinalizationRegistry((e) => {
Gx.delete(e);
}));
var qx = /* @__PURE__ */ new WeakMap();
function Jx(e) {
- let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(null), i = Gre(t), a = (0, P.useRef)(null), o = qx.get(a);
- if (Kx && o !== i && (o != null && Kx.unregister(a), Kx.register(a, i, a), qx.set(a, i)), rie) {
+ let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(null), i = qre(t), a = (0, P.useRef)(null), o = qx.get(a);
+ if (Kx && o !== i && (o != null && Kx.unregister(a), Kx.register(a, i, a), qx.set(a, i)), aie) {
let e = Gx.get(i);
e && !e.includes(r) ? e.push(r) : Gx.set(i, [r]);
}
@@ -21369,7 +21380,7 @@ function Jx(e) {
};
}), i;
}
-function iie(e, t) {
+function oie(e, t) {
if (e === t) return e;
let n = Gx.get(e);
if (n) return n.forEach((e) => e.current = t), t;
@@ -21377,7 +21388,7 @@ function iie(e, t) {
return r ? (r.forEach((t) => t.current = e), e) : t;
}
function Yx(e = []) {
- let t = Jx(), [n, r] = nie(t), i = (0, P.useCallback)(() => {
+ let t = Jx(), [n, r] = iie(t), i = (0, P.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
@@ -21429,7 +21440,7 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Wx(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = $x(n, i) : e === "id" && n && i ? t.id = iie(n, i) : e === "ref" && n && i ? t.ref = Xx(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Wx(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = $x(n, i) : e === "id" && n && i ? t.id = oie(n, i) : e === "ref" && n && i ? t.ref = Xx(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
@@ -21476,33 +21487,33 @@ function tS(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var aie = /* @__PURE__ */ new Set([
+var sie = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), oie = [
+]), cie = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function sie(e) {
+function lie(e) {
let t = /* @__PURE__ */ new Set();
return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(nx() ? "Meta" : "Control"), t;
}
-function cie(e) {
+function uie(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
function nS(e) {
- return oie.filter((t) => e.has(t));
+ return cie.filter((t) => e.has(t));
}
-function lie(e) {
+function die(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return aie.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return sie.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -21517,7 +21528,7 @@ function lie(e) {
function rS(e) {
return e.toLowerCase();
}
-var uie = {
+var fie = {
space: " ",
esc: "escape",
del: "delete",
@@ -21529,26 +21540,26 @@ var uie = {
pageup: "pageup",
pagedown: "pagedown"
};
-function die(e) {
+function pie(e) {
let t = rS(e);
- return uie[t] ?? t;
+ return fie[t] ?? t;
}
-function fie(e) {
- let t = nS(sie(e)), n = die(e.key);
+function mie(e) {
+ let t = nS(lie(e)), n = pie(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function pie(e) {
- let t = nS(cie(e)), n = rS(e.key);
+function hie(e) {
+ let t = nS(uie(e)), n = rS(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function mie(e) {
+function gie(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = lie(n);
- t.set(fie(e), r);
+ let e = die(n);
+ t.set(mie(e), r);
}
return (e) => {
- let n = pie(e), r = t.get(n), i = r?.(e);
+ let n = hie(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -21562,7 +21573,7 @@ function mie(e) {
function iS(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = mie(t), s = tS((e) => {
+ let o = gie(t), s = tS((e) => {
zb(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
}), c = tS((e) => {
zb(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
@@ -21606,14 +21617,14 @@ function oS(e, t) {
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
var sS = /*#__PURE__*/ P.createContext(null);
-function hie(e) {
+function _ie(e) {
let t = (0, P.useContext)(sS) || {};
oS(t, e);
let { ref: n, ...r } = t;
return r;
}
function cS(e, t) {
- let { focusProps: n } = eS(e), { keyboardProps: r } = iS(e), i = K(n, r), a = hie(t), o = e.isDisabled ? {} : a, s = (0, P.useRef)(e.autoFocus);
+ let { focusProps: n } = eS(e), { keyboardProps: r } = iS(e), i = K(n, r), a = _ie(t), o = e.isDisabled ? {} : a, s = (0, P.useRef)(e.autoFocus);
(0, P.useEffect)(() => {
s.current && t.current && Ux(t.current), s.current = !1;
}, [t]);
@@ -21650,7 +21661,7 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
}
}));
var lS = /*#__PURE__*/ (0, P.createContext)(!1);
-function gie(e) {
+function vie(e) {
if ((0, P.useContext)(lS)) return /*#__PURE__*/ P.createElement(P.Fragment, null, e.children);
let t = /*#__PURE__*/ P.createElement(lS.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ P.createElement("template", null, t);
@@ -21663,7 +21674,7 @@ function dS() {
return (0, P.useContext)(lS);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var _ie = /* @__PURE__ */ o(((e) => {
+var fS = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -21701,47 +21712,47 @@ var _ie = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), fS = /* @__PURE__ */ o(((e, t) => {
- t.exports = _ie();
-})), vie = fS(), pS = /*#__PURE__*/ (0, P.createContext)(!1), mS = /*#__PURE__*/ (0, P.createContext)(null);
-function hS(e) {
- if ((0, P.useContext)(mS)) return e.content;
- let { collection: t, document: n } = Sie(e.createCollection);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(gie, null, /*#__PURE__*/ P.createElement(mS.Provider, { value: n }, e.content)), /*#__PURE__*/ P.createElement(yie, {
+})), pS = /* @__PURE__ */ o(((e, t) => {
+ t.exports = fS();
+})), mS = pS(), hS = /*#__PURE__*/ (0, P.createContext)(!1), gS = /*#__PURE__*/ (0, P.createContext)(null);
+function _S(e) {
+ if ((0, P.useContext)(gS)) return e.content;
+ let { collection: t, document: n } = xS(e.createCollection);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(vie, null, /*#__PURE__*/ P.createElement(gS.Provider, { value: n }, e.content)), /*#__PURE__*/ P.createElement(vS, {
render: e.children,
collection: t
}));
}
-function yie({ collection: e, render: t }) {
+function vS({ collection: e, render: t }) {
return t(e);
}
-function bie(e, t, n) {
+function yS(e, t, n) {
let r = gx(), i = (0, P.useRef)(r);
i.current = r;
let a = (0, P.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, vie.useSyncExternalStore)(e, a);
+ return (0, mS.useSyncExternalStore)(e, a);
}
-var xie = typeof P.useSyncExternalStore == "function" ? P.useSyncExternalStore : bie;
-function Sie(e) {
- let [t] = (0, P.useState)(() => new Sre(e?.() || new Eb()));
+var bS = typeof P.useSyncExternalStore == "function" ? P.useSyncExternalStore : yS;
+function xS(e) {
+ let [t] = (0, P.useState)(() => new wre(e?.() || new Eb()));
return {
- collection: xie((0, P.useCallback)((e) => t.subscribe(e), [t]), (0, P.useCallback)(() => {
+ collection: bS((0, P.useCallback)((e) => t.subscribe(e), [t]), (0, P.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, P.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var gS = /*#__PURE__*/ (0, P.createContext)(null);
-function Cie(e) {
+var SS = /*#__PURE__*/ (0, P.createContext)(null);
+function CS(e) {
return class extends Sb {
static {
this.type = e;
}
};
}
-function _S(e, t, n, r, i, a) {
- typeof e == "string" && (e = Cie(e));
+function wS(e, t, n, r, i, a) {
+ typeof e == "string" && (e = CS(e));
let o = (0, P.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -21750,82 +21761,82 @@ function _S(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, P.useContext)(gS);
+ ]), s = (0, P.useContext)(SS);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ P.createElement(gS.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ P.createElement(SS.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ P.createElement(e.type, { ref: o }, i);
}
-function vS(e, t) {
+function TS(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, P.forwardRef)((r, i) => {
let a = (0, P.useContext)(sS);
- if (!(0, P.useContext)(pS)) {
+ if (!(0, P.useContext)(hS)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return _S(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ P.createElement(sS.Provider, { value: a }, /*#__PURE__*/ P.createElement(n, { node: e })));
+ return wS(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ P.createElement(sS.Provider, { value: a }, /*#__PURE__*/ P.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function yS(e, t, n = bS) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, P.forwardRef)((t, i) => _S(e, t, i, null, n(t), (e) => /*#__PURE__*/ P.createElement(r, { node: e })) ?? /*#__PURE__*/ P.createElement(P.Fragment, null));
+function ES(e, t, n = DS) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, P.forwardRef)((t, i) => wS(e, t, i, null, n(t), (e) => /*#__PURE__*/ P.createElement(r, { node: e })) ?? /*#__PURE__*/ P.createElement(P.Fragment, null));
return i.displayName = t.name, i;
}
-function bS(e) {
+function DS(e) {
return Ab({
...e,
addIdAndValue: !0
});
}
-var xS = /*#__PURE__*/ (0, P.createContext)(null);
-function SS(e) {
- let t = (0, P.useContext)(xS), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = bS({
+var OS = /*#__PURE__*/ (0, P.createContext)(null);
+function kS(e) {
+ let t = (0, P.useContext)(OS), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = DS({
...e,
idScope: r,
dependencies: n
});
- return (0, P.useContext)(mS) && (i = /*#__PURE__*/ P.createElement(wie, null, i)), t = (0, P.useMemo)(() => ({
+ return (0, P.useContext)(gS) && (i = /*#__PURE__*/ P.createElement(AS, null, i)), t = (0, P.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ P.createElement(xS.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ P.createElement(OS.Provider, { value: t }, i);
}
-function wie({ children: e }) {
- let t = (0, P.useContext)(mS), n = (0, P.useMemo)(() => /*#__PURE__*/ P.createElement(mS.Provider, { value: null }, /*#__PURE__*/ P.createElement(pS.Provider, { value: !0 }, e)), [e]);
- return gx() ? /*#__PURE__*/ P.createElement(gS.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
+function AS({ children: e }) {
+ let t = (0, P.useContext)(gS), n = (0, P.useMemo)(() => /*#__PURE__*/ P.createElement(gS.Provider, { value: null }, /*#__PURE__*/ P.createElement(hS.Provider, { value: !0 }, e)), [e]);
+ return gx() ? /*#__PURE__*/ P.createElement(SS.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var Tie = "react-aria-clear-focus", Eie = "react-aria-focus";
+var jS = "react-aria-clear-focus", MS = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function CS(e) {
- let t = Oie(Mb(e));
- t !== e && (t && Die(t, e), e && wS(e, t));
+function NS(e) {
+ let t = IS(Mb(e));
+ t !== e && (t && PS(t, e), e && FS(e, t));
}
-function Die(e, t) {
+function PS(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function wS(e, t) {
+function FS(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function Oie(e) {
+function IS(e) {
let t = Bb(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function TS(e, t) {
+function LS(e, t) {
let n = Nb(t), r = Mb(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var ES = 100, DS = 600, OS = {
+var RS = 100, zS = 600, BS = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -21835,7 +21846,7 @@ var ES = 100, DS = 600, OS = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, kie = /* @__PURE__ */ new Set([
+}, VS = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -21846,7 +21857,7 @@ var ES = 100, DS = 600, OS = {
"submit",
"reset"
]);
-function kS() {
+function HS() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -21854,58 +21865,58 @@ function kS() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function Aie(e) {
- OS.resizeTimeStamp <= e.timeStamp + 50 && (OS.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(OS.resizeTimeout), OS.resizeTimeout = window.setTimeout(AS, 150));
+function yie(e) {
+ BS.resizeTimeStamp <= e.timeStamp + 50 && (BS.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(BS.resizeTimeout), BS.resizeTimeout = window.setTimeout(US, 150));
}
-function AS() {
- let e = TS("viewport");
+function US() {
+ let e = LS("viewport");
if (sx() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = kS(), r = t - OS.startTimeStamp, i = OS.screenHeight - n.height, a = OS.screenAngle - n.angle;
- Math.abs(a) % 180 && OS.screenWidth - n.height < ES && (OS.screenWidth = n.width, OS.screenHeight = n.height, OS.screenAngle = n.angle, i = 0), r > DS && (window.clearTimeout(OS.screenTimeout), OS.screenTimeout = window.setTimeout(() => {
- let e = NS(document.hasFocus() ? Bb() : null), t = kS();
- Math.abs(OS.screenAngle - t.angle) % 180 || OS.isOpen && e || (OS.screenWidth = t.width, OS.screenHeight = t.height, OS.screenAngle = t.angle, OS.isOpen = !1);
- }, DS)), r <= DS && i >= ES && (OS.endTimeStamp = t), OS.isOpen = i >= ES;
+ let t = performance.now(), n = HS(), r = t - BS.startTimeStamp, i = BS.screenHeight - n.height, a = BS.screenAngle - n.angle;
+ Math.abs(a) % 180 && BS.screenWidth - n.height < RS && (BS.screenWidth = n.width, BS.screenHeight = n.height, BS.screenAngle = n.angle, i = 0), r > zS && (window.clearTimeout(BS.screenTimeout), BS.screenTimeout = window.setTimeout(() => {
+ let e = KS(document.hasFocus() ? Bb() : null), t = HS();
+ Math.abs(BS.screenAngle - t.angle) % 180 || BS.isOpen && e || (BS.screenWidth = t.width, BS.screenHeight = t.height, BS.screenAngle = t.angle, BS.isOpen = !1);
+ }, zS)), r <= zS && i >= RS && (BS.endTimeStamp = t), BS.isOpen = i >= RS;
}
-function jie() {
- let e = kS(), t = OS.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !OS.isOpen) {
- let e = OS.screenWidth;
- OS.screenWidth = OS.screenHeight, OS.screenHeight = e;
+function bie() {
+ let e = HS(), t = BS.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !BS.isOpen) {
+ let e = BS.screenWidth;
+ BS.screenWidth = BS.screenHeight, BS.screenHeight = e;
}
- OS.isOpen || (OS.screenAngle = e.angle);
+ BS.isOpen || (BS.screenAngle = e.angle);
}
-function Mie(e) {
- let t = NS(G(e)), n = performance.now(), r = kS(), i = OS.screenHeight - r.height;
- i < ES && t && (OS.screenWidth = r.width, OS.screenHeight = r.height, OS.screenAngle = r.angle, OS.startTimeStamp = n), t && window.clearTimeout(OS.screenTimeout), i >= ES && t && (OS.endTimeStamp = n);
+function xie(e) {
+ let t = KS(G(e)), n = performance.now(), r = HS(), i = BS.screenHeight - r.height;
+ i < RS && t && (BS.screenWidth = r.width, BS.screenHeight = r.height, BS.screenAngle = r.angle, BS.startTimeStamp = n), t && window.clearTimeout(BS.screenTimeout), i >= RS && t && (BS.endTimeStamp = n);
}
-function jS() {
- let e = kS();
- Ib(window.visualViewport, "resize", ax() ? AS : Aie), Ib(window.screen.orientation, "change", jie), Ib(window, "focus", Mie, {
+function WS() {
+ let e = HS();
+ Ib(window.visualViewport, "resize", ax() ? US : yie), Ib(window.screen.orientation, "change", bie), Ib(window, "focus", xie, {
capture: !0,
passive: !0
- }), OS.screenWidth = e.width, OS.screenHeight = e.height, OS.screenAngle = e.angle;
+ }), BS.screenWidth = e.width, BS.screenHeight = e.height, BS.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? Ib(document, "DOMContentLoaded", jS) : jS());
-function MS() {
- let e = TS("viewport");
- return sx() && e?.includes("overlays-content") ? !1 : OS.isOpen ? !0 : OS.startTimeStamp ? OS.endTimeStamp >= OS.startTimeStamp ? !0 : performance.now() - OS.startTimeStamp <= DS ? OS.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? Ib(document, "DOMContentLoaded", WS) : WS());
+function GS() {
+ let e = LS("viewport");
+ return sx() && e?.includes("overlays-content") ? !1 : BS.isOpen ? !0 : BS.startTimeStamp ? BS.endTimeStamp >= BS.startTimeStamp ? !0 : performance.now() - BS.startTimeStamp <= zS ? BS.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function NS(e) {
+function KS(e) {
if (!(e instanceof Element) || !Gb(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !kie.has(e.type);
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !VS.has(e.type);
return t || n || r;
}
-function PS(e) {
+function qS(e) {
return nx() ? e.metaKey : e.ctrlKey;
}
-function FS() {
- return OS.isOpen;
+function JS() {
+ return BS.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Nie = P.useInsertionEffect ?? Jb;
-function IS(e) {
+var Sie = P.useInsertionEffect ?? Jb;
+function YS(e) {
let t = (0, P.useRef)(null);
- return Nie(() => {
+ return Sie(() => {
t.current = e;
}, [e]), (0, P.useCallback)((...e) => {
let n = t.current;
@@ -21913,8 +21924,8 @@ function IS(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function LS(e, t, n, r) {
- let i = IS(n), a = n == null;
+function XS(e, t, n, r) {
+ let i = YS(n), a = n == null;
(0, P.useEffect)(() => {
if (!(a || e.current == null)) return Ib(e.current, t, i, r);
}, [
@@ -21925,7 +21936,7 @@ function LS(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function RS(e, t) {
+function ZS(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
return n = Jx(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
@@ -21934,7 +21945,7 @@ function RS(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var Pie = /* @__PURE__ */ new Set([
+var Cie = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -21945,7 +21956,7 @@ var Pie = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Fie = /* @__PURE__ */ new Set([
+]), wie = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -21966,19 +21977,19 @@ var Pie = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Iie(e) {
+function Tie(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return Pie.has(t.script);
+ if (t.script) return Cie.has(t.script);
}
let t = e.split("-")[0];
- return Fie.has(t);
+ return wie.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var zS = Symbol.for("react-aria.i18n.locale");
-function BS() {
- let e = typeof window < "u" && window[zS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var QS = Symbol.for("react-aria.i18n.locale");
+function $S() {
+ let e = typeof window < "u" && window[QS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -21986,31 +21997,31 @@ function BS() {
}
return {
locale: e,
- direction: Iie(e) ? "rtl" : "ltr"
+ direction: Tie(e) ? "rtl" : "ltr"
};
}
-var VS = BS(), HS = /* @__PURE__ */ new Set();
-function US() {
- VS = BS();
- for (let e of HS) e(VS);
+var eC = $S(), tC = /* @__PURE__ */ new Set();
+function nC() {
+ eC = $S();
+ for (let e of tC) e(eC);
}
-function Lie() {
- let e = gx(), [t, n] = (0, P.useState)(VS);
- return (0, P.useEffect)(() => (HS.size === 0 && window.addEventListener("languagechange", US), HS.add(n), () => {
- HS.delete(n), HS.size === 0 && window.removeEventListener("languagechange", US);
+function Eie() {
+ let e = gx(), [t, n] = (0, P.useState)(eC);
+ return (0, P.useEffect)(() => (tC.size === 0 && window.addEventListener("languagechange", nC), tC.add(n), () => {
+ tC.delete(n), tC.size === 0 && window.removeEventListener("languagechange", nC);
}), []), e ? {
- locale: typeof window < "u" && window[zS] || "en-US",
+ locale: typeof window < "u" && window[QS] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Rie = /*#__PURE__*/ P.createContext(null);
-function WS() {
- let e = Lie();
- return (0, P.useContext)(Rie) || e;
+var Die = /*#__PURE__*/ P.createContext(null);
+function rC() {
+ let e = Eie();
+ return (0, P.useContext)(Die) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var zie = Symbol.for("react-aria.i18n.locale"), Bie = Symbol.for("react-aria.i18n.strings"), GS = void 0, KS = class e {
+var Oie = Symbol.for("react-aria.i18n.locale"), kie = Symbol.for("react-aria.i18n.strings"), iC = void 0, aC = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -22021,38 +22032,38 @@ var zie = Symbol.for("react-aria.i18n.locale"), Bie = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Vie(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Aie(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[zie];
- if (GS === void 0) {
- let t = window[Bie];
+ let n = window[Oie];
+ if (iC === void 0) {
+ let t = window[kie];
if (!t) return null;
- GS = {};
- for (let r in t) GS[r] = new e({ [n]: t[r] }, n);
+ iC = {};
+ for (let r in t) iC[r] = new e({ [n]: t[r] }, n);
}
- let r = GS?.[t];
+ let r = iC?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Vie(e, t, n = "en-US") {
+function Aie(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Hie(e), i = Uie(e);
+ let r = jie(e), i = Mie(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Hie(e) {
+function jie(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Uie(e) {
+function Mie(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var qS = /* @__PURE__ */ new Map(), JS = /* @__PURE__ */ new Map(), Wie = class {
+var oC = /* @__PURE__ */ new Map(), sC = /* @__PURE__ */ new Map(), Nie = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -22063,36 +22074,36 @@ var qS = /* @__PURE__ */ new Map(), JS = /* @__PURE__ */ new Map(), Wie = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = qS.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), qS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = oC.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), oC.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = JS.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), JS.set(this.locale, t)), t.format(e);
+ let t = sC.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), sC.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, YS = /* @__PURE__ */ new WeakMap();
-function Gie(e) {
- let t = YS.get(e);
- return t || (t = new KS(e), YS.set(e, t)), t;
+}, cC = /* @__PURE__ */ new WeakMap();
+function Pie(e) {
+ let t = cC.get(e);
+ return t || (t = new aC(e), cC.set(e, t)), t;
}
-function Kie(e, t) {
- return t && KS.getGlobalDictionaryForPackage(t) || Gie(e);
+function Fie(e, t) {
+ return t && aC.getGlobalDictionaryForPackage(t) || Pie(e);
}
-function XS(e, t) {
- let { locale: n } = WS(), r = Kie(e, t);
- return (0, P.useMemo)(() => new Wie(n, r), [n, r]);
+function lC(e, t) {
+ let { locale: n } = rC(), r = Fie(e, t);
+ return (0, P.useMemo)(() => new Nie(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var qie = /* @__PURE__ */ new Set(["id"]), Jie = /* @__PURE__ */ new Set([
+var Iie = /* @__PURE__ */ new Set(["id"]), Lie = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Yie = /* @__PURE__ */ new Set([
+]), Rie = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -22100,60 +22111,60 @@ var qie = /* @__PURE__ */ new Set(["id"]), Jie = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Xie = /* @__PURE__ */ new Set([
+]), zie = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), ZS = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Zie = /^(data-.*)$/;
-function QS(e, t = {}) {
+]), uC = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Bie = /^(data-.*)$/;
+function dC(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (qie.has(t) || n && Jie.has(t) || r && Yie.has(t) || i && Xie.has(t) || a && (ZS.has(t) || t.endsWith("Capture") && ZS.has(t.slice(0, -7))) || o?.has(t) || Zie.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Iie.has(t) || n && Lie.has(t) || r && Rie.has(t) || i && zie.has(t) || a && (uC.has(t) || t.endsWith("Capture") && uC.has(t.slice(0, -7))) || o?.has(t) || Bie.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var $S = "default", eC = "", tC = /* @__PURE__ */ new WeakMap();
-function nC(e) {
+var fC = "default", pC = "", mC = /* @__PURE__ */ new WeakMap();
+function hC(e) {
if (ix() && ax()) {
- if ($S === "default") {
+ if (fC === "default") {
let t = Mb(e);
- eC = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ pC = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- $S = "disabled";
+ fC = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- tC.set(e, e.style[t]), e.style[t] = "none";
+ mC.set(e, e.style[t]), e.style[t] = "none";
}
}
-function rC(e) {
+function gC(e) {
if (ix() && ax()) {
- if ($S !== "disabled") return;
- $S = "restoring", setTimeout(() => {
+ if (fC !== "disabled") return;
+ fC = "restoring", setTimeout(() => {
Hx(() => {
- if ($S === "restoring") {
+ if (fC === "restoring") {
let t = Mb(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = eC || ""), eC = "", $S = "default";
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = pC || ""), pC = "", fC = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && tC.has(e)) {
- let t = tC.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), tC.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && mC.has(e)) {
+ let t = mC.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), mC.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var iC = /* @__PURE__ */ new WeakMap();
-function aC(e) {
- let t = Mb(e), n = iC.get(t);
- return n ??= TS("csp-nonce", t), n !== void 0 && iC.set(t, n), n;
+var _C = /* @__PURE__ */ new WeakMap();
+function vC(e) {
+ let t = Mb(e), n = _C.get(t);
+ return n ??= LS("csp-nonce", t), n !== void 0 && _C.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var oC = P.createContext({ register: () => {} });
-oC.displayName = "PressResponderContext";
+var yC = P.createContext({ register: () => {} });
+yC.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function sC() {
+function bC() {
let e = (0, P.useRef)(/* @__PURE__ */ new Map()), t = (0, P.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -22179,15 +22190,15 @@ function sC() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function cC(e) {
- let t = (0, P.useContext)(oC);
+function Vie(e) {
+ let t = (0, P.useContext)(yC);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
return oS(t, e.ref), e;
}
-var lC = class {
+var xC = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -22200,9 +22211,9 @@ var lC = class {
get shouldStopPropagation() {
return this.#e;
}
-}, uC = Symbol("linkClicked"), dC = "react-aria-pressable-style", fC = "data-react-aria-pressable";
-function pC(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = cC(e), [m, h] = (0, P.useState)(!1), g = (0, P.useRef)({
+}, SC = Symbol("linkClicked"), CC = "react-aria-pressable-style", wC = "data-react-aria-pressable";
+function TC(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Vie(e), [m, h] = (0, P.useState)(!1), g = (0, P.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -22212,12 +22223,12 @@ function pC(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = sC(), y = (0, P.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = bC(), y = (0, P.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new lC("pressstart", t, e);
+ let n = new xC("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -22231,11 +22242,11 @@ function pC(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new lC("pressend", r, e);
+ let t = new xC("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new lC("press", r, e);
+ let n = new xC("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -22244,19 +22255,19 @@ function pC(e) {
i,
n,
t
- ]), x = IS(b), S = IS((0, P.useCallback)((e, t) => {
+ ]), x = YS(b), S = YS((0, P.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new lC("pressup", t, e);
+ let r = new xC("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, P.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(gC(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || rC(t.target);
+ t.didFirePressStart && t.pointerType != null && b(OC(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || gC(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -22264,7 +22275,7 @@ function pC(e) {
d,
v,
b
- ]), w = IS(C);
+ ]), w = YS(C);
(0, P.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -22286,13 +22297,13 @@ function pC(e) {
}, [s, o]), O = (0, P.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (hC(t.nativeEvent, t.currentTarget) && zb(t.currentTarget, G(t))) {
- vC(G(t), t.key) && t.preventDefault();
+ if (DC(t.nativeEvent, t.currentTarget) && zb(t.currentTarget, G(t))) {
+ kC(G(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
_(Mb(t.currentTarget), "keyup", Wx((t) => {
- hC(t, i) && !t.repeat && zb(i, G(t)) && e.target && S(gC(e.target, t), "keyboard");
+ DC(t, i) && !t.repeat && zb(i, G(t)) && e.target && S(OC(e.target, t), "keyboard");
}, n), !0), r && t.stopPropagation(), t.metaKey && nx() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
@@ -22303,17 +22314,17 @@ function pC(e) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(gC(t.currentTarget, t), r), a = x(gC(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(OC(t.currentTarget, t), r), a = x(OC(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && hC(t, e.target)) {
- vC(G(t), t.key) && t.preventDefault();
+ if (e.isPressed && e.target && DC(t, e.target)) {
+ kC(G(t), t.key) && t.preventDefault();
let n = G(t), r = zb(e.target, n);
- x(gC(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && mC(e.target) && zb(e.target, n) && !t[uC] && (t[uC] = !0, ux(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ x(OC(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && EC(e.target) && zb(e.target, n) && !t[SC] && (t[SC] = !0, ux(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -22323,14 +22334,14 @@ function pC(e) {
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
if (t.button !== 0 || !zb(t.currentTarget, G(t))) return;
- if (Fre(t.nativeEvent)) {
+ if (Lre(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || nC(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || hC(e.target), i = y(t, e.pointerType);
let a = G(t);
"releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Mb(t.currentTarget), "pointerup", n, !1), _(Mb(t.currentTarget), "pointercancel", r, !1);
}
@@ -22338,7 +22349,7 @@ function pC(e) {
}, t.onMouseDown = (t) => {
if (zb(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = Mre(t.target);
+ let n = Pre(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
@@ -22346,9 +22357,9 @@ function pC(e) {
}, t.onPointerUp = (t) => {
zb(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(gC(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(OC(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(gC(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(OC(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
@@ -22382,13 +22393,13 @@ function pC(e) {
return (0, P.useEffect)(() => {
if (!f) return;
let e = Mb(f.current);
- if (!e || !e.head || e.getElementById(dC)) return;
+ if (!e || !e.head || e.getElementById(CC)) return;
let t = e.createElement("style");
- t.id = dC;
- let n = aC(e);
+ t.id = CC;
+ let n = vC(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${fC}] {
+ [${wC}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -22396,23 +22407,23 @@ function pC(e) {
}, [f]), (0, P.useEffect)(() => {
let e = g.current;
return () => {
- d || rC(e.target ?? void 0);
+ d || gC(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [fC]: !0 })
+ pressProps: K(p, O, { [wC]: !0 })
};
}
-function mC(e) {
+function EC(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function hC(e, t) {
+function DC(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Nb(i).HTMLInputElement && !bC(i, n) || i instanceof Nb(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && mC(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Nb(i).HTMLInputElement && !AC(i, n) || i instanceof Nb(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && EC(i)) && n !== "Enter");
}
-function gC(e, t) {
+function OC(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -22425,13 +22436,13 @@ function gC(e, t) {
key: t.key
};
}
-function _C(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !mC(e);
+function Hie(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !EC(e);
}
-function vC(e, t) {
- return nx() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !bC(e, t) : _C(e);
+function kC(e, t) {
+ return nx() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !AC(e, t) : Hie(e);
}
-var yC = /* @__PURE__ */ new Set([
+var Uie = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22442,11 +22453,11 @@ var yC = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function bC(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : yC.has(e.type);
+function AC(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Uie.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function xC(e, t) {
+function Wie(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -22468,7 +22479,7 @@ function xC(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = pC({
+ let { pressProps: _, isPressed: v } = TC({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -22480,7 +22491,7 @@ function xC(e, t) {
ref: t
}), { focusableProps: y } = cS(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, QS(e, { labelable: !0 }));
+ let b = K(y, _, dC(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -22494,7 +22505,7 @@ function xC(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var SC = class {
+var Gie = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -22597,44 +22608,44 @@ var SC = class {
return null;
}
};
-function CC(e, t, n, r) {
- return Rb() ? new SC(e, t, n, r) : e.createTreeWalker(t, n, r);
+function jC(e, t, n, r) {
+ return Rb() ? new Gie(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var wC = /*#__PURE__*/ P.createContext(null), TC = "react-aria-focus-scope-restore", EC = null;
-function DC(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)([]), { parentNode: c } = (0, P.useContext)(wC) || {}, l = (0, P.useMemo)(() => new HC({ scopeRef: s }), [s]);
+var MC = /*#__PURE__*/ P.createContext(null), NC = "react-aria-focus-scope-restore", PC = null;
+function FC(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)([]), { parentNode: c } = (0, P.useContext)(MC) || {}, l = (0, P.useMemo)(() => new JC({ scopeRef: s }), [s]);
Jb(() => {
- let e = c || UC.root;
- if (UC.getTreeNode(e.scopeRef) && EC && !FC(EC, e.scopeRef)) {
- let t = UC.getTreeNode(EC);
+ let e = c || YC.root;
+ if (YC.getTreeNode(e.scopeRef) && PC && !VC(PC, e.scopeRef)) {
+ let t = YC.getTreeNode(PC);
t && (e = t);
}
- e.addChild(l), UC.addNode(l);
+ e.addChild(l), YC.addNode(l);
}, [l, c]), Jb(() => {
- let e = UC.getTreeNode(s);
+ let e = YC.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), Jb(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(TC, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(NC, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(TC, n);
+ for (let e of t) e.removeEventListener(NC, n);
};
- }, [t]), nae(s, r, n), $ie(s, n), rae(s, r, n), tae(s, i), (0, P.useEffect)(() => {
+ }, [t]), Qie(s, r, n), Yie(s, n), $ie(s, r, n), Zie(s, i), (0, P.useEffect)(() => {
let e = Bb(Mb(s.current ? s.current[0] : void 0)), t = null;
- if (NC(e, s.current)) {
- for (let n of UC.traverse()) n.scopeRef && NC(e, n.scopeRef.current) && (t = n);
- t === UC.getTreeNode(s) && (EC = t.scopeRef);
+ if (zC(e, s.current)) {
+ for (let n of YC.traverse()) n.scopeRef && zC(e, n.scopeRef.current) && (t = n);
+ t === YC.getTreeNode(s) && (PC = t.scopeRef);
}
}, [s]), Jb(() => () => {
- let e = UC.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== EC && !FC(s, EC) || e && !UC.getTreeNode(e) || (EC = e), UC.removeTreeNode(s);
+ let e = YC.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== PC && !VC(s, PC) || e && !YC.getTreeNode(e) || (PC = e), YC.removeTreeNode(s);
}, [s]);
- let u = (0, P.useMemo)(() => OC(s), []), d = (0, P.useMemo)(() => ({
+ let u = (0, P.useMemo)(() => Kie(s), []), d = (0, P.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ P.createElement(wC.Provider, { value: d }, /*#__PURE__*/ P.createElement("span", {
+ return /*#__PURE__*/ P.createElement(MC.Provider, { value: d }, /*#__PURE__*/ P.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -22644,68 +22655,68 @@ function DC(e) {
ref: o
}));
}
-function OC(e) {
+function Kie(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Bb(Mb(n[0] ?? void 0)), c = n[0].previousElementSibling, l = VC(kC(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Bb(Mb(n[0] ?? void 0)), c = n[0].previousElementSibling, l = qC(IC(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = NC(s, n) ? s : c;
+ l.currentNode = zC(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && IC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && HC(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Bb(Mb(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = VC(kC(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Bb(Mb(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = qC(IC(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = NC(s, n) ? s : c;
+ l.currentNode = zC(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && IC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && HC(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = VC(kC(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = qC(IC(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && IC(o, !0), o;
+ return o && HC(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = VC(kC(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = qC(IC(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && IC(o, !0), o;
+ return o && HC(o, !0), o;
}
};
}
-function kC(e) {
+function IC(e) {
return e[0].parentElement;
}
-function AC(e) {
- let t = UC.getTreeNode(EC);
+function LC(e) {
+ let t = YC.getTreeNode(PC);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function jC(e) {
+function qie(e) {
if (!e.form) return Array.from(Mb(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
let t = e.form.elements.namedItem(e.name), n = Nb(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Qie(e) {
+function Jie(e) {
if (e.checked) return !0;
- let t = jC(e);
+ let t = qie(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function $ie(e, t) {
+function Yie(e, t) {
let n = (0, P.useRef)(void 0), r = (0, P.useRef)(void 0);
Jb(() => {
let i = e.current;
@@ -22714,23 +22725,23 @@ function $ie(e, t) {
return;
}
let a = Mb(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !AC(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !LC(e) || t.isComposing) return;
let n = Bb(a), r = e.current;
- if (!r || !NC(n, r)) return;
- let i = VC(kC(r), { tabbable: !0 }, r);
+ if (!r || !zC(n, r)) return;
+ let i = qC(IC(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (IC(o, !0), o instanceof Nb(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (HC(o, !0), o instanceof Nb(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!EC || FC(EC, e)) && NC(G(t), e.current) ? (EC = e, n.current = G(t)) : AC(e) && !PC(G(t), e) ? n.current ? IC(n.current) : EC && EC.current && RC(EC.current) : AC(e) && (n.current = G(t));
+ (!PC || VC(PC, e)) && zC(G(t), e.current) ? (PC = e, n.current = G(t)) : LC(e) && !BC(G(t), e) ? n.current ? HC(n.current) : PC && PC.current && WC(PC.current) : LC(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
let r = Mx(), i = (r === "virtual" || r === null) && sx() && ox(), o = Bb(a);
- if (!i && o && AC(e) && !PC(o, e)) {
- EC = e;
+ if (!i && o && LC(e) && !BC(o, e)) {
+ PC = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, IC(n.current)) : EC.current && RC(EC.current);
+ r && r.isConnected ? (n.current = r, HC(n.current)) : PC.current && WC(PC.current);
}
});
};
@@ -22741,29 +22752,29 @@ function $ie(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function MC(e) {
- return PC(e);
+function RC(e) {
+ return BC(e);
}
-function NC(e, t) {
+function zC(e, t) {
return !e || !t ? !1 : t.some((t) => zb(t, e));
}
-function PC(e, t = null) {
+function BC(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of UC.traverse(UC.getTreeNode(t))) if (n && NC(e, n.current)) return !0;
+ for (let { scopeRef: n } of YC.traverse(YC.getTreeNode(t))) if (n && zC(e, n.current)) return !0;
return !1;
}
-function eae(e) {
- return PC(e, EC);
+function Xie(e) {
+ return BC(e, PC);
}
-function FC(e, t) {
- let n = UC.getTreeNode(t)?.parent;
+function VC(e, t) {
+ let n = YC.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function IC(e, t = !1) {
+function HC(e, t = !1) {
if (e != null && !t) try {
Ux(e);
} catch {}
@@ -22771,27 +22782,27 @@ function IC(e, t = !1) {
e.focus();
} catch {}
}
-function LC(e, t = !0) {
- let n = e[0].previousElementSibling, r = kC(e), i = VC(r, { tabbable: t }, e);
+function UC(e, t = !0) {
+ let n = e[0].previousElementSibling, r = IC(e), i = qC(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = kC(e), i = VC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = IC(e), i = qC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function RC(e, t = !0) {
- IC(LC(e, t));
+function WC(e, t = !0) {
+ HC(UC(e, t));
}
-function tae(e, t) {
+function Zie(e, t) {
let n = P.useRef(t);
(0, P.useEffect)(() => {
- n.current && (EC = e, !NC(Bb(Mb(e.current ? e.current[0] : void 0)), EC.current) && e.current && RC(e.current)), n.current = !1;
+ n.current && (PC = e, !zC(Bb(Mb(e.current ? e.current[0] : void 0)), PC.current) && e.current && WC(e.current)), n.current = !1;
}, [e]);
}
-function nae(e, t, n) {
+function Qie(e, t, n) {
Jb(() => {
if (t || n) return;
let r = e.current, i = Mb(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- NC(n, e.current) ? EC = e : MC(n) || (EC = null);
+ zC(n, e.current) ? PC = e : RC(n) || (PC = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -22802,21 +22813,21 @@ function nae(e, t, n) {
n
]);
}
-function zC(e) {
- let t = UC.getTreeNode(EC);
+function GC(e) {
+ let t = YC.getTreeNode(PC);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function rae(e, t, n) {
+function $ie(e, t, n) {
let r = (0, P.useRef)(typeof document < "u" ? Bb(Mb(e.current ? e.current[0] : void 0)) : null);
Jb(() => {
let r = e.current, i = Mb(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!EC || FC(EC, e)) && NC(Bb(i), e.current) && (EC = e);
+ (!PC || VC(PC, e)) && zC(Bb(i), e.current) && (PC = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -22825,20 +22836,20 @@ function rae(e, t, n) {
let r = Mb(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !AC(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !LC(e) || t.isComposing) return;
let n = r.activeElement;
- if (!PC(n, e) || !zC(e)) return;
- let i = UC.getTreeNode(e);
+ if (!BC(n, e) || !GC(e)) return;
+ let i = YC.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = VC(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = qC(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !PC(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !BC(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (PC(s, e));
- t.preventDefault(), t.stopPropagation(), s ? IC(s, !0) : MC(a) ? IC(a, !0) : n.blur();
+ while (BC(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? HC(s, !0) : RC(a) ? HC(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -22851,28 +22862,28 @@ function rae(e, t, n) {
]), Jb(() => {
let n = Mb(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = UC.getTreeNode(e);
+ let i = YC.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = UC.getTreeNode(e);
+ let r = YC.getTreeNode(e);
if (!r) return;
let i = r.nodeToRestore, a = Bb(n);
- if (t && i && (a && PC(a, e) || a === n.body && zC(e))) {
- let t = UC.clone();
+ if (t && i && (a && BC(a, e) || a === n.body && GC(e))) {
+ let t = YC.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- BC(n.nodeToRestore);
+ KC(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && UC.getTreeNode(n.scopeRef)) {
- let e = LC(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && YC.getTreeNode(n.scopeRef)) {
+ let e = UC(n.scopeRef.current, !0);
if (e) {
- BC(e);
+ KC(e);
return;
}
}
@@ -22884,21 +22895,21 @@ function rae(e, t, n) {
};
}, [e, t]);
}
-function BC(e) {
- e.dispatchEvent(new CustomEvent(TC, {
+function KC(e) {
+ e.dispatchEvent(new CustomEvent(NC, {
bubbles: !0,
cancelable: !0
- })) && IC(e);
+ })) && HC(e);
}
-function VC(e, t, n) {
- let r = t?.tabbable ? Kb : Gb, i = Mb(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = CC(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return zb(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Qie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || NC(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function qC(e, t, n) {
+ let r = t?.tabbable ? Kb : Gb, i = Mb(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = jC(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return zb(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Jie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || zC(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var iae = class e {
+var eae = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new HC({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new JC({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -22909,7 +22920,7 @@ var iae = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new HC({ scopeRef: e });
+ let i = new JC({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -22920,7 +22931,7 @@ var iae = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && NC(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && zC(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -22932,7 +22943,7 @@ var iae = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, HC = class {
+}, JC = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -22942,13 +22953,13 @@ var iae = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, UC = new iae(), WC = 7e3, GC = null;
-function KC(e, t = "assertive", n = WC) {
- GC ? GC.announce(e, t, n) : (GC = new aae(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? GC.announce(e, t, n) : setTimeout(() => {
- GC?.isAttached() && GC?.announce(e, t, n);
+}, YC = new eae(), XC = 7e3, ZC = null;
+function QC(e, t = "assertive", n = XC) {
+ ZC ? ZC.announce(e, t, n) : (ZC = new tae(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? ZC.announce(e, t, n) : setTimeout(() => {
+ ZC?.isAttached() && ZC?.announce(e, t, n);
}, 100));
}
-var aae = class {
+var tae = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -22973,7 +22984,7 @@ var aae = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = WC) {
+ announce(e, t = "assertive", n = XC) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -22985,8 +22996,8 @@ var aae = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function qC(e, t) {
- let n = (0, P.useRef)(!0), r = (0, P.useRef)(null), i = IS(e);
+function $C(e, t) {
+ let n = (0, P.useRef)(!0), r = (0, P.useRef)(null), i = YS(e);
(0, P.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, P.useEffect)(() => {
@@ -22995,28 +23006,28 @@ function qC(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function JC(e, t) {
+function ew(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function YC(e, t) {
+function tw(e, t) {
let n = e;
- for (JC(n, t) && (n = n.parentElement); n && !JC(n, t);) n = n.parentElement;
+ for (ew(n, t) && (n = n.parentElement); n && !ew(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function XC(e, t) {
+function nw(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (JC(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (ew(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function ZC(e, t, n = {}) {
- e !== t && oae(e, t, t.getBoundingClientRect(), n);
+function rw(e, t, n = {}) {
+ e !== t && nae(e, t, t.getBoundingClientRect(), n);
}
-function oae(e, t, n, r = {}) {
+function nae(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, te = e === d ? 0 : T + E, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, N = e === d ? 0 : e.offsetHeight - e.clientHeight - te, re = p + (f ? 0 : T) + x, ie = m - (f ? 0 : E) - S - N, P = h + (f ? 0 : D) + C, F = g - (f ? 0 : O) - w;
ix() && ax() || u.direction === "ltr" ? F -= ne : u.direction === "rtl" && (P += ne);
let ae = k < re || A > ie, oe = j < P || M > F;
@@ -23039,7 +23050,7 @@ function oae(e, t, n, r = {}) {
top: o
});
}
-function QC(e, t = {}) {
+function iw(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -23052,45 +23063,45 @@ function QC(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = XC(e, !0);
- for (let t of i) ZC(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = nw(e, !0);
+ for (let t of i) rw(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? XC(n, !0) : [];
- for (let e of i) ZC(e, n, {
+ i = n ? nw(n, !0) : [];
+ for (let e of i) rw(e, n, {
block: "center",
inline: "center"
});
- for (let t of XC(e, !0)) ZC(t, e);
+ for (let t of nw(e, !0)) rw(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var sae = 0, $C = /* @__PURE__ */ new Map();
-function ew(e) {
+var rae = 0, aw = /* @__PURE__ */ new Map();
+function ow(e) {
let [t, n] = (0, P.useState)();
return Jb(() => {
if (!e) return;
- let t = $C.get(e);
+ let t = aw.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${sae++}`;
+ let r = `react-aria-description-${rae++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, $C.set(e, t);
+ }, aw.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), $C.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), aw.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function tw(e, t, n) {
- let r = IS((e) => {
+function sw(e, t, n) {
+ let r = YS((e) => {
n && !e.defaultPrevented && n(t);
});
(0, P.useEffect)(() => {
@@ -23101,21 +23112,21 @@ function tw(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function nw(e, t, n) {
+function cw(e, t, n) {
let { validationBehavior: r, focus: i } = e;
Jb(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(lae(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(aae(n.current));
}
});
- let a = (0, P.useRef)(!1), o = IS(() => {
+ let a = (0, P.useRef)(!1), o = YS(() => {
a.current || t.resetValidation();
- }), s = IS((e) => {
+ }), s = YS((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && uae(r) === n.current && (i ? i() : n.current?.focus(), Nx("keyboard")), e.preventDefault();
- }), c = IS(() => {
+ !e.defaultPrevented && n && r && oae(r) === n.current && (i ? i() : n.current?.focus(), Nx("keyboard")), e.preventDefault();
+ }), c = YS(() => {
t.commitValidation();
});
(0, P.useEffect)(() => {
@@ -23129,7 +23140,7 @@ function nw(e, t, n) {
};
}, [n, r]);
}
-function cae(e) {
+function iae(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -23145,14 +23156,14 @@ function cae(e) {
valid: t.valid
};
}
-function lae(e) {
+function aae(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: cae(e),
+ validationDetails: iae(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function uae(e) {
+function oae(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -23160,7 +23171,7 @@ function uae(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function dae(e = !0) {
+function sae(e = !0) {
let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(!1), i = (0, P.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -23168,15 +23179,15 @@ function dae(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function rw(e = !0) {
- let t = Jx(), [n, r] = dae(e);
+function lw(e = !0) {
+ let t = Jx(), [n, r] = sae(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var iw = {
+var uw = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -23188,18 +23199,18 @@ var iw = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, aw = {
- ...iw,
+}, dw = {
+ ...uw,
customError: !0,
valid: !1
-}, ow = {
+}, fw = {
isInvalid: !1,
- validationDetails: iw,
+ validationDetails: uw,
validationErrors: []
-}, fae = (0, P.createContext)({}), sw = "__reactAriaFormValidationState";
-function cw(e) {
+}, cae = (0, P.createContext)({}), pw = "__reactAriaFormValidationState";
+function mw(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[sw];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[pw];
return {
realtimeValidation: t,
displayValidation: n,
@@ -23208,70 +23219,70 @@ function cw(e) {
commitValidation: a
};
}
- return pae(e);
+ return lae(e);
}
-function pae(e) {
+function lae(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: aw
- }, l = (0, P.useMemo)(() => !o || i == null ? null : uw(mae(o, i)), [o, i]);
+ validationDetails: dw
+ }, l = (0, P.useMemo)(() => !o || i == null ? null : gw(uae(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, P.useContext)(fae), d = (0, P.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => lw(u[e])) : lw(u[r]) : [], [u, r]), [f, p] = (0, P.useState)(u), [m, h] = (0, P.useState)(!1);
+ let u = (0, P.useContext)(cae), d = (0, P.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => hw(u[e])) : hw(u[r]) : [], [u, r]), [f, p] = (0, P.useState)(u), [m, h] = (0, P.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, P.useMemo)(() => uw(m ? [] : d), [m, d]), _ = (0, P.useRef)(ow), [v, y] = (0, P.useState)(ow), b = (0, P.useRef)(ow), x = () => {
+ let g = (0, P.useMemo)(() => gw(m ? [] : d), [m, d]), _ = (0, P.useRef)(fw), [v, y] = (0, P.useState)(fw), b = (0, P.useRef)(fw), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- dw(e, b.current) || (b.current = e, y(e));
+ _w(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, P.useState)(!1);
return (0, P.useEffect)(x), {
- realtimeValidation: c || g || l || a || ow,
+ realtimeValidation: c || g || l || a || fw,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !dw(v, e) ? y(e) : _.current = e;
+ s === "aria" && !_w(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = ow;
- dw(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = fw;
+ _w(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function lw(e) {
+function hw(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function mae(e, t) {
+function uae(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return lw(n);
+ if (n && typeof n != "boolean") return hw(n);
}
return [];
}
-function uw(e) {
+function gw(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: aw
+ validationDetails: dw
} : null;
}
-function dw(e, t) {
+function _w(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function fw(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = cw({
+function vw(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = mw({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- nw(e, b, n);
+ cw(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = pC({
+ }, { pressProps: T, isPressed: E } = TC({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -23279,7 +23290,7 @@ function fw(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, P.useState)(!1), { pressProps: k } = pC({
+ }), [D, O] = (0, P.useState)(!1), { pressProps: k } = TC({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -23296,13 +23307,13 @@ function fw(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [sw]: i } = e, { commitValidation: a } = i || b;
+ let { [pw]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = cS(e, n), j = K(T, A), M = QS(e, { labelable: !0 });
- tw(n, t.defaultSelected, t.setSelected);
- let ee = rw(), te = rw();
+ }), { focusableProps: A } = cS(e, n), j = K(T, A), M = dC(e, { labelable: !0 });
+ sw(n, t.defaultSelected, t.setSelected);
+ let ee = lw(), te = lw();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -23338,8 +23349,8 @@ function fw(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function pw(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = fw(e, t, n), { isIndeterminate: m } = e;
+function yw(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = vw(e, t, n), { isIndeterminate: m } = e;
return (0, P.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -23357,9 +23368,9 @@ function pw(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var hae = /* @__PURE__ */ new WeakMap();
+var dae = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function mw(e) {
+function bw(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
t = Jx(t);
let o = Jx(), s = {};
@@ -23367,7 +23378,7 @@ function mw(e) {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = RS({
+ let c = ZS({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -23378,8 +23389,8 @@ function mw(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function hw(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = mw(e), s = Yx([
+function xw(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = bw(e), s = Yx([
!!t,
!!n,
r,
@@ -23402,8 +23413,8 @@ function hw(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function gw(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, P.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = sC(), c = (0, P.useCallback)((e) => {
+function Sw(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, P.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = bC(), c = (0, P.useCallback)((e) => {
zb(e.currentTarget, G(e)) && a.current.isFocusWithin && !zb(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
@@ -23442,14 +23453,14 @@ function gw(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var gae = P.useInsertionEffect ?? P.useLayoutEffect;
-function _w(e, t, n) {
+var fae = P.useInsertionEffect ?? P.useLayoutEffect;
+function Cw(e, t, n) {
let [r, i] = (0, P.useState)(e || t), a = (0, P.useRef)(r), o = (0, P.useRef)(e !== void 0), s = e !== void 0;
(0, P.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- gae(() => {
+ fae(() => {
a.current = c;
});
let [, l] = (0, P.useReducer)(() => ({}), {});
@@ -23459,8 +23470,8 @@ function _w(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function vw(e = {}) {
- let { isReadOnly: t } = e, [n, r] = _w(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, P.useState)(n);
+function ww(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = Cw(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, P.useState)(n);
function a(e) {
t || r(e);
}
@@ -23475,26 +23486,26 @@ function vw(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function _ae(e, t, n) {
- let r = vw({
+function pae(e, t, n) {
+ let r = ww({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = hae.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = dae.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = cw({
+ let { realtimeValidation: l } = mw({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, P.useRef)(ow), d = () => {
+ }), u = (0, P.useRef)(fw), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, P.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = pw({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = yw({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -23502,7 +23513,7 @@ function _ae(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [sw]: {
+ [pw]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -23525,10 +23536,10 @@ function _ae(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function yw(e, t = -Infinity, n = Infinity) {
+function Tw(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function bw(e, t) {
+function Ew(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -23541,23 +23552,23 @@ function bw(e, t) {
}
return n;
}
-function xw(e, t, n, r) {
+function Dw(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = bw(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(bw(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(bw((n - t) / r, r)) * r), a = bw(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = Ew(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(Ew(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(Ew((n - t) / r, r)) * r), a = Ew(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var Sw = /* @__PURE__ */ new Map(), Cw = !1;
+var Ow = /* @__PURE__ */ new Map(), kw = !1;
try {
- Cw = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ kw = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var vae = class {
+var mae = class {
constructor(e, t = {}) {
- this.numberFormatter = yae(e, t), this.options = t;
+ this.numberFormatter = hae(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !Cw && this.options.signDisplay != null ? bae(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !kw && this.options.signDisplay != null ? gae(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -23589,21 +23600,21 @@ var vae = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !Cw && this.options.signDisplay != null && (e = {
+ return !kw && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function yae(e, t = {}) {
+function hae(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (Sw.has(r)) return Sw.get(r);
+ if (Ow.has(r)) return Ow.get(r);
let i = new Intl.NumberFormat(e, t);
- return Sw.set(r, i), i;
+ return Ow.set(r, i), i;
}
-function bae(e, t, n) {
+function gae(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -23616,12 +23627,12 @@ function bae(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function ww(e) {
+function Aw(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, P.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = sC(), s = IS((0, P.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = bC(), s = YS((0, P.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -23643,8 +23654,8 @@ function ww(e) {
t,
n,
i
- ])), c = IS((0, P.useCallback)((e, t) => {
- rC(), i.current.didMove && r?.({
+ ])), c = YS((0, P.useCallback)((e, t) => {
+ gC(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -23655,7 +23666,7 @@ function ww(e) {
}, [r, i]));
return { moveProps: (0, P.useMemo)(() => {
let e = {}, t = () => {
- nC(), i.current.didMove = !1;
+ hC(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -23713,7 +23724,7 @@ function ww(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var Tw = {
+var jw = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -23725,37 +23736,37 @@ var Tw = {
width: "1px",
whiteSpace: "nowrap"
};
-function Ew(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, P.useState)(!1), { focusWithinProps: a } = gw({
+function Mw(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, P.useState)(!1), { focusWithinProps: a } = Sw({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, P.useMemo)(() => r ? t : t ? {
- ...Tw,
+ ...jw,
...t
- } : Tw, [r]);
+ } : jw, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function Dw(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Ew(e);
+function Nw(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Mw(e);
return /*#__PURE__*/ P.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function xae(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = _w(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = cS(e, t), d = cw({
+function _ae(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Cw(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = cS(e, t), d = mw({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = hw({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = xw({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = QS(e, { labelable: !0 }), b = {
+ }), y = dC(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, P.useState)(c);
- return tw(t, e.defaultValue ?? x, l), nw(e, d, t), {
+ return sw(t, e.defaultValue ?? x, l), cw(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -23801,26 +23812,26 @@ function xae(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function Sae(e = {}) {
- let { locale: t } = WS();
- return (0, P.useMemo)(() => new vae(t, e), [t, e]);
+function vae(e = {}) {
+ let { locale: t } = rC();
+ return (0, P.useMemo)(() => new mae(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var Ow = /* @__PURE__ */ new WeakMap();
-function kw(e, t) {
- let n = Ow.get(e);
+var Pw = /* @__PURE__ */ new WeakMap();
+function Fw(e, t) {
+ let n = Pw.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function Cae(e, t, n) {
- let { labelProps: r, fieldProps: i } = mw(e), a = e.orientation === "vertical";
- Ow.set(t, {
+function yae(e, t, n) {
+ let { labelProps: r, fieldProps: i } = bw(e), a = e.orientation === "vertical";
+ Pw.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = WS(), { addGlobalListener: s, removeGlobalListener: c } = sC(), l = (0, P.useRef)(null), u = o === "rtl", d = (0, P.useRef)(null), { moveProps: f } = ww({
+ let { direction: o } = rC(), { addGlobalListener: s, removeGlobalListener: c } = bC(), l = (0, P.useRef)(null), u = o === "rtl", d = (0, P.useRef)(null), { moveProps: f } = Aw({
onMoveStart() {
d.current = null;
},
@@ -23830,7 +23841,7 @@ function Cae(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = yw(d.current / s, 0, 1);
+ let e = Tw(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -23854,7 +23865,7 @@ function Cae(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(kw(t, 0))?.focus(), Nx("keyboard");
+ document.getElementById(Fw(t, 0))?.focus(), Nx("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -23877,16 +23888,16 @@ function Cae(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => kw(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => Fw(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function wae(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = WS(), { addGlobalListener: m, removeGlobalListener: h } = sC(), g = Ow.get(t), { labelProps: _, fieldProps: v } = mw({
+function bae(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = rC(), { addGlobalListener: m, removeGlobalListener: h } = bC(), g = Pw.get(t), { labelProps: _, fieldProps: v } = bw({
...e,
- id: kw(t, n),
+ id: Fw(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, P.useCallback)(() => {
s.current && jb(s.current);
@@ -23912,7 +23923,7 @@ function wae(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = ww({
+ }), { moveProps: E } = Aw({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -23923,7 +23934,7 @@ function wae(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, yw(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, Tw(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -23951,7 +23962,7 @@ function wae(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return tw(s, t.defaultValues[n], (e) => {
+ return sw(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -23991,13 +24002,13 @@ function wae(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Tae = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Aw(e) {
+var xae = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Iw(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var jw = /* @__PURE__ */ new WeakMap(), Mw = [];
-function Nw(e, t) {
- let n = Nb(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Tae, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var Lw = /* @__PURE__ */ new WeakMap(), Rw = [];
+function zw(e, t) {
+ let n = Nb(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && xae, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
if (Rb()) {
@@ -24013,19 +24024,19 @@ function Nw(e, t) {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
for (let t of o) if (zb(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = CC(Mb(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = jC(Mb(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = jw.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), jw.set(e, t + 1));
+ let t = Lw.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Lw.set(e, t + 1));
};
- Mw.length && Mw[Mw.length - 1].disconnect(), d(i);
+ Rw.length && Rw[Rw.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => zb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Aw(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => zb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Iw(e) ? o.add(e) : e instanceof Element && d(e);
if (Rb()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -24042,7 +24053,7 @@ function Nw(e, t) {
if (Rb()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => zb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Aw(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => zb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Iw(e) ? o.add(e) : e instanceof Element && d(e);
if (Rb()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -24069,56 +24080,56 @@ function Nw(e, t) {
p.disconnect();
}
};
- return Mw.push(h), () => {
+ return Rw.push(h), () => {
if (p.disconnect(), Rb()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = jw.get(e);
- t != null && (t === 1 ? (l(e, !1), jw.delete(e)) : jw.set(e, t - 1));
+ let t = Lw.get(e);
+ t != null && (t === 1 ? (l(e, !1), Lw.delete(e)) : Lw.set(e, t - 1));
}
- h === Mw[Mw.length - 1] ? (Mw.pop(), Mw.length && Mw[Mw.length - 1].observe()) : Mw.splice(Mw.indexOf(h), 1);
+ h === Rw[Rw.length - 1] ? (Rw.pop(), Rw.length && Rw[Rw.length - 1].observe()) : Rw.splice(Rw.indexOf(h), 1);
};
}
-function Pw(e) {
- let t = Mw[Mw.length - 1];
+function Bw(e) {
+ let t = Rw[Rw.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var Fw = /* @__PURE__ */ new WeakMap();
-function Eae(e) {
+var Vw = /* @__PURE__ */ new WeakMap();
+function Sae(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Dae(e, t) {
- let n = Fw.get(e);
+function Cae(e, t) {
+ let n = Vw.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Eae(t)}`;
+ return `${n.id}-option-${Sae(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function Iw(e) {
- return Pre() ? e.altKey : e.ctrlKey;
+function Hw(e) {
+ return Ire() ? e.altKey : e.ctrlKey;
}
-function Lw(e, t) {
+function Uw(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var Rw = /* @__PURE__ */ new WeakMap();
-function Oae(e) {
+var Ww = /* @__PURE__ */ new WeakMap();
+function wae(e) {
let t = Jx();
- return Rw.set(e, t), t;
+ return Ww.set(e, t), t;
}
-function kae(e) {
- return Rw.get(e);
+function Tae(e) {
+ return Ww.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var zw = class {
+var Gw = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Lw(this.ref, e);
+ let n = e == null ? null : Uw(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -24144,12 +24155,12 @@ var zw = class {
height: e?.clientHeight ?? 0
};
}
-}, Bw = class {
+}, Kw = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new zw(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new zw(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new Gw(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new Gw(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -24189,14 +24200,14 @@ var zw = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Lw(this.ref, e);
+ let t = this.getNextKey(e), n = Uw(this.ref, e);
if (t != null) {
- let e = Lw(this.ref, t);
+ let e = Uw(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Lw(this.ref, r);
+ let e = Uw(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -24230,7 +24241,7 @@ var zw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !JC(t)) return this.getFirstKey();
+ if (t && !ew(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -24245,7 +24256,7 @@ var zw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !JC(t)) return this.getLastKey();
+ if (t && !ew(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -24268,149 +24279,149 @@ var zw = class {
}
return null;
}
-}, Vw = {};
-Vw = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, qw = {};
+qw = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var Hw = {};
-Hw = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Jw = {};
+Jw = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Uw = {};
-Uw = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var Yw = {};
+Yw = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var Ww = {};
-Ww = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Xw = {};
+Xw = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var Gw = {};
-Gw = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var Zw = {};
+Zw = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var Kw = {};
-Kw = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Qw = {};
+Qw = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var qw = {};
-qw = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var $w = {};
+$w = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Jw = {};
-Jw = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var eT = {};
+eT = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var Yw = {};
-Yw = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var tT = {};
+tT = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var Xw = {};
-Xw = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var nT = {};
+nT = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var Zw = {};
-Zw = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var rT = {};
+rT = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var Qw = {};
-Qw = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var iT = {};
+iT = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var $w = {};
-$w = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var aT = {};
+aT = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var eT = {};
-eT = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var oT = {};
+oT = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var tT = {};
-tT = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var sT = {};
+sT = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var nT = {};
-nT = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var cT = {};
+cT = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var rT = {};
-rT = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var lT = {};
+lT = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var iT = {};
-iT = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var uT = {};
+uT = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var aT = {};
-aT = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var dT = {};
+dT = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var oT = {};
-oT = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var fT = {};
+fT = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var sT = {};
-sT = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var pT = {};
+pT = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var cT = {};
-cT = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var mT = {};
+mT = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var lT = {};
-lT = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var hT = {};
+hT = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var uT = {};
-uT = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var gT = {};
+gT = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var dT = {};
-dT = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var _T = {};
+_T = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var fT = {};
-fT = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var vT = {};
+vT = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var pT = {};
-pT = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var yT = {};
+yT = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var mT = {};
-mT = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var bT = {};
+bT = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var hT = {};
-hT = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var xT = {};
+xT = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var gT = {};
-gT = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var ST = {};
+ST = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var _T = {};
-_T = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var CT = {};
+CT = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var vT = {};
-vT = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var wT = {};
+wT = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var yT = {};
-yT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var TT = {};
+TT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var bT = {};
-bT = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var ET = {};
+ET = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var xT = {};
-xT = {
- "ar-AE": Vw,
- "bg-BG": Hw,
- "cs-CZ": Uw,
- "da-DK": Ww,
- "de-DE": Gw,
- "el-GR": Kw,
- "en-US": qw,
- "es-ES": Jw,
- "et-EE": Yw,
- "fi-FI": Xw,
- "fr-FR": Zw,
- "he-IL": Qw,
- "hr-HR": $w,
- "hu-HU": eT,
- "it-IT": tT,
- "ja-JP": nT,
- "ko-KR": rT,
- "lt-LT": iT,
- "lv-LV": aT,
- "nb-NO": oT,
- "nl-NL": sT,
- "pl-PL": cT,
- "pt-BR": lT,
- "pt-PT": uT,
- "ro-RO": dT,
- "ru-RU": fT,
- "sk-SK": pT,
- "sl-SI": mT,
- "sr-SP": hT,
- "sv-SE": gT,
- "tr-TR": _T,
- "uk-UA": vT,
- "zh-CN": yT,
- "zh-TW": bT
+var DT = {};
+DT = {
+ "ar-AE": qw,
+ "bg-BG": Jw,
+ "cs-CZ": Yw,
+ "da-DK": Xw,
+ "de-DE": Zw,
+ "el-GR": Qw,
+ "en-US": $w,
+ "es-ES": eT,
+ "et-EE": tT,
+ "fi-FI": nT,
+ "fr-FR": rT,
+ "he-IL": iT,
+ "hr-HR": aT,
+ "hu-HU": oT,
+ "it-IT": sT,
+ "ja-JP": cT,
+ "ko-KR": lT,
+ "lt-LT": uT,
+ "lv-LV": dT,
+ "nb-NO": fT,
+ "nl-NL": pT,
+ "pl-PL": mT,
+ "pt-BR": hT,
+ "pt-PT": gT,
+ "ro-RO": _T,
+ "ru-RU": vT,
+ "sk-SK": yT,
+ "sl-SI": bT,
+ "sr-SP": xT,
+ "sv-SE": ST,
+ "tr-TR": CT,
+ "uk-UA": wT,
+ "zh-CN": TT,
+ "zh-TW": ET
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Aae = 500;
-function ST(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Aae, accessibilityDescription: s } = e, c = (0, P.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = sC(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = pC({
+var Eae = 500;
+function OT(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Eae, accessibilityDescription: s } = e, c = (0, P.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = bC(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = TC({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -24438,11 +24449,11 @@ function ST(e) {
});
}
});
- return { longPressProps: K(f, ew(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, ow(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function jae(e) {
- let { onContextMenu: t } = e, n = (0, P.useRef)(!1), { longPressProps: r } = ST({
+function Dae(e) {
+ let { onContextMenu: t } = e, n = (0, P.useRef)(!1), { longPressProps: r } = OT({
onLongPressStart() {
n.current = !1;
},
@@ -24484,13 +24495,13 @@ function jae(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var CT = /* @__PURE__ */ new WeakMap();
-function Mae(e) {
+var kT = /* @__PURE__ */ new WeakMap();
+function Oae(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
(0, P.useEffect)(() => !n || r === null ? void 0 : Ib(Vb(t.current), "scroll", (e) => {
let n = G(e);
if (!t.current || n instanceof Node && !zb(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || CT.get(t.current);
+ let i = r || kT.get(t.current);
i && i();
}, !0), [
n,
@@ -24499,10 +24510,10 @@ function Mae(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Nae(e, t, n) {
+function kae(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, P.useEffect)(() => {
- n && n.current && CT.set(n.current, t.close);
+ n && n.current && kT.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
@@ -24518,11 +24529,11 @@ function Nae(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Pae(e) {
+function Aae(e) {
return e && e.__esModule ? e.default : e;
}
-function wT(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Jx(), { triggerProps: s, overlayProps: c } = Nae({ type: r }, t, n), l = (e, n, r = "first") => {
+function AT(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Jx(), { triggerProps: s, overlayProps: c } = kae({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
}, { keyboardProps: u } = iS({
@@ -24537,7 +24548,7 @@ function wT(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = XS(Pae(xT), "@react-aria/menu"), { longPressProps: f } = ST({
+ }), d = lC(Aae(DT), "@react-aria/menu"), { longPressProps: f } = OT({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -24556,7 +24567,7 @@ function wT(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = jae({ onContextMenu(e) {
+ let { contextMenuProps: m } = Dae({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -24600,8 +24611,8 @@ function wT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var TT = 1e3;
-function ET(e) {
+var jT = 1e3;
+function MT(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, P.useRef)({
search: "",
timeout: void 0
@@ -24620,11 +24631,11 @@ function ET(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, TT);
+ }, jT);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Fae(e.key);
+ let a = jae(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !zb(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -24636,16 +24647,16 @@ function ET(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, TT);
+ }, jT);
}
} : void 0
} };
}
-function Fae(e) {
+function jae(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function DT(e, t) {
+function NT(e, t) {
let n = (0, P.useRef)(!0), r = (0, P.useRef)(null);
Jb(() => (n.current = !0, () => {
n.current = !1;
@@ -24654,14 +24665,14 @@ function DT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function OT(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = WS(), _ = lx(), v = (e, n, i) => {
+function PT(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = rC(), _ = lx(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Iw(e)) {
+ if (t.isLink(n) && m === "selection" && l && !Hw(e)) {
(0, Lt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Lw(r, n), o = t.getItemProps(n);
+ let a = Uw(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -24673,7 +24684,7 @@ function OT(e) {
t.extendSelection(n);
return;
}
- if (l && !Iw(e)) {
+ if (l && !Hw(e)) {
t.replaceSelection(n);
return;
}
@@ -24700,9 +24711,9 @@ function OT(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, PS(e));
+ let r = n.getFirstKey(t.focusedKey, qS(e));
if (t.setFocusedKey(r), r != null) {
- if (PS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (qS(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24734,9 +24745,9 @@ function OT(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, PS(e));
+ let r = n.getLastKey(t.focusedKey, qS(e));
if (t.setFocusedKey(r), r != null) {
- if (PS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (qS(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24767,7 +24778,7 @@ function OT(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = VC(r.current, { tabbable: !0 }), t, n;
+ let e = qC(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
@@ -24807,7 +24818,7 @@ function OT(e) {
top: 0,
left: 0
});
- LS(p, "scroll", () => {
+ XS(p, "scroll", () => {
te.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -24830,27 +24841,27 @@ function OT(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = te.current.top, p.current.scrollLeft = te.current.left);
if (t.focusedKey != null && p.current) {
- let e = Lw(r, t.focusedKey);
- e instanceof HTMLElement && (!Hb(e) && !d && jb(e), (i === "keyboard" || h && i === "virtual") && QC(e, { containingElement: r.current }));
+ let e = Uw(r, t.focusedKey);
+ e instanceof HTMLElement && (!Hb(e) && !d && jb(e), (i === "keyboard" || h && i === "virtual") && iw(e, { containingElement: r.current }));
}
}, N = (e) => {
zb(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, re = (0, P.useRef)(!1);
- LS(r, Eie, d ? (e) => {
+ XS(r, MS, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (re.current = !0);
} : void 0);
let ie = n.getFirstKey?.() ?? null;
- DT(() => {
+ NT(() => {
if (re.current) {
if (ie == null) {
let e = Bb();
- CS(r.current), wS(e, null), t.collection.size > 0 && (re.current = !1);
+ NS(r.current), FS(e, null), t.collection.size > 0 && (re.current = !1);
} else t.setFocusedKey(ie), re.current = !1;
}
- }, [ie, t.collection.size]), DT(() => {
+ }, [ie, t.collection.size]), NT(() => {
t.collection.size > 0 && (re.current = !1);
- }, [t.focusedKey]), LS(r, Tie, d ? (e) => {
+ }, [t.focusedKey]), XS(r, jS, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let F = (0, P.useRef)(i), ae = (0, P.useRef)(!1);
@@ -24871,16 +24882,16 @@ function OT(e) {
let oe = (0, P.useRef)(t.focusedKey), se = (0, P.useRef)(null);
(0, P.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== oe.current || ae.current) && p.current && r.current) {
- let e = Mx(), n = Lw(r, t.focusedKey);
+ let e = Mx(), n = Uw(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ae.current) && (se.current && cancelAnimationFrame(se.current), se.current = requestAnimationFrame(() => {
- p.current && (ZC(p.current, n), e !== "virtual" && QC(n, { containingElement: r.current }));
+ p.current && (rw(p.current, n), e !== "virtual" && iw(n, { containingElement: r.current }));
}));
}
!d && t.isFocused && t.focusedKey == null && oe.current != null && r.current && Ux(r.current), oe.current = t.focusedKey, ae.current = !1;
}), (0, P.useEffect)(() => () => {
se.current && cancelAnimationFrame(se.current);
- }, []), LS(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), XS(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let ce = {
@@ -24890,27 +24901,27 @@ function OT(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: le } = ET({
+ }, { typeSelectProps: le } = MT({
keyboardDelegate: n,
selectionManager: t
});
u || (ce = K(le, ce));
let ue;
d || (ue = t.focusedKey == null ? 0 : -1);
- let de = Oae(t.collection);
+ let de = wae(t.collection);
return { collectionProps: K(ce, {
tabIndex: ue,
"data-collection": de
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function kT(e, t) {
+function FT(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function AT(e) {
- return jT(e, 0);
+function IT(e) {
+ return LT(e, 0);
}
-function jT(e, t) {
+function LT(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -24918,42 +24929,42 @@ function jT(e, t) {
n++;
}
}
-function MT(e) {
+function RT(e) {
let t;
for (let n of e) t = n;
return t;
}
-function NT(e, t, n) {
+function zT(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...PT(e, t), t], i = [...PT(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...BT(e, t), t], i = [...BT(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function PT(e, t) {
+function BT(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var FT = /* @__PURE__ */ new WeakMap();
-function IT(e) {
- let t = FT.get(e);
+var VT = /* @__PURE__ */ new WeakMap();
+function HT(e) {
+ let t = VT.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(kT(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(FT(i, e)) : i.type === "item" && n++;
};
- return r(e), FT.set(e, n), n;
+ return r(e), VT.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var LT = /* @__PURE__ */ new Map();
-function RT(e) {
- let { locale: t } = WS(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (LT.has(n)) return LT.get(n);
+var UT = /* @__PURE__ */ new Map();
+function WT(e) {
+ let { locale: t } = rC(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (UT.has(n)) return UT.get(n);
let r = new Intl.Collator(t, e);
- return LT.set(n, r), r;
+ return UT.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Iae = /*#__PURE__*/ P.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, P.useRef)(!1), i = (0, P.useContext)(oC), a = K(i || {}, {
+var Mae = /*#__PURE__*/ P.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, P.useRef)(!1), i = (0, P.useContext)(yC), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
@@ -24961,43 +24972,43 @@ var Iae = /*#__PURE__*/ P.forwardRef(({ children: e, ...t }, n) => {
});
return a.ref = aS(n || i?.ref), oS(i, a.ref), (0, P.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ P.createElement(oC.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ P.createElement(yC.Provider, { value: a }, e);
});
-function Lae({ children: e }) {
+function Nae({ children: e }) {
let t = (0, P.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ P.createElement(oC.Provider, { value: t }, e);
+ return /*#__PURE__*/ P.createElement(yC.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var zT = /*#__PURE__*/ (0, P.createContext)({});
-function BT(e) {
- let { getContainer: t } = e, { getContainer: n } = VT();
- return /*#__PURE__*/ P.createElement(zT.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var GT = /*#__PURE__*/ (0, P.createContext)({});
+function KT(e) {
+ let { getContainer: t } = e, { getContainer: n } = qT();
+ return /*#__PURE__*/ P.createElement(GT.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function VT() {
- return (0, P.useContext)(zT) ?? {};
+function qT() {
+ return (0, P.useContext)(GT) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var HT = /*#__PURE__*/ P.createContext(null);
-function UT(e) {
+var JT = /*#__PURE__*/ P.createContext(null);
+function YT(e) {
let t = gx(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, P.useState)(!1), o = (0, P.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = VT();
+ }), [i, a]), { getContainer: s } = qT();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ P.createElement(DC, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ P.createElement(FC, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ P.createElement(HT.Provider, { value: o }, /*#__PURE__*/ P.createElement(Lae, null, /*#__PURE__*/ P.createElement(sS.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ P.createElement(JT.Provider, { value: o }, /*#__PURE__*/ P.createElement(Nae, null, /*#__PURE__*/ P.createElement(sS.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
}
-function WT() {
- let e = (0, P.useContext)(HT)?.setContain;
+function XT() {
+ let e = (0, P.useContext)(JT)?.setContain;
Jb(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Rae(e, t) {
+function Pae(e, t) {
let { role: n = "dialog", isEntering: r } = e, i = Yx();
i = e["aria-label"] ? void 0 : i;
let a = Yx();
@@ -25013,11 +25024,11 @@ function Rae(e, t) {
clearTimeout(e);
};
}
- }, [t, r]), WT(), (0, P.useRef)(!1), (0, P.useEffect)(() => {});
+ }, [t, r]), XT(), (0, P.useRef)(!1), (0, P.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...QS(e, { labelable: !0 }),
+ ...dC(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -25031,7 +25042,7 @@ function Rae(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function GT(e = {}) {
+function ZT(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, P.useRef)({
isFocused: !1,
isFocusVisible: t || jx()
@@ -25047,7 +25058,7 @@ function GT(e = {}) {
let { focusProps: d } = eS({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = gw({
+ }), { focusWithinProps: f } = Sw({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -25058,35 +25069,35 @@ function GT(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function zae(e = {}) {
- let { locale: t } = WS();
+function Fae(e = {}) {
+ let { locale: t } = rC();
return (0, P.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var KT = !1, qT = 0;
-function Bae() {
- KT = !0, setTimeout(() => {
- KT = !1;
+var QT = !1, $T = 0;
+function Iae() {
+ QT = !0, setTimeout(() => {
+ QT = !1;
}, 500);
}
-function JT(e) {
- e.pointerType === "touch" && Bae();
+function eE(e) {
+ e.pointerType === "touch" && Iae();
}
-function Vae() {
+function Lae() {
let e = Mb(null);
- if (e !== void 0) return qT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", JT), qT++, () => {
- qT--, !(qT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", JT);
+ if (e !== void 0) return $T === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", eE), $T++, () => {
+ $T--, !($T > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", eE);
};
}
-function YT(e) {
+function tE(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, P.useState)(!1), s = (0, P.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, P.useEffect)(Vae, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = sC(), { hoverProps: u, triggerHoverEnd: d } = (0, P.useMemo)(() => {
+ (0, P.useEffect)(Lae, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = bC(), { hoverProps: u, triggerHoverEnd: d } = (0, P.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !zb(e.currentTarget, G(e))) return;
s.isHovered = !0;
@@ -25107,7 +25118,7 @@ function YT(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- KT && t.pointerType === "mouse" || e(t, t.pointerType);
+ QT && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && zb(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
@@ -25131,13 +25142,13 @@ function YT(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Hae(e) {
+function Rae(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, P.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = IS((e) => {
- n && XT(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = IS((e) => {
+ }), o = YS((e) => {
+ n && nE(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = YS((e) => {
n && n(e);
});
(0, P.useEffect)(() => {
@@ -25146,7 +25157,7 @@ function Hae(e) {
let n = t.current, i = Mb(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && XT(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && nE(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -25154,7 +25165,7 @@ function Hae(e) {
}
}, [t, r]);
}
-function XT(e, t) {
+function nE(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
@@ -25164,18 +25175,18 @@ function XT(e, t) {
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var ZT = /* @__PURE__ */ new WeakMap();
-function QT(e, t) {
- let { id: n } = ZT.get(e) ?? {};
+var rE = /* @__PURE__ */ new WeakMap();
+function iE(e, t) {
+ let { id: n } = rE.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Uae(t)}`;
+ return `${n}-${zae(t)}`;
}
-function Uae(e) {
+function zae(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var $T = {};
-$T = {
+var aE = {};
+aE = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -25188,8 +25199,8 @@ $T = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var eE = {};
-eE = {
+var oE = {};
+oE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -25202,8 +25213,8 @@ eE = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var tE = {};
-tE = {
+var sE = {};
+sE = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -25216,8 +25227,8 @@ tE = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var nE = {};
-nE = {
+var cE = {};
+cE = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -25230,8 +25241,8 @@ nE = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var rE = {};
-rE = {
+var lE = {};
+lE = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -25244,8 +25255,8 @@ rE = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var iE = {};
-iE = {
+var uE = {};
+uE = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -25258,8 +25269,8 @@ iE = {
selectedItem: (e) => `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var aE = {};
-aE = {
+var dE = {};
+dE = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -25272,8 +25283,8 @@ aE = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var oE = {};
-oE = {
+var fE = {};
+fE = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -25286,8 +25297,8 @@ oE = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var sE = {};
-sE = {
+var pE = {};
+pE = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -25300,8 +25311,8 @@ sE = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var cE = {};
-cE = {
+var mE = {};
+mE = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -25314,8 +25325,8 @@ cE = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var lE = {};
-lE = {
+var hE = {};
+hE = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -25328,8 +25339,8 @@ lE = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var uE = {};
-uE = {
+var gE = {};
+gE = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -25342,8 +25353,8 @@ uE = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var dE = {};
-dE = {
+var _E = {};
+_E = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -25356,8 +25367,8 @@ dE = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var fE = {};
-fE = {
+var vE = {};
+vE = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -25370,8 +25381,8 @@ fE = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var pE = {};
-pE = {
+var yE = {};
+yE = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -25384,8 +25395,8 @@ pE = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var mE = {};
-mE = {
+var bE = {};
+bE = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -25398,8 +25409,8 @@ mE = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var hE = {};
-hE = {
+var xE = {};
+xE = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -25412,8 +25423,8 @@ hE = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var gE = {};
-gE = {
+var SE = {};
+SE = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -25426,8 +25437,8 @@ gE = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var _E = {};
-_E = {
+var CE = {};
+CE = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -25440,8 +25451,8 @@ _E = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var vE = {};
-vE = {
+var wE = {};
+wE = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -25454,8 +25465,8 @@ vE = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var yE = {};
-yE = {
+var TE = {};
+TE = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -25468,8 +25479,8 @@ yE = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var bE = {};
-bE = {
+var EE = {};
+EE = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -25482,8 +25493,8 @@ bE = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var xE = {};
-xE = {
+var DE = {};
+DE = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -25496,8 +25507,8 @@ xE = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var SE = {};
-SE = {
+var OE = {};
+OE = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -25510,8 +25521,8 @@ SE = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var CE = {};
-CE = {
+var kE = {};
+kE = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -25524,8 +25535,8 @@ CE = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var wE = {};
-wE = {
+var AE = {};
+AE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -25538,8 +25549,8 @@ wE = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var TE = {};
-TE = {
+var jE = {};
+jE = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -25552,8 +25563,8 @@ TE = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var EE = {};
-EE = {
+var ME = {};
+ME = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -25566,8 +25577,8 @@ EE = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var DE = {};
-DE = {
+var NE = {};
+NE = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -25580,8 +25591,8 @@ DE = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var OE = {};
-OE = {
+var PE = {};
+PE = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -25594,8 +25605,8 @@ OE = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var kE = {};
-kE = {
+var FE = {};
+FE = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -25608,8 +25619,8 @@ kE = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var AE = {};
-AE = {
+var IE = {};
+IE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -25622,8 +25633,8 @@ AE = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var jE = {};
-jE = {
+var LE = {};
+LE = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -25636,8 +25647,8 @@ jE = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var ME = {};
-ME = {
+var RE = {};
+RE = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -25650,54 +25661,54 @@ ME = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var NE = {};
-NE = {
- "ar-AE": $T,
- "bg-BG": eE,
- "cs-CZ": tE,
- "da-DK": nE,
- "de-DE": rE,
- "el-GR": iE,
- "en-US": aE,
- "es-ES": oE,
- "et-EE": sE,
- "fi-FI": cE,
- "fr-FR": lE,
- "he-IL": uE,
- "hr-HR": dE,
- "hu-HU": fE,
- "it-IT": pE,
- "ja-JP": mE,
- "ko-KR": hE,
- "lt-LT": gE,
- "lv-LV": _E,
- "nb-NO": vE,
- "nl-NL": yE,
- "pl-PL": bE,
- "pt-BR": xE,
- "pt-PT": SE,
- "ro-RO": CE,
- "ru-RU": wE,
- "sk-SK": TE,
- "sl-SI": EE,
- "sr-SP": DE,
- "sv-SE": OE,
- "tr-TR": kE,
- "uk-UA": AE,
- "zh-CN": jE,
- "zh-TW": ME
+var zE = {};
+zE = {
+ "ar-AE": aE,
+ "bg-BG": oE,
+ "cs-CZ": sE,
+ "da-DK": cE,
+ "de-DE": lE,
+ "el-GR": uE,
+ "en-US": dE,
+ "es-ES": fE,
+ "et-EE": pE,
+ "fi-FI": mE,
+ "fr-FR": hE,
+ "he-IL": gE,
+ "hr-HR": _E,
+ "hu-HU": vE,
+ "it-IT": yE,
+ "ja-JP": bE,
+ "ko-KR": xE,
+ "lt-LT": SE,
+ "lv-LV": CE,
+ "nb-NO": wE,
+ "nl-NL": TE,
+ "pl-PL": EE,
+ "pt-BR": DE,
+ "pt-PT": OE,
+ "ro-RO": kE,
+ "ru-RU": AE,
+ "sk-SK": jE,
+ "sl-SI": ME,
+ "sr-SP": NE,
+ "sv-SE": PE,
+ "tr-TR": FE,
+ "uk-UA": IE,
+ "zh-CN": LE,
+ "zh-TW": RE
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Wae(e) {
+function Bae(e) {
return e && e.__esModule ? e.default : e;
}
-function PE(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = XS(Wae(NE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, P.useRef)(i), o = (0, P.useCallback)(() => {
+function BE(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = lC(Bae(zE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, P.useRef)(i), o = (0, P.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = FE(i, a.current), o = FE(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = VE(i, a.current), o = VE(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -25717,7 +25728,7 @@ function PE(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && KC(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && QC(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -25728,7 +25739,7 @@ function PE(e, t) {
n,
r
]);
- qC(() => {
+ $C(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -25736,20 +25747,20 @@ function PE(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function FE(e, t) {
+function VE(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function IE(e, t) {
+function HE(e, t) {
let n = t?.isDisabled, [r, i] = (0, P.useState)(!1);
return Jb(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = VC(e.current, { tabbable: !0 });
+ let t = qC(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -25767,12 +25778,12 @@ function IE(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Gae(e) {
+function Vae(e) {
return e && e.__esModule ? e.default : e;
}
-function LE(e) {
- let t = XS(Gae(NE), "@react-aria/grid"), n = Px(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return ew((0, P.useMemo)(() => {
+function UE(e) {
+ let t = lC(Vae(zE), "@react-aria/grid"), n = Px(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return ow((0, P.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -25784,11 +25795,11 @@ function LE(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function RE(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = RT({
+function WE(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = WT({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, P.useMemo)(() => a || new Bw({
+ }), l = t.disabledBehavior, u = (0, P.useMemo)(() => a || new Kw({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -25805,7 +25816,7 @@ function RE(e) {
c,
l,
s
- ]), { collectionProps: d } = OT({
+ ]), { collectionProps: d } = PT({
...e,
ref: i,
selectionManager: t,
@@ -25814,10 +25825,10 @@ function RE(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Kae(e, t, n) {
+function Hae(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = RE({
+ let { listProps: f } = WE({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -25833,29 +25844,29 @@ function Kae(e, t, n) {
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
}), p = Jx(e.id);
- ZT.set(t, {
+ rE.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = LE({
+ let m = UE({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = IE(n, { isDisabled: t.collection.size !== 0 }), g = K(QS(e, { labelable: !0 }), {
+ }), h = HE(n, { isDisabled: t.collection.size !== 0 }), g = K(dC(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), PE({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), BE({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function zE(e) {
+function GE(e) {
let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = lx();
t = Jx(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Iw(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Hw(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -25866,11 +25877,11 @@ function zE(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (PS(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (qS(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, P.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? CS(i.current) : s ? s() : Bb() !== i.current && i.current && Ux(i.current));
+ r === n.focusedKey && n.isFocused && (o ? NS(i.current) : s ? s() : Bb() !== i.current && i.current && Ux(i.current));
}, [
i,
r,
@@ -25898,22 +25909,22 @@ function zE(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || VE(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || qE(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !BE(e.key)) return;
+ if (e.pointerType === "keyboard" && !KE(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || VE(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || qE(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && BE(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && KE(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = kae(n.collection);
+ let A = Tae(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -25929,9 +25940,9 @@ function zE(e) {
"onPressUp",
"onClick"
]) D[e] && (k[e] = Wx(k[e], D[e]));
- let { pressProps: j, isPressed: M } = pC(k), ee = x ? (e) => {
+ let { pressProps: j, isPressed: M } = TC(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: te } = ST({
+ } : void 0, { longPressProps: te } = OT({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -25972,14 +25983,14 @@ function zE(e) {
hasAction: S
};
}
-function BE(e) {
+function KE(e) {
return e === "Enter";
}
-function VE(e) {
+function qE(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var HE = {
+var JE = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -25989,14 +26000,14 @@ var HE = {
rtl: "ArrowRight"
}
};
-function qae(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = WS(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = ZT.get(t), f = Yx(), p = (0, P.useRef)(null), m = () => {
+function Uae(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = rC(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = rE.get(t), f = Yx(), p = (0, P.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
if (Hb(n.current) && n.current !== Bb(Mb(n.current))) return;
- let e = VC(n.current, { tabbable: !0 }).firstChild();
+ let e = qC(n.current, { tabbable: !0 }).firstChild();
if (e) {
- Ux(e), QC(e, { containingElement: YC(e) });
+ Ux(e), iw(e, { containingElement: tw(e) });
return;
}
}
@@ -26010,7 +26021,7 @@ function qae(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Jae(e, t.collection);
+ let n = Wae(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -26021,7 +26032,7 @@ function qae(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = zE({
+ let { itemProps: v, ...y } = GE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -26033,29 +26044,29 @@ function qae(e, t, n) {
}), b = (e) => {
let i = Bb(Mb(n.current));
if (!zb(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = VC(n.current);
- if (a.currentNode = i, !UE(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let a = qC(n.current);
+ if (a.currentNode = i, !YE(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), Ux(t), QC(t, { containingElement: YC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") Ux(n.current), QC(n.current, { containingElement: YC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), Ux(t), iw(t, { containingElement: tw(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") Ux(n.current), iw(n.current, { containingElement: tw(n.current) });
else {
a.currentNode = n.current;
- let e = WE(a);
- e && (Ux(e), QC(e, { containingElement: YC(n.current) }));
+ let e = XE(a);
+ e && (Ux(e), iw(e, { containingElement: tw(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), Ux(t), QC(t, { containingElement: YC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") Ux(n.current), QC(n.current, { containingElement: YC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), Ux(t), iw(t, { containingElement: tw(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") Ux(n.current), iw(n.current, { containingElement: tw(n.current) });
else {
a.currentNode = n.current;
- let e = WE(a);
- e && (Ux(e), QC(e, { containingElement: YC(n.current) }));
+ let e = XE(a);
+ e && (Ux(e), iw(e, { containingElement: tw(n.current) }));
}
}
break;
@@ -26074,10 +26085,10 @@ function qae(e, t, n) {
e.stopPropagation();
return;
}
- if (UE(e, t, r, g, s, i, n.current, o)) return;
+ if (YE(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = VC(n.current, { tabbable: !0 });
+ let t = qC(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -26088,8 +26099,8 @@ function qae(e, t, n) {
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${QT(t, r.key)} ${f}` : void 0,
- id: QT(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${iE(t, r.key)} ${f}` : void 0,
+ id: iE(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -26110,66 +26121,66 @@ function qae(e, t, n) {
...y
};
}
-function UE(e, t, n, r, i, a, o, s) {
+function YE(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === HE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === HE.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === JE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === JE.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function WE(e) {
+function XE(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Jae(e, t) {
+function Wae(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Yae(e) {
+function Gae(e) {
return e && e.__esModule ? e.default : e;
}
-function GE(e, t) {
+function ZE(e, t) {
let { key: n } = e, r = t.selectionManager, i = Jx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": XS(Yae(NE), "@react-aria/grid").format("select"),
+ "aria-label": lC(Gae(zE), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Xae(e, t) {
- let { key: n } = e, { checkboxProps: r } = GE(e, t);
+function Kae(e, t) {
+ let { key: n } = e, { checkboxProps: r } = ZE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${QT(t, n)}`
+ "aria-labelledby": `${r.id} ${iE(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Zae(e, t, n) {
- let r = QS(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function qae(e, t, n) {
+ let r = dC(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = RE({
+ let { listProps: s } = WE({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = gw({
+ }), { focusWithinProps: c } = Sw({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
}), l = Jx(e.id);
- Fw.set(t, {
+ Vw.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -26179,7 +26190,7 @@ function Zae(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = mw({
+ let { labelProps: u, fieldProps: d } = bw({
...e,
id: l,
labelElementType: "span"
@@ -26194,7 +26205,7 @@ function Zae(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Qae(e) {
+function Jae(e) {
let { heading: t, "aria-label": n } = e, r = Jx();
return {
itemProps: { role: "presentation" },
@@ -26213,8 +26224,8 @@ function Qae(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function $ae(e, t, n) {
- let { key: r } = e, i = Fw.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Yx(), f = Yx(), p = {
+function Yae(e, t, n) {
+ let { key: r } = e, i = Vw.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Yx(), f = Yx(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -26224,9 +26235,9 @@ function $ae(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = IT(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = HT(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Dae(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = zE({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Cae(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = GE({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -26239,12 +26250,12 @@ function $ae(e, t, n) {
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = YT({
+ }), { hoverProps: S } = tE({
isDisabled: a || !c,
onHoverStart() {
jx() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = QS(m?.props);
+ }), C = dC(m?.props);
delete C.id;
let w = fx(m?.props);
return {
@@ -26265,12 +26276,12 @@ function $ae(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var KE = /* @__PURE__ */ new WeakMap();
+var QE = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function eoe(e, t, n) {
+function Xae(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = QS(e, { labelable: !0 }), { listProps: c } = RE({
+ let s = dC(e, { labelable: !0 }), { listProps: c } = WE({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -26279,7 +26290,7 @@ function eoe(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return KE.set(t, {
+ return QE.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -26295,8 +26306,8 @@ function eoe(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function toe(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = KE.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = lx(), M = () => {
+function Zae(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = QE.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = lx(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -26320,17 +26331,17 @@ function toe(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (re["aria-checked"] = D), s) {
let e = Number(k?.index);
- re["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, re["aria-setsize"] = IT(t.collection);
+ re["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, re["aria-setsize"] = HT(t.collection);
}
let ie = (0, P.useRef)(!1), F = (e) => {
f?.(e), ie.current = e;
}, ae = (0, P.useRef)(null), oe = (e) => {
e.pointerType !== "keyboard" && (ae.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (ie.current || e.target.click()), u?.(e);
}, se = (e) => {
- m?.(e), M(), Bre(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), Hre(e, j, k.props.href, k?.props.routerOptions);
let t = ae.current?.pointerType === "keyboard" ? ae.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ae.current = null;
- }, { itemProps: ce, isFocused: le } = zE({
+ }, { itemProps: ce, isFocused: le } = GE({
id: r,
selectionManager: C,
key: i,
@@ -26339,14 +26350,14 @@ function toe(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: ue, isPressed: de } = pC({
+ }), { pressProps: ue, isPressed: de } = TC({
onPressStart: l,
onPress: d,
onPressUp: oe,
onPressChange: F,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: fe } = YT({
+ }), { hoverProps: fe } = tE({
isDisabled: E,
onHoverStart(e) {
!jx() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
@@ -26380,7 +26391,7 @@ function toe(e, t, n) {
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), he = QS(k?.props);
+ }, n), he = dC(k?.props);
delete he.id;
let I = fx(k?.props);
return {
@@ -26404,7 +26415,7 @@ function toe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function noe(e) {
+function Qae(e) {
let { heading: t, "aria-label": n } = e, r = Jx();
return {
itemProps: { role: "presentation" },
@@ -26420,15 +26431,15 @@ function noe(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function roe() {
+function $ae() {
return window.ResizeObserver !== void 0;
}
-function qE(e) {
- let { ref: t, box: n, onResize: r } = e, i = IS(r);
+function $E(e) {
+ let { ref: t, box: n, onResize: r } = e, i = YS(r);
(0, P.useEffect)(() => {
let e = t?.current;
if (e) {
- if (roe()) {
+ if ($ae()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -26443,154 +26454,154 @@ function qE(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var JE = {};
-JE = { dismiss: "تجاهل" };
+var eD = {};
+eD = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var YE = {};
-YE = { dismiss: "Отхвърляне" };
+var tD = {};
+tD = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var XE = {};
-XE = { dismiss: "Odstranit" };
+var nD = {};
+nD = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var ZE = {};
-ZE = { dismiss: "Luk" };
+var rD = {};
+rD = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var QE = {};
-QE = { dismiss: "Schließen" };
+var iD = {};
+iD = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var $E = {};
-$E = { dismiss: "Απόρριψη" };
+var aD = {};
+aD = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var eD = {};
-eD = { dismiss: "Dismiss" };
+var oD = {};
+oD = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var tD = {};
-tD = { dismiss: "Descartar" };
+var sD = {};
+sD = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var nD = {};
-nD = { dismiss: "Lõpeta" };
+var cD = {};
+cD = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var rD = {};
-rD = { dismiss: "Hylkää" };
+var lD = {};
+lD = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var iD = {};
-iD = { dismiss: "Rejeter" };
+var uD = {};
+uD = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var aD = {};
-aD = { dismiss: "התעלם" };
+var dD = {};
+dD = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var oD = {};
-oD = { dismiss: "Odbaci" };
+var fD = {};
+fD = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var sD = {};
-sD = { dismiss: "Elutasítás" };
+var pD = {};
+pD = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var cD = {};
-cD = { dismiss: "Ignora" };
+var mD = {};
+mD = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var lD = {};
-lD = { dismiss: "閉じる" };
+var hD = {};
+hD = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var uD = {};
-uD = { dismiss: "무시" };
+var gD = {};
+gD = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var dD = {};
-dD = { dismiss: "Atmesti" };
+var _D = {};
+_D = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var fD = {};
-fD = { dismiss: "Nerādīt" };
+var vD = {};
+vD = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var pD = {};
-pD = { dismiss: "Lukk" };
+var yD = {};
+yD = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var mD = {};
-mD = { dismiss: "Negeren" };
+var bD = {};
+bD = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var hD = {};
-hD = { dismiss: "Zignoruj" };
+var xD = {};
+xD = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var gD = {};
-gD = { dismiss: "Descartar" };
+var SD = {};
+SD = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var _D = {};
-_D = { dismiss: "Dispensar" };
+var CD = {};
+CD = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var vD = {};
-vD = { dismiss: "Revocare" };
+var wD = {};
+wD = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var yD = {};
-yD = { dismiss: "Пропустить" };
+var TD = {};
+TD = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var bD = {};
-bD = { dismiss: "Zrušiť" };
+var ED = {};
+ED = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var xD = {};
-xD = { dismiss: "Opusti" };
+var DD = {};
+DD = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var SD = {};
-SD = { dismiss: "Odbaci" };
+var OD = {};
+OD = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var CD = {};
-CD = { dismiss: "Avvisa" };
+var kD = {};
+kD = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var wD = {};
-wD = { dismiss: "Kapat" };
+var AD = {};
+AD = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var TD = {};
-TD = { dismiss: "Скасувати" };
+var jD = {};
+jD = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var ED = {};
-ED = { dismiss: "取消" };
+var MD = {};
+MD = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var DD = {};
-DD = { dismiss: "關閉" };
+var ND = {};
+ND = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var OD = {};
-OD = {
- "ar-AE": JE,
- "bg-BG": YE,
- "cs-CZ": XE,
- "da-DK": ZE,
- "de-DE": QE,
- "el-GR": $E,
- "en-US": eD,
- "es-ES": tD,
- "et-EE": nD,
- "fi-FI": rD,
- "fr-FR": iD,
- "he-IL": aD,
- "hr-HR": oD,
- "hu-HU": sD,
- "it-IT": cD,
- "ja-JP": lD,
- "ko-KR": uD,
- "lt-LT": dD,
- "lv-LV": fD,
- "nb-NO": pD,
- "nl-NL": mD,
- "pl-PL": hD,
- "pt-BR": gD,
- "pt-PT": _D,
- "ro-RO": vD,
- "ru-RU": yD,
- "sk-SK": bD,
- "sl-SI": xD,
- "sr-SP": SD,
- "sv-SE": CD,
- "tr-TR": wD,
- "uk-UA": TD,
- "zh-CN": ED,
- "zh-TW": DD
+var PD = {};
+PD = {
+ "ar-AE": eD,
+ "bg-BG": tD,
+ "cs-CZ": nD,
+ "da-DK": rD,
+ "de-DE": iD,
+ "el-GR": aD,
+ "en-US": oD,
+ "es-ES": sD,
+ "et-EE": cD,
+ "fi-FI": lD,
+ "fr-FR": uD,
+ "he-IL": dD,
+ "hr-HR": fD,
+ "hu-HU": pD,
+ "it-IT": mD,
+ "ja-JP": hD,
+ "ko-KR": gD,
+ "lt-LT": _D,
+ "lv-LV": vD,
+ "nb-NO": yD,
+ "nl-NL": bD,
+ "pl-PL": xD,
+ "pt-BR": SD,
+ "pt-PT": CD,
+ "ro-RO": wD,
+ "ru-RU": TD,
+ "sk-SK": ED,
+ "sl-SI": DD,
+ "sr-SP": OD,
+ "sv-SE": kD,
+ "tr-TR": AD,
+ "uk-UA": jD,
+ "zh-CN": MD,
+ "zh-TW": ND
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function ioe(e) {
+function FD(e) {
return e && e.__esModule ? e.default : e;
}
-function kD(e) {
- let { onDismiss: t, ...n } = e, r = RS(n, XS(ioe(OD), "@react-aria/overlays").format("dismiss")), i = () => {
+function ID(e) {
+ let { onDismiss: t, ...n } = e, r = ZS(n, lC(FD(PD), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ P.createElement(Dw, null, /*#__PURE__*/ P.createElement("button", {
+ return /*#__PURE__*/ P.createElement(Nw, null, /*#__PURE__*/ P.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -26601,35 +26612,35 @@ function kD(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var AD = [];
-function jD(e, t) {
+var LD = [];
+function RD(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, P.useRef)(void 0);
(0, P.useEffect)(() => {
- if (i && !AD.includes(t)) return AD.push(t), () => {
- let e = AD.indexOf(t);
- e >= 0 && AD.splice(e, 1);
+ if (i && !LD.includes(t)) return LD.push(t), () => {
+ let e = LD.indexOf(t);
+ e >= 0 && LD.splice(e, 1);
};
}, [i, t]);
let l = () => {
- AD[AD.length - 1] === t && n && n();
+ LD[LD.length - 1] === t && n && n();
}, u = (e) => {
- let n = AD[AD.length - 1];
+ let n = LD[LD.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (AD[AD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(G(e))) && (LD[LD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = iS({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Hae({
+ Rae({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = gw({
+ let { focusWithinProps: p } = Sw({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !eae(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Xie(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -26641,87 +26652,87 @@ function jD(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var aoe = 200, ooe = 50, soe = 600, MD = /* @__PURE__ */ new WeakMap(), ND = /* @__PURE__ */ new Set(), PD = /* @__PURE__ */ new Set();
-function coe(e, t) {
- let n = FS();
- if (e !== n || t.aborted) for (let e of PD) e(n), PD.delete(e);
- if (!e && n && ax() && !t.aborted) window.clearInterval(MD.get(window)), MD.set(window, FD(aoe));
+var zD = 200, eoe = 50, toe = 600, BD = /* @__PURE__ */ new WeakMap(), VD = /* @__PURE__ */ new Set(), HD = /* @__PURE__ */ new Set();
+function noe(e, t) {
+ let n = JS();
+ if (e !== n || t.aborted) for (let e of HD) e(n), HD.delete(e);
+ if (!e && n && ax() && !t.aborted) window.clearInterval(BD.get(window)), BD.set(window, UD(zD));
else {
- if (e !== n || t.aborted) for (let e of ND) e(n), ND.delete(e);
- (PD.size + ND.size <= 0 || t.aborted) && (window.clearInterval(MD.get(window)), MD.delete(window));
+ if (e !== n || t.aborted) for (let e of VD) e(n), VD.delete(e);
+ (HD.size + VD.size <= 0 || t.aborted) && (window.clearInterval(BD.get(window)), BD.delete(window));
}
}
-function FD(e = soe) {
- return window.setInterval(coe, ooe, FS(), AbortSignal.timeout(e));
+function UD(e = toe) {
+ return window.setInterval(noe, eoe, JS(), AbortSignal.timeout(e));
}
-function ID(e) {
- if (!MS()) return e(!1), () => {};
+function WD(e) {
+ if (!GS()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = NS(document.hasFocus() ? Bb() : null);
- if (FS() === t || FS() && !t) return e(t);
- PD.add(e), MD.has(window) || MD.set(window, FD());
+ let t = KS(document.hasFocus() ? Bb() : null);
+ if (JS() === t || JS() && !t) return e(t);
+ HD.add(e), BD.has(window) || BD.set(window, UD());
});
});
return () => {
- window.cancelAnimationFrame(t), PD.delete(e);
+ window.cancelAnimationFrame(t), HD.delete(e);
};
}
-function loe(e) {
- if (!MS()) return e(!1), () => {};
+function roe(e) {
+ if (!GS()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = NS(document.hasFocus() ? Bb() : null);
- if (FS() === t) return e(t);
- ND.add(e), MD.has(window) || MD.set(window, FD());
+ let t = KS(document.hasFocus() ? Bb() : null);
+ if (JS() === t) return e(t);
+ VD.add(e), BD.has(window) || BD.set(window, UD());
});
});
return () => {
- window.cancelAnimationFrame(t), ND.delete(e);
+ window.cancelAnimationFrame(t), VD.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var LD = typeof document < "u" && window.visualViewport, RD = 0, zD;
-function BD(e = {}) {
+var GD = typeof document < "u" && window.visualViewport, KD = 0, qD;
+function JD(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
Jb(() => {
- if (!t) return RD++, RD === 1 && (zD = ix() && ax() ? doe() : uoe(n)), () => {
- RD--, RD === 0 && zD();
+ if (!t) return KD++, KD === 1 && (qD = ix() && ax() ? aoe() : ioe(n)), () => {
+ KD--, KD === 0 && qD();
};
}, [t, n]);
}
-function uoe(e) {
+function ioe(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return Wx(t > 0 && ("scrollbarGutter" in document.documentElement.style ? Lb(document.documentElement, "scrollbar-gutter", "stable") : Lb(document.documentElement, "padding-right", `${t}px`)), Lb(document.documentElement, "overflow", "hidden"), e && HD(), e && MS() && VD());
+ return Wx(t > 0 && ("scrollbarGutter" in document.documentElement.style ? Lb(document.documentElement, "scrollbar-gutter", "stable") : Lb(document.documentElement, "padding-right", `${t}px`)), Lb(document.documentElement, "overflow", "hidden"), e && XD(), e && GS() && YD());
}
-function doe() {
+function aoe() {
let e = Lb(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = JC(r, !0) ? r : YC(r, !0), n = !1;
+ t = ew(r, !0) ? r : tw(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = aC();
+ }, i = document.createElement("style"), a = vC();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = HD(), c = Wx(Ib(document, "touchstart", r, {
+ }, s = XD(), c = Wx(Ib(document, "touchstart", r, {
passive: !1,
capture: !0
}), Ib(document, "touchmove", o, {
passive: !1,
capture: !0
- }), VD());
+ }), YD());
return () => {
e(), c(), i.remove(), s();
};
}
-function VD() {
+function YD() {
return Ib(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && NS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && KS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function HD() {
+function XD() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -26732,9 +26743,9 @@ function HD() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- Bb() === this && foe(this);
+ Bb() === this && ooe(this);
};
- ID((t) => t ? e() : loe(() => e()));
+ WD((t) => t ? e() : roe(() => e()));
}
}
}), () => {
@@ -26745,15 +26756,15 @@ function HD() {
});
};
}
-function foe(e) {
+function ooe(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = YC(n);
+ let e = tw(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- LD && (n = Math.min(n, LD.offsetTop + LD.height));
+ GD && (n = Math.min(n, GD.offsetTop + GD.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -26765,19 +26776,19 @@ function foe(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function poe(e, t, n) {
- let { overlayProps: r, underlayProps: i } = jD({
+function soe(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = RD({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- BD({
+ JD({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), WT();
+ }), XT();
let { isEntering: a } = e;
return (0, P.useEffect)(() => {
- if (t.isOpen && n.current) return a ? Pw(n.current) : Nw([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? Bw(n.current) : zw([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -26788,32 +26799,32 @@ function poe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var UD = {
+var ZD = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, WD = {
+}, QD = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, moe = {
+}, coe = {
top: "left",
left: "top"
-}, GD = {
+}, $D = {
top: "height",
left: "width"
-}, KD = {
+}, eO = {
width: "totalWidth",
height: "totalHeight"
-}, qD = {}, hoe = () => typeof document < "u" ? window.visualViewport : null;
-function JD(e, t) {
+}, tO = {}, loe = () => typeof document < "u" ? window.visualViewport : null;
+function nO(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = eO(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = cO(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return ax() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
@@ -26824,7 +26835,7 @@ function JD(e, t) {
left: s
};
}
-function goe(e) {
+function uoe(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -26832,11 +26843,11 @@ function goe(e) {
height: e.scrollHeight
};
}
-function YD(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[GD[e]], l = o[e] + r.scroll[UD[e]] + a, u = o[e] + r.scroll[UD[e]] + c - a, d = t - s + r.scroll[UD[e]] + o[e] - r[UD[e]], f = t - s + n + r.scroll[UD[e]] + o[e] - r[UD[e]];
+function rO(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[$D[e]], l = o[e] + r.scroll[ZD[e]] + a, u = o[e] + r.scroll[ZD[e]] + c - a, d = t - s + r.scroll[ZD[e]] + o[e] - r[ZD[e]], f = t - s + n + r.scroll[ZD[e]] + o[e] - r[ZD[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function _oe(e) {
+function doe(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -26845,55 +26856,55 @@ function _oe(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function XD(e) {
- if (qD[e]) return qD[e];
- let [t, n] = e.split(" "), r = UD[t] || "right", i = moe[r];
- UD[n] || (n = "center");
- let a = GD[r], o = GD[i];
- return qD[e] = {
+function iO(e) {
+ if (tO[e]) return tO[e];
+ let [t, n] = e.split(" "), r = ZD[t] || "right", i = coe[r];
+ ZD[n] || (n = "center");
+ let a = $D[r], o = $D[i];
+ return tO[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, qD[e];
+ }, tO[e];
}
-function ZD(e, t, n, r, i, a, o, s, c, l, u) {
+function aO(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = yw(_[m], v, y), d === p) {
- let t = s ? u[h] : u[KD[h]];
- _[WD[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = Tw(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[eO[h]];
+ _[QD[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function voe(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[KD.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function foe(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[eO.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function QD(e, t, n, r, i, a, o, s) {
+function oO(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[WD[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[WD[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[QD[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[QD[l]] - i);
}
-function yoe(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = XD(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = ZD(t, s, n, v, u, d, l, f, m, h, c), T = u, E = QD(s, l, t, i, a + u, v, c, g);
+function poe(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = iO(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = aO(t, s, n, v, u, d, l, f, m, h, c), T = u, E = oO(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = XD(`${WD[S]} ${C}`), r = ZD(t, s, n, e, u, d, l, f, m, h, c);
- QD(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = iO(`${QD[S]} ${C}`), r = aO(t, s, n, e, u, d, l, f, m, h, c);
+ oO(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = YD(b, w[b], n[x], s, c, a, l);
+ let O = rO(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = voe(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = ZD(t, s, n, v, T, d, l, f, m, h, c), O = YD(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[UD[b]], M = j + .5 * t[x], ee = m / 2 + h, te = UD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - te - m / 2 - h;
- A[b] = yw(yw(M, t[b] + m / 2 - (w[b] + i[UD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[UD[b]])), ee, ne), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = foe(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = aO(t, s, n, v, T, d, l, f, m, h, c), O = rO(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[ZD[b]], M = j + .5 * t[x], ee = m / 2 + h, te = ZD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - te - m / 2 - h;
+ A[b] = Tw(Tw(M, t[b] + m / 2 - (w[b] + i[ZD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[ZD[b]])), ee, ne), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let N = S === "left" || S === "top" ? n[y] : 0, re = {
x: S === "top" || S === "bottom" ? j : N,
y: S === "left" || S === "right" ? j : N
@@ -26907,17 +26918,17 @@ function yoe(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: re
};
}
-function boe(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = hoe(), h = r instanceof HTMLElement ? xoe(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? eO(n, !1, p) : tO(n, h, !1, p);
+function moe(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = loe(), h = r instanceof HTMLElement ? hoe(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? cO(n, !1, p) : lO(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = eO(r, !0), x = _oe(r);
+ let b = cO(r, !0), x = doe(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = goe(i), C = JD(s, m), w = JD(h, m), T;
+ let S = uoe(i), C = nO(s, m), w = nO(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = $D(h, !1);
+ let e = sO(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -26929,11 +26940,11 @@ function boe(e) {
left: 0,
width: 0,
height: 0
- } : tO(s, h, !1);
+ } : lO(s, h, !1);
let E = zb(s, h);
- return yoe(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return poe(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function $D(e, t) {
+function sO(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -26942,8 +26953,8 @@ function $D(e, t) {
height: a
};
}
-function eO(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || $D(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function cO(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || sO(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -26951,29 +26962,29 @@ function eO(e, t, n) {
height: o
};
}
-function tO(e, t, n, r) {
+function lO(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || $D(e, n);
+ if (i.position === "fixed") a = r || sO(e, n);
else {
- a = eO(e, n, r);
- let i = eO(t, n), o = window.getComputedStyle(t);
+ a = cO(e, n, r);
+ let i = cO(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function xoe(e) {
+function hoe(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !nO(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !nO(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !uO(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !uO(t);) t = t.parentElement;
return t || document.documentElement;
}
-function nO(e) {
+function uO(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var rO = typeof document < "u" ? window.visualViewport : null;
-function Soe(e) {
- let { direction: t } = WS(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, P.useState)(null), x = [
+var dO = typeof document < "u" ? window.visualViewport : null;
+function goe(e) {
+ let { direction: t } = rC(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, P.useState)(null), x = [
p,
s,
i.current,
@@ -26990,12 +27001,12 @@ function Soe(e) {
g,
_,
n
- ], S = (0, P.useRef)(rO?.scale);
+ ], S = (0, P.useRef)(dO?.scale);
(0, P.useEffect)(() => {
- m && (S.current = rO?.scale);
+ m && (S.current = dO?.scale);
}, [m]);
let C = (0, P.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || rO?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || dO?.scale !== S.current) return;
let e = null;
if (o.current && Hb(o.current)) {
let t = Bb()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -27006,8 +27017,8 @@ function Soe(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = boe({
- placement: woe(s, t),
+ let y = moe({
+ placement: voe(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -27017,7 +27028,7 @@ function Soe(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? $D(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? sO(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -27030,10 +27041,10 @@ function Soe(e) {
}
b(y);
}, x);
- Jb(C, x), Coe(C), qE({
+ Jb(C, x), _oe(C), $E({
ref: i,
onResize: C
- }), qE({
+ }), $E({
ref: r,
onResize: C
});
@@ -27046,16 +27057,16 @@ function Soe(e) {
}, n = () => {
w.current && t();
};
- rO?.addEventListener("resize", t), rO?.addEventListener("scroll", n);
+ dO?.addEventListener("resize", t), dO?.addEventListener("scroll", n);
let r = Ib(Vb(window), "scroll", n);
return () => {
- rO?.removeEventListener("resize", t), rO?.removeEventListener("scroll", n), r();
+ dO?.removeEventListener("resize", t), dO?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, P.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Mae({
+ return Oae({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -27081,24 +27092,24 @@ function Soe(e) {
updatePosition: C
};
}
-function Coe(e) {
+function _oe(e) {
Jb(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function woe(e, t) {
+function voe(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Toe(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = jD({
+function yoe(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = RD({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Soe({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = goe({
...c,
targetRef: n,
overlayRef: r,
@@ -27106,15 +27117,15 @@ function Toe(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- BD({ isDisabled: a || !t.isOpen }), (0, P.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Pw(i?.current ?? r.current) : Nw([i?.current ?? r.current], { shouldUseInert: !0 });
+ JD({ isDisabled: a || !t.isOpen }), (0, P.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Bw(i?.current ?? r.current) : zw([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = gw(e);
+ let { focusWithinProps: g } = Sw(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -27124,12 +27135,12 @@ function Toe(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var iO = /* @__PURE__ */ new WeakMap();
+var fO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Eoe(e, t, n) {
+function boe(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = pC({
+ }, { pressProps: g, isPressed: _ } = TC({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27137,7 +27148,7 @@ function Eoe(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = pC({
+ }), { pressProps: v, isPressed: y } = TC({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27147,11 +27158,11 @@ function Eoe(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = cS(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = QS(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = cS(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = dC(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = iO.get(t);
- tw(n, t.defaultSelectedValue, t.setSelectedValue), nw({ validationBehavior: O }, t, n);
- let k = rw();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = fO.get(t);
+ sw(n, t.defaultSelectedValue, t.setSelectedValue), cw({ validationBehavior: O }, t, n);
+ let k = lw();
return {
labelProps: K(v, (0, P.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -27182,13 +27193,13 @@ function Eoe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Doe(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = WS(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = hw({
+function xoe(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = rC(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = xw({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = QS(e, { labelable: !0 }), { focusWithinProps: v } = gw({
+ }), _ = dC(e, { labelable: !0 }), { focusWithinProps: v } = Sw({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -27196,7 +27207,7 @@ function Doe(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = VC(n.currentTarget, {
+ let r = qC(n.currentTarget, {
from: G(n),
accept: (e) => e instanceof Nb(e).HTMLInputElement && e.type === "radio"
}), i;
@@ -27211,7 +27222,7 @@ function Doe(e, t) {
},
allowRepeats: !0
}), x = Jx(n);
- return iO.set(t, {
+ return fO.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -27239,18 +27250,18 @@ function Doe(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var aO = /* @__PURE__ */ new WeakMap();
-function Ooe(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = RT({
+var pO = /* @__PURE__ */ new WeakMap();
+function Soe(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = WT({
usage: "search",
sensitivity: "base"
- }), u = (0, P.useMemo)(() => r || new Bw(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, P.useMemo)(() => r || new Kw(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = wT({
+ ]), { menuTriggerProps: d, menuProps: f } = AT({
isDisabled: i,
type: "listbox"
}, t, n), { keyboardProps: p } = iS({
@@ -27269,21 +27280,21 @@ function Ooe(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = ET({
+ }), { typeSelectProps: m } = MT({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = hw({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = xw({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = QS(e, { labelable: !0 }), C = K(m, d, y), w = Jx();
- return aO.set(t, {
+ let S = dC(e, { labelable: !0 }), C = K(m, d, y), w = Jx();
+ return pO.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -27343,13 +27354,13 @@ function Ooe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function koe(e, t, n) {
- let r = aO.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Ew({ style: {
+function Coe(e, t, n) {
+ let r = pO.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Mw({ style: {
position: "fixed",
top: 0,
left: 0
} });
- tw(e.selectRef, t.defaultValue, t.setValue), nw({
+ sw(e.selectRef, t.defaultValue, t.setValue), cw({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -27379,8 +27390,8 @@ function koe(e, t, n) {
}
};
}
-function Aoe(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, P.useRef)(null), c = (0, P.useRef)(null), { containerProps: l, selectProps: u } = koe({
+function woe(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, P.useRef)(null), c = (0, P.useRef)(null), { containerProps: l, selectProps: u } = Coe({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -27404,7 +27415,7 @@ function Aoe(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = aO.get(t) || {};
+ let { validationBehavior: e } = pO.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -27434,8 +27445,8 @@ function Aoe(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function joe(e) {
- let t = QS(e, { labelable: !0 }), n;
+function Toe(e) {
+ let t = dC(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -27443,8 +27454,8 @@ function joe(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Moe(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = fw(e, t, n);
+function Eoe(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = vw(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -27457,10 +27468,10 @@ function Moe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var oO = class {
+var mO = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new Noe(e.layout) : new zw(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Doe(e.layout) : new Gw(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -27496,7 +27507,7 @@ var oO = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of kT(n, this.collection)) {
+ for (let e of FT(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -27530,13 +27541,13 @@ var oO = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = kT(t, this.collection);
- return (this.direction === "rtl" ? MT(e)?.key : AT(e)?.key) ?? null;
+ let e = FT(t, this.collection);
+ return (this.direction === "rtl" ? RT(e)?.key : IT(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = kT(n, this.collection), i = (this.direction === "rtl" ? jT(r, t.index - 1) : jT(r, t.index + 1)) ?? null;
+ let r = FT(n, this.collection), i = (this.direction === "rtl" ? LT(r, t.index - 1) : LT(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -27545,13 +27556,13 @@ var oO = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = kT(t, this.collection);
- return (this.direction === "rtl" ? AT(e)?.key : MT(e)?.key) ?? null;
+ let e = FT(t, this.collection);
+ return (this.direction === "rtl" ? IT(e)?.key : RT(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = kT(n, this.collection), i = (this.direction === "rtl" ? jT(r, t.index + 1) : jT(r, t.index - 1)) ?? null;
+ let r = FT(n, this.collection), i = (this.direction === "rtl" ? LT(r, t.index + 1) : LT(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -27562,13 +27573,13 @@ var oO = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? AT(kT(e, this.collection))?.key ?? null : null;
+ return e ? IT(FT(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = AT(kT(e, this.collection))?.key ?? null;
+ n = IT(FT(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27578,13 +27589,13 @@ var oO = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? MT(kT(e, this.collection))?.key ?? null : null;
+ return e ? RT(FT(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = MT(kT(e, this.collection))?.key ?? null;
+ n = RT(FT(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27620,13 +27631,13 @@ var oO = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? AT(kT(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? IT(FT(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, Noe = class {
+}, Doe = class {
constructor(e) {
this.layout = e;
}
@@ -27639,15 +27650,15 @@ var oO = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, sO = /* @__PURE__ */ new WeakMap();
+}, hO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Poe(e, t, n) {
+function Ooe(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = RT({
+ let h = WT({
usage: "search",
sensitivity: "base"
- }), { direction: g } = WS(), _ = t.selectionManager.disabledBehavior, v = (0, P.useMemo)(() => a || new oO({
+ }), { direction: g } = rC(), _ = t.selectionManager.disabledBehavior, v = (0, P.useMemo)(() => a || new mO({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -27664,7 +27675,7 @@ function Poe(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = OT({
+ ]), { collectionProps: y } = PT({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -27673,7 +27684,7 @@ function Poe(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Jx(e.id);
- sO.set(t, {
+ hO.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -27682,42 +27693,42 @@ function Poe(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = LE({
+ let x = UE({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = QS(e, { labelable: !0 }), C = (0, P.useCallback)((e) => {
+ }), S = dC(e, { labelable: !0 }), C = (0, P.useCallback)((e) => {
m.isFocused ? zb(e.currentTarget, G(e)) || m.setFocused(!1) : zb(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, P.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = IE(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = HE(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), PE({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), BE({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var cO = /* @__PURE__ */ new WeakMap();
-function lO(e) {
+var gO = /* @__PURE__ */ new WeakMap();
+function _O(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function uO(e, t) {
- let n = cO.get(e);
+function vO(e, t) {
+ let n = gO.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${lO(t)}`;
+ return `${n}-${_O(t)}`;
}
-function dO(e, t, n) {
- let r = cO.get(e);
+function yO(e, t, n) {
+ let r = gO.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${lO(t)}-${lO(n)}`;
+ return `${r}-${_O(t)}-${_O(n)}`;
}
-function fO(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => dO(e, t, n)).join(" ");
+function bO(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => yO(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var pO = {};
-pO = {
+var xO = {};
+xO = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -27731,8 +27742,8 @@ pO = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var mO = {};
-mO = {
+var SO = {};
+SO = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -27746,8 +27757,8 @@ mO = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var hO = {};
-hO = {
+var CO = {};
+CO = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -27761,8 +27772,8 @@ hO = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var gO = {};
-gO = {
+var wO = {};
+wO = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -27776,8 +27787,8 @@ gO = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var _O = {};
-_O = {
+var TO = {};
+TO = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -27791,8 +27802,8 @@ _O = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var vO = {};
-vO = {
+var EO = {};
+EO = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -27806,8 +27817,8 @@ vO = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var yO = {};
-yO = {
+var DO = {};
+DO = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -27821,8 +27832,8 @@ yO = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var bO = {};
-bO = {
+var OO = {};
+OO = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -27836,8 +27847,8 @@ bO = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var xO = {};
-xO = {
+var kO = {};
+kO = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -27851,8 +27862,8 @@ xO = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var SO = {};
-SO = {
+var AO = {};
+AO = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -27866,8 +27877,8 @@ SO = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var CO = {};
-CO = {
+var jO = {};
+jO = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -27881,8 +27892,8 @@ CO = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var wO = {};
-wO = {
+var MO = {};
+MO = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -27896,8 +27907,8 @@ wO = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var TO = {};
-TO = {
+var NO = {};
+NO = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -27911,8 +27922,8 @@ TO = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var EO = {};
-EO = {
+var PO = {};
+PO = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -27926,8 +27937,8 @@ EO = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var DO = {};
-DO = {
+var FO = {};
+FO = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -27941,8 +27952,8 @@ DO = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var OO = {};
-OO = {
+var IO = {};
+IO = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -27956,8 +27967,8 @@ OO = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var kO = {};
-kO = {
+var LO = {};
+LO = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -27971,8 +27982,8 @@ kO = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var AO = {};
-AO = {
+var RO = {};
+RO = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -27986,8 +27997,8 @@ AO = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var jO = {};
-jO = {
+var zO = {};
+zO = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -28001,8 +28012,8 @@ jO = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var MO = {};
-MO = {
+var BO = {};
+BO = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -28016,8 +28027,8 @@ MO = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var NO = {};
-NO = {
+var VO = {};
+VO = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -28031,8 +28042,8 @@ NO = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var PO = {};
-PO = {
+var HO = {};
+HO = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -28046,8 +28057,8 @@ PO = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var FO = {};
-FO = {
+var UO = {};
+UO = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -28061,8 +28072,8 @@ FO = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var IO = {};
-IO = {
+var WO = {};
+WO = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -28076,8 +28087,8 @@ IO = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var LO = {};
-LO = {
+var GO = {};
+GO = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -28091,8 +28102,8 @@ LO = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var RO = {};
-RO = {
+var KO = {};
+KO = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -28106,8 +28117,8 @@ RO = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var zO = {};
-zO = {
+var qO = {};
+qO = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -28121,8 +28132,8 @@ zO = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var BO = {};
-BO = {
+var JO = {};
+JO = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -28136,8 +28147,8 @@ BO = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var VO = {};
-VO = {
+var YO = {};
+YO = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -28151,8 +28162,8 @@ VO = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var HO = {};
-HO = {
+var XO = {};
+XO = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -28166,8 +28177,8 @@ HO = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var UO = {};
-UO = {
+var ZO = {};
+ZO = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -28181,8 +28192,8 @@ UO = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var WO = {};
-WO = {
+var QO = {};
+QO = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -28196,8 +28207,8 @@ WO = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var GO = {};
-GO = {
+var $O = {};
+$O = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -28211,8 +28222,8 @@ GO = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var KO = {};
-KO = {
+var ek = {};
+ek = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -28226,45 +28237,45 @@ KO = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var qO = {};
-qO = {
- "ar-AE": pO,
- "bg-BG": mO,
- "cs-CZ": hO,
- "da-DK": gO,
- "de-DE": _O,
- "el-GR": vO,
- "en-US": yO,
- "es-ES": bO,
- "et-EE": xO,
- "fi-FI": SO,
- "fr-FR": CO,
- "he-IL": wO,
- "hr-HR": TO,
- "hu-HU": EO,
- "it-IT": DO,
- "ja-JP": OO,
- "ko-KR": kO,
- "lt-LT": AO,
- "lv-LV": jO,
- "nb-NO": MO,
- "nl-NL": NO,
- "pl-PL": PO,
- "pt-BR": FO,
- "pt-PT": IO,
- "ro-RO": LO,
- "ru-RU": RO,
- "sk-SK": zO,
- "sl-SI": BO,
- "sr-SP": VO,
- "sv-SE": HO,
- "tr-TR": UO,
- "uk-UA": WO,
- "zh-CN": GO,
- "zh-TW": KO
+var tk = {};
+tk = {
+ "ar-AE": xO,
+ "bg-BG": SO,
+ "cs-CZ": CO,
+ "da-DK": wO,
+ "de-DE": TO,
+ "el-GR": EO,
+ "en-US": DO,
+ "es-ES": OO,
+ "et-EE": kO,
+ "fi-FI": AO,
+ "fr-FR": jO,
+ "he-IL": MO,
+ "hr-HR": NO,
+ "hu-HU": PO,
+ "it-IT": FO,
+ "ja-JP": IO,
+ "ko-KR": LO,
+ "lt-LT": RO,
+ "lv-LV": zO,
+ "nb-NO": BO,
+ "nl-NL": VO,
+ "pl-PL": HO,
+ "pt-BR": UO,
+ "pt-PT": WO,
+ "ro-RO": GO,
+ "ru-RU": KO,
+ "sk-SK": qO,
+ "sl-SI": JO,
+ "sr-SP": YO,
+ "sv-SE": XO,
+ "tr-TR": ZO,
+ "uk-UA": QO,
+ "zh-CN": $O,
+ "zh-TW": ek
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Foe = class extends oO {
+var koe = class extends mO {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -28272,7 +28283,7 @@ var Foe = class extends oO {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = AT(kT(n, this.collection));
+ let e = IT(FT(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -28293,13 +28304,13 @@ var Foe = class extends oO {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of kT(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of FT(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...kT(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...FT(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -28328,7 +28339,7 @@ var Foe = class extends oO {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of kT(o, this.collection)) {
+ for (let r of FT(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -28341,14 +28352,14 @@ var Foe = class extends oO {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function Ioe(e) {
+function Aoe(e) {
return e && e.__esModule ? e.default : e;
}
-function Loe(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = RT({
+function joe(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = WT({
usage: "search",
sensitivity: "base"
- }), { direction: c } = WS(), l = t.selectionManager.disabledBehavior, u = (0, P.useMemo)(() => r || new Foe({
+ }), { direction: c } = rC(), l = t.selectionManager.disabledBehavior, u = (0, P.useMemo)(() => r || new koe({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -28368,30 +28379,30 @@ function Loe(e, t, n) {
a,
o
]), d = Jx(e.id);
- cO.set(t, d);
- let { gridProps: f } = Poe({
+ gO.set(t, d);
+ let { gridProps: f } = Ooe({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = XS(Ioe(qO), "@react-aria/table"), g = (0, P.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = lC(Aoe(tk), "@react-aria/table"), g = (0, P.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = ew(g);
- return qC(() => {
- g && KC(g, "assertive", 500);
+ ]), _ = ow(g);
+ return $C(() => {
+ g && QC(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function JO(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = WS(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = sO.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = () => {
+function nk(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = rC(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = hO.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = () => {
if (n.current) {
- let e = VC(n.current);
+ let e = qC(n.current);
if (p === "child") {
let i = Bb(Mb(n.current));
if (Hb(n.current) && n.current !== i) return;
@@ -28403,7 +28414,7 @@ function JO(e, t, n) {
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? YO(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? rk(e) : e.firstChild();
if (o) {
Ux(o);
return;
@@ -28411,7 +28422,7 @@ function JO(e, t, n) {
}
(m.current != null && r.key !== m.current || !Hb(n.current)) && Ux(n.current);
}
- }, { itemProps: _, isPressed: v } = zE({
+ }, { itemProps: _, isPressed: v } = GE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -28425,29 +28436,29 @@ function JO(e, t, n) {
onKeyDownCapture: f !== "tab" || o ? (e) => {
let i = Bb(Mb(n.current));
if (!zb(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = VC(n.current);
+ let a = qC(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Ux(t), QC(t, { containingElement: YC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Ux(t), iw(t, { containingElement: tw(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (Ux(n.current), QC(n.current, { containingElement: YC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : YO(a), t && (Ux(t), QC(t, { containingElement: YC(n.current) })));
+ p === "cell" && l === "rtl" ? (Ux(n.current), iw(n.current, { containingElement: tw(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : rk(a), t && (Ux(t), iw(t, { containingElement: tw(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Ux(t), QC(t, { containingElement: YC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Ux(t), iw(t, { containingElement: tw(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (Ux(n.current), QC(n.current, { containingElement: YC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? YO(a) : a.firstChild(), t && (Ux(t), QC(t, { containingElement: YC(n.current) })));
+ p === "cell" && l === "ltr" ? (Ux(n.current), iw(n.current, { containingElement: tw(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? rk(a) : a.firstChild(), t && (Ux(t), iw(t, { containingElement: tw(n.current) })));
}
break;
}
@@ -28460,7 +28471,7 @@ function JO(e, t, n) {
if (zb(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = VC(n.current, { tabbable: !0 });
+ let t = qC(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -28488,7 +28499,7 @@ function JO(e, t, n) {
isPressed: v
};
}
-function YO(e) {
+function rk(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -28496,22 +28507,22 @@ function YO(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Roe(e, t, n) {
- let { gridCellProps: r, isPressed: i } = JO(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = dO(t, e.node.parentKey, a)), {
+function Moe(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = nk(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = yO(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function zoe(e) {
+function Noe(e) {
return e && e.__esModule ? e.default : e;
}
-function Boe(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = JO({
+function Poe(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = nk({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = pC({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = TC({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
@@ -28519,9 +28530,9 @@ function Boe(e, t, n) {
ref: n
}), { focusableProps: l } = cS({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !sx() && (u = d ? f : "none");
- let p = XS(zoe(qO), "@react-aria/table"), m;
+ let p = lC(Noe(tk), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && sx() && (m = `${m}, ${p.format(f)}`));
- let h = ew(m), g = t.collection.size === 0;
+ let h = ow(m), g = t.collection.size === 0;
return (0, P.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -28532,7 +28543,7 @@ function Boe(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: uO(t, r.key),
+ id: vO(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -28540,11 +28551,11 @@ function Boe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Voe(e) {
+function Foe(e) {
return e && e.__esModule ? e.default : e;
}
-function Hoe(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = XS(Voe(qO), "@react-aria/table"), d = Jx(), f = t.resizingColumn === r.key, p = (0, P.useRef)(f), m = (0, P.useRef)(null), h = (0, P.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, P.useState)(!1), { direction: y } = WS(), b = (0, P.useCallback)((e) => {
+function Ioe(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = lC(Foe(tk), "@react-aria/table"), d = Jx(), f = t.resizingColumn === r.key, p = (0, P.useRef)(f), m = (0, P.useRef)(null), h = (0, P.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, P.useState)(!1), { direction: y } = rC(), b = (0, P.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, P.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
@@ -28565,7 +28576,7 @@ function Hoe(e, t, n) {
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, P.useRef)(0), { moveProps: E } = ww({
+ } }), T = (0, P.useRef)(0), { moveProps: E } = Aw({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -28583,10 +28594,10 @@ function Hoe(e, t, n) {
k === Infinity && (k = 2 ** 53 - 1);
let A = Math.floor(t.getColumnWidth(r.key)), j = Px();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = ew(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = ow(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${uO(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${vO(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -28595,7 +28606,7 @@ function Hoe(e, t, n) {
...M
}, te = (0, P.useCallback)(() => {
n.current && Ux(n.current);
- }, [n]), ne = t.resizingColumn, N = (0, P.useRef)(null), re = IS(b);
+ }, [n]), ne = t.resizingColumn, N = (0, P.useRef)(null), re = YS(b);
(0, P.useEffect)(() => {
if (N.current !== ne && ne != null && ne === r.key) {
h.current = Bb() === n.current, re(r);
@@ -28614,7 +28625,7 @@ function Hoe(e, t, n) {
let ie = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: F } = pC({
+ }, { pressProps: F } = TC({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (te(), e.pointerType !== "virtual" && b(r)));
@@ -28622,7 +28633,7 @@ function Hoe(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ae } = Ew();
+ }), { visuallyHiddenProps: ae } = Mw();
return {
resizerProps: K(w, {
...E,
@@ -28641,13 +28652,13 @@ function Hoe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Uoe(e, t, n) {
+function Loe(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Woe(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = sO.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = zE({
+function Roe(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = hO.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = GE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -28667,10 +28678,10 @@ function Woe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Goe(e) {
+function zoe(e) {
return e && e.__esModule ? e.default : e;
}
-var XO = {
+var ik = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -28680,21 +28691,21 @@ var XO = {
rtl: "ArrowRight"
}
};
-function Koe(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Woe(e, t, n), { direction: s } = WS();
+function Boe(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Roe(e, t, n), { direction: s } = rC();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = XS(Goe(qO), "@react-aria/table"), u = RS({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = lC(zoe(tk), "@react-aria/table"), u = ZS({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": fO(t, r.key)
+ "aria-labelledby": bO(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = ZO(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = ZO(t.collection, a);
+ let n = ak(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = ak(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === XO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === XO.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === ik.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === ik.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -28716,38 +28727,38 @@ function Koe(e, t, n) {
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": fO(t, r.key)
+ "aria-labelledby": bO(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function ZO(e, t) {
+function ak(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
// node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function qoe() {
+function Voe() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function QO() {
- return qoe();
+function ok() {
+ return Voe();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Joe(e) {
+function Hoe(e) {
return e && e.__esModule ? e.default : e;
}
-function Yoe(e, t) {
- let { key: n } = e, { checkboxProps: r } = GE(e, t);
+function Uoe(e, t) {
+ let { key: n } = e, { checkboxProps: r } = ZE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${fO(t, n)}`
+ "aria-labelledby": `${r.id} ${bO(t, n)}`
} };
}
-function Xoe(e) {
+function Woe(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": XS(Joe(qO), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": lC(Hoe(tk), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -28755,20 +28766,20 @@ function Xoe(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var $O = /* @__PURE__ */ new WeakMap();
-function ek(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${$O.get(e)}-${n}-${t}`) : "";
+var sk = /* @__PURE__ */ new WeakMap();
+function ck(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${sk.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Zoe(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = zE({
+function Goe(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = GE({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = ek(t, r, "tab"), m = ek(t, r, "tabpanel"), { tabIndex: h } = d, g = QS(u?.props, { labelable: !0 });
+ }), p = ck(t, r, "tab"), m = ck(t, r, "tabpanel"), { tabIndex: h } = d, g = dC(u?.props, { labelable: !0 });
delete g.id;
let _ = fx(u?.props), { focusableProps: v } = cS({
...u?.props,
@@ -28789,7 +28800,7 @@ function Zoe(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Qoe = class {
+var Koe = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -28832,11 +28843,11 @@ var Qoe = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function $oe(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = WS(), { collectionProps: l } = OT({
+function qoe(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = rC(), { collectionProps: l } = PT({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, P.useMemo)(() => new Qoe(a, c, r, s), [
+ keyboardDelegate: (0, P.useMemo)(() => new Koe(a, c, r, s), [
a,
s,
r,
@@ -28847,8 +28858,8 @@ function $oe(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Jx();
- return $O.set(t, u), { tabListProps: {
- ...K(l, RS({
+ return sk.set(t, u), { tabListProps: {
+ ...K(l, ZS({
...e,
id: u
})),
@@ -28858,12 +28869,12 @@ function $oe(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function ese(e, t, n) {
- let r = IE(n) ? void 0 : 0, i = ek(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(RS({
+function Joe(e, t, n) {
+ let r = HE(n) ? void 0 : 0, i = ck(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(ZS({
...e,
id: i,
- "aria-labelledby": ek(t, t?.selectedKey, "tab")
+ "aria-labelledby": ck(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -28872,265 +28883,265 @@ function ese(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function tse(e, t, n) {
- let { gridProps: r } = Kae(e, t, n);
+function Yoe(e, t, n) {
+ let { gridProps: r } = Hae(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var tk = {};
-tk = {
+var lk = {};
+lk = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var nk = {};
-nk = {
+var uk = {};
+uk = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var rk = {};
-rk = {
+var dk = {};
+dk = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var ik = {};
-ik = {
+var fk = {};
+fk = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var ak = {};
-ak = {
+var pk = {};
+pk = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var ok = {};
-ok = {
+var mk = {};
+mk = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var sk = {};
-sk = {
+var hk = {};
+hk = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var ck = {};
-ck = {
+var gk = {};
+gk = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var lk = {};
-lk = {
+var _k = {};
+_k = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var uk = {};
-uk = {
+var vk = {};
+vk = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var dk = {};
-dk = {
+var yk = {};
+yk = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var fk = {};
-fk = {
+var bk = {};
+bk = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var pk = {};
-pk = {
+var xk = {};
+xk = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var mk = {};
-mk = {
+var Sk = {};
+Sk = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var hk = {};
-hk = {
+var Ck = {};
+Ck = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var gk = {};
-gk = {
+var wk = {};
+wk = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var _k = {};
-_k = {
+var Tk = {};
+Tk = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var vk = {};
-vk = {
+var Ek = {};
+Ek = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var yk = {};
-yk = {
+var Dk = {};
+Dk = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var bk = {};
-bk = {
+var Ok = {};
+Ok = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var xk = {};
-xk = {
+var kk = {};
+kk = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var Sk = {};
-Sk = {
+var Ak = {};
+Ak = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var Ck = {};
-Ck = {
+var jk = {};
+jk = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var wk = {};
-wk = {
+var Mk = {};
+Mk = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var Tk = {};
-Tk = {
+var Nk = {};
+Nk = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var Ek = {};
-Ek = {
+var Pk = {};
+Pk = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var Dk = {};
-Dk = {
+var Fk = {};
+Fk = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var Ok = {};
-Ok = {
+var Ik = {};
+Ik = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var kk = {};
-kk = {
+var Lk = {};
+Lk = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var Ak = {};
-Ak = {
+var Rk = {};
+Rk = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var jk = {};
-jk = {
+var zk = {};
+zk = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var Mk = {};
-Mk = {
+var Bk = {};
+Bk = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var Nk = {};
-Nk = {
+var Vk = {};
+Vk = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var Pk = {};
-Pk = {
+var Hk = {};
+Hk = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var Fk = {};
-Fk = {
- "ar-AE": tk,
- "bg-BG": nk,
- "cs-CZ": rk,
- "da-DK": ik,
- "de-DE": ak,
- "el-GR": ok,
- "en-US": sk,
- "es-ES": ck,
- "et-EE": lk,
- "fi-FI": uk,
- "fr-FR": dk,
- "he-IL": fk,
- "hr-HR": pk,
- "hu-HU": mk,
- "it-IT": hk,
- "ja-JP": gk,
- "ko-KR": _k,
- "lt-LT": vk,
- "lv-LV": yk,
- "nb-NO": bk,
- "nl-NL": xk,
- "pl-PL": Sk,
- "pt-BR": Ck,
- "pt-PT": wk,
- "ro-RO": Tk,
- "ru-RU": Ek,
- "sk-SK": Dk,
- "sl-SI": Ok,
- "sr-SP": kk,
- "sv-SE": Ak,
- "tr-TR": jk,
- "uk-UA": Mk,
- "zh-CN": Nk,
- "zh-TW": Pk
+var Uk = {};
+Uk = {
+ "ar-AE": lk,
+ "bg-BG": uk,
+ "cs-CZ": dk,
+ "da-DK": fk,
+ "de-DE": pk,
+ "el-GR": mk,
+ "en-US": hk,
+ "es-ES": gk,
+ "et-EE": _k,
+ "fi-FI": vk,
+ "fr-FR": yk,
+ "he-IL": bk,
+ "hr-HR": xk,
+ "hu-HU": Sk,
+ "it-IT": Ck,
+ "ja-JP": wk,
+ "ko-KR": Tk,
+ "lt-LT": Ek,
+ "lv-LV": Dk,
+ "nb-NO": Ok,
+ "nl-NL": kk,
+ "pl-PL": Ak,
+ "pt-BR": jk,
+ "pt-PT": Mk,
+ "ro-RO": Nk,
+ "ru-RU": Pk,
+ "sk-SK": Fk,
+ "sl-SI": Ik,
+ "sr-SP": Lk,
+ "sv-SE": Rk,
+ "tr-TR": zk,
+ "uk-UA": Bk,
+ "zh-CN": Vk,
+ "zh-TW": Hk
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function nse(e) {
+function Xoe(e) {
return e && e.__esModule ? e.default : e;
}
-function Ik(e, t, n) {
- let { node: r } = e, i = qae(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = XS(nse(Fk), "@react-aria/tree"), s = {
+function Wk(e, t, n) {
+ let { node: r } = e, i = Uae(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = lC(Xoe(Uk), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...RS({
+ ...ZS({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -29141,15 +29152,15 @@ function Ik(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var Lk = "(prefers-reduced-motion: reduce)", rse = () => matchMedia(Lk).matches, ise = (e) => {
- let t = matchMedia(Lk);
+var Gk = "(prefers-reduced-motion: reduce)", Zoe = () => matchMedia(Gk).matches, Qoe = (e) => {
+ let t = matchMedia(Gk);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, Rk = /* @__PURE__ */ new Map(), zk = () => {
+}, Kk = /* @__PURE__ */ new Map(), qk = () => {
let e = document.documentElement;
- Rk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Rk.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ Kk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Kk.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function ase({ children: e, count: t, label: n }) {
- let r = (0, P.useRef)(null), i = Dy(), a = (0, P.useSyncExternalStore)(ise, rse, () => !1), { isFocusVisible: o } = Fx(), s = a || o, c = {
+function $oe({ children: e, count: t, label: n }) {
+ let r = (0, P.useRef)(null), i = ky(), a = (0, P.useSyncExternalStore)(Qoe, Zoe, () => !1), { isFocusVisible: o } = Fx(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -29157,10 +29168,10 @@ function ase({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- Rk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), zk();
+ Kk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), qk();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), Rk.delete(e), zk();
+ n.disconnect(), window.removeEventListener("resize", t), Kk.delete(e), qk();
};
}, [i]), /* @__PURE__ */ (0, F.jsxs)(xb.div, {
ref: r,
@@ -29195,17 +29206,17 @@ function ase({ children: e, count: t, label: n }) {
}), e]
});
}
-function Bk({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, F.jsx)(Ay, { children: e ? /* @__PURE__ */ (0, F.jsx)(ase, { ...t }, "selection") : null });
+function Jk({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, F.jsx)(Ny, { children: e ? /* @__PURE__ */ (0, F.jsx)($oe, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var Vk = {
+var Yk = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function ose(e, t = !1) {
+function ese(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -29221,7 +29232,7 @@ function ose(e, t = !1) {
glyph: "trash",
danger: !0
},
- Vk
+ Yk
];
case "junk": return [
t ? {
@@ -29242,7 +29253,7 @@ function ose(e, t = !1) {
glyph: "trash",
danger: !0
},
- Vk
+ Yk
];
case "follow": return [
{
@@ -29263,7 +29274,7 @@ function ose(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Vk
+ Yk
];
default: return [
{
@@ -29297,38 +29308,38 @@ function ose(e, t = !1) {
glyph: "trash",
danger: !0
},
- Vk
+ Yk
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var Hk = null, Uk = {
+var Xk = null, Zk = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Wk = /* @__PURE__ */ new Set();
-function sse(e) {
- return Wk.add(e), () => {
- Wk.delete(e);
+}, Qk = /* @__PURE__ */ new Set();
+function tse(e) {
+ return Qk.add(e), () => {
+ Qk.delete(e);
};
}
-function cse() {
- for (let e of [...Wk]) e();
+function nse() {
+ for (let e of [...Qk]) e();
}
-var Gk = { render(e) {
- Uk = e, (0, Lt.flushSync)(cse);
+var rse = { render(e) {
+ Zk = e, (0, Lt.flushSync)(nse);
} };
-function lse(e) {
- return Hk = e, Gk;
+function ise(e) {
+ return Xk = e, rse;
}
-function use() {
- let e = (0, P.useSyncExternalStore)(sse, () => Uk);
- return Hk ? /* @__PURE__ */ (0, F.jsx)(dse, {
- host: Hk,
+function ase() {
+ let e = (0, P.useSyncExternalStore)(tse, () => Zk);
+ return Xk ? /* @__PURE__ */ (0, F.jsx)(ose, {
+ host: Xk,
props: e
}) : null;
}
-function dse({ host: e, props: t }) {
+function ose({ host: e, props: t }) {
let n = t.count > 0;
return (0, P.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -29338,11 +29349,11 @@ function dse({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, F.jsx)(Bk, {
+ children: /* @__PURE__ */ (0, F.jsx)(Jk, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: ose(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, F.jsxs)("button", {
+ children: ese(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -29358,11 +29369,11 @@ function dse({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Kk(e, t, n, r) {
+function $k(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function fse(e, t) {
+function sse(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -29381,7 +29392,7 @@ function fse(e, t) {
};
}
// src/sort-preferences.ts
-var qk = [
+var eA = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -29390,7 +29401,7 @@ var qk = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Jk = ["release", "发行时间"], Yk = [...qk, Jk].map(([e]) => e), Xk = {
+], tA = ["release", "发行时间"], nA = [...eA, tA].map(([e]) => e), rA = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -29399,43 +29410,43 @@ var qk = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Zk = {
+}, iA = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Qk = (e, t, n = Xk) => (n[e] || [])[+(t === "asc")] || "", $k = (e, t = Xk) => t[e] ? "desc" : "";
-function eA(e, t, n, r = Xk) {
+}, aA = (e, t, n = rA) => (n[e] || [])[+(t === "asc")] || "", oA = (e, t = rA) => t[e] ? "desc" : "";
+function sA(e, t, n, r = rA) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: $k(e, r)
+ dir: oA(e, r)
};
}
-function tA(e, t, n) {
+function cA(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function nA(e, t, n, r, i = n) {
- let a = e ? Zk[e] : void 0, o = a ? a[0] : e, s = o && Yk.includes(o) ? o : i;
- return Xk[s] ? {
+function lA(e, t, n, r, i = n) {
+ let a = e ? iA[e] : void 0, o = a ? a[0] : e, s = o && nA.includes(o) ? o : i;
+ return rA[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : tA(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : cA(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var rA = [
+var uA = [
"spot1",
"spot2",
"spot3"
-], pse = [
+], cse = [
"光晕一",
"光晕二",
"光晕三"
-], iA = "native", aA = [
+], dA = "native", fA = [
[
"ash",
"灰雾",
@@ -29741,7 +29752,7 @@ var rA = [
"rose"
],
[
- iA,
+ dA,
"玻璃原色",
{
spot1: {
@@ -29759,7 +29770,7 @@ var rA = [
},
"blue"
]
-], oA = (e) => e === iA, sA = [...aA.map(([e, t]) => [e, t]), ["custom", "自定义"]], mse = (e) => (sA.find(([t]) => t === e) || sA[0])[1], cA = (e) => structuredClone((aA.find(([t]) => t === e) || aA[0])[2]), lA = [
+], pA = (e) => e === dA, mA = [...fA.map(([e, t]) => [e, t]), ["custom", "自定义"]], lse = (e) => (mA.find(([t]) => t === e) || mA[0])[1], hA = (e) => structuredClone((fA.find(([t]) => t === e) || fA[0])[2]), gA = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -29772,7 +29783,7 @@ var rA = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], uA = "blue", dA = (e) => lA.some(([t]) => t === e) ? e : uA, hse = (e) => (aA.find(([t]) => t === e) || [])[3] || "blue", gse = [
+], _A = "blue", vA = (e) => gA.some(([t]) => t === e) ? e : _A, use = (e) => (fA.find(([t]) => t === e) || [])[3] || "blue", dse = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -29782,7 +29793,7 @@ var rA = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], _se = [
+], fse = [
[
"gray",
"云灰",
@@ -30178,11 +30189,11 @@ var rA = [
"霁蓝",
"#6686b8"
]
-], fA = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, pA = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, vse = (e, t) => `rgba(${[
+], yA = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, bA = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, pse = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, yse = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, mse = {
strength: [
0,
100,
@@ -30208,7 +30219,7 @@ var rA = [
100,
50
]
-}, mA = {
+}, xA = {
on: !0,
preset: "ash",
strength: 100,
@@ -30216,56 +30227,56 @@ var rA = [
speed: 100,
soften: 50,
size: 50,
- ...cA("ash")
+ ...hA("ash")
};
-function hA(e) {
- let t = e && typeof e == "object" ? e : {}, n = sA.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = cA(r === "custom" ? "ash" : r), a = {
+function SA(e) {
+ let t = e && typeof e == "object" ? e : {}, n = mA.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = hA(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(yse)) a[e] = fA(+t[e], n, r, i);
- for (let e of rA) {
+ for (let [e, [n, r, i]] of Object.entries(mse)) a[e] = yA(+t[e], n, r, i);
+ for (let e of uA) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: pA(r.color, o.color),
- alpha: fA(+r.alpha, 0, 100, o.alpha)
+ color: bA(r.color, o.color),
+ alpha: yA(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var gA = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, _A = /* @__PURE__ */ new WeakMap();
-function bse(e, t) {
+var hse = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, CA = /* @__PURE__ */ new WeakMap();
+function gse(e, t) {
if (!e) return;
- let n = _A.get(e);
- n || (n = /* @__PURE__ */ new Map(), _A.set(e, n));
- let r = t.on && !oA(t.preset), i = (t, r) => {
+ let n = CA.get(e);
+ n || (n = /* @__PURE__ */ new Map(), CA.set(e, n));
+ let r = t.on && !pA(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), rA.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), uA.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, vse(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, pse(r.color, r.alpha));
});
}
-function xse(e, t) {
+function _se(e, t) {
if (!e) return;
- let n = !t.on || oA(t.preset);
+ let n = !t.on || pA(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
// src/appearance/settings.ts
-var Sse = "peach.settings.v1", Cse = [
+var vse = "peach.settings.v1", yse = [
"system",
"light",
"dark"
-], vA = [
+], wA = [
0,
7,
30,
90
-], wse = [
+], bse = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], yA = {
+], TA = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -30286,56 +30297,56 @@ var Sse = "peach.settings.v1", Cse = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...eu],
- homeGlow: mA,
- accent: uA,
+ homeGlow: xA,
+ accent: _A,
performerNameLanguage: "zh-CN"
-}, bA = (e, t, n) => t.includes(e) ? e : n;
-function Tse(e) {
+}, EA = (e, t, n) => t.includes(e) ? e : n;
+function xse(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...yA,
+ ...TA,
...t
};
- n.followInitialDays = vA.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = wA.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = Zk[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Kk(+n.batchSize, 1, 200, 60), n.defaultSort = bA(n.defaultSort, Yk, "seed"), n.hoverDelaySeconds = Kk(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Kk(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Kk(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Kk(+n.relatedLimit, 0, 60, 20), n.feedLimit = Kk(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = bA(n.theme, Cse, "system"), n.performerNameLanguage = bA(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = hA(n.homeGlow), n.accent = dA(n.accent), n.sidebarOrder = iu(n.sidebarOrder), {
+ let a = iA[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = $k(+n.batchSize, 1, 200, 60), n.defaultSort = EA(n.defaultSort, nA, "seed"), n.hoverDelaySeconds = $k(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = $k(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = $k(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = $k(+n.relatedLimit, 0, 60, 20), n.feedLimit = $k(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = EA(n.theme, yse, "system"), n.performerNameLanguage = EA(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = SA(n.homeGlow), n.accent = vA(n.accent), n.sidebarOrder = iu(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Ese(e) {
+function Sse(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Tse(t);
+ return xse(t);
}
-var xA = null;
-function SA() {
- if (xA) return xA;
- let { settings: e, migrated: t } = Ese(localStorage);
- return xA = fse(Sse, e), t && xA.save(), xA;
+var DA = null;
+function OA() {
+ if (DA) return DA;
+ let { settings: e, migrated: t } = Sse(localStorage);
+ return DA = sse(vse, e), t && DA.save(), DA;
}
-function CA(e, t, n = SA()) {
+function kA(e, t, n = OA()) {
let r = n.value, i = e?.performerNameLanguage;
(i === "zh-CN" || i === "ja") && i !== r.performerNameLanguage && (r.performerNameLanguage = i, n.save(), t("performerNameLanguage"));
let a = e && e.followInitialDays;
- vA.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of wse) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ wA.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of bse) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Kk(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== yA.searchHistoryLimit && Dse(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = $k(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== TA.searchHistoryLimit && Cse(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());
}
-function Dse(e = SA()) {
+function Cse(e = OA()) {
return wn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var Ose = [
+var wse = [
[
"system",
"跟随系统",
@@ -30351,31 +30362,31 @@ var Ose = [
"深色",
"moon"
]
-], kse = null, wA = () => kse ??= matchMedia("(prefers-color-scheme: dark)"), TA = null;
-function Ase() {
- return TA || (TA = document.createElement("style"), TA.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), TA.isConnected || document.head.append(TA), () => {
+], Tse = null, AA = () => Tse ??= matchMedia("(prefers-color-scheme: dark)"), jA = null;
+function Ese() {
+ return jA || (jA = document.createElement("style"), jA.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), jA.isConnected || document.head.append(jA), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), TA?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), jA?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function EA(e = SA().value.theme) {
- let t = Ase(), n = document.documentElement;
+function MA(e = OA().value.theme) {
+ let t = Ese(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && wA().matches;
+ let r = e === "dark" || e === "system" && AA().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var DA = !1;
-function jse() {
- DA || (DA = !0, wA().addEventListener("change", () => {
- SA().value.theme === "system" && EA();
+var NA = !1;
+function Dse() {
+ NA || (NA = !0, AA().addEventListener("change", () => {
+ OA().value.theme === "system" && MA();
}));
}
// src/appearance/layout.ts
-var OA = [[
+var PA = [[
"big",
"大图",
"maximize"
@@ -30383,7 +30394,7 @@ var OA = [[
"small",
"小图",
"layout-grid"
-]], kA = [[
+]], FA = [[
"big",
"大图",
"maximize"
@@ -30391,7 +30402,7 @@ var OA = [[
"small",
"小图",
"layout-grid"
-]], AA = [[
+]], IA = [[
"fixed",
"固定比例",
"layout-grid"
@@ -30399,127 +30410,127 @@ var OA = [[
"masonry",
"瀑布流",
"columns-2"
-]], jA = .75, MA = () => SA().value, NA = (e = MA()) => Za(e.javLayout), Mse = (e = MA()) => Za(e.homeLayout), PA = (e, t = MA()) => e ? Mse(t) : NA(t), FA = kA.map(([e]) => e), IA = AA.map(([e]) => e), LA = (e = MA()) => bA(e.photoSize, FA, "small"), RA = (e = MA()) => bA(e.photoLayout, IA, "masonry"), zA = null;
-function BA(e, t = MA()) {
+]], LA = .75, RA = () => OA().value, zA = (e = RA()) => Za(e.javLayout), Ose = (e = RA()) => Za(e.homeLayout), BA = (e, t = RA()) => e ? Ose(t) : zA(t), VA = FA.map(([e]) => e), HA = IA.map(([e]) => e), UA = (e = RA()) => EA(e.photoSize, VA, "small"), WA = (e = RA()) => EA(e.photoLayout, HA, "masonry"), GA = null;
+function KA(e, t = RA()) {
let n = {
active: e.active,
- size: PA(e.home, t),
+ size: BA(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = zA;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (zA = n), zA;
+ }, r = GA;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (GA = n), GA;
}
-function VA(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? jA : 16 / 9;
+function qA(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? LA : 16 / 9;
}
-function Nse(e, t = SA()) {
+function kse(e, t = OA()) {
t.value.homeLayout = Za(e), t.save();
}
-function HA(e, t = SA()) {
+function JA(e, t = OA()) {
t.value.javLayout = Za(e), t.save();
}
-function Pse(e, t = SA()) {
+function Ase(e, t = OA()) {
t.value.homeLayout = t.value.javLayout = Za(e), t.save();
}
-function Fse(e, t = SA()) {
- t.value.photoSize = bA(e, FA, "small"), t.save();
+function jse(e, t = OA()) {
+ t.value.photoSize = EA(e, VA, "small"), t.save();
}
-function UA(e, t = SA()) {
- t.value.photoLayout = bA(e, IA, "masonry"), t.save();
+function YA(e, t = OA()) {
+ t.value.photoLayout = EA(e, HA, "masonry"), t.save();
}
// src/appearance/density.ts
-var WA = "density", GA = {
+var XA = "density", ZA = {
big: "336px",
dense: "168px"
-}, KA = () => localStorage.getItem(WA) === "dense" ? "dense" : "big";
-function qA(e, t) {
- let [n, r] = kA;
+}, QA = () => localStorage.getItem(XA) === "dense" ? "dense" : "big";
+function $A(e, t) {
+ let [n, r] = FA;
if (e.querySelector("[data-icon-swap]")) Ks(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Gs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- JA(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ ej(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function JA(e, t, n) {
+function ej(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var YA = () => document.querySelector("#density");
-function XA(e = KA()) {
+var tj = () => document.querySelector("#density");
+function nj(e = QA()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== GA[e] && t.style.setProperty("--tile", GA[e]), JA(document.body, "data-density", e);
- let n = YA();
- n && (JA(n, "aria-pressed", String(e === "dense")), JA(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), qA(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== ZA[e] && t.style.setProperty("--tile", ZA[e]), ej(document.body, "data-density", e);
+ let n = tj();
+ n && (ej(n, "aria-pressed", String(e === "dense")), ej(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), $A(n, e === "big" ? "big" : "small"));
}
-function ZA() {
- let e = KA() === "big" ? "dense" : "big";
- localStorage.setItem(WA, e), XA(e);
+function Mse() {
+ let e = QA() === "big" ? "dense" : "big";
+ localStorage.setItem(XA, e), nj(e);
}
-function QA(e) {
- let t = YA();
- t && (JA(t, "aria-pressed", String(e === "small")), JA(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), qA(t, e));
+function Nse(e) {
+ let t = tj();
+ t && (ej(t, "aria-pressed", String(e === "small")), ej(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), $A(t, e));
}
// src/appearance/glow.ts
-function $A(e = SA()) {
- bse(document.querySelector(".glowlayer"), e.value.homeGlow);
+function rj(e = OA()) {
+ gse(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var ej = 0;
-function tj(e = SA()) {
- ej ||= requestAnimationFrame(() => {
- ej = 0, $A(e);
+var ij = 0;
+function aj(e = OA()) {
+ ij ||= requestAnimationFrame(() => {
+ ij = 0, rj(e);
});
}
-function nj(e = SA()) {
- xse(document.documentElement, e.value.homeGlow);
+function oj(e = OA()) {
+ _se(document.documentElement, e.value.homeGlow);
}
-function rj(e = SA()) {
+function sj(e = OA()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var ij = (e, t, n) => ({
+var cj = (e, t, n) => ({
key: e,
label: t,
- native: oA(e),
- fill: oA(e) ? "" : gA(n)
+ native: pA(e),
+ fill: pA(e) ? "" : hse(n)
});
-function Ise(e) {
- let t = aA.map(([e, t, n]) => ij(e, t, rA.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(ij("custom", "自定义", rA.map((t) => e[t].color))), t;
+function Pse(e) {
+ let t = fA.map(([e, t, n]) => cj(e, t, uA.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(cj("custom", "自定义", uA.map((t) => e[t].color))), t;
}
-var Lse = lA;
-function Rse(e, t = SA()) {
+var Fse = gA;
+function Ise(e, t = OA()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, cA(e)), t.value.accent = hse(e), t.save(), tj(t), nj(t), rj(t);
+ n.preset = e, Object.assign(n, hA(e)), t.value.accent = use(e), t.save(), aj(t), oj(t), sj(t);
}
-function zse(e, t = SA()) {
- t.value.accent = dA(e), t.save(), rj(t);
+function Lse(e, t = OA()) {
+ t.value.accent = vA(e), t.save(), sj(t);
}
-function Bse(e = SA()) {
+function Rse(e = OA()) {
let t = e.value.homeGlow;
- t.preset = mA.preset, Object.assign(t, cA(t.preset)), e.value.accent = uA, e.save(), tj(e), nj(e), rj(e);
+ t.preset = xA.preset, Object.assign(t, hA(t.preset)), e.value.accent = _A, e.save(), aj(e), oj(e), sj(e);
}
-function aj(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && oA(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function lj(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && pA(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Vse(e, t = SA()) {
- return aj(e, t.value.homeGlow), t.subscribe(() => aj(e, t.value.homeGlow));
+function zse(e, t = OA()) {
+ return lj(e, t.value.homeGlow), t.subscribe(() => lj(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function oj({ store: e, label: t, hidden: n }) {
+function uj({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Ise(r).map((t) => /* @__PURE__ */ (0, F.jsx)("button", {
+ children: Pse(r).map((t) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Rse(t.key, e),
+ onClick: () => Ise(t.key, e),
children: /* @__PURE__ */ (0, F.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -30530,14 +30541,14 @@ function oj({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var sj = null;
-function Hse(e) {
- sj = e;
+var dj = null;
+function Bse(e) {
+ dj = e;
}
-function Use() {
- return sj ? /* @__PURE__ */ (0, F.jsx)(Wse, { host: sj }) : null;
+function Vse() {
+ return dj ? /* @__PURE__ */ (0, F.jsx)(Hse, { host: dj }) : null;
}
-function Wse({ host: e }) {
+function Hse({ host: e }) {
let { store: t } = e;
(0, P.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -30549,11 +30560,11 @@ function Wse({ host: e }) {
children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Bse(t),
+ onClick: () => Rse(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, F.jsx)(oj, {
+ /* @__PURE__ */ (0, F.jsx)(uj, {
store: t,
label: "光晕",
hidden: !n.on
@@ -30567,14 +30578,14 @@ function Wse({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Lse.map(([e, n]) => /* @__PURE__ */ (0, F.jsx)("button", {
+ children: Fse.map(([e, n]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => zse(e, t),
+ onClick: () => Lse(e, t),
children: /* @__PURE__ */ (0, F.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -30592,31 +30603,31 @@ function Wse({ host: e }) {
] });
}
// src/player/host.ts
-var cj = null;
-function Gse(e) {
- cj = e;
+var fj = null;
+function Use(e) {
+ fj = e;
}
-function lj() {
- if (!cj) throw Error("播放器还没有接上宿主(configurePlayer)");
- return cj;
+function pj() {
+ if (!fj) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return fj;
}
// src/player/menu.ts
-var uj = null;
-function Kse(e) {
- uj = e;
+var mj = null;
+function Wse(e) {
+ mj = e;
}
-function qse() {
+function Gse() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var dj = null, fj = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function pj() {
+var hj = null, gj = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function _j() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && cs(e, () => {
e.innerHTML = "";
- }), dj &&= (dj(), null);
+ }), hj &&= (hj(), null);
}
-async function Jse(e) {
+async function Kse(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -30629,8 +30640,8 @@ async function Jse(e) {
return t.remove(), n;
}
}
-function Yse(e) {
- let t = !!uj?.inMiniplayer(e), n = e.peachItem, r = uj?.kind(e) ?? "item", i = (t) => {
+function qse(e) {
+ let t = !!mj?.inMiniplayer(e), n = e.peachItem, r = mj?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -30646,7 +30657,7 @@ function Yse(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Jse(i(e)).then((e) => lj().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Kse(i(e)).then((e) => pj().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -30658,11 +30669,11 @@ function Yse(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => uj?.expand()
+ run: () => mj?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => uj?.toMiniplayer()
+ run: () => mj?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -30685,29 +30696,29 @@ function Yse(e) {
run: () => s.click()
}), o;
}
-function Xse(e, t, n) {
- let r = qse();
- pj();
- let i = lj().stage();
+function Jse(e, t, n) {
+ let r = Gse();
+ _j();
+ let i = pj().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Yse(e);
+ let a = qse(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${fj(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? fj(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${gj(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? gj(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), ss(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- pj(), n?.run();
+ _j(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || pj();
+ r.contains(e.target) || _j();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), pj();
+ e.preventDefault(), e.stopPropagation(), _j();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -30715,49 +30726,49 @@ function Xse(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- us(t, e.el()) && pj();
+ us(t, e.el()) && _j();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), dj = () => {
+ }, 0), hj = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function Zse(e) {
+function Yse(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Xse(e, t.clientX, t.clientY));
- }), e.on("dispose", pj);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Jse(e, t.clientX, t.clientY));
+ }), e.on("dispose", _j);
}
// src/player/registry.ts
-var mj = null, hj = () => mj;
-function gj(e) {
- mj = e;
+var vj = null, yj = () => vj;
+function bj(e) {
+ vj = e;
}
-function _j(e) {
+function xj(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function vj(e) {
+function Sj(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function Qse(e) {
+function Xse(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var yj = 3e3;
-function bj(e, t) {
+var Cj = 3e3;
+function wj(e, t) {
let n = Number(e) || 0, r = Kn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function $se(e) {
+function Zse(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -30772,10 +30783,10 @@ function $se(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Qse(e), s = e.currentTime || 0;
+ let a = performance.now(), o = Xse(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > yj * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > Cj * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -30784,55 +30795,55 @@ function $se(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > yj;) t.shift();
+ }); t.length > 2 && a - t[0].at > Cj;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var xj = 24;
-function Sj(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > xj && e.splice(0, e.length - xj);
+var Tj = 24;
+function Ej(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > Tj && e.splice(0, e.length - Tj);
}
-var Cj = "peach-player-panel";
-function wj(e, t, n, r) {
- let i = [...Array(Math.max(0, xj - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var Dj = "peach-player-panel";
+function Oj(e, t, n, r) {
+ let i = [...Array(Math.max(0, Tj - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;
}
-function ece() {
+function Qse() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function Tj(e, t = "") {
+function kj(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function Ej(e, t = "") {
- let n = Tj(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function Aj(e, t = "") {
+ let n = kj(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function Dj(e, t, n = "", r = null) {
+function jj(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : Ej(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : Aj(t, n);
}
-function Oj(e) {
+function Mj(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function tce(e, t) {
- return e > 0 ? Oj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : Oj(0);
+function $se(e, t) {
+ return e > 0 ? Mj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : Mj(0);
}
// src/player/subtitle-style.ts
-var kj = {
+var Nj = {
font: {
label: "字体",
values: [
@@ -30935,7 +30946,7 @@ var kj = {
["shadow", "阴影"]
]
}
-}, Aj = {
+}, Pj = {
font: "sans",
size: "100",
color: "white",
@@ -30945,7 +30956,7 @@ var kj = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, jj = "peach.caption-style.v1", nce = {
+}, Fj = "peach.caption-style.v1", ece = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -30954,7 +30965,7 @@ var kj = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, rce = {
+}, tce = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -30962,28 +30973,28 @@ var kj = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, ice = {
+}, nce = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function ace() {
+function rce() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(jj) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(Fj) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(Aj).map(([t, n]) => [t, kj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(Pj).map(([t, n]) => [t, Nj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function Mj(e, t, n, r) {
- let i = ace(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function Ij(e, t, n, r) {
+ let i = rce(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
s.className = "vjs-peach-caption-window", o.append(s), e.querySelector("media-container").append(o), e.dataset.peachCaptions = "";
let c = () => {
- let t = (e, t) => `rgba(${nce[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", rce[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", ice[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${ece[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", tce[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", nce[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -30999,15 +31010,15 @@ function Mj(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...Aj,
+ ...Pj,
...e.caption_style
};
- for (let e of Object.keys(Aj)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(Pj)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(jj);
+ e = !!localStorage.getItem(Fj);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -31015,18 +31026,18 @@ function Mj(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- kj[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ Nj[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(Aj).forEach((e) => a.add(e)), i = { ...Aj }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(Pj).forEach((e) => a.add(e)), i = { ...Pj }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var Nj = /* @__PURE__ */ new Map(), Pj = /* @__PURE__ */ new WeakMap(), oce = class {
+var Lj = /* @__PURE__ */ new Map(), Rj = /* @__PURE__ */ new WeakMap(), ice = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -31054,7 +31065,7 @@ var Nj = /* @__PURE__ */ new Map(), Pj = /* @__PURE__ */ new WeakMap(), oce = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await Nj.get(this.url)?.catch(() => {});
+ await Lj.get(this.url)?.catch(() => {});
let e = await wn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -31066,7 +31077,7 @@ var Nj = /* @__PURE__ */ new Map(), Pj = /* @__PURE__ */ new WeakMap(), oce = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (Nj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (Lj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -31093,8 +31104,8 @@ var Nj = /* @__PURE__ */ new Map(), Pj = /* @__PURE__ */ new WeakMap(), oce = cl
this.changed();
}
});
- return Nj.set(this.url, t), t.finally(() => {
- Nj.get(this.url) === t && Nj.delete(this.url);
+ return Lj.set(this.url, t), t.finally(() => {
+ Lj.get(this.url) === t && Lj.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -31103,12 +31114,12 @@ var Nj = /* @__PURE__ */ new Map(), Pj = /* @__PURE__ */ new WeakMap(), oce = cl
} catch {}
}
};
-function Fj(e) {
- let t = Pj.get(e);
- return t || (t = new oce(e), Pj.set(e, t)), t;
+function zj(e) {
+ let t = Rj.get(e);
+ return t || (t = new ice(e), Rj.set(e, t)), t;
}
-function Ij(e, t) {
- let n = Fj(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function Bj(e, t) {
+ let n = zj(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -31121,7 +31132,7 @@ function Ij(e, t) {
};
}
// src/player/subtitle-memory.ts
-var Lj = class {
+var Vj = class {
player;
video;
changed;
@@ -31132,7 +31143,7 @@ var Lj = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = Fj(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = zj(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -31229,7 +31240,7 @@ var Lj = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, Rj = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", sce = class {
+}, Hj = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", ace = class {
player;
video;
panels;
@@ -31248,7 +31259,7 @@ var Lj = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = Mj(e.el(), t, this.cleanup.signal, Fj(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = Rj(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = Ij(e.el(), t, this.cleanup.signal, zj(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = Hj(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -31258,7 +31269,7 @@ var Lj = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new Lj(e, t, () => {
+ }), this.session = new Vj(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -31306,7 +31317,7 @@ var Lj = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(kj).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(Nj).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -31318,7 +31329,7 @@ var Lj = class {
}
styleOptions(e) {
this.page = "style";
- let t = kj[e];
+ let t = Nj[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -31434,7 +31445,7 @@ var Lj = class {
}
};
// src/player/timeline.ts
-function cce(e, t) {
+function oce(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -31446,8 +31457,8 @@ function cce(e, t) {
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
// src/player/rotation.ts
-function zj(e, t) {
- let n = 0, r = !1, i = Fj(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function Uj(e, t) {
+ let n = 0, r = !1, i = zj(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -31475,7 +31486,7 @@ function zj(e, t) {
};
}
// src/player/pip.ts
-function lce(e, t, n, r) {
+function sce(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -31507,7 +31518,7 @@ function lce(e, t, n, r) {
});
}
// src/player/controls.ts
-function Bj(e, t, n = "") {
+function Wj(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -31518,27 +31529,27 @@ function Bj(e, t, n = "") {
};
return o(), o;
}
-function Vj(e, t) {
+function Gj(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function uce(e, t = !0) {
- let n = lj(), r = n.settings();
+function cce(e, t = !0) {
+ let n = pj(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var Hj = /* @__PURE__ */ new WeakMap();
-function Uj(e) {
+var Kj = /* @__PURE__ */ new WeakMap();
+function qj(e) {
if (!e) return;
- let t = lj().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), Hj.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = pj().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), Kj.get(e)?.(t ? "默认视图" : "影院模式");
}
-function Wj(e, t = !0) {
- let n = lj(), r = n.settings();
+function Jj(e, t = !0) {
+ let n = pj(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), Uj(i?.querySelector("[data-player-theater]")), _j(hj());
+ i?.toggleAttribute("data-theater", r.theaterMode), qj(i?.querySelector("[data-player-theater]")), xj(yj());
}
-function dce(e) {
- let t = lj().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function lce(e) {
+ let t = pj().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -31561,9 +31572,9 @@ function dce(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (lj().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (pj().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && lj().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && pj().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -31572,7 +31583,7 @@ function dce(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function Gj(e, t, n = 0, r = null) {
+function Yj(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -31582,8 +31593,8 @@ function Gj(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- Bj(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = zj(e, t), d = Ij(e, t), f = Fj(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ Wj(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = Uj(e, t), d = Bj(e, t), f = zj(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -31622,11 +31633,11 @@ function Gj(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(Cj, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(Dj, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(Cj, C);
+ document.addEventListener(Dj, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -31642,15 +31653,15 @@ function Gj(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${lj().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${pj().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${Rj()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${Hj()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- uce(!lj().settings().ambientMode), k();
+ cce(!pj().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => ne(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => re(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -31754,8 +31765,8 @@ function Gj(e, t, n = 0, r = null) {
A(), ie();
});
return e.on("dispose", () => {
- F(), t.removeEventListener("loadedmetadata", ie), t.removeEventListener("resize", ie), t.removeEventListener("ratechange", ie), T++, document.removeEventListener("pointerdown", P), document.removeEventListener(Cj, C), w && clearTimeout(w);
- }), p = new sce(e, t, {
+ F(), t.removeEventListener("loadedmetadata", ie), t.removeEventListener("resize", ie), t.removeEventListener("ratechange", ie), T++, document.removeEventListener("pointerdown", P), document.removeEventListener(Dj, C), w && clearTimeout(w);
+ }), p = new ace(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -31764,21 +31775,21 @@ function Gj(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), fce(e, a), pce(e), (e) => {
+ }), y(), uce(e, a), dce(e), (e) => {
h = e?.length ? e : null, ie();
};
}
-function fce(e, t) {
+function uce(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = lj().settings().theaterMode, i = document.createElement("div");
+ let r = pj().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- Hj.set(a, Bj(a, "影院模式", "T")), Uj(a), a.onclick = (e) => {
- e.stopPropagation(), Wj(!lj().settings().theaterMode);
+ Kj.set(a, Wj(a, "影院模式", "T")), qj(a), a.onclick = (e) => {
+ e.stopPropagation(), Jj(!pj().settings().theaterMode);
};
}
-function pce(e) {
+function dce(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -31790,7 +31801,7 @@ function pce(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = Bj(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = Wj(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -31801,7 +31812,7 @@ function pce(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = Bj(p, "静音", "M"), g = () => {
+ let h = Wj(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -31827,7 +31838,7 @@ function pce(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = Bj(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = Wj(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Jn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Jn(t)} / ${Jn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Jn(n)};点击显示已播放时间` : `已播放 ${Jn(t)},总时长 ${Jn(n)};点击显示剩余时间`);
};
@@ -31839,10 +31850,10 @@ function pce(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- Bj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), lce(e, E, Bj(E, "画中画"), (e) => lj().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = Bj(D, "全屏", "F"), A = () => {
+ Wj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), sce(e, E, Wj(E, "画中画"), (e) => pj().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = Wj(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), _j(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), xj(e);
};
e.on([
"fullscreenchange",
@@ -31863,7 +31874,7 @@ function pce(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let te = ee.querySelector("button"), ne = Bj(te, "展开控件"), N = (t) => {
+ let te = ee.querySelector("button"), ne = Wj(te, "展开控件"), N = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), ne(t ? "收起控件" : "展开控件");
};
te.onclick = (t) => {
@@ -31875,7 +31886,7 @@ function pce(e) {
}, ie = new ResizeObserver(re);
ie.observe(e.el()), e.on("dispose", () => ie.disconnect()), N(!1), re();
}
-function Kj(e, t, n = {}) {
+function Xj(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@ -31886,7 +31897,7 @@ function Kj(e, t, n = {}) {
}).catch(() => {});
let f = (e, n, r, i) => {
if (!t) return;
- let a = n.columns || 10, o = a * (n.rows || 10), s = cce(e, n);
+ let a = n.columns || 10, o = a * (n.rows || 10), s = oce(e, n);
if (s === null) return !1;
let c = Math.floor(s / o), l = s % o, f = Math.ceil(Math.min(o, n.frames - c * o) / a);
d = !!n.cues;
@@ -31911,13 +31922,13 @@ function Kj(e, t, n = {}) {
r.removeEventListener("pointermove", m), r.removeEventListener("pointerleave", h);
});
}
-function mce(e, t) {
+function fce(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => Kn(e.duration()) || Kn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(lj().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(pj().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -31958,11 +31969,11 @@ function mce(e, t) {
} catch {}
});
}
-function qj(e) {
+function Zj(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function Jj(e, t) {
+function Qj(e, t) {
wn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -31978,35 +31989,35 @@ function Jj(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var Yj = "peach.playback-position.v1", Xj = /* @__PURE__ */ new WeakMap();
-function Zj(e) {
- Xj.get(e)?.(), Xj.delete(e);
+var $j = "peach.playback-position.v1", eM = /* @__PURE__ */ new WeakMap();
+function tM(e) {
+ eM.get(e)?.(), eM.delete(e);
}
-function Qj(e, t, n = null) {
+function nM(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function hce(e) {
+function pce(e) {
try {
- let t = localStorage.getItem(`${Yj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${$j}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function gce(e, t) {
- let n = hce(e);
+function mce(e, t) {
+ let n = pce(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * Kn(t.duration) : 0;
}
-function _ce(e, t) {
- Zj(t);
+function hce(e, t) {
+ tM(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${Yj}:${e}`, String(r));
+ localStorage.setItem(`${$j}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -32020,7 +32031,7 @@ function _ce(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), Xj.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), eM.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -32032,19 +32043,19 @@ function _ce(e, t) {
});
}
// src/player/telemetry.ts
-var $j = /* @__PURE__ */ new WeakMap();
-function eM(e) {
- $j.get(e)?.(), $j.delete(e);
+var rM = /* @__PURE__ */ new WeakMap();
+function iM(e) {
+ rM.get(e)?.(), rM.delete(e);
}
-function tM(e, t, n, r) {
+function aM(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), $j.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), rM.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function nM(e, t, n = {}) {
+function oM(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = Kn(e.duration) || Kn(t.duration);
@@ -32085,11 +32096,11 @@ function nM(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, tM(t, l, u, () => {
+ }, aM(t, l, u, () => {
a++;
}), c();
}
-function vce(e, t) {
+function gce(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = Kn(e.duration) || Kn(t.duration);
(r || n) && (wn("/api/follow/activity", {
@@ -32120,22 +32131,22 @@ function vce(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, tM(t, o, s, () => {});
+ }, aM(t, o, s, () => {});
}
// src/player/dispose.ts
-function rM(e) {
+function sM(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (Zj(t), eM(t));
+ t && (tM(t), iM(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function iM() {
+function cM() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -32143,23 +32154,23 @@ function iM() {
return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
}
// src/player/stream.ts
-function aM() {
- return iM();
+function lM() {
+ return cM();
}
-function oM(e, t) {
+function uM(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function sM(e) {
+function _ce(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function cM(e, t) {
- let n = sM(e);
+async function dM(e, t) {
+ let n = _ce(e);
if (n) return n;
try {
let n = await wn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -32168,9 +32179,9 @@ async function cM(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return oM(e, t);
+ return uM(e, t);
}
-function lM(e) {
+function fM(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -32179,22 +32190,22 @@ function lM(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var uM = "";
-function dM() {
- return uM;
+var pM = "";
+function mM() {
+ return pM;
}
-function fM() {
- return uM ||= aM(), uM;
-}
-var pM = (e) => oM(e, fM()), mM = (e) => cM(e, fM());
function hM() {
- let e = uM;
- e && (uM = "", lM(e));
+ return pM ||= lM(), pM;
+}
+var vce = (e) => uM(e, hM()), yce = (e) => dM(e, hM());
+function gM() {
+ let e = pM;
+ e && (pM = "", fM(e));
}
// src/player/v10-player.ts
-var gM = (e) => typeof e == "string" ? [e] : e, _M = (e, t) => {
+var _M = (e) => typeof e == "string" ? [e] : e, bce = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${iM()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${cM()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -32289,9 +32300,9 @@ var gM = (e) => typeof e == "string" ? [e] : e, _M = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => gM(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => gM(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => gM(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => _M(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => _M(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => _M(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -32346,7 +32357,7 @@ var gM = (e) => typeof e == "string" ? [e] : e, _M = (e, t) => {
n.id = String(t.id || ""), t.legacyId && (n.dataset.subtitleAlias = String(t.legacyId)), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, vM = "/vendor/videojs/10.2.0/", yce = [
+}, xce = "/vendor/videojs/10.2.0/", Sce = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -32364,17 +32375,17 @@ var gM = (e) => typeof e == "string" ? [e] : e, _M = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], yM = null;
-function bM() {
- return yM ??= Promise.all(yce.map((e) => import(
+], vM = null;
+function yM() {
+ return vM ??= Promise.all(Sce.map((e) => import(
/* @vite-ignore */
- `${vM}${e}`
-))).then(() => _M).catch((e) => {
- throw yM = null, e;
- }), yM;
+ `${xce}${e}`
+))).then(() => bce).catch((e) => {
+ throw vM = null, e;
+ }), vM;
}
// src/player/immerse-player.ts
-var bce = {
+var Cce = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -32386,38 +32397,38 @@ var bce = {
errorDisplay: !1,
textTrackSettings: !1
};
-function xce(e, t) {
+function wce(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([cM(n, r), bM().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([dM(n, r), yM().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = oM(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = uM(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, bce);
- i = t, t.peachItem = n, t.peachPlaybackKey = Qj("item", n);
+ let t = s(e, Cce);
+ i = t, t.peachItem = n, t.peachPlaybackKey = nM("item", n);
let r = new AbortController();
- Mj(t.el(), e, r.signal, Fj(t)), zj(t, e), Ij(t, e), t.on("dispose", () => r.abort()), new Lj(t, e), Jj(t, n.id), l && t.one("error", () => {
+ Ij(t.el(), e, r.signal, zj(t)), Uj(t, e), Bj(t, e), t.on("dispose", () => r.abort()), new Vj(t, e), Qj(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- nM(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ oM(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, lM(r), i ? rM(i) : (e.pause(), eM(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, fM(r), i ? sM(i) : (e.pause(), iM(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/detail-player.ts
-var xM = /* @__PURE__ */ new WeakMap(), SM = null, CM = null, wM = null;
-function TM() {
- SM &&= (clearInterval(SM), null), CM &&= (clearInterval(CM), null), wM &&= (clearTimeout(wM), null);
+var bM = /* @__PURE__ */ new WeakMap(), xM = null, SM = null, CM = null;
+function wM() {
+ xM &&= (clearInterval(xM), null), SM &&= (clearInterval(SM), null), CM &&= (clearTimeout(CM), null);
}
-async function Sce(e, t, n, r = {}) {
- let i = hj();
+async function Tce(e, t, n, r = {}) {
+ let i = yj();
if (i && !i.isDisposed()) return i;
- let a = lj(), o = r.resume ?? null;
+ let a = pj(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : mM(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : yce(e), c;
try {
- c = await bM();
+ c = await yM();
} catch {
return t.controls = !0, s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -32443,7 +32454,7 @@ async function Sce(e, t, n, r = {}) {
} }
}
});
- gj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || Qj("item", e), Zse(l), l.on("loadedmetadata", () => {
+ bj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || nM("item", e), Yse(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -32451,7 +32462,7 @@ async function Sce(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = $se(bj(f, e.duration)), m = 0, h = !1, g = () => hj() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Zse(wj(f, e.duration)), m = 0, h = !1, g = () => yj() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -32462,15 +32473,15 @@ async function Sce(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- xM.set(l, y), y.updateStats = () => {
+ bM.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = dM(), h = s ? Tj(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = mM(), h = s ? kj(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = Dj(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = jj(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = vj(t);
- Sj(d.speed, x), Sj(d.activity, C), Sj(d.buffer, w);
+ let w = Sj(t);
+ Ej(d.speed, x), Ej(d.activity, C), Ej(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? Yn(_) : "—"} · ${h.length} 请求`,
@@ -32488,17 +32499,17 @@ async function Sce(e, t, n, r = {}) {
[
"连接速度",
D,
- wj(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ Oj(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- wj(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ Oj(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- wj(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ Oj(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Jn(t.currentTime)} / ${Jn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -32514,15 +32525,15 @@ async function Sce(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = Dj(l, e.id, dM(), r ? null : p), a = r ? Oj(i) : tce(i, vj(t));
+ let i = jj(l, e.id, mM(), r ? null : p), a = r ? Mj(i) : $se(i, Sj(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), CM && clearInterval(CM), CM = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), SM && clearInterval(SM), SM = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (wM && clearTimeout(wM), wM = setTimeout(() => {
- e.hidden = !0, CM &&= (clearInterval(CM), null);
+ e && (CM && clearTimeout(CM), CM = setTimeout(() => {
+ e.hidden = !0, SM &&= (clearInterval(SM), null);
}, 1400));
};
return l.on([
@@ -32533,7 +32544,7 @@ async function Sce(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(pM(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(vce(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -32541,13 +32552,13 @@ async function Sce(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = Gj(l, t, e.height, r.qualities ?? null);
+ let n = Yj(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = bj(r, e.duration));
- }).catch(() => {}), Kj(l, e, { thumbnail: !r.source }), mce(l, e), qj(l), r.source || Jj(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = wj(r, e.duration));
+ }).catch(() => {}), Xj(l, e, { thumbnail: !r.source }), fce(l, e), Zj(l), r.source || Qj(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -32556,16 +32567,16 @@ async function Sce(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Cce = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function EM(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Cce), e.querySelector("#playerStatsBtn")) return;
+var Ece = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function TM(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Ece), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = ece();
+ n.innerHTML = Qse();
let r = e.querySelector(":scope > [data-player-toolbar]");
r && (r.querySelector("[data-player-stats-slot]").append(n.content.querySelector("#playerStatsBtn")), r.querySelector("[data-player-net-slot]").append(n.content.querySelector("#playerNet"))), e.insertBefore(n.content, t);
}
-function DM(e, t) {
- let n = xM.get(e);
+function EM(e, t) {
+ let n = bM.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -32577,29 +32588,29 @@ function DM(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), SM &&= (clearInterval(SM), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), xM &&= (clearInterval(xM), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(Cj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), SM && clearInterval(SM), SM = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(Dj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), xM && clearInterval(xM), xM = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(Cj, t), s = () => document.removeEventListener(Cj, t);
+ document.addEventListener(Dj, t), s = () => document.removeEventListener(Dj, t);
}
- let c = e.el().querySelector("video"), l = c ? dce(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, TM()));
+ let c = e.el().querySelector("video"), l = c ? lce(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, wM()));
};
return e.one("dispose", d), d;
}
-function OM(e, t) {
- if (t.kind === "immerse") return xce(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = lj(), c = t.chrome === !1 ? null : e.parentElement;
- c && EM(c, e);
- let l = Qj(n, r, i?.index ?? null), u = {
+function DM(e, t) {
+ if (t.kind === "immerse") return wce(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = pj(), c = t.chrome === !1 ? null : e.parentElement;
+ c && TM(c, e);
+ let l = nM(n, r, i?.index ?? null), u = {
playbackKey: l,
resume: t.resume ?? {
- time: gce(l, r),
+ time: mce(l, r),
autoplay: !1
}
};
@@ -32619,36 +32630,36 @@ function OM(e, t) {
t && (e.poster = t);
}
let d = null, f = !1, p = () => {}, m = e, h = () => {
- p(), !(d && a?.(d)) && (Zj(m), d ? (hj() === d && (gj(null), TM()), rM(d)) : eM(m));
+ p(), !(d && a?.(d)) && (tM(m), d ? (yj() === d && (bj(null), wM()), sM(d)) : iM(m));
};
- return Sce(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
- d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, _ce(l, m), n === "follow" ? vce(r, m) : (m.addEventListener("play", () => {
+ return Tce(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
+ d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, hce(l, m), n === "follow" ? gce(r, m) : (m.addEventListener("play", () => {
wn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), nM(r, m, {
+ }, { once: !0 }), oM(r, m, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (c && (p = DM(t, c)), o?.(t)) : o?.(null));
+ })), t ? (c && (p = EM(t, c)), o?.(t)) : o?.(null));
}), () => {
f = !0, h();
};
}
// src/player/playback.ts
-function kM(e) {
+function OM(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function AM(e, t) {
+function kM(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
// src/player/preview-player.ts
-function wce(e, t, n) {
+function Dce(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return bM().then((a) => {
+ return yM().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -32673,56 +32684,56 @@ function wce(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (Gj(o, e), Kj(o, null, { thumbnail: !1 }), qj(o));
+ r || o.isDisposed() || (Yj(o, e), Xj(o, null, { thumbnail: !1 }), Zj(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, rM(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, sM(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
// src/react/catalog-grid/catalog-view.ts
-var jM = "peach.catalog-view.v1", MM = /* @__PURE__ */ new Set(), NM = "cards";
-function PM() {
+var AM = "peach.catalog-view.v1", jM = /* @__PURE__ */ new Set(), MM = "cards";
+function NM() {
try {
- return localStorage.getItem(jM) === "list" ? "list" : "cards";
+ return localStorage.getItem(AM) === "list" ? "list" : "cards";
} catch {
- return NM;
+ return MM;
}
}
-function Tce(e) {
- NM = e === "list" ? "list" : "cards";
+function Oce(e) {
+ MM = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(jM, NM);
+ localStorage.setItem(AM, MM);
} catch {}
- MM.forEach((e) => e());
+ jM.forEach((e) => e());
}
-function Ece(e) {
- MM.add(e);
+function kce(e) {
+ jM.add(e);
let t = (t) => {
- (t.key === jM || t.key === null) && e();
+ (t.key === AM || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- MM.delete(e), removeEventListener("storage", t);
+ jM.delete(e), removeEventListener("storage", t);
};
}
-var FM = () => (0, P.useSyncExternalStore)(Ece, PM, () => "cards");
-function IM(e, t) {
+var PM = () => (0, P.useSyncExternalStore)(kce, NM, () => "cards");
+function FM(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Dce = (e, t) => [
+var Ace = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Oce = (e, t) => [
+], jce = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function kce(e, t, n, r, i) {
+async function Mce(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await B(`/api/items?${a}`, i), s = {
@@ -32732,22 +32743,22 @@ async function kce(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Ace = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, jce = (e, t) => {
+var Nce = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Pce = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function LM(e) {
- let t = IM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function IM(e) {
+ let t = FM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Dce(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => kce(t, e, n, r, i),
+ queryKey: Ace(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Mce(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Ace(n)
+ getNextPageParam: Nce(n)
};
}
-function Mce(e) {
+function Fce(e) {
return {
- queryKey: Oce(e.entityKey || "", e.revision || 0),
+ queryKey: jce(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -32762,12 +32773,12 @@ function Mce(e) {
};
},
initialPageParam: 0,
- getNextPageParam: jce
+ getNextPageParam: Pce
};
}
-async function Nce(e, t) {
- if (e.mode !== "catalog" || e.wall || PM() === "list") return;
- let n = LM(e);
+async function Ice(e, t) {
+ if (e.mode !== "catalog" || e.wall || NM() === "list") return;
+ let n = IM(e);
await H.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -32776,11 +32787,11 @@ async function Nce(e, t) {
})
});
}
-function Pce(e) {
+function Lce(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function RM(e, t, n) {
+function LM(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -32795,24 +32806,24 @@ function RM(e, t, n) {
return !0;
}) : [...e];
}
-var zM = (e, t) => !!e && !!eo(e, t);
-function Fce(e, t) {
- let n = (e) => zM(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => zM(e, t)) || e[e.length - 1];
+var RM = (e, t) => !!e && !!eo(e, t);
+function Rce(e, t) {
+ let n = (e) => RM(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => RM(e, t)) || e[e.length - 1];
}
-function Ice(e, { collapse: t, mix: n, javImage: r }) {
+function zce(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = RM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = LM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = Fce(e, r);
+ let t = Rce(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -32825,16 +32836,16 @@ function Ice(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Lce(e, t, n) {
+function Bce(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function Rce(e, t) {
+function Vce(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function zce(e, t) {
+function Hce(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -32847,10 +32858,10 @@ function zce(e, t) {
strip: null
}), r;
}
-function BM(e, t) {
- VM((t) => t.id === e, t);
+function zM(e, t) {
+ BM((t) => t.id === e, t);
}
-function VM(e, t) {
+function BM(e, t) {
H.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {
...n,
items: n.items.map((n) => e(n) ? {
@@ -32871,34 +32882,34 @@ function VM(e, t) {
} : n)
});
}
-var HM = (e) => Math.min(Math.max(e || 0, 0), 100), UM = (e) => Math.round(HM(e) / 20), Bce = (e) => {
- let t = UM(e);
+var VM = (e) => Math.min(Math.max(e || 0, 0), 100), HM = (e) => Math.round(VM(e) / 20), Uce = (e) => {
+ let t = HM(e);
return t ? `${t} 星` : "未评分";
-}, WM = (e, t) => t === UM(e) ? 0 : t * 20, GM = (e) => ["item", e], KM = (e) => [
+}, UM = (e, t) => t === HM(e) ? 0 : t * 20, WM = (e) => ["item", e], GM = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Vce = (e, t) => [
+], Wce = (e, t) => [
"item-related",
e,
t
-], Hce = (e) => `/api/item?id=${e}`, Uce = (e, t) => `/api/related?id=${e}&limit=${t}`, qM = "/api/playlist", JM = "/api/feedback", YM = "/api/item-tag", XM = "/api/watch-later", ZM = "/api/quality-goal", QM = "/api/preference", $M = class extends Error {};
-async function eN(e, t) {
- let n = await B(Hce(e), t);
- if (n.error) throw new $M(n.error);
+], Gce = (e) => `/api/item?id=${e}`, Kce = (e, t) => `/api/related?id=${e}&limit=${t}`, KM = "/api/playlist", qM = "/api/feedback", JM = "/api/item-tag", YM = "/api/watch-later", XM = "/api/quality-goal", ZM = "/api/preference", QM = class extends Error {};
+async function $M(e, t) {
+ let n = await B(Gce(e), t);
+ if (n.error) throw new QM(n.error);
return n;
}
-async function tN(e, t, n) {
+async function eN(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([eN(r, n), t.mixRelated(r)]);
- return H.setQueryData(GM(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([$M(r, n), t.mixRelated(r)]);
+ return H.setQueryData(WM(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${jo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return nN(await B(`${qM}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return tN(await B(`${KM}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -32909,19 +32920,19 @@ async function tN(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var nN = (e) => ({
+var tN = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), rN = (e) => e.disposal === "vanished";
-function iN(e, t) {
+}), nN = (e) => e.disposal === "vanished";
+function rN(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !rN(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !nN(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Wce(e, t) {
+function qce(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -32929,20 +32940,20 @@ function Wce(e, t) {
part_label: n
};
}
-function aN(e, t) {
+function iN(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function oN(e, t) {
+async function aN(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = KM(n);
+ let o = GM(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => tN(n, e.helpers, t),
+ queryFn: () => eN(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -32954,21 +32965,21 @@ async function oN(e, t) {
return;
}
}
- let o = i ? iN(i, e.id) : e.id;
+ let o = i ? rN(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(GM(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(WM(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: GM(o),
- queryFn: () => eN(o, t),
+ queryKey: WM(o),
+ queryFn: () => $M(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof $M) {
+ if (e instanceof QM) {
r.redirect({ kind: "gone" });
return;
}
@@ -32979,7 +32990,7 @@ async function oN(e, t) {
id: Number(s.follow_item_id)
});
}
-function Gce(e) {
+function Jce(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Hn(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -33001,35 +33012,35 @@ function Gce(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function Kce(e, t) {
+function Yce(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Hn(t.tagLabel(e.k)), i = n.get(r);
(!i || Hn(e.k) === r && Hn(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var sN = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), cN = (e, t) => ({
+var oN = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), sN = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Hn(e.k) !== Hn(t))
-}), lN = (e, t) => sN(e, t.k) ? e : {
+}), cN = (e, t) => oN(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, uN = "peach.recentTags";
-function dN() {
+}, lN = "peach.recentTags";
+function uN() {
try {
- let e = JSON.parse(localStorage.getItem(uN) || "[]");
+ let e = JSON.parse(localStorage.getItem(lN) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function fN(e) {
+function dN(e) {
try {
- let t = dN().filter((t) => Hn(t) !== Hn(e));
- localStorage.setItem(uN, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = uN().filter((t) => Hn(t) !== Hn(e));
+ localStorage.setItem(lN, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function qce(e, t, n) {
+function Xce(e, t, n) {
let r = Hn(e), i = new Map(t.map((e) => [Hn(e.k), e])), a = t.filter((e) => !r || Hn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Hn(e)) || {
k: e,
n: 0
@@ -33040,72 +33051,72 @@ function qce(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Jce = {
+var Zce = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Yce = {
+}, Qce = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Xce(e) {
+function $ce(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Yce[e.kind],
+ title: Qce[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var pN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Zce = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(pN(e.part_label))}</small>` : "";
-function Qce(e, t, n, r) {
+var fN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, ele = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(fN(e.part_label))}</small>` : "";
+function tle(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var $ce = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function ele(e, t) {
+var nle = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function rle(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function tle(e) {
+function ile(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function mN(e, t) {
+function pN(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var nle = (e, t, n) => [
+var ale = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function rle(e) {
+function ole(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var ile = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function ale(e, t = Math.random) {
+var sle = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function cle(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function ole(e, t) {
- return ale(((await B(`/api/items?${e}`)).items || []).filter((e) => ile(e, t)));
+async function lle(e, t) {
+ return cle(((await B(`/api/items?${e}`)).items || []).filter((e) => sle(e, t)));
}
-var hN = (e) => H.ensureQueryData({
- queryKey: GM(e),
- queryFn: ({ signal: t }) => eN(e, t)
+var mN = (e) => H.ensureQueryData({
+ queryKey: WM(e),
+ queryFn: ({ signal: t }) => $M(e, t)
});
-function sle(e, t) {
+function ule(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function cle(e) {
+function dle(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -33114,306 +33125,306 @@ function cle(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function lle(e, t, n) {
+function fle(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function ule(e, t) {
+function ple(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var dle = 15e3, gN = {
+var mle = 15e3, hN = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, _N = null, vN = null, yN = gN, bN = /* @__PURE__ */ new Set(), xN = 0, SN = 0, CN = 0, wN = "", TN = [], EN = 0, DN = !1, ON = !1, kN = null, AN = /* @__PURE__ */ new Set(), jN = "", MN = null, NN = 0, PN = null, FN = !1;
-function IN() {
- if (!_N) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return _N;
+}, gN = null, _N = null, vN = hN, yN = /* @__PURE__ */ new Set(), bN = 0, xN = 0, SN = 0, CN = "", wN = [], TN = 0, EN = !1, DN = !1, ON = null, kN = /* @__PURE__ */ new Set(), AN = "", jN = null, MN = 0, NN = null, PN = !1;
+function FN() {
+ if (!gN) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return gN;
}
-function fle(e) {
- return bN.add(e), () => {
- bN.delete(e);
+function hle(e) {
+ return yN.add(e), () => {
+ yN.delete(e);
};
}
-function ple() {
- for (let e of [...bN]) e();
+function gle() {
+ for (let e of [...yN]) e();
}
-function LN() {
- (0, Lt.flushSync)(ple);
+function IN() {
+ (0, Lt.flushSync)(gle);
}
-function RN() {
- let e = MN ? Ej(MN.id) : 0;
- return e ? `${jN} · ${Oj(e)}` : jN;
+function LN() {
+ let e = jN ? Aj(jN.id) : 0;
+ return e ? `${AN} · ${Mj(e)}` : AN;
}
-function zN(e, t = null) {
- clearInterval(NN), NN = 0, e === null ? (yN = {
- ...yN,
+function RN(e, t = null) {
+ clearInterval(MN), MN = 0, e === null ? (vN = {
+ ...vN,
loading: null
- }, LN()) : (jN = e, MN = t, yN = {
- ...yN,
- loading: RN()
- }, LN(), NN = window.setInterval(() => {
- MN = TN[EN] ?? null, yN = {
- ...yN,
- loading: RN()
- }, LN();
+ }, IN()) : (AN = e, jN = t, vN = {
+ ...vN,
+ loading: LN()
+ }, IN(), MN = window.setInterval(() => {
+ jN = wN[TN] ?? null, vN = {
+ ...vN,
+ loading: LN()
+ }, IN();
}, 500));
}
-function mle(e) {
+function zN(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), vN.track.append(t);
- let r = aM(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), _N.track.append(t);
+ let r = lM(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => lM(r),
+ release: () => fM(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return AN.add(a), a;
+ return kN.add(a), a;
}
-function hle(e, t) {
+function BN(e, t) {
return new Promise((n) => {
- e.release = OM(e.video, {
+ e.release = DM(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- yN.open && KN(1);
+ vN.open && ZN(1);
}
}), e.gone.then(n);
});
}
-function BN(e) {
- e && !e.disposed && (e.disposed = !0, AN.delete(e), e.leave(), e.release(), e.el.remove(), kN === e && (kN = null));
+function VN(e) {
+ e && !e.disposed && (e.disposed = !0, kN.delete(e), e.leave(), e.release(), e.el.remove(), ON === e && (ON = null));
}
-var VN = [
+var HN = [
"loadeddata",
"canplay",
"error"
];
-function gle(e) {
+function UN(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), VN.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), HN.forEach((e) => t.removeEventListener(e, i)), n());
};
- VN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, dle);
+ HN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, mle);
e.gone.then(i);
});
}
-function HN(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = lle(e.videoWidth, e.videoHeight, n);
+function WN(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = fle(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var UN = () => vN?.track.querySelectorAll("video").forEach(HN);
-function _le(e) {
- delete e.dataset.fit, e.readyState >= 1 ? HN(e) : e.addEventListener("loadedmetadata", () => HN(e), { once: !0 });
+var GN = () => _N?.track.querySelectorAll("video").forEach(WN);
+function KN(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? WN(e) : e.addEventListener("loadedmetadata", () => WN(e), { once: !0 });
}
-function vle(e) {
- yN = {
- ...yN,
+function qN(e) {
+ vN = {
+ ...vN,
wide: e
- }, LN(), UN();
+ }, IN(), GN();
}
-var WN = () => {
- let e = wN;
+var JN = () => {
+ let e = CN;
return H.fetchQuery({
- queryKey: nle(e, SN, CN),
- queryFn: () => ole(e, IN().sourceOffline),
+ queryKey: ale(e, xN, SN),
+ queryFn: () => lle(e, FN().sourceOffline),
staleTime: Infinity
});
};
-function yle(e, t) {
+function YN(e, t) {
let n = () => Kn(e.duration) || Kn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && vN && (vN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), PN = {
+ t && _N && (_N.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), NN = {
video: e,
duration: n
};
}
-async function GN(e = 0) {
- let t = TN[EN];
- if (!t || DN) return;
- let n = xN;
- IN().route(t.id), DN = !0, zN(e ? "切换中" : "加载中", t);
+async function XN(e = 0) {
+ let t = wN[TN];
+ if (!t || EN) return;
+ let n = bN;
+ FN().route(t.id), EN = !0, RN(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await hN(t.id).catch((e) => {
- if (!(e instanceof $M)) throw e;
- }), n !== xN) return;
- let i = kN, a = !!(e && i);
- a || BN(i);
- let o = mle(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, _le(o.video), await hle(o, t), await gle(o), o.disposed || (vle(ule(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await mN(t.id).catch((e) => {
+ if (!(e instanceof QM)) throw e;
+ }), n !== bN) return;
+ let i = ON, a = !!(e && i);
+ a || VN(i);
+ let o = zN(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, KN(o.video), await BN(o, t), await UN(o), o.disposed || (qN(ple(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), BN(i), o.el.style.transform = ""), o.disposed)) return;
- kN = o, r = null, o.video.play()?.catch(() => {}), yN = {
- ...yN,
+ })), await new Promise((e) => setTimeout(e, 210)), VN(i), o.el.style.transform = ""), o.disposed)) return;
+ ON = o, r = null, o.video.play()?.catch(() => {}), vN = {
+ ...vN,
idle: !1,
shown: {
item: t,
- index: EN,
- length: TN.length
+ index: TN,
+ length: wN.length
}
- }, yle(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), zN(null);
+ }, YN(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), RN(null);
} catch {
- BN(r), n === xN && zN(null);
+ VN(r), n === bN && RN(null);
} finally {
- n === xN && (DN = !1);
+ n === bN && (EN = !1);
}
}
-async function KN(e) {
- if (DN || !yN.open) return;
- let t = xN;
- if (EN += e, zN("切换中", TN[EN] ?? null), EN >= TN.length - 3 && !ON) {
- ON = !0;
+async function ZN(e) {
+ if (EN || !vN.open) return;
+ let t = bN;
+ if (TN += e, RN("切换中", wN[TN] ?? null), TN >= wN.length - 3 && !DN) {
+ DN = !0;
try {
- CN += 1;
- let e = await WN();
- t === xN && (TN = sle(TN, e));
+ SN += 1;
+ let e = await JN();
+ t === bN && (wN = ule(wN, e));
} catch {} finally {
- ON = !1;
+ DN = !1;
}
}
- t === xN && (EN >= TN.length && (EN = 0), EN < 0 && (EN = TN.length - 1), await GN(e));
+ t === bN && (TN >= wN.length && (TN = 0), TN < 0 && (TN = wN.length - 1), await XN(e));
}
-async function ble(e) {
- let t = ++xN;
- qN(), SN += 1, CN = 0, wN = rle(IN().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), yN = {
- ...yN,
+async function QN(e) {
+ let t = ++bN;
+ $N(), xN += 1, SN = 0, CN = ole(FN().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), vN = {
+ ...vN,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), zN("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), RN("加载内容");
try {
- let n = await WN();
+ let n = await JN();
if (e && !n.some((t) => t.id === e)) {
- let t = await hN(e).catch((e) => {
- if (e instanceof $M) return null;
+ let t = await mN(e).catch((e) => {
+ if (e instanceof QM) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== xN) return;
- if (TN = n, !TN.length) {
- JN(), IN().warn("当前筛选下没有可直接播放的内容");
+ if (t !== bN) return;
+ if (wN = n, !wN.length) {
+ eP(), FN().warn("当前筛选下没有可直接播放的内容");
return;
}
- EN = Math.max(0, TN.findIndex((t) => t.id === e)), await GN();
+ TN = Math.max(0, wN.findIndex((t) => t.id === e)), await XN();
} catch {
- if (t !== xN) return;
- zN(null), JN();
+ if (t !== bN) return;
+ RN(null), eP();
}
}
-function qN() {
- clearInterval(NN), NN = 0, eP(), QN = null, PN = null, FN = !1, [...AN].forEach(BN), DN = !1;
-}
-function JN() {
- yN.open && (xN++, qN(), yN = gN, document.body.removeAttribute("data-immerse-open"), LN(), IN().closed());
+function $N() {
+ clearInterval(MN), MN = 0, oP(), iP = null, NN = null, PN = !1, [...kN].forEach(VN), EN = !1;
}
-var YN = 0, XN = null, ZN = 0, QN = null, $N = 0;
function eP() {
- clearTimeout(YN), YN = 0, XN = null;
+ vN.open && (bN++, $N(), vN = hN, document.body.removeAttribute("data-immerse-open"), IN(), FN().closed());
}
-function xle(e) {
- let t = kN?.video;
+var tP = 0, nP = null, rP = 0, iP = null, aP = 0;
+function oP() {
+ clearTimeout(tP), tP = 0, nP = null;
+}
+function sP(e) {
+ let t = ON?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- XN && XN.side === n && r - XN.at <= 280 ? (eP(), AM(t, IN().seekSeconds() * n)) : (YN && (clearTimeout(YN), YN = 0, kM(t)), XN = {
+ nP && nP.side === n && r - nP.at <= 280 ? (oP(), kM(t, FN().seekSeconds() * n)) : (tP && (clearTimeout(tP), tP = 0, OM(t)), nP = {
side: n,
at: r
- }, YN = window.setTimeout(() => {
- YN = 0, XN = null, yN.open && kM(kN?.video);
+ }, tP = window.setTimeout(() => {
+ tP = 0, nP = null, vN.open && OM(ON?.video);
}, 280));
}
-function Sle() {
- Date.now() < ZN || kM(kN?.video);
+function cP() {
+ Date.now() < rP || OM(ON?.video);
}
-var tP = (e) => vN?.bar.toggleAttribute("data-scrubbing", e);
-function nP(e) {
- vN && (vN.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var lP = (e) => _N?.bar.toggleAttribute("data-scrubbing", e);
+function uP(e) {
+ _N && (_N.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function rP(e) {
+function dP(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- QN = null;
+ iP = null;
return;
}
- let n = kN?.video;
- QN = {
+ let n = ON?.video;
+ iP = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function iP(e) {
- if (!QN || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - QN.x, n = e.touches[0].clientY - QN.y;
- if (!QN.axis) {
+function fP(e) {
+ if (!iP || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - iP.x, n = e.touches[0].clientY - iP.y;
+ if (!iP.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- QN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", QN.axis === "x" && tP(!0);
+ iP.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", iP.axis === "x" && lP(!0);
}
- if (QN.axis !== "x") return;
- let r = kN?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), QN.to = Math.min(i, Math.max(0, QN.from + t / window.innerWidth * i)), nP(QN.to / i));
+ if (iP.axis !== "x") return;
+ let r = ON?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), iP.to = Math.min(i, Math.max(0, iP.from + t / window.innerWidth * i)), uP(iP.to / i));
}
-function aP(e) {
- if (!QN) return;
- let t = QN;
- if (QN = null, ZN = Date.now() + 700, tP(!1), t.axis === "x") {
- let e = kN?.video;
+function pP(e) {
+ if (!iP) return;
+ let t = iP;
+ if (iP = null, rP = Date.now() + 700, lP(!1), t.axis === "x") {
+ let e = ON?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (eP(), KN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), xle(n.clientX));
+ Math.abs(i) > 60 ? (oP(), ZN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), sP(n.clientX));
}
-function oP() {
- QN = null, tP(!1);
+function mP() {
+ iP = null, lP(!1);
}
-function sP(e) {
+function hP(e) {
let t = Date.now();
- t - $N < 260 || ($N = t, KN(e.deltaY > 0 ? 1 : -1));
+ t - aP < 260 || (aP = t, ZN(e.deltaY > 0 ? 1 : -1));
}
-function cP(e) {
- let t = vN.bar.getBoundingClientRect();
+function gP(e) {
+ let t = _N.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function Cle(e) {
- PN?.duration() && (FN = !0, tP(!0), e.currentTarget.setPointerCapture(e.pointerId), nP(cP(e)), e.preventDefault());
+function _P(e) {
+ NN?.duration() && (PN = !0, lP(!0), e.currentTarget.setPointerCapture(e.pointerId), uP(gP(e)), e.preventDefault());
}
-function wle(e) {
- FN && nP(cP(e));
+function vP(e) {
+ PN && uP(gP(e));
}
-function Tle(e) {
- if (!FN) return;
- FN = !1, tP(!1);
- let t = PN?.duration();
- PN && t && (PN.video.currentTime = t * cP(e));
+function yP(e) {
+ if (!PN) return;
+ PN = !1, lP(!1);
+ let t = NN?.duration();
+ NN && t && (NN.video.currentTime = t * gP(e));
}
-function Ele() {
- FN = !1, tP(!1);
+function bP() {
+ PN = !1, lP(!1);
}
-async function lP(e, t) {
- let n = await V(JM, {
+async function xP(e, t) {
+ let n = await V(qM, {
id: e,
kind: t
- }), r = H.getQueryData(GM(e));
- if (!r) return BM(e, {
+ }), r = H.getQueryData(WM(e));
+ if (!r) return zM(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -33422,7 +33433,7 @@ async function lP(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(GM(e), i), BM(e, {
+ return H.setQueryData(WM(e), i), zM(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -33430,7 +33441,7 @@ async function lP(e, t) {
o_count: i.o_count
}), n;
}
-var Dle = [
+var SP = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -33447,31 +33458,31 @@ var Dle = [
label: "记一次高潮"
}
];
-function uP(e) {
+function CP(e) {
return Pt({
- queryKey: GM(e ?? 0),
- queryFn: ({ signal: t }) => eN(e, t),
+ queryKey: WM(e ?? 0),
+ queryFn: ({ signal: t }) => $M(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Ole({ kind: e, glyph: t, label: n, id: r }) {
- let i = uP(r), a = Ft({
+function wP({ kind: e, glyph: t, label: n, id: r }) {
+ let i = CP(r), a = Ft({
mutationFn: async (t) => {
- let n = H.getQueryData(GM(t))?.feedback || null;
+ let n = H.getQueryData(WM(t))?.feedback || null;
return {
- result: await lP(t, e),
+ result: await xP(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- IN().toast(mN(e, t), { undo: async () => {
- e === "o" ? await lP(r, "o-undo") : (t.feedback && await lP(r, t.feedback), n && await lP(r, n));
+ FN().toast(pN(e, t), { undo: async () => {
+ e === "o" ? await xP(r, "o-undo") : (t.feedback && await xP(r, t.feedback), n && await xP(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- KN(1);
+ ZN(1);
}, 260);
},
- onError: (e) => IN().failure("更新反馈", e)
+ onError: (e) => FN().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-immerse-action": "",
@@ -33502,11 +33513,11 @@ function Ole({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function kle({ shown: e }) {
- let t = e?.item ?? null, n = uP(t?.id ?? null), r = n ? cle(n) : null, i = IN(), a = (e) => {
- e.preventDefault(), n && (JN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function TP({ shown: e }) {
+ let t = e?.item ?? null, n = CP(t?.id ?? null), r = n ? dle(n) : null, i = FN(), a = (e) => {
+ e.preventDefault(), n && (eP(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (JN(), i.openItem(t.id));
+ t && (eP(), i.openItem(t.id));
}, s = r ? go(r.name, r.ref, Xa(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-immerse-ui": "",
@@ -33535,18 +33546,18 @@ function kle({ shown: e }) {
})]
});
}
-var Ale = { __html: zs("媒体加载中") };
-function jle({ view: e }) {
+var EP = { __html: zs("媒体加载中") };
+function DP({ view: e }) {
let t = (0, P.useRef)(null), n = (0, P.useRef)(null), r = (0, P.useRef)(null), i = (0, P.useRef)(null);
(0, P.useLayoutEffect)(() => {
let e = t.current;
- return vN = {
+ return _N = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", rP, { passive: !0 }), e.addEventListener("touchmove", iP, { passive: !1 }), e.addEventListener("touchend", aP, { passive: !1 }), e.addEventListener("touchcancel", oP, { passive: !0 }), e.addEventListener("wheel", sP, { passive: !0 }), () => {
- e.removeEventListener("touchstart", rP), e.removeEventListener("touchmove", iP), e.removeEventListener("touchend", aP), e.removeEventListener("touchcancel", oP), e.removeEventListener("wheel", sP), vN = null;
+ }, e.addEventListener("touchstart", dP, { passive: !0 }), e.addEventListener("touchmove", fP, { passive: !1 }), e.addEventListener("touchend", pP, { passive: !1 }), e.addEventListener("touchcancel", mP, { passive: !0 }), e.addEventListener("wheel", hP, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", dP), e.removeEventListener("touchmove", fP), e.removeEventListener("touchend", pP), e.removeEventListener("touchcancel", mP), e.removeEventListener("wheel", hP), _N = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -33563,10 +33574,10 @@ function jle({ view: e }) {
children: [/* @__PURE__ */ (0, F.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Sle
+ onClick: cP
}), /* @__PURE__ */ (0, F.jsx)("div", {
"data-immerse-actions": "",
- children: Dle.map((e) => /* @__PURE__ */ (0, F.jsx)(Ole, {
+ children: SP.map((e) => /* @__PURE__ */ (0, F.jsx)(wP, {
...e,
id: a
}, e.kind))
@@ -33579,7 +33590,7 @@ function jle({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Ale
+ dangerouslySetInnerHTML: EP
}), /* @__PURE__ */ (0, F.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, F.jsx)("button", {
@@ -33587,7 +33598,7 @@ function jle({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: JN,
+ onClick: eP,
children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-x" })
@@ -33596,88 +33607,88 @@ function jle({ view: e }) {
/* @__PURE__ */ (0, F.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Cle,
- onPointerMove: wle,
- onPointerUp: Tle,
- onPointerCancel: Ele,
+ onPointerDown: _P,
+ onPointerMove: vP,
+ onPointerUp: yP,
+ onPointerCancel: bP,
children: /* @__PURE__ */ (0, F.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, F.jsx)(kle, { shown: e.shown })
+ /* @__PURE__ */ (0, F.jsx)(TP, { shown: e.shown })
]
});
}
-var Mle = {
- open: ble,
- close: JN,
- isOpen: () => yN.open,
- activeVideo: () => yN.open ? kN?.video ?? null : null
+var OP = {
+ open: QN,
+ close: eP,
+ isOpen: () => vN.open,
+ activeVideo: () => vN.open ? ON?.video ?? null : null
};
-function Nle(e) {
- if (!yN.open) return;
+function kP(e) {
+ if (!vN.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && KN(1), e.key === "ArrowUp" && KN(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && ZN(1), e.key === "ArrowUp" && ZN(-1));
}
-function Ple(e) {
- let t = !_N;
- return _N = e, t && (document.addEventListener("keydown", Nle), addEventListener("resize", () => {
- yN.open && UN();
+function AP(e) {
+ let t = !gN;
+ return gN = e, t && (document.addEventListener("keydown", kP), addEventListener("resize", () => {
+ vN.open && GN();
}), addEventListener("pagehide", () => {
- AN.forEach((e) => lM(e.session));
- })), Mle;
+ kN.forEach((e) => fM(e.session));
+ })), OP;
}
-function Fle() {
- let e = (0, P.useSyncExternalStore)(fle, () => yN);
- return _N ? /* @__PURE__ */ (0, F.jsx)(jle, { view: e }) : null;
+function jP() {
+ let e = (0, P.useSyncExternalStore)(hle, () => vN);
+ return gN ? /* @__PURE__ */ (0, F.jsx)(DP, { view: e }) : null;
}
// src/manage-header.ts
-var dP = {
+var MP = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Ile = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Lle(e) {
- let t = dP[e.path] ? "cleanup" : e.section;
+}, NP = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function PP(e) {
+ let t = MP[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Rle = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function fP(e) {
+var FP = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function IP(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = dP[e.path] ?? "";
+ let n = MP[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Lle(e),
+ pressed: PP(e),
crumb: n,
- compact: Ile.has(e.path) || e.section === "configuration",
+ compact: NP.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Rle(e.trash),
+ text: FP(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var pP = (e) => e.replace(/[&<>"']/g, (e) => ({
+var LP = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), mP = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${pP(e)}"/></svg>`, hP = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function zle(e) {
- let t = fP(e);
+})[e]), RP = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${LP(e)}"/></svg>`, zP = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function BP(e) {
+ let t = IP(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${pP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${mP(r)}<span>${pP(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${mP("chevron-right")}</li><li aria-current="true"><span>${pP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? hP : `<span data-lede-text="">${pP(t.lede.text)}</span>${t.lede.total ? Ble : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${pP(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${LP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${RP(r)}<span>${LP(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${RP("chevron-right")}</li><li aria-current="true"><span>${LP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? zP : `<span data-lede-text="">${LP(t.lede.text)}</span>${t.lede.total ? VP : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${LP(t.title)}</h2>` + i;
}
-var Ble = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var VP = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function gP({ name: e }) {
+function HP({ name: e }) {
let { wide: t, viewBox: n } = Sn(e);
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: n,
@@ -33686,7 +33697,7 @@ function gP({ name: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function Vle({ name: e }) {
+function UP({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -33694,88 +33705,88 @@ function Vle({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var Hle = (e, t) => {
+var WP = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, Ule = (e, t) => ({
+}, GP = (e, t) => ({
classGroupId: e,
validator: t
-}), _P = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), KP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), vP = "-", yP = [], Wle = "arbitrary..", Gle = (e) => {
- let t = qle(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), qP = "-", JP = [], _le = "arbitrary..", vle = (e) => {
+ let t = ble(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Kle(e);
- let n = e.split(vP);
- return bP(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return yle(e);
+ let n = e.split(qP);
+ return YP(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Hle(i, t) : t : i || yP;
+ return t ? i ? WP(i, t) : t : i || JP;
}
- return n[e] || yP;
+ return n[e] || JP;
}
};
-}, bP = (e, t, n) => {
+}, YP = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = bP(e, t + 1, i);
+ let n = YP(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(vP) : e.slice(t).join(vP), s = a.length;
+ let o = t === 0 ? e.join(qP) : e.slice(t).join(qP), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Kle = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, yle = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? Wle + r : void 0;
-})(), qle = (e) => {
+ return r ? _le + r : void 0;
+})(), ble = (e) => {
let { theme: t, classGroups: n } = e;
- return Jle(n, t);
-}, Jle = (e, t) => {
- let n = _P();
+ return xle(n, t);
+}, xle = (e, t) => {
+ let n = KP();
for (let r in e) {
let i = e[r];
- xP(i, n, r, t);
+ XP(i, n, r, t);
}
return n;
-}, xP = (e, t, n, r) => {
+}, XP = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Yle(i, t, n, r);
+ Sle(i, t, n, r);
}
-}, Yle = (e, t, n, r) => {
- typeof e == "string" ? Xle(e, t, n) : typeof e == "function" ? Zle(e, t, n, r) : Qle(e, t, n, r);
-}, Xle = (e, t, n) => {
- let r = e === "" ? t : SP(t, e);
+}, Sle = (e, t, n, r) => {
+ typeof e == "string" ? Cle(e, t, n) : typeof e == "function" ? wle(e, t, n, r) : Tle(e, t, n, r);
+}, Cle = (e, t, n) => {
+ let r = e === "" ? t : ZP(t, e);
r.classGroupId = n;
-}, Zle = (e, t, n, r) => {
- $le(e) ? xP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Ule(n, e)));
-}, Qle = (e, t, n, r) => {
+}, wle = (e, t, n, r) => {
+ Ele(e) ? XP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(GP(n, e)));
+}, Tle = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- xP(o, SP(t, a), n, r);
+ XP(o, ZP(t, a), n, r);
}
-}, SP = (e, t) => {
- let n = e, r = t.split(vP), i = r.length;
+}, ZP = (e, t) => {
+ let n = e, r = t.split(qP), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = _P(), n.nextPart.set(t, i)), n = i;
+ i || (i = KP(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, $le = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, eue = (e) => {
+}, Ele = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Dle = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -33793,19 +33804,19 @@ var Hle = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, CP = "!", wP = ":", tue = [], TP = (e, t, n, r, i) => ({
+}, QP = "!", $P = ":", Ole = [], eF = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), nue = (e) => {
+}), kle = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === wP) {
+ if (o === $P) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -33817,13 +33828,13 @@ var Hle = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(CP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(CP) && (c = s.slice(1), l = !0);
+ s.endsWith(QP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(QP) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return TP(t, l, c, u);
+ return eF(t, l, c, u);
};
if (t) {
- let e = t + wP, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : TP(tue, !1, t, void 0, !0);
+ let e = t + $P, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : eF(Ole, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -33833,7 +33844,7 @@ var Hle = (e, t) => {
});
}
return r;
-}, rue = (e) => {
+}, Ale = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -33845,18 +33856,18 @@ var Hle = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, iue = (e) => ({
- cache: eue(e.cacheSize),
- parseClassName: nue(e),
- sortModifiers: rue(e),
- postfixLookupClassGroupIds: aue(e),
- ...Gle(e)
-}), aue = (e) => {
+}, jle = (e) => ({
+ cache: Dle(e.cacheSize),
+ parseClassName: kle(e),
+ sortModifiers: Ale(e),
+ postfixLookupClassGroupIds: Mle(e),
+ ...vle(e)
+}), Mle = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, oue = /\s+/, sue = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(oue), l = "";
+}, Nle = /\s+/, Ple = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Nle), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -33876,7 +33887,7 @@ var Hle = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + CP : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + QP : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -33887,34 +33898,34 @@ var Hle = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, cue = (...e) => {
+}, Fle = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = EP(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = tF(n)) && (i && (i += " "), i += r);
return i;
-}, EP = (e) => {
+}, tF = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = EP(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = tF(e[r])) && (n && (n += " "), n += t);
return n;
-}, DP = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = iue(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, nF = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = jle(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = sue(e, n);
+ let a = Ple(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(cue(...e));
-}, lue = [], OP = (e) => {
- let t = (t) => t[e] || lue;
+ return a = o, (...e) => a(Fle(...e));
+}, Ile = [], rF = (e) => {
+ let t = (t) => t[e] || Ile;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, kP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, AP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, uue = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, due = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, fue = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, pue = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, mue = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, hue = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, jP = (e) => uue.test(e), MP = (e) => !!e && !Number.isNaN(Number(e)), NP = (e) => !!e && Number.isInteger(Number(e)), PP = (e) => e.endsWith("%") && MP(e.slice(0, -1)), FP = (e) => due.test(e), IP = () => !0, gue = (e) => fue.test(e) && !pue.test(e), LP = () => !1, _ue = (e) => mue.test(e), vue = (e) => hue.test(e), yue = (e) => !RP(e) && !UP(e), bue = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), xue = (e) => qP(e, ZP, LP), RP = (e) => kP.test(e), zP = (e) => qP(e, QP, gue), BP = (e) => qP(e, kue, MP), Sue = (e) => qP(e, eF, IP), Cue = (e) => qP(e, $P, LP), VP = (e) => qP(e, YP, LP), wue = (e) => qP(e, XP, vue), HP = (e) => qP(e, tF, _ue), UP = (e) => AP.test(e), WP = (e) => JP(e, QP), Tue = (e) => JP(e, $P), GP = (e) => JP(e, YP), Eue = (e) => JP(e, ZP), Due = (e) => JP(e, XP), KP = (e) => JP(e, tF, !0), Oue = (e) => JP(e, eF, !0), qP = (e, t, n) => {
- let r = kP.exec(e);
+}, iF = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, aF = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Lle = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Rle = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zle = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ble = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Vle = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hle = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, oF = (e) => Lle.test(e), sF = (e) => !!e && !Number.isNaN(Number(e)), cF = (e) => !!e && Number.isInteger(Number(e)), lF = (e) => e.endsWith("%") && sF(e.slice(0, -1)), uF = (e) => Rle.test(e), dF = () => !0, Ule = (e) => zle.test(e) && !Ble.test(e), fF = () => !1, Wle = (e) => Vle.test(e), Gle = (e) => Hle.test(e), Kle = (e) => !pF(e) && !vF(e), qle = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Jle = (e) => SF(e, EF, fF), pF = (e) => iF.test(e), mF = (e) => SF(e, DF, Ule), hF = (e) => SF(e, nue, sF), Yle = (e) => SF(e, kF, dF), Xle = (e) => SF(e, OF, fF), gF = (e) => SF(e, wF, fF), Zle = (e) => SF(e, TF, Gle), _F = (e) => SF(e, AF, Wle), vF = (e) => aF.test(e), yF = (e) => CF(e, DF), Qle = (e) => CF(e, OF), bF = (e) => CF(e, wF), $le = (e) => CF(e, EF), eue = (e) => CF(e, TF), xF = (e) => CF(e, AF, !0), tue = (e) => CF(e, kF, !0), SF = (e, t, n) => {
+ let r = iF.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, JP = (e, t, n = !1) => {
- let r = AP.exec(e);
+}, CF = (e, t, n = !1) => {
+ let r = aF.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, YP = (e) => e === "position" || e === "percentage", XP = (e) => e === "image" || e === "url", ZP = (e) => e === "length" || e === "size" || e === "bg-size", QP = (e) => e === "length", kue = (e) => e === "number", $P = (e) => e === "family-name", eF = (e) => e === "number" || e === "weight", tF = (e) => e === "shadow", nF = () => {
- let e = OP("color"), t = OP("font"), n = OP("text"), r = OP("font-weight"), i = OP("tracking"), a = OP("leading"), o = OP("breakpoint"), s = OP("container"), c = OP("spacing"), l = OP("radius"), u = OP("shadow"), d = OP("inset-shadow"), f = OP("text-shadow"), p = OP("drop-shadow"), m = OP("blur"), h = OP("perspective"), g = OP("aspect"), _ = OP("ease"), v = OP("animate"), y = () => [
+}, wF = (e) => e === "position" || e === "percentage", TF = (e) => e === "image" || e === "url", EF = (e) => e === "length" || e === "size" || e === "bg-size", DF = (e) => e === "length", nue = (e) => e === "number", OF = (e) => e === "family-name", kF = (e) => e === "number" || e === "weight", AF = (e) => e === "shadow", jF = () => {
+ let e = rF("color"), t = rF("font"), n = rF("text"), r = rF("font-weight"), i = rF("tracking"), a = rF("leading"), o = rF("breakpoint"), s = rF("container"), c = rF("spacing"), l = rF("radius"), u = rF("shadow"), d = rF("inset-shadow"), f = rF("text-shadow"), p = rF("drop-shadow"), m = rF("blur"), h = rF("perspective"), g = rF("aspect"), _ = rF("ease"), v = rF("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -33939,8 +33950,8 @@ var Hle = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- UP,
- RP
+ vF,
+ pF
], S = () => [
"auto",
"hidden",
@@ -33952,43 +33963,43 @@ var Hle = (e, t) => {
"contain",
"none"
], w = () => [
- UP,
- RP,
+ vF,
+ pF,
c
], T = () => [
- jP,
+ oF,
"full",
"auto",
...w()
], E = () => [
- NP,
+ cF,
"none",
"subgrid",
- UP,
- RP
+ vF,
+ pF
], D = () => [
"auto",
{ span: [
"full",
- NP,
- UP,
- RP
+ cF,
+ vF,
+ pF
] },
- NP,
- UP,
- RP
+ cF,
+ vF,
+ pF
], O = () => [
- NP,
+ cF,
"auto",
- UP,
- RP
+ vF,
+ pF
], k = () => [
"auto",
"min",
"max",
"fr",
- UP,
- RP
+ vF,
+ pF
], A = () => [
"start",
"end",
@@ -34008,7 +34019,7 @@ var Hle = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- jP,
+ oF,
"auto",
"full",
"dvw",
@@ -34023,7 +34034,7 @@ var Hle = (e, t) => {
...w()
], te = () => [
s,
- jP,
+ oF,
"screen",
"full",
"dvw",
@@ -34034,7 +34045,7 @@ var Hle = (e, t) => {
"fit",
...w()
], ne = () => [
- jP,
+ oF,
"screen",
"full",
"lh",
@@ -34047,13 +34058,13 @@ var Hle = (e, t) => {
...w()
], N = () => [
e,
- UP,
- RP
+ vF,
+ pF
], re = () => [
...b(),
- GP,
- VP,
- { position: [UP, RP] }
+ bF,
+ gF,
+ { position: [vF, pF] }
], ie = () => ["no-repeat", { repeat: [
"",
"x",
@@ -34064,25 +34075,25 @@ var Hle = (e, t) => {
"auto",
"cover",
"contain",
- Eue,
- xue,
- { size: [UP, RP] }
+ $le,
+ Jle,
+ { size: [vF, pF] }
], F = () => [
- PP,
- WP,
- zP
+ lF,
+ yF,
+ mF
], ae = () => [
"",
"none",
"full",
l,
- UP,
- RP
+ vF,
+ pF
], oe = () => [
"",
- MP,
- WP,
- zP
+ sF,
+ yF,
+ mF
], se = () => [
"solid",
"dashed",
@@ -34106,32 +34117,32 @@ var Hle = (e, t) => {
"color",
"luminosity"
], le = () => [
- MP,
- PP,
- GP,
- VP
+ sF,
+ lF,
+ bF,
+ gF
], ue = () => [
"",
"none",
m,
- UP,
- RP
+ vF,
+ pF
], de = () => [
"none",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
], fe = () => [
"none",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
], pe = () => [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
], me = () => [
- jP,
+ oF,
"full",
...w()
];
@@ -34145,17 +34156,17 @@ var Hle = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [FP],
- breakpoint: [FP],
- color: [IP],
- container: [FP],
- "drop-shadow": [FP],
+ blur: [uF],
+ breakpoint: [uF],
+ color: [dF],
+ container: [uF],
+ "drop-shadow": [uF],
ease: [
"in",
"out",
"in-out"
],
- font: [yue],
+ font: [Kle],
"font-weight": [
"thin",
"extralight",
@@ -34167,7 +34178,7 @@ var Hle = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [FP],
+ "inset-shadow": [uF],
leading: [
"none",
"tight",
@@ -34184,11 +34195,11 @@ var Hle = (e, t) => {
"distant",
"none"
],
- radius: [FP],
- shadow: [FP],
- spacing: ["px", MP],
- text: [FP],
- "text-shadow": [FP],
+ radius: [uF],
+ shadow: [uF],
+ spacing: ["px", sF],
+ text: [uF],
+ "text-shadow": [uF],
tracking: [
"tighter",
"tight",
@@ -34202,9 +34213,9 @@ var Hle = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- jP,
- RP,
- UP,
+ oF,
+ pF,
+ vF,
g
] }],
container: ["container"],
@@ -34212,15 +34223,15 @@ var Hle = (e, t) => {
"",
"normal",
"size",
- UP,
- RP
+ vF,
+ pF
] }],
- "container-named": [bue],
+ "container-named": [qle],
columns: [{ columns: [
- MP,
+ sF,
"auto",
- RP,
- UP,
+ pF,
+ vF,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -34317,13 +34328,13 @@ var Hle = (e, t) => {
"collapse"
],
z: [{ z: [
- NP,
+ cF,
"auto",
- UP,
- RP
+ vF,
+ pF
] }],
basis: [{ basis: [
- jP,
+ oF,
"full",
"auto",
s,
@@ -34341,32 +34352,32 @@ var Hle = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- MP,
- jP,
+ sF,
+ oF,
"auto",
"initial",
"none",
- RP
+ pF
] }],
grow: [{ grow: [
"",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
shrink: [{ shrink: [
"",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
order: [{ order: [
- NP,
+ cF,
"first",
"last",
"none",
- UP,
- RP
+ vF,
+ pF
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -34473,15 +34484,15 @@ var Hle = (e, t) => {
"font-size": [{ text: [
"base",
n,
- WP,
- zP
+ yF,
+ mF
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Oue,
- Sue
+ tue,
+ Yle
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -34493,15 +34504,15 @@ var Hle = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- PP,
- RP
+ lF,
+ pF
] }],
"font-family": [{ font: [
- Tue,
- Cue,
+ Qle,
+ Xle,
t
] }],
- "font-features": [{ "font-features": [RP] }],
+ "font-features": [{ "font-features": [pF] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -34510,14 +34521,14 @@ var Hle = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- UP,
- RP
+ vF,
+ pF
] }],
"line-clamp": [{ "line-clamp": [
- MP,
+ sF,
"none",
- UP,
- BP
+ vF,
+ hF
] }],
leading: [{ leading: [
"none",
@@ -34526,16 +34537,16 @@ var Hle = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- UP,
- RP
+ vF,
+ pF
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- UP,
- RP
+ vF,
+ pF
] }],
"text-alignment": [{ text: [
"left",
@@ -34555,18 +34566,18 @@ var Hle = (e, t) => {
],
"text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- MP,
+ sF,
"from-font",
"auto",
- UP,
- zP
+ vF,
+ mF
] }],
"text-decoration-color": [{ decoration: N() }],
"underline-offset": [{ "underline-offset": [
- MP,
+ sF,
"auto",
- UP,
- RP
+ vF,
+ pF
] }],
"text-transform": [
"uppercase",
@@ -34587,9 +34598,9 @@ var Hle = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- NP,
- UP,
- RP
+ cF,
+ vF,
+ pF
] }],
"vertical-align": [{ align: [
"baseline",
@@ -34600,8 +34611,8 @@ var Hle = (e, t) => {
"text-bottom",
"sub",
"super",
- UP,
- RP
+ vF,
+ pF
] }],
whitespace: [{ whitespace: [
"normal",
@@ -34629,8 +34640,8 @@ var Hle = (e, t) => {
] }],
content: [{ content: [
"none",
- UP,
- RP
+ vF,
+ pF
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -34665,24 +34676,24 @@ var Hle = (e, t) => {
"l",
"tl"
] },
- NP,
- UP,
- RP
+ cF,
+ vF,
+ pF
],
radial: [
"",
- UP,
- RP
+ vF,
+ pF
],
conic: [
"",
- NP,
- UP,
- RP
+ cF,
+ vF,
+ pF
]
},
- Due,
- wue
+ eue,
+ Zle
] }],
"bg-color": [{ bg: N() }],
"gradient-from-pos": [{ from: F() }],
@@ -34749,15 +34760,15 @@ var Hle = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"outline-w": [{ outline: [
"",
- MP,
- WP,
- zP
+ sF,
+ yF,
+ mF
] }],
"outline-color": [{ outline: N() }],
shadow: [{ shadow: [
@@ -34765,35 +34776,35 @@ var Hle = (e, t) => {
"inner",
"none",
u,
- KP,
- HP
+ xF,
+ _F
] }],
"shadow-color": [{ shadow: N() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- KP,
- HP
+ xF,
+ _F
] }],
"inset-shadow-color": [{ "inset-shadow": N() }],
"ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: N() }],
- "ring-offset-w": [{ "ring-offset": [MP, zP] }],
+ "ring-offset-w": [{ "ring-offset": [sF, mF] }],
"ring-offset-color": [{ "ring-offset": N() }],
"inset-ring-w": [{ "inset-ring": oe() }],
"inset-ring-color": [{ "inset-ring": N() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- KP,
- HP
+ xF,
+ _F
] }],
"text-shadow-color": [{ "text-shadow": N() }],
opacity: [{ opacity: [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"mix-blend": [{ "mix-blend": [
...ce(),
@@ -34815,7 +34826,7 @@ var Hle = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [MP] }],
+ "mask-image-linear-pos": [{ "mask-linear": [sF] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": le() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": le() }],
"mask-image-linear-from-color": [{ "mask-linear-from": N() }],
@@ -34844,7 +34855,7 @@ var Hle = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": le() }],
"mask-image-y-from-color": [{ "mask-y-from": N() }],
"mask-image-y-to-color": [{ "mask-y-to": N() }],
- "mask-image-radial": [{ "mask-radial": [UP, RP] }],
+ "mask-image-radial": [{ "mask-radial": [vF, pF] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": le() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": le() }],
"mask-image-radial-from-color": [{ "mask-radial-from": N() }],
@@ -34855,7 +34866,7 @@ var Hle = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [MP] }],
+ "mask-image-conic-pos": [{ "mask-conic": [sF] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": le() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": le() }],
"mask-image-conic-from-color": [{ "mask-conic-from": N() }],
@@ -34879,111 +34890,111 @@ var Hle = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- UP,
- RP
+ vF,
+ pF
] }],
filter: [{ filter: [
"",
"none",
- UP,
- RP
+ vF,
+ pF
] }],
blur: [{ blur: ue() }],
brightness: [{ brightness: [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
contrast: [{ contrast: [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- KP,
- HP
+ xF,
+ _F
] }],
"drop-shadow-color": [{ "drop-shadow": N() }],
grayscale: [{ grayscale: [
"",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"hue-rotate": [{ "hue-rotate": [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
invert: [{ invert: [
"",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
saturate: [{ saturate: [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
sepia: [{ sepia: [
"",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- UP,
- RP
+ vF,
+ pF
] }],
"backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -34999,39 +35010,39 @@ var Hle = (e, t) => {
"shadow",
"transform",
"none",
- UP,
- RP
+ vF,
+ pF
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- MP,
+ sF,
"initial",
- UP,
- RP
+ vF,
+ pF
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- UP,
- RP
+ vF,
+ pF
] }],
delay: [{ delay: [
- MP,
- UP,
- RP
+ sF,
+ vF,
+ pF
] }],
animate: [{ animate: [
"none",
v,
- UP,
- RP
+ vF,
+ pF
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- UP,
- RP
+ vF,
+ pF
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: de() }],
@@ -35047,8 +35058,8 @@ var Hle = (e, t) => {
"skew-x": [{ "skew-x": pe() }],
"skew-y": [{ "skew-y": pe() }],
transform: [{ transform: [
- UP,
- RP,
+ vF,
+ pF,
"",
"none",
"gpu",
@@ -35062,9 +35073,9 @@ var Hle = (e, t) => {
"translate-z": [{ "translate-z": me() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- NP,
- UP,
- RP
+ cF,
+ vF,
+ pF
] }],
accent: [{ accent: N() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -35114,8 +35125,8 @@ var Hle = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- UP,
- RP
+ vF,
+ pF
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -35201,15 +35212,15 @@ var Hle = (e, t) => {
"scroll",
"contents",
"transform",
- UP,
- RP
+ vF,
+ pF
] }],
fill: [{ fill: ["none", ...N()] }],
"stroke-w": [{ stroke: [
- MP,
- WP,
- zP,
- BP
+ sF,
+ yF,
+ mF,
+ hF
] }],
stroke: [{ stroke: ["none", ...N()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -35467,16 +35478,16 @@ var Hle = (e, t) => {
"selection"
]
};
-}, Aue = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (rF(e, "cacheSize", t), rF(e, "prefix", n), rF(e, "experimentalParseClassName", r), iF(e.theme, a.theme), iF(e.classGroups, a.classGroups), iF(e.conflictingClassGroups, a.conflictingClassGroups), iF(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), rF(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), rF(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), aF(e.theme, i.theme), aF(e.classGroups, i.classGroups), aF(e.conflictingClassGroups, i.conflictingClassGroups), aF(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), oF(e, i, "postfixLookupClassGroups"), oF(e, i, "orderSensitiveModifiers"), e), rF = (e, t, n) => {
+}, rue = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (MF(e, "cacheSize", t), MF(e, "prefix", n), MF(e, "experimentalParseClassName", r), NF(e.theme, a.theme), NF(e.classGroups, a.classGroups), NF(e.conflictingClassGroups, a.conflictingClassGroups), NF(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), MF(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), MF(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), PF(e.theme, i.theme), PF(e.classGroups, i.classGroups), PF(e.conflictingClassGroups, i.conflictingClassGroups), PF(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), FF(e, i, "postfixLookupClassGroups"), FF(e, i, "orderSensitiveModifiers"), e), MF = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, iF = (e, t) => {
- if (t) for (let n in t) rF(e, n, t[n]);
-}, aF = (e, t) => {
- if (t) for (let n in t) oF(e, t, n);
-}, oF = (e, t, n) => {
+}, NF = (e, t) => {
+ if (t) for (let n in t) MF(e, n, t[n]);
+}, PF = (e, t) => {
+ if (t) for (let n in t) FF(e, t, n);
+}, FF = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, jue = (e, ...t) => typeof e == "function" ? DP(nF, e, ...t) : DP(() => Aue(nF(), e), ...t), Mue = [
+}, iue = (e, ...t) => typeof e == "function" ? nF(jF, e, ...t) : nF(() => rue(jF(), e), ...t), aue = [
"large-title",
"display-1",
"display-2",
@@ -35490,17 +35501,17 @@ var Hle = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Nue = [
+], oue = [
"regular",
"medium",
"semibold",
"bold"
-], sF = jue({ extend: { classGroups: { "font-size": [{ text: Mue.flatMap((e) => Nue.map((t) => `${e}-${t}`)) }] } } });
-function cF(e) {
+], IF = iue({ extend: { classGroups: { "font-size": [{ text: aue.flatMap((e) => oue.map((t) => `${e}-${t}`)) }] } } });
+function LF(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Pue = typeof window < "u" ? P.useLayoutEffect : P.useEffect, lF = cF({
+var sue = typeof window < "u" ? P.useLayoutEffect : P.useEffect, RF = LF({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -35522,9 +35533,9 @@ var Pue = typeof window < "u" ? P.useLayoutEffect : P.useEffect, lF = cF({
gray: "text-text-primary"
}
});
-function uF({ children: e, className: t, ref: n, container: r, ...i }) {
+function zF({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, P.useRef)(null), [o, s] = (0, P.useState)(null);
- Pue(() => {
+ sue(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -35560,7 +35571,7 @@ function uF({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: sF("pointer-events-none absolute left-0 top-0", lF.radius[o.variant], lF.thumb[o.variant]),
+ className: IF("pointer-events-none absolute left-0 top-0", RF.radius[o.variant], RF.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -35571,43 +35582,43 @@ function uF({ children: e, className: t, ref: n, container: r, ...i }) {
return r === void 0 ? /* @__PURE__ */ (0, F.jsxs)("div", {
ref: c,
role: "group",
- className: sF("relative inline-flex items-center gap-1", t),
+ className: IF("relative inline-flex items-center gap-1", t),
...i,
children: [l, e]
}) : r ? (0, Lt.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var dF = null, fF = null, pF = /* @__PURE__ */ new Set();
-function Fue(e) {
- return pF.add(e), () => {
- pF.delete(e);
+var BF = null, VF = null, HF = /* @__PURE__ */ new Set();
+function cue(e) {
+ return HF.add(e), () => {
+ HF.delete(e);
};
}
-function Iue() {
- for (let e of [...pF]) e();
+function lue() {
+ for (let e of [...HF]) e();
}
-var Lue = { render(e) {
- fF = e, (0, Lt.flushSync)(Iue);
+var uue = { render(e) {
+ VF = e, (0, Lt.flushSync)(lue);
} };
-function Rue(e) {
- return dF = e, fF = null, Lue;
+function due(e) {
+ return BF = e, VF = null, uue;
}
-function zue() {
- let e = (0, P.useSyncExternalStore)(Fue, () => fF);
- return dF && e ? /* @__PURE__ */ (0, F.jsx)(Bue, {
- host: dF,
+function fue() {
+ let e = (0, P.useSyncExternalStore)(cue, () => VF);
+ return BF && e ? /* @__PURE__ */ (0, F.jsx)(pue, {
+ host: BF,
props: e
}) : null;
}
-function Bue({ host: e, props: t }) {
- let n = fP(t);
+function pue({ host: e, props: t }) {
+ let n = IP(t);
return n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(Vue, {
+ /* @__PURE__ */ (0, F.jsx)(mue, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, F.jsx)(Hue, {
+ n.crumb ? /* @__PURE__ */ (0, F.jsx)(hue, {
host: e,
label: n.crumb
}) : null,
@@ -35616,13 +35627,13 @@ function Bue({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, F.jsx)(Uue, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, F.jsx)(gue, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Vue({ host: e, pressed: t, menu: n }) {
+function mue({ host: e, pressed: t, menu: n }) {
let r = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -35632,7 +35643,7 @@ function Vue({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, F.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, F.jsx)(uF, {
+ children: /* @__PURE__ */ (0, F.jsx)(zF, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -35646,13 +35657,13 @@ function Vue({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, F.jsx)(gP, { name: i }), /* @__PURE__ */ (0, F.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, F.jsx)(HP, { name: i }), /* @__PURE__ */ (0, F.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function Hue({ host: e, label: t }) {
+function hue({ host: e, label: t }) {
return /* @__PURE__ */ (0, F.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -35662,20 +35673,20 @@ function Hue({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, F.jsx)(gP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, F.jsx)("li", {
+ }), /* @__PURE__ */ (0, F.jsx)(HP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, F.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, F.jsx)("span", { children: t })
})] })
});
}
-function Uue({ host: e, lede: t }) {
+function gue({ host: e, lede: t }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: hP }
- }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Wue, { text: t.text }), t.total ? /* @__PURE__ */ (0, F.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: zP }
+ }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(_ue, { text: t.text }), t.total ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -35685,7 +35696,7 @@ function Uue({ host: e, lede: t }) {
}) : null] })
});
}
-function Wue({ text: e }) {
+function _ue({ text: e }) {
let t = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
qs(t.current, e);
@@ -35695,29 +35706,29 @@ function Wue({ text: e }) {
});
}
// src/core/text-lang.ts
-var Gue = /[぀-ヿㇰ-ㇿヲ-゚]/, Kue = /[㐀-鿿豈-﫿]/, que = /[A-Za-z]/;
-function mF(e) {
+var vue = /[぀-ヿㇰ-ㇿヲ-゚]/, yue = /[㐀-鿿豈-﫿]/, bue = /[A-Za-z]/;
+function UF(e) {
let t = String(e ?? "");
- if (Gue.test(t)) return "ja";
- if (!Kue.test(t) && que.test(t)) return "en";
+ if (vue.test(t)) return "ja";
+ if (!yue.test(t) && bue.test(t)) return "en";
}
-var Jue = (e) => {
- let t = mF(e);
+var xue = (e) => {
+ let t = UF(e);
return t ? ` lang="${t}"` : "";
-}, Yue = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Xue = (e, t = e?.name) => {
+}, Sue = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Cue = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(Yue, "") : n;
-}, Zue = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Que = (e) => {
+ return e?.is_jav ? n.replace(Sue, "") : n;
+}, wue = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Tue = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(Zue) || t[0] || "";
+ return t.find(wue) || t[0] || "";
};
-function hF(e, t = e?.name) {
- let n = Xue(e, t), r = String(e?.code || "").trim().toUpperCase();
+function WF(e, t = e?.name) {
+ let n = Cue(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Que(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Tue(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -35728,23 +35739,23 @@ function hF(e, t = e?.name) {
badges: f
};
}
-var gF = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = hF(e, t);
+var GF = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = WF(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function _F(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = hF(e, t);
+function KF(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = WF(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Jue(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${xue(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var vF = "/api/tasks", yF = ["tasks"];
-function bF(e, t) {
+var qF = "/api/tasks", JF = ["tasks"];
+function Eue(e, t) {
let n = 0, r = 0, i = 0;
for (let a of t) for (let [t, o] of Object.entries(e?.[String(a.id)] || {})) n += o, (t === "pending" || t === "running") && (r += o), (t === "failed" || t === "interrupted") && (i += o);
return {
@@ -35754,7 +35765,7 @@ function bF(e, t) {
settled: n - r
};
}
-function xF(e) {
+function Due(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -35765,11 +35776,11 @@ function xF(e) {
}
return [...t.values()];
}
-var SF = (e, t) => B(`${vF}?${new URLSearchParams({
+var Oue = (e, t) => B(`${qF}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function CF(...e) {
+function kue(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -35777,26 +35788,26 @@ function CF(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var wF = 2e3, TF = 1e4, EF = (e) => e?.running?.length ? wF : TF, DF = (e) => B(vF, e);
-async function OF(e) {
+var Aue = 2e3, jue = 1e4, YF = (e) => e?.running?.length ? Aue : jue, XF = (e) => B(qF, e);
+async function Mue(e) {
await H.fetchQuery({
- queryKey: yF,
- queryFn: () => DF(e)
+ queryKey: JF,
+ queryFn: () => XF(e)
});
}
-var kF = {
+var Nue = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, AF = {
+}, Pue = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, jF = (e) => AF[e] || e, MF = {
+}, Fue = (e) => Pue[e] || e, ZF = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -35873,7 +35884,7 @@ var kF = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, NF = [
+}, Iue = [
"gone_count",
"unclear_count",
"source_failed",
@@ -35895,14 +35906,14 @@ var kF = {
"paused_count",
"miss",
"incomplete"
-], PF = ["face_match_unavailable"], FF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || PF.some((t) => e.result_summary?.[t] === !0) || NF.some((t) => Number(e.result_summary?.[t]) > 0);
-function IF(e) {
+], Lue = ["face_match_unavailable"], QF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Lue.some((t) => e.result_summary?.[t] === !0) || Iue.some((t) => Number(e.result_summary?.[t]) > 0);
+function Rue(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var LF = /* @__PURE__ */ new Set(["library-processing"]);
-function RF(e, t = !0) {
- if (!FF(e) && e.status !== "failed" || LF.has(e.task_key) && !t) return null;
+var $F = /* @__PURE__ */ new Set(["library-processing"]);
+function zue(e, t = !0) {
+ if (!QF(e) && e.status !== "failed" || $F.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -35920,12 +35931,12 @@ function RF(e, t = !0) {
label: n[1]
} : null;
}
-function zF(e) {
+function Bue(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) LF.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) $F.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function BF(e) {
+function Vue(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -35934,7 +35945,7 @@ function BF(e) {
}
return t;
}
-function VF(e, t) {
+function Hue(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -35956,12 +35967,12 @@ function VF(e, t) {
}
return n;
}
-var HF = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !FF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), UF = (e) => e.status === "pending" || e.status === "running";
-function WF(e) {
+var Uue = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !QF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), eI = (e) => e.status === "pending" || e.status === "running";
+function Wue(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, JF(e.error) || rI(o) || (UF(e) && i > 0 ? `${KF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, rI(e.error) || Zue(o) || (eI(e) && i > 0 ? `${nI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function GF(e) {
+function tI(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -35970,19 +35981,19 @@ function GF(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function KF(e, t) {
+function nI(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function qF(e) {
+function Gue(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function JF(e) {
- let t = qF(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function rI(e) {
+ let t = Gue(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? bn(n[1]) : t;
}
-var YF = {
+var Kue = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -35999,11 +36010,11 @@ var YF = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, XF = {
+}, iI = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, ZF = {
+}, que = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -36014,8 +36025,8 @@ var YF = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, QF = (e) => YF[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${XF[t.toLowerCase()]} 资料页` : `已保存来自 ${XF[t.toLowerCase()]} 的资料`);
-function $F(e) {
+}, Jue = (e) => Kue[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${iI[t.toLowerCase()]} 资料页` : `已保存来自 ${iI[t.toLowerCase()]} 的资料`);
+function aI(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -36025,7 +36036,7 @@ function $F(e) {
minute: "2-digit"
});
}
-var eI = /* @__PURE__ */ new Set([
+var Yue = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -36034,20 +36045,20 @@ var eI = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function tI(e) {
- let t = nI(e);
+function oI(e) {
+ let t = Xue(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function nI(e) {
- return Object.entries(e || {}).filter(([e, t]) => !eI.has(e) && (e in MF || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? JF(String(t)) : e === "outcome" || e === "result" ? QF(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${MF[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${ZF[String(t)] || "批量操作"}` : `${MF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Xue(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Yue.has(e) && (e in ZF || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? rI(String(t)) : e === "outcome" || e === "result" ? Jue(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${ZF[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${que[String(t)] || "批量操作"}` : `${ZF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var rI = (e) => tI(e).join(" · ");
+var Zue = (e) => oI(e).join(" · ");
// src/react/use-entity-names.ts
-function iI() {
+function sI() {
return (0, P.useSyncExternalStore)(Jt, qt, qt);
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var aI = cF({
+var cI = LF({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -36058,20 +36069,20 @@ var aI = cF({
small: "size-4 shrink-0"
}
});
-function oI({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function lI({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
ref: i,
type: r,
- className: sF(aI.base, aI.size[t], n),
+ className: IF(cI.base, cI.size[t], n),
...a,
children: /* @__PURE__ */ (0, F.jsx)(e, {
- className: aI.icon[t],
+ className: cI.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function sI() {
+function uI() {
return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -36085,7 +36096,7 @@ function sI() {
});
}
// src/react/components/use-stuck.ts
-function cI(e) {
+function dI(e) {
(0, P.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -36102,7 +36113,7 @@ function cI(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function lI(e, t = !0) {
+function fI(e, t = !0) {
let [n, r] = (0, P.useState)(null), i = (0, P.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -36116,17 +36127,17 @@ function lI(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var uI = ({ className: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
+var Que = ({ className: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: zs("正在处理") }
});
-function dI({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, F.jsx)(oI, {
+function pI({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)(lI, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? uI : t,
+ icon: n && r === "spinner" ? Que : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -36136,9 +36147,9 @@ function dI({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function fI({ title: e, children: t }) {
+function $ue({ title: e, children: t }) {
let n = (0, P.useRef)(null);
- return cI(n), /* @__PURE__ */ (0, F.jsxs)("div", {
+ return dI(n), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -36151,20 +36162,20 @@ function fI({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, F.jsx)(sI, {})
+ /* @__PURE__ */ (0, F.jsx)(uI, {})
]
});
}
-function pI({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, P.useRef)(null), f = lI(), p = lI(u);
- return cI(d), /* @__PURE__ */ (0, F.jsxs)("div", {
+function mI({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, P.useRef)(null), f = fI(), p = fI(u);
+ return dI(d), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: sF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: IF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
n === null ? null : /* @__PURE__ */ (0, F.jsx)("div", {
@@ -36172,37 +36183,37 @@ function pI({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: sF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: IF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, F.jsx)("div", {
ref: p,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: sF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: IF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, F.jsx)(sI, {})
+ /* @__PURE__ */ (0, F.jsx)(uI, {})
]
});
}
-var mI = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+var ede = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
function hI({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: sF(mI, r),
+ className: IF(ede, r),
onClick: n,
children: e
});
}
-var gI = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function _I({ children: e, onPress: t, busy: n = !1 }) {
+var tde = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function gI({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: gI,
+ className: tde,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -36212,13 +36223,13 @@ function _I({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var vI = (e, t) => [
+var _I = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function yI(e, t, n) {
+function vI(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -36242,17 +36253,17 @@ function yI(e, t, n) {
h: e.offsetHeight
};
}
-function bI(e, t, n, r, { axis: i = "x" } = {}) {
+function yI(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, P.useRef)(null), o = (0, P.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? yI(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? vI(u, l, i) : null;
if (!d || !d.w || !d.h) {
Uc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && vI(f, d)) && Vc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && _I(f, d)) && Vc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -36273,8 +36284,8 @@ function bI(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? yI(o, r, i) : null, l = a.current;
- s && l && vI(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? vI(o, r, i) : null, l = a.current;
+ s && l && _I(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -36305,7 +36316,7 @@ function bI(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var xI = cF({
+var bI = LF({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -36338,52 +36349,52 @@ function q({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, F.jsxs)("button", {
ref: c,
type: s,
- className: sF(xI.base, xI.size[t], xI.variant[e], n && xI.iconOnlySize[t], o),
+ className: IF(bI.base, bI.size[t], bI.variant[e], n && bI.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, F.jsx)(r, {
- className: xI.icon[t],
+ className: bI.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, F.jsx)("span", {
- className: xI.label[t],
+ className: bI.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, F.jsx)(i, {
- className: xI.icon[t],
+ className: bI.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function SI({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function xI({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, F.jsxs)("a", {
ref: s,
- className: sF(xI.base, xI.size[t], xI.variant[e], n && xI.iconOnlySize[t], o),
+ className: IF(bI.base, bI.size[t], bI.variant[e], n && bI.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, F.jsx)(r, {
- className: xI.icon[t],
+ className: bI.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, F.jsx)("span", {
- className: xI.label[t],
+ className: bI.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, F.jsx)(i, {
- className: xI.icon[t],
+ className: bI.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var CI = Symbol("default");
-function wI({ values: e, children: t }) {
+var SI = Symbol("default");
+function CI({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ P.createElement(n.Provider, { value: r }, t);
return t;
}
-function TI(e) {
+function wI(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, P.useMemo)(() => {
let e, l, u;
@@ -36417,11 +36428,11 @@ function TI(e) {
c
]);
}
-function EI(e, t) {
+function TI(e, t) {
let n = (0, P.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || CI;
+ let e = t || SI;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -36430,8 +36441,8 @@ function EI(e, t) {
}
return n;
}
-function DI(e, t, n) {
- let { ref: r, ...i } = EI(n, e.slot) || {}, a = aS((0, P.useMemo)(() => Xx(t, r), [t, r])), o = K(i, e);
+function EI(e, t, n) {
+ let { ref: r, ...i } = TI(n, e.slot) || {}, a = aS((0, P.useMemo)(() => Xx(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -36449,7 +36460,7 @@ function DI(e, t, n) {
...e.style
}), [o, a];
}
-function OI(e = !0) {
+function DI(e = !0) {
let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(!1), i = (0, P.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -36457,12 +36468,12 @@ function OI(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function kI(e) {
+function OI(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function $ue(e, t, n) {
+function nde(e, t, n) {
let { render: r, ...i } = t, a = (0, P.useRef)(null), o = (0, P.useMemo)(() => Xx(n, a), [n, a]);
Jb(() => {}, [e, r]);
let s = {
@@ -36471,19 +36482,19 @@ function $ue(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ P.createElement(e, s);
}
-var AI = {}, jI = new Proxy({}, { get(e, t) {
+var kI = {}, AI = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = AI[t];
- return n || (n = /*#__PURE__*/ (0, P.forwardRef)($ue.bind(null, t)), AI[t] = n), n;
-} }), MI = /*#__PURE__*/ (0, P.createContext)(null), NI = /*#__PURE__*/ (0, P.createContext)(null), PI = /*#__PURE__*/ (0, P.createContext)(null), FI = {
+ let n = kI[t];
+ return n || (n = /*#__PURE__*/ (0, P.forwardRef)(nde.bind(null, t)), kI[t] = n), n;
+} }), jI = /*#__PURE__*/ (0, P.createContext)(null), MI = /*#__PURE__*/ (0, P.createContext)(null), NI = /*#__PURE__*/ (0, P.createContext)(null), PI = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return II(e, null, t);
+ return FI(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return II(e, t, n);
+ return FI(e, t, n);
}
};
-function II(e, t, n) {
+function FI(e, t, n) {
return Ab({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -36494,11 +36505,11 @@ function II(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, ede(e, t, n));
+ }), r, rde(e, t, n));
}
});
}
-function ede(e, t, n) {
+function rde(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -36517,24 +36528,24 @@ function ede(e, t, n) {
}
return s;
}
-var LI = /*#__PURE__*/ (0, P.createContext)(FI);
-function RI(e) {
+var II = /*#__PURE__*/ (0, P.createContext)(PI);
+function LI(e) {
return (0, P.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var zI = /*#__PURE__*/ (0, P.createContext)({}), BI = /*#__PURE__*/ uS(function(e, t) {
- [e, t] = DI(e, t, zI);
- let { elementType: n = "label", ...r } = e, i = jI[n];
+var RI = /*#__PURE__*/ (0, P.createContext)({}), zI = /*#__PURE__*/ uS(function(e, t) {
+ [e, t] = EI(e, t, RI);
+ let { elementType: n = "label", ...r } = e, i = AI[n];
return /*#__PURE__*/ P.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), tde = /*#__PURE__*/ (0, P.createContext)(null), VI = /*#__PURE__*/ (0, P.createContext)({}), HI = /*#__PURE__*/ uS(function(e, t) {
- [e, t] = DI(e, t, VI);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = xC(e, t);
- i = rde(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = GT(e), { hoverProps: l, isHovered: u } = YT({
+}), ide = /*#__PURE__*/ (0, P.createContext)(null), BI = /*#__PURE__*/ (0, P.createContext)({}), VI = /*#__PURE__*/ uS(function(e, t) {
+ [e, t] = EI(e, t, BI);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Wie(e, t);
+ i = ode(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ZT(e), { hoverProps: l, isHovered: u } = tE({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -36544,7 +36555,7 @@ var zI = /*#__PURE__*/ (0, P.createContext)({}), BI = /*#__PURE__*/ uS(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = TI({
+ }, f = wI({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -36553,15 +36564,15 @@ var zI = /*#__PURE__*/ (0, P.createContext)({}), BI = /*#__PURE__*/ uS(function(
let g = (0, P.useRef)(r);
(0, P.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && KC(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && QC(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = QS(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ P.createElement(jI.button, {
+ let _ = dC(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ P.createElement(AI.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -36575,61 +36586,61 @@ var zI = /*#__PURE__*/ (0, P.createContext)({}), BI = /*#__PURE__*/ uS(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ P.createElement(tde.Provider, { value: { id: m } }, f.children));
-}), nde = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function rde(e, t) {
+ }, /*#__PURE__*/ P.createElement(ide.Provider, { value: { id: m } }, f.children));
+}), ade = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function ode(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !nde.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !ade.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var UI = /*#__PURE__*/ (0, P.createContext)({}), WI = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, UI);
- let { children: n, level: r = 3, className: i, ...a } = e, o = jI[`h${r}`];
+var HI = /*#__PURE__*/ (0, P.createContext)({}), UI = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, HI);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = AI[`h${r}`];
return /*#__PURE__*/ P.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), GI = /*#__PURE__*/ (0, P.createContext)({}), ide = /*#__PURE__*/ uS(function(e, t) {
- [e, t] = DI(e, t, GI);
- let { elementType: n = "span", ...r } = e, i = jI[n];
+}), WI = /*#__PURE__*/ (0, P.createContext)({}), sde = /*#__PURE__*/ uS(function(e, t) {
+ [e, t] = EI(e, t, WI);
+ let { elementType: n = "span", ...r } = e, i = AI[n];
return /*#__PURE__*/ P.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), KI = /*#__PURE__*/ (0, P.createContext)(null), qI = /*#__PURE__*/ (0, P.createContext)(null), JI = /*#__PURE__*/ (0, P.createContext)(null), YI = /*#__PURE__*/ (0, P.createContext)(null), ade = /*#__PURE__*/ (0, P.createContext)(null), XI = /*#__PURE__*/ (0, P.createContext)(null);
-function ode(e, t) {
- let { validationBehavior: n } = EI(qI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useContext)(ade), a = aS((0, P.useMemo)(() => Xx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...kI(e),
+}), GI = /*#__PURE__*/ (0, P.createContext)(null), KI = /*#__PURE__*/ (0, P.createContext)(null), qI = /*#__PURE__*/ (0, P.createContext)(null), JI = /*#__PURE__*/ (0, P.createContext)(null), cde = /*#__PURE__*/ (0, P.createContext)(null), YI = /*#__PURE__*/ (0, P.createContext)(null);
+function lde(e, t) {
+ let { validationBehavior: n } = TI(KI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useContext)(cde), a = aS((0, P.useMemo)(() => Xx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...OI(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? _ae(o, i, a) : pw(o, vw(e), a), a];
+ return [i ? pae(o, i, a) : yw(o, ww(e), a), a];
}
-var sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+var ude = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = DI(r, t, JI);
- let [i, a] = ode(e, n);
- return /*#__PURE__*/ P.createElement(XI.Provider, { value: {
+ [e, t] = EI(r, t, qI);
+ let [i, a] = lde(e, n);
+ return /*#__PURE__*/ P.createElement(YI.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ P.createElement(cde, {
+ } }, /*#__PURE__*/ P.createElement(dde, {
...e,
ref: t
}));
-}), cde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, P.useContext)(XI), { isFocused: p, isFocusVisible: m, focusProps: h } = GT(), g = a || o, { hoverProps: _, isHovered: v } = YT({
+}), dde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, P.useContext)(YI), { isFocused: p, isFocusVisible: m, focusProps: h } = ZT(), g = a || o, { hoverProps: _, isHovered: v } = tE({
...e,
isDisabled: g
- }), y = TI({
+ }), y = wI({
...e,
defaultClassName: u,
values: {
@@ -36644,8 +36655,8 @@ var sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = QS(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(jI.label, {
+ }), b = dC(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(AI.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -36659,20 +36670,20 @@ var sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ P.createElement(Dw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(Nw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), ZI = /*#__PURE__*/ (0, P.createContext)({}), QI = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, ZI);
+}), XI = /*#__PURE__*/ (0, P.createContext)({}), ZI = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, XI);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = YT({
+ let { hoverProps: l, isHovered: u } = tE({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = GT({ within: !0 }), m = TI({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ZT({ within: !0 }), m = wI({
...e,
values: {
isHovered: u,
@@ -36683,7 +36694,7 @@ var sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ P.createElement(jI.div, {
+ return /*#__PURE__*/ P.createElement(AI.div, {
...K(c, p, l),
...m,
ref: t,
@@ -36696,18 +36707,18 @@ var sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), $I = /*#__PURE__*/ (0, P.createContext)({}), lde = (e) => {
+}), QI = /*#__PURE__*/ (0, P.createContext)({}), fde = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, ude = /*#__PURE__*/ uS(function(e, t) {
- [e, t] = DI(e, t, $I);
- let { hoverProps: n, isHovered: r } = YT({
+}, pde = /*#__PURE__*/ uS(function(e, t) {
+ [e, t] = EI(e, t, QI);
+ let { hoverProps: n, isHovered: r } = tE({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = GT({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ZT({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = TI({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = wI({
...e,
values: {
isHovered: r,
@@ -36718,8 +36729,8 @@ var sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ P.createElement(jI.input, {
- ...K(lde(e), o, n),
+ return /*#__PURE__*/ P.createElement(AI.input, {
+ ...K(fde(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -36728,24 +36739,24 @@ var sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), dde = 0, fde = 100, pde = 1;
-function mde(e) {
- let { isDisabled: t = !1, minValue: n = dde, maxValue: r = fde, numberFormatter: i, step: a = pde, orientation: o = "horizontal" } = e, s = (0, P.useMemo)(() => {
+}), mde = 0, hde = 100, gde = 1;
+function _de(e) {
+ let { isDisabled: t = !1, minValue: n = mde, maxValue: r = hde, numberFormatter: i, step: a = gde, orientation: o = "horizontal" } = e, s = (0, P.useMemo)(() => {
let e = (r - n) / 10;
- return e = xw(e, 0, e + a, a), Math.max(e, a);
+ return e = Dw(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, P.useCallback)((e) => e?.map((t, i) => xw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, P.useCallback)((e) => e?.map((t, i) => Dw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, P.useMemo)(() => c(tL(e.value)), [e.value, c]), u = (0, P.useMemo)(() => c(tL(e.defaultValue) ?? [n]), [
+ ]), l = (0, P.useMemo)(() => c(eL(e.value)), [e.value, c]), u = (0, P.useMemo)(() => c(eL(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = nL(e.value, e.defaultValue, e.onChange), f = nL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = _w(l, u, d), [h] = (0, P.useState)(p), [g, _] = (0, P.useState)(Array(p.length).fill(!1)), v = (0, P.useRef)(Array(p.length).fill(!0)), [y, b] = (0, P.useState)(void 0), x = (0, P.useRef)(p), S = (0, P.useRef)(g), C = (e) => {
+ ]), d = tL(e.value, e.defaultValue, e.onChange), f = tL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = Cw(l, u, d), [h] = (0, P.useState)(p), [g, _] = (0, P.useState)(Array(p.length).fill(!1)), v = (0, P.useRef)(Array(p.length).fill(!0)), [y, b] = (0, P.useState)(void 0), x = (0, P.useRef)(p), S = (0, P.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -36768,15 +36779,15 @@ function mde(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = xw(n, r, i, a);
- let o = eL(x.current, e, n);
+ n = Dw(n, r, i, a);
+ let o = $I(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = eL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = $I(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, P.useRef)(null);
function ee(e = p) {
@@ -36797,15 +36808,15 @@ function mde(e) {
return Math.round((e - n) / a) * a + n;
}
function N(e) {
- return yw(ne(e * (r - n) + n), n, r);
+ return Tw(ne(e * (r - n) + n), n, r);
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, xw(p[e] + i, n, r, a));
+ A(e, Dw(p[e] + i, n, r, a));
}
function ie(e, t = 1) {
let i = Math.max(t, a);
- A(e, xw(p[e] - i, n, r, a));
+ A(e, Dw(p[e] - i, n, r, a));
}
return {
values: p,
@@ -36834,31 +36845,31 @@ function mde(e) {
isDisabled: t
};
}
-function eL(e, t, n) {
+function $I(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function tL(e) {
+function eL(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function nL(e, t, n) {
+function tL(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var hde = /*#__PURE__*/ (0, P.createContext)(null), rL = /*#__PURE__*/ (0, P.createContext)(null), iL = /*#__PURE__*/ (0, P.createContext)(null), gde = /*#__PURE__*/ (0, P.createContext)(null), _de = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, hde);
- let n = (0, P.useRef)(null), r = Sae(e.formatOptions), i = mde({
+var vde = /*#__PURE__*/ (0, P.createContext)(null), nL = /*#__PURE__*/ (0, P.createContext)(null), rL = /*#__PURE__*/ (0, P.createContext)(null), yde = /*#__PURE__*/ (0, P.createContext)(null), bde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, vde);
+ let n = (0, P.useRef)(null), r = vae(e.formatOptions), i = _de({
...e,
numberFormatter: r
- }), [a, o] = OI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Cae({
+ }), [a, o] = DI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = yae({
...e,
label: o
- }, i, n), d = TI({
+ }, i, n), d = wI({
...e,
values: {
orientation: i.orientation,
@@ -36866,32 +36877,32 @@ var hde = /*#__PURE__*/ (0, P.createContext)(null), rL = /*#__PURE__*/ (0, P.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = QS(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ P.createElement(wI, { values: [
- [rL, i],
- [iL, {
+ }), f = dC(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ P.createElement(CI, { values: [
+ [nL, i],
+ [rL, {
...c,
ref: n
}],
- [gde, u],
- [zI, {
+ [yde, u],
+ [RI, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ P.createElement(jI.div, {
+ ] }, /*#__PURE__*/ P.createElement(AI.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), vde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, iL);
- let n = (0, P.useContext)(rL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = YT({
+}), xde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, rL);
+ let n = (0, P.useContext)(nL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = tE({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = TI({
+ }), l = wI({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -36901,7 +36912,7 @@ var hde = /*#__PURE__*/ (0, P.createContext)(null), rL = /*#__PURE__*/ (0, P.cre
state: n
}
});
- return /*#__PURE__*/ P.createElement(jI.div, {
+ return /*#__PURE__*/ P.createElement(AI.div, {
...K(o, s),
...l,
ref: t,
@@ -36909,14 +36920,14 @@ var hde = /*#__PURE__*/ (0, P.createContext)(null), rL = /*#__PURE__*/ (0, P.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), yde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, P.useContext)(rL), { ref: i } = EI(iL), { index: a = 0 } = e, o = (0, P.useRef)(null), s = n || o, [c, l] = OI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = wae({
+}), Sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, P.useContext)(nL), { ref: i } = TI(rL), { index: a = 0 } = e, o = (0, P.useRef)(null), s = n || o, [c, l] = DI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = bae({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = GT(), { hoverProps: v, isHovered: y } = YT(e), b = TI({
+ }, r), { focusProps: g, isFocusVisible: _ } = ZT(), { hoverProps: v, isHovered: y } = tE(e), b = wI({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -36927,8 +36938,8 @@ var hde = /*#__PURE__*/ (0, P.createContext)(null), rL = /*#__PURE__*/ (0, P.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = QS(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ P.createElement(jI.div, {
+ }), x = dC(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ P.createElement(AI.div, {
...K(x, u, v),
...b,
ref: t,
@@ -36941,330 +36952,330 @@ var hde = /*#__PURE__*/ (0, P.createContext)(null), rL = /*#__PURE__*/ (0, P.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ P.createElement(Dw, null, /*#__PURE__*/ P.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(Nw, null, /*#__PURE__*/ P.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ P.createElement(wI, { values: [[zI, {
+ })), /*#__PURE__*/ P.createElement(CI, { values: [[RI, {
...f,
ref: c
}]] }, b.children));
-}), aL = {};
-aL = {
+}), iL = {};
+iL = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var oL = {};
-oL = {
+var aL = {};
+aL = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var sL = {};
-sL = {
+var oL = {};
+oL = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var cL = {};
-cL = {
+var sL = {};
+sL = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var lL = {};
-lL = {
+var cL = {};
+cL = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var uL = {};
-uL = {
+var lL = {};
+lL = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var dL = {};
-dL = {
+var uL = {};
+uL = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var fL = {};
-fL = {
+var dL = {};
+dL = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var pL = {};
-pL = {
+var fL = {};
+fL = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var mL = {};
-mL = {
+var pL = {};
+pL = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var hL = {};
-hL = {
+var mL = {};
+mL = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var gL = {};
-gL = {
+var hL = {};
+hL = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var _L = {};
-_L = {
+var gL = {};
+gL = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var vL = {};
-vL = {
+var _L = {};
+_L = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var yL = {};
-yL = {
+var vL = {};
+vL = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var bL = {};
-bL = {
+var yL = {};
+yL = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var xL = {};
-xL = {
+var bL = {};
+bL = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var SL = {};
-SL = {
+var xL = {};
+xL = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var CL = {};
-CL = {
+var SL = {};
+SL = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var wL = {};
-wL = {
+var CL = {};
+CL = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var TL = {};
-TL = {
+var wL = {};
+wL = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var EL = {};
-EL = {
+var TL = {};
+TL = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var DL = {};
-DL = {
+var EL = {};
+EL = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var OL = {};
-OL = {
+var DL = {};
+DL = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var kL = {};
-kL = {
+var OL = {};
+OL = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var AL = {};
-AL = {
+var kL = {};
+kL = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var jL = {};
-jL = {
+var AL = {};
+AL = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var ML = {};
-ML = {
+var jL = {};
+jL = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var NL = {};
-NL = {
+var ML = {};
+ML = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var PL = {};
-PL = {
+var NL = {};
+NL = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var FL = {};
-FL = {
+var PL = {};
+PL = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var IL = {};
-IL = {
+var FL = {};
+FL = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var LL = {};
-LL = {
+var IL = {};
+IL = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var RL = {};
-RL = {
+var LL = {};
+LL = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var zL = {};
-zL = {
- "ar-AE": aL,
- "bg-BG": oL,
- "cs-CZ": sL,
- "da-DK": cL,
- "de-DE": lL,
- "el-GR": uL,
- "en-US": dL,
- "es-ES": fL,
- "et-EE": pL,
- "fi-FI": mL,
- "fr-FR": hL,
- "he-IL": gL,
- "hr-HR": _L,
- "hu-HU": vL,
- "it-IT": yL,
- "ja-JP": bL,
- "ko-KR": xL,
- "lt-LT": SL,
- "lv-LV": CL,
- "nb-NO": wL,
- "nl-NL": TL,
- "pl-PL": EL,
- "pt-BR": DL,
- "pt-PT": OL,
- "ro-RO": kL,
- "ru-RU": AL,
- "sk-SK": jL,
- "sl-SI": ML,
- "sr-SP": NL,
- "sv-SE": PL,
- "tr-TR": FL,
- "uk-UA": IL,
- "zh-CN": LL,
- "zh-TW": RL
+var RL = {};
+RL = {
+ "ar-AE": iL,
+ "bg-BG": aL,
+ "cs-CZ": oL,
+ "da-DK": sL,
+ "de-DE": cL,
+ "el-GR": lL,
+ "en-US": uL,
+ "es-ES": dL,
+ "et-EE": fL,
+ "fi-FI": pL,
+ "fr-FR": mL,
+ "he-IL": hL,
+ "hr-HR": gL,
+ "hu-HU": _L,
+ "it-IT": vL,
+ "ja-JP": yL,
+ "ko-KR": bL,
+ "lt-LT": xL,
+ "lv-LV": SL,
+ "nb-NO": CL,
+ "nl-NL": wL,
+ "pl-PL": TL,
+ "pt-BR": EL,
+ "pt-PT": DL,
+ "ro-RO": OL,
+ "ru-RU": kL,
+ "sk-SK": AL,
+ "sl-SI": jL,
+ "sr-SP": ML,
+ "sv-SE": NL,
+ "tr-TR": PL,
+ "uk-UA": FL,
+ "zh-CN": IL,
+ "zh-TW": LL
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var BL = /*#__PURE__*/ (0, P.createContext)({}), VL = /*#__PURE__*/ (0, P.createContext)(null), bde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { render: n } = (0, P.useContext)(VL);
+var zL = /*#__PURE__*/ (0, P.createContext)({}), BL = /*#__PURE__*/ (0, P.createContext)(null), Cde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { render: n } = (0, P.useContext)(BL);
return /*#__PURE__*/ P.createElement(P.Fragment, null, n(e, t));
});
-function HL(e, t) {
+function VL(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, P.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ P.createElement(bde, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ P.createElement(Cde, { target: e });
}, [
t?.target,
r,
@@ -37272,7 +37283,7 @@ function HL(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function UL(e, t, n) {
+function HL(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -37293,13 +37304,13 @@ function UL(e, t, n) {
return (0, P.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var WL = /*#__PURE__*/ (0, P.createContext)({}), xde = /*#__PURE__*/ (0, P.createContext)(null);
-function GL(e) {
+var UL = /*#__PURE__*/ (0, P.createContext)({}), wde = /*#__PURE__*/ (0, P.createContext)(null);
+function WL(e) {
let t = (0, P.useRef)({});
- return /*#__PURE__*/ P.createElement(xde.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ P.createElement(wde.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var KL = /*#__PURE__*/ (0, P.createContext)({ isSelected: !1 }), qL = /*#__PURE__*/ (0, P.createContext)({}), Sde = /*#__PURE__*/ vS(class extends Sb {
+var GL = /*#__PURE__*/ (0, P.createContext)({ isSelected: !1 }), KL = /*#__PURE__*/ (0, P.createContext)({}), Tde = /*#__PURE__*/ TS(class extends Sb {
static {
this.type = "separator";
}
@@ -37312,14 +37323,14 @@ var KL = /*#__PURE__*/ (0, P.createContext)({ isSelected: !1 }), qL = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = DI(e, t, qL);
+ [e, t] = EI(e, t, KL);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = jI[c], { separatorProps: u } = joe({
+ let l = AI[c], { separatorProps: u } = Toe({
...s,
elementType: n,
orientation: r
- }), d = QS(e, { global: !0 });
+ }), d = dC(e, { global: !0 });
return /*#__PURE__*/ P.createElement(l, {
render: e.render,
...K(d, u),
@@ -37330,12 +37341,12 @@ var KL = /*#__PURE__*/ (0, P.createContext)({ isSelected: !1 }), qL = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function JL(e) {
+function qL(e) {
let t = P.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var YL = class {
+var JL = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -37379,19 +37390,19 @@ var YL = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, XL = class e extends Set {
+}, YL = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
// node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function Cde(e, t) {
+function Ede(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function ZL(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, P.useRef)(!1), [, s] = (0, P.useState)(!1), c = (0, P.useRef)(null), l = (0, P.useRef)(null), [, u] = (0, P.useState)(null), [d, f] = _w((0, P.useMemo)(() => QL(e.selectedKeys), [e.selectedKeys]), (0, P.useMemo)(() => QL(e.defaultSelectedKeys, new XL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, P.useState)(i);
+function XL(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, P.useRef)(!1), [, s] = (0, P.useState)(!1), c = (0, P.useRef)(null), l = (0, P.useRef)(null), [, u] = (0, P.useState)(null), [d, f] = Cw((0, P.useMemo)(() => ZL(e.selectedKeys), [e.selectedKeys]), (0, P.useMemo)(() => ZL(e.defaultSelectedKeys, new YL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, P.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, P.useRef)(i);
return (0, P.useEffect)(() => {
@@ -37418,17 +37429,17 @@ function ZL(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Cde(e, d)) && f(e);
+ (r || !Ede(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function QL(e, t) {
- return e ? e === "all" ? "all" : new XL(e) : t;
+function ZL(e, t) {
+ return e ? e === "all" ? "all" : new YL(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var $L = class e {
+var QL = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -37484,7 +37495,7 @@ var $L = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && NT(this.collection, n, e) < 0) && (e = n);
+ (!e || n && zT(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37492,7 +37503,7 @@ var $L = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && NT(this.collection, n, e) > 0) && (e = n);
+ (!e || n && zT(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37511,10 +37522,10 @@ var $L = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new XL([t], t, t);
+ if (this.state.selectedKeys === "all") n = new YL([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new XL(e, r, t);
+ n = new YL(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -37522,7 +37533,7 @@ var $L = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? NT(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? zT(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -37548,19 +37559,19 @@ var $L = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new XL(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new YL(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new XL([t], t, t) : new XL();
+ let n = this.canSelectItem(t) ? new YL([t], t, t) : new YL();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new XL();
+ let t = new YL();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -37572,7 +37583,7 @@ var $L = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(AT(kT(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(IT(FT(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -37583,7 +37594,7 @@ var $L = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new XL());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new YL());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -37624,9 +37635,9 @@ var $L = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, wde = class {
+}, Dde = class {
build(e, t) {
- return this.context = t, eR(() => this.iterateCollection(e));
+ return this.context = t, $L(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -37708,10 +37719,10 @@ var $L = class e {
...a,
key: l,
index: s,
- wrapper: Tde(e.wrapper, a.wrapper)
+ wrapper: Ode(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${tR(t.type)}> in <${tR(r?.type ?? "unknown parent type")}>. Only <${tR(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${eR(t.type)}> in <${eR(r?.type ?? "unknown parent type")}>. Only <${eR(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -37733,7 +37744,7 @@ var $L = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: eR(function* () {
+ childNodes: $L(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -37752,7 +37763,7 @@ var $L = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function eR(e) {
+function $L(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -37760,17 +37771,17 @@ function eR(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Tde(e, t) {
+function Ode(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function tR(e) {
+function eR(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function nR(e, t, n) {
- let r = (0, P.useMemo)(() => new wde(), []), { children: i, items: a, collection: o } = e;
+function tR(e, t, n) {
+ let r = (0, P.useMemo)(() => new Dde(), []), { children: i, items: a, collection: o } = e;
return (0, P.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -37784,27 +37795,27 @@ function nR(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function rR(e) {
- let { filter: t, layoutDelegate: n } = e, r = ZL(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = nR(e, (0, P.useCallback)((e) => t ? new YL(t(e)) : new YL(e), [t]), (0, P.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, P.useMemo)(() => new $L(a, r, { layoutDelegate: n }), [
+function nR(e) {
+ let { filter: t, layoutDelegate: n } = e, r = XL(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = tR(e, (0, P.useCallback)((e) => t ? new JL(t(e)) : new JL(e), [t]), (0, P.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, P.useMemo)(() => new QL(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return iR(a, o), {
+ return rR(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Ede(e, t) {
+function kde(e, t) {
let n = (0, P.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return iR(n, r), {
+ return rR(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function iR(e, t) {
+function rR(e, t) {
let n = (0, P.useRef)(null);
(0, P.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -37831,15 +37842,15 @@ function iR(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function aR(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, P.useRef)(null), s = IS((e) => {
+function iR(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, P.useRef)(null), s = YS((e) => {
for (let t of e) t.isIntersecting && r && r();
});
Jb(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: YC(t?.current),
+ root: tw(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -37854,42 +37865,42 @@ function aR(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var oR = /*#__PURE__*/ (0, P.createContext)(null), sR = /*#__PURE__*/ (0, P.createContext)(null), Dde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, oR);
- let n = (0, P.useContext)(sR);
- return n ? /*#__PURE__*/ P.createElement(cR, {
+var aR = /*#__PURE__*/ (0, P.createContext)(null), oR = /*#__PURE__*/ (0, P.createContext)(null), Ade = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, aR);
+ let n = (0, P.useContext)(oR);
+ return n ? /*#__PURE__*/ P.createElement(sR, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ P.createElement(hS, { content: /*#__PURE__*/ P.createElement(SS, e) }, (n) => /*#__PURE__*/ P.createElement(Ode, {
+ }) : /*#__PURE__*/ P.createElement(_S, { content: /*#__PURE__*/ P.createElement(kS, e) }, (n) => /*#__PURE__*/ P.createElement(jde, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Ode({ props: e, listBoxRef: t, collection: n }) {
+function jde({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, P.useContext)(LI), i = rR({
+ let { layoutDelegate: r } = (0, P.useContext)(II), i = nR({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ P.createElement(cR, {
+ return /*#__PURE__*/ P.createElement(sR, {
state: i,
props: e,
listBoxRef: t
});
}
-function cR({ state: e, props: t, listBoxRef: n }) {
- [t, n] = DI(t, n, MI);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Ede(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = WS(), { disabledBehavior: p, disabledKeys: m } = l, h = RT({
+function sR({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = EI(t, n, jI);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = kde(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = rC(), { disabledBehavior: p, disabledKeys: m } = l, h = WT({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, P.useContext)(LI), b = (0, P.useMemo)(() => t.keyboardDelegate || new Bw({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, P.useContext)(II), b = (0, P.useMemo)(() => t.keyboardDelegate || new Kw({
collection: c,
collator: h,
ref: n,
@@ -37910,7 +37921,7 @@ function cR({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Zae({
+ ]), { listBoxProps: x } = qae({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -37942,7 +37953,7 @@ function cR({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = GT(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = ZT(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -37950,7 +37961,7 @@ function cR({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = TI({
+ }, ee = wI({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -37960,8 +37971,8 @@ function cR({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let ne = QS(t, { global: !0 });
- return /*#__PURE__*/ P.createElement(DC, null, /*#__PURE__*/ P.createElement(jI.div, {
+ let ne = dC(t, { global: !0 });
+ return /*#__PURE__*/ P.createElement(FC, null, /*#__PURE__*/ P.createElement(AI.div, {
...K(ne, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -37972,55 +37983,55 @@ function cR({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [oR, t],
- [sR, s],
- [BL, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [aR, t],
+ [oR, s],
+ [zL, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [qL, { elementType: "div" }],
- [VL, { render: jde }],
- [PI, {
+ [KL, { elementType: "div" }],
+ [BL, { render: Pde }],
+ [NI, {
name: "ListBoxSection",
- render: kde
+ render: Mde
}]
- ] }, /*#__PURE__*/ P.createElement(GL, null, /*#__PURE__*/ P.createElement(y, {
+ ] }, /*#__PURE__*/ P.createElement(WL, null, /*#__PURE__*/ P.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: UL(l, r, C),
- renderDropIndicator: HL(r, C)
+ persistedKeys: HL(l, r, C),
+ renderDropIndicator: VL(r, C)
}))), te, E));
}
-function kde(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, P.useContext)(sR), { dragAndDropHooks: a, dropState: o } = (0, P.useContext)(BL), { CollectionBranch: s } = (0, P.useContext)(LI), [c, l] = OI(), { headingProps: u, groupProps: d } = Qae({
+function Mde(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, P.useContext)(oR), { dragAndDropHooks: a, dropState: o } = (0, P.useContext)(zL), { CollectionBranch: s } = (0, P.useContext)(II), [c, l] = DI(), { headingProps: u, groupProps: d } = Jae({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = TI({
+ }), f = wI({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = QS(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ P.createElement(jI.section, {
+ }), p = dC(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ P.createElement(AI.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ P.createElement(WL.Provider, { value: {
+ }, /*#__PURE__*/ P.createElement(UL.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ P.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: HL(a, o)
+ renderDropIndicator: VL(a, o)
})));
}
-var Ade = /*#__PURE__*/ vS(Tb, function(e, t, n) {
- let r = aS(t), i = (0, P.useContext)(sR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(BL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = $ae({
+var Nde = /*#__PURE__*/ TS(Tb, function(e, t, n) {
+ let r = aS(t), i = (0, P.useContext)(oR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(zL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Yae({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = YT({
+ }, i, r), { hoverProps: p, isHovered: m } = tE({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
@@ -38036,7 +38047,7 @@ var Ade = /*#__PURE__*/ vS(Tb, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = TI({
+ let y = o && o.isDragging(n.key), b = wI({
...e,
id: void 0,
children: e.children,
@@ -38054,7 +38065,7 @@ var Ade = /*#__PURE__*/ vS(Tb, function(e, t, n) {
(0, P.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? jI.a : jI.div, S = QS(e, { global: !0 });
+ let x = e.href ? AI.a : AI.div, S = dC(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ P.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -38068,29 +38079,29 @@ var Ade = /*#__PURE__*/ vS(Tb, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ P.createElement(wI, { values: [[GI, { slots: {
- [CI]: u,
+ }, /*#__PURE__*/ P.createElement(CI, { values: [[WI, { slots: {
+ [SI]: u,
label: u,
description: d
- } }], [KL, { isSelected: f.isSelected }]] }, b.children));
+ } }], [GL, { isSelected: f.isSelected }]] }, b.children));
});
-function jde(e, t) {
+function Pde(e, t) {
t = aS(t);
- let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(BL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ P.createElement(Nde, {
+ let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(zL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ P.createElement(Ide, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Mde(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = TI({
+function Fde(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = wI({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(jI.div, {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(AI.div, {
...n,
...a,
role: "option",
@@ -38098,10 +38109,10 @@ function Mde(e, t) {
"data-drop-target": r || void 0
}));
}
-var Nde = /*#__PURE__*/ (0, P.forwardRef)(Mde);
-vS(wb, function(e, t, n) {
- let r = (0, P.useContext)(sR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, P.useRef)(null);
- aR((0, P.useMemo)(() => ({
+var Ide = /*#__PURE__*/ (0, P.forwardRef)(Fde);
+TS(wb, function(e, t, n) {
+ let r = (0, P.useContext)(oR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, P.useRef)(null);
+ iR((0, P.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38111,7 +38122,7 @@ vS(wb, function(e, t, n) {
o,
r?.collection
]), c);
- let l = TI({
+ let l = wI({
...s,
id: void 0,
children: n.rendered,
@@ -38124,7 +38135,7 @@ vS(wb, function(e, t, n) {
width: 0,
height: 0
},
- inert: JL(!0)
+ inert: qL(!0)
}, /*#__PURE__*/ P.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38133,18 +38144,18 @@ vS(wb, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(jI.div, {
- ...K(QS(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(AI.div, {
+ ...K(dC(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Pde = /*#__PURE__*/ (0, P.createContext)({ placement: "bottom" });
+var Lde = /*#__PURE__*/ (0, P.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function lR(e) {
- let [t, n] = _w(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, P.useState)(null);
+function cR(e) {
+ let [t, n] = Cw(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, P.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -38162,15 +38173,15 @@ function lR(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function uR(e, t = !0, n) {
+function lR(e, t = !0, n) {
let [r, i] = (0, P.useState)(!0), a = r && t;
return Jb(() => {
if (!t && e.current) return Wx(Lb(e.current, "opacity", "0"), Lb(e.current, "clip", "rect(0 0 0 0)"), Lb(e.current, "clip-path", "inset(50%)"), Lb(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
}, [e, t]), Jb(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), fR(e, a, n, (0, P.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), dR(e, a, n, (0, P.useCallback)(() => i(!1), [])), a;
}
-function dR(e, t, n) {
+function uR(e, t, n) {
let [r, i] = (0, P.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -38180,12 +38191,12 @@ function dR(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return fR(e, a, n, (0, P.useCallback)(() => {
+ return dR(e, a, n, (0, P.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function fR(e, t, n, r) {
- let i = (0, P.useRef)(null), a = IS(n);
+function dR(e, t, n, r) {
+ let i = (0, P.useRef)(null), a = YS(n);
Jb(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
@@ -38211,9 +38222,9 @@ function fR(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var pR = /*#__PURE__*/ (0, P.createContext)(null), mR = /*#__PURE__*/ (0, P.createContext)(null), hR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, pR);
- let n = (0, P.useContext)(DR), r = lR(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = dR(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = dS(), { direction: c } = WS();
+var fR = /*#__PURE__*/ (0, P.createContext)(null), pR = /*#__PURE__*/ (0, P.createContext)(null), mR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, fR);
+ let n = (0, P.useContext)(ER), r = cR(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = uR(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = dS(), { direction: c } = rC();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -38224,7 +38235,7 @@ var pR = /*#__PURE__*/ (0, P.createContext)(null), mR = /*#__PURE__*/ (0, P.crea
defaultChildren: null
})), /*#__PURE__*/ P.createElement(P.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ P.createElement(Fde, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ P.createElement(Rde, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -38233,13 +38244,13 @@ var pR = /*#__PURE__*/ (0, P.createContext)(null), mR = /*#__PURE__*/ (0, P.crea
dir: c
});
});
-function Fde({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useContext)(mR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, P.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Toe({
+function Rde({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useContext)(pR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, P.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = yoe({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = uR(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = TI({
+ }, e), g = i.popoverRef, _ = lR(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = wI({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -38260,12 +38271,12 @@ function Fde({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, P.useMemo)(() => {
let e = y.children;
- for (let t of [pR, ...r ?? []]) e = /*#__PURE__*/ P.createElement(t.Provider, { value: null }, e);
+ for (let t of [fR, ...r ?? []]) e = /*#__PURE__*/ P.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, P.useState)(null), E = (0, P.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- Jb(E, [E]), qE({
+ Jb(E, [E]), $E({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -38275,9 +38286,9 @@ function Fde({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- Jb(() => ID(() => u(!0)), []);
- let O = /*#__PURE__*/ P.createElement(jI.div, {
- ...K(QS(i, { global: !0 }), d),
+ Jb(() => WD(() => u(!0)), []);
+ let O = /*#__PURE__*/ P.createElement(AI.div, {
+ ...K(dC(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -38292,17 +38303,17 @@ function Fde({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ P.createElement(kD, { onDismiss: e.close }), /*#__PURE__*/ P.createElement(Pde.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ P.createElement(ID, { onDismiss: e.close }), /*#__PURE__*/ P.createElement(Lde.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ P.createElement(kD, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ P.createElement(UT, {
+ } }, C), /*#__PURE__*/ P.createElement(ID, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ P.createElement(YT, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ P.createElement(UT, {
+ }, O) : /*#__PURE__*/ P.createElement(YT, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -38317,13 +38328,13 @@ function Fde({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ P.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ P.createElement(mR.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ P.createElement(pR.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Ide = /*#__PURE__*/ (0, P.createContext)({});
+var zde = /*#__PURE__*/ (0, P.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function gR(e) {
- let t = lR(e), [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)([]), o = () => {
+function hR(e) {
+ let t = cR(e), [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -38348,7 +38359,7 @@ function gR(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Lde = class {
+var Bde = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -38391,8 +38402,8 @@ var Lde = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function _R(e) {
- let { onExpandedChange: t } = e, [n, r] = _w(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = ZL(e), a = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = nR(e, (0, P.useCallback)((e) => new Lde(e, { expandedKeys: n }), [n]), null);
+function gR(e) {
+ let { onExpandedChange: t } = e, [n, r] = Cw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = XL(e), a = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = tR(e, (0, P.useCallback)((e) => new Bde(e, { expandedKeys: n }), [n]), null);
return (0, P.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -38400,31 +38411,31 @@ function _R(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Rde(n, e));
+ r(Vde(n, e));
},
setExpandedKeys: r,
- selectionManager: new $L(o, i)
+ selectionManager: new QL(o, i)
};
}
-function Rde(e, t) {
+function Vde(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var vR = /*#__PURE__*/ (0, P.createContext)(null), yR = /*#__PURE__*/ (0, P.createContext)(null), bR = /*#__PURE__*/ (0, P.createContext)(null), xR = /*#__PURE__*/ (0, P.createContext)(null);
-function zde(e) {
- let t = gR(e), n = (0, P.useRef)(null), { menuTriggerProps: r, menuProps: i } = wT({
+var _R = /*#__PURE__*/ (0, P.createContext)(null), vR = /*#__PURE__*/ (0, P.createContext)(null), yR = /*#__PURE__*/ (0, P.createContext)(null), bR = /*#__PURE__*/ (0, P.createContext)(null);
+function Hde(e) {
+ let t = hR(e), n = (0, P.useRef)(null), { menuTriggerProps: r, menuProps: i } = AT({
...e,
type: "menu"
}, t, n), a = (0, P.useRef)(null);
- return dS() ? null : /*#__PURE__*/ P.createElement(wI, { values: [
- [vR, {
+ return dS() ? null : /*#__PURE__*/ P.createElement(CI, { values: [
+ [_R, {
...i,
ref: a
}],
- [DR, t],
- [bR, t],
- [pR, {
+ [ER, t],
+ [yR, t],
+ [fR, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -38432,13 +38443,13 @@ function zde(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ P.createElement(Iae, {
+ ] }, /*#__PURE__*/ P.createElement(Mae, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Bde = /*#__PURE__*/ (0, P.createContext)(null);
+var Ude = /*#__PURE__*/ (0, P.createContext)(null);
(class extends Sb {
static {
this.type = "submenutrigger";
@@ -38452,24 +38463,24 @@ var Bde = /*#__PURE__*/ (0, P.createContext)(null);
return null;
}
});
-var Vde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- return [e, t] = DI(e, t, vR), /*#__PURE__*/ P.createElement(hS, { content: /*#__PURE__*/ P.createElement(SS, e) }, (n) => /*#__PURE__*/ P.createElement(Hde, {
+var Wde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ return [e, t] = EI(e, t, _R), /*#__PURE__*/ P.createElement(_S, { content: /*#__PURE__*/ P.createElement(kS, e) }, (n) => /*#__PURE__*/ P.createElement(Gde, {
props: e,
collection: n,
menuRef: t
}));
});
-function Hde({ props: e, collection: t, menuRef: n }) {
- [e, n] = DI(e, n, MI);
- let { filter: r, ...i } = e, a = (0, P.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = _R({
+function Gde({ props: e, collection: t, menuRef: n }) {
+ [e, n] = EI(e, n, jI);
+ let { filter: r, ...i } = e, a = (0, P.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = gR({
...e,
collection: a,
children: void 0
- }), s = (0, P.useContext)(bR), { isVirtualized: c, CollectionRoot: l } = (0, P.useContext)(LI), { menuProps: u } = eoe({
+ }), s = (0, P.useContext)(yR), { isVirtualized: c, CollectionRoot: l } = (0, P.useContext)(II), { menuProps: u } = Xae({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = TI({
+ }, o, n), d = wI({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -38479,36 +38490,36 @@ function Hde({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(DC, null, /*#__PURE__*/ P.createElement(jI.div, {
+ let p = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(FC, null, /*#__PURE__*/ P.createElement(AI.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [yR, o],
- [qL, { elementType: "div" }],
- [PI, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [vR, o],
+ [KL, { elementType: "div" }],
+ [NI, {
name: "MenuSection",
- render: SR
+ render: xR
}],
- [Bde, {
+ [Ude, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [wR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [CR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [jI, null],
[MI, null],
- [NI, null],
- [xR, o.selectionManager],
- [bR, s ?? gR({})]
- ] }, /*#__PURE__*/ P.createElement(GL, null, /*#__PURE__*/ P.createElement(l, {
+ [bR, o.selectionManager],
+ [yR, s ?? hR({})]
+ ] }, /*#__PURE__*/ P.createElement(WL, null, /*#__PURE__*/ P.createElement(l, {
collection: o.collection,
- persistedKeys: RI(o.selectionManager.focusedKey),
+ persistedKeys: LI(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Ude = class extends $L {
+var Kde = class extends QL {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -38528,11 +38539,11 @@ var Ude = class extends $L {
return this.parent.childFocusStrategy;
}
};
-function SR(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, P.useContext)(yR), { CollectionBranch: a } = (0, P.useContext)(LI), [o, s] = OI(), { headingProps: c, groupProps: l } = noe({
+function xR(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, P.useContext)(vR), { CollectionBranch: a } = (0, P.useContext)(II), [o, s] = DI(), { headingProps: c, groupProps: l } = Qae({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = TI({
+ }), u = wI({
...e,
id: void 0,
children: void 0,
@@ -38540,31 +38551,31 @@ function SR(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, P.useContext)(xR), f = ZL(e), p = e.selectionMode == null ? d : new Ude(d, f), m = EI(wR)?.shouldCloseOnSelect, h = QS(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ P.createElement(jI.section, {
+ }), d = (0, P.useContext)(bR), f = XL(e), p = e.selectionMode == null ? d : new Kde(d, f), m = TI(CR)?.shouldCloseOnSelect, h = dC(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ P.createElement(AI.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [WL, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [UL, {
...c,
ref: o
}],
- [xR, p],
- [wR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [bR, p],
+ [CR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ P.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var CR = /*#__PURE__*/ yS(xre, SR), wR = /*#__PURE__*/ (0, P.createContext)(null), TR = /*#__PURE__*/ vS(Tb, function(e, t, n) {
- [e, t] = DI(e, t, wR);
- let r = EI(wR)?.id, i = (0, P.useContext)(yR), a = aS(t), o = (0, P.useContext)(xR), { isVirtualized: s } = (0, P.useContext)(LI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = toe({
+var SR = /*#__PURE__*/ ES(Cre, xR), CR = /*#__PURE__*/ (0, P.createContext)(null), wR = /*#__PURE__*/ TS(Tb, function(e, t, n) {
+ [e, t] = EI(e, t, CR);
+ let r = TI(CR)?.id, i = (0, P.useContext)(vR), a = aS(t), o = (0, P.useContext)(bR), { isVirtualized: s } = (0, P.useContext)(II), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Zae({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = YT({ isDisabled: f.isDisabled }), h = TI({
+ }, i, a), { hoverProps: p, isHovered: m } = tE({ isDisabled: f.isDisabled }), h = wI({
...e,
id: void 0,
children: n.rendered,
@@ -38578,7 +38589,7 @@ var CR = /*#__PURE__*/ yS(xre, SR), wR = /*#__PURE__*/ (0, P.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? jI.a : jI.div, _ = QS(e, { global: !0 });
+ }), g = e.href ? AI.a : AI.div, _ = dC(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ P.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -38591,19 +38602,19 @@ var CR = /*#__PURE__*/ yS(xre, SR), wR = /*#__PURE__*/ (0, P.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [GI, { slots: {
- [CI]: l,
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [WI, { slots: {
+ [SI]: l,
label: l,
description: u
} }],
- [Ide, d],
- [KL, { isSelected: f.isSelected }]
+ [zde, d],
+ [GL, { isSelected: f.isSelected }]
] }, h.children));
});
-vS(wb, function(e, t, n) {
- let r = (0, P.useContext)(yR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, P.useRef)(null);
- aR((0, P.useMemo)(() => ({
+TS(wb, function(e, t, n) {
+ let r = (0, P.useContext)(vR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, P.useRef)(null);
+ iR((0, P.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38613,7 +38624,7 @@ vS(wb, function(e, t, n) {
o,
r?.collection
]), c);
- let l = TI({
+ let l = wI({
...s,
id: void 0,
children: n.rendered,
@@ -38626,7 +38637,7 @@ vS(wb, function(e, t, n) {
width: 0,
height: 0
},
- inert: JL(!0)
+ inert: qL(!0)
}, /*#__PURE__*/ P.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38635,89 +38646,89 @@ vS(wb, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(jI.div, {
- ...K(QS(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(AI.div, {
+ ...K(dC(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var ER = /*#__PURE__*/ (0, P.createContext)(null), DR = /*#__PURE__*/ (0, P.createContext)(null), OR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+var TR = /*#__PURE__*/ (0, P.createContext)(null), ER = /*#__PURE__*/ (0, P.createContext)(null), DR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = DI(e, t, ER);
- let { dialogProps: r, titleProps: i, contentProps: a } = Rae({
+ [e, t] = EI(e, t, TR);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Pae({
...e,
"aria-labelledby": n
- }, t), o = (0, P.useContext)(DR);
+ }, t), o = (0, P.useContext)(ER);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = TI({
+ let s = wI({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(jI.section, {
+ }), c = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(AI.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [UI, { slots: {
- [CI]: {},
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [HI, { slots: {
+ [SI]: {},
title: {
...i,
level: 2
}
} }],
- [GI, { slots: {
- [CI]: {},
+ [WI, { slots: {
+ [SI]: {},
description: a
} }],
- [VI, { slots: {
- [CI]: {},
+ [BI, { slots: {
+ [SI]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), kR = typeof document < "u" && window.visualViewport;
-function Wde() {
+}), OR = typeof document < "u" && window.visualViewport;
+function qde() {
let e = gx(), t = (0, P.useRef)(null), [n, r] = (0, P.useState)(() => e ? {
width: 0,
height: 0
- } : AR());
+ } : kR());
return (0, P.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- kR && kR.scale > 1 || e(AR());
+ OR && OR.scale > 1 || e(kR());
}, i = (n) => {
- kR && kR.scale > 1 || NS(G(n)) && (t.current = ID((t) => {
+ OR && OR.scale > 1 || KS(G(n)) && (t.current = WD((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(AR()), ix() && ax() && window.addEventListener("blur", i, !0), kR ? kR.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), ix() && ax() && window.removeEventListener("blur", i, !0), kR ? kR.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(kR()), ix() && ax() && window.addEventListener("blur", i, !0), OR ? OR.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), ix() && ax() && window.removeEventListener("blur", i, !0), OR ? OR.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function AR() {
+function kR() {
return {
- width: kR ? Math.min(kR.width * kR.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: kR ? kR.height * kR.scale : document.documentElement.clientHeight
+ width: OR ? Math.min(OR.width * OR.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: OR ? OR.height * OR.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var Gde = /*#__PURE__*/ (0, P.createContext)(null), jR = /*#__PURE__*/ (0, P.createContext)(null), Kde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- if ((0, P.useContext)(jR)) return /*#__PURE__*/ P.createElement(NR, {
+var Jde = /*#__PURE__*/ (0, P.createContext)(null), AR = /*#__PURE__*/ (0, P.createContext)(null), Yde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ if ((0, P.useContext)(AR)) return /*#__PURE__*/ P.createElement(MR, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ P.createElement(MR, {
+ return /*#__PURE__*/ P.createElement(jR, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -38727,15 +38738,15 @@ var Gde = /*#__PURE__*/ (0, P.createContext)(null), jR = /*#__PURE__*/ (0, P.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ P.createElement(NR, {
+ }, /*#__PURE__*/ P.createElement(MR, {
...f,
modalRef: t
}, s));
});
-function qde(e, t) {
- [e, t] = DI(e, t, Gde);
- let n = (0, P.useContext)(DR), r = lR(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = aS(t), o = (0, P.useRef)(null), s = dR(a, i.isOpen, e.onExit), c = (0, P.useRef)(null), l = dR(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = gx();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ P.createElement(Jde, {
+function Xde(e, t) {
+ [e, t] = EI(e, t, Jde);
+ let n = (0, P.useContext)(ER), r = cR(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = aS(t), o = (0, P.useRef)(null), s = uR(a, i.isOpen, e.onExit), c = (0, P.useRef)(null), l = uR(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = gx();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ P.createElement(Zde, {
...e,
state: i,
isExiting: u,
@@ -38744,12 +38755,12 @@ function qde(e, t) {
onExitRef: c
});
}
-var MR = /*#__PURE__*/ (0, P.forwardRef)(qde);
-function Jde({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, P.useState)(!1), s = uR(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = poe({
+var jR = /*#__PURE__*/ (0, P.forwardRef)(Xde);
+function Zde({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, P.useState)(!1), s = lR(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = soe({
...n,
isEntering: c
- }, i, r), d = (0, P.useContext)(ER), f = t ? Yde(d, { isEntering: c }) : d, p = TI({
+ }, i, r), d = (0, P.useContext)(TR), f = t ? Qde(d, { isEntering: c }) : d, p = wI({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -38757,9 +38768,9 @@ function Jde({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Wde(), h, g;
+ }), m = qde(), h, g;
if (typeof document < "u") {
- let e = JC(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = ew(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -38769,18 +38780,18 @@ function Jde({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return Jb(() => ID(() => o(!0)), []), /*#__PURE__*/ P.createElement(UT, {
+ return Jb(() => WD(() => o(!0)), []), /*#__PURE__*/ P.createElement(YT, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ P.createElement(jI.div, {
- ...K(QS(n, { global: !0 }), u),
+ }, /*#__PURE__*/ P.createElement(AI.div, {
+ ...K(dC(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [jR, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [AR, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -38788,11 +38799,11 @@ function Jde({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [DR, i],
- [ER, f]
+ [ER, i],
+ [TR, f]
] }, p.children)));
}
-function Yde(e, t) {
+function Qde(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -38809,8 +38820,8 @@ function Yde(e, t) {
...t
};
}
-function NR(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, P.useContext)(jR), s = (0, P.useContext)(DR), c = aS((0, P.useMemo)(() => Xx(e.modalRef, n), [e.modalRef, n])), l = uR(c, o, e.onEnter), u = TI({
+function MR(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, P.useContext)(AR), s = (0, P.useContext)(ER), c = aS((0, P.useMemo)(() => Xx(e.modalRef, n), [e.modalRef, n])), l = lR(c, o, e.onEnter), u = wI({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -38821,18 +38832,18 @@ function NR(e) {
});
return Jb(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ P.createElement(jI.div, {
- ...K(QS(e, { global: !0 }), t),
+ }), /*#__PURE__*/ P.createElement(AI.div, {
+ ...K(dC(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ P.createElement(kD, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ P.createElement(ID, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Xde = Math.round(Math.random() * 1e10), Zde = 0;
-function Qde(e) {
- let t = (0, P.useMemo)(() => e.name || `radio-group-${Xde}-${++Zde}`, [e.name]), [n, r] = _w(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, P.useState)(n), [a, o] = (0, P.useState)(null), s = cw({
+var $de = Math.round(Math.random() * 1e10), efe = 0;
+function tfe(e) {
+ let t = (0, P.useMemo)(() => e.name || `radio-group-${$de}-${++efe}`, [e.name]), [n, r] = Cw(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, P.useState)(n), [a, o] = (0, P.useState)(null), s = mw({
...e,
value: n
}), c = (t) => {
@@ -38854,16 +38865,16 @@ function Qde(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var $de = /*#__PURE__*/ (0, P.createContext)(null), efe = /*#__PURE__*/ (0, P.createContext)(null), PR = /*#__PURE__*/ (0, P.createContext)(null), FR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, $de);
- let { validationBehavior: n } = EI(qI) || {}, r = e.validationBehavior ?? n ?? "native", i = Qde({
+var nfe = /*#__PURE__*/ (0, P.createContext)(null), rfe = /*#__PURE__*/ (0, P.createContext)(null), NR = /*#__PURE__*/ (0, P.createContext)(null), PR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, nfe);
+ let { validationBehavior: n } = TI(KI) || {}, r = e.validationBehavior ?? n ?? "native", i = tfe({
...e,
validationBehavior: r
- }), [a, o] = OI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Doe({
+ }), [a, o] = DI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = xoe({
...e,
label: o,
validationBehavior: r
- }, i), f = TI({
+ }, i), f = wI({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -38874,8 +38885,8 @@ var $de = /*#__PURE__*/ (0, P.createContext)(null), efe = /*#__PURE__*/ (0, P.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(jI.div, {
+ }), p = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(AI.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -38884,39 +38895,39 @@ var $de = /*#__PURE__*/ (0, P.createContext)(null), efe = /*#__PURE__*/ (0, P.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [PR, i],
- [zI, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [NR, i],
+ [RI, {
...c,
ref: a,
elementType: "span"
}],
- [GI, { slots: {
+ [WI, { slots: {
description: l,
errorMessage: u
} }],
- [KI, d]
- ] }, /*#__PURE__*/ P.createElement(GL, null, f.children)));
-}), IR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [GI, d]
+ ] }, /*#__PURE__*/ P.createElement(WL, null, f.children)));
+}), FR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = DI(r, t, efe);
- let i = P.useContext(PR), a = aS((0, P.useMemo)(() => Xx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Eoe({
- ...kI(e),
+ [e, t] = EI(r, t, rfe);
+ let i = P.useContext(NR), a = aS((0, P.useMemo)(() => Xx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = boe({
+ ...OI(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ P.createElement(LR.Provider, { value: {
+ return /*#__PURE__*/ P.createElement(IR.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ P.createElement(tfe, {
+ } }, /*#__PURE__*/ P.createElement(ife, {
...e,
ref: t
}));
-}), LR = /*#__PURE__*/ (0, P.createContext)(null), tfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, P.useContext)(LR), l = P.useContext(PR), { isFocused: u, isFocusVisible: d, focusProps: f } = GT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = YT({
+}), IR = /*#__PURE__*/ (0, P.createContext)(null), ife = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, P.useContext)(IR), l = P.useContext(NR), { isFocused: u, isFocusVisible: d, focusProps: f } = ZT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = tE({
...e,
isDisabled: p
- }), g = TI({
+ }), g = wI({
...e,
defaultClassName: s,
values: {
@@ -38930,8 +38941,8 @@ var $de = /*#__PURE__*/ (0, P.createContext)(null), efe = /*#__PURE__*/ (0, P.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = QS(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ P.createElement(jI.label, {
+ }), _ = dC(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ P.createElement(AI.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -38943,18 +38954,18 @@ var $de = /*#__PURE__*/ (0, P.createContext)(null), efe = /*#__PURE__*/ (0, P.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ P.createElement(Dw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(Nw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function nfe(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = lR(e), [i, a] = (0, P.useState)(null), o = (0, P.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function afe(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = cR(e), [i, a] = (0, P.useState)(null), o = (0, P.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = _w((0, P.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = Cw((0, P.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -38966,12 +38977,12 @@ function nfe(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = rR({
+ }, d = nR({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, P.useMemo)(() => rfe(l), [l]),
+ selectedKeys: (0, P.useMemo)(() => ofe(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -38981,7 +38992,7 @@ function nfe(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, P.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = cw({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, P.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = mw({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, P.useState)(!1), [_] = (0, P.useState)(l);
@@ -39008,15 +39019,15 @@ function nfe(e) {
setFocused: g
};
}
-function rfe(e) {
+function ofe(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function ife(e) {
+function sfe(e) {
return e && e.__esModule ? e.default : e;
}
-var RR = /*#__PURE__*/ (0, P.createContext)(null), zR = /*#__PURE__*/ (0, P.createContext)(null), afe = /*#__PURE__*/ uS(function(e, t) {
- [e, t] = DI(e, t, RR);
+var LR = /*#__PURE__*/ (0, P.createContext)(null), RR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(function(e, t) {
+ [e, t] = EI(e, t, LR);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, P.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -39031,24 +39042,24 @@ var RR = /*#__PURE__*/ (0, P.createContext)(null), zR = /*#__PURE__*/ (0, P.crea
i,
a
]);
- return /*#__PURE__*/ P.createElement(hS, { content: o }, (n) => /*#__PURE__*/ P.createElement(sfe, {
+ return /*#__PURE__*/ P.createElement(_S, { content: o }, (n) => /*#__PURE__*/ P.createElement(ufe, {
props: e,
collection: n,
selectRef: t
}));
-}), ofe = [
- zI,
- VI,
- GI
+}), lfe = [
+ RI,
+ BI,
+ WI
];
-function sfe({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = EI(qI) || {}, i = e.validationBehavior ?? r ?? "native", a = nfe({
+function ufe({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = TI(KI) || {}, i = e.validationBehavior ?? r ?? "native", a = afe({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = GT({ within: !0 }), c = (0, P.useRef)(null), [l, u] = OI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Ooe({
- ...kI(e),
+ }), { isFocusVisible: o, focusProps: s } = ZT({ within: !0 }), c = (0, P.useRef)(null), [l, u] = DI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Soe({
+ ...OI(e),
label: u,
validationBehavior: i
}, a, c), y = (0, P.useMemo)(() => ({
@@ -39065,48 +39076,48 @@ function sfe({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = TI({
+ ]), b = wI({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = QS(e, { global: !0 });
+ }), x = dC(e, { global: !0 });
delete x.id;
let S = (0, P.useRef)(null);
- return /*#__PURE__*/ P.createElement(wI, { values: [
- [RR, e],
- [zR, a],
- [BR, p],
- [zI, {
+ return /*#__PURE__*/ P.createElement(CI, { values: [
+ [LR, e],
+ [RR, a],
+ [zR, p],
+ [RI, {
...d,
ref: l,
elementType: "span"
}],
- [VI, {
+ [BI, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [DR, a],
- [pR, {
+ [ER, a],
+ [fR, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: ofe
+ clearContexts: lfe
}],
- [oR, {
+ [aR, {
...m,
ref: S
}],
- [sR, a],
- [GI, { slots: {
+ [oR, a],
+ [WI, { slots: {
description: h,
errorMessage: g
} }],
- [KI, v]
- ] }, /*#__PURE__*/ P.createElement(jI.div, {
+ [GI, v]
+ ] }, /*#__PURE__*/ P.createElement(AI.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -39116,14 +39127,14 @@ function sfe({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ P.createElement(Aoe, {
+ }, b.children, /*#__PURE__*/ P.createElement(woe, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(function(e, t) {
- [e, t] = DI(e, t, BR);
- let n = (0, P.useContext)(zR), { placeholder: r } = EI(RR), i = n.selectedItems.map((e) => {
+for (var zR = /*#__PURE__*/ (0, P.createContext)(null), dfe = /*#__PURE__*/ uS(function(e, t) {
+ [e, t] = EI(e, t, zR);
+ let n = (0, P.useContext)(RR), { placeholder: r } = TI(LR), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -39135,7 +39146,7 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = zae(), o = (0, P.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, P.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Fae(), o = (0, P.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, P.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -39150,7 +39161,7 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
a,
o,
i
- ]), u = XS(ife(zL), "react-aria-components"), d = TI({
+ ]), u = lC(sfe(RL), "react-aria-components"), d = wI({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -39161,33 +39172,33 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(jI.span, {
+ }), f = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(AI.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ P.createElement(GI.Provider, { value: void 0 }, d.children));
-}), lfe = /*#__PURE__*/ (0, P.createContext)(null), VR = /*#__PURE__*/ (0, P.createContext)(null), ufe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ P.createElement(WI.Provider, { value: void 0 }, d.children));
+}), ffe = /*#__PURE__*/ (0, P.createContext)(null), BR = /*#__PURE__*/ (0, P.createContext)(null), pfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = DI(r, t, lfe);
- let i = aS((0, P.useMemo)(() => Xx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = vw(e), o = Moe({
- ...kI(e),
+ [e, t] = EI(r, t, ffe);
+ let i = aS((0, P.useMemo)(() => Xx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = ww(e), o = Eoe({
+ ...OI(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ P.createElement(wI, { values: [[VR, a], [HR, {
+ return /*#__PURE__*/ P.createElement(CI, { values: [[BR, a], [VR, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ P.createElement(dfe, {
+ }]] }, /*#__PURE__*/ P.createElement(mfe, {
...e,
ref: t
}));
-}), HR = /*#__PURE__*/ (0, P.createContext)(null), dfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, P.useContext)(HR), { isFocused: f, isFocusVisible: p, focusProps: m } = GT(), h = a || o, g = (0, P.useContext)(VR), { hoverProps: _, isHovered: v } = YT({
+}), VR = /*#__PURE__*/ (0, P.createContext)(null), mfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, P.useContext)(VR), { isFocused: f, isFocusVisible: p, focusProps: m } = ZT(), h = a || o, g = (0, P.useContext)(BR), { hoverProps: _, isHovered: v } = tE({
...e,
isDisabled: h
- }), y = TI({
+ }), y = wI({
...e,
defaultClassName: u,
values: {
@@ -39202,8 +39213,8 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
isRequired: d || !1,
state: g
}
- }), b = QS(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(jI.label, {
+ }), b = dC(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(AI.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -39216,11 +39227,11 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ P.createElement(Dw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(Nw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), UR = 10, WR = 5, GR = class {
+}), HR = 10, UR = 5, WR = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -39230,7 +39241,7 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > WR && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > UR && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > UR && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > HR && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -39309,11 +39320,11 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > WR && i) {
+ if (Math.abs(r - c.lastSwitchY) > UR && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > UR && a) {
+ if (l > HR && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -39328,7 +39339,7 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
boundaryContext: null
};
}
-}, ffe = class {
+}, hfe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -39398,8 +39409,8 @@ for (var BR = /*#__PURE__*/ (0, P.createContext)(null), cfe = /*#__PURE__*/ uS(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, KR = "row-header-column-" + Math.random().toString(36).slice(2), qR = "row-header-column-" + Math.random().toString(36).slice(2); KR === qR;) qR = "row-header-column-" + Math.random().toString(36).slice(2);
-function JR(e, t) {
+}, GR = "row-header-column-" + Math.random().toString(36).slice(2), KR = "row-header-column-" + Math.random().toString(36).slice(2); GR === KR;) KR = "row-header-column-" + Math.random().toString(36).slice(2);
+function qR(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -39483,13 +39494,13 @@ function JR(e, t) {
textValue: ""
}));
}
-var pfe = class extends ffe {
+var gfe = class extends hfe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: KR,
+ key: GR,
value: null,
textValue: "",
level: 0,
@@ -39504,7 +39515,7 @@ var pfe = class extends ffe {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: qR,
+ key: KR,
value: null,
textValue: "",
level: 0,
@@ -39531,7 +39542,7 @@ var pfe = class extends ffe {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = JR(s, a);
+ let l = qR(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -39557,10 +39568,10 @@ var pfe = class extends ffe {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return AT(this.body.childNodes)?.key ?? null;
+ return IT(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return MT(this.body.childNodes)?.key ?? null;
+ return RT(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -39591,15 +39602,15 @@ var pfe = class extends ffe {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function mfe(e) {
+function _fe(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function hfe(e) {
+function vfe(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function YR(e, t) {
+function JR(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -39607,19 +39618,19 @@ function YR(e, t) {
}
return e;
}
-function XR(e, t) {
- return e == null ? 2 ** 53 - 1 : YR(e, t);
+function YR(e, t) {
+ return e == null ? 2 ** 53 - 1 : JR(e, t);
}
-function ZR(e, t) {
- return e == null ? 0 : YR(e, t);
+function XR(e, t) {
+ return e == null ? 0 : JR(e, t);
}
-function gfe(e, t, n, r, i) {
+function yfe(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- mfe(o) ? (l = YR(o, e), s = !0) : (u = hfe(o), u <= 0 && (s = !0));
- let f = ZR(t.minWidth ?? i?.(a) ?? 0, e), p = XR(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ _fe(o) ? (l = JR(o, e), s = !0) : (u = vfe(o), u <= 0 && (s = !0));
+ let f = XR(t.minWidth ?? i?.(a) ?? 0, e), p = YR(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -39653,14 +39664,14 @@ function gfe(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = _fe(l);
+ let u = bfe(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function _fe(e) {
+function bfe(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -39668,7 +39679,7 @@ function _fe(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var vfe = class {
+var xfe = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -39697,18 +39708,18 @@ var vfe = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), gfe(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), yfe(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, ZR(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, XR(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, XR(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, YR(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function yfe(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, P.useState)(null), s = (0, P.useMemo)(() => new vfe({
+function Sfe(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, P.useState)(null), s = (0, P.useMemo)(() => new xfe({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, P.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, P.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, P.useState)(t.collection.columns);
@@ -39759,19 +39770,19 @@ function yfe(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function bfe(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || ZL(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Cfe(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || XL(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = kT(n, t);
- e = r === "last" ? MT(i)?.key ?? null : AT(i)?.key ?? null;
+ let i = FT(n, t);
+ e = r === "last" ? RT(i)?.key ?? null : IT(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, P.useMemo)(() => new $L(t, r), [t, r]), s = (0, P.useRef)(null);
+ let o = (0, P.useMemo)(() => new QL(t, r), [t, r]), s = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -39791,7 +39802,7 @@ function bfe(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...kT(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...FT(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -39809,11 +39820,11 @@ function bfe(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var xfe = {
+var wfe = {
ascending: "descending",
descending: "ascending"
};
-function Sfe(e) {
+function Tfe(e) {
let [t, n] = (0, P.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, P.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -39824,11 +39835,11 @@ function Sfe(e) {
i,
r,
a
- ]), c = nR(e, (0, P.useCallback)((e) => new pfe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = bfe({
+ ]), c = tR(e, (0, P.useCallback)((e) => new gfe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Cfe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = _w(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = Cw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -39840,7 +39851,7 @@ function Sfe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? xfe[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? wfe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -39853,7 +39864,7 @@ function Sfe(e) {
treeColumn: o
};
}
-function Cfe(e, t) {
+function Efe(e, t) {
let n = (0, P.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -39862,10 +39873,10 @@ function Cfe(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function wfe(e) {
+function Dfe(e) {
return e && e.__esModule ? e.default : e;
}
-var Tfe = class extends Eb {
+var Ofe = class extends Eb {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -39880,7 +39891,7 @@ var Tfe = class extends Eb {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new oz(-2);
+ return new az(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -39906,7 +39917,7 @@ var Tfe = class extends Eb {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = JR(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = qR(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -39987,15 +39998,15 @@ var Tfe = class extends Eb {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new nz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new tz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, QR = /*#__PURE__*/ (0, P.createContext)(null), Efe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+}, ZR = /*#__PURE__*/ (0, P.createContext)(null), kfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let n = aS(t), r = (0, P.useRef)(null), i = (0, P.useRef)(null), [a, o] = (0, P.useState)(0);
Jb(() => {
let e = r.current;
- for (; e && e !== n.current && !JC(e);) e = e.parentElement;
+ for (; e && e !== n.current && !ew(e);) e = e.parentElement;
i.current = e;
- }, [n]), qE({
+ }, [n]), $E({
ref: i,
box: "border-box",
onResize() {
@@ -40008,7 +40019,7 @@ var Tfe = class extends Eb {
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: yfe,
+ useTableColumnResizeState: Sfe,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -40019,17 +40030,17 @@ var Tfe = class extends Eb {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ P.createElement(jI.div, {
+ return /*#__PURE__*/ P.createElement(AI.div, {
render: e.render,
- ...QS(e, { global: !0 }),
+ ...dC(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ P.createElement(QR.Provider, { value: s }, e.children));
-}), Dfe = /*#__PURE__*/ (0, P.createContext)(null), $R = /*#__PURE__*/ (0, P.createContext)(null), ez = /*#__PURE__*/ (0, P.createContext)(null), Ofe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, Dfe);
- let n = ZL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, P.useMemo)(() => ({
+ }, /*#__PURE__*/ P.createElement(ZR.Provider, { value: s }, e.children));
+}), Afe = /*#__PURE__*/ (0, P.createContext)(null), QR = /*#__PURE__*/ (0, P.createContext)(null), $R = /*#__PURE__*/ (0, P.createContext)(null), jfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, Afe);
+ let n = XL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, P.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -40039,26 +40050,26 @@ var Tfe = class extends Eb {
i,
a,
o
- ]), c = /*#__PURE__*/ P.createElement(jfe.Provider, { value: s }, /*#__PURE__*/ P.createElement(SS, e));
- return /*#__PURE__*/ P.createElement(hS, {
+ ]), c = /*#__PURE__*/ P.createElement(Pfe.Provider, { value: s }, /*#__PURE__*/ P.createElement(kS, e));
+ return /*#__PURE__*/ P.createElement(_S, {
content: c,
- createCollection: () => new Tfe()
- }, (r) => /*#__PURE__*/ P.createElement(Afe, {
+ createCollection: () => new Ofe()
+ }, (r) => /*#__PURE__*/ P.createElement(Nfe, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), kfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
- return n ? /*#__PURE__*/ P.createElement(jI.div, {
+}), Mfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
+ return n ? /*#__PURE__*/ P.createElement(AI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(jI.table, {
+ }) : /*#__PURE__*/ P.createElement(AI.table, {
...e,
ref: t
});
-}), tz = {
+}), ez = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -40068,26 +40079,26 @@ var Tfe = class extends Eb {
rtl: "ArrowRight"
}
};
-function Afe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = DI(e, t, MI);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, P.useContext)(QR);
+function Nfe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = EI(e, t, jI);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, P.useContext)(ZR);
t = aS((0, P.useMemo)(() => Xx(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = _w(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ let [l, u] = Cw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, P.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Sfe({
+ let d = Tfe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Cfe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, P.useContext)(LI), { dragAndDropHooks: _ } = e, { gridProps: v } = Loe({
+ }), f = Efe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, P.useContext)(II), { dragAndDropHooks: _ } = e, { gridProps: v } = joe({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, P.useRef)(b), (0, P.useRef)(x), (0, P.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, P.useRef)(null), { direction: O } = WS(), [k] = (0, P.useState)(() => new GR());
+ let S, C, w, T = !1, E = null, D = (0, P.useRef)(null), { direction: O } = rC(), [k] = (0, P.useState)(() => new WR());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -40102,7 +40113,7 @@ function Afe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new Bw({
+ let e = new Kw({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -40122,12 +40133,12 @@ function Afe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === tz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === tz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === ez.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === ez.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = GT(), ee = TI({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ZT(), ee = wI({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -40143,19 +40154,19 @@ function Afe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let re = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(wI, { values: [
- [$R, f],
- [ez, N],
- [BL, {
+ let re = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(CI, { values: [
+ [QR, f],
+ [$R, N],
+ [zL, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [VL, { render: Vfe }],
- [MI, null],
- [NI, null]
- ] }, /*#__PURE__*/ P.createElement(DC, null, /*#__PURE__*/ P.createElement(kfe, {
+ [BL, { render: Wfe }],
+ [jI, null],
+ [MI, null]
+ ] }, /*#__PURE__*/ P.createElement(FC, null, /*#__PURE__*/ P.createElement(Mfe, {
...K(re, ee, v, A, w?.collectionProps),
style: ne,
ref: t,
@@ -40165,55 +40176,55 @@ function Afe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ P.createElement(GL, null, /*#__PURE__*/ P.createElement(g, {
+ }, /*#__PURE__*/ P.createElement(WL, null, /*#__PURE__*/ P.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: UL(y, _, C)
+ persistedKeys: HL(y, _, C)
})))), E);
}
-var jfe = /*#__PURE__*/ (0, P.createContext)(null), nz = class extends Sb {
+var Pfe = /*#__PURE__*/ (0, P.createContext)(null), tz = class extends Sb {
static {
this.type = "tableheader";
}
-}, Mfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
- return n ? /*#__PURE__*/ P.createElement(jI.div, {
+}, Ffe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
+ return n ? /*#__PURE__*/ P.createElement(AI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(jI.thead, {
+ }) : /*#__PURE__*/ P.createElement(AI.thead, {
...e,
ref: t
});
-}), rz = /*#__PURE__*/ yS(nz, (e, t) => {
- let n = (0, P.useContext)($R).collection, r = Ab({
+}), nz = /*#__PURE__*/ ES(tz, (e, t) => {
+ let n = (0, P.useContext)(QR).collection, r = Ab({
items: n.headerRows,
children: (0, P.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ P.createElement(Pfe, { item: e });
+ case "headerrow": return /*#__PURE__*/ P.createElement(Lfe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = QO(), { hoverProps: a, isHovered: o } = YT({
+ }), { rowGroupProps: i } = ok(), { hoverProps: a, isHovered: o } = tE({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = TI({
+ }), s = wI({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ P.createElement(Mfe, {
- ...K(QS(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ P.createElement(Ffe, {
+ ...K(dC(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ P.createElement(SS, {
+}, (e) => /*#__PURE__*/ P.createElement(kS, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Nfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
+}, e.children)), Ife = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
return n ? /*#__PURE__*/ P.createElement("div", {
...e,
ref: t
@@ -40222,41 +40233,41 @@ var jfe = /*#__PURE__*/ (0, P.createContext)(null), nz = class extends Sb {
ref: t
});
});
-function Pfe({ item: e }) {
- let t = (0, P.useRef)(null), n = (0, P.useContext)($R), { isVirtualized: r, CollectionBranch: i } = (0, P.useContext)(LI), { rowProps: a } = Uoe({
+function Lfe({ item: e }) {
+ let t = (0, P.useRef)(null), n = (0, P.useContext)(QR), { isVirtualized: r, CollectionBranch: i } = (0, P.useContext)(II), { rowProps: a } = Loe({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Xoe(n);
- return /*#__PURE__*/ P.createElement(Nfe, {
+ }, n, t), { checkboxProps: o } = Woe(n);
+ return /*#__PURE__*/ P.createElement(Ife, {
...a,
ref: t
- }, /*#__PURE__*/ P.createElement(wI, { values: [[JI, { slots: { selection: o } }], [YI, { slots: { selection: o } }]] }, /*#__PURE__*/ P.createElement(i, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [[qI, { slots: { selection: o } }], [JI, { slots: { selection: o } }]] }, /*#__PURE__*/ P.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Ffe = class extends Sb {
+var Rfe = class extends Sb {
static {
this.type = "column";
}
-}, Ife = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
- return n ? /*#__PURE__*/ P.createElement(jI.div, {
+}, zfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
+ return n ? /*#__PURE__*/ P.createElement(AI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(jI.th, {
+ }) : /*#__PURE__*/ P.createElement(AI.th, {
...e,
ref: t
});
-}), iz = /*#__PURE__*/ vS(Ffe, (e, t, n) => {
- let r = aS(t), i = (0, P.useContext)($R), { isVirtualized: a } = (0, P.useContext)(LI), { columnHeaderProps: o, isPressed: s } = Boe({
+}), rz = /*#__PURE__*/ TS(Rfe, (e, t, n) => {
+ let r = aS(t), i = (0, P.useContext)(QR), { isVirtualized: a } = (0, P.useContext)(II), { columnHeaderProps: o, isPressed: s } = Poe({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = GT(), d = (0, P.useContext)(ez), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ZT(), d = (0, P.useContext)($R), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = YT({ isDisabled: !e.allowsSorting }), h = TI({
+ let { hoverProps: p, isHovered: m } = tE({ isDisabled: !e.allowsSorting }), h = wI({
...e,
id: void 0,
children: n.rendered,
@@ -40282,8 +40293,8 @@ var Ffe = class extends Sb {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = QS(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ P.createElement(Ife, {
+ let _ = dC(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ P.createElement(zfe, {
...K(_, o, u, p),
...h,
style: g,
@@ -40295,21 +40306,21 @@ var Ffe = class extends Sb {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [[az, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [[iz, {
column: n,
triggerRef: r
- }], [LI, FI]] }, h.children));
-}), az = /*#__PURE__*/ (0, P.createContext)(null), Lfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let n = (0, P.useContext)(ez);
+ }], [II, PI]] }, h.children));
+}), iz = /*#__PURE__*/ (0, P.createContext)(null), Bfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let n = (0, P.useContext)($R);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = XS(wfe(zL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, P.useContext)(QR), { column: s, triggerRef: c } = (0, P.useContext)(az), l = (0, P.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Hoe({
+ let r = lC(Dfe(RL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, P.useContext)(ZR), { column: s, triggerRef: c } = (0, P.useContext)(iz), l = (0, P.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Ioe({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = GT(), { hoverProps: _, isHovered: v } = YT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = WS(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = ZT(), { hoverProps: _, isHovered: v } = tE(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = rC(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
let C = aS(t), [w, T] = (0, P.useState)("");
(0, P.useEffect)(() => {
@@ -40317,7 +40328,7 @@ var Ffe = class extends Sb {
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = TI({
+ let E = wI({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -40327,8 +40338,8 @@ var Ffe = class extends Sb {
isHovered: v,
resizableDirection: S
}
- }), D = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(jI.div, {
+ }), D = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(AI.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -40351,24 +40362,24 @@ var Ffe = class extends Sb {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), oz = class extends Cb {
+}), az = class extends Cb {
static {
this.type = "tablebody";
}
-}, Rfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
- return n ? /*#__PURE__*/ P.createElement(jI.div, {
+}, Vfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
+ return n ? /*#__PURE__*/ P.createElement(AI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(jI.tbody, {
+ }) : /*#__PURE__*/ P.createElement(AI.tbody, {
...e,
ref: t
});
-}), sz = /*#__PURE__*/ yS(oz, (e, t, n) => {
- let r = (0, P.useContext)($R), { isVirtualized: i } = (0, P.useContext)(LI), a = r.collection, { CollectionBranch: o } = (0, P.useContext)(LI), { dragAndDropHooks: s, dropState: c } = (0, P.useContext)(BL), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), oz = /*#__PURE__*/ ES(az, (e, t, n) => {
+ let r = (0, P.useContext)(QR), { isVirtualized: i } = (0, P.useContext)(II), a = r.collection, { CollectionBranch: o } = (0, P.useContext)(II), { dragAndDropHooks: s, dropState: c } = (0, P.useContext)(zL), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = TI({
+ }, p = wI({
...e,
id: void 0,
children: void 0,
@@ -40377,25 +40388,25 @@ var Ffe = class extends Sb {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ P.createElement(lz, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ P.createElement(cz, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ P.createElement(dz, {
+ }, /*#__PURE__*/ P.createElement(uz, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = QO(), _ = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(Rfe, {
+ let { rowGroupProps: g } = ok(), _ = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(Vfe, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ P.createElement(Kfe, null), /*#__PURE__*/ P.createElement(o, {
+ }, l && /*#__PURE__*/ P.createElement(Yfe, null), /*#__PURE__*/ P.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: HL(s, c)
+ renderDropIndicator: VL(s, c)
}), m);
});
(class extends Cb {
@@ -40403,7 +40414,7 @@ var Ffe = class extends Sb {
this.type = "tablefooter";
}
});
-var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zfe = class extends Sb {
+var sz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Hfe = class extends Sb {
static {
this.type = "item";
}
@@ -40415,31 +40426,31 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
}
return null;
}
-}, lz = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
- return n ? /*#__PURE__*/ P.createElement(jI.div, {
+}, cz = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
+ return n ? /*#__PURE__*/ P.createElement(AI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(jI.tr, {
+ }) : /*#__PURE__*/ P.createElement(AI.tr, {
...e,
ref: t
});
-}), uz = /*#__PURE__*/ yS(zfe, (e, t, n) => {
- let r = aS(t), i = (0, P.useContext)($R), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(BL), { isVirtualized: c, CollectionBranch: l } = (0, P.useContext)(LI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Koe({
+}), lz = /*#__PURE__*/ ES(Hfe, (e, t, n) => {
+ let r = aS(t), i = (0, P.useContext)(QR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(zL), { isVirtualized: c, CollectionBranch: l } = (0, P.useContext)(II), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Boe({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = GT(), { isFocusVisible: _, focusProps: v } = GT({ within: !0 }), { hoverProps: y, isHovered: b } = YT({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ZT(), { isFocusVisible: _, focusProps: v } = ZT({ within: !0 }), { hoverProps: y, isHovered: b } = tE({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Yoe({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Uoe({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, P.useRef)(null), { visuallyHiddenProps: T } = Ew();
+ let C, w = (0, P.useRef)(null), { visuallyHiddenProps: T } = Mw();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -40449,7 +40460,7 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
(0, P.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = TI({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = wI({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -40470,11 +40481,11 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
isExpanded: j,
level: n.level + 1
}
- }), ee = QS(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ P.createElement(P.Fragment, null, C && !C.isHidden && /*#__PURE__*/ P.createElement(lz, {
+ }), ee = dC(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ P.createElement(P.Fragment, null, C && !C.isHidden && /*#__PURE__*/ P.createElement(cz, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ P.createElement(dz, {
+ }, /*#__PURE__*/ P.createElement(uz, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -40483,7 +40494,7 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ P.createElement(lz, {
+ }))), /*#__PURE__*/ P.createElement(cz, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -40499,17 +40510,17 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [JI, { slots: {
- [CI]: {},
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [qI, { slots: {
+ [SI]: {},
selection: x
} }],
- [YI, { slots: {
- [CI]: {},
+ [JI, { slots: {
+ [SI]: {},
selection: x
} }],
- [VI, { slots: {
- [CI]: {},
+ [BI, { slots: {
+ [SI]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -40517,8 +40528,8 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
style: { pointerEvents: "none" }
}
} }],
- [KL, { isSelected: p.isSelected }],
- [cz, { isFocusVisibleWithinRow: _ }]
+ [GL, { isSelected: p.isSelected }],
+ [sz, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ P.createElement(l, {
collection: i.collection,
parent: n
@@ -40526,34 +40537,34 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ P.createElement(SS, {
+ return /*#__PURE__*/ P.createElement(kS, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Bfe = class extends Sb {
+}), Ufe = class extends Sb {
static {
this.type = "cell";
}
-}, dz = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
- return n ? /*#__PURE__*/ P.createElement(jI.div, {
+}, uz = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
+ return n ? /*#__PURE__*/ P.createElement(AI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(jI.td, {
+ }) : /*#__PURE__*/ P.createElement(AI.td, {
...e,
ref: t
});
-}), fz = /*#__PURE__*/ vS(Bfe, (e, t, n) => {
- let r = aS(t), i = (0, P.useContext)($R), { dragState: a } = (0, P.useContext)(BL), { isVirtualized: o } = (0, P.useContext)(LI);
+}), dz = /*#__PURE__*/ TS(Ufe, (e, t, n) => {
+ let r = aS(t), i = (0, P.useContext)(QR), { dragState: a } = (0, P.useContext)(zL), { isVirtualized: o } = (0, P.useContext)(II);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Roe({
+ let { gridCellProps: s, isPressed: c } = Moe({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = GT(), { hoverProps: f, isHovered: p } = YT({}), { isFocusVisibleWithinRow: m } = (0, P.useContext)(cz), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = TI({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ZT(), { hoverProps: f, isHovered: p } = tE({}), { isFocusVisibleWithinRow: m } = (0, P.useContext)(sz), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = wI({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -40572,8 +40583,8 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = QS(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ P.createElement(dz, {
+ }), S = dC(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ P.createElement(uz, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -40587,14 +40598,14 @@ var cz = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), zf
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ P.createElement(LI.Provider, { value: FI }, x.children));
+ }, /*#__PURE__*/ P.createElement(II.Provider, { value: PI }, x.children));
});
-function Vfe(e, t) {
+function Wfe(e, t) {
t = aS(t);
- let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(BL), i = (0, P.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(zL), i = (0, P.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ P.createElement(Gfe, {
+ return /*#__PURE__*/ P.createElement(Jfe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -40603,40 +40614,40 @@ function Vfe(e, t) {
ref: t
});
}
-var Hfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
- return n ? /*#__PURE__*/ P.createElement(jI.div, {
+var Gfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
+ return n ? /*#__PURE__*/ P.createElement(AI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(jI.tr, {
+ }) : /*#__PURE__*/ P.createElement(AI.tr, {
...e,
ref: t
});
-}), Ufe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(LI);
- return n ? /*#__PURE__*/ P.createElement(jI.div, {
+}), Kfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(II);
+ return n ? /*#__PURE__*/ P.createElement(AI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(jI.td, {
+ }) : /*#__PURE__*/ P.createElement(AI.td, {
...e,
ref: t
});
});
-function Wfe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, P.useContext)($R), { visuallyHiddenProps: c } = Ew(), l = TI({
+function qfe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, P.useContext)(QR), { visuallyHiddenProps: c } = Mw(), l = wI({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ P.createElement(Hfe, {
- ...QS(e, { global: !0 }),
+ return /*#__PURE__*/ P.createElement(Gfe, {
+ ...dC(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ P.createElement(Ufe, {
+ }, /*#__PURE__*/ P.createElement(Kfe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -40647,14 +40658,14 @@ function Wfe(e, t) {
ref: i
}), l.children));
}
-var Gfe = /*#__PURE__*/ (0, P.forwardRef)(Wfe);
-function Kfe() {
- let e = (0, P.useContext)($R), { dragAndDropHooks: t, dropState: n } = (0, P.useContext)(BL), r = (0, P.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Ew();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ P.createElement(lz, {
+var Jfe = /*#__PURE__*/ (0, P.forwardRef)(qfe);
+function Yfe() {
+ let e = (0, P.useContext)(QR), { dragAndDropHooks: t, dropState: n } = (0, P.useContext)(zL), r = (0, P.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Mw();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ P.createElement(cz, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ P.createElement(dz, {
+ }, /*#__PURE__*/ P.createElement(uz, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -40665,9 +40676,9 @@ function Kfe() {
ref: r
})));
}
-vS(wb, function(e, t, n) {
- let r = (0, P.useContext)($R), { isVirtualized: i } = (0, P.useContext)(LI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, P.useRef)(null);
- aR((0, P.useMemo)(() => ({
+TS(wb, function(e, t, n) {
+ let r = (0, P.useContext)(QR), { isVirtualized: i } = (0, P.useContext)(II), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, P.useRef)(null);
+ iR((0, P.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -40677,7 +40688,7 @@ vS(wb, function(e, t, n) {
s,
r?.collection
]), u);
- let d = TI({
+ let d = wI({
...c,
id: void 0,
children: n.rendered,
@@ -40685,10 +40696,10 @@ vS(wb, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(lz, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(cz, {
style: { height: 0 },
- inert: JL(!0)
- }, /*#__PURE__*/ P.createElement(dz, { style: {
+ inert: qL(!0)
+ }, /*#__PURE__*/ P.createElement(uz, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ P.createElement("div", {
@@ -40699,22 +40710,22 @@ vS(wb, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ P.createElement(lz, {
- ...K(QS(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ P.createElement(cz, {
+ ...K(dC(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ P.createElement(dz, {
+ }, /*#__PURE__*/ P.createElement(uz, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function qfe(e) {
- let [t, n] = _w(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, P.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = rR({
+function Xfe(e) {
+ let [t, n] = Cw(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, P.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = nR({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -40736,24 +40747,24 @@ function qfe(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Jfe(e) {
- let t = qfe({
+function Zfe(e) {
+ let t = Xfe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? pz(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? fz(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, P.useRef)(i);
return (0, P.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = pz(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = fz(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function pz(e, t) {
+function fz(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -40762,24 +40773,24 @@ function pz(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var mz = /*#__PURE__*/ (0, P.createContext)(null), hz = /*#__PURE__*/ (0, P.createContext)(null), Yfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, mz);
+var pz = /*#__PURE__*/ (0, P.createContext)(null), mz = /*#__PURE__*/ (0, P.createContext)(null), Qfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, pz);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, P.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ P.createElement(hS, { content: n }, (n) => /*#__PURE__*/ P.createElement(Xfe, {
+ }) : n, [n, r]), /*#__PURE__*/ P.createElement(_S, { content: n }, (n) => /*#__PURE__*/ P.createElement($fe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Xfe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Jfe({
+function $fe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Zfe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = GT({ within: !0 }), c = (0, P.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = ZT({ within: !0 }), c = (0, P.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -40787,12 +40798,12 @@ function Xfe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = TI({
+ ]), l = wI({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(jI.div, {
+ }), u = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(AI.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -40800,20 +40811,20 @@ function Xfe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [[mz, e], [hz, i]] }, l.children));
+ }, /*#__PURE__*/ P.createElement(CI, { values: [[pz, e], [mz, i]] }, l.children));
}
-var gz = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- return (0, P.useContext)(hz) ? /*#__PURE__*/ P.createElement(Zfe, {
+var hz = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ return (0, P.useContext)(mz) ? /*#__PURE__*/ P.createElement(epe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ P.createElement(SS, e);
+ }) : /*#__PURE__*/ P.createElement(kS, e);
});
-function Zfe({ props: e, forwardedRef: t }) {
- let n = (0, P.useContext)(hz), { CollectionRoot: r } = (0, P.useContext)(LI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = EI(mz), o = aS(t), { tabListProps: s } = $oe({
+function epe({ props: e, forwardedRef: t }) {
+ let n = (0, P.useContext)(mz), { CollectionRoot: r } = (0, P.useContext)(II), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = TI(pz), o = aS(t), { tabListProps: s } = qoe({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = TI({
+ }, n, o), c = wI({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -40821,30 +40832,30 @@ function Zfe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = QS(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ P.createElement(jI.div, {
+ }), l = dC(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ P.createElement(AI.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ P.createElement(GL, null, /*#__PURE__*/ P.createElement(r, {
+ }, /*#__PURE__*/ P.createElement(WL, null, /*#__PURE__*/ P.createElement(r, {
collection: n.collection,
- persistedKeys: RI(n.selectionManager.focusedKey)
+ persistedKeys: LI(n.selectionManager.focusedKey)
})));
}
-var Qfe = /*#__PURE__*/ vS(class extends Sb {
+var tpe = /*#__PURE__*/ TS(class extends Sb {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, P.useContext)(hz), i = aS(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Zoe({
+ let r = (0, P.useContext)(mz), i = aS(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Goe({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = GT(), { hoverProps: f, isHovered: p } = YT({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ZT(), { hoverProps: f, isHovered: p } = tE({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = TI({
+ }), m = wI({
...e,
id: void 0,
children: n.rendered,
@@ -40857,7 +40868,7 @@ var Qfe = /*#__PURE__*/ vS(class extends Sb {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? jI.a : jI.div, g = QS(e, { global: !0 });
+ }), h = n.props.href ? AI.a : AI.div, g = dC(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ P.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -40867,54 +40878,54 @@ var Qfe = /*#__PURE__*/ vS(class extends Sb {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ P.createElement(KL.Provider, { value: { isSelected: o } }, m.children));
-}), $fe = /*#__PURE__*/ uS(function(e, t) {
- let n = (0, P.useContext)(hz), r = aS(t), i = n.selectedKey === e.id, [a, o] = (0, P.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ P.createElement(GL.Provider, { value: { isSelected: o } }, m.children));
+}), npe = /*#__PURE__*/ uS(function(e, t) {
+ let n = (0, P.useContext)(mz), r = aS(t), i = n.selectedKey === e.id, [a, o] = (0, P.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = dR(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ P.createElement(epe, {
+ let s = uR(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ P.createElement(rpe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function epe(e) {
- let t = (0, P.useContext)(hz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = ese(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = GT(), d = t.selectedKey === e.id, f = uR(r) && !i, p = TI({
+function rpe(e) {
+ let t = (0, P.useContext)(mz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Joe(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ZT(), d = t.selectedKey === e.id, f = lR(r) && !i, p = wI({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: JL(!d),
+ isInert: qL(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = QS(o, { global: !0 });
+ }), m = dC(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ P.createElement(jI.div, {
+ return /*#__PURE__*/ P.createElement(AI.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: JL(!d || e.inert),
+ inert: qL(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [[mz, null], [hz, null]] }, /*#__PURE__*/ P.createElement(LI.Provider, { value: FI }, p.children)));
+ }, /*#__PURE__*/ P.createElement(CI, { values: [[pz, null], [mz, null]] }, /*#__PURE__*/ P.createElement(II.Provider, { value: PI }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var _z = /*#__PURE__*/ (0, P.createContext)({}), tpe = (e) => {
+var gz = /*#__PURE__*/ (0, P.createContext)({}), ipe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, npe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = DI(e, t, _z);
- let { hoverProps: n, isHovered: r } = YT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = GT({
+}, ape = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = EI(e, t, gz);
+ let { hoverProps: n, isHovered: r } = tE(e), { isFocused: i, isFocusVisible: a, focusProps: o } = ZT({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = TI({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = wI({
...e,
values: {
isHovered: r,
@@ -40925,8 +40936,8 @@ var _z = /*#__PURE__*/ (0, P.createContext)({}), tpe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ P.createElement(jI.textarea, {
- ...K(tpe(e), o, n),
+ return /*#__PURE__*/ P.createElement(AI.textarea, {
+ ...K(ipe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -40935,18 +40946,18 @@ var _z = /*#__PURE__*/ (0, P.createContext)({}), tpe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), rpe = /*#__PURE__*/ (0, P.createContext)(null), ipe = /*#__PURE__*/ uS(function(e, t) {
- [e, t] = DI(e, t, rpe);
- let { validationBehavior: n } = EI(qI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useRef)(null);
- [e, i] = DI(e, i, NI);
- let [a, o] = OI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, P.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = xae({
- ...kI(e),
+}), ope = /*#__PURE__*/ (0, P.createContext)(null), spe = /*#__PURE__*/ uS(function(e, t) {
+ [e, t] = EI(e, t, ope);
+ let { validationBehavior: n } = TI(KI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useRef)(null);
+ [e, i] = EI(e, i, MI);
+ let [a, o] = DI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, P.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = _ae({
+ ...OI(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, P.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = TI({
+ }, [i]), h = wI({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -40955,8 +40966,8 @@ var _z = /*#__PURE__*/ (0, P.createContext)({}), tpe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = QS(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ P.createElement(jI.div, {
+ }), g = dC(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ P.createElement(AI.div, {
...g,
...h,
ref: t,
@@ -40965,31 +40976,31 @@ var _z = /*#__PURE__*/ (0, P.createContext)({}), tpe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [zI, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [RI, {
...l,
ref: a
}],
- [$I, {
+ [QI, {
...u,
ref: m
}],
- [_z, {
+ [gz, {
...u,
ref: m
}],
- [ZI, {
+ [XI, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [GI, { slots: {
+ [WI, { slots: {
description: d,
errorMessage: f
} }],
- [KI, p]
+ [GI, p]
] }, h.children));
-}), ape = class e extends Eb {
+}), cpe = class e extends Eb {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -41061,16 +41072,16 @@ var _z = /*#__PURE__*/ (0, P.createContext)({}), tpe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, ope = /*#__PURE__*/ (0, P.createContext)(null), vz = /*#__PURE__*/ (0, P.createContext)(null), spe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- return [e, t] = DI(e, t, ope), /*#__PURE__*/ P.createElement(hS, {
- content: /*#__PURE__*/ P.createElement(SS, e),
- createCollection: () => new ape()
- }, (n) => /*#__PURE__*/ P.createElement(cpe, {
+}, lpe = /*#__PURE__*/ (0, P.createContext)(null), _z = /*#__PURE__*/ (0, P.createContext)(null), upe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ return [e, t] = EI(e, t, lpe), /*#__PURE__*/ P.createElement(_S, {
+ content: /*#__PURE__*/ P.createElement(kS, e),
+ createCollection: () => new cpe()
+ }, (n) => /*#__PURE__*/ P.createElement(dpe, {
props: e,
collection: n,
treeRef: t
}));
-}), yz = {
+}), vz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41080,17 +41091,17 @@ var _z = /*#__PURE__*/ (0, P.createContext)({}), tpe = (e) => {
rtl: "ArrowRight"
}
};
-function cpe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = WS(), a = RT({
+function dpe({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = rC(), a = WT({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, P.useRef)(o), l = (0, P.useRef)(s);
(0, P.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, P.useContext)(LI), [y, b] = _w(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, P.useState)(t), [C, w] = (0, P.useState)(y), [T, E] = (0, P.useState)(() => t.withExpandedKeys(C, y));
- hpe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = _R({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, P.useContext)(II), [y, b] = Cw(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, P.useState)(t), [C, w] = (0, P.useState)(y), [T, E] = (0, P.useState)(() => t.withExpandedKeys(C, y));
+ vpe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = gR({
...e,
selectionMode: u,
expandedKeys: y,
@@ -41098,7 +41109,7 @@ function cpe({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = tse({
+ }), { gridProps: O } = Yoe({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -41112,7 +41123,7 @@ function cpe({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ P.createElement(e, { ref: te }, r.renderDragPreview) : null;
}
- let [ne] = (0, P.useState)(() => new GR());
+ let [ne] = (0, P.useState)(() => new WR());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -41120,7 +41131,7 @@ function cpe({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
ne.setup(e, D, i);
- let t = new Bw({
+ let t = new Kw({
collection: D.collection,
collator: a,
ref: n,
@@ -41142,12 +41153,12 @@ function cpe({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === yz.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === yz.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === vz.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === vz.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let N = !(!o || k?.isDisabled), { focusProps: re, isFocused: ie, isFocusVisible: F } = GT(), ae = {
+ let N = !(!o || k?.isDisabled), { focusProps: re, isFocused: ie, isFocusVisible: F } = ZT(), ae = {
isEmpty: D.collection.size === 0,
isFocused: ie,
isFocusVisible: F,
@@ -41155,7 +41166,7 @@ function cpe({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!N,
state: D
- }, oe = TI({
+ }, oe = wI({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -41172,8 +41183,8 @@ function cpe({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let ce = QS(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(DC, null, /*#__PURE__*/ P.createElement(jI.div, {
+ let ce = dC(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(FC, null, /*#__PURE__*/ P.createElement(AI.div, {
...K(ce, oe, O, re, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -41183,54 +41194,54 @@ function cpe({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": F || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!N || void 0
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [vz, D],
- [BL, {
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [_z, D],
+ [zL, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [VL, { render: dpe }]
- ] }, s && /*#__PURE__*/ P.createElement(mpe, null), /*#__PURE__*/ P.createElement(GL, null, /*#__PURE__*/ P.createElement(h, {
+ [BL, { render: mpe }]
+ ] }, s && /*#__PURE__*/ P.createElement(_pe, null), /*#__PURE__*/ P.createElement(WL, null, /*#__PURE__*/ P.createElement(h, {
collection: D.collection,
- persistedKeys: UL(D.selectionManager, r, A),
+ persistedKeys: HL(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: HL(r, A)
+ renderDropIndicator: VL(r, A)
}))), se)), ee);
}
-var lpe = /*#__PURE__*/ vS(class extends Sb {
+var fpe = /*#__PURE__*/ TS(class extends Sb {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, P.useContext)(bz), n = TI({
+ let t = (0, P.useContext)(yz), n = wI({
children: e.children,
values: t
});
- return /*#__PURE__*/ P.createElement(LI.Provider, { value: FI }, n.children);
-}), bz = /*#__PURE__*/ (0, P.createContext)(null), upe = /*#__PURE__*/ yS(class extends Sb {
+ return /*#__PURE__*/ P.createElement(II.Provider, { value: PI }, n.children);
+}), yz = /*#__PURE__*/ (0, P.createContext)(null), ppe = /*#__PURE__*/ ES(class extends Sb {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, P.useContext)(vz);
+ let r = (0, P.useContext)(_z);
t = aS(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, P.useContext)(BL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Ik({
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, P.useContext)(zL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Wk({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = YT({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = tE({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = GT(), { isFocusVisible: b, focusProps: x } = GT({ within: !0 }), { checkboxProps: S } = Xae({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = ZT(), { isFocusVisible: b, focusProps: x } = ZT({ within: !0 }), { checkboxProps: S } = Kae({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, P.useRef)(null), E = (0, P.useRef)(null), D = (0, P.useRef)(null), { visuallyHiddenProps: O } = Ew();
+ let w = null, T = (0, P.useRef)(null), E = (0, P.useRef)(null), D = (0, P.useRef)(null), { visuallyHiddenProps: O } = Mw();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -41269,7 +41280,7 @@ var lpe = /*#__PURE__*/ vS(class extends Sb {
A,
M,
j
- ]), te = TI({
+ ]), te = wI({
...e,
id: void 0,
children: n.rendered,
@@ -41296,7 +41307,7 @@ var lpe = /*#__PURE__*/ vS(class extends Sb {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), re = Jx(), ie = QS(e, { global: !0 });
+ }), re = Jx(), ie = dC(e, { global: !0 });
return delete ie.id, delete ie.onClick, /*#__PURE__*/ P.createElement(P.Fragment, null, w && !w.isHidden && /*#__PURE__*/ P.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -41319,7 +41330,7 @@ var lpe = /*#__PURE__*/ vS(class extends Sb {
"aria-labelledby": `${re} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ P.createElement(jI.div, {
+ }))), /*#__PURE__*/ P.createElement(AI.div, {
...K(ie, c, y, g, x, C?.dragProps),
...te,
ref: t,
@@ -41339,17 +41350,17 @@ var lpe = /*#__PURE__*/ vS(class extends Sb {
}, /*#__PURE__*/ P.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ P.createElement(wI, { values: [
- [JI, { slots: {
- [CI]: {},
+ }, /*#__PURE__*/ P.createElement(CI, { values: [
+ [qI, { slots: {
+ [SI]: {},
selection: S
} }],
- [YI, { slots: {
- [CI]: {},
+ [JI, { slots: {
+ [SI]: {},
selection: S
} }],
- [VI, { slots: {
- [CI]: {},
+ [BI, { slots: {
+ [SI]: {},
chevron: {
...u,
ref: T
@@ -41360,13 +41371,13 @@ var lpe = /*#__PURE__*/ vS(class extends Sb {
style: { pointerEvents: "none" }
}
} }],
- [bz, { ...ee }],
- [KL, { isSelected: f.isSelected }]
+ [yz, { ...ee }],
+ [GL, { isSelected: f.isSelected }]
] }, N))));
});
-vS(wb, function(e, t, n) {
- let { isVirtualized: r } = (0, P.useContext)(LI), i = (0, P.useContext)(vz), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, P.useRef)(null);
- aR((0, P.useMemo)(() => ({
+TS(wb, function(e, t, n) {
+ let { isVirtualized: r } = (0, P.useContext)(II), i = (0, P.useContext)(_z), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, P.useRef)(null);
+ iR((0, P.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -41376,10 +41387,10 @@ vS(wb, function(e, t, n) {
s,
i?.collection
]), l), t = aS(t);
- let { rowProps: u, gridCellProps: d } = Ik({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ let { rowProps: u, gridCellProps: d } = Wk({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = TI({
+ }, m = wI({
...c,
id: void 0,
children: n.rendered,
@@ -41392,7 +41403,7 @@ vS(wb, function(e, t, n) {
width: 0,
height: 0
},
- inert: JL(!0)
+ inert: qL(!0)
}, /*#__PURE__*/ P.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -41401,9 +41412,9 @@ vS(wb, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ P.createElement(jI.div, {
+ })), a && m.children && /*#__PURE__*/ P.createElement(AI.div, {
ref: t,
- ...K(QS(e), p),
+ ...K(dC(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ P.createElement("div", {
@@ -41411,12 +41422,12 @@ vS(wb, function(e, t, n) {
style: h
}, m.children)));
});
-function dpe(e, t) {
+function mpe(e, t) {
t = aS(t);
- let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(BL), i = (0, P.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(zL), i = (0, P.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ P.createElement(ppe, {
+ return /*#__PURE__*/ P.createElement(gpe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -41425,8 +41436,8 @@ function dpe(e, t) {
level: c
});
}
-function fpe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = Ew(), c = TI({
+function hpe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = Mw(), c = wI({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -41435,7 +41446,7 @@ function fpe(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ P.createElement(jI.div, {
+ return /*#__PURE__*/ P.createElement(AI.div, {
...c,
role: "row",
"aria-level": a,
@@ -41448,9 +41459,9 @@ function fpe(e, t) {
ref: i
}), c.children));
}
-var ppe = /*#__PURE__*/ (0, P.forwardRef)(fpe);
-function mpe() {
- let { dragAndDropHooks: e, dropState: t } = (0, P.useContext)(BL), n = (0, P.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = Ew();
+var gpe = /*#__PURE__*/ (0, P.forwardRef)(hpe);
+function _pe() {
+ let { dragAndDropHooks: e, dropState: t } = (0, P.useContext)(zL), n = (0, P.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = Mw();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ P.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -41462,13 +41473,13 @@ function mpe() {
ref: n
})));
}
-function hpe(e, t) {
+function vpe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// node_modules/@remixicon/react/index.mjs
-var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+var ype = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41476,7 +41487,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), _pe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), bpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41484,7 +41495,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), xz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), bz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41492,7 +41503,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), Sz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), xz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41500,7 +41511,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), Cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), Sz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41508,7 +41519,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), vpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), xpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41516,7 +41527,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), ype = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Spe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41524,7 +41535,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), bpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Cpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41532,7 +41543,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), xpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), wpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41540,7 +41551,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Spe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Tpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41548,7 +41559,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Cpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Epe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41556,7 +41567,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), wpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Dpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41564,7 +41575,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Tpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Ope = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41572,7 +41583,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), Epe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), kpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41580,7 +41591,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), Dpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), Ape = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41588,7 +41599,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), wz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), Cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41596,7 +41607,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Ope = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), jpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41604,7 +41615,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), kpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), Mpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41612,7 +41623,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Ape = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Npe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41620,7 +41631,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), jpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Ppe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41628,7 +41639,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Mpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Fpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41636,7 +41647,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), Tz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), wz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41644,7 +41655,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Npe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Ipe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41652,7 +41663,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Ppe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Lpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41660,7 +41671,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Fpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Rpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41668,7 +41679,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), Ipe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), zpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41676,7 +41687,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Lpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Bpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41684,7 +41695,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Rpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Vpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41692,7 +41703,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Ez = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Tz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41700,7 +41711,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), Dz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), Ez = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41708,7 +41719,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), zpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Hpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41716,7 +41727,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), Oz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), Dz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41724,7 +41735,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), kz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), Oz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41732,7 +41743,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Bpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Upe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41740,7 +41751,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Vpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Wpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41748,7 +41759,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Hpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41756,7 +41767,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Upe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Kpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41764,7 +41775,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Wpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), qpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41772,7 +41783,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), Az = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), kz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41780,7 +41791,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Jpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41788,7 +41799,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Kpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Ype = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41796,7 +41807,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), jz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), Az = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41804,7 +41815,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), Mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), jz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41812,7 +41823,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), Nz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), Mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41820,7 +41831,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Nz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41828,7 +41839,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), qpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Xpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41836,7 +41847,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), Fz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), Pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41844,7 +41855,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), Jpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), Zpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41852,7 +41863,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), Ype = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), Qpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41860,7 +41871,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), Xpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), $pe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41868,7 +41879,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Zpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), eme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41876,7 +41887,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Qpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), tme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41884,7 +41895,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), $pe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), nme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41892,7 +41903,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Iz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Fz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41900,7 +41911,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Lz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Iz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41908,7 +41919,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), eme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), rme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41916,7 +41927,7 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), tme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), ime = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41926,11 +41937,11 @@ var gpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P
className: "remixicon " + (n || "")
}, P.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" }));
// src/react/boardui/components/base/input/label.tsx
-function Rz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, F.jsxs)(BI, {
+function Lz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsxs)(zI, {
"data-label": "true",
...a,
- className: sF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: IF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, F.jsx)("span", {
@@ -41938,7 +41949,7 @@ function Rz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, F.jsx)(Hpe, {
+ n && /* @__PURE__ */ (0, F.jsx)(Gpe, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -41946,32 +41957,32 @@ function Rz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function zz({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, F.jsx)(ide, {
+function Rz({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, F.jsx)(sde, {
slot: e ? "errorMessage" : "description",
...n,
- className: sF("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: IF("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var Bz = (0, P.createContext)({});
-function Vz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, F.jsx)(Bz.Provider, {
+var zz = (0, P.createContext)({});
+function Bz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)(zz.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, F.jsx)(ipe, {
+ children: /* @__PURE__ */ (0, F.jsx)(spe, {
...a,
"data-input-size": e,
- className: sF("group flex h-max w-full flex-col items-start gap-1", r),
+ className: IF("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-Vz.displayName = "TextField";
-var Hz = cF({
+Bz.displayName = "TextField";
+var Vz = LF({
field: "relative flex w-full items-center 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",
@@ -41986,44 +41997,44 @@ var Hz = cF({
input: "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary focus:placeholder:text-text-primary disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text disabled:cursor-not-allowed aria-invalid:placeholder:text-text-error-placeholder",
icon: "size-5 shrink-0"
});
-function Uz({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, P.useContext)(Bz), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, F.jsx)(QI, {
+function Hz({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, P.useContext)(zz), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, F.jsx)(ZI, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => sF(Hz.field, d ? Hz.fieldWithAddonSize[u] : Hz.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => IF(Vz.field, d ? Vz.fieldWithAddonSize[u] : Vz.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, F.jsxs)("div", {
- className: Hz.content,
+ className: Vz.content,
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
- className: Hz.leftSection,
+ className: Vz.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, F.jsx)(t, {
- className: Hz.icon,
+ className: Vz.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, F.jsx)(ude, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(pde, {
ref: o,
...c,
- className: sF(Hz.input, l.inputClassName, a)
+ className: IF(Vz.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, F.jsx)(n, {
- className: Hz.icon,
+ className: Vz.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Uz.displayName = "InputBase";
-function Wz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, F.jsx)(Vz, {
+Hz.displayName = "InputBase";
+function Uz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, F.jsx)(Bz, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- e && /* @__PURE__ */ (0, F.jsx)(Rz, {
+ e && /* @__PURE__ */ (0, F.jsx)(Lz, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, F.jsx)(Uz, {
+ /* @__PURE__ */ (0, F.jsx)(Hz, {
ref: c,
groupRef: l,
placeholder: r,
@@ -42032,24 +42043,24 @@ function Wz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, F.jsx)(zz, {
+ t && /* @__PURE__ */ (0, F.jsx)(Rz, {
isInvalid: d,
children: t
})
] })
});
}
-Wz.displayName = "Input";
+Uz.displayName = "Input";
// src/react/components/modal-frame.tsx
-var nme = {
+var ame = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl"
};
-function Gz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function Wz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = Fx();
- return /* @__PURE__ */ (0, F.jsx)(MR, {
+ return /* @__PURE__ */ (0, F.jsx)(jR, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -42057,11 +42068,11 @@ function Gz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
"data-modal-kind": n,
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, F.jsx)(Kde, {
+ children: /* @__PURE__ */ (0, F.jsx)(Yde, {
"data-modal-surface": "",
"data-modal-width": n,
- className: `flex max-h-full w-full ${nme[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, F.jsx)(OR, {
+ className: `flex max-h-full w-full ${ame[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, F.jsx)(DR, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -42069,7 +42080,7 @@ function Gz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function Kz({ children: e }) {
+function Gz({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -42077,12 +42088,12 @@ function Kz({ children: e }) {
});
}
// src/react/components/note.tsx
-function qz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function Kz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-note-layout": "",
- className: sF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
+ className: IF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
- className: sF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
+ className: IF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
children: [t ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium wrap-anywhere",
children: t
@@ -42099,37 +42110,37 @@ function qz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
switch (e) {
case "info": return /* @__PURE__ */ (0, F.jsx)("div", {
role: "status",
- className: sF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
+ className: IF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
children: s
});
case "success": return /* @__PURE__ */ (0, F.jsx)("div", {
role: "status",
- className: sF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
+ className: IF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
children: s
});
case "warning": return /* @__PURE__ */ (0, F.jsx)("div", {
role: "note",
- className: sF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
+ className: IF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
children: s
});
case "error": return /* @__PURE__ */ (0, F.jsx)("div", {
role: "alert",
- className: sF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
+ className: IF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
children: s
});
default: return /* @__PURE__ */ (0, F.jsx)("div", {
role: "note",
- className: sF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
+ className: IF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
children: s
});
}
}
// src/react/components/empty-state.tsx
-var rme = {
+var ome = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function ime({ target: e, children: t }) {
+function sme({ target: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "secondary",
@@ -42137,11 +42148,11 @@ function ime({ target: e, children: t }) {
children: t
});
}
-function Jz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function qz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
- className: `flex min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${rme[i]}`,
+ className: `flex min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${ome[i]}`,
children: [
/* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
@@ -42167,9 +42178,9 @@ function Jz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var Yz = /* @__PURE__ */ new Map();
-function Xz(e) {
- let t = Yz.get(e);
+var Jz = /* @__PURE__ */ new Map();
+function Yz(e) {
+ let t = Jz.get(e);
if (t) return t;
let { wide: n, viewBox: r } = Sn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
@@ -42185,10 +42196,10 @@ function Xz(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, Yz.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, Jz.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function Zz({ label: e, id: t, onPress: n }) {
+function Xz({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
id: t,
@@ -42203,60 +42214,60 @@ function Zz({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function Qz(e) {
+function Zz(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var $z = ["library-shortcuts"], eB = "/api/library-shortcuts";
-function tB(e = !0) {
+var Qz = ["library-shortcuts"], $z = "/api/library-shortcuts";
+function eB(e = !0) {
return Pt({
- queryKey: $z,
- queryFn: ({ signal: e }) => B(eB, e),
+ queryKey: Qz,
+ queryFn: ({ signal: e }) => B($z, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function nB() {
+function tB() {
return Ft({
- mutationKey: $z,
- mutationFn: (e) => V(eB, e),
+ mutationKey: Qz,
+ mutationFn: (e) => V($z, e),
onSuccess: (e, t) => {
- H.setQueryData($z, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(Qz, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function rB(e, t) {
+function nB(e, t) {
return e.some((e) => t.scope === "online" ? e.scope === "online" && e.tag_id === t.tag_id : e.scope !== "online" && (t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name));
}
-function ame(e) {
+function cme(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Nn(e.kind, e.name, e.entity_id);
}
// src/react/library-shortcuts/shortcut-controls.tsx
-var iB = Xz("star"), ome = Xz("bookmark-plus"), aB = Xz("chevron-right"), oB = {
+var rB = Yz("star"), lme = Yz("bookmark-plus"), iB = Yz("chevron-right"), aB = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, sB = {
- all: Xz("star"),
- performer: Xz("user-round"),
- creator: Xz("user-round"),
- studio: Xz("clapperboard"),
- series: Xz("film"),
- agency: Xz("briefcase"),
- tag: Xz("tags"),
- filters: Xz("list-filter")
-}, cB = [
+}, oB = {
+ all: Yz("star"),
+ performer: Yz("user-round"),
+ creator: Yz("user-round"),
+ studio: Yz("clapperboard"),
+ series: Yz("film"),
+ agency: Yz("briefcase"),
+ tag: Yz("tags"),
+ filters: Yz("list-filter")
+}, sB = [
["all", "全部"],
- ...Object.entries(oB),
+ ...Object.entries(aB),
["filters", "保存的筛选"]
];
-function lB({ label: e, children: t, ...n }) {
+function cB({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
...n,
@@ -42266,20 +42277,20 @@ function lB({ label: e, children: t, ...n }) {
children: t
});
}
-function uB({ item: e }) {
- return /* @__PURE__ */ (0, F.jsx)(sme, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function lB({ item: e }) {
+ return /* @__PURE__ */ (0, F.jsx)(ume, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function sme({ item: e }) {
- iI();
- let t = tB(!1), n = (0, P.useRef)(t.data), r = nB(), i = t.data && t.data !== n.current ? rB(t.data.favorites || [], e) : e.favorite ?? (t.data ? rB(t.data.favorites || [], e) : !1);
+function ume({ item: e }) {
+ sI();
+ let t = eB(!1), n = (0, P.useRef)(t.data), r = tB(), i = t.data && t.data !== n.current ? nB(t.data.favorites || [], e) : e.favorite ?? (t.data ? nB(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, F.jsx)(lB, {
+ /* @__PURE__ */ (0, F.jsx)(cB, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${tn(e.kind, e.name, e.entity_id)}`,
- ...Qz(r.isPending),
+ ...Zz(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -42290,9 +42301,9 @@ function sme({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: zs("") }
- }) : /* @__PURE__ */ (0, F.jsx)(iB, {})
+ }) : /* @__PURE__ */ (0, F.jsx)(rB, {})
}),
- r.isError ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ r.isError ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: cr(r.error)
}) : null,
@@ -42306,38 +42317,38 @@ function sme({ item: e }) {
]
});
}
-function dB({ currentHref: e, kind: t }) {
+function uB({ currentHref: e, kind: t }) {
let [n, r] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, F.jsx)(dI, {
+ children: /* @__PURE__ */ (0, F.jsx)(pI, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: iB,
+ icon: rB,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, F.jsx)(Gz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Wz, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, F.jsx)(cme, {
+ children: n ? /* @__PURE__ */ (0, F.jsx)(dme, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function cme({ currentHref: e, kind: t, close: n }) {
- iI();
- let r = tB(), i = nB(), [a, o] = (0, P.useState)(""), [s, c] = (0, P.useState)(t || "all"), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), p = (0, P.useId)(), [m, h] = (0, P.useState)(() => matchMedia("(max-width: 760px)").matches);
+function dme({ currentHref: e, kind: t, close: n }) {
+ sI();
+ let r = eB(), i = tB(), [a, o] = (0, P.useState)(""), [s, c] = (0, P.useState)(t || "all"), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), p = (0, P.useId)(), [m, h] = (0, P.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, P.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, P.useRef)(null), _ = (0, P.useRef)(null), v = (0, P.useRef)(s), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = (0, P.useRef)(null), S = bI(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, P.useRef)(null), _ = (0, P.useRef)(null), v = (0, P.useRef)(s), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = (0, P.useRef)(null), S = yI(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, P.useLayoutEffect)(() => {
b.current && (x.current = Lo(b.current) || null);
}, []), (0, P.useLayoutEffect)(() => {
@@ -42350,7 +42361,7 @@ function cme({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, P.useLayoutEffect)(() => {
x.current?.();
});
- let C = cB.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = sB.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -42373,7 +42384,7 @@ function cme({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, F.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, F.jsx)(Zz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Xz, {
label: "关闭我的收藏",
onPress: n
})]
@@ -42403,8 +42414,8 @@ function cme({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- cB.map(([e, t]) => {
- let n = sB[e] || iB, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ sB.map(([e, t]) => {
+ let n = oB[e] || rB, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "tab",
@@ -42436,17 +42447,17 @@ function cme({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, F.jsx)(iB, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, F.jsx)(rB, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, F.jsx)(aB, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, F.jsx)(iB, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, F.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, F.jsx)(ome, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, F.jsx)(lme, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, F.jsx)(aB, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, F.jsx)(iB, { "aria-hidden": !0 })
]
})]
})]
@@ -42465,7 +42476,7 @@ function cme({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ r.isError ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -42474,16 +42485,16 @@ function cme({ currentHref: e, kind: t, close: n }) {
}),
children: cr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ i.isError ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: cr(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, F.jsx)(Jz, {
+ E.filters.length ? null : /* @__PURE__ */ (0, F.jsx)(qz, {
size: "compact",
- icon: Xz("list-filter"),
+ icon: Yz("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, F.jsx)(SI, {
+ actions: /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: "/",
onClick: n,
@@ -42502,7 +42513,7 @@ function cme({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...Qz(i.isPending),
+ ...Zz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -42517,7 +42528,7 @@ function cme({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, F.jsx)(Wz, {
+ /* @__PURE__ */ (0, F.jsx)(Uz, {
label: "筛选名称",
value: a,
onChange: o,
@@ -42526,7 +42537,7 @@ function cme({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, F.jsx)(q, {
type: "submit",
disabled: !a.trim(),
- ...Qz(i.isPending),
+ ...Zz(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, F.jsx)("span", {
@@ -42537,16 +42548,16 @@ function cme({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(Wz, {
+ /* @__PURE__ */ (0, F.jsx)(Uz, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: Xz("search"),
+ leadingIcon: Yz("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, F.jsx)(Jz, {
+ O.length ? null : /* @__PURE__ */ (0, F.jsx)(qz, {
size: "compact",
- icon: iB,
+ icon: rB,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
@@ -42556,7 +42567,7 @@ function cme({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, F.jsx)(SI, {
+ }) : /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: "/",
onClick: n,
@@ -42570,25 +42581,25 @@ function cme({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, F.jsxs)("a", {
- href: ame(e),
+ href: cme(e),
"aria-label": tn(e.kind, e.name, e.entity_id),
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, F.jsx)(lme, { item: e }, e.image_url), /* @__PURE__ */ (0, F.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(fme, { item: e }, e.image_url), /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "truncate",
children: tn(e.kind, e.name, e.entity_id)
}), /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : oB[e.kind]
+ children: e.scope === "online" ? "在线标签" : aB[e.kind]
})]
})]
}), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${tn(e.kind, e.name, e.entity_id)}`,
- ...Qz(i.isPending),
+ ...Zz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -42606,8 +42617,8 @@ function cme({ currentHref: e, kind: t, close: n }) {
]
});
}
-function lme({ item: e }) {
- let t = sB[e.kind] || iB;
+function fme({ item: e }) {
+ let t = oB[e.kind] || rB;
return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -42625,19 +42636,19 @@ function lme({ item: e }) {
});
}
// node_modules/react-router/dist/production/lib/router/url.js
-var ume = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, fB = /^[\\/]{2}/;
-function dme(e, t) {
+var pme = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, dB = /^[\\/]{2}/;
+function mme(e, t) {
return t + e.replace(/\\/g, "/");
}
// node_modules/react-router/dist/production/lib/router/history.js
-var pB = "popstate";
-function mB(e) {
+var fB = "popstate";
+function pB(e) {
return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
}
-function fme(e = {}) {
+function hme(e = {}) {
function t(e, t) {
let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;
- return vB("", {
+ return _B("", {
pathname: r,
search: i,
hash: a
@@ -42648,14 +42659,14 @@ function fme(e = {}) {
} : void 0);
}
function n(e, t) {
- return typeof t == "string" ? t : yB(t);
+ return typeof t == "string" ? t : vB(t);
}
- return mme(t, n, null, e);
+ return _me(t, n, null, e);
}
-function hB(e, t) {
+function mB(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function gB(e, t) {
+function hB(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -42663,10 +42674,10 @@ function gB(e, t) {
} catch {}
}
}
-function pme() {
+function gme() {
return Math.random().toString(36).substring(2, 10);
}
-function _B(e, t) {
+function gB(e, t) {
return {
usr: e.state,
key: e.key,
@@ -42678,21 +42689,21 @@ function _B(e, t) {
} : void 0
};
}
-function vB(e, t, n = null, r, i) {
+function _B(e, t, n = null, r, i) {
return {
pathname: typeof e == "string" ? e : e.pathname,
search: "",
hash: "",
- ...typeof t == "string" ? bB(t) : t,
+ ...typeof t == "string" ? yB(t) : t,
state: n,
- key: t && t.key || r || pme(),
+ key: t && t.key || r || gme(),
mask: i
};
}
-function yB({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function vB({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
-function bB(e) {
+function yB(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -42702,7 +42713,7 @@ function bB(e) {
}
return t;
}
-function mme(e, t, n, r = {}) {
+function _me(e, t, n, r = {}) {
let { window: i = document.defaultView, v5Compat: a = !1 } = r, o = i.history, s = "POP", c = null, l = u();
l ?? (l = 0, o.replaceState({
...o.state,
@@ -42722,9 +42733,9 @@ function mme(e, t, n, r = {}) {
}
function f(e, t) {
s = "PUSH";
- let r = mB(e) ? e : vB(h.location, e, t);
+ let r = pB(e) ? e : _B(h.location, e, t);
n && n(r, e), l = u() + 1;
- let d = _B(r, l), f = h.createHref(r.mask || r);
+ let d = gB(r, l), f = h.createHref(r.mask || r);
try {
o.pushState(d, "", f);
} catch (e) {
@@ -42739,9 +42750,9 @@ function mme(e, t, n, r = {}) {
}
function p(e, t) {
s = "REPLACE";
- let r = mB(e) ? e : vB(h.location, e, t);
+ let r = pB(e) ? e : _B(h.location, e, t);
n && n(r, e), l = u();
- let i = _B(r, l), d = h.createHref(r.mask || r);
+ let i = gB(r, l), d = h.createHref(r.mask || r);
o.replaceState(i, "", d), a && c && c({
action: s,
location: h.location,
@@ -42749,7 +42760,7 @@ function mme(e, t, n, r = {}) {
});
}
function m(e) {
- return hme(i, e);
+ return vme(i, e);
}
let h = {
get action() {
@@ -42760,8 +42771,8 @@ function mme(e, t, n, r = {}) {
},
listen(e) {
if (c) throw Error("A history only accepts one active listener");
- return i.addEventListener(pB, d), c = e, () => {
- i.removeEventListener(pB, d), c = null;
+ return i.addEventListener(fB, d), c = e, () => {
+ i.removeEventListener(fB, d), c = null;
};
},
createHref(e) {
@@ -42784,28 +42795,28 @@ function mme(e, t, n, r = {}) {
};
return h;
}
-function hme(e, t, n = !1) {
+function vme(e, t, n = !1) {
let r = "http://localhost";
- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), hB(r, "No window.location.(origin|href) available to create URL");
- let i = typeof t == "string" ? t : yB(t);
- return i = i.replace(/ $/, "%20"), !n && fB.test(i) && (i = r + i), new URL(i, r);
+ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), mB(r, "No window.location.(origin|href) available to create URL");
+ let i = typeof t == "string" ? t : vB(t);
+ return i = i.replace(/ $/, "%20"), !n && dB.test(i) && (i = r + i), new URL(i, r);
}
// node_modules/react-router/dist/production/lib/router/utils.js
-function gme(e, t, n = "/") {
- return _me(e, t, n, !1);
+function yme(e, t, n = "/") {
+ return bme(e, t, n, !1);
}
-function _me(e, t, n, r, i) {
- let a = DB((typeof t == "string" ? bB(t) : t).pathname || "/", n);
+function bme(e, t, n, r, i) {
+ let a = EB((typeof t == "string" ? yB(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? vme(e), s = null, c = jme(a);
- for (let e = 0; s == null && e < o.length; ++e) s = Ame(o[e], c, r);
+ let o = i ?? xme(e), s = null, c = Pme(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = Nme(o[e], c, r);
return s;
}
-function vme(e) {
- let t = xB(e);
- return yme(t), t;
+function xme(e) {
+ let t = bB(e);
+ return Sme(t), t;
}
-function xB(e, t = [], n = [], r = "", i = !1) {
+function bB(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -42815,14 +42826,14 @@ function xB(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- hB(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ mB(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = jB([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (hB(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), xB(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
+ let l = AB([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (mB(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), bB(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
path: l,
- score: Ome(l, e.index),
+ score: jme(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = EB(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = TB(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -42833,68 +42844,68 @@ function xB(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of SB(e.path)) a(e, t, !0, n);
+ else for (let n of xB(e.path)) a(e, t, !0, n);
}), t;
}
-function SB(e) {
+function xB(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = SB(r.join("/")), s = [];
+ let o = xB(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
-function yme(e) {
- e.sort((e, t) => e.score === t.score ? kme(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function Sme(e) {
+ e.sort((e, t) => e.score === t.score ? Mme(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var bme = /^:[\w-]+$/, xme = /^:[\w-]+/, Sme = 3.5, Cme = 3, wme = 2, Tme = 1, Eme = 10, Dme = -2, CB = (e) => e === "*";
-function Ome(e, t) {
+var Cme = /^:[\w-]+$/, wme = /^:[\w-]+/, Tme = 3.5, Eme = 3, Dme = 2, Ome = 1, kme = 10, Ame = -2, SB = (e) => e === "*";
+function jme(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(CB) && (r += Dme), t && (r += wme), n.filter((e) => !CB(e)).reduce((e, t) => e + (bme.test(t) ? Cme : xme.test(t) ? Sme : t === "" ? Tme : Eme), r);
+ return n.some(SB) && (r += Ame), t && (r += Dme), n.filter((e) => !SB(e)).reduce((e, t) => e + (Cme.test(t) ? Eme : wme.test(t) ? Tme : t === "" ? Ome : kme), r);
}
-function kme(e, t) {
+function Mme(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
}
-function Ame(e, t, n = !1) {
+function Nme(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? TB(u, l, s.matcher, s.compiledParams) : wB(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = wB({
+ }, d = s.matcher && s.compiledParams ? wB(u, l, s.matcher, s.compiledParams) : CB(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = CB({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: jB([a, d.pathname]),
- pathnameBase: Ime(jB([a, d.pathnameBase])),
+ pathname: AB([a, d.pathname]),
+ pathnameBase: zme(AB([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = jB([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = AB([a, d.pathnameBase]));
}
return o;
}
-function wB(e, t) {
+function CB(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = EB(e.path, e.caseSensitive, e.end);
- return TB(e, t, n, r);
+ let [n, r] = TB(e.path, e.caseSensitive, e.end);
+ return wB(e, t, n, r);
}
-function TB(e, t, n, r) {
+function wB(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = MB(a, 1), s = i.slice(1);
+ let a = i[0], o = jB(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = MB(a.slice(0, a.length - e.length), 1);
+ o = jB(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -42904,8 +42915,8 @@ function TB(e, t, n, r) {
pattern: e
};
}
-function EB(e, t = !1, n = !0) {
- gB(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function TB(e, t = !1, n = !0) {
+ hB(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -42918,46 +42929,46 @@ function EB(e, t = !1, n = !0) {
}).replace(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function jme(e) {
+function Pme(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return gB(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return hB(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function DB(e, t) {
+function EB(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
-function Mme(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? bB(e) : e, a;
- return n ? (n = AB(n), a = n.startsWith("/") || n.startsWith("\\") ? OB(n.substring(1), "/") : OB(n, t)) : a = t, {
+function Fme(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? yB(e) : e, a;
+ return n ? (n = kB(n), a = n.startsWith("/") || n.startsWith("\\") ? DB(n.substring(1), "/") : DB(n, t)) : a = t, {
pathname: a,
- search: Lme(r),
- hash: Rme(i)
+ search: Bme(r),
+ hash: Vme(i)
};
}
-function OB(e, t) {
- let n = MB(t).split("/");
+function DB(e, t) {
+ let n = jB(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function kB(e, t, n, r) {
+function OB(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
-function Nme(e) {
+function Ime(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function Pme(e) {
- let t = Nme(e);
+function Lme(e) {
+ let t = Ime(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function Fme(e, t, n, r = !1) {
+function Rme(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = bB(e) : (i = { ...e }, hB(!i.pathname || !i.pathname.includes("?"), kB("?", "pathname", "search", i)), hB(!i.pathname || !i.pathname.includes("#"), kB("#", "pathname", "hash", i)), hB(!i.search || !i.search.includes("#"), kB("#", "search", "hash", i)));
+ typeof e == "string" ? i = yB(e) : (i = { ...e }, mB(!i.pathname || !i.pathname.includes("?"), OB("?", "pathname", "search", i)), mB(!i.pathname || !i.pathname.includes("#"), OB("#", "pathname", "hash", i)), mB(!i.search || !i.search.includes("#"), OB("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -42969,16 +42980,16 @@ function Fme(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = Mme(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = Fme(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var AB = (e) => e.replace(/[\\/]{2,}/g, "/"), jB = (e) => AB(e.join("/"));
-function MB(e, t = 0) {
+var kB = (e) => e.replace(/[\\/]{2,}/g, "/"), AB = (e) => kB(e.join("/"));
+function jB(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var Ime = (e) => MB(e).replace(/^\/*/, "/"), Lme = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Rme = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, zme = class {
+var zme = (e) => jB(e).replace(/^\/*/, "/"), Bme = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Vme = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Hme = class {
status;
statusText;
data;
@@ -42988,26 +42999,26 @@ var Ime = (e) => MB(e).replace(/^\/*/, "/"), Lme = (e) => !e || e === "?" ? "" :
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function Bme(e) {
+function Ume(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function Vme(e) {
- return jB(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function Wme(e) {
+ return AB(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var NB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function Hme(e, t) {
+var MB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function Gme(e, t) {
let n = e;
- if (typeof n != "string" || !ume.test(n)) return {
+ if (typeof n != "string" || !pme.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (NB) try {
- let e = new URL(window.location.href), r = fB.test(n) ? new URL(dme(n, e.protocol)) : new URL(n), a = DB(r.pathname, t);
+ if (MB) try {
+ let e = new URL(window.location.href), r = dB.test(n) ? new URL(mme(n, e.protocol)) : new URL(n), a = EB(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- gB(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ hB(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -43016,44 +43027,44 @@ function Hme(e, t) {
};
}
// node_modules/react-router/dist/production/lib/router/navigation.js
-var PB = new URL("http://localhost");
-function FB(e) {
+var NB = new URL("http://localhost");
+function PB(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), PB);
+ return new URL(e.createHref("/"), NB);
} catch {
- return PB;
+ return NB;
}
}
-function IB(e, t) {
+function FB(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function Ume(e, t) {
+function Kme(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function LB(e, t, n, r) {
+function IB(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
- let a = new URL(t, n), o = i != null && !IB(i, n), s = !IB(a, n);
+ let a = new URL(t, n), o = i != null && !FB(i, n), s = !FB(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !Ume(e, i) || !IB(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !Kme(e, i) || !FB(i, a))) throw Error("External navigation is not allowed");
}
// node_modules/react-router/dist/production/lib/router/router.js
-var RB = [
+var LB = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(RB);
-var Wme = ["GET", ...RB];
-new Set(Wme);
-var Gme = [
+new Set(LB);
+var qme = ["GET", ...LB];
+new Set(qme);
+var Jme = [
"about:",
"blob:",
"chrome:",
@@ -43065,82 +43076,82 @@ var Gme = [
"filesystem:",
"javascript:"
];
-function Kme(e) {
+function Yme(e) {
try {
- return Gme.includes(new URL(e).protocol);
+ return Jme.includes(new URL(e).protocol);
} catch {
return !1;
}
}
// node_modules/react-router/dist/production/lib/context.js
+var RB = P.createContext(null);
+RB.displayName = "DataRouter";
+var Xme = P.createContext(null);
+Xme.displayName = "DataRouterState";
var zB = P.createContext(null);
-zB.displayName = "DataRouter";
-var qme = P.createContext(null);
-qme.displayName = "DataRouterState";
-var BB = P.createContext(null);
-BB.displayName = "DataRouterData";
-var Jme = P.createContext(null);
-Jme.displayName = "DataRouterNavigation";
-var Yme = P.createContext(!1), Xme = P.createContext({ isTransitioning: !1 });
-Xme.displayName = "ViewTransition";
+zB.displayName = "DataRouterData";
var Zme = P.createContext(null);
-Zme.displayName = "Fetchers";
-var Qme = P.createContext(null);
-Qme.displayName = "Await";
+Zme.displayName = "DataRouterNavigation";
+var Qme = P.createContext(!1), $me = P.createContext({ isTransitioning: !1 });
+$me.displayName = "ViewTransition";
+var ehe = P.createContext(null);
+ehe.displayName = "Fetchers";
+var the = P.createContext(null);
+the.displayName = "Await";
+var BB = P.createContext(null);
+BB.displayName = "Navigation";
var VB = P.createContext(null);
-VB.displayName = "Navigation";
-var HB = P.createContext(null);
-HB.displayName = "Location";
-var UB = P.createContext({
+VB.displayName = "Location";
+var HB = P.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-UB.displayName = "Route";
-var WB = P.createContext(!1);
-WB.displayName = "IsDataRoute";
-var GB = P.createContext(void 0);
-GB.displayName = "RouteId";
-var KB = P.createContext(null);
-KB.displayName = "RouteError";
+HB.displayName = "Route";
+var UB = P.createContext(!1);
+UB.displayName = "IsDataRoute";
+var WB = P.createContext(void 0);
+WB.displayName = "RouteId";
+var GB = P.createContext(null);
+GB.displayName = "RouteError";
// node_modules/react-router/dist/production/lib/errors.js
-var qB = "REACT_ROUTER_ERROR", $me = "REDIRECT", ehe = "ROUTE_ERROR_RESPONSE";
-function the(e) {
- if (e.startsWith(`${qB}:${$me}:{`)) try {
+var KB = "REACT_ROUTER_ERROR", nhe = "REDIRECT", rhe = "ROUTE_ERROR_RESPONSE";
+function ihe(e) {
+ if (e.startsWith(`${KB}:${nhe}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
-function nhe(e) {
- if (e.startsWith(`${qB}:${ehe}:{`)) try {
+function ahe(e) {
+ if (e.startsWith(`${KB}:${rhe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new zme(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Hme(t.status, t.statusText, t.data);
} catch {}
}
// node_modules/react-router/dist/production/lib/hooks.js
-function JB() {
- return P.useContext(HB) != null;
+function qB() {
+ return P.useContext(VB) != null;
}
-function YB() {
- return hB(JB(), "useLocation() may be used only in the context of a <Router> component."), P.useContext(HB).location;
+function JB() {
+ return mB(qB(), "useLocation() may be used only in the context of a <Router> component."), P.useContext(VB).location;
}
-var XB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function rhe() {
- return P.useContext(WB) ? hhe() : ihe();
+var YB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function ohe() {
+ return P.useContext(UB) ? vhe() : she();
}
-function ihe() {
- hB(JB(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = P.useContext(zB), { basename: t, navigator: n } = P.useContext(VB), { matches: r } = P.useContext(UB), { pathname: i } = YB(), a = JSON.stringify(Pme(r)), o = P.useRef(!1);
+function she() {
+ mB(qB(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = P.useContext(RB), { basename: t, navigator: n } = P.useContext(BB), { matches: r } = P.useContext(HB), { pathname: i } = JB(), a = JSON.stringify(Lme(r)), o = P.useRef(!1);
return P.useLayoutEffect(() => {
o.current = !0;
}), P.useCallback((r, s = {}) => {
- if (gB(o.current, XB), !o.current) return;
+ if (hB(o.current, YB), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = Fme(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : jB([t, c.pathname])), LB(typeof r == "string" ? r : yB(r), n.createHref(c), FB(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = Rme(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : AB([t, c.pathname])), IB(typeof r == "string" ? r : vB(r), n.createHref(c), PB(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -43150,19 +43161,19 @@ function ihe() {
]);
}
P.createContext(null);
-function ahe(e, t) {
- return ZB(e, t);
+function che(e, t) {
+ return XB(e, t);
}
-function ZB(e, t, n) {
- hB(JB(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = P.useContext(VB), { matches: i } = P.useContext(UB), a = i[i.length - 1], o = a ? a.params : {};
+function XB(e, t, n) {
+ mB(qB(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = P.useContext(BB), { matches: i } = P.useContext(HB), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = YB(), l;
+ let c = JB(), l;
if (t) {
- let e = typeof t == "string" ? bB(t) : t;
- hB(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? yB(t) : t;
+ mB(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -43170,13 +43181,13 @@ function ZB(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : gme(e, { pathname: d });
- let p = dhe(f && f.map((e) => Object.assign({}, e, {
+ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : yme(e, { pathname: d });
+ let p = mhe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: jB([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : jB([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: AB([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : AB([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ P.createElement(HB.Provider, { value: {
+ return t && p ? /* @__PURE__ */ P.createElement(VB.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -43189,14 +43200,14 @@ function ZB(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function ohe() {
- let e = mhe(), t = Bme(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function lhe() {
+ let e = _he(), t = Ume(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ P.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ P.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var she = /* @__PURE__ */ P.createElement(ohe, null), che = class extends P.Component {
+var uhe = /* @__PURE__ */ P.createElement(lhe, null), dhe = class extends P.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -43204,7 +43215,7 @@ var she = /* @__PURE__ */ P.createElement(ohe, null), che = class extends P.Comp
error: e.error
};
}
- static contextType = Yme;
+ static contextType = Qme;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -43225,30 +43236,30 @@ var she = /* @__PURE__ */ P.createElement(ohe, null), che = class extends P.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = nhe(e.digest);
+ let t = ahe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ P.createElement(UB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ P.createElement(WB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ P.createElement(GB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ P.createElement(KB.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ P.createElement(HB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ P.createElement(UB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ P.createElement(WB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ P.createElement(GB.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ P.createElement(lhe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ P.createElement(fhe, { error: e }, t) : t;
}
-}, QB = /* @__PURE__ */ new WeakMap();
-function lhe({ children: e, error: t }) {
- let { basename: n, navigator: r } = P.useContext(VB);
+}, ZB = /* @__PURE__ */ new WeakMap();
+function fhe({ children: e, error: t }) {
+ let { basename: n, navigator: r } = P.useContext(BB);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = the(t.digest);
+ let e = ihe(t.digest);
if (e) {
- let i = QB.get(t);
+ let i = ZB.get(t);
if (i) throw i;
- let a = Hme(e.location, n), o = a.absoluteURL || a.to;
- if (LB(e.location, o, FB(r), "allow-explicit"), Kme(o)) throw Error("Invalid redirect location");
- if (NB && !QB.get(t)) {
+ let a = Gme(e.location, n), o = a.absoluteURL || a.to;
+ if (IB(e.location, o, PB(r), "allow-explicit"), Yme(o)) throw Error("Invalid redirect location");
+ if (MB && !ZB.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
- throw QB.set(t, n), n;
+ throw ZB.set(t, n), n;
}
}
return /* @__PURE__ */ P.createElement("meta", {
@@ -43259,11 +43270,11 @@ function lhe({ children: e, error: t }) {
}
return e;
}
-function uhe({ routeContext: e, match: t, children: n }) {
- let r = P.useContext(zB);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ P.createElement(UB.Provider, { value: e }, /* @__PURE__ */ P.createElement(WB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ P.createElement(GB.Provider, { value: t.route.id }, n)));
+function phe({ routeContext: e, match: t, children: n }) {
+ let r = P.useContext(RB);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ P.createElement(HB.Provider, { value: e }, /* @__PURE__ */ P.createElement(UB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ P.createElement(WB.Provider, { value: t.route.id }, n)));
}
-function dhe(e, t = [], n) {
+function mhe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -43274,7 +43285,7 @@ function dhe(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- hB(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ mB(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -43294,16 +43305,16 @@ function dhe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: Vme(r.matches),
+ pattern: Wme(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || she, o && (s < 0 && c === 0 ? (ghe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || uhe, o && (s < 0 && c === 0 ? (yhe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ P.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ P.createElement(uhe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ P.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ P.createElement(phe, {
match: n,
routeContext: {
outlet: e,
@@ -43313,7 +43324,7 @@ function dhe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ P.createElement(che, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ P.createElement(dhe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -43328,50 +43339,50 @@ function dhe(e, t = [], n) {
}) : h();
}, null);
}
-function $B(e) {
+function QB(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
-function fhe(e) {
- let t = P.useContext(zB);
- return hB(t, $B(e)), t;
+function hhe(e) {
+ let t = P.useContext(RB);
+ return mB(t, QB(e)), t;
}
-function phe(e) {
- let t = P.useContext(BB);
- return hB(t, $B(e)), t;
+function ghe(e) {
+ let t = P.useContext(zB);
+ return mB(t, QB(e)), t;
}
-function eV(e) {
- let t = P.useContext(GB);
- return hB(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function $B(e) {
+ let t = P.useContext(WB);
+ return mB(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function mhe() {
- let e = P.useContext(KB), t = phe("useRouteError"), n = eV("useRouteError");
+function _he() {
+ let e = P.useContext(GB), t = ghe("useRouteError"), n = $B("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function hhe() {
- let { router: e } = fhe("useNavigate"), t = eV("useNavigate"), n = P.useRef(!1);
+function vhe() {
+ let { router: e } = hhe("useNavigate"), t = $B("useNavigate"), n = P.useRef(!1);
return P.useLayoutEffect(() => {
n.current = !0;
}), P.useCallback(async (r, i = {}) => {
- gB(n.current, XB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ hB(n.current, YB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var tV = {};
-function ghe(e, t, n) {
- !t && !tV[e] && (tV[e] = !0, gB(!1, n));
+var eV = {};
+function yhe(e, t, n) {
+ !t && !eV[e] && (eV[e] = !0, hB(!1, n));
}
// node_modules/react-router/dist/production/lib/dom/ssr/components.js
-var nV = P.createContext(void 0);
-nV.displayName = "FrameworkContext", P.memo(_he);
-function _he({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = P.useContext(zB);
- hB(a, "You must render this element inside a <DataRouterContext.Provider> element");
- let o = P.useContext(nV)?.routeDiscoveryRuntime;
+var tV = P.createContext(void 0);
+tV.displayName = "FrameworkContext", P.memo(bhe);
+function bhe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = P.useContext(RB);
+ mB(a, "You must render this element inside a <DataRouterContext.Provider> element");
+ let o = P.useContext(tV)?.routeDiscoveryRuntime;
return P.useEffect(() => {
n.initialized && o?.markReady();
- }, [n.initialized, o]), ZB(e, void 0, {
+ }, [n.initialized, o]), XB(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -43379,11 +43390,11 @@ function _he({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function rV(e) {
- hB(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+function nV(e) {
+ mB(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
-function vhe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- hB(!JB(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+function xhe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ mB(!qB(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = P.useMemo(() => ({
basename: s,
navigator: i,
@@ -43396,9 +43407,9 @@ function vhe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = bB(n));
+ typeof n == "string" && (n = yB(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = P.useMemo(() => {
- let e = DB(l, s);
+ let e = EB(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -43420,27 +43431,27 @@ function vhe({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return gB(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ P.createElement(VB.Provider, { value: c }, /* @__PURE__ */ P.createElement(HB.Provider, {
+ return hB(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ P.createElement(BB.Provider, { value: c }, /* @__PURE__ */ P.createElement(VB.Provider, {
children: t,
value: h
}));
}
-function iV({ children: e, location: t }) {
- return ahe(aV(e), t);
+function rV({ children: e, location: t }) {
+ return che(iV(e), t);
}
P.Component;
-function aV(e, t = []) {
+function iV(e, t = []) {
let n = [];
return P.Children.forEach(e, (e, r) => {
if (!P.isValidElement(e)) return;
let i = [...t, r];
if (e.type === P.Fragment) {
- n.push.apply(n, aV(e.props.children, i));
+ n.push.apply(n, iV(e.props.children, i));
return;
}
- hB(e.type === rV, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ mB(e.type === nV, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- hB(!a.index || !a.children, "An index route cannot have child routes.");
+ mB(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -43459,15 +43470,15 @@ function aV(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = aV(a.children, i)), n.push(o);
+ a.children && (o.children = iV(a.children, i)), n.push(o);
}), n;
}
// src/react/components/board-navigation-link.tsx
-function yhe(e) {
+function She(e) {
return /* @__PURE__ */ (0, F.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function bhe(e) {
+function Che(e) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -43481,7 +43492,7 @@ function bhe(e) {
})
});
}
-function xhe(e) {
+function whe(e) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -43495,7 +43506,7 @@ function xhe(e) {
})
});
}
-function oV(e) {
+function aV(e) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -43508,55 +43519,55 @@ function oV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function She({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function The({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = P.Children.toArray(e).filter(P.isValidElement);
return /* @__PURE__ */ (0, F.jsx)("nav", {
ref: r,
"aria-label": t,
- className: sF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
+ className: IF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, F.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, F.jsx)(xhe, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, F.jsx)(whe, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function sV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function oV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [t && /* @__PURE__ */ (0, F.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
}), e] });
if (i) return /* @__PURE__ */ (0, F.jsx)("li", {
"aria-current": "page",
- className: sF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
+ className: IF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
children: o
});
- let s = sF("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
+ let s = IF("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, F.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, F.jsx)(yhe, {
+ children: n ? /* @__PURE__ */ (0, F.jsx)(She, {
href: n,
className: s,
children: o
}) : /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: r,
- className: sF("cursor-pointer", s),
+ className: IF("cursor-pointer", s),
children: o
})
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function cV() {
- return WS().direction;
+function sV() {
+ return rC().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var lV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", Che = "w-[266px]", whe = "flex w-full flex-col gap-1 outline-none", uV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", dV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var cV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", Ehe = "w-[266px]", Dhe = "flex w-full flex-col gap-1 outline-none", lV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", uV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function The({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = cV(), l = (0, P.useContext)(LI), u = l === FI && !s.dragAndDropHooks ? pV : l;
+function Ohe({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = sV(), l = (0, P.useContext)(II), u = l === PI && !s.dragAndDropHooks ? fV : l;
return /* @__PURE__ */ (0, F.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -43573,23 +43584,23 @@ function The({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, F.jsx)(LI.Provider, {
+ children: /* @__PURE__ */ (0, F.jsx)(II.Provider, {
value: u,
- children: /* @__PURE__ */ (0, F.jsx)(spe, {
+ children: /* @__PURE__ */ (0, F.jsx)(upe, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => sF("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === pV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => IF("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === fV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function fV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = cV();
- return /* @__PURE__ */ (0, F.jsxs)(upe, {
+function dV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = sV();
+ return /* @__PURE__ */ (0, F.jsxs)(ppe, {
...u,
ref: l,
textValue: t,
@@ -43597,11 +43608,11 @@ function fV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
paddingInlineStart: `calc(0.5rem + ${e.level - 1} * 1.25rem)`,
...typeof c == "function" ? c(e) : c
}),
- className: (e) => sF("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, F.jsx)(lpe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? Dz : Ez : Fpe);
+ className: (e) => IF("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
+ children: [/* @__PURE__ */ (0, F.jsx)(fpe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? Ez : Tz : Rpe);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(Dhe, {
+ /* @__PURE__ */ (0, F.jsx)(Ahe, {
state: l,
id: u,
level: c,
@@ -43611,20 +43622,20 @@ function fV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, F.jsx)(HI, {
+ children: [t ? /* @__PURE__ */ (0, F.jsx)(VI, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, F.jsx)(Cz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Sz, {
"aria-hidden": !0,
- className: sF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
+ className: IF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
}) : /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
- className: sF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
+ className: IF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
}), f && /* @__PURE__ */ (0, F.jsx)(f, {
"aria-hidden": !0,
- className: sF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
+ className: IF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
})]
}),
/* @__PURE__ */ (0, F.jsx)("span", {
@@ -43639,24 +43650,24 @@ function fV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var pV = {
- ...FI,
- CollectionRoot: Ehe
+var fV = {
+ ...PI,
+ CollectionRoot: khe
};
-function Ehe({ collection: e, ...t }) {
- let n = (0, P.useContext)(vz);
- return n ? /* @__PURE__ */ (0, F.jsx)(Ay, {
+function khe({ collection: e, ...t }) {
+ let n = (0, P.useContext)(_z);
+ return n ? /* @__PURE__ */ (0, F.jsx)(Ny, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, F.jsx)(Ohe, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, F.jsx)(jhe, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, F.jsx)(FI.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, F.jsx)(PI.CollectionRoot, {
collection: e,
...t
});
}
-function Dhe({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function Ahe({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
let o = e.collection.getItem(t);
if (!o) return null;
let s = [], c = o.parentKey == null ? null : e.collection.getItem(o.parentKey), l = n - 1;
@@ -43689,7 +43700,7 @@ function Dhe({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
height: "7",
viewBox: `0 0 ${i} 7`,
fill: "none",
- className: sF("absolute start-0", a === "rtl" && "-scale-x-100"),
+ className: IF("absolute start-0", a === "rtl" && "-scale-x-100"),
style: { top: "calc(50% - 6px)" },
children: /* @__PURE__ */ (0, F.jsx)("path", {
d: `M0.5 0 Q0.5 6 6.5 6 H${i - .5}`,
@@ -43715,8 +43726,8 @@ function Dhe({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function Ohe({ state: e, children: t }) {
- let n = Dy(), r = tb(), [i, a] = (0, P.useState)(e);
+function jhe({ state: e, children: t }) {
+ let n = ky(), r = lb(), [i, a] = (0, P.useState)(e);
return n && i !== e && a(e), /* @__PURE__ */ (0, F.jsx)(xb.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
@@ -43756,14 +43767,14 @@ function Ohe({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, F.jsx)(vz.Provider, {
+ children: /* @__PURE__ */ (0, F.jsx)(_z.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var mV = {
+var pV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -43777,11 +43788,11 @@ var mV = {
gap: "gap-1.5"
}
};
-function hV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = mV[t], c = n || r, l = o && !a;
+function mV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = pV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
- className: sF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? sF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : sF("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: IF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? IF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : IF("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -43804,23 +43815,23 @@ function hV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function gV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = mV[n];
- return /* @__PURE__ */ (0, F.jsx)(sde, {
+function hV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = pV[n];
+ return /* @__PURE__ */ (0, F.jsx)(ude, {
ref: r,
...i,
- className: (t) => sF("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(hV, {
+ className: (t) => IF("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(mV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, F.jsx)("span", {
- className: sF(a.label, "text-text-primary"),
+ className: IF(a.label, "text-text-primary"),
children: t
})] })
});
}
// src/react/components/overlay-scrollbar.ts
-function _V() {
+function gV() {
let e = (0, P.useRef)(null), t = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
@@ -43832,13 +43843,13 @@ function _V() {
}, []), e;
}
// src/history/settings-route.ts
-var vV = {
+var _V = {
appearance: "外观与导航",
playback: "浏览与播放",
jav: "JAV 与新作",
search: "搜索与推荐",
content: "内容显示"
-}, yV = {
+}, vV = {
library: "媒体库与入库",
subscriptions: "来源与订阅",
downloads: "下载渠道",
@@ -43846,37 +43857,37 @@ var vV = {
maintenance: "应用与维护",
diagnostics: "系统诊断"
};
-function bV(e) {
- return yV[e.split("/")[2]] || yV.library;
+function yV(e) {
+ return vV[e.split("/")[2]] || vV.library;
}
-var xV = ["/settings", ...Object.keys(vV).map((e) => `/settings/${e}`)], SV = (e) => xV.includes(e);
-function CV(e) {
- return vV[e.split("/")[2]] || vV.appearance;
+var bV = ["/settings", ...Object.keys(_V).map((e) => `/settings/${e}`)], xV = (e) => bV.includes(e);
+function SV(e) {
+ return _V[e.split("/")[2]] || _V.appearance;
}
-function wV(e) {
+function CV(e) {
return `/settings/${Object.entries({
- ...vV,
- ...yV
+ ..._V,
+ ...vV
}).find(([, t]) => t === e)?.[0] || "appearance"}`;
}
-var TV = (e) => {
+var wV = (e) => {
let t = e?.settingsBackground;
return t && typeof t.pathname == "string" ? t : null;
-}, EV = [
+}, TV = [
"/assets/:id",
"/posts/:id",
"/works/:code"
-], khe = [
+], Mhe = [
"mix",
"parts",
"editions",
"playlist"
];
-function DV(e, t = "") {
+function EV(e, t = "") {
let n = new URL(e, "https://peach.invalid");
e = n.pathname, t ||= n.search;
- for (let n of EV) {
- let r = wB(n, e);
+ for (let n of TV) {
+ let r = CB(n, e);
if (!r) continue;
if (n === "/works/:code") {
let e = r.params.code || "";
@@ -43893,7 +43904,7 @@ function DV(e, t = "") {
let a = Number(i[0]);
if (!Number.isSafeInteger(a) || a <= 0) return null;
if (n === "/assets/:id") {
- let e = new URLSearchParams(t), r = khe.filter((t) => e.has(t));
+ let e = new URLSearchParams(t), r = Mhe.filter((t) => e.has(t));
if (r.length === 1) {
let t = r[0], i = e.get(t), o = Number(i);
if (/^[1-9]\d*$/.test(i) && Number.isSafeInteger(o)) return {
@@ -43917,8 +43928,8 @@ function DV(e, t = "") {
}
return null;
}
-var OV = (e, t = "") => DV(e, t)?.target ?? null, kV = (e) => SV(e.split(/[?#]/)[0]) || EV.some((t) => wB(t, e.split(/[?#]/)[0]) !== null);
-function AV(e) {
+var DV = (e, t = "") => EV(e, t)?.target ?? null, OV = (e) => xV(e.split(/[?#]/)[0]) || TV.some((t) => CB(t, e.split(/[?#]/)[0]) !== null);
+function kV(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
@@ -43926,34 +43937,34 @@ function AV(e) {
...typeof t.hash == "string" && t.hash ? { hash: t.hash } : {}
} : null;
}
-var jV = null, MV = null;
-function NV() {
+var AV = null, jV = null;
+function MV() {
let { pathname: e, search: t, hash: n } = window.location;
- kV(e) || (jV = {
+ OV(e) || (AV = {
pathname: e,
search: t,
...n ? { hash: n } : {}
});
}
-function PV() {
- jV = null, MV = null;
+function NV() {
+ AV = null, jV = null;
}
-function Ahe(e) {
- let t = AV(e);
- t && (jV = t, MV = t.pathname + t.search + (t.hash || ""));
+function Nhe(e) {
+ let t = kV(e);
+ t && (AV = t, jV = t.pathname + t.search + (t.hash || ""));
}
-function FV() {
- let e = MV;
- return MV = null, e;
+function PV() {
+ let e = jV;
+ return jV = null, e;
}
-function IV(e) {
- return jV ? {
- backgroundLocation: { ...jV },
+function FV(e) {
+ return AV ? {
+ backgroundLocation: { ...AV },
overlay: e
} : void 0;
}
// src/history/canonical-path.ts
-function LV(e) {
+function IV(e) {
let t = new URL(e, "https://peach.invalid");
for (let [e, n] of [
[/^\/item\/(\d+)$/, "/assets/"],
@@ -43976,16 +43987,16 @@ function LV(e) {
}[t.pathname] || t.pathname, t.pathname + t.search + t.hash;
}
// src/history/route-meta.ts
-var RV = {
+var LV = {
"/settings": {
title: "设置",
refresh: "skip"
},
- ...Object.fromEntries(Object.entries(vV).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(_V).map(([e, t]) => [`/settings/${e}`, {
title: t,
refresh: "skip"
}])),
- ...Object.fromEntries(Object.entries(yV).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(vV).map(([e, t]) => [`/settings/${e}`, {
title: t,
section: "configuration",
refresh: "reopen"
@@ -44121,13 +44132,13 @@ var RV = {
title: "播放墙"
}
};
-function zV(e) {
- if (Object.hasOwn(RV, e)) return RV[e];
- let t = DV(e);
- if (t) return RV[t.path];
+function RV(e) {
+ if (Object.hasOwn(LV, e)) return LV[e];
+ let t = EV(e);
+ if (t) return LV[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
- if (!r.length) return Object.hasOwn(RV, `/${n}`) ? RV[`/${n}`] : null;
+ if (!r.length) return Object.hasOwn(LV, `/${n}`) ? LV[`/${n}`] : null;
let i = `/${n}/*`, a = {
performers: "performer",
studios: "studio",
@@ -44136,124 +44147,124 @@ function zV(e) {
series: "series",
tags: "tag"
}, o = /^\d+$/.test(r.join("/")) ? ln(a[n] || "", Number(r[0])) : r.join("/");
- return Object.hasOwn(RV, i) ? {
- ...RV[i],
+ return Object.hasOwn(LV, i) ? {
+ ...LV[i],
title: o ? tn(a[n] || "", o) : "资料"
} : null;
}
// src/history/managed.ts
-var BV = () => {}, VV = new Promise((e) => {
- BV = e;
+var zV = () => {}, BV = new Promise((e) => {
+ zV = e;
});
-VV.catch(() => {});
-var HV = null, UV = /* @__PURE__ */ new Map(), WV = /* @__PURE__ */ new Map(), GV = 0, KV = /* @__PURE__ */ new Set();
-function jhe(e) {
- BV(e);
+BV.catch(() => {});
+var VV = null, HV = /* @__PURE__ */ new Map(), UV = /* @__PURE__ */ new Map(), WV = 0, GV = /* @__PURE__ */ new Set();
+function Phe(e) {
+ zV(e);
}
-function qV(e) {
- return UV.get(e) ?? null;
+function KV(e) {
+ return HV.get(e) ?? null;
}
-function JV(e) {
- return !!e && (UV.has(e) || WV.has(e));
+function qV(e) {
+ return !!e && (HV.has(e) || UV.has(e));
}
-var YV = () => [...UV.values()];
-function Mhe(e) {
- return KV.add(e), () => {
- KV.delete(e);
+var JV = () => [...HV.values()];
+function Fhe(e) {
+ return GV.add(e), () => {
+ GV.delete(e);
};
}
-function XV(e) {
- let t = YV();
- for (let n of [...KV]) n(t, e);
+function YV(e) {
+ let t = JV();
+ for (let n of [...GV]) n(t, e);
}
-async function ZV(e, t, n) {
+async function XV(e, t, n) {
let { container: r } = n;
- if ($V(r), !n.isCurrent()) return !1;
- GV += 1;
+ if (QV(r), !n.isCurrent()) return !1;
+ WV += 1;
let i = {
- revision: GV,
+ revision: WV,
controller: new AbortController()
};
- WV.set(r, i);
- let a = HV;
- HV = null, a?.();
- let o = await VV;
- if (WV.get(r) !== i) return !1;
+ UV.set(r, i);
+ let a = VV;
+ VV = null, a?.();
+ let o = await BV;
+ if (UV.get(r) !== i) return !1;
try {
await o(e, t, i.controller.signal);
} catch {
if (i.controller.signal.aborted) return !1;
}
- if (WV.get(r) !== i || (WV.delete(r), !n.isCurrent())) return !1;
- let s = n.place ? n.place(r) : Nhe(r);
- return UV.set(r, {
+ if (UV.get(r) !== i || (UV.delete(r), !n.isCurrent())) return !1;
+ let s = n.place ? n.place(r) : Ihe(r);
+ return HV.set(r, {
path: e,
props: t,
revision: i.revision,
container: r,
host: s,
resident: !!n.resident
- }), XV(!0), !0;
+ }), YV(!0), !0;
}
-function Nhe(e) {
+function Ihe(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.textContent = "", e.append(t), t;
}
-function QV(e, t) {
- let n = e ? UV.get(e) : void 0;
- n && (UV.set(n.container, {
+function ZV(e, t) {
+ let n = e ? HV.get(e) : void 0;
+ n && (HV.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), XV(!1));
+ }), YV(!1));
}
-function $V(e, ...t) {
+function QV(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = WV.get(r);
- e && (e.controller.abort(), WV.delete(r));
- let t = UV.get(r);
- t && (UV.delete(r), n.push(t));
+ let e = UV.get(r);
+ e && (e.controller.abort(), UV.delete(r));
+ let t = HV.get(r);
+ t && (HV.delete(r), n.push(t));
}
if (n.length) {
- XV(!0);
+ YV(!0);
for (let e of n) e.resident || e.host.remove();
}
}
-function Phe() {
- let [e, ...t] = /* @__PURE__ */ new Set([...UV.keys(), ...WV.keys()]);
- e && $V(e, ...t);
+function Lhe() {
+ let [e, ...t] = /* @__PURE__ */ new Set([...HV.keys(), ...UV.keys()]);
+ e && QV(e, ...t);
}
-function Fhe(e, t) {
- let n = UV.get(e);
- n?.revision === t && (UV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- XV(!1);
+function Rhe(e, t) {
+ let n = HV.get(e);
+ n?.revision === t && (HV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
+ YV(!1);
}));
}
// src/history/index.ts
-var eH = fme({ v5Compat: !0 }), tH = 0, nH = 0, rH = {
- action: eH.action,
- location: eH.location,
- seq: tH,
- openEpoch: nH,
+var $V = hme({ v5Compat: !0 }), eH = 0, tH = 0, nH = {
+ action: $V.action,
+ location: $V.location,
+ seq: eH,
+ openEpoch: tH,
claimed: !0
-}, iH = /* @__PURE__ */ new Set(), aH = !1, oH = !0;
-eH.listen(({ action: e, location: t }) => {
- let n = t.pathname + t.search + t.hash, r = LV(n);
- r !== n && (window.history.replaceState(window.history.state, "", r), t = eH.location), tH += 1, aH || (nH += 1), e !== "REPLACE" && (oH = !1), rH = {
+}, rH = /* @__PURE__ */ new Set(), iH = !1, aH = !0;
+$V.listen(({ action: e, location: t }) => {
+ let n = t.pathname + t.search + t.hash, r = IV(n);
+ r !== n && (window.history.replaceState(window.history.state, "", r), t = $V.location), eH += 1, iH || (tH += 1), e !== "REPLACE" && (aH = !1), nH = {
action: e,
location: t,
- seq: tH,
- openEpoch: nH,
- claimed: aH
+ seq: eH,
+ openEpoch: tH,
+ claimed: iH
};
- for (let e of [...iH]) e(rH);
+ for (let e of [...rH]) e(nH);
});
-function sH(e) {
- if (typeof e == "string") return LV(new URL(e, window.location.href).href);
- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = LV(t.href);
+function oH(e) {
+ if (typeof e == "string") return IV(new URL(e, window.location.href).href);
+ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = IV(t.href);
if (n === t.pathname + t.search + t.hash) return e;
let r = new URL(n, window.location.origin);
return {
@@ -44263,77 +44274,77 @@ function sH(e) {
hash: r.hash
};
}
-var cH = {
+var sH = {
get navigation() {
- return rH;
+ return nH;
},
listen(e) {
- return iH.add(e), () => {
- iH.delete(e);
+ return rH.add(e), () => {
+ rH.delete(e);
};
},
- createHref: (e) => eH.createHref(e),
- createURL: (e) => eH.createURL(e),
- encodeLocation: (e) => eH.encodeLocation(e),
- go: (e) => eH.go(e),
- push: (e, t) => eH.push(sH(e), t),
- replace: (e, t) => eH.replace(sH(e), t)
+ createHref: (e) => $V.createHref(e),
+ createURL: (e) => $V.createURL(e),
+ encodeLocation: (e) => $V.encodeLocation(e),
+ go: (e) => $V.go(e),
+ push: (e, t) => $V.push(oH(e), t),
+ replace: (e, t) => $V.replace(oH(e), t)
};
-function lH(e, { replace: t = !1, state: n } = {}) {
- let r = new URL(e, window.location.href), i = LV(`${r.pathname}${r.search}${r.hash}`);
- aH = !0;
+function cH(e, { replace: t = !1, state: n } = {}) {
+ let r = new URL(e, window.location.href), i = IV(`${r.pathname}${r.search}${r.hash}`);
+ iH = !0;
try {
- t ? eH.replace(i, n) : eH.push(i, n);
+ t ? $V.replace(i, n) : $V.push(i, n);
} finally {
- aH = !1;
+ iH = !1;
}
}
-var uH = () => oH;
-function dH() {
- if (SV(rH.location.pathname)) {
- let e = oH ? null : TV(rH.location.state);
- return e ? AV(e.state) || e : null;
+var lH = () => aH;
+function uH() {
+ if (xV(nH.location.pathname)) {
+ let e = aH ? null : wV(nH.location.state);
+ return e ? kV(e.state) || e : null;
}
- return oH ? null : AV(rH.location.state);
+ return aH ? null : kV(nH.location.state);
}
// src/react/providers.tsx
-var fH = null;
-function Ihe() {
- return fH?.isConnected || (fH = document.createElement("div"), fH.className = "peach-react", fH.dataset.reactOverlays = "", document.body.append(fH)), fH;
+var dH = null;
+function zhe() {
+ return dH?.isConnected || (dH = document.createElement("div"), dH.className = "peach-react", dH.dataset.reactOverlays = "", document.body.append(dH)), dH;
}
-function pH({ children: e }) {
+function fH({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)(se, {
client: H,
- children: /* @__PURE__ */ (0, F.jsx)(yne, {
+ children: /* @__PURE__ */ (0, F.jsx)(By, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, F.jsx)(BT, {
- getContainer: Ihe,
+ children: /* @__PURE__ */ (0, F.jsx)(KT, {
+ getContainer: zhe,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function Lhe(e) {
+function Bhe(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var Rhe = (e) => {
+var Vhe = (e) => {
switch (e) {
- case "success": return Vhe;
- case "info": return Uhe;
- case "warning": return Hhe;
- case "error": return Whe;
+ case "success": return Whe;
+ case "info": return Khe;
+ case "warning": return Ghe;
+ case "error": return qhe;
default: return null;
}
-}, zhe = Array(12).fill(0), Bhe = ({ visible: e, className: t }) => /*#__PURE__*/ P.createElement("div", {
+}, Hhe = Array(12).fill(0), Uhe = ({ visible: e, className: t }) => /*#__PURE__*/ P.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ P.createElement("div", { className: "sonner-spinner" }, zhe.map((e, t) => /*#__PURE__*/ P.createElement("div", {
+}, /*#__PURE__*/ P.createElement("div", { className: "sonner-spinner" }, Hhe.map((e, t) => /*#__PURE__*/ P.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), Vhe = /*#__PURE__*/ P.createElement("svg", {
+})))), Whe = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44344,7 +44355,7 @@ var Rhe = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), Hhe = /*#__PURE__*/ P.createElement("svg", {
+})), Ghe = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44355,7 +44366,7 @@ var Rhe = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), Uhe = /*#__PURE__*/ P.createElement("svg", {
+})), Khe = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44366,7 +44377,7 @@ var Rhe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), Whe = /*#__PURE__*/ P.createElement("svg", {
+})), qhe = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44377,7 +44388,7 @@ var Rhe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), Ghe = /*#__PURE__*/ P.createElement("svg", {
+})), Jhe = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44398,7 +44409,7 @@ var Rhe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), Khe = () => {
+})), Yhe = () => {
let [e, t] = P.useState(document.hidden);
return P.useEffect(() => {
let e = () => {
@@ -44406,7 +44417,7 @@ var Rhe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, qhe = 1, Jhe = 100, mH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : qhe++, hH = new class {
+}, Xhe = 1, Zhe = 100, pH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Xhe++, mH = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44416,10 +44427,10 @@ var Rhe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - Jhe;
+ let e = this.toasts.length - Zhe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = mH(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = pH(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -44494,7 +44505,7 @@ var Rhe = (e) => {
type: "default",
message: e
});
- else if (Xhe(e) && !e.ok) {
+ else if ($he(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !P.isValidElement(r) ? r : { message: r };
this.create({
@@ -44538,7 +44549,7 @@ var Rhe = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = mH(t);
+ let n = pH(t);
return this.create({
...t,
jsx: e(n),
@@ -44547,34 +44558,34 @@ var Rhe = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), Yhe = (e, t) => hH.message(e, t), Xhe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", gH = Object.assign(Yhe, {
- success: hH.success,
- info: hH.info,
- warning: hH.warning,
- error: hH.error,
- custom: hH.custom,
- message: hH.message,
- promise: hH.promise,
- dismiss: hH.dismiss,
- loading: hH.loading
+}(), Qhe = (e, t) => mH.message(e, t), $he = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", hH = Object.assign(Qhe, {
+ success: mH.success,
+ info: mH.info,
+ warning: mH.warning,
+ error: mH.error,
+ custom: mH.custom,
+ message: mH.message,
+ promise: mH.promise,
+ dismiss: mH.dismiss,
+ loading: mH.loading
}, {
- getHistory: () => hH.toasts,
- getToasts: () => hH.getActiveToasts()
+ getHistory: () => mH.toasts,
+ getToasts: () => mH.getActiveToasts()
});
-Lhe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
-function _H(e) {
+Bhe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+function gH(e) {
return e.label !== void 0;
}
-var Zhe = 3, Qhe = "24px", $he = "16px", vH = 4e3, ege = 356, tge = 14, nge = 45, rge = 200;
-function yH(...e) {
+var ege = 3, tge = "24px", nge = "16px", _H = 4e3, rge = 356, ige = 14, age = 45, oge = 200;
+function vH(...e) {
return e.filter(Boolean).join(" ");
}
-function ige(e) {
+function sge(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var age = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = P.useState(null), [O, k] = P.useState(null), [A, j] = P.useState(!1), [M, ee] = P.useState(!1), [te, ne] = P.useState(!1), [N, re] = P.useState(!1), [ie, F] = P.useState(!1), [ae, oe] = P.useState(0), [se, ce] = P.useState(0), le = P.useRef(n.duration || y || vH), ue = P.useRef(null), de = P.useRef(null), fe = c === 0, pe = c + 1 <= o, me = n.type, he = me ?? "default", I = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = P.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = P.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = P.useMemo(() => n.duration || y || vH, [n.duration, y]), xe = P.useRef(0), Se = P.useRef(0), Ce = P.useRef(0), we = P.useRef(null), [Te, Ee] = b.split("-"), De = P.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Khe(), ke = P.useMemo(() => e.swipeDirections ?? ige(b), [e.swipeDirections, b]), Ae = n.invert || t, je = me === "loading";
+var cge = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = P.useState(null), [O, k] = P.useState(null), [A, j] = P.useState(!1), [M, ee] = P.useState(!1), [te, ne] = P.useState(!1), [N, re] = P.useState(!1), [ie, F] = P.useState(!1), [ae, oe] = P.useState(0), [se, ce] = P.useState(0), le = P.useRef(n.duration || y || _H), ue = P.useRef(null), de = P.useRef(null), fe = c === 0, pe = c + 1 <= o, me = n.type, he = me ?? "default", I = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = P.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = P.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = P.useMemo(() => n.duration || y || _H, [n.duration, y]), xe = P.useRef(0), Se = P.useRef(0), Ce = P.useRef(0), we = P.useRef(null), [Te, Ee] = b.split("-"), De = P.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Yhe(), ke = P.useMemo(() => e.swipeDirections ?? sge(b), [e.swipeDirections, b]), Ae = n.invert || t, je = me === "loading";
Se.current = P.useMemo(() => ve * x + De, [ve, De]), P.useEffect(() => {
le.current = be;
}, [be]), P.useEffect(() => {
@@ -44615,7 +44626,7 @@ var age = (e) => {
let Me = P.useCallback(() => {
ee(!0), oe(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, rge);
+ }, oge);
}, [
n,
d,
@@ -44646,18 +44657,18 @@ var age = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ P.createElement("div", {
- className: yH(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: vH(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": me === "loading"
- }, w.loading) : /*#__PURE__*/ P.createElement(Bhe, {
- className: yH(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ P.createElement(Uhe, {
+ className: vH(C?.loader, n?.classNames?.loader),
visible: me === "loading"
});
}
- let Pe = n.icon || w?.[me] || Rhe(me);
+ let Pe = n.icon || w?.[me] || Vhe(me);
return /*#__PURE__*/ P.createElement("li", {
tabIndex: 0,
ref: de,
- className: yH(_, ge, C?.toast, n?.classNames?.toast, C?.[he], n?.classNames?.[he]),
+ className: vH(_, ge, C?.toast, n?.classNames?.toast, C?.[he], n?.classNames?.[he]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -44700,7 +44711,7 @@ var age = (e) => {
if (N || !I) return;
we.current = null;
let e = Number(de.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(de.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ue.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= nge || a > .11)) oe(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), re(!0);
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= age || a > .11)) oe(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), re(!0);
else {
var o, s;
(o = de.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = de.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), F(!1), ne(!1), D(null);
@@ -44739,46 +44750,46 @@ var age = (e) => {
onClick: je || !I ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: yH(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? Ghe) : null, (me || n.icon || n.promise) && n.icon !== null && (w?.[me] !== null || n.icon) ? /*#__PURE__*/ P.createElement("div", {
+ className: vH(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? Jhe) : null, (me || n.icon || n.promise) && n.icon !== null && (w?.[me] !== null || n.icon) ? /*#__PURE__*/ P.createElement("div", {
"data-icon": "",
- className: yH(C?.icon, n?.classNames?.icon)
+ className: vH(C?.icon, n?.classNames?.icon)
}, me === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, me === "loading" ? null : Pe) : null, /*#__PURE__*/ P.createElement("div", {
"data-content": "",
- className: yH(C?.content, n?.classNames?.content)
+ className: vH(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ P.createElement("div", {
"data-title": "",
- className: yH(C?.title, n?.classNames?.title)
+ className: vH(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ P.createElement("div", {
"data-description": "",
- className: yH(v, _e, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ P.isValidElement(n.cancel) ? n.cancel : n.cancel && _H(n.cancel) ? /*#__PURE__*/ P.createElement("button", {
+ className: vH(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ P.isValidElement(n.cancel) ? n.cancel : n.cancel && gH(n.cancel) ? /*#__PURE__*/ P.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- _H(n.cancel) && I && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ gH(n.cancel) && I && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: yH(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ P.isValidElement(n.action) ? n.action : n.action && _H(n.action) ? /*#__PURE__*/ P.createElement("button", {
+ className: vH(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ P.isValidElement(n.action) ? n.action : n.action && gH(n.action) ? /*#__PURE__*/ P.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- _H(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ gH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: yH(C?.actionButton, n?.classNames?.actionButton)
+ className: vH(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function bH() {
+function yH() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function oge(e, t) {
+function lge(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? $he : Qhe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? nge : tge;
function o(e) {
[
"top",
@@ -44799,11 +44810,11 @@ function oge(e, t) {
}) : o(a);
}), n;
}
-var xH = /*#__PURE__*/ P.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = Zhe, toastOptions: g, dir: _ = bH(), gap: v = tge, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = P.useState([]), w = P.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = P.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = P.useState([]), [O, k] = P.useState(!1), [A, j] = P.useState(!1), [M, ee] = P.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), te = P.useRef(null), ne = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), N = P.useRef(null), re = P.useRef(!1), ie = P.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || hH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var bH = /*#__PURE__*/ P.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = ege, toastOptions: g, dir: _ = yH(), gap: v = ige, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = P.useState([]), w = P.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = P.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = P.useState([]), [O, k] = P.useState(!1), [A, j] = P.useState(!1), [M, ee] = P.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), te = P.useRef(null), ne = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), N = P.useRef(null), re = P.useRef(!1), ie = P.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || mH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return P.useEffect(() => hH.subscribe((e) => {
+ return P.useEffect(() => mH.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -44872,7 +44883,7 @@ var xH = /*#__PURE__*/ P.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ P.createElement("ol", {
key: t,
- dir: _ === "auto" ? bH() : _,
+ dir: _ === "auto" ? yH() : _,
tabIndex: -1,
ref: te,
className: c,
@@ -44882,10 +44893,10 @@ var xH = /*#__PURE__*/ P.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${ege}px`,
+ "--width": `${rge}px`,
"--gap": `${v}px`,
...m,
- ...oge(l, u)
+ ...lge(l, u)
},
onBlur: (e) => {
re.current && !e.currentTarget.contains(e.relatedTarget) && (re.current = !1, N.current &&= (N.current.focus({ preventScroll: !0 }), null));
@@ -44903,7 +44914,7 @@ var xH = /*#__PURE__*/ P.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ P.createElement(age, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ P.createElement(cge, {
key: n.id,
icons: y,
index: i,
@@ -44933,35 +44944,35 @@ var xH = /*#__PURE__*/ P.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), SH = "/api/library-processing", CH = ["library-processing"], sge = (e, t, n) => {
+}), xH = "/api/library-processing", SH = ["library-processing"], uge = (e, t, n) => {
let r = new URLSearchParams({
estimate: "1",
stage: e.stage || "all"
});
- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${SH}?${r}`, t);
-}, cge = {
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${xH}?${r}`, t);
+}, dge = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function wH(e) {
+function CH(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = cge[e.current_action || ""];
+ let t = dge[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function TH({ what: e, source: t }) {
+function wH({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var EH = (e) => !!e && [
+var TH = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), DH = (e) => e?.status === "failed" && e.outcome === "partial", OH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", kH = "/?loc=&thumb=0";
-function AH(e) {
- if (!EH(e)) return "";
+].includes(e.status), EH = (e) => e?.status === "failed" && e.outcome === "partial", DH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", OH = "/?loc=&thumb=0";
+function kH(e) {
+ if (!TH(e)) return "";
if (e.status === "stopping") return "正在停止,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -44972,18 +44983,18 @@ function AH(e) {
let r = n >= 86400 ? 86400 : n >= 3600 ? 3600 : 60, i = r === 86400 ? "天" : r === 3600 ? "小时" : "分钟", a = r === 60 ? 1 : 10, o = Math.max(1 / a, Math.floor(t / r * a) / a), s = Math.max(o, Math.ceil(n / r * a) / a);
return `预计剩余约 ${o === s ? `${s}` : `${o}–${s}`} ${i}${e.eta_initial || e.eta_kind !== "measured" ? "(粗估)" : ""}${e.eta_scope ? ` · ${e.eta_scope}` : ""}`;
}
-var jH = (e) => B(SH, e);
-async function MH(e) {
+var AH = (e) => B(xH, e);
+async function jH(e) {
await H.fetchQuery({
- queryKey: CH,
- queryFn: () => jH(e)
+ queryKey: SH,
+ queryFn: () => AH(e)
});
}
-var lge = 2e3, uge = 1e4, NH = "连接中断,正在重新读取处理进度";
-function PH(e, t) {
- return EH(e) ? lge : t ? uge : !1;
+var fge = 2e3, pge = 1e4, MH = "连接中断,正在重新读取处理进度";
+function NH(e, t) {
+ return TH(e) ? fge : t ? pge : !1;
}
-var dge = {
+var mge = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -44992,25 +45003,25 @@ var dge = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, FH = {
+}, PH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function fge(e) {
- let t = Object.entries(e).filter(([e, t]) => FH[e] && t > 0).map(([e, t]) => `${FH[e]} ${t.toLocaleString()} 部`);
+function hge(e) {
+ let t = Object.entries(e).filter(([e, t]) => PH[e] && t > 0).map(([e, t]) => `${PH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function pge(e) {
+function gge(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = dge[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${GF(e.waited_seconds)}` : "";
+ let t = mge[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${tI(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function mge(e) {
- let t = e.total ? `${KF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return pge(e) + (t ? ` · ${t}` : "");
+function _ge(e) {
+ let t = e.total ? `${nI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return gge(e) + (t ? ` · ${t}` : "");
}
-function hge(e) {
+function vge(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45024,22 +45035,22 @@ function hge(e) {
log: e.issues_log || ""
} : null;
}
-var IH = "peach.library-processing.announced", gge = 120;
-function LH(e) {
+var FH = "peach.library-processing.announced", yge = 120;
+function IH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < gge;
+ return !!e.job_id && t >= 0 && t < yge;
}
-function _ge(e, t, n) {
- if (e.status === "complete" && (n || LH(e))) {
+function bge(e, t, n) {
+ if (e.status === "complete" && (n || IH(e))) {
try {
- if (e.job_id && localStorage.getItem(IH) === e.job_id) return;
- e.job_id && localStorage.setItem(IH, e.job_id);
+ if (e.job_id && localStorage.getItem(FH) === e.job_id) return;
+ e.job_id && localStorage.setItem(FH, e.job_id);
} catch {}
e.requested_stage === "previews" ? t(`视频预览已生成:${e.previews || 0} 部`) : t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条` + (e.previews ? `,生成 ${e.previews} 部视频预览` : ""));
}
}
// src/react/boardui/components/base/buttons/link-button.tsx
-var RH = cF({
+var LH = LF({
base: "inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans select-none cursor-pointer rounded-sm underline-offset-3 hover:underline transition-colors duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline",
size: {
medium: "text-body-medium",
@@ -45056,15 +45067,15 @@ var RH = cF({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function zH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = sF(RH.base, RH.size[t], RH.variant[e], a), l = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+function RH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = IF(LH.base, LH.size[t], LH.variant[e], a), l = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
n ? /* @__PURE__ */ (0, F.jsx)(n, {
- className: RH.icon[t],
+ className: LH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, F.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, F.jsx)(r, {
- className: RH.icon[t],
+ className: LH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45090,7 +45101,7 @@ function zH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function BH(e = "") {
+function zH(e = "") {
let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(""), [i, a] = (0, P.useState)(e);
(0, P.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45115,10 +45126,10 @@ function BH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function VH({ state: e }) {
- let t = BH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(SH, e, "POST", t), (e) => {
- H.setQueryData(CH, e), H.invalidateQueries({ queryKey: CH });
+function BH({ state: e }) {
+ let t = zH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(xH, e, "POST", t), (e) => {
+ H.setQueryData(SH, e), H.invalidateQueries({ queryKey: SH });
});
};
return /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -45130,7 +45141,7 @@ function VH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...Qz(t.busy === "skip_current"),
+ ...Zz(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45154,25 +45165,25 @@ function VH({ state: e }) {
]
});
}
-function vge({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, F.jsx)(qz, {
+function xge({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "warning",
- action: /* @__PURE__ */ (0, F.jsx)(VH, { state: e }),
- children: TH(t)
+ action: /* @__PURE__ */ (0, F.jsx)(BH, { state: e }),
+ children: wH(t)
});
}
-function yge({ state: e, slow: t }) {
+function Sge({ state: e, slow: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-processing-slow": "",
className: "flex min-w-0 flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, F.jsx)("p", {
className: "min-w-0 flex-auto text-body-2-regular wrap-anywhere",
- children: TH(t)
- }), /* @__PURE__ */ (0, F.jsx)(VH, { state: e })]
+ children: wH(t)
+ }), /* @__PURE__ */ (0, F.jsx)(BH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var bge = {
+var Cge = {
selection: {
type: Ep,
duration: .16,
@@ -45184,7 +45195,7 @@ var bge = {
bounce: 0
}
};
-function HH(e) {
+function VH(e) {
let [t, n] = (0, P.useState)(null);
return (0, P.useLayoutEffect)(() => {
if (!t) return;
@@ -45205,7 +45216,7 @@ function HH(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = bre(n, { transform: [r, E] }, bge[e]);
+ l = Sre(n, { transform: [r, E] }, Cge[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45241,24 +45252,24 @@ function HH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function UH(e) {
- let t = HH("hover");
- return /* @__PURE__ */ (0, F.jsx)(OR, {
+function HH(e) {
+ let t = VH("hover");
+ return /* @__PURE__ */ (0, F.jsx)(DR, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var WH = [
+var UH = [
"low",
"standard",
"high"
-], GH = [
+], WH = [
"低占用",
"标准",
"全速"
-], KH = Xz("snail"), qH = Xz("zap");
-function JH({ className: e }) {
+], GH = Yz("snail"), KH = Yz("zap");
+function qH({ className: e }) {
return /* @__PURE__ */ (0, F.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45289,12 +45300,12 @@ function JH({ className: e }) {
]
});
}
-var xge = [
+var wge = [
+ GH,
KH,
- qH,
- JH
+ qH
];
-function Sge({ animate: e }) {
+function Tge({ animate: e }) {
let [t, n] = (0, P.useState)(document.hidden);
return (0, P.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45326,8 +45337,8 @@ function Sge({ animate: e }) {
} }, t))]
});
}
-function YH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, WH.indexOf(e)), [a, o] = (0, P.useState)(i);
+function JH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, UH.indexOf(e)), [a, o] = (0, P.useState)(i);
return (0, P.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -45338,7 +45349,7 @@ function YH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), GH[a]]
+ }), WH[a]]
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45346,19 +45357,19 @@ function YH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, F.jsx)(KH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, F.jsx)(GH, {}), "最慢"]
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, F.jsx)(qH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, F.jsx)(KH, {}), "标准"]
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, F.jsx)(JH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, F.jsx)(qH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, F.jsxs)(_de, {
+ /* @__PURE__ */ (0, F.jsxs)(bde, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45367,10 +45378,10 @@ function YH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(WH[e]);
+ e !== i && n(UH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, F.jsx)(BI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(zI, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -45390,11 +45401,11 @@ function YH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, F.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, F.jsx)(Sge, { animate: r }) : null,
- /* @__PURE__ */ (0, F.jsx)(vde, {
+ a === 2 ? /* @__PURE__ */ (0, F.jsx)(Tge, { animate: r }) : null,
+ /* @__PURE__ */ (0, F.jsx)(xde, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, F.jsx)(yde, {
- "aria-label": GH[a],
+ children: /* @__PURE__ */ (0, F.jsx)(Sde, {
+ "aria-label": WH[a],
className: "processing-effort-thumb"
})
})
@@ -45408,8 +45419,8 @@ function YH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function Cge({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), s = Math.max(0, WH.indexOf(e));
+function Ege({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), s = Math.max(0, UH.indexOf(e));
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -45417,28 +45428,28 @@ function Cge({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${GH[s]}`,
+ "aria-label": `处理速度:${WH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: xge[s],
- trailingIcon: xz,
+ leadingIcon: wge[s],
+ trailingIcon: bz,
onClick: () => {
t || o(!a);
},
- children: GH[s]
+ children: WH[s]
})
- }), /* @__PURE__ */ (0, F.jsx)(hR, {
+ }), /* @__PURE__ */ (0, F.jsx)(mR, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: lV,
- children: /* @__PURE__ */ (0, F.jsx)(UH, {
+ className: cV,
+ children: /* @__PURE__ */ (0, F.jsx)(HH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, F.jsx)(YH, {
+ children: /* @__PURE__ */ (0, F.jsx)(JH, {
value: e,
busy: t,
onChange: n,
@@ -45448,10 +45459,10 @@ function Cge({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function XH({ state: e, disabled: t = !1 }) {
- let n = BH(), r = EH(e), i = e.status === "stopping", a = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", o = (e) => {
- t || n.busy || n.run(e.action, (t) => V(SH, e, "POST", t), (e) => {
- H.setQueryData(CH, e), H.invalidateQueries({ queryKey: CH });
+function YH({ state: e, disabled: t = !1 }) {
+ let n = zH(), r = TH(e), i = e.status === "stopping", a = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", o = (e) => {
+ t || n.busy || n.run(e.action, (t) => V(xH, e, "POST", t), (e) => {
+ H.setQueryData(SH, e), H.invalidateQueries({ queryKey: SH });
});
};
return /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -45460,7 +45471,7 @@ function XH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(Cge, {
+ /* @__PURE__ */ (0, F.jsx)(Ege, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || i,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -45474,11 +45485,11 @@ function XH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? Mz : jz,
+ leadingIcon: e.status === "paused" ? jz : Az,
"aria-label": a,
title: a,
disabled: t || !e.job_id || e.status === "pausing" || i,
- ...Qz(n.busy === "pause" || n.busy === "resume"),
+ ...Zz(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && o({
action: e.status === "paused" ? "resume" : "pause",
@@ -45490,7 +45501,7 @@ function XH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
disabled: t || !e.job_id || i,
- ...Qz(n.busy === "cancel"),
+ ...Zz(n.busy === "cancel"),
onClick: () => {
e.job_id && o({
action: "cancel",
@@ -45508,11 +45519,11 @@ function XH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function ZH({ toast: e, mode: t, monitor: n }) {
+function XH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Pt({
- queryKey: CH,
- queryFn: ({ signal: e }) => jH(e),
- refetchInterval: (e) => PH(e.state.data, r)
+ queryKey: SH,
+ queryFn: ({ signal: e }) => AH(e),
+ refetchInterval: (e) => NH(e.state.data, r)
}), [a, o] = (0, P.useState)(null), s = (0, P.useRef)(void 0), c = i.data;
return (0, P.useEffect)(() => {
if (!c) return;
@@ -45523,8 +45534,8 @@ function ZH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !EH(c);
- r && o(c), (r || t === "notice") && _ge(c, e, r);
+ ].includes(n) && !TH(c);
+ r && o(c), (r || t === "notice") && bge(c, e, r);
}, [
c,
t,
@@ -45536,37 +45547,37 @@ function ZH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/card.tsx
-var wge = "min-w-0", Tge = {
+var Dge = "min-w-0", Oge = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Ege = {
+}, kge = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Dge = {
+}, Age = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, Oge = {
+}, jge = {
none: "",
default: "p-5"
-}, kge = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Age = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function QH(e = {}) {
+}, Mge = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Nge = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function ZH(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- wge,
- Tge[t],
- Ege[s],
- Oge[n],
- a ? Dge[a] : "",
- r ? kge : "",
- i ? Age : "",
+ Dge,
+ Oge[t],
+ kge[s],
+ jge[n],
+ a ? Age[a] : "",
+ r ? Mge : "",
+ i ? Nge : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/components/loading-dots.tsx
-function $H({ label: e }) {
+function QH({ label: e }) {
return /* @__PURE__ */ (0, F.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -45585,21 +45596,21 @@ function $H({ label: e }) {
});
}
// src/react/components/progress.tsx
-var eU = 100, jge = .4;
-function tU({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * eU;
+var $H = 100, Pge = .4;
+function eU({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * $H;
return /* @__PURE__ */ (0, F.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${eU} 1`,
+ viewBox: `0 0 ${$H} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, F.jsx)("rect", {
- width: eU,
+ width: $H,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -45610,7 +45621,7 @@ function tU({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, F.jsx)("rect", {
x: o(e),
- width: jge,
+ width: Pge,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -45618,26 +45629,26 @@ function tU({ label: e, value: t, max: n = 100, stops: r = [] }) {
});
}
// src/react/components/task-progress.tsx
-function nU({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function tU({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : QH({
+ className: r ? "flex flex-col gap-1.5" : ZH({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(tU, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(eU, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, F.jsx)($H, { label: e })
+ })] }) : /* @__PURE__ */ (0, F.jsx)(QH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function rU(e) {
+function nU(e) {
let [t, n] = (0, P.useState)({
snapshot: e,
seconds: 0
@@ -45653,17 +45664,17 @@ function rU(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return mge(a ? {
+ return _ge(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function Mge({ state: e }) {
- return rU(e);
+function Fge({ state: e }) {
+ return nU(e);
}
-function Nge({ state: e }) {
- let t = rU(e);
- return /* @__PURE__ */ (0, F.jsx)(nU, {
+function Ige({ state: e }) {
+ let t = nU(e);
+ return /* @__PURE__ */ (0, F.jsx)(tU, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -45671,7 +45682,7 @@ function Nge({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function iU({ open: e, children: t, ...n }) {
+function rU({ open: e, children: t, ...n }) {
let r = (0, P.useRef)(null), i = (0, P.useRef)(!1);
return (0, P.useLayoutEffect)(() => {
let t = r.current;
@@ -45682,7 +45693,7 @@ function iU({ open: e, children: t, ...n }) {
children: t
});
}
-function aU(e) {
+function iU(e) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -45697,21 +45708,21 @@ function aU(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function oU({ className: e, children: t }) {
+function aU({ className: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
- className: sF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: IF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function sU({ className: e, children: t }) {
+function oU({ className: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
- className: sF("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: IF("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function Pge({ label: e, description: t, children: n }) {
+function Lge({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: sF("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: IF("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, F.jsx)("p", {
@@ -45725,7 +45736,7 @@ function Pge({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function Fge({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
+function Rge({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
let o = t ? /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [t, e]
@@ -45733,12 +45744,12 @@ function Fge({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(sU, { children: o })
+ children: /* @__PURE__ */ (0, F.jsx)(oU, { children: o })
}), /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, F.jsx)(sU, { children: o }), /* @__PURE__ */ (0, F.jsx)(oU, { children: a })] });
+ }) : /* @__PURE__ */ (0, F.jsx)(oU, { children: o }), /* @__PURE__ */ (0, F.jsx)(aU, { children: a })] });
return i ? /* @__PURE__ */ (0, F.jsx)("form", {
id: n,
"aria-label": e,
@@ -45753,13 +45764,13 @@ function Fge({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
children: s
});
}
-function Ige({ children: e }) {
+function zge({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function Lge({ divided: e = !1, children: t }) {
+function Bge({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden",
children: t
@@ -45768,7 +45779,7 @@ function Lge({ divided: e = !1, children: t }) {
children: t
});
}
-function Rge({ label: e, html: t }) {
+function Vge({ label: e, html: t }) {
let [n] = (0, P.useState)(t);
return /* @__PURE__ */ (0, F.jsx)("div", {
className: "contents",
@@ -45778,7 +45789,7 @@ function Rge({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function zge({ status: e, children: t }) {
+function Hge({ status: e, children: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
children: [e ? /* @__PURE__ */ (0, F.jsx)("div", {
@@ -45787,34 +45798,34 @@ function zge({ status: e, children: t }) {
}) : null, t]
});
}
-function cU({ role: e, children: t }) {
+function sU({ role: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function lU({ children: e }) {
+function cU({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function uU({ children: e }) {
+function lU({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function Bge({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, F.jsx)(zH, {
+function Uge({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, F.jsx)(RH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: Tz,
+ trailingIcon: wz,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -45822,22 +45833,22 @@ function Bge({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function Vge() {
- return /* @__PURE__ */ (0, F.jsx)(zH, {
+function Wge() {
+ return /* @__PURE__ */ (0, F.jsx)(RH, {
href: "/tasks",
size: "small",
- trailingIcon: Sz,
+ trailingIcon: xz,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function Hge({ children: e }) {
+function Gge({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function Uge({ term: e, children: t }) {
+function Kge({ term: e, children: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, F.jsx)("dt", {
@@ -45849,7 +45860,7 @@ function Uge({ term: e, children: t }) {
})]
});
}
-function dU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function uU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, P.useId)(), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(!1), [d, f] = (0, P.useState)(n ?? t);
return (0, P.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (zo(c.current, l.current, n), f(n));
@@ -45865,12 +45876,12 @@ function dU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, F.jsx)(Cz, {
+ i ? null : /* @__PURE__ */ (0, F.jsx)(Sz, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, F.jsx)(Cz, {
+ i ? /* @__PURE__ */ (0, F.jsx)(Sz, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
@@ -45880,13 +45891,13 @@ function dU({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
id: s,
inert: !d,
children: /* @__PURE__ */ (0, F.jsx)("div", {
- className: sF("flex flex-col gap-2 pt-3", o),
+ className: IF("flex flex-col gap-2 pt-3", o),
children: r
})
})]
});
}
-function Wge({ name: e }) {
+function qge({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -45896,34 +45907,34 @@ function Wge({ name: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function fU({ mark: e }) {
+function dU({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, F.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, F.jsx)(Wge, { name: e });
+ }) : /* @__PURE__ */ (0, F.jsx)(qge, { name: e });
}
// src/react/components/source-label.tsx
-var pU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Gge = Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, function({ className: e }) {
+var fU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Jge = Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, F.jsx)(fU, { mark: t })
+ children: /* @__PURE__ */ (0, F.jsx)(dU, { mark: t })
});
}]));
-function Kge({ className: e }) {
+function Yge({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, F.jsx)(fU, { mark: "database" })
+ children: /* @__PURE__ */ (0, F.jsx)(dU, { mark: "database" })
});
}
-var mU = (e) => Gge[pU(e)] ?? Kge;
-function qge({ site: e, label: t }) {
+var pU = (e) => Jge[fU(e)] ?? Yge;
+function Xge({ site: e, label: t }) {
let [n, r] = (0, P.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, F.jsx)(fU, { mark: "globe" }) : /* @__PURE__ */ (0, F.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, F.jsx)(dU, { mark: "globe" }) : /* @__PURE__ */ (0, F.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -45931,24 +45942,24 @@ function qge({ site: e, label: t }) {
}), /* @__PURE__ */ (0, F.jsx)("span", { children: t })]
});
}
-function hU({ source: e, label: t }) {
- let n = pU(e);
+function mU({ source: e, label: t }) {
+ let n = fU(e);
return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(fU, { mark: gs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(dU, { mark: gs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
});
}
// src/react/library-processing/processing-traffic.tsx
-var gU = (e) => Yn(e).replace(/\s/g, ""), _U = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : gU(e), Jge = (e, t) => {
- if (e === t) return gU(t);
+var hU = (e) => Yn(e).replace(/\s/g, ""), gU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : hU(e), Zge = (e, t) => {
+ if (e === t) return hU(t);
let [n, r] = Yn(e).split(" "), [i, a] = Yn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${gU(e)}-${gU(t)}`;
-}, vU = (e, t, n) => e === void 0 ? Jge(t, n) : `${e > 0 ? "约 " : ""}${gU(e)}`;
-function yU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
- let i = _V(), [a, o] = (0, P.useState)(!1), s = (0, P.useId)(), c = n ?? a;
+ return r === a ? `${n}-${i}${a}` : `${hU(e)}-${hU(t)}`;
+}, _U = (e, t, n) => e === void 0 ? Zge(t, n) : `${e > 0 ? "约 " : ""}${hU(e)}`;
+function vU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
+ let i = gV(), [a, o] = (0, P.useState)(!1), s = (0, P.useId)(), c = n ?? a;
if (!e) return null;
let l = (e) => e.toLocaleString("zh-CN");
return /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -45990,25 +46001,25 @@ function yU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, F.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(Oz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Dz, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: vU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: _U(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, F.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- vU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ _U(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, F.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, F.jsxs)("span", { children: [e.partial ? "约 " : "", gU(e.used_bytes)] }),
+ /* @__PURE__ */ (0, F.jsxs)("span", { children: [e.partial ? "约 " : "", hU(e.used_bytes)] }),
" · 代理 ",
- gU(e.metered_used_bytes)
+ hU(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, F.jsxs)("section", {
@@ -46017,25 +46028,25 @@ function yU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, F.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(tme, {
+ children: [/* @__PURE__ */ (0, F.jsx)(ime, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
/* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", gU(e.disk.estimated_bytes)]
+ children: ["约 ", hU(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, F.jsxs)("p", { children: ["抽帧临时文件约 ", _U(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, F.jsxs)("p", { children: ["抽帧临时文件约 ", gU(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, F.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : gU(e.free_bytes)
+ e.free_bytes == null ? "未取得" : hU(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, F.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", gU(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", hU(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, F.jsx)("p", {
@@ -46051,7 +46062,7 @@ function yU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
className: "self-start",
"aria-expanded": c,
"aria-controls": s,
- trailingIcon: c ? ype : xz,
+ trailingIcon: c ? Spe : bz,
onClick: () => {
o(!c), r?.(!c);
},
@@ -46070,12 +46081,12 @@ function yU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, F.jsx)(hU, {
+ children: [e.root ? /* @__PURE__ */ (0, F.jsx)(mU, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(fU, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, F.jsx)(dU, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, F.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46097,7 +46108,7 @@ function yU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"待补资料 ",
l(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- _U(e.workload.metadata_average_bytes || 0),
+ gU(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46107,8 +46118,8 @@ function yU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"已用",
e.unobserved.length ? "约" : "",
" ",
- gU(e.used_bytes)
- ] }), /* @__PURE__ */ (0, F.jsxs)("span", { children: ["预计 ", vU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ hU(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, F.jsxs)("span", { children: ["预计 ", _U(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46119,15 +46130,15 @@ function yU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
});
}
// src/react/library-processing/library-processing-notice.tsx
-var bU = "peach.library-processing.collapsed";
-function xU(e) {
+var yU = "peach.library-processing.collapsed";
+function bU(e) {
try {
- return !e || sessionStorage.getItem(bU) !== e;
+ return !e || sessionStorage.getItem(yU) !== e;
} catch {
return !0;
}
}
-function Yge({ value: e, max: t }) {
+function Qge({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, F.jsxs)("svg", {
role: "progressbar",
@@ -46157,14 +46168,14 @@ function Yge({ value: e, max: t }) {
})]
});
}
-function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, P.useState)(() => xU(e?.job_id)), o = (0, P.useId)(), [s, c] = (0, P.useState)(!1), l = (0, P.useRef)(null), u = !t && DH(e), d = e?.status === "failed" && !u, f = EH(e);
+function xU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, P.useState)(() => bU(e?.job_id)), o = (0, P.useId)(), [s, c] = (0, P.useState)(!1), l = (0, P.useRef)(null), u = !t && EH(e), d = e?.status === "failed" && !u, f = TH(e);
(0, P.useEffect)(() => {
- a(xU(e?.job_id)), c(!1);
+ a(bU(e?.job_id)), c(!1);
}, [e?.job_id]);
let p = () => {
try {
- i && e?.job_id ? sessionStorage.setItem(bU, e.job_id) : sessionStorage.removeItem(bU);
+ i && e?.job_id ? sessionStorage.setItem(yU, e.job_id) : sessionStorage.removeItem(yU);
} catch {}
i && c(!1), a(!i);
};
@@ -46179,14 +46190,14 @@ function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
t = !0, i.disconnect(), document.documentElement.style.removeProperty("--processing-toast-space");
};
}, [n]), e?.archived && !t || !t && !f && !d && !u) return null;
- let m = t ? null : wH(e), h = !!t || !!e?.stalled || u || !!m, g = u ? "处理已结束,部分项目需处理" : d ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let m = t ? null : CH(e), h = !!t || !!e?.stalled || u || !!m, g = u ? "处理已结束,部分项目需处理" : d ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, F.jsxs)("aside", {
ref: l,
"data-processing-dock": "",
"data-processing-tone": d ? "error" : h ? "warning" : "neutral",
"aria-label": "扫描任务",
role: d ? "alert" : "status",
- className: sF("flex min-w-0 flex-col border bg-background-primary-default p-4", d ? "border-current/35 text-text-error-primary" : h ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
+ className: IF("flex min-w-0 flex-col border bg-background-primary-default p-4", d ? "border-current/35 text-text-error-primary" : h ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-3",
@@ -46194,13 +46205,13 @@ function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- f && e?.total ? /* @__PURE__ */ (0, F.jsx)(Yge, {
+ f && e?.total ? /* @__PURE__ */ (0, F.jsx)(Qge, {
value: e.checked || 0,
max: e.total
- }) : d || h ? /* @__PURE__ */ (0, F.jsx)(Mpe, {
+ }) : d || h ? /* @__PURE__ */ (0, F.jsx)(Fpe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, F.jsx)(Upe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(Kpe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46212,14 +46223,14 @@ function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), f ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: AH(e)
+ children: kH(e)
}) : null]
}),
/* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: aU,
+ leadingIcon: iU,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": i ? "收起任务详情" : "展开任务详情",
@@ -46231,31 +46242,31 @@ function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: wz,
+ leadingIcon: Cz,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsx)(yU, {
+ /* @__PURE__ */ (0, F.jsx)(vU, {
traffic: e?.traffic,
detailsOpen: s,
onDetailsChange: c
}),
- m ? /* @__PURE__ */ (0, F.jsx)(yge, {
+ m ? /* @__PURE__ */ (0, F.jsx)(Sge, {
state: e,
slow: m
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsx)(iU, {
+ /* @__PURE__ */ (0, F.jsx)(rU, {
id: o,
open: i,
"data-processing-body": "",
children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "pt-3",
children: /* @__PURE__ */ (0, F.jsxs)("div", {
- className: sF("flex min-w-0 flex-col gap-2 border-t pt-3", d ? "border-border-error-default/20" : h ? "border-current/20" : "border-separator-border"),
+ className: IF("flex min-w-0 flex-col gap-2 border-t pt-3", d ? "border-border-error-default/20" : h ? "border-current/20" : "border-separator-border"),
children: [
e?.steps?.length ? /* @__PURE__ */ (0, F.jsx)("ol", {
"aria-label": "处理步骤",
@@ -46263,16 +46274,16 @@ function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
children: e.steps.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
"data-processing-step": e.status,
"aria-current": e.status === "current" ? "step" : void 0,
- className: sF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
+ className: IF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, F.jsx)(Tpe, {
+ e.status === "complete" ? /* @__PURE__ */ (0, F.jsx)(Ope, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, F.jsx)(Epe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(kpe, {
"aria-hidden": !0,
- className: sF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
+ className: IF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, F.jsx)(Dw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, F.jsx)(Nw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, F.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46285,11 +46296,11 @@ function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}) : null,
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (d || u ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, F.jsx)(Mge, { state: e }))
+ children: t || (d || u ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, F.jsx)(Fge, { state: e }))
}),
u ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: OH
+ children: DH
}) : null,
f && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46306,20 +46317,20 @@ function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(zH, {
+ /* @__PURE__ */ (0, F.jsx)(RH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: Sz,
+ trailingIcon: xz,
children: t || d || u ? "打开扫描与采集" : "任务详情"
}),
- u ? /* @__PURE__ */ (0, F.jsx)(zH, {
- href: kH,
+ u ? /* @__PURE__ */ (0, F.jsx)(RH, {
+ href: OH,
size: "small",
- trailingIcon: Sz,
+ trailingIcon: xz,
children: "查看全部内容"
}) : null,
- f ? /* @__PURE__ */ (0, F.jsx)(XH, {
+ f ? /* @__PURE__ */ (0, F.jsx)(YH, {
state: e,
disabled: !!t
}) : null
@@ -46328,67 +46339,67 @@ function SU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
]
});
}
-function Xge(e) {
- let { job: t } = ZH(e);
- return /* @__PURE__ */ (0, F.jsx)(SU, {
+function $ge(e) {
+ let { job: t } = XH(e);
+ return /* @__PURE__ */ (0, F.jsx)(xU, {
state: t.data,
- problem: t.isError ? t.data ? NH : cr(t.error) : ""
+ problem: t.isError ? t.data ? MH : cr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var CU = "peach.library-processing.visibility", wU = /* @__PURE__ */ new Set(), TU = "";
-function Zge() {
+var SU = "peach.library-processing.visibility", CU = /* @__PURE__ */ new Set(), wU = "";
+function e_e() {
try {
- return sessionStorage.getItem(CU) || "";
+ return sessionStorage.getItem(SU) || "";
} catch {
- return TU;
+ return wU;
}
}
-function Qge(e) {
- return wU.add(e), () => {
- wU.delete(e);
+function t_e(e) {
+ return CU.add(e), () => {
+ CU.delete(e);
};
}
-function EU(e, t) {
- TU = `${t ? "shown" : "hidden"}:${e}`;
+function TU(e, t) {
+ wU = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(CU, TU);
+ sessionStorage.setItem(SU, wU);
} catch {}
- wU.forEach((e) => e());
+ CU.forEach((e) => e());
}
-function DU(e) {
- let t = (0, P.useSyncExternalStore)(Qge, Zge, () => "");
+function EU(e) {
+ let t = (0, P.useSyncExternalStore)(t_e, e_e, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var OU = "peach-library-processing";
-function $ge({ toast: e }) {
- let { job: t, settled: n } = ZH({
+var DU = "peach-library-processing";
+function n_e({ toast: e }) {
+ let { job: t, settled: n } = XH({
toast: e,
mode: "notice"
- }), r = (0, P.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = DU(a), c = t.isError ? i ? NH : cr(t.error) : "";
+ }), r = (0, P.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = EU(a), c = t.isError ? i ? MH : cr(t.error) : "";
return (0, P.useEffect)(() => {
- let e = EH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || LH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && gH.dismiss(OU), r.current = !1) : (gH.custom(() => /* @__PURE__ */ (0, F.jsx)("div", {
+ let e = TH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || IH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && hH.dismiss(DU), r.current = !1) : (hH.custom(() => /* @__PURE__ */ (0, F.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, F.jsx)(SU, {
+ children: /* @__PURE__ */ (0, F.jsx)(xU, {
state: i,
problem: c,
measure: !0,
- onHide: () => EU(a, !1)
+ onHide: () => TU(a, !1)
})
}), {
- id: OU,
+ id: DU,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- EU(a, !1), r.current = !1;
+ TU(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -46399,19 +46410,19 @@ function $ge({ toast: e }) {
o,
s
]), (0, P.useEffect)(() => () => {
- r.current && gH.dismiss(OU), r.current = !1;
+ r.current && hH.dismiss(DU), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var e_e = ["network-status"], t_e = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function n_e(e) {
+var r_e = ["network-status"], i_e = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function a_e(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function r_e() {
+function o_e() {
let e = Pt({
- queryKey: e_e,
+ queryKey: r_e,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => n_e(e.state.data),
+ refetchInterval: (e) => a_e(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsxs)("aside", {
@@ -46422,22 +46433,22 @@ function r_e() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, F.jsx)("p", { children: t_e })] }), /* @__PURE__ */ (0, F.jsx)("a", {
+ }), /* @__PURE__ */ (0, F.jsx)("p", { children: i_e })] }), /* @__PURE__ */ (0, F.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/client-updates.tsx
-var i_e = 12e4, a_e = 15e3, kU = () => document.visibilityState !== "hidden", AU = /* @__PURE__ */ new Set([
+var s_e = 12e4, c_e = 15e3, OU = () => document.visibilityState !== "hidden", kU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), jU = "/settings/maintenance#releaseUpdates";
-function o_e() {
+]), AU = "/settings/maintenance#releaseUpdates";
+function l_e() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -46448,23 +46459,23 @@ function o_e() {
return null;
}
}
-function MU() {
- let e = (0, P.useRef)(o_e()), [t, n] = (0, P.useState)(null);
+function jU() {
+ let e = (0, P.useRef)(l_e()), [t, n] = (0, P.useState)(null);
return (0, P.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !kU()) return;
+ if (t || !OU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), a_e);
+ let s = setTimeout(() => o.abort(), c_e);
o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });
try {
let r = await B("/api/client-updates", o.signal);
!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));
} catch {} finally {
- clearTimeout(s), i === o && (i = void 0, !t && kU() && (r = setTimeout(a, i_e)));
+ clearTimeout(s), i === o && (i = void 0, !t && OU() && (r = setTimeout(a, s_e)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, kU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, OU() && a();
};
return document.addEventListener("visibilitychange", o), document.addEventListener("peach:client-updates", o), a(), () => {
t = !0, clearTimeout(r), i?.abort(), document.removeEventListener("visibilitychange", o), document.removeEventListener("peach:client-updates", o);
@@ -46474,12 +46485,12 @@ function MU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function s_e({ navigate: e }) {
- let { snapshot: t, refresh: n } = MU(), [r, i] = (0, P.useState)(""), a = document.querySelector("[data-network-banner]");
+function u_e({ navigate: e }) {
+ let { snapshot: t, refresh: n } = jU(), [r, i] = (0, P.useState)(""), a = document.querySelector("[data-network-banner]");
if (!t || !a) return null;
- let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : AU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
+ let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : kU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || AU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || kU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -46502,22 +46513,22 @@ function s_e({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, F.jsx)(zH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, F.jsx)(RH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, F.jsx)(zH, {
+ }) : /* @__PURE__ */ (0, F.jsx)(RH, {
variant: "secondary",
size: "small",
- href: jU,
+ href: AU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(jU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(AU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, F.jsx)(zH, {
+ }), /* @__PURE__ */ (0, F.jsx)(RH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -46528,20 +46539,20 @@ function s_e({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function c_e() {
- let e = (0, P.useContext)(LU), { pathname: t } = YB();
+function d_e() {
+ let e = (0, P.useContext)(IU), { pathname: t } = JB();
return (0, P.useEffect)(() => {
- e?.openSettings?.(CV(t));
+ e?.openSettings?.(SV(t));
}, [e, t]), (0, P.useEffect)(() => () => {
queueMicrotask(() => {
- SV(cH.navigation.location.pathname) || e?.closeSettings?.();
+ xV(sH.navigation.location.pathname) || e?.closeSettings?.();
});
}, [e]), null;
}
// src/react/router/pages/overlay.tsx
-var NU = () => Du, l_e = () => Ou;
-function u_e() {
- let e = (0, P.useContext)(LU), t = (0, P.useSyncExternalStore)(Ru, l_e), n = (0, P.useSyncExternalStore)(Ru, NU);
+var MU = () => Du, f_e = () => Ou;
+function p_e() {
+ let e = (0, P.useContext)(IU), t = (0, P.useSyncExternalStore)(Ru, f_e), n = (0, P.useSyncExternalStore)(Ru, MU);
return (0, P.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -46556,11 +46567,11 @@ function u_e() {
e
]), null;
}
-function PU(e, t = !1) {
- let n = (0, P.useSyncExternalStore)(Ru, NU), r = (0, P.useRef)(void 0);
+function NU(e, t = !1) {
+ let n = (0, P.useSyncExternalStore)(Ru, MU), r = (0, P.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = cH.navigation;
- r.current = Du === 0 || uH() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = sH.navigation;
+ r.current = Du === 0 || lH() ? "boot" : e && !t ? null : "history";
}
let i = (0, P.useRef)(e);
(0, P.useEffect)(() => {
@@ -46576,22 +46587,22 @@ function PU(e, t = !1) {
}));
}, [n]);
}
-function d_e() {
- let e = (0, P.useContext)(LU), t = (0, P.useRef)(e);
+function m_e() {
+ let e = (0, P.useContext)(IU), t = (0, P.useRef)(e);
return (0, P.useLayoutEffect)(() => {
t.current = e;
- }, [e]), PU((t) => {
- let n = cH.navigation.location, { pathname: r, search: i } = SV(n.pathname) && TV(n.state) || n, a = OV(r, i);
- e && a && (PV(), t || Ahe(cH.navigation.location.state), e.openOverlay(a));
+ }, [e]), NU((t) => {
+ let n = sH.navigation.location, { pathname: r, search: i } = xV(n.pathname) && wV(n.state) || n, a = DV(r, i);
+ e && a && (NV(), t || Nhe(sH.navigation.location.state), e.openOverlay(a));
}, !0), (0, P.useEffect)(() => () => {
queueMicrotask(() => {
- kV(cH.navigation.location.pathname) || t.current?.closeStage();
+ OV(sH.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
-function f_e({ path: e }) {
- IU();
- let { location: t, seq: n, action: r } = cH.navigation, i = SV(t.pathname) ? TV(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, P.useRef)({
+function h_e({ path: e }) {
+ FU();
+ let { location: t, seq: n, action: r } = sH.navigation, i = xV(t.pathname) ? wV(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, P.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -46602,161 +46613,161 @@ function f_e({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, F.jsx)(d_e, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, F.jsx)(m_e, {}, `${e} ${o.current.seq}`);
}
-function p_e() {
- let e = (0, P.useContext)(LU);
- return PU(() => {
+function g_e() {
+ let e = (0, P.useContext)(IU);
+ return NU(() => {
e?.follow?.ground();
}), null;
}
-function m_e() {
- return /* @__PURE__ */ (0, F.jsx)(p_e, {}, IU());
+function __e() {
+ return /* @__PURE__ */ (0, F.jsx)(g_e, {}, FU());
}
// src/react/router/router.tsx
-var FU = (0, P.createContext)(0), IU = () => (0, P.useContext)(FU), LU = (0, P.createContext)(null);
-function h_e({ children: e }) {
- let [t, n] = (0, P.useState)(() => cH.navigation);
- return (0, P.useLayoutEffect)(() => (n(cH.navigation), cH.listen((e) => {
+var PU = (0, P.createContext)(0), FU = () => (0, P.useContext)(PU), IU = (0, P.createContext)(null);
+function v_e({ children: e }) {
+ let [t, n] = (0, P.useState)(() => sH.navigation);
+ return (0, P.useLayoutEffect)(() => (n(sH.navigation), sH.listen((e) => {
(0, Lt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, F.jsx)(FU.Provider, {
+ })), []), /* @__PURE__ */ (0, F.jsx)(PU.Provider, {
value: t.openEpoch,
- children: /* @__PURE__ */ (0, F.jsx)(vhe, {
+ children: /* @__PURE__ */ (0, F.jsx)(xhe, {
location: t.location,
navigationType: t.action,
- navigator: cH,
+ navigator: sH,
children: e
})
});
}
-function g_e({ target: e }) {
- let t = rhe();
+function y_e({ target: e }) {
+ let t = ohe();
return (0, P.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function __e(e, t, n) {
+function b_e(e, t, n) {
let r = new URL(e, window.location.href);
- P6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ N6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function v_e() {
- let e = (0, P.useContext)(LU), [t, n] = (0, P.useState)(YV), r = (0, P.useRef)(null);
- (0, P.useLayoutEffect)(() => (n(YV()), Mhe((e, t) => {
+function x_e() {
+ let e = (0, P.useContext)(IU), [t, n] = (0, P.useState)(JV), r = (0, P.useRef)(null);
+ (0, P.useLayoutEffect)(() => (n(JV()), Fhe((e, t) => {
t ? (0, Lt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, P.useMemo)(() => (t) => {
- e && r.current && __e(t, e, r.current);
+ e && r.current && b_e(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(g_e, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, F.jsx)(y_e, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(y_e, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, F.jsx)(S_e, {
entry: t,
- children: /* @__PURE__ */ (0, F.jsx)(b_e, {
+ children: /* @__PURE__ */ (0, F.jsx)(C_e, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var y_e = class extends P.Component {
+var S_e = class extends P.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
}
componentDidCatch() {
- Fhe(this.props.entry.container, this.props.entry.revision);
+ Rhe(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
}
-}, b_e = (0, P.memo)(function({ entry: e, actions: t, go: n }) {
- return J6(e.path) ? (0, Lt.createPortal)(ZMe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, C_e = (0, P.memo)(function({ entry: e, actions: t, go: n }) {
+ return q6(e.path) ? (0, Lt.createPortal)(eNe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function x_e({ children: e }) {
- let t = YB();
- IU();
- let n = dH(), r = SV(t.pathname) && !uH() ? TV(t.state) : null;
+function w_e({ children: e }) {
+ let t = JB();
+ FU();
+ let n = uH(), r = xV(t.pathname) && !lH() ? wV(t.state) : null;
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsxs)(iV, {
+ /* @__PURE__ */ (0, F.jsxs)(rV, {
location: n ?? t,
children: [
- Object.entries(N6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ Object.entries(M6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
element: t.element
}, e)),
- Object.entries(qMe).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ Object.entries(XMe).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
element: t.element
}, e)),
- Object.entries(F6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ Object.entries(P6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
element: t.element
}, e)),
- Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ Object.entries(L6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
element: t.element
}, e)),
- Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
element: t.element
}, e)),
- q6.map((e) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ K6.map((e) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
- element: V6["/"].element
+ element: B6["/"].element
}, e)),
- Object.entries(JMe).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ Object.entries(ZMe).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
element: t.element
}, e)),
- EV.map((e) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ TV.map((e) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, F.jsx)(m_e, {}) : V6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, F.jsx)(__e, {}) : B6["/"].element
}, e)),
- xV.map((e) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ bV.map((e) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, F.jsx)(rV, {
+ /* @__PURE__ */ (0, F.jsx)(nV, {
path: "*",
element: e
})
]
}),
- /* @__PURE__ */ (0, F.jsxs)(iV, {
+ /* @__PURE__ */ (0, F.jsxs)(rV, {
location: r ?? t,
- children: [EV.map((e) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ children: [TV.map((e) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
- element: /* @__PURE__ */ (0, F.jsx)(f_e, { path: e })
- }, e)), /* @__PURE__ */ (0, F.jsx)(rV, {
+ element: /* @__PURE__ */ (0, F.jsx)(h_e, { path: e })
+ }, e)), /* @__PURE__ */ (0, F.jsx)(nV, {
path: "*",
element: null
})]
}),
- /* @__PURE__ */ (0, F.jsxs)(iV, { children: [xV.map((e) => /* @__PURE__ */ (0, F.jsx)(rV, {
+ /* @__PURE__ */ (0, F.jsxs)(rV, { children: [bV.map((e) => /* @__PURE__ */ (0, F.jsx)(nV, {
path: e,
- element: /* @__PURE__ */ (0, F.jsx)(c_e, {})
- }, e)), /* @__PURE__ */ (0, F.jsx)(rV, {
+ element: /* @__PURE__ */ (0, F.jsx)(d_e, {})
+ }, e)), /* @__PURE__ */ (0, F.jsx)(nV, {
path: "*",
element: null
})] })
] });
}
-function S_e({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, F.jsxs)(pH, { children: [n, /* @__PURE__ */ (0, F.jsx)(LU.Provider, {
+function T_e({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, F.jsxs)(fH, { children: [n, /* @__PURE__ */ (0, F.jsx)(IU.Provider, {
value: t,
- children: /* @__PURE__ */ (0, F.jsxs)(h_e, { children: [
- /* @__PURE__ */ (0, F.jsx)(v_e, {}),
- /* @__PURE__ */ (0, F.jsx)(u_e, {}),
- r && t ? /* @__PURE__ */ (0, F.jsx)($ge, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, F.jsx)(r_e, {}) : null,
- r && t ? /* @__PURE__ */ (0, F.jsx)(s_e, { navigate: t.navigate }) : null,
- /* @__PURE__ */ (0, F.jsx)(x_e, { children: e })
+ children: /* @__PURE__ */ (0, F.jsxs)(v_e, { children: [
+ /* @__PURE__ */ (0, F.jsx)(x_e, {}),
+ /* @__PURE__ */ (0, F.jsx)(p_e, {}),
+ r && t ? /* @__PURE__ */ (0, F.jsx)(n_e, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, F.jsx)(o_e, {}) : null,
+ r && t ? /* @__PURE__ */ (0, F.jsx)(u_e, { navigate: t.navigate }) : null,
+ /* @__PURE__ */ (0, F.jsx)(w_e, { children: e })
] })
})] });
}
-var C_e = { onCaughtError: (e) => {
+var E_e = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} };
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function w_e(e, t, n) {
+function D_e(e, t, n) {
(0, P.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -46770,7 +46781,7 @@ function w_e(e, t, n) {
n
]);
}
-function T_e(e, t) {
+function O_e(e, t) {
let n = (0, P.useRef)(!1);
return (0, P.useEffect)(() => {
if (!e) return;
@@ -46783,33 +46794,33 @@ function T_e(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var RU = (0, P.createContext)("md");
-function zU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var LU = (0, P.createContext)("md");
+function RU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, P.useRef)(null), u = (0, P.useRef)(null), [d, f] = (0, P.useState)(!1);
- w_e(d, () => f(!1), [l, u]);
- let p = T_e(d, l);
- return /* @__PURE__ */ (0, F.jsx)(afe, {
+ D_e(d, () => f(!1), [l, u]);
+ let p = O_e(d, l);
+ return /* @__PURE__ */ (0, F.jsx)(cfe, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: sF("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)(HI, {
+ className: IF("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)(VI, {
ref: l,
- className: sF("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, F.jsx)(cfe, {
- className: sF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: IF("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
+ children: [/* @__PURE__ */ (0, F.jsx)(dfe, {
+ className: IF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, F.jsx)(bhe, { className: sF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, F.jsx)(hR, {
+ }), /* @__PURE__ */ (0, F.jsx)(Che, { className: IF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, F.jsx)(mR, {
ref: u,
isNonModal: !0,
offset: 4,
- className: sF(Che, lV, "p-2", n),
- children: /* @__PURE__ */ (0, F.jsx)(Dde, {
+ className: IF(Ehe, cV, "p-2", n),
+ children: /* @__PURE__ */ (0, F.jsx)(Ade, {
items: a,
- className: sF(whe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, F.jsx)(RU.Provider, {
+ className: IF(Dhe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, F.jsx)(LU.Provider, {
value: r,
children: i
})
@@ -46817,23 +46828,23 @@ function zU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function BU({ className: e, children: t, ...n }) {
- let r = (0, P.useContext)(RU);
- return /* @__PURE__ */ (0, F.jsx)(Ade, {
+function zU({ className: e, children: t, ...n }) {
+ let r = (0, P.useContext)(LU);
+ return /* @__PURE__ */ (0, F.jsx)(Nde, {
...n,
- className: (t) => sF(uV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => IF(lV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
// src/react/catalog-folders/catalog-folders.ts
-var VU = {
+var BU = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function HU(e, t = "", n = "") {
+function VU(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -46845,14 +46856,14 @@ function HU(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function UU(e, t) {
+function HU(e, t) {
let n = new URLSearchParams(e.search);
for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);
return e.pathname + (n.size ? `?${n}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function E_e({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, P.useContext)(LU), a = BH(), [o, s] = (0, P.useState)(t?.purpose || "category"), [c, l] = (0, P.useState)(t?.name || ""), [u, d] = (0, P.useState)(t?.recursive ?? !0), [f, p] = (0, P.useState)(t?.future ?? !1), [m, h] = (0, P.useState)(null), [g, _] = (0, P.useState)(!1), v = {
+function k_e({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, P.useContext)(IU), a = zH(), [o, s] = (0, P.useState)(t?.purpose || "category"), [c, l] = (0, P.useState)(t?.name || ""), [u, d] = (0, P.useState)(t?.recursive ?? !0), [f, p] = (0, P.useState)(t?.future ?? !1), [m, h] = (0, P.useState)(null), [g, _] = (0, P.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -46881,7 +46892,7 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: zs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, F.jsx)(Gz, {
+ return g ? null : /* @__PURE__ */ (0, F.jsx)(Wz, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -46895,7 +46906,7 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, F.jsx)(WI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(UI, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -46903,7 +46914,7 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, F.jsx)(Zz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Xz, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -46915,20 +46926,20 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, F.jsx)(Rz, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, F.jsx)(zU, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Lz, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, F.jsx)(RU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(VU).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(BU, {
+ children: Object.entries(BU).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(zU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, F.jsx)(Wz, {
+ o === "category" ? null : /* @__PURE__ */ (0, F.jsx)(Uz, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -46939,7 +46950,7 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, F.jsx)(gV, {
+ /* @__PURE__ */ (0, F.jsx)(hV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -46947,7 +46958,7 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, F.jsx)(gV, {
+ /* @__PURE__ */ (0, F.jsx)(hV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -46984,9 +46995,9 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ m.conflicts.length ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "warning",
- extra: /* @__PURE__ */ (0, F.jsx)(dU, {
+ extra: /* @__PURE__ */ (0, F.jsx)(uU, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, F.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -47004,7 +47015,7 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ a.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: a.error
}) : null
@@ -47019,7 +47030,7 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...Qz(a.busy === "remove"),
+ ...Zz(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, F.jsx)(q, {
@@ -47031,13 +47042,13 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
- ...Qz(a.busy === "save"),
+ ...Zz(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...Qz(a.busy === "preview"),
+ ...Zz(a.busy === "preview"),
onClick: () => {
x();
},
@@ -47050,7 +47061,7 @@ function E_e({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function D_e(e, t) {
+function A_e(e, t) {
(0, P.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
@@ -47073,35 +47084,35 @@ function D_e(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function WU() {
- return JB() ? /* @__PURE__ */ (0, F.jsx)(O_e, {}) : null;
+function UU() {
+ return qB() ? /* @__PURE__ */ (0, F.jsx)(j_e, {}) : null;
}
-function O_e() {
- let e = YB(), t = (0, P.useContext)(LU);
+function j_e() {
+ let e = JB(), t = (0, P.useContext)(IU);
if (!An(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, F.jsx)(oI, {
+ return /* @__PURE__ */ (0, F.jsx)(lI, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: Ez,
- onClick: () => t?.navigate(UU(e, r ? {
+ icon: Tz,
+ onClick: () => t?.navigate(HU(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function k_e({ children: e, enabled: t }) {
- return JB() ? /* @__PURE__ */ (0, F.jsx)(A_e, {
+function M_e({ children: e, enabled: t }) {
+ return qB() ? /* @__PURE__ */ (0, F.jsx)(N_e, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: e });
}
-function A_e({ children: e, enabled: t }) {
- let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o = YB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
+function N_e({ children: e, enabled: t }) {
+ let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o = JB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "entity-folder-workspace",
"data-folder-workspace": "",
@@ -47120,7 +47131,7 @@ function A_e({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, F.jsx)(GU, {
+ n && i ? /* @__PURE__ */ (0, F.jsx)(WU, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -47128,14 +47139,14 @@ function A_e({ children: e, enabled: t }) {
]
});
}
-function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = YB(), i = (0, P.useContext)(LU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function WU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = JB(), i = (0, P.useContext)(IU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- D_e(o, e);
+ A_e(o, e);
let c = a.get("folder") || "", l = Pt({
- ...HU(s, c),
+ ...VU(s, c),
enabled: o
}), [u, d] = (0, P.useState)(!1), [f, p] = (0, P.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, P.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -47149,11 +47160,11 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(UU(r, {
+ d(!1), i.navigate(HU(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, F.jsx)(M_e, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, F.jsx)(F_e, {
scope: s,
selected: c,
current: _,
@@ -47170,21 +47181,21 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, F.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, F.jsx)(oI, {
+ children: /* @__PURE__ */ (0, F.jsx)(lI, {
"aria-label": "打开文件夹目录",
- icon: Jpe,
+ icon: Zpe,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, F.jsxs)(She, {
+ /* @__PURE__ */ (0, F.jsxs)(The, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, F.jsx)(sV, {
+ children: [/* @__PURE__ */ (0, F.jsx)(oV, {
current: !c,
onClick: () => g(""),
- icon: Ez,
+ icon: Tz,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, F.jsx)(sV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, F.jsx)(oV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, F.jsx)("span", {
@@ -47194,15 +47205,15 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, F.jsx)(oI, {
+ _?.selected ? /* @__PURE__ */ (0, F.jsx)(lI, {
"aria-label": "设置目录用途",
- icon: zpe,
+ icon: Hpe,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ l.error && !u ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -47214,7 +47225,7 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: cr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, F.jsxs)(qz, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, F.jsxs)(Kz, {
tone: "warning",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -47226,14 +47237,14 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, F.jsx)(gV, {
+ children: [/* @__PURE__ */ (0, F.jsx)(hV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(UU(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(HU(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${VU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${BU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, F.jsx)("div", {
@@ -47243,13 +47254,13 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
className: "folder-children",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, F.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, F.jsx)(j_e, {
+ _?.children.length ? /* @__PURE__ */ (0, F.jsx)(P_e, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, F.jsxs)(Gz, {
+ /* @__PURE__ */ (0, F.jsxs)(Wz, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -47259,7 +47270,7 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, F.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, F.jsx)(Zz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Xz, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -47268,7 +47279,7 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, F.jsx)(E_e, {
+ f && _?.selected ? /* @__PURE__ */ (0, F.jsx)(k_e, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -47276,7 +47287,7 @@ function GU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function j_e({ nodes: e, go: t }) {
+function P_e({ nodes: e, go: t }) {
let [n, r] = (0, P.useState)(!1), i = (0, P.useId)(), a = n ? e : e.slice(0, 12);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
@@ -47287,7 +47298,7 @@ function j_e({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: Ez,
+ leadingIcon: Tz,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "truncate",
@@ -47304,28 +47315,28 @@ function j_e({ nodes: e, go: t }) {
}) : null]
});
}
-function M_e({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Pt(HU(e)), [o, s] = (0, P.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, P.useState)(""), u = (0, P.useDeferredValue)(c), d = Pt({
- ...HU(e, "", u),
+function F_e({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Pt(VU(e)), [o, s] = (0, P.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, P.useState)(""), u = (0, P.useDeferredValue)(c), d = Pt({
+ ...VU(e, "", u),
enabled: !!u.trim()
- }), f = _V();
+ }), f = gV();
(0, P.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
- let p = [...o].map(String), m = Mt({ queries: p.map((t) => HU(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Mt({ queries: p.map((t) => VU(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, F.jsx)(fV, {
+ return /* @__PURE__ */ (0, F.jsx)(dV, {
id: e.id,
label: e.name,
- icon: Ez,
- expandedIcon: Dz,
+ icon: Tz,
+ expandedIcon: Ez,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, F.jsx)(fV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, F.jsx)(dV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -47341,15 +47352,15 @@ function M_e({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(Wz, {
+ /* @__PURE__ */ (0, F.jsx)(Uz, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: Fz,
+ leadingIcon: Pz,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ v ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -47384,20 +47395,20 @@ function M_e({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ }) : d.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: cr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: Ez,
+ leadingIcon: Tz,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, F.jsx)(Jz, {
+ }, e.id)) : /* @__PURE__ */ (0, F.jsx)(qz, {
size: "compact",
- icon: Fz,
+ icon: Pz,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
@@ -47406,7 +47417,7 @@ function M_e({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, F.jsx)(The, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, F.jsx)(Ohe, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -47414,11 +47425,11 @@ function M_e({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, F.jsx)(Jz, {
+ }) : /* @__PURE__ */ (0, F.jsx)(qz, {
size: "compact",
- icon: Ez,
+ icon: Tz,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, F.jsx)(SI, {
+ actions: /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -47431,53 +47442,53 @@ function M_e({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/components/segmented.tsx
-function N_e(e) {
- let t = lI(HH("selection"));
- return /* @__PURE__ */ (0, F.jsx)(gz, {
+function I_e(e) {
+ let t = fI(VH("selection"));
+ return /* @__PURE__ */ (0, F.jsx)(hz, {
...e,
ref: t
});
}
-function KU(e) {
- let t = lI(HH("selection"));
- return /* @__PURE__ */ (0, F.jsx)(FR, {
+function GU(e) {
+ let t = fI(VH("selection"));
+ return /* @__PURE__ */ (0, F.jsx)(PR, {
...e,
ref: t
});
}
-var qU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", JU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", P_e = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", YU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", XU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
+var KU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", qU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", L_e = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", JU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", YU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
// src/react/catalog-grid/catalog-view-toggle.tsx
-function ZU() {
- let e = FM();
- return /* @__PURE__ */ (0, F.jsxs)(FR, {
+function XU() {
+ let e = PM();
+ return /* @__PURE__ */ (0, F.jsxs)(PR, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: Tce,
+ onChange: Oce,
"data-entity-layout": "",
- className: YU,
- children: [/* @__PURE__ */ (0, F.jsx)(IR, {
+ className: JU,
+ children: [/* @__PURE__ */ (0, F.jsx)(FR, {
value: "cards",
"aria-label": "卡片",
- className: XU,
+ className: YU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, F.jsx)(Az, {
+ children: /* @__PURE__ */ (0, F.jsx)(kz, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, F.jsx)(IR, {
+ }), /* @__PURE__ */ (0, F.jsx)(FR, {
value: "list",
"aria-label": "列表",
- className: XU,
+ className: YU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, F.jsx)(Kpe, {
+ children: /* @__PURE__ */ (0, F.jsx)(Ype, {
"aria-hidden": "true",
className: "size-4"
})
@@ -47486,7 +47497,7 @@ function ZU() {
});
}
// src/react/components/icon-swap.tsx
-function QU({ a: e, b: t, state: n, className: r }) {
+function ZU({ a: e, b: t, state: n, className: r }) {
let { isFocusVisible: i } = Fx();
return /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": !0,
@@ -47503,114 +47514,114 @@ function QU({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function $U({ className: e }) {
- return /* @__PURE__ */ (0, F.jsx)(QU, {
- a: vpe,
- b: _pe,
+function QU({ className: e }) {
+ return /* @__PURE__ */ (0, F.jsx)(ZU, {
+ a: xpe,
+ b: bpe,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var eW = (e) => typeof e == "string" ? e : "", tW = (e) => e.aliases;
-function nW(e, t = "") {
+var $U = (e) => typeof e == "string" ? e : "", eW = (e) => e.aliases;
+function tW(e, t = "") {
let n = qi(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function rW(e, t = "") {
+function nW(e, t = "") {
let n = z(oi(t || e)), r = qi(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var iW = (e) => eW(e.title).trim() || "未命名内容", aW = (e, t) => ai(e, tW(t));
-function oW(e) {
+var rW = (e) => $U(e.title).trim() || "未命名内容", iW = (e, t) => ai(e, eW(t));
+function aW(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = eW(n.entity_name);
+ let n = t[0], r = $U(n.entity_name);
return cn("creator", r, n.entity_id), r;
}
-function sW(e, t) {
+function oW(e, t) {
let { src: n, fallback: r } = si(e), i = oi(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;
let a = r ? ` data-fallbacks="${z(r)}"` : "";
return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;
}
-function cW(e, t, n) {
- let r = tW(n), i = e.credit, a = i?.poster;
+function sW(e, t, n) {
+ let r = eW(n), i = e.credit, a = i?.poster;
if (!a) {
let n = ai(t, r);
return {
- author: n || eW(e.author) || eW(e.source_label) || "创作者未取得",
- avatar: sW(t, n),
+ author: n || $U(e.author) || $U(e.source_label) || "创作者未取得",
+ avatar: oW(t, n),
credited: "",
- entityName: oW(t)
+ entityName: aW(t)
};
}
let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && ai(c, r) || a;
return {
author: l,
- avatar: sW(c, l),
+ avatar: oW(c, l),
credited: i.credited || "",
- entityName: oW(c)
+ entityName: aW(c)
};
}
-function lW(e, t = e.primary) {
+function cW(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = eW(e.primary.version);
+ let i = $U(e.primary.version);
i && n.push(r("version", z(i)));
- let a = eW(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = $U(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function uW(e, t = e.primary) {
+function lW(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => nW(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => tW(e, t) || `<span>${z(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function dW(e, t) {
- let n = eW(e.media_error);
+function uW(e, t) {
+ let n = $U(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var F_e = 864e5, I_e = (e, t) => {
+var dW = 864e5, fW = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > F_e;
+ return Number.isFinite(n) && n - t > dW;
};
-function fW(e, t) {
- let n = eW(e.published_at);
+function pW(e, t) {
+ let n = $U(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Sr(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: I_e(n, t) ? " · 晚于现在" : ""
+ suffix: fW(n, t) ? " · 晚于现在" : ""
};
}
-function pW(e, t = Date.now()) {
- let n = fW(e, t);
+function mW(e, t = Date.now()) {
+ let n = pW(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function mW(e, t = Date.now()) {
- let n = fW(e, t);
+function hW(e, t = Date.now()) {
+ let n = pW(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var hW = /* @__PURE__ */ new Set(), gW = [], _W = null;
-function vW() {
- if (_W = null, !gW.length) return;
- let e = gW.splice(0, 200);
+var gW = /* @__PURE__ */ new Set(), _W = [], vW = null;
+function yW() {
+ if (vW = null, !_W.length) return;
+ let e = _W.splice(0, 200);
wn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), gW.length && (_W = setTimeout(vW, 800));
+ }).catch(() => {}), _W.length && (vW = setTimeout(yW, 800));
}
-function yW(e, t, n, r) {
+function bW(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- hW.has(i) || (hW.add(i), gW.push(t === null ? {
+ gW.has(i) || (gW.add(i), _W.push(t === null ? {
item: e,
width: n,
height: r
@@ -47619,25 +47630,25 @@ function yW(e, t, n, r) {
width: n,
height: r,
media: t
- }), _W ||= setTimeout(vW, 800));
+ }), vW ||= setTimeout(yW, 800));
}
// src/react/entity-filter/entity-filter.ts
-var bW = (e) => e === "videos", xW = () => /* @__PURE__ */ (0, F.jsx)("span", {
+var xW = (e) => e === "videos", SW = () => /* @__PURE__ */ (0, F.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), SW = Xz("shuffle"), CW = Xz("arrow-up"), wW = Xz("arrow-down");
-function TW(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = bW(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), CW = Yz("shuffle"), wW = Yz("arrow-up"), TW = Yz("arrow-down");
+function EW(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = xW(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (0, P.useRef)(null), _ = (0, P.useRef)(null), v = (0, P.useRef)(null), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = bI(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = bI(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, P.useRef)(null), w = (0, P.useRef)(null), T = u?.mediaCounts ? u : null, E = bI(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (0, P.useRef)(null), _ = (0, P.useRef)(null), v = (0, P.useRef)(null), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = yI(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = yI(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, P.useRef)(null), w = (0, P.useRef)(null), T = u?.mediaCounts ? u : null, E = yI(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, P.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(AW, {
+ }, [c]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(jW, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, F.jsx)(pI, {
+ }), /* @__PURE__ */ (0, F.jsx)(mI, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -47666,19 +47677,19 @@ function TW(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(kW, {
+ n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(AW, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, F.jsx)(xW, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(DW, {
+ }), d ? /* @__PURE__ */ (0, F.jsx)(SW, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(OW, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, F.jsx)(xW, {})] }) : null,
+ }), /* @__PURE__ */ (0, F.jsx)(SW, {})] }) : null,
/* @__PURE__ */ (0, F.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -47699,7 +47710,7 @@ function TW(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, F.jsx)(xW, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, F.jsx)(SW, {}) : null]
}), /* @__PURE__ */ (0, F.jsx)("div", {
ref: y,
"data-entity-tags": "",
@@ -47712,17 +47723,17 @@ function TW(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, F.jsx)(OW, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, F.jsx)(kW, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, F.jsx)(jW, { ...e })
+ bottom: /* @__PURE__ */ (0, F.jsx)(MW, { ...e })
})] });
}
-var EW = [[
+var DW = [[
"videos",
"视频",
"play",
@@ -47733,7 +47744,7 @@ var EW = [[
"pics",
"image"
]];
-function DW({ head: e, row: t, glide: n, onMedia: r }) {
+function OW({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
ref: t,
role: "group",
@@ -47741,7 +47752,7 @@ function DW({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: EW.map(([t, i, a, o]) => {
+ children: DW.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -47759,7 +47770,7 @@ function DW({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function OW({ head: e, actions: t }) {
+function kW({ head: e, actions: t }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -47769,9 +47780,9 @@ function OW({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: nW(n) }
+ dangerouslySetInnerHTML: { __html: tW(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, F.jsx)(xW, {}) : null,
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, F.jsx)(SW, {}) : null,
e.tags.map((e) => /* @__PURE__ */ (0, F.jsxs)(hI, {
"data-follow-tag": e.k,
"data-entity-press": "",
@@ -47785,7 +47796,7 @@ function OW({ head: e, actions: t }) {
}, e.k))
] });
}
-function kW({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function AW({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -47833,7 +47844,7 @@ function kW({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function AW({ items: e, hidden: t, actions: n }) {
+function jW({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -47853,7 +47864,7 @@ function AW({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function jW(e) {
+function MW(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, F.jsxs)("button", {
@@ -47865,27 +47876,27 @@ function jW(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, F.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, F.jsx)(MW, {
+ /* @__PURE__ */ (0, F.jsx)(NW, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, F.jsx)(dB, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, F.jsx)(FW, {
+ /* @__PURE__ */ (0, F.jsx)(uB, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, F.jsx)(IW, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, F.jsx)(RW, {
+ t === "photos" && a ? /* @__PURE__ */ (0, F.jsx)(zW, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, F.jsx)(LW, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, F.jsx)(RW, {
head: e.online,
actions: o
}) : null
] });
}
-function MW({ text: e, busy: t }) {
+function NW({ text: e, busy: t }) {
return /* @__PURE__ */ (0, F.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, F.jsx)("span", {
@@ -47895,22 +47906,22 @@ function MW({ text: e, busy: t }) {
}) : e
});
}
-function NW({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, F.jsx)(FR, {
+function PW({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, F.jsx)(PR, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: YU,
+ className: JU,
children: r.map(([e, t, n]) => {
- let r = Xz(n);
- return /* @__PURE__ */ (0, F.jsx)(IR, {
+ let r = Yz(n);
+ return /* @__PURE__ */ (0, F.jsx)(FR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: XU,
+ className: YU,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
@@ -47920,38 +47931,38 @@ function NW({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function PW({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, F.jsx)(dI, {
+function FW({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, F.jsx)(pI, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: SW,
+ icon: CW,
onPress: e
});
}
-function FW({ head: e, actions: t }) {
- let n = FM();
+function IW({ head: e, actions: t }) {
+ let n = PM();
return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(PW, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, F.jsx)(NW, {
+ /* @__PURE__ */ (0, F.jsx)(FW, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, F.jsx)(PW, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, F.jsx)(ZU, {}),
- /* @__PURE__ */ (0, F.jsx)(WU, {}),
- /* @__PURE__ */ (0, F.jsx)(IW, {
+ /* @__PURE__ */ (0, F.jsx)(XU, {}),
+ /* @__PURE__ */ (0, F.jsx)(UU, {}),
+ /* @__PURE__ */ (0, F.jsx)(LW, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function IW({ sorts: e, onSort: t }) {
+function LW({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -47959,20 +47970,20 @@ function IW({ sorts: e, onSort: t }) {
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, F.jsx)(QU, {
- a: CW,
- b: wW,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, F.jsx)(ZU, {
+ a: wW,
+ b: TW,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function LW({ head: e, actions: t }) {
+function RW({ head: e, actions: t }) {
return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(PW, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(NW, {
+ /* @__PURE__ */ (0, F.jsx)(FW, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(PW, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -47992,27 +48003,27 @@ function LW({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, F.jsx)(IW, {
+ /* @__PURE__ */ (0, F.jsx)(LW, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function RW({ head: e, actions: t, helpers: n }) {
+function zW({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, P.useState)(!1), a = (0, P.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, P.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, F.jsx)(PW, {
+ e.shuffle ? /* @__PURE__ */ (0, F.jsx)(FW, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, F.jsx)(NW, {
+ /* @__PURE__ */ (0, F.jsx)(PW, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -48027,8 +48038,8 @@ function RW({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var zW = "peach.catalog.tiers.v1";
-function BW() {
+var BW = "peach.catalog.tiers.v1";
+function VW() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -48042,41 +48053,41 @@ function BW() {
};
}
}
-function VW(e) {
+function HW(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(zW, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(BW, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-var HW = "";
-function UW(e) {
- let t = !e.tiers, n = ZW(e.comboHost);
+var UW = "";
+function WW(e) {
+ let t = !e.tiers, n = QW(e.comboHost);
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(AW, {
+ n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(jW, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, F.jsx)(KW, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, F.jsx)(WW, { ...e })
+ /* @__PURE__ */ (0, F.jsx)(qW, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, F.jsx)(GW, { ...e })
]
});
}
-function WW(e) {
- let { actions: t, helpers: n } = e, r = (0, P.useRef)(null), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), [c, l] = (0, P.useState)(!1), u = bI(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function GW(e) {
+ let { actions: t, helpers: n } = e, r = (0, P.useRef)(null), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), [c, l] = (0, P.useState)(!1), u = yI(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, P.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = QW(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = $W(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, P.useLayoutEffect)(() => {
let e = a.current?.closest("[data-catalog-frame]");
if (!e) return;
@@ -48093,7 +48104,7 @@ function WW(e) {
e.sorts
]), (0, P.useLayoutEffect)(() => {
Zs(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, F.jsx)(pI, {
+ }, [f]), /* @__PURE__ */ (0, F.jsx)(mI, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -48137,16 +48148,16 @@ function WW(e) {
}), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, F.jsx)(JW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, F.jsx)(GW, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, F.jsx)(YW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, F.jsx)(KW, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, F.jsx)(YW, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, F.jsx)(XW, { ...e })
});
}
-function GW({ tag: e, onPress: t }) {
+function KW({ tag: e, onPress: t }) {
return /* @__PURE__ */ (0, F.jsxs)(hI, {
"data-catalog-tag": e.k,
"data-entity-press": "",
@@ -48158,15 +48169,15 @@ function GW({ tag: e, onPress: t }) {
})]
});
}
-function KW(e) {
- iI();
+function qW(e) {
+ sI();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = !e.tiers, a = e.empty || i, o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useCallback)((e) => () => t.moreTops(e), [t]), l = QW(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = QW(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, P.useMemo)(() => i ? BW() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
+ }, i = !e.tiers, a = e.empty || i, o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useCallback)((e) => () => t.moreTops(e), [t]), l = $W(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = $W(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, P.useMemo)(() => i ? VW() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, P.useEffect)(() => {
- i || VW({
+ i || HW({
performers: f,
studios: p
});
@@ -48187,7 +48198,7 @@ function KW(e) {
children: [f ? /* @__PURE__ */ (0, F.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, F.jsx)(JW, { kind: "performer" }) : l.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, F.jsx)(YW, { kind: "performer" }) : l.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -48204,18 +48215,18 @@ function KW(e) {
}) : null, p ? /* @__PURE__ */ (0, F.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, F.jsx)(JW, { kind: "studio" }) : u.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, F.jsx)(YW, { kind: "studio" }) : u.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, F.jsx)(qW, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, F.jsx)(JW, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function qW({ studio: e }) {
+function JW({ studio: e }) {
let [t, n] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsx)("span", {
"data-tier-mark": "",
@@ -48233,7 +48244,7 @@ function qW({ studio: e }) {
}) : e.fallback
});
}
-function JW({ kind: e }) {
+function YW({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -48249,37 +48260,37 @@ function JW({ kind: e }) {
children: [/* @__PURE__ */ (0, F.jsx)("span", {}), /* @__PURE__ */ (0, F.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function YW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = FM(), [o, s] = (0, P.useState)(!1);
+function XW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = PM(), [o, s] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, F.jsx)(XW, { count: e }), /* @__PURE__ */ (0, F.jsx)(dB, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, F.jsx)(ZW, { count: e }), /* @__PURE__ */ (0, F.jsx)(uB, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(PW, {
+ /* @__PURE__ */ (0, F.jsx)(FW, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, F.jsx)(NW, {
+ n && a === "cards" ? /* @__PURE__ */ (0, F.jsx)(PW, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, F.jsx)(ZU, {}),
- /* @__PURE__ */ (0, F.jsx)(WU, {}),
- /* @__PURE__ */ (0, F.jsx)(IW, {
+ /* @__PURE__ */ (0, F.jsx)(XU, {}),
+ /* @__PURE__ */ (0, F.jsx)(UU, {}),
+ /* @__PURE__ */ (0, F.jsx)(LW, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function XW({ count: e }) {
+function ZW({ count: e }) {
let t = (0, P.useRef)(null), n = (0, P.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
return (0, P.useLayoutEffect)(() => {
if (e === !1) return;
@@ -48288,7 +48299,7 @@ function XW({ count: e }) {
return;
}
let i = t.current;
- i && (HW && i.dataset.popCount === void 0 && (i.dataset.popCount = HW), HW = r, Js(i, r));
+ i && (UW && i.dataset.popCount === void 0 && (i.dataset.popCount = UW), UW = r, Js(i, r));
}, [e, r]), e === !1 ? /* @__PURE__ */ (0, F.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, F.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -48304,7 +48315,7 @@ function XW({ count: e }) {
})
}, "skeleton");
}
-function ZW(e) {
+function QW(e) {
let [t, n] = (0, P.useState)(null);
return (0, P.useLayoutEffect)(() => {
if (!e) return;
@@ -48314,7 +48325,7 @@ function ZW(e) {
};
}, [e]), t;
}
-function QW(e, t, n, r, i) {
+function $W(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -48357,8 +48368,8 @@ function QW(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var $W = "100% 0px";
-function eG(e, t) {
+var eG = "100% 0px";
+function tG(e, t) {
let [n, r] = (0, P.useState)(e ? "skeleton" : "none"), [i] = (0, P.useState)(() => e ? t() : ""), a = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
a.current && uc(a.current);
@@ -48384,7 +48395,7 @@ function eG(e, t) {
fading: n === "fade"
};
}
-function tG({ message: e, onRetry: t }) {
+function nG({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -48397,7 +48408,7 @@ function tG({ message: e, onRetry: t }) {
});
}
// src/react/components/art-slot.tsx
-function nG({ artwork: e, identity: t = e.html, relayout: n }) {
+function rG({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, P.useState)({
identity: t,
artwork: e
@@ -48416,63 +48427,63 @@ function nG({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/library-catalog.ts
-var rG = "peach.library-colors.v1", iG = null, aG = /* @__PURE__ */ new Set();
-function oG() {
+var iG = "peach.library-colors.v1", aG = null, oG = /* @__PURE__ */ new Set();
+function sG() {
try {
- let e = JSON.parse(localStorage.getItem(rG) || "{}");
+ let e = JSON.parse(localStorage.getItem(iG) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function sG(e) {
- iG = e;
+function cG(e) {
+ aG = e;
try {
- localStorage.setItem(rG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(iG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- aG.forEach((t) => t(e));
+ oG.forEach((t) => t(e));
}
-function cG() {
- return iG;
+function lG() {
+ return aG;
}
-function lG(e) {
- return aG.add(e), () => {
- aG.delete(e);
+function uG(e) {
+ return oG.add(e), () => {
+ oG.delete(e);
};
}
// src/react/components/library-tint.ts
-var uG = /* @__PURE__ */ new Map(), dG = !1, fG = /* @__PURE__ */ new Set();
-function pG(e) {
+var dG = /* @__PURE__ */ new Map(), fG = !1, pG = /* @__PURE__ */ new Set();
+function mG(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
return t.remove(), n;
}
-function mG(e) {
- uG = e;
+function hG(e) {
+ dG = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...uG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${pG(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...dG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${mG(e.color)}}`).join("\n");
}
-function hG(e) {
- mG(e), fG.forEach((e) => e());
+function gG(e) {
+ hG(e), pG.forEach((e) => e());
}
-var gG = (e) => new Map(e.map((e) => [e.id, {
+var _G = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: gs[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), _G = !1;
-function vG() {
- if (_G) return;
- _G = !0, lG((e) => hG(gG(e)));
- let e = cG();
+}])), vG = !1;
+function yG() {
+ if (vG) return;
+ vG = !0, uG((e) => gG(_G(e)));
+ let e = lG();
if (e) {
- mG(gG(e));
+ hG(_G(e));
return;
}
- let t = Object.entries(oG()).filter(([, e]) => e);
- t.length && mG(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(sG()).filter(([, e]) => e);
+ t.length && hG(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -48480,73 +48491,73 @@ function vG() {
color: t
}])));
}
-function yG() {
- dG || cG() || (dG = !0, B("/api/libraries").then((e) => sG(e.libraries || [])).catch(() => {
- dG = !1;
+function bG() {
+ fG || lG() || (fG = !0, B("/api/libraries").then((e) => cG(e.libraries || [])).catch(() => {
+ fG = !1;
}));
}
-function bG(e, t) {
- let n = uG.get(e) ?? {
+function xG(e, t) {
+ let n = dG.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- hG(new Map([...uG, [e, {
+ gG(new Map([...dG, [e, {
...n,
color: t
}]]));
}
-function xG(e) {
- return fG.add(e), () => {
- fG.delete(e);
+function SG(e) {
+ return pG.add(e), () => {
+ pG.delete(e);
};
}
-function SG({ names: e = !1 } = {}) {
- return vG(), e && yG(), (0, P.useSyncExternalStore)(xG, () => uG, () => uG);
+function CG({ names: e = !1 } = {}) {
+ return yG(), e && bG(), (0, P.useSyncExternalStore)(SG, () => dG, () => dG);
}
// src/react/components/row-click.ts
-var CG = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function wG(e, t) {
+var wG = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function TG(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(CG);
+ let r = n.closest(wG);
return !r || !t.contains(r) || r === t;
}
-function TG(e) {
+function EG(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var EG = 9 / 16, DG = "未命名视频";
-function OG({ name: e }) {
+var DG = 9 / 16, OG = "未命名视频";
+function kG({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-var kG = {
+var AG = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, AG = {
+}, jG = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function jG({ item: e }) {
+function MG({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && AG[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && jG[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function MG({ item: e, actions: t }) {
+function NG({ item: e, actions: t }) {
let [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -48565,10 +48576,10 @@ function MG({ item: e, actions: t }) {
children: i
}) : null] });
}
-function NG(e, t, n) {
- return t === "short" ? EG : VA(n);
+function PG(e, t, n) {
+ return t === "short" ? DG : qA(n);
}
-function PG(e) {
+function FG(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = ko(e), s = i[0] || "", c = mo(e);
return {
avatar: r ? /* @__PURE__ */ (0, F.jsx)("div", {
@@ -48600,7 +48611,7 @@ function PG(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: tn("performer", s),
- children: [/* @__PURE__ */ (0, F.jsx)(OG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: tn("performer", s) })]
+ children: [/* @__PURE__ */ (0, F.jsx)(kG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: tn("performer", s) })]
}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -48610,16 +48621,16 @@ function PG(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: tn(t, n),
- children: [/* @__PURE__ */ (0, F.jsx)(OG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: tn(t, n) })]
+ children: [/* @__PURE__ */ (0, F.jsx)(kG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: tn(t, n) })]
}) : /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, F.jsx)(OG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, F.jsx)(kG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
})
};
}
-function FG() {
+function IG() {
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -48638,7 +48649,7 @@ function FG() {
})]
});
}
-function IG({ item: e, actions: t, on: n, onChange: r }) {
+function LG({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-later": "",
@@ -48653,11 +48664,11 @@ function IG({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function LG({ reason: e }) {
+function RG({ reason: e }) {
let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
ref: t,
@@ -48671,15 +48682,15 @@ function LG({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, F.jsx)(hR, {
+ }), /* @__PURE__ */ (0, F.jsx)(mR, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
placement: "top",
offset: 8,
containerPadding: 12,
- className: lV,
- children: /* @__PURE__ */ (0, F.jsx)(OR, {
+ className: cV,
+ children: /* @__PURE__ */ (0, F.jsx)(DR, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-normal break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -48687,18 +48698,18 @@ function LG({ reason: e }) {
})
})] });
}
-function RG(e, t) {
+function zG(e, t) {
let n = e?.querySelector("video.hv");
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- iI();
- let u = (0, P.useRef)(null), [d, f] = (0, P.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = SG(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, P.useRef)(e);
+function BG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ sI();
+ let u = (0, P.useRef)(null), [d, f] = (0, P.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = CG(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, P.useRef)(e);
_.current = e;
let v = (0, P.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && Jl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Xl(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = NG(e, t, n), w = S ? n.size : "small", T = C === EG && !!e.is_jav, E = T ? Eo(e, !1) : wo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : wo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || DG, A = o.titleHtml(e, O).trim() || z(DG), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: ne } = PG(e), N = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = PG(e, t, n), w = S ? n.size : "small", T = C === DG && !!e.is_jav, E = T ? Eo(e, !1) : wo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : wo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || OG, A = o.titleHtml(e, O).trim() || z(OG), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: ne } = FG(e), N = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -48725,10 +48736,10 @@ function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, ie = /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === EG ? "" : void 0,
+ "data-pic-portrait": C === DG ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, F.jsx)(nG, {
+ E.html ? /* @__PURE__ */ (0, F.jsx)(rG, {
artwork: E,
identity: D,
relayout: (e) => Bl(e, w)
@@ -48742,11 +48753,11 @@ function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: "check" })
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, F.jsx)(OG, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(kG, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-group": "",
@@ -48761,7 +48772,7 @@ function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-duration": "",
children: qn(M)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)(MG, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)(NG, {
item: e,
actions: s
}) : null,
@@ -48777,22 +48788,22 @@ function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-scrub": "",
children: /* @__PURE__ */ (0, F.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, F.jsx)(FG, {}),
+ /* @__PURE__ */ (0, F.jsx)(IG, {}),
p || g.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: "heart" })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, F.jsx)(IG, {
+ i ? null : /* @__PURE__ */ (0, F.jsx)(LG, {
item: e,
actions: s,
on: p,
@@ -48807,27 +48818,27 @@ function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), RG(u.current, -a);
+ e.stopPropagation(), zG(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), RG(u.current, a);
+ e.stopPropagation(), zG(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: "expand" })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: "expand" })
})
]
})
@@ -48846,7 +48857,7 @@ function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: re,
- onMouseDown: TG,
+ onMouseDown: EG,
children: [
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -48888,15 +48899,15 @@ function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-release": "",
dateTime: e.release_date,
title: e.release_date,
- children: [/* @__PURE__ */ (0, F.jsx)(OG, { name: "calendar" }), e.release_date]
+ children: [/* @__PURE__ */ (0, F.jsx)(kG, { name: "calendar" }), e.release_date]
}) : null, /* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, F.jsx)(OG, { name: "hard-drive" }), Number(j) > 0 ? Yn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, F.jsx)(kG, { name: "hard-drive" }), Number(j) > 0 ? Yn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? e.why ? /* @__PURE__ */ (0, F.jsx)(LG, { reason: e.why }) : null : N.length || e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)("div", {
+ t === "next" ? e.why ? /* @__PURE__ */ (0, F.jsx)(RG, { reason: e.why }) : null : N.length || e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-tags": "",
children: N.map((t) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -48906,15 +48917,15 @@ function zG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, F.jsx)(jG, { item: e })
+ /* @__PURE__ */ (0, F.jsx)(MG, { item: e })
]
})]
})
]
});
}
-function BG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, P.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : kG[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function VG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, P.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : AG[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, F.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -48926,14 +48937,14 @@ function BG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: TG,
+ onMouseDown: EG,
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, F.jsx)(OG, { name: u }), /* @__PURE__ */ (0, F.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, F.jsx)(kG, { name: u }), /* @__PURE__ */ (0, F.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": "thumb",
@@ -48945,13 +48956,13 @@ function BG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: "check" })
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, F.jsx)(OG, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(kG, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, F.jsx)(MG, {
+ n ? null : /* @__PURE__ */ (0, F.jsx)(NG, {
item: e,
actions: i
})
@@ -48962,7 +48973,7 @@ function BG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, F.jsx)(OG, { name: u })
+ children: /* @__PURE__ */ (0, F.jsx)(kG, { name: u })
}), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-text": "",
children: [
@@ -48990,29 +49001,29 @@ function BG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, F.jsx)(jG, { item: e })
+ /* @__PURE__ */ (0, F.jsx)(MG, { item: e })
]
})]
})]
});
}
-function VG(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, F.jsx)(BG, { ...e }) : /* @__PURE__ */ (0, F.jsx)(zG, { ...e });
+function HG(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, F.jsx)(VG, { ...e }) : /* @__PURE__ */ (0, F.jsx)(BG, { ...e });
}
-var HG = (0, P.memo)(VG), UG = 1100, WG = 340, GG = 5e3;
-function KG(e, t, n) {
+var UG = (0, P.memo)(HG), WG = 1100, GG = 340, KG = 5e3;
+function qG(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, GG);
+ }, s = () => o(!1), c = setTimeout(s, KG);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
});
}
-function qG({ load: e, canFlip: t, referrerPolicy: n }) {
+function JG({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, P.useState)([]), [a, o] = (0, P.useState)(0), [s, c] = (0, P.useState)(null), l = (0, P.useRef)({
live: !1,
generation: 0,
@@ -49054,11 +49065,11 @@ function qG({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => KG(t, e, n)));
+ let s = await Promise.all(a.map((t) => qG(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, UG);
+ p(), e.cycle = setInterval(p, WG);
}));
};
return (0, P.useEffect)(() => d, [d]), {
@@ -49067,7 +49078,7 @@ function qG({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(WG, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(GG, () => {
e.armed = null, m();
});
},
@@ -49077,8 +49088,8 @@ function qG({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var JG = Xz("play");
-function YG({ src: e }) {
+var YG = Yz("play");
+function XG({ src: e }) {
let [t, n] = (0, P.useState)(!1);
return t ? null : /* @__PURE__ */ (0, F.jsx)("img", {
"data-mix-poster": "",
@@ -49091,8 +49102,8 @@ function YG({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var XG = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function ZG({ faces: e, fallback: t, onOpenEntity: n }) {
+var ZG = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function QG({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, F.jsx)("button", {
@@ -49100,18 +49111,18 @@ function ZG({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${XG} cursor-pointer outline-none`,
+ className: `${ZG} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: go(e.name, e, Xa(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${XG} mt-0.5`,
+ className: `${ZG} mt-0.5`,
children: t
});
}
-function QG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = qG({
+function $G({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = JG({
load: i,
canFlip: a
}), x = (0, P.useRef)(b.onPointerLeave);
@@ -49138,11 +49149,11 @@ function QG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, F.jsx)(nG, {
+ f?.html ? /* @__PURE__ */ (0, F.jsx)(rG, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, F.jsx)(YG, { src: r }, r) : /* @__PURE__ */ (0, F.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, F.jsx)(XG, { src: r }, r) : /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -49172,7 +49183,7 @@ function QG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, F.jsx)(JG, {
+ children: [/* @__PURE__ */ (0, F.jsx)(YG, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -49185,8 +49196,8 @@ function QG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, F.jsx)(JG, {})
- }) : /* @__PURE__ */ (0, F.jsx)(ZG, {
+ children: /* @__PURE__ */ (0, F.jsx)(YG, {})
+ }) : /* @__PURE__ */ (0, F.jsx)(QG, {
faces: o,
fallback: $n(e),
onOpenEntity: s
@@ -49209,7 +49220,7 @@ function QG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/folia/blockReflows.ts
-var $G = [
+var eK = [
[
[
{
@@ -52770,7 +52781,7 @@ var $G = [
}
]
]
-], eK = [
+], tK = [
[
{
x: 0,
@@ -53067,89 +53078,89 @@ var $G = [
rows: 2
}
]
-], tK = (e) => e.map((e) => ({
+], nK = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), nK = (e) => e.map((e) => ({
+})), rK = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), rK = [
+})), iK = [
(e) => e,
- tK,
nK,
- (e) => tK(nK(e))
-], iK = eK.flatMap((e) => rK.map((t) => t(e))), aK = $G.flatMap((e) => rK.map((t) => e.map(t)));
-iK.length;
-var oK = (e, t) => {
+ rK,
+ (e) => nK(rK(e))
+], aK = tK.flatMap((e) => iK.map((t) => t(e))), oK = eK.flatMap((e) => iK.map((t) => e.map(t)));
+aK.length;
+var sK = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
-}, sK = (e, t) => {
- let n = eK.length;
- return ((e + t * 2) % n + n) % n * rK.length + oK(e, t) % rK.length;
-}, cK = (e, t) => iK[sK(e, t)], lK = (e, t, n) => n < 0 || n >= 12 ? null : aK[sK(e, t)][n], uK = 103.36, dK = 6.08, fK = 12 * uK, pK = 8 * uK, mK = 12, hK = (e, t) => (e % t + t) % t, gK = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
-function _K(e, t) {
- let n = Math.max(1, Math.ceil(e / mK)), r = t ? 3 : Math.min(3, n);
+}, cK = (e, t) => {
+ let n = tK.length;
+ return ((e + t * 2) % n + n) % n * iK.length + sK(e, t) % iK.length;
+}, lK = (e, t) => aK[cK(e, t)], uK = (e, t, n) => n < 0 || n >= 12 ? null : oK[cK(e, t)][n], dK = 103.36, fK = 6.08, pK = 12 * dK, mK = 8 * dK, hK = 12, gK = (e, t) => (e % t + t) % t, _K = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+function vK(e, t) {
+ let n = Math.max(1, Math.ceil(e / hK)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * fK,
- height: Math.ceil(n / r) * pK
+ width: r * pK,
+ height: Math.ceil(n / r) * mK
};
}
-function vK(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = cK(e, t)[n];
+function yK(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = lK(e, t)[n];
return {
- x: e * fK + r * uK,
- y: t * pK + i * uK,
- width: a * uK - dK,
- height: o * uK - dK
+ x: e * pK + r * dK,
+ y: t * mK + i * dK,
+ width: a * dK - fK,
+ height: o * dK - fK
};
}
-function yK(e) {
+function bK(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function bK(e, t, n) {
+function xK(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= mK) return null;
- let o = _K(e, t), s = o.height / pK;
+ ].every(Number.isInteger) || a < 0 || a >= hK) return null;
+ let o = vK(e, t), s = o.height / mK;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : hK(r, o.columns), l = ((t ? i : hK(i, s)) * o.columns + c) * mK + a;
+ let c = t ? r : gK(r, o.columns), l = ((t ? i : gK(i, s)) * o.columns + c) * hK + a;
return t && l >= e ? null : {
- ...vK(r, i, a),
+ ...yK(r, i, a),
index: l % e,
key: n
};
}
-function xK(e, t) {
+function SK(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / mK);
- return bK(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % mK}`);
+ let n = Math.floor(t / hK);
+ return xK(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % hK}`);
}
-function SK(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = lK(r, i, a);
+function CK(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = uK(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * fK + e.x * uK,
- y: i * pK + e.y * uK,
- width: e.cols * uK - dK,
- height: e.rows * uK - dK
+ x: r * pK + e.x * dK,
+ y: i * mK + e.y * dK,
+ width: e.cols * dK - fK,
+ height: e.rows * dK - fK
}]));
}
-function CK(e) {
+function R_e(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / mK), i = vK(e % 3, Math.floor(e / 3), r % mK);
+ let e = Math.floor(r / hK), i = yK(e % 3, Math.floor(e / 3), r % hK);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * fK - dK : t,
+ width: e >= 36 ? 3 * pK - fK : t,
height: n
};
}
-function L_e(e, t, n, r) {
+function z_e(e, t, n, r) {
if (!r) return e;
let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));
return {
@@ -53158,22 +53169,22 @@ function L_e(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function R_e(e, t, n, r) {
+function B_e(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = _K(e, t), s = o.height / pK, c = [];
- for (let n = Math.floor(a.y / pK); n <= Math.floor((a.y + a.height) / pK); n += 1) for (let r = Math.floor(a.x / fK); r <= Math.floor((a.x + a.width) / fK); r += 1) {
+ }, o = vK(e, t), s = o.height / mK, c = [];
+ for (let n = Math.floor(a.y / mK); n <= Math.floor((a.y + a.height) / mK); n += 1) for (let r = Math.floor(a.x / pK); r <= Math.floor((a.x + a.width) / pK); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : hK(r, o.columns), l = t ? n : hK(n, s);
- for (let s = 0; s < mK; s += 1) {
- let u = (l * o.columns + i) * mK + s;
+ let i = t ? r : gK(r, o.columns), l = t ? n : gK(n, s);
+ for (let s = 0; s < hK; s += 1) {
+ let u = (l * o.columns + i) * hK + s;
if (t && u >= e) continue;
- let d = vK(r, n, s);
- gK(d, a) && c.push({
+ let d = yK(r, n, s);
+ _K(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -53182,7 +53193,7 @@ function R_e(e, t, n, r) {
}
return c;
}
-var z_e = class {
+var V_e = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -53194,7 +53205,7 @@ var z_e = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : bK(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : xK(t, !1, e);
return r ? {
...r,
index: n
@@ -53224,7 +53235,7 @@ var z_e = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * fK,
+ x: (e + 2) * pK,
y: 0
};
}
@@ -53237,7 +53248,7 @@ var z_e = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / fK)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / pK)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
}, wK = [
@@ -53255,7 +53266,7 @@ var z_e = class {
"dur_max",
"region"
];
-function B_e(e = {}) {
+function H_e(e = {}) {
return wK.some((t) => !!e[t]);
}
// src/react/video-wall/use-wall-camera.ts
@@ -53264,7 +53275,7 @@ var TK = {
y: 16,
scale: 1
};
-function V_e(e, t, n = TK, r = !1) {
+function U_e(e, t, n = TK, r = !1) {
let i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)({
width: 0,
height: 0
@@ -53284,7 +53295,7 @@ function V_e(e, t, n = TK, r = !1) {
let f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useRef)(!1), h = (0, P.useRef)(null), g = (0, P.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
}, []), _ = (0, P.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = L_e(e, o.current, CK(r), c && !f && !n);
+ let { count: r, finite: c, focused: f } = d.current, p = z_e(e, o.current, R_e(r), c && !f && !n);
s.current = p;
let m = window.devicePixelRatio || 1;
a.current && (a.current.style.transform = `translate3d(${Math.round(p.x * m) / m}px, ${Math.round(p.y * m) / m}px, 0) scale(${p.scale})`), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y));
@@ -53355,7 +53366,7 @@ function V_e(e, t, n = TK, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || v() ? _(a, !0, n) : p.current = yb(0, 1, {
+ !t || v() ? _(a, !0, n) : p.current = bb(0, 1, {
duration: .42,
ease: [
.22,
@@ -53445,16 +53456,16 @@ function V_e(e, t, n = TK, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var H_e = {
+var W_e = {
type: "spring",
stiffness: 300,
damping: 34
-}, U_e = {
+}, G_e = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function W_e(e, t, n) {
+function K_e(e, t, n) {
let [r, i] = (0, P.useState)({
paused: !0,
time: 0,
@@ -53495,8 +53506,8 @@ function W_e(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function G_e({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = tb(), x = W_e(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function q_e({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
+ let b = lb(), x = K_e(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
@@ -53513,7 +53524,7 @@ function G_e({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : U_e,
+ transition: b ? { duration: 0 } : G_e,
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -53521,7 +53532,7 @@ function G_e({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...Qz(C),
+ ...Zz(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -53571,7 +53582,7 @@ function G_e({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
- ...Qz(d),
+ ...Zz(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -53676,7 +53687,7 @@ function DK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var K_e = ({ label: e, count: t }) => /* @__PURE__ */ (0, F.jsxs)("h3", {
+var J_e = ({ label: e, count: t }) => /* @__PURE__ */ (0, F.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -53685,7 +53696,7 @@ var K_e = ({ label: e, count: t }) => /* @__PURE__ */ (0, F.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function q_e({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function Y_e({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
@@ -53699,14 +53710,14 @@ function q_e({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? pN(e.part_label) : "",
+ e.part_label ? fN(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, F.jsx)(nG, { artwork: wo(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, F.jsx)(rG, { artwork: wo(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, F.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, F.jsx)("span", { children: [
e.edition_label,
- e.part_label ? pN(e.part_label) : "",
+ e.part_label ? fN(e.part_label) : "",
qn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -53714,7 +53725,7 @@ function q_e({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function J_e(e = `${location.pathname}${location.search}`, t = {}) {
+function X_e(e = `${location.pathname}${location.search}`, t = {}) {
let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {
performers: "performer",
creators: "creator",
@@ -53735,8 +53746,8 @@ function OK(e = `${location.pathname}${location.search}`) {
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
function kK() {
- let e = new URLSearchParams(cH.navigation.location.search).get("returnTo") || "/";
- cH.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+ let e = new URLSearchParams(sH.navigation.location.search).get("returnTo") || "/";
+ sH.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
var AK = /* @__PURE__ */ new Map(), jK = (0, P.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
@@ -53752,7 +53763,7 @@ var AK = /* @__PURE__ */ new Map(), jK = (0, P.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, F.jsx)(nG, {
+ children: /* @__PURE__ */ (0, F.jsx)(rG, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && El(e, r);
@@ -53760,31 +53771,31 @@ var AK = /* @__PURE__ */ new Map(), jK = (0, P.memo)(function({ item: e, image:
})
});
});
-function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
+function Z_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, P.useState)(() => {
let e = AK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, P.useState)(() => m?.exploration || new z_e()), g = (0, P.useRef)(!1), [_, v] = (0, P.useState)(null), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = (0, P.useRef)(null), S = (0, P.useRef)(null), C = (0, P.useRef)(null), [w, T] = (0, P.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, P.useState)(m?.selectedKey || ""), [O, k] = (0, P.useState)(m?.sourceId || null), [A, j] = (0, P.useState)(!1), M = w?.edition_group ? {
+ }), [h] = (0, P.useState)(() => m?.exploration || new V_e()), g = (0, P.useRef)(!1), [_, v] = (0, P.useState)(null), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = (0, P.useRef)(null), S = (0, P.useRef)(null), C = (0, P.useRef)(null), [w, T] = (0, P.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, P.useState)(m?.selectedKey || ""), [O, k] = (0, P.useState)(m?.sourceId || null), [A, j] = (0, P.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Pt({
- queryKey: KM(M || {
+ queryKey: GM(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => tN(M, {
+ queryFn: ({ signal: e }) => eN(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), te = M ? ee.data : void 0, ne = te?.items.find((e) => e.id === iN(te, O || w?.id || null)) || w, N = V_e(e.length, t && !!e.length, m?.camera || {
+ }), te = M ? ee.data : void 0, ne = te?.items.find((e) => e.id === rN(te, O || w?.id || null)) || w, N = U_e(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), re = tb(), [ie, ae] = (0, P.useState)(!!m);
+ }, !!w), re = lb(), [ie, ae] = (0, P.useState)(!!m);
(0, P.useEffect)(() => {
if (!e.length || ie || re) return;
let t = setTimeout(() => ae(!0), 1100);
@@ -53801,7 +53812,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
(0, P.useLayoutEffect)(() => {
document.body.append(Se), N.viewport.current?.focus({ preventScroll: !0 });
}, [Se]), (0, P.useEffect)(() => () => Se.remove(), [Se]);
- let [Ce, we] = (0, P.useState)(() => kV(cH.navigation.location.pathname)), [Te, Ee] = (0, P.useState)(m?.image || d), De = (0, P.useRef)(null), Oe = (0, P.useRef)(p), ke = (0, P.useRef)(!!e.length);
+ let [Ce, we] = (0, P.useState)(() => OV(sH.navigation.location.pathname)), [Te, Ee] = (0, P.useState)(m?.image || d), De = (0, P.useRef)(null), Oe = (0, P.useRef)(p), ke = (0, P.useRef)(!!e.length);
ke.current = !!e.length;
let Ae = (0, P.useRef)({
selectedId: w?.id || null,
@@ -53825,10 +53836,10 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), AK.size > 8 && AK.delete(AK.keys().next().value));
};
(0, P.useLayoutEffect)(je);
- let Me = R_e(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, N.view.camera, N.view.size), Ne = i ? Me.map((e) => ({
+ let Me = B_e(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, N.view.camera, N.view.size), Ne = i ? Me.map((e) => ({
...e,
index: -1
- })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? bK(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? SK(e.length, t, Pe) : /* @__PURE__ */ new Map();
+ })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? xK(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? CK(e.length, t, Pe) : /* @__PURE__ */ new Map();
Pe && !Ne.some((e) => e.key === Pe.key) && Ne.push(Pe);
let Ie = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, ce(null), fe(!1);
@@ -53845,8 +53856,8 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t,
p,
i
- ]), (0, P.useEffect)(() => cH.listen((e) => {
- let t = kV(e.location.pathname);
+ ]), (0, P.useEffect)(() => sH.listen((e) => {
+ let t = OV(e.location.pathname);
t && (C.current?.abort(), S.current?.(!0), S.current = null, ce(null), fe(!1)), we(t);
}), []), (0, P.useEffect)(() => () => {
C.current?.abort(), S.current?.(!0), je();
@@ -53867,7 +53878,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Ie(!1), De.current = {
key: r.key,
id: n.id
- }, me(""), ue(null), T(n), D(r.key), k(null), j(!1), xe(!1), N.reveal(SK(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, me(""), ue(null), T(n), D(r.key), k(null), j(!1), xe(!1), N.reveal(CK(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, ze = () => {
ne && y.current && (je(), Ie(!0), l.wallDetails?.(ne, y.current.querySelector("[data-wall-focus]") || y.current));
}, Be = async (e = ne) => {
@@ -53889,7 +53900,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && fe(!1);
}
}, Ve = () => {
- let e = aN(te || null, se || 0);
+ let e = iN(te || null, se || 0);
e && (k(e.id), Be(e));
};
(0, P.useEffect)(() => {
@@ -53911,7 +53922,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = N.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (N.view.size.width / 2 - r.x) / r.scale,
y: (N.view.size.height / 2 - r.y) / r.scale
- }, o = t ? xK(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? SK(e.length, i) : h.nearest(e.length, i, a);
o && (Re(n, o), ue(n.id));
}, Ge = async () => {
if (!(r || g.current)) {
@@ -54040,7 +54051,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Xe.code ? /* @__PURE__ */ (0, F.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,
/* @__PURE__ */ (0, F.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),
- te ? /* @__PURE__ */ (0, F.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? pN(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ te ? /* @__PURE__ */ (0, F.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? fN(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, F.jsx)("button", {
@@ -54057,7 +54068,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
pe || M && ee.error && !te ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, F.jsx)(qz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: pe || bn(ee.error)
}), ee.error && !te ? /* @__PURE__ */ (0, F.jsx)(q, {
@@ -54067,7 +54078,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, F.jsx)(G_e, {
+ /* @__PURE__ */ (0, F.jsx)(q_e, {
item: Xe,
playing: se,
frame: b,
@@ -54089,7 +54100,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ve,
error: me
}),
- A ? /* @__PURE__ */ (0, F.jsx)(q_e, {
+ A ? /* @__PURE__ */ (0, F.jsx)(Y_e, {
items: He,
activeId: Xe.id,
kind: te?.kind || "wall",
@@ -54131,7 +54142,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, F.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
- onClick: () => cH.push(OK()),
+ onClick: () => sH.push(OK()),
children: "清除筛选"
})]
}) : null,
@@ -54143,7 +54154,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
onSubmit: (e) => {
e.preventDefault();
let t = new URLSearchParams(location.search), n = String(new FormData(e.currentTarget).get("q") || "").trim();
- n ? t.set("q", n) : t.delete("q"), je(), cH.push(`/wall?${t}`), xe(!1);
+ n ? t.set("q", n) : t.delete("q"), je(), sH.push(`/wall?${t}`), xe(!1);
},
children: [/* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
@@ -54157,18 +54168,18 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, F.jsxs)(KU, {
+ /* @__PURE__ */ (0, F.jsxs)(GU, {
"aria-label": "播放墙图片",
value: Te,
onChange: Ee,
- className: qU,
- children: [/* @__PURE__ */ (0, F.jsx)(IR, {
+ className: KU,
+ children: [/* @__PURE__ */ (0, F.jsx)(FR, {
value: "cover",
- className: JU,
+ className: qU,
children: "封面"
- }), /* @__PURE__ */ (0, F.jsx)(IR, {
+ }), /* @__PURE__ */ (0, F.jsx)(FR, {
value: "thumbnail",
- className: JU,
+ className: qU,
children: "缩略图"
})]
}),
@@ -54261,7 +54272,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: oe && !re && !r && ie ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: re ? { duration: 0 } : {
- layout: H_e,
+ layout: W_e,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -54332,7 +54343,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, F.jsx)(qz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, F.jsx)(q, {
@@ -54359,7 +54370,7 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}) : null,
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, F.jsx)(PW, {
+ children: /* @__PURE__ */ (0, F.jsx)(FW, {
busy: r,
onPress: () => void qe()
})
@@ -54369,20 +54380,20 @@ function Y_e({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, F.jsxs)(q, {
size: "small",
variant: "secondary",
- ...Qz(r),
+ ...Zz(r),
onClick: () => void Ge(),
children: [r ? /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: zs() } }) : null, "载入更多"]
})
}) : null,
he ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, F.jsx)(qz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: he
}), /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
- ...Qz(r),
+ ...Zz(r),
onClick: () => void Ge(),
children: "立即重试"
})]
@@ -54424,7 +54435,7 @@ var MK = [
"jav",
"thumb"
];
-function X_e(e = typeof location > "u" ? "/" : location.href) {
+function Q_e(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
...MK,
@@ -54434,7 +54445,7 @@ function X_e(e = typeof location > "u" ? "/" : location.href) {
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function Z_e(e, t) {
+async function $_e(e, t) {
let n = new URLSearchParams();
for (let t of MK) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
@@ -54449,7 +54460,7 @@ async function Z_e(e, t) {
}
function NK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Us("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(X_e()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Us("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Q_e()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -54467,18 +54478,18 @@ function NK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Us("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Q_e({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+function eve({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
return e ? r || NK() : t ? Us("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Us("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${OK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
function PK({ label: e, maintenance: t = !1, children: n }) {
- let r = HH("hover");
+ let r = VH("hover");
return /* @__PURE__ */ (0, F.jsx)("div", {
ref: r,
role: "group",
"aria-label": e,
"data-processing-maintenance": t || void 0,
- className: sF("flex flex-col gap-1", t && "mt-2 rounded-lg bg-background-secondary-default p-1 pt-3"),
+ className: IF("flex flex-col gap-1", t && "mt-2 rounded-lg bg-background-secondary-default p-1 pt-3"),
children: n
});
}
@@ -54488,7 +54499,7 @@ function FK({ option: e, metadataOnly: t, onRun: n }) {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: sF(uV, i ? "cursor-not-allowed opacity-50" : dV, "text-body-2-medium"),
+ className: IF(lV, i ? "cursor-not-allowed opacity-50" : uV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -54499,12 +54510,12 @@ function FK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function $_e({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function tve({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, P.useState)(t), [s, c] = (0, P.useState)(), [l, u] = (0, P.useState)("");
(0, P.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await sge(e, t.signal, a);
+ let o = await uge(e, t.signal, a);
if (!o.traffic) throw Error("服务端未提供流量预估");
if (t.signal.aborted) return;
c(o.traffic), n.confirmButton.disabled = !1, o.traffic.inventory?.token && (r = setTimeout(() => {
@@ -54529,7 +54540,7 @@ function $_e({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, F.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, F.jsx)(YH, {
+ children: /* @__PURE__ */ (0, F.jsx)(JH, {
value: a,
busy: i,
onChange: (e) => {
@@ -54537,7 +54548,7 @@ function $_e({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, F.jsx)(yU, {
+ s ? /* @__PURE__ */ (0, F.jsx)(vU, {
traffic: s,
initial: !0
}) : null,
@@ -54628,7 +54639,7 @@ function IK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
});
};
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- c ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)($_e, {
+ c ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(tve, {
command: c.command,
dialog: c.dialog,
speed: r,
@@ -54637,11 +54648,11 @@ function IK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
u.current = e;
}
}), c.host) : null,
- c ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(zH, {
+ c ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(RH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: Sz,
+ trailingIcon: xz,
disabled: e,
onClick: (e) => {
c.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : c.dialog.close();
@@ -54653,30 +54664,30 @@ function IK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, F.jsx)(q, {
- ...Qz(e),
+ ...Zz(e),
onClick: () => g(p.command),
children: p.label
}), /* @__PURE__ */ (0, F.jsx)(q, {
ref: o,
iconOnly: !0,
- leadingIcon: xz,
+ leadingIcon: bz,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": d,
- ...Qz(e),
+ ...Zz(e),
onClick: () => {
e || f(!d);
}
})]
}),
- /* @__PURE__ */ (0, F.jsx)(hR, {
+ /* @__PURE__ */ (0, F.jsx)(mR, {
triggerRef: o,
isOpen: d,
onOpenChange: f,
placement: "bottom end",
offset: 4,
- className: lV,
- children: /* @__PURE__ */ (0, F.jsxs)(OR, {
+ className: cV,
+ children: /* @__PURE__ */ (0, F.jsxs)(DR, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
children: [t ? /* @__PURE__ */ (0, F.jsxs)(PK, {
@@ -54716,40 +54727,40 @@ function LK(e, t) {
return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !wo(e, "small", !1, t).html).map((e) => e.id))];
}
function RK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, F.jsx)(eve, {
+ return e.length ? /* @__PURE__ */ (0, F.jsx)(nve, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function eve({ assetIds: e, onComplete: t, className: n }) {
+function nve({ assetIds: e, onComplete: t, className: n }) {
let r = Pt({
- queryKey: CH,
- queryFn: ({ signal: e }) => jH(e),
- refetchInterval: (e) => PH(e.state.data, !0)
+ queryKey: SH,
+ queryFn: ({ signal: e }) => AH(e),
+ refetchInterval: (e) => NH(e.state.data, !0)
}), [i, a] = (0, P.useState)(null), [o, s] = (0, P.useState)(""), c = (0, P.useRef)(null), l = Ft({
- mutationFn: (t) => V(SH, {
+ mutationFn: (t) => V(xH, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(CH, e), H.invalidateQueries({ queryKey: CH });
+ a(e.job_id || null), H.setQueryData(SH, e), H.invalidateQueries({ queryKey: SH });
}
}), u = r.data;
(0, P.useEffect)(() => {
- u && i && u.job_id === i && !EH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ u && i && u.job_id === i && !TH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
]);
- let d = l.isPending || EH(u), f = l.error ? cr(l.error) : r.error ? NH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${EH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || TH(u), f = l.error ? cr(l.error) : r.error ? MH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${TH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, F.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
- className: sF("@container", n),
- children: /* @__PURE__ */ (0, F.jsxs)(qz, {
+ className: IF("@container", n),
+ children: /* @__PURE__ */ (0, F.jsxs)(Kz, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
@@ -54764,10 +54775,10 @@ function eve({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, F.jsx)(zH, {
+ /* @__PURE__ */ (0, F.jsx)(RH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: Sz,
+ trailingIcon: xz,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -54775,22 +54786,22 @@ function eve({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function tve(e) {
- return nve(e) || typeof e == "function" || rve(e);
+function rve(e) {
+ return ive(e) || typeof e == "function" || ave(e);
}
-function nve(e) {
+function ive(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function rve(e) {
+function ave(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
function zK(e, t) {
- return e == null ? null : tve(e) ? /* @__PURE__ */ P.createElement(e, t) : e;
+ return e == null ? null : rve(e) ? /* @__PURE__ */ P.createElement(e, t) : e;
}
-function ive(e) {
+function ove(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
return r.getIsAggregated?.() ? zK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : zK(n.cell, t.getContext());
@@ -54799,7 +54810,7 @@ function ive(e) {
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function ave({ update: e, notify: t, unwatched: n }) {
+function sve({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -54916,7 +54927,7 @@ function ave({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function ove(e, t, n) {
+function cve(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -54924,7 +54935,7 @@ function ove(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var BK = [], VK = 0, { link: HK, unlink: sve, propagate: cve, checkDirty: UK, shallowPropagate: WK } = /* @__PURE__ */ ave({
+var BK = [], VK = 0, { link: HK, unlink: lve, propagate: uve, checkDirty: UK, shallowPropagate: WK } = /* @__PURE__ */ sve({
update(e) {
return e._update();
},
@@ -54935,7 +54946,7 @@ var BK = [], VK = 0, { link: HK, unlink: sve, propagate: cve, checkDirty: UK, sh
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, YK(e));
}
}), GK = 0, KK = 0, qK, JK = 0;
-function lve(e) {
+function dve(e) {
try {
++JK, e();
} finally {
@@ -54944,7 +54955,7 @@ function lve(e) {
}
function YK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = sve(n, e);
+ for (; n !== void 0;) n = lve(n, e);
}
function XK() {
if (!(JK > 0)) {
@@ -54955,7 +54966,7 @@ function XK() {
GK = 0, KK = 0;
}
}
-function uve(e, t) {
+function fve(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -54967,7 +54978,7 @@ function uve(e, t) {
return qK !== void 0 && HK(i, qK, VK), i._snapshot;
},
subscribe(e) {
- let t = ove(e), n = { current: !1 }, r = dve(() => {
+ let t = cve(e), n = { current: !1 }, r = pve(() => {
i.get(), n.current ? (qK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
@@ -54999,11 +55010,11 @@ function uve(e, t) {
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (cve(e), WK(e), XK());
+ e !== void 0 && (uve(e), WK(e), XK());
}
}, i;
}
-function dve(e) {
+function pve(e) {
let t = () => {
let t = qK;
qK = n, ++VK, n.depsTail = void 0, n.flags = 6;
@@ -55052,8 +55063,8 @@ function QK(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var fve = /* @__PURE__ */ o(((e) => {
- var t = A(), n = fS();
+var mve = /* @__PURE__ */ o(((e) => {
+ var t = A(), n = pS();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -55098,32 +55109,32 @@ var fve = /* @__PURE__ */ o(((e) => {
}, [p]), l(p), p;
};
})), $K = /* @__PURE__ */ o(((e, t) => {
- t.exports = fve();
-})), pve = $K();
-function mve(e, t) {
+ t.exports = mve();
+})), hve = $K();
+function gve(e, t) {
return e === t;
}
function eq(e, t = (e) => e, n) {
- let r = n?.compare ?? mve, i = (0, P.useCallback)((t) => {
+ let r = n?.compare ?? gve, i = (0, P.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, P.useCallback)(() => e.get(), [e]);
- return (0, pve.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, hve.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function hve(e) {
+function _ve(e) {
let t = eq(e.source, e.selector, { compare: ZK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function gve(e) {
+function vve(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
} }), "set" in e && (t.setState = e.set.bind(e)), t;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function _ve(e) {
+function yve(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -55153,7 +55164,7 @@ function _ve(e) {
}
};
}
-function vve(e, t = Object.is) {
+function bve(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -55166,10 +55177,10 @@ function vve(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function yve() {
- return _ve({
- createAtom: uve,
- batch: lve
+function xve() {
+ return yve({
+ createAtom: fve,
+ batch: dve
});
}
// node_modules/@tanstack/table-core/dist/utils.js
@@ -55223,9 +55234,9 @@ function sq(e) {
function cq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var bve = 3;
-function xve(e, t) {
- return lq(e, t, bve);
+var Sve = 3;
+function Cve(e, t) {
+ return lq(e, t, Sve);
}
function lq(e, t, n) {
if (Object.is(e, t)) return !0;
@@ -55239,17 +55250,17 @@ function lq(e, t, n) {
}
return !0;
}
-function uq(e, t, n, r = xve) {
+function uq(e, t, n, r = Cve) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
let t = tq(n, e);
return r(e, t) ? e : t;
});
}
-function Sve(e) {
+function wve(e) {
return e instanceof Function;
}
-function Cve(e, t) {
+function Tve(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -55259,7 +55270,7 @@ function Cve(e, t) {
};
return r(e), n;
}
-var wve = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var Eve = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -55284,7 +55295,7 @@ function fq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ..
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return wve({
+ return Eve({
...a,
...o
});
@@ -55337,13 +55348,13 @@ function gq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function Tve(e) {
+function Dve(e) {
return e.row.getValue(e.column.id);
}
-function Eve(e) {
+function Ove(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function Dve(e) {
+function kve(e) {
return {
table: e.table,
column: e.column,
@@ -55354,18 +55365,18 @@ function Dve(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var Ove = { assignCellPrototype: (e, t) => {
+var Ave = { assignCellPrototype: (e, t) => {
hq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => Tve(e) },
- cell_renderValue: { fn: (e) => Eve(e) },
+ cell_getValue: { fn: (e) => Dve(e) },
+ cell_renderValue: { fn: (e) => Ove(e) },
cell_getContext: {
- fn: (e) => Dve(e),
+ fn: (e) => kve(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function kve(e) {
+function jve(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -55373,7 +55384,7 @@ function kve(e) {
}
return e._columnPrototype;
}
-function Ave(e, t, n, r) {
+function Mve(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -55393,7 +55404,7 @@ function Ave(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = kve(e), u = Object.create(l);
+ let l = jve(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
@@ -55403,7 +55414,7 @@ function Ave(e, t, n, r) {
function _q(e) {
return e.getIsVisible?.() ?? !0;
}
-function jve(e) {
+function Nve(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
function vq(e, t) {
@@ -55416,30 +55427,30 @@ function yq(e, t, n, r) {
function bq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function Mve(e) {
+function Pve(e) {
e.autoResetExpanded?.();
}
function xq(e) {
e.autoResetPageIndex?.();
}
-function Nve(e) {
+function Fve(e) {
e.autoResetSorting?.();
}
-function Pve(e) {
+function Ive(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function Fve(e) {
+function Lve(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function Ive(e) {
+function Rve(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
return vq(e.table, t);
}
return [e];
}
-function Lve(e) {
+function zve(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -55454,18 +55465,18 @@ function Sq(e, t, n, r = 0) {
let i = Array(t.length);
for (let a = 0; a < t.length; a++) {
if (!(a in t)) continue;
- let o = t[a], s = Ave(e, o, r, n), c = o;
+ let o = t[a], s = Mve(e, o, r, n), c = o;
s.columns = c.columns ? Sq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function Rve(e) {
+function Bve(e) {
return Sq(e, e.options.columns);
}
-function zve(e) {
+function Vve(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function Bve(e) {
+function Hve(e) {
let t = iq(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -55473,10 +55484,10 @@ function Bve(e) {
}
return t;
}
-function Vve(e) {
+function Uve(e) {
return vq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function Hve(e) {
+function Wve(e) {
let t = iq(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -55484,19 +55495,19 @@ function Hve(e) {
}
return t;
}
-function Uve(e, t) {
+function Gve(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var Wve = {
+var Kve = {
assignColumnPrototype: (e, t) => {
hq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => Fve(e),
+ fn: (e) => Lve(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => Ive(e),
+ fn: (e) => Rve(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -55509,23 +55520,23 @@ var Wve = {
constructTableAPIs: (e) => {
mq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => Lve(e),
+ fn: () => zve(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => Rve(e),
+ fn: () => Bve(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => zve(e),
+ fn: () => Vve(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => Bve(e),
+ fn: () => Hve(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => Vve(e),
+ fn: () => Uve(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -55534,15 +55545,15 @@ var Wve = {
]
},
table_getAllLeafColumnsById: {
- fn: () => Hve(e),
+ fn: () => Wve(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => Uve(e, t) }
+ table_getColumn: { fn: (t) => Gve(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function Gve(e) {
+function qve(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -55551,7 +55562,7 @@ function Gve(e) {
return e._headerPrototype;
}
function Cq(e, t, n) {
- let r = Gve(e), i = Object.create(r);
+ let r = qve(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
@@ -55566,14 +55577,14 @@ function wq(e, t = 1) {
}
return n;
}
-function Kve(e, t) {
+function Jve(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function qve(e, t, n, r) {
+function Yve(e, t, n, r) {
let i = e ?? "";
return t && (i = i ? `${i}_${t}` : String(t)), n && (i = i ? `${i}_${n}` : n), r && (i = i ? `${i}_${r}` : r), i;
}
-function Jve(e, t) {
+function Xve(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
@@ -55581,7 +55592,7 @@ function Jve(e, t) {
function Tq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: Kve(r, t),
+ id: Jve(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -55590,9 +55601,9 @@ function Tq(e, t, n, r, i, a) {
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
let e = Cq(n, u, {
- id: qve(r, t, u.id, a.id),
+ id: Yve(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(Jve(s, u)) : void 0,
+ placeholderId: d ? String(Xve(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -55622,7 +55633,7 @@ function Eq(e) {
} else n.rowSpan = 1;
}
}
-function Yve(e, t, n, r) {
+function Zve(e, t, n, r) {
let i = wq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
for (let e = 0; e < t.length; e++) e in t && (s[e] = Cq(n, t[e], {
depth: i,
@@ -55635,24 +55646,24 @@ function Dq(e, t) {
for (let n = 0; n < e.subHeaders.length; n++) Dq(e.subHeaders[n], t);
t.push(e);
}
-function Xve(e) {
+function Qve(e) {
let t = [];
return Dq(e, t), t;
}
-function Zve(e) {
+function $ve(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function Qve(e) {
- return Yve(e.getAllColumns(), yq(e, jve(e), (e) => e.id), e);
+function eye(e) {
+ return Zve(e.getAllColumns(), yq(e, Nve(e), (e) => e.id), e);
}
-function $ve(e) {
+function tye(e) {
return [...e.getHeaderGroups()].reverse();
}
-function eye(e) {
+function nye(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -55660,7 +55671,7 @@ function eye(e) {
}
return n;
}
-function tye(e) {
+function rye(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -55669,15 +55680,15 @@ function tye(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var nye = {
+var iye = {
assignHeaderPrototype: (e, t) => {
hq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => Xve(e),
+ fn: (e) => Qve(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => Zve(e),
+ fn: (e) => $ve(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
@@ -55685,7 +55696,7 @@ var nye = {
constructTableAPIs: (e) => {
mq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => Qve(e),
+ fn: () => eye(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -55696,22 +55707,22 @@ var nye = {
]
},
table_getFooterGroups: {
- fn: () => $ve(e),
+ fn: () => tye(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => eye(e),
+ fn: () => nye(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => tye(e),
+ fn: () => rye(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function rye(e) {
+function aye(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -55719,35 +55730,35 @@ function rye(e) {
}
return e._rowPrototype;
}
-var iye = (e, t, n, r, i, a, o) => {
- let s = rye(e), c = Object.create(s);
+var oye = (e, t, n, r, i, a, o) => {
+ let s = aye(e), c = Object.create(s);
c._displayIndexCache = -1, c._uniqueValuesCache = iq(), c._valuesCache = iq(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
let l = e._rowInstanceInitFns;
for (let e = 0; e < l.length; e++) l[e](c);
return c;
};
// node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function aye() {
+function sye() {
return (e) => fq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => oye(e, e.options.data),
+ fn: () => cye(e, e.options.data),
onAfterUpdate: dq(() => {
- Mve(e), xq(e), Nve(e), Pve(e);
+ Pve(e), xq(e), Fve(e), Ive(e);
})
});
}
function Oq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = iye(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ let s = n[o], c = oye(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = Oq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function oye(e, t) {
+function cye(e, t) {
let n = {
rows: [],
flatRows: [],
@@ -55756,61 +55767,61 @@ function oye(e, t) {
return n.rows = Oq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function sye(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? aye()(e)), e._rowModels.coreRowModel();
+function lye(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? sye()(e)), e._rowModels.coreRowModel();
}
-function cye(e) {
+function uye(e) {
return e.getCoreRowModel();
}
-function lye(e) {
+function dye(e) {
return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
-function uye(e) {
+function fye(e) {
return e.getFilteredRowModel();
}
-function dye(e) {
+function pye(e) {
return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
-function fye(e) {
+function mye(e) {
return e.getGroupedRowModel();
}
-function pye(e) {
+function hye(e) {
return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
-function mye(e) {
+function gye(e) {
return e.getSortedRowModel();
}
-function hye(e) {
+function _ye(e) {
return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
-function gye(e) {
+function vye(e) {
return e.getExpandedRowModel();
}
-function _ye(e) {
+function yye(e) {
return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
}
-function vye(e) {
+function bye(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var yye = { constructTableAPIs: (e) => {
+var xye = { constructTableAPIs: (e) => {
mq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => sye(e) },
- table_getPreFilteredRowModel: { fn: () => cye(e) },
- table_getFilteredRowModel: { fn: () => lye(e) },
- table_getPreGroupedRowModel: { fn: () => uye(e) },
- table_getGroupedRowModel: { fn: () => dye(e) },
- table_getPreSortedRowModel: { fn: () => fye(e) },
- table_getSortedRowModel: { fn: () => pye(e) },
- table_getPreExpandedRowModel: { fn: () => mye(e) },
- table_getExpandedRowModel: { fn: () => hye(e) },
- table_getPrePaginatedRowModel: { fn: () => gye(e) },
- table_getPaginatedRowModel: { fn: () => _ye(e) },
- table_getRowModel: { fn: () => vye(e) }
+ table_getCoreRowModel: { fn: () => lye(e) },
+ table_getPreFilteredRowModel: { fn: () => uye(e) },
+ table_getFilteredRowModel: { fn: () => dye(e) },
+ table_getPreGroupedRowModel: { fn: () => fye(e) },
+ table_getGroupedRowModel: { fn: () => pye(e) },
+ table_getPreSortedRowModel: { fn: () => mye(e) },
+ table_getSortedRowModel: { fn: () => hye(e) },
+ table_getPreExpandedRowModel: { fn: () => gye(e) },
+ table_getExpandedRowModel: { fn: () => _ye(e) },
+ table_getPrePaginatedRowModel: { fn: () => vye(e) },
+ table_getPaginatedRowModel: { fn: () => yye(e) },
+ table_getRowModel: { fn: () => bye(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function bye(e) {
+function Sye(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -55818,48 +55829,48 @@ function bye(e) {
}
return e._cellPrototype;
}
-function xye(e, t, n) {
- let r = bye(n), i = Object.create(r);
+function Cye(e, t, n) {
+ let r = Sye(n), i = Object.create(r);
i.column = e, i.id = `${t.id}_${e.id}`, i.row = t;
let a = n._cellInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function Sye(e) {
+function wye(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function Cye(e) {
+function Tye(e) {
let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? bq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function wye(e, t) {
+function Eye(e, t) {
if (aq(e._valuesCache, t)) return e._valuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
}
-function Tye(e, t) {
+function Dye(e, t) {
if (aq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
}
-function Eye(e, t) {
+function Oye(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function Dye(e) {
- return Cve(e.subRows, (e) => e.subRows);
+function kye(e) {
+ return Tve(e.subRows, (e) => e.subRows);
}
-function Oye(e) {
+function Aye(e) {
let t = e.getCoreRowModel().flatRows, n = 0;
for (let e = 0; e < t.length; e++) n = Math.max(n, t[e].depth);
return n;
}
-function kye(e) {
+function jye(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function Aye(e) {
+function Mye(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -55868,17 +55879,17 @@ function Aye(e) {
}
return t.reverse();
}
-function jye(e) {
+function Nye(e) {
let t = e.table.getAllLeafColumns(), n = e._cellsCache;
n ||= e._cellsCache = /* @__PURE__ */ new WeakMap();
let r = Array(t.length);
for (let i = 0; i < t.length; i++) {
let a = t[i], o = n.get(a);
- o || (o = xye(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = Cye(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function Mye(e) {
+function Pye(e) {
let t = iq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -55886,52 +55897,52 @@ function Mye(e) {
}
return t;
}
-function Nye(e, t, n, r) {
+function Fye(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function Pye(e, t, n) {
+function Iye(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
-var Fye = {
+var Lye = {
assignRowPrototype: (e, t) => {
hq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => Sye(e) },
+ row_getDisplayIndex: { fn: (e) => wye(e) },
row_getAllCellsByColumnId: {
- fn: (e) => Mye(e),
+ fn: (e) => Pye(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => jye(e),
+ fn: (e) => Nye(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => Dye(e),
+ fn: (e) => kye(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => kye(e) },
- row_getParentRows: { fn: (e) => Aye(e) },
- row_getUniqueValues: { fn: (e, t) => Tye(e, t) },
- row_getValue: { fn: (e, t) => wye(e, t) },
- row_renderValue: { fn: (e, t) => Eye(e, t) }
+ row_getParentRow: { fn: (e) => jye(e) },
+ row_getParentRows: { fn: (e) => Mye(e) },
+ row_getUniqueValues: { fn: (e, t) => Dye(e, t) },
+ row_getValue: { fn: (e, t) => Eye(e, t) },
+ row_renderValue: { fn: (e, t) => Oye(e, t) }
});
},
constructTableAPIs: (e) => {
mq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => Cye(e),
+ fn: () => Tye(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => Nye(t, e, n, r) },
- table_getRow: { fn: (t, n) => Pye(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => Fye(t, e, n, r) },
+ table_getRow: { fn: (t, n) => Iye(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => Oye(e),
+ fn: () => Aye(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
@@ -55954,7 +55965,7 @@ function Aq(e, t, n = (e, t) => e === t) {
kq(e, t, n), e._reactivity.commit?.();
});
}
-function Iye(e) {
+function Rye(e) {
let t = nq(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
@@ -55966,7 +55977,7 @@ function Iye(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function Lye(e, t) {
+function zye(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -55999,19 +56010,19 @@ function Lye(e, t) {
});
}
function jq(e, t, n) {
- let r = Lye(e, tq(t, e.options));
+ let r = zye(e, tq(t, e.options));
e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Aq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var Rye = {
- coreCellsFeature: Ove,
- coreColumnsFeature: Wve,
- coreHeadersFeature: nye,
- coreRowModelsFeature: yye,
- coreRowsFeature: Fye,
+var Bye = {
+ coreCellsFeature: Ave,
+ coreColumnsFeature: Kve,
+ coreHeadersFeature: iye,
+ coreRowModelsFeature: xye,
+ coreRowsFeature: Lye,
coreTablesFeature: { constructTableAPIs: (e) => {
mq("coreTablesFeature", e, {
- table_reset: { fn: () => Iye(e) },
+ table_reset: { fn: () => Rye(e) },
table_setOptions: { fn: (t) => jq(e, t) }
});
} }
@@ -56036,17 +56047,17 @@ function Nq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function zye(e, t = {}) {
+function Vye(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
}), nq(t);
}
-function Bye(e) {
+function Hye(e) {
let t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: i, expandedRowModel: a, facetedMinMaxValues: o, facetedRowModel: s, facetedUniqueValues: c, filterFns: l, filterMeta: u, filteredRowModel: d, groupedRowModel: f, paginatedRowModel: p, sortFns: m, sortedRowModel: h, tableMeta: g, ..._ } = e.features, v = {
_cellInstanceInitFns: [],
_columnInstanceInitFns: [],
_features: {
- ...Rye,
+ ...Bye,
..._
},
_headerGroupInstanceInitFns: [],
@@ -56084,7 +56095,7 @@ function Bye(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = zye(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = Vye(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -56099,7 +56110,7 @@ function Bye(e) {
return r;
}, { debugName: `table/atoms/${n}` });
}
- kq(v), v.store = gve(t.createReadonlyAtom(() => {
+ kq(v), v.store = vve(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -56117,7 +56128,7 @@ function Bye(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function Vye() {
+function Uye() {
return iq();
}
function Pq(e, t) {
@@ -56139,12 +56150,12 @@ function Fq(e) {
function Iq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function Hye(e) {
+function Wye(e) {
return (t) => {
Pq(e, t.target.checked);
};
}
-function Uye(e) {
+function Gye(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
@@ -56160,16 +56171,16 @@ function Lq(e) {
}
return t;
}
-function Wye(e) {
+function Kye(e) {
return e.getAllFlatColumns().filter((e) => gq(e, "getIsVisible", Fq));
}
-function Gye(e) {
+function qye(e) {
return e.getAllLeafColumns().filter((e) => gq(e, "getIsVisible", Fq));
}
function Rq(e, t) {
uq(e, "columnVisibility", t);
}
-function Kye(e, t) {
+function Jye(e, t) {
Rq(e, t ? iq() : Object.assign(iq(), nq(e.initialState.columnVisibility ?? {})));
}
function zq(e, t) {
@@ -56184,10 +56195,10 @@ function zq(e, t) {
function Bq(e) {
return !e.getAllLeafColumns().some((e) => !gq(e, "getIsVisible", Fq));
}
-function qye(e) {
+function Yye(e) {
return e.getAllLeafColumns().some((e) => gq(e, "getIsVisible", Fq));
}
-function Jye(e) {
+function Xye(e) {
return (t) => {
zq(e, t.target.checked);
};
@@ -56195,7 +56206,7 @@ function Jye(e) {
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
var Vq = {
getInitialState: (e) => ({
- columnVisibility: Vye(),
+ columnVisibility: Uye(),
...e
}),
getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: oq("columnVisibility", e) }),
@@ -56210,14 +56221,14 @@ var Vq = {
]
},
column_getCanHide: { fn: (e) => Iq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => Hye(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => Wye(e) },
column_toggleVisibility: { fn: (e, t) => Pq(e, t) }
});
},
assignRowPrototype: (e, t) => {
hq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => Uye(e),
+ fn: (e) => Gye(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -56233,7 +56244,7 @@ var Vq = {
constructTableAPIs: (e) => {
mq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => Wye(e),
+ fn: () => Kye(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -56243,7 +56254,7 @@ var Vq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => Gye(e),
+ fn: () => qye(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -56253,11 +56264,11 @@ var Vq = {
]
},
table_setColumnVisibility: { fn: (t) => Rq(e, t) },
- table_resetColumnVisibility: { fn: (t) => Kye(e, t) },
+ table_resetColumnVisibility: { fn: (t) => Jye(e, t) },
table_toggleAllColumnsVisible: { fn: (t) => zq(e, t) },
table_getIsAllColumnsVisible: { fn: () => Bq(e) },
- table_getIsSomeColumnsVisible: { fn: () => qye(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => Jye(e) }
+ table_getIsSomeColumnsVisible: { fn: () => Yye(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => Xye(e) }
});
}
}, Hq = 0, Uq = 10;
@@ -56267,7 +56278,7 @@ function Wq() {
pageSize: Uq
};
}
-function Yye(e) {
+function Zye(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
if ((e.atoms.pagination?.get()?.pageIndex ?? Hq) === Hq) return;
qq(e, !0);
@@ -56276,7 +56287,7 @@ function Yye(e) {
function Gq(e, t) {
uq(e, "pagination", t);
}
-function Xye(e, t) {
+function Qye(e, t) {
Gq(e, t ? Wq() : nq(e.initialState.pagination ?? Wq()));
}
function Kq(e, t) {
@@ -56291,7 +56302,7 @@ function Kq(e, t) {
function qq(e, t) {
Kq(e, t ? Hq : e.initialState.pagination?.pageIndex ?? Hq);
}
-function Zye(e, t) {
+function $ye(e, t) {
Jq(e, t ? Uq : e.initialState.pagination?.pageSize ?? Uq);
}
function Jq(e, t) {
@@ -56304,31 +56315,31 @@ function Jq(e, t) {
};
});
}
-function Qye(e) {
+function ebe(e) {
let t = Yq(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function $ye(e) {
+function tbe(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function ebe(e) {
+function nbe(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? Hq, n = Yq(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function tbe(e) {
+function rbe(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? Hq, n = Yq(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function nbe(e) {
+function ibe(e) {
return Kq(e, (e) => e - 1);
}
-function rbe(e) {
+function abe(e) {
return Kq(e, (e) => e + 1);
}
-function ibe(e) {
+function obe(e) {
return Kq(e, 0);
}
-function abe(e) {
+function sbe(e) {
let t = Yq(e);
if (!(!Number.isFinite(t) || t <= 0)) return Kq(e, t - 1);
}
@@ -56353,34 +56364,34 @@ var Zq = {
getDefaultTableOptions: (e) => ({ onPaginationChange: oq("pagination", e) }),
constructTableAPIs: (e) => {
mq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => Yye(e) },
+ table_autoResetPageIndex: { fn: () => Zye(e) },
table_setPagination: { fn: (t) => Gq(e, t) },
- table_resetPagination: { fn: (t) => Xye(e, t) },
+ table_resetPagination: { fn: (t) => Qye(e, t) },
table_setPageIndex: { fn: (t) => Kq(e, t) },
table_resetPageIndex: { fn: (t) => qq(e, t) },
table_setPageSize: { fn: (t) => Jq(e, t) },
table_getPageCount: { fn: () => Yq(e) },
- table_resetPageSize: { fn: (t) => Zye(e, t) },
- table_getPageOptions: { fn: () => Qye(e) },
- table_getCanPreviousPage: { fn: () => $ye(e) },
- table_getCanNextPage: { fn: () => ebe(e) },
- table_getCanLastPage: { fn: () => tbe(e) },
- table_previousPage: { fn: () => nbe(e) },
- table_nextPage: { fn: () => rbe(e) },
- table_firstPage: { fn: () => ibe(e) },
- table_lastPage: { fn: () => abe(e) },
+ table_resetPageSize: { fn: (t) => $ye(e, t) },
+ table_getPageOptions: { fn: () => ebe(e) },
+ table_getCanPreviousPage: { fn: () => tbe(e) },
+ table_getCanNextPage: { fn: () => nbe(e) },
+ table_getCanLastPage: { fn: () => rbe(e) },
+ table_previousPage: { fn: () => ibe(e) },
+ table_nextPage: { fn: () => abe(e) },
+ table_firstPage: { fn: () => obe(e) },
+ table_lastPage: { fn: () => sbe(e) },
table_getRowCount: { fn: () => Xq(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function obe() {
+function cbe() {
return iq();
}
function Qq(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function sbe(e, t) {
+function lbe(e, t) {
e._lastSelectedRowId = null, Qq(e, t ? iq() : Object.assign(iq(), nq(e.initialState.rowSelection ?? {})));
}
function $q(e, t, n) {
@@ -56408,10 +56419,10 @@ function eJ(e, t, n) {
}), a;
});
}
-function cbe(e) {
+function ube(e) {
return e.getCoreRowModel();
}
-function lbe(e) {
+function dbe(e) {
let t = e.getCoreRowModel();
return gq(e, "getIsSomeRowsSelected", iJ) ? hJ(t, e) : {
rows: [],
@@ -56419,7 +56430,7 @@ function lbe(e) {
rowsById: iq()
};
}
-function ube(e) {
+function fbe(e) {
let t = e.getFilteredRowModel();
return gq(e, "getIsSomeRowsSelected", iJ) ? hJ(t, e) : {
rows: [],
@@ -56427,7 +56438,7 @@ function ube(e) {
rowsById: iq()
};
}
-function dbe(e) {
+function pbe(e) {
let t = e.getSortedRowModel();
return gq(e, "getIsSomeRowsSelected", iJ) ? hJ(t, e) : {
rows: [],
@@ -56458,15 +56469,15 @@ function rJ(e) {
function iJ(e) {
return gq(e, "getSelectedRowIds", tJ).length > 0;
}
-function fbe(e) {
+function mbe(e) {
return e.getPaginatedRowModel().flatRows.filter((e) => cJ(e)).some((e) => oJ(e) || gq(e, "getIsSomeSelected", sJ));
}
-function pbe(e) {
+function hbe(e) {
return (t) => {
$q(e, t.target.checked);
};
}
-function mbe(e) {
+function gbe(e) {
return (t) => {
eJ(e, t.target.checked);
};
@@ -56485,7 +56496,7 @@ function oJ(e) {
function sJ(e) {
return _J(e) === "some";
}
-function hbe(e) {
+function _be(e) {
return _J(e) === "all";
}
function cJ(e) {
@@ -56500,15 +56511,15 @@ function uJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function gbe(e, t) {
+function vbe(e, t) {
let n = cJ(e);
return (r) => {
if (!n) return;
let i = r, a = e.table, o = i.target.checked, s = a._lastSelectedRowId;
- a.options.enableRowRangeSelection !== !1 && s !== null && uJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && _be(e, s, o, t) || aJ(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && uJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && ybe(e, s, o, t) || aJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function _be(e, t, n, r) {
+function ybe(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
@@ -56603,7 +56614,7 @@ var vJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: obe(),
+ rowSelection: cbe(),
...e
}),
getDefaultTableOptions: (e) => ({
@@ -56630,7 +56641,7 @@ var vJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => hbe(e),
+ fn: (e) => _be(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -56640,26 +56651,26 @@ var vJ = {
row_getCanSelect: { fn: (e) => cJ(e) },
row_getCanSelectSubRows: { fn: (e) => lJ(e) },
row_getCanMultiSelect: { fn: (e) => uJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => gbe(e, t) }
+ row_getToggleSelectedHandler: { fn: (e, t) => vbe(e, t) }
});
},
constructTableAPIs: (e) => {
mq("rowSelectionFeature", e, {
table_setRowSelection: { fn: (t) => Qq(e, t) },
- table_resetRowSelection: { fn: (t) => sbe(e, t) },
+ table_resetRowSelection: { fn: (t) => lbe(e, t) },
table_toggleAllRowsSelected: { fn: (t, n) => $q(e, t, n) },
table_toggleAllPageRowsSelected: { fn: (t, n) => eJ(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => cbe(e) },
+ table_getPreSelectedRowModel: { fn: () => ube(e) },
table_getSelectedRowModel: {
- fn: () => lbe(e),
+ fn: () => dbe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => ube(e),
+ fn: () => fbe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => dbe(e),
+ fn: () => pbe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
@@ -56689,32 +56700,32 @@ var vJ = {
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => fbe(e),
+ fn: () => mbe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => pbe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => mbe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => hbe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => gbe(e) }
});
}
-}, vbe = /([0-9]+)/gm;
+}, bbe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function ybe(e) {
+function xbe(e) {
let t = Object.assign((e, n, r) => {
let i = e.getValue(r), a = n.getValue(r), o = t.resolveDataValue;
return o && (i = o(i), a = o(a)), t.sort(i, a, e, n, r);
}, e);
return t;
}
-var yJ = /* @__PURE__ */ ybe({ sort: (e, t) => bbe(e, t) });
-function bbe(e, t) {
+var yJ = /* @__PURE__ */ xbe({ sort: (e, t) => Sbe(e, t) });
+function Sbe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function xbe() {
+function Cbe() {
return [];
}
function bJ(e, t) {
@@ -56723,7 +56734,7 @@ function bJ(e, t) {
function xJ(e, t) {
bJ(e, t ? [] : nq(e.initialState.sorting ?? []));
}
-function Sbe(e) {
+function wbe(e) {
e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && xJ(e);
}
function SJ(e) {
@@ -56734,7 +56745,7 @@ function SJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(vbe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(bbe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -56755,7 +56766,7 @@ function CJ(e) {
}
function wJ(e) {
let t = e.table._rowModelFns.sortFns;
- return Sve(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? SJ(e) : t?.[e.columnDef.sortFn] ?? yJ;
+ return wve(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? SJ(e) : t?.[e.columnDef.sortFn] ?? yJ;
}
function TJ(e, t, n) {
let r = DJ(e, n && kJ(e)), i = t !== void 0;
@@ -56793,13 +56804,13 @@ function AJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function Cbe(e) {
+function Tbe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function wbe(e) {
+function Ebe(e) {
bJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function Tbe(e) {
+function Dbe(e) {
let t = OJ(e);
return (n) => {
t && TJ(e, void 0, kJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
@@ -56809,7 +56820,7 @@ function Tbe(e) {
var jJ = {
getInitialState(e) {
return {
- sorting: xbe(),
+ sorting: Cbe(),
...e
};
},
@@ -56837,34 +56848,34 @@ var jJ = {
column_getCanSort: { fn: (e) => OJ(e) },
column_getCanMultiSort: { fn: (e) => kJ(e) },
column_getIsSorted: { fn: (e) => AJ(e) },
- column_getSortIndex: { fn: (e) => Cbe(e) },
- column_clearSorting: { fn: (e) => wbe(e) },
- column_getToggleSortingHandler: { fn: (e) => Tbe(e) }
+ column_getSortIndex: { fn: (e) => Tbe(e) },
+ column_clearSorting: { fn: (e) => Ebe(e) },
+ column_getToggleSortingHandler: { fn: (e) => Dbe(e) }
});
},
constructTableAPIs(e) {
mq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => Sbe(e) },
+ table_autoResetSorting: { fn: () => wbe(e) },
table_setSorting: { fn: (t) => bJ(e, t) },
table_resetSorting: { fn: (t) => xJ(e, t) }
});
}
-}, Ebe = typeof window > "u" ? P.useEffect : P.useLayoutEffect;
+}, Obe = typeof window > "u" ? P.useEffect : P.useLayoutEffect;
function MJ(e, t) {
let [{ table: n, rootSource: r }] = (0, P.useState)(() => {
- let t = Bye({
+ let t = Hye({
...e,
features: {
- coreReactivityFeature: yve(),
+ coreReactivityFeature: xve(),
...e.features
}
});
- return t.Subscribe = ((e) => hve({
+ return t.Subscribe = ((e) => _ve({
...e,
source: e.source ?? t.store
- })), t.FlexRender = ive, {
+ })), t.FlexRender = ove, {
table: t,
- rootSource: vve(t.store, ZK)
+ rootSource: bve(t.store, ZK)
};
}), i = n;
jq(i, (t) => ({
@@ -56872,7 +56883,7 @@ function MJ(e, t) {
...e
}), { syncExternalState: !1 });
let a = i.options.state, o = r.get(), s = eq(r, t, { compare: ZK });
- return Ebe(() => {
+ return Obe(() => {
r.markCommitted(o), Aq(i, a ?? null, ZK);
}), (0, P.useMemo)(() => ({
...n,
@@ -56887,16 +56898,16 @@ function MJ(e, t) {
// src/react/boardui/components/base/table/table.tsx
function NJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
- className: sF("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, F.jsx)(Ofe, {
+ className: IF("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, F.jsx)(jfe, {
ref: r,
...i,
- className: sF("bui-table", e === "sm" && "bui-table-sm", t)
+ className: IF("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var PJ = "peach.catalog-column-widths.v1", FJ = "peach.catalog-column-visibility.v1", Dbe = {
+var PJ = "peach.catalog-column-widths.v1", FJ = "peach.catalog-column-visibility.v1", kbe = {
select: {
width: 48,
min: 48,
@@ -56962,13 +56973,13 @@ var PJ = "peach.catalog-column-widths.v1", FJ = "peach.catalog-column-visibility
min: 144,
max: 560
}
-}, Obe = {
+}, Abe = {
code: !1,
o: !1,
new: !1,
played: !1,
release: !1
-}, kbe = {
+}, jbe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -56998,11 +57009,11 @@ var PJ = "peach.catalog-column-widths.v1", FJ = "peach.catalog-column-visibility
"release"
].map((e) => ({
id: e,
- label: kbe[e],
- ...Dbe[e],
+ label: jbe[e],
+ ...kbe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: Obe[e] !== !1
+ visible: Abe[e] !== !1
}));
function LJ(e) {
try {
@@ -57012,7 +57023,7 @@ function LJ(e) {
return {};
}
}
-function Abe() {
+function Mbe() {
let e = LJ(PJ), t = LJ(FJ);
return IJ.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
let n = e[t.id], r = typeof n == "number" && Number.isFinite(n) && !(t.flex && n === t.width);
@@ -57033,22 +57044,22 @@ function zJ() {
return !1;
}
}
-function jbe(e) {
+function Nbe(e) {
try {
e ? localStorage.setItem(RJ, "1") : localStorage.removeItem(RJ);
} catch {}
}
-var Mbe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var Pbe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
function BJ(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><b class=\"skeleton-sheen\"></b><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
-function Nbe(e) {
- let t = Abe(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${BJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (zJ() ? Mbe : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
+function Fbe(e) {
+ let t = Mbe(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${BJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (zJ() ? Pbe : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
}
function VJ(e, t) {
- return PM() === "list" ? Nbe(e) : nc(e, {
+ return NM() === "list" ? Fbe(e) : nc(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
@@ -57069,9 +57080,9 @@ function HJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && wG(e, r) && n(r.dataset.key);
+ r && TG(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, F.jsx)(Efe, {
+ children: r ? /* @__PURE__ */ (0, F.jsx)(kfe, {
className: "relative min-w-0",
onResize: r.resize,
onResizeEnd: r.save,
@@ -57081,7 +57092,7 @@ function HJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
}
// src/react/components/select.tsx
function UJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, F.jsx)(zU, {
+ if (e == null) return /* @__PURE__ */ (0, F.jsx)(RU, {
...r,
size: n,
renderValue: t
@@ -57091,7 +57102,7 @@ function UJ({ prefix: e, renderValue: t, size: n, ...r }) {
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, F.jsx)(zU, {
+ return /* @__PURE__ */ (0, F.jsx)(RU, {
...r,
size: n,
renderValue: a
@@ -57151,10 +57162,10 @@ function GJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, F.jsx)(BU, {
+ children: [/* @__PURE__ */ (0, F.jsx)(zU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(BU, {
+ }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(zU, {
id: e.id,
children: e.label
}, e.id))]
@@ -57162,7 +57173,7 @@ function GJ({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: $U,
+ leadingIcon: QU,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -57199,7 +57210,7 @@ function KJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, F.jsx)(BU, {
+ children: o.map((e) => /* @__PURE__ */ (0, F.jsx)(zU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
@@ -57229,7 +57240,7 @@ function JJ(e, t) {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function Pbe(e, t) {
+function Ibe(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
@@ -57261,7 +57272,7 @@ function Pbe(e, t) {
}
};
}
-function Fbe(e, t, n, r = {}) {
+function Lbe(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
@@ -57280,7 +57291,7 @@ function YJ(e, t, n) {
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = Pbe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Fbe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
+ }])), [t]), i = Ibe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Lbe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
return {
...i,
...a,
@@ -57299,14 +57310,14 @@ function YJ(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function Ibe() {
+function Rbe() {
return YJ("catalog", IJ, {
widths: PJ,
visibility: FJ
});
}
// src/react/components/rating-stars.tsx
-var XJ = Xz("star");
+var XJ = Yz("star");
function ZJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, F.jsx)("span", {
@@ -57346,9 +57357,9 @@ function ZJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function Lbe({ item: e, actions: t }) {
- let { rating: n } = e, r = BH(), i = (0, P.useRef)(0), a = UM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- BM(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function zbe({ item: e, actions: t }) {
+ let { rating: n } = e, r = zH(), i = (0, P.useRef)(0), a = HM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ zM(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -57364,7 +57375,7 @@ function Lbe({ item: e, actions: t }) {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ }), r.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -57396,7 +57407,7 @@ function $J({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
- className: sF("flex gap-2", t === "inline" ? "flex-nowrap items-center" : "flex-col"),
+ className: IF("flex gap-2", t === "inline" ? "flex-nowrap items-center" : "flex-col"),
children: [n, e.map((e) => e.href === void 0 ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
size: "small",
@@ -57404,10 +57415,10 @@ function $J({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
className: t === "inline" ? "shrink-0" : "w-full",
onClick: e.onPress,
children: e.label
- }, e.label) : /* @__PURE__ */ (0, F.jsx)(zH, {
+ }, e.label) : /* @__PURE__ */ (0, F.jsx)(RH, {
size: "small",
href: e.href,
- trailingIcon: Sz,
+ trailingIcon: xz,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -57424,7 +57435,7 @@ function eY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
}, "actions"), f = /* @__PURE__ */ (0, F.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, F.jsx)(gV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, F.jsx)(hV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -57444,14 +57455,14 @@ function eY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, F.jsx)(hR, {
+ }), /* @__PURE__ */ (0, F.jsx)(mR, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: sF(lV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, F.jsx)(UH, {
+ className: IF(cV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, F.jsx)(HH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -57496,7 +57507,7 @@ function tY({ preferences: e, label: t = "表格" }) {
}
function nY({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, F.jsx)(Lfe, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, F.jsx)(Bfe, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
function rY(e, t) {
@@ -57508,7 +57519,7 @@ function rY(e, t) {
}
function iY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
let { all: i, some: a } = rY(e, n);
- return /* @__PURE__ */ (0, F.jsx)(gV, {
+ return /* @__PURE__ */ (0, F.jsx)(hV, {
slot: null,
"aria-label": t,
isDisabled: r,
@@ -57521,12 +57532,12 @@ function iY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var Rbe = Nq({
+var Bbe = Nq({
rowSortingFeature: jJ,
rowSelectionFeature: vJ,
rowPaginationFeature: Zq,
columnVisibilityFeature: Vq
-}), zbe = [
+}), Vbe = [
{
id: "name",
label: "名称"
@@ -57564,8 +57575,8 @@ var Rbe = Nq({
label: "观看时间"
}
], aY = /* @__PURE__ */ new Map();
-function Bbe(e) {
- let t = Ibe(), n = SG(), r = IM(e.filters || {}, !1), [i] = (0, P.useState)(() => {
+function Hbe(e) {
+ let t = Rbe(), n = CG(), r = FM(e.filters || {}, !1), [i] = (0, P.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
}), [a, o] = (0, P.useState)(() => aY.get(i) || {
@@ -57604,7 +57615,7 @@ function Bbe(e) {
}
}), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : LK(f, e.layout.javImage), [h] = (0, P.useState)(zJ);
(0, P.useEffect)(() => {
- d.data && !d.isPlaceholderData && jbe(m.length > 0);
+ d.data && !d.isPlaceholderData && Nbe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -57637,7 +57648,7 @@ function Bbe(e) {
c.pageIndex
]);
let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = MJ({
- features: Rbe,
+ features: Bbe,
columns: (0, P.useMemo)(() => {
let t = Mq();
return t.columns([
@@ -57648,7 +57659,7 @@ function Bbe(e) {
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(gV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(hV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -57660,7 +57671,7 @@ function Bbe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(Vbe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(Ube, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -57717,7 +57728,7 @@ function Bbe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(Lbe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(zbe, {
item: t.original,
actions: e.actions
})
@@ -57806,7 +57817,7 @@ function Bbe(e) {
"data-toolbar-actions": "",
children: [/* @__PURE__ */ (0, F.jsx)(tY, { preferences: t }), /* @__PURE__ */ (0, F.jsx)(GJ, {
label: "作品列表",
- options: zbe,
+ options: Vbe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -57820,7 +57831,7 @@ function Bbe(e) {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, F.jsx)(tG, {
+ d.isError ? /* @__PURE__ */ (0, F.jsx)(nG, {
message: bn(d.error),
onRetry: () => void d.refetch()
}) : null,
@@ -57841,7 +57852,7 @@ function Bbe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, F.jsxs)(rz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, F.jsx)(iz, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(nz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, F.jsx)(rz, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
@@ -57851,32 +57862,32 @@ function Bbe(e) {
children: [zK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, F.jsx)(oV, {})
+ children: /* @__PURE__ */ (0, F.jsx)(aV, {})
}) : null]
}), /* @__PURE__ */ (0, F.jsx)(nY, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, F.jsx)(iz, {
+ }, e.id)), /* @__PURE__ */ (0, F.jsx)(rz, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, F.jsx)(sz, {
+ })] }), /* @__PURE__ */ (0, F.jsx)(oz, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, F.jsxs)(uz, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, F.jsxs)(lz, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, F.jsx)(fz, { children: /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: BJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, F.jsx)(fz, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, F.jsxs)(uz, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, F.jsx)(dz, { children: /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: BJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, F.jsx)(dz, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, F.jsxs)(lz, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, F.jsx)(fz, { children: zK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, F.jsx)(fz, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, F.jsx)(dz, { children: zK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, F.jsx)(dz, { "data-table-space": "" })]
}, e.id))
})]
})
@@ -57892,10 +57903,10 @@ function Bbe(e) {
]
});
}
-function Vbe({ item: e, props: t, disabled: n }) {
+function Ube({ item: e, props: t, disabled: n }) {
let r = wo(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
- iI();
- let { avatar: l, who: u } = PG(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = SG({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, F.jsx)("svg", {
+ sI();
+ let { avatar: l, who: u } = FG(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = CG({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
@@ -57920,7 +57931,7 @@ function Vbe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, F.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, F.jsx)(nG, {
+ r.html ? /* @__PURE__ */ (0, F.jsx)(rG, {
artwork: r,
relayout: (e) => Bl(e, "small")
}) : /* @__PURE__ */ (0, F.jsx)("span", { children: "无预览" }),
@@ -57975,7 +57986,7 @@ function Vbe({ item: e, props: t, disabled: n }) {
children: [p?.name ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${p.name}`,
- children: [/* @__PURE__ */ (0, F.jsx)(fU, { mark: p.icon }), p.name]
+ children: [/* @__PURE__ */ (0, F.jsx)(dU, { mark: p.icon }), p.name]
}) : null, u]
})]
})
@@ -57984,12 +57995,12 @@ function Vbe({ item: e, props: t, disabled: n }) {
}
// src/react/catalog-grid/catalog-grid-page.tsx
function oY(e) {
- let t = FM();
- if (e.mode === "items") return /* @__PURE__ */ (0, F.jsx)(Ube, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${IM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return t === "list" && !e.wall ? /* @__PURE__ */ (0, F.jsx)(Bbe, { ...e }, n) : /* @__PURE__ */ (0, F.jsx)(Wbe, { ...e }, n);
+ let t = PM();
+ if (e.mode === "items") return /* @__PURE__ */ (0, F.jsx)(Gbe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${FM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return t === "list" && !e.wall ? /* @__PURE__ */ (0, F.jsx)(Hbe, { ...e }, n) : /* @__PURE__ */ (0, F.jsx)(Kbe, { ...e }, n);
}
-function Hbe({ name: e }) {
+function Wbe({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -58012,8 +58023,8 @@ function sY({ children: e, selectMode: t }) {
children: e
});
}
-function Ube(e) {
- let { actions: t } = e, n = (0, P.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, F.jsx)(HG, {
+function Gbe(e) {
+ let { actions: t } = e, n = (0, P.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, F.jsx)(UG, {
item: i,
variant: r,
layout: e.layout,
@@ -58032,8 +58043,8 @@ function Ube(e) {
children: i
});
}
-function Wbe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Mce(e) : LM(e), [s] = (0, P.useState)(() => e.wall ? Pce(o.queryKey) : void 0), c = s || (i && e.initial ? {
+function Kbe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Fce(e) : IM(e), [s] = (0, P.useState)(() => e.wall ? Lce(o.queryKey) : void 0), c = s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -58054,7 +58065,7 @@ function Wbe(e) {
(0, P.useEffect)(() => {
l.isPending || u.current || (u.current = !0, e.settled?.(e.revision));
}, [l.isPending]);
- let { tiles: d, pageStarts: f } = (0, P.useMemo)(() => Ice(l.data?.pages || [], {
+ let { tiles: d, pageStarts: f } = (0, P.useMemo)(() => zce(l.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -58064,7 +58075,7 @@ function Wbe(e) {
e.mix,
a,
r.javImage
- ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || B_e(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && yK(e.item) ? [e.item] : []), v = a ? [] : LK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = eG(l.isPending, e.skeletonHtml), b = (0, P.useRef)(null), x = Gbe(e, l.data, d, f, b);
+ ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || H_e(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && bK(e.item) ? [e.item] : []), v = a ? [] : LK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = tG(l.isPending, e.skeletonHtml), b = (0, P.useRef)(null), x = qbe(e, l.data, d, f, b);
(0, P.useLayoutEffect)(() => {
if (!l.data) return;
let t = !0;
@@ -58091,12 +58102,12 @@ function Wbe(e) {
let C = (0, P.useCallback)((e, t) => n.open(e, t), [n]), w = (0, P.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, P.useCallback)((e) => n.openShort(e), [n]), E = (0, P.useCallback)(async () => {
let e = await l.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [l.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, F.jsx)(qbe, {
+ }, [l.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, F.jsx)(Ybe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, F.jsx)(HG, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, F.jsx)(UG, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -58116,8 +58127,8 @@ function Wbe(e) {
!e.wall && y.layer,
/* @__PURE__ */ (0, F.jsx)(RK, { assetIds: v }),
(() => {
- if (g && e.wall) return /* @__PURE__ */ (0, F.jsx)(Y_e, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${IM(e.filters || {}, !!e.excludeVertical)}`,
+ if (g && e.wall) return /* @__PURE__ */ (0, F.jsx)(Z_e, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${FM(e.filters || {}, !!e.excludeVertical)}`,
items: _,
finite: h,
hasMore: !!l.hasNextPage,
@@ -58125,7 +58136,7 @@ function Wbe(e) {
loading: l.isPending || !l.data && l.isFetching,
error: !l.data && !l.isPending ? bn(l.error) : "",
retry: () => void l.refetch(),
- emptyHtml: l.data && !_.length ? Q_e({
+ emptyHtml: l.data && !_.length ? eve({
libraryEmpty: !!l.data.pages[0]?.libraryEmpty,
matches: m,
hasMore: !!l.hasNextPage,
@@ -58140,7 +58151,7 @@ function Wbe(e) {
javImage: r.javImage
}, h ? "finite" : "explore");
if (l.isPending) return null;
- if (!l.data) return /* @__PURE__ */ (0, F.jsx)(tG, {
+ if (!l.data) return /* @__PURE__ */ (0, F.jsx)(nG, {
message: bn(l.error),
onRetry: () => void l.refetch()
});
@@ -58157,7 +58168,7 @@ function Wbe(e) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: zce(d, x).map((t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(sY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, F.jsx)(Kbe, {
+ children: Hce(d, x).map((t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(sY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, F.jsx)(Jbe, {
cut: t.strip,
props: e,
onOpen: T
@@ -58213,7 +58224,7 @@ function cY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: $W });
+ }, { rootMargin: eG });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -58236,12 +58247,12 @@ function cY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: Vs(Bs) }
- }), c.error ? /* @__PURE__ */ (0, F.jsx)(tG, {
+ }), c.error ? /* @__PURE__ */ (0, F.jsx)(nG, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function Gbe(e, t, n, r, i) {
+function qbe(e, t, n, r, i) {
let [a, o] = (0, P.useState)([]), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(0), u = (0, P.useRef)(0), d = (0, P.useRef)({
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
@@ -58253,7 +58264,7 @@ function Gbe(e, t, n, r, i) {
let r = new AbortController();
f.current.push(r);
let i = n - 1;
- B(`/api/items?${Rce(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ B(`/api/items?${Vce(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
t.length ? c({
page: i,
@@ -58265,9 +58276,9 @@ function Gbe(e, t, n, r, i) {
}, [t]), (0, P.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let t = a.reduce((e, t) => Math.max(e, t.at), 0), u = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), f = u?.[u.length - 1], p = f ? Math.max(1, getComputedStyle(f).gridTemplateColumns.split(" ").length) : 1, m = Math.max(0, (r[s.page] ?? 0) - t), h = Lce(n.length - t, m, p);
+ let t = a.reduce((e, t) => Math.max(e, t.at), 0), u = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), f = u?.[u.length - 1], p = f ? Math.max(1, getComputedStyle(f).gridTemplateColumns.split(" ").length) : 1, m = Math.max(0, (r[s.page] ?? 0) - t), h = Bce(n.length - t, m, p);
if (!h.length) return;
- let g = RM(s.items, d.current, e.groupCollapse !== !1);
+ let g = LM(s.items, d.current, e.groupCollapse !== !1);
if (l.current = s.more ? l.current + 18 : 0, !g.length) return;
let _ = t + (h[Math.floor(Math.random() * h.length)] ?? 0);
o((e) => [...e, {
@@ -58277,7 +58288,7 @@ function Gbe(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function Kbe({ cut: e, props: t, onOpen: n }) {
+function Jbe({ cut: e, props: t, onOpen: n }) {
let r = (0, P.useRef)(null), { wireDrag: i } = t;
return (0, P.useEffect)(() => {
r.current && i(r.current);
@@ -58293,12 +58304,12 @@ function Kbe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, F.jsx)(Hbe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(Wbe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, F.jsx)(HG, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, F.jsx)(UG, {
item: e,
variant: "short",
layout: t.layout,
@@ -58316,14 +58327,14 @@ function Kbe({ cut: e, props: t, onOpen: n }) {
function lY(e, t, n) {
return To(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function qbe({ seed: e, layout: t, helpers: n, actions: r }) {
+function Ybe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, P.useRef)(/* @__PURE__ */ new Map()), a = (0, P.useRef)(t);
a.current = t;
let o = jo(e, n.tagLabel), s = (0, P.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => zM(e, t.javImage)).slice(0, 9);
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => RM(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), lY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = lY(e, t, !1);
- return /* @__PURE__ */ (0, F.jsx)(QG, {
+ return /* @__PURE__ */ (0, F.jsx)($G, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -58338,7 +58349,7 @@ function qbe({ seed: e, layout: t, helpers: n, actions: r }) {
size: "small"
}, !1).html,
relayoutArt: (e) => Bl(e, c),
- ratio: NG(e, "grid", t),
+ ratio: PG(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -58355,31 +58366,31 @@ async function uY(e) {
queryFn: () => yr(e)
});
}
-var Jbe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ybe = "/api/duplicates?limit=120", dY = ["duplicates"], fY = "/api/batch", pY = (e) => B(Ybe, e), Xbe = /[\s\-_.()[\]【】/\\]/;
-function Zbe(e) {
+var Xbe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Zbe = "/api/duplicates?limit=120", dY = ["duplicates"], fY = "/api/batch", pY = (e) => B(Zbe, e), Qbe = /[\s\-_.()[\]【】/\\]/;
+function $be(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;
e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));
let r = t;
- for (; r > 0 && !Xbe.test(n[r - 1]);) --r;
+ for (; r > 0 && !Qbe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Qbe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function $be(e) {
+var exe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function txe(e) {
await Promise.all([H.fetchQuery({
queryKey: dY,
queryFn: () => pY(e)
}), uY(e)]);
}
-var exe = {
+var nxe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, txe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), mY = (e, t) => txe(e, t).filter((t) => e.some((e) => e.location !== t)), nxe = (e, t) => t.filter((t) => e.some((e) => mY(e.files, [t]).length));
-function rxe(e, t) {
+}, rxe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), mY = (e, t) => rxe(e, t).filter((t) => e.some((e) => e.location !== t)), ixe = (e, t) => t.filter((t) => e.some((e) => mY(e.files, [t]).length));
+function axe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -58398,11 +58409,11 @@ function rxe(e, t) {
}
return n;
}
-function ixe(e, t) {
+function oxe(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function axe(e, t) {
+async function sxe(e, t) {
for (let n = 0; n < e.length; n += 200) await V(fY, {
ids: e.slice(n, n + 200),
operation: t,
@@ -58410,7 +58421,7 @@ async function axe(e, t) {
});
}
// src/react/media-repair/media-repair.ts
-var hY = "/api/media-repair", gY = ["media-repair"], _Y = ["media-repair", "libraries"], oxe = {
+var hY = "/api/media-repair", gY = ["media-repair"], _Y = ["media-repair", "libraries"], cxe = {
status: "idle",
library: "",
stage: "",
@@ -58423,7 +58434,7 @@ var hY = "/api/media-repair", gY = ["media-repair"], _Y = ["media-repair", "libr
skipped: 0,
message: ""
}, vY = (e) => B(hY, e), yY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function sxe(e) {
+async function lxe(e) {
await Promise.all([H.fetchQuery({
queryKey: gY,
queryFn: () => vY(e)
@@ -58433,28 +58444,28 @@ async function sxe(e) {
})]);
}
var bY = (e) => Number(e).toLocaleString();
-function cxe(e) {
+function uxe(e) {
if (e.status === "running") {
let t = e.total ? `${bY(Math.min(e.checked || 0, e.total))} / ${bY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${bY(e.repaired)} 部,${bY(e.failed)} 部修不了` : `修好 ${bY(e.repaired)} 部` : "";
}
-var lxe = (e) => `${bY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, uxe = "/api/quality-goals?limit=200", xY = ["quality-goals"], SY = (e) => B(uxe, e);
-async function dxe(e) {
+var dxe = (e) => `${bY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, fxe = "/api/quality-goals?limit=200", xY = ["quality-goals"], SY = (e) => B(fxe, e);
+async function pxe(e) {
await H.fetchQuery({
queryKey: xY,
queryFn: () => SY(e)
});
}
-var fxe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;
+var mxe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
function CY(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
// src/react/review/review.ts
-var pxe = "/api/review", mxe = "/api/review/decision", hxe = "/api/review/genre", wY = ["review"], TY = {
+var hxe = "/api/review", gxe = "/api/review/decision", _xe = "/api/review/genre", wY = ["review"], TY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -58464,7 +58475,7 @@ var pxe = "/api/review", mxe = "/api/review/decision", hxe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, gxe = Object.keys(TY), _xe = "metadata_fields", EY = (e) => typeof e == "string" && Object.hasOwn(TY, e), vxe = {
+}, vxe = Object.keys(TY), yxe = "metadata_fields", EY = (e) => typeof e == "string" && Object.hasOwn(TY, e), bxe = {
creator_tags: "creator",
western_identity: "creator"
}, DY = [
@@ -58475,7 +58486,7 @@ var pxe = "/api/review", mxe = "/api/review/decision", hxe = "/api/review/genre"
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, yxe = {
+}, xxe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
@@ -58483,7 +58494,7 @@ var pxe = "/api/review", mxe = "/api/review/decision", hxe = "/api/review/genre"
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function bxe(e, t) {
+function Sxe(e, t) {
return {
...e,
...t(AY(e, "pending")),
@@ -58493,7 +58504,7 @@ function bxe(e, t) {
}
};
}
-function xxe(e, t) {
+function Cxe(e, t) {
let n = [["candidates", t ? "按来源数量" : "不分组"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
@@ -58514,10 +58525,10 @@ function jY(e, t) {
}
return [...n.values()];
}
-function Sxe(e, t, n) {
+function wxe(e, t, n) {
return n && jY(e, t).find((e) => e.key === n)?.rows || e;
}
-function Cxe(e, t) {
+function Txe(e, t) {
let n = hr(e.length, 20), r = gr(t, n);
return {
page: r,
@@ -58525,32 +58536,32 @@ function Cxe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function wxe(e) {
+function Exe(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function Txe(e, t, n, r, i, a) {
+function Dxe(e, t, n, r, i, a) {
return CY(e, t, n, r, i, a);
}
-function Exe(e, t) {
+function Oxe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
function MY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
var NY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function Dxe(e, t) {
+function kxe(e, t) {
let n = MY(e, t), r = NY(e, t);
return r ? `${n} · ${r}` : n;
}
-var Oxe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", kxe = (e) => String(e.tags || "").split("|").filter(Boolean), Axe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function jxe(e) {
+var Axe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", jxe = (e) => String(e.tags || "").split("|").filter(Boolean), Mxe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function Nxe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function Mxe(e, t, n, r) {
+function Pxe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -58566,22 +58577,22 @@ function Mxe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var Nxe = (e) => ({
+var Fxe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
async function PY(e) {
- let t = await B(pxe, e);
+ let t = await B(hxe, e);
for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${OY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function Pxe(e) {
- let t = await V(mxe, e);
+async function Ixe(e) {
+ let t = await V(gxe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(wY, (t) => t && bxe(t, (t) => ({
+ H.setQueryData(wY, (t) => t && Sxe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -58597,21 +58608,21 @@ async function Pxe(e) {
}
return t;
}
-function Fxe(e, t) {
+function Lxe(e, t) {
let n = H.getQueryData(wY);
return n && DY.flatMap((t) => AY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var Ixe = (e, t) => V(hxe, {
+var Rxe = (e, t) => V(_xe, {
genre: e,
tag: t
});
-async function Lxe(e) {
+async function zxe(e) {
await H.fetchQuery({
queryKey: wY,
queryFn: () => PY(e)
});
}
-function Rxe(e, t, n) {
+function Bxe(e, t, n) {
let r = new Set(t);
r.size && H.setQueryData(wY, (t) => {
if (!t) return t;
@@ -58650,15 +58661,15 @@ function Rxe(e, t, n) {
};
});
}
-var zxe = () => H.invalidateQueries({
+var Vxe = () => H.invalidateQueries({
queryKey: wY,
exact: !0
});
-function Bxe(e, t) {
+function Hxe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Sr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var Vxe = "/api/links", FY = "/api/links/check", IY = "/api/links/prune", LY = ["links"], RY = ["links", "check"], zY = ["links", "prune"], Hxe = {
+var Uxe = "/api/links", FY = "/api/links/check", IY = "/api/links/prune", LY = ["links"], RY = ["links", "check"], zY = ["links", "prune"], Wxe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
@@ -58669,22 +58680,22 @@ async function BY(e) {
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var VY = (e) => B(Vxe, e), HY = (e) => V(FY, { status_only: !0 }, "POST", e), Uxe = ({ retry: e, checkId: t }) => BY(V(FY, e ? {
+var VY = (e) => B(Uxe, e), HY = (e) => V(FY, { status_only: !0 }, "POST", e), Gxe = ({ retry: e, checkId: t }) => BY(V(FY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), UY = (e) => B(IY, e), Wxe = ({ checkId: e, ids: t }) => BY(V(IY, {
+} : { restart: !0 })), UY = (e) => B(IY, e), Kxe = ({ checkId: e, ids: t }) => BY(V(IY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), WY = (e) => Number(e || 0).toLocaleString(), Gxe = (e) => `已删除 ${WY(e.removed)} 条;${e.marked ? `已隐退女优的 ${WY(e.marked)} 条留作不可点的记录;` : ""}保留 ${WY(e.recovered)} 条未确认失效的链接。`;
-function Kxe(e) {
+})), WY = (e) => Number(e || 0).toLocaleString(), qxe = (e) => `已删除 ${WY(e.removed)} 条;${e.marked ? `已隐退女优的 ${WY(e.marked)} 条留作不可点的记录;` : ""}保留 ${WY(e.recovered)} 条未确认失效的链接。`;
+function Jxe(e) {
let t = e.scope === "retry";
return e.total ? `${t ? "已重验" : "已检查"} ${WY(e.checked)} / ${WY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var GY = "/api/configuration", KY = "/api/pick-folder", qY = "/api/settings", JY = "/api/follow/schedule", YY = "/api/feeds/schedule", XY = "/api/thumbnail-jobs", ZY = ["settings"], QY = ["follow-schedule"], $Y = ["feed-schedule"], eX = ["thumbnail-jobs"], tX = "/api/media-processing", qxe = ["media-processing"], Jxe = (e) => B(tX, e), nX = (e) => B(qY, e), Yxe = (e) => B(JY, e), Xxe = (e) => B(YY, e), Zxe = (e) => B(XY, e);
-function Qxe(e = H) {
+var GY = "/api/configuration", KY = "/api/pick-folder", qY = "/api/settings", JY = "/api/follow/schedule", YY = "/api/feeds/schedule", XY = "/api/thumbnail-jobs", ZY = ["settings"], QY = ["follow-schedule"], $Y = ["feed-schedule"], eX = ["thumbnail-jobs"], tX = "/api/media-processing", Yxe = ["media-processing"], Xxe = (e) => B(tX, e), nX = (e) => B(qY, e), Zxe = (e) => B(JY, e), Qxe = (e) => B(YY, e), $xe = (e) => B(XY, e);
+function eSe(e = H) {
return e.fetchQuery({
queryKey: ZY,
queryFn: ({ signal: e }) => nX(e),
@@ -58697,7 +58708,7 @@ function rX() {
onSuccess: (e) => H.setQueryData(ZY, e)
});
}
-function $xe() {
+function tSe() {
return Ft({
mutationFn: (e) => V(JY, {
enabled: e > 0,
@@ -58706,7 +58717,7 @@ function $xe() {
onSuccess: (e) => H.setQueryData(QY, e)
});
}
-var eSe = {
+var nSe = {
follow: {
url: `${JY}/run`,
key: QY
@@ -58716,36 +58727,36 @@ var eSe = {
key: $Y
}
};
-function tSe(e) {
- let { url: t, key: n } = eSe[e];
+function rSe(e) {
+ let { url: t, key: n } = nSe[e];
return Ft({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var nSe = (e) => e?.running ? 3e3 : !1;
-function rSe() {
+var iSe = (e) => e?.running ? 3e3 : !1;
+function aSe() {
return Ft({
mutationFn: (e) => V(XY, { mode: e }),
onSuccess: (e) => H.setQueryData(eX, e)
});
}
// src/react/data-cleanup/organize.ts
-var iSe = "/api/organize", aSe = "/api/organize/preview", oSe = "/api/organize/apply", sSe = "/api/organize/rollback", iX = ["organize"], cSe = "/api/organize/example", lSe = (e, t, n) => B(`${cSe}?${new URLSearchParams({
+var oSe = "/api/organize", sSe = "/api/organize/preview", cSe = "/api/organize/apply", lSe = "/api/organize/rollback", iX = ["organize"], uSe = "/api/organize/example", dSe = (e, t, n) => B(`${uSe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), aX = (e) => B(iSe, e);
-async function uSe(e) {
+})}`, n), aX = (e) => B(oSe, e);
+async function fSe(e) {
await H.fetchQuery({
queryKey: iX,
queryFn: () => aX(e)
});
}
-var dSe = (e) => V(aSe, e), fSe = (e) => V(KY, { initial: e }), pSe = (e) => e.kind === "apply" ? V(oSe, {
+var pSe = (e) => V(sSe, e), mSe = (e) => V(KY, { initial: e }), hSe = (e) => e.kind === "apply" ? V(cSe, {
...e.request,
confirm: !0
-}) : V(sSe, { confirm: !0 });
-async function mSe(e) {
+}) : V(lSe, { confirm: !0 });
+async function gSe(e) {
H.setQueryData(iX, (t) => t && {
...t,
templates: e
@@ -58754,20 +58765,20 @@ async function mSe(e) {
await V(qY, { organizeTemplates: e });
} catch {}
}
-var hSe = (e, t) => e && {
+var _Se = (e, t) => e && {
...e,
...t
-}, gSe = /目录模板|分隔符|盘符|`\.`/;
-function _Se(e) {
+}, vSe = /目录模板|分隔符|盘符|`\.`/;
+function ySe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
var oX = (e) => Number(e || 0).toLocaleString();
-function vSe(e) {
+function bSe(e) {
let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${oX(t)}`).join(" · ");
return Number(e.counts?.change || 0) ? `${oX(e.counts.change)} 个文件会改名或移动,${oX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function ySe(e) {
+function xSe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
text: t ? `已退回 ${oX(r)} 个文件${n ? `,${oX(n)} 行未能退回` : ""}。` : `已整理 ${oX(r)} 个文件${n ? `,${oX(n)} 行未能处理` : ""}。`,
@@ -58776,36 +58787,36 @@ function ySe(e) {
};
}
// src/react/data-cleanup/orphan-records.ts
-var bSe = "/api/orphan-records", xSe = "/api/orphan-records/attach", sX = ["orphan-records"], SSe = [
+var SSe = "/api/orphan-records", CSe = "/api/orphan-records/attach", sX = ["orphan-records"], wSe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], cX = (e) => B(bSe, e), CSe = (e, t) => V(xSe, {
+], cX = (e) => B(SSe, e), TSe = (e, t) => V(CSe, {
id: e,
target: t
-}), wSe = (e) => V(fY, {
+}), ESe = (e) => V(fY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), TSe = (e) => [
+}), DSe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], ESe = (e) => [...SSe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...TSe(e)].filter(Boolean).join(" · "), DSe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", OSe = (e) => [e.name, DSe(e.duration)].filter(Boolean).join(" · "), lX = "/api/resource-sync/scan", uX = "/api/resource-sync/apply", dX = ["resource-sync", "scan"], fX = ["resource-sync", "apply"], pX = (e) => V(lX, {
+], OSe = (e) => [...wSe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...DSe(e)].filter(Boolean).join(" · "), kSe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", ASe = (e) => [e.name, kSe(e.duration)].filter(Boolean).join(" · "), lX = "/api/resource-sync/scan", uX = "/api/resource-sync/apply", dX = ["resource-sync", "scan"], fX = ["resource-sync", "apply"], pX = (e) => V(lX, {
background: !0,
status_only: !0
-}, "POST", e), kSe = () => V(lX, {
+}, "POST", e), jSe = () => V(lX, {
background: !0,
restart: !0
-}), mX = (e) => B(uX, e), ASe = (e) => V(uX, {
+}), mX = (e) => B(uX, e), MSe = (e) => V(uX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
}), hX = (e) => (e?.sources ?? []).some((e) => gn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function gX(e) {
+async function NSe(e) {
hX(H.getQueryData(vr)) && await Promise.all([H.fetchQuery({
queryKey: dX,
queryFn: () => pX(e)
@@ -58814,60 +58825,60 @@ async function gX(e) {
queryFn: () => mX(e)
})]);
}
-var jSe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), _X = (e) => Number(e || 0).toLocaleString(), MSe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", vX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), yX = (e) => e.vanish ? `${_X(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", bX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", NSe = (e) => `将永久删除文件已不在盘上的 ${_X(vX(e))} 条记录和 ${_X(e.empty)} 个空文件夹,并清理 ${_X(e.cache?.files)} 个闲置缓存。${bX(e)}${yX(e)}`, PSe = (e) => `将永久删除文件已不在盘上的 ${_X(vX(e))} 条记录(含回收站里的)、${_X(e.empty)} 个空文件夹,并清理 ${_X(e.cache?.files)} 个闲置缓存。来源根目录保留。${bX(e)}${yX(e)}`, FSe = (e) => e.online ? [
- `找不到文件 · 共 ${_X(e.total)} 项`,
- e.vanish ? `${_X(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${_X(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${_X(e.total)} 项`;
-function xX(e) {
+var PSe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), gX = (e) => Number(e || 0).toLocaleString(), FSe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", _X = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), vX = (e) => e.vanish ? `${gX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", yX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", ISe = (e) => `将永久删除文件已不在盘上的 ${gX(_X(e))} 条记录和 ${gX(e.empty)} 个空文件夹,并清理 ${gX(e.cache?.files)} 个闲置缓存。${yX(e)}${vX(e)}`, LSe = (e) => `将永久删除文件已不在盘上的 ${gX(_X(e))} 条记录(含回收站里的)、${gX(e.empty)} 个空文件夹,并清理 ${gX(e.cache?.files)} 个闲置缓存。来源根目录保留。${yX(e)}${vX(e)}`, RSe = (e) => e.online ? [
+ `找不到文件 · 共 ${gX(e.total)} 项`,
+ e.vanish ? `${gX(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${gX(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${gX(e.total)} 项`;
+function bX(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${_X(t.length)} 条记录没有删除(${o})` : "",
- n ? `${_X(n)} 个文件夹没有删除` : "",
- r.length ? `${_X(r.length)} 个缓存没有清理` : ""
+ t.length ? `${gX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${gX(n)} 个文件夹没有删除` : "",
+ r.length ? `${gX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var ISe = (e, t) => {
- let { rest: n } = xX(e), r = `已永久删除 ${_X(e.purged)} 条失效记录和 ${_X(e.dirs_removed)} 个空文件夹,清理 ${_X(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${_X(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${_X(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var zSe = (e, t) => {
+ let { rest: n } = bX(e), r = `已永久删除 ${gX(e.purged)} 条失效记录和 ${gX(e.dirs_removed)} 个空文件夹,清理 ${gX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${gX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${gX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, LSe = "/api/review?counts=1", SX = ["review", "counts"], RSe = "/api/ads?limit=1", CX = ["junk-summary"], wX = "/api/items?state=trash&limit=1", TX = ["trash-summary"], zSe = [
+}, BSe = "/api/review?counts=1", xX = ["review", "counts"], VSe = "/api/ads?limit=1", SX = ["junk-summary"], CX = "/api/items?state=trash&limit=1", wX = ["trash-summary"], HSe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], EX = (e) => B(LSe, e), DX = (e) => B(RSe, e), OX = (e) => {
+], TX = (e) => B(BSe, e), EX = (e) => B(VSe, e), DX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return B(t ? `${wX}&library=${encodeURIComponent(t)}` : wX, e);
-}, kX = (e) => Number(e || 0).toLocaleString();
-function BSe(e) {
+ return B(t ? `${CX}&library=${encodeURIComponent(t)}` : CX, e);
+}, OX = (e) => Number(e || 0).toLocaleString();
+function USe(e) {
let t = TY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function VSe(e) {
+function WSe(e) {
if (!e) return "";
- let t = zSe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${kX(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${kX(e.dismissed_total)}`), t.join(" · ");
+ let t = HSe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${OX(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${OX(e.dismissed_total)}`), t.join(" · ");
}
-var HSe = [
- [SX, ({ signal: e }) => EX(e)],
+var GSe = [
+ [xX, ({ signal: e }) => TX(e)],
[xY, ({ signal: e }) => SY(e)],
- [TX, ({ signal: e }) => OX(e)],
+ [wX, ({ signal: e }) => DX(e)],
[LY, ({ signal: e }) => VY(e)],
[RY, ({ signal: e }) => HY(e)],
[zY, ({ signal: e }) => UY(e)],
[sX, ({ signal: e }) => cX(e)]
];
-async function USe(e) {
- let t = !!location.hash, n = HSe.map(([n, r]) => {
+async function KSe(e) {
+ let t = !!location.hash, n = GSe.map(([n, r]) => {
if (t) return H.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -58880,22 +58891,22 @@ async function USe(e) {
await Promise.all([
...n,
H.fetchQuery({
- queryKey: CX,
- queryFn: () => DX(e)
+ queryKey: SX,
+ queryFn: () => EX(e)
}),
H.fetchQuery({
queryKey: dY,
queryFn: () => pY(e)
}),
- uY(e).then(() => gX(e)),
- MH(e),
- sxe(e),
- uSe(e)
+ uY(e).then(() => NSe(e)),
+ jH(e),
+ lxe(e),
+ fSe(e)
]);
}
// src/react/feed-new/feed-new.ts
-var AX = (e) => ["feed-new", e ?? "home"], WSe = 8, GSe = 1500;
-function KSe(e, t, n) {
+var kX = (e) => ["feed-new", e ?? "home"], qSe = 8, JSe = 1500;
+function YSe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -58906,33 +58917,33 @@ function KSe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function qSe(e, t, n) {
- let r = new URLSearchParams({ limit: String(SA().value.feedLimit) });
+async function XSe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(OA().value.feedLimit) });
e && r.set("entity", String(e));
let i = await wn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await KSe(s, WSe, GSe), {
+ return n && o.length && await YSe(s, qSe, JSe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var jX = (e, t, n = !1) => ({
- queryKey: AX(e),
- queryFn: () => qSe(e, t, n),
+var AX = (e, t, n = !1) => ({
+ queryKey: kX(e),
+ queryFn: () => XSe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), MX = (e, t) => wn("/api/feeds/discovery", {
+}), jX = (e, t) => wn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function JSe(e) {
- H.removeQueries({ queryKey: AX(null) }), await H.fetchQuery(jX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function ZSe(e) {
+ H.removeQueries({ queryKey: kX(null) }), await H.fetchQuery(AX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var NX = [
+var MX = [
"loc",
"creator",
"tag",
@@ -58946,52 +58957,52 @@ var NX = [
"browse",
"folder",
"folder_recursive"
-], PX = {
+], NX = {
media: "videos",
set: 0
-}, FX = (e, t) => [
+}, PX = (e, t) => [
"entity",
e,
t
-], YSe = (e, t, n, r) => [
+], QSe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], IX = (e, t, n, r) => [
+], FX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], LX = (e) => String(e || "").split(",").filter(Boolean), XSe = (e, t) => LX(e).includes(t);
-function RX(e, t, n, r, i = 0) {
+], IX = (e) => String(e || "").split(",").filter(Boolean), $Se = (e, t) => IX(e).includes(t);
+function LX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...LX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of NX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...IX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
+ for (let t of MX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function zX(e, t, n, r, i, a, o) {
- let s = RX(e, t, n, r, i);
+async function RX(e, t, n, r, i, a, o) {
+ let s = LX(e, t, n, r, i);
return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await wn(`/api/items?${s}`, a ? { signal: a } : {});
}
-var BX = (e) => {
+var zX = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = RX(e.kind, e.name, e.filters, t).toString();
+ }, n = LX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: YSe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => zX(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: QSe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => RX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, VX = (e, t) => ({
- queryKey: FX(e, t),
+}, BX = (e, t) => ({
+ queryKey: PX(e, t),
queryFn: ({ signal: n }) => wn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function ZSe(e, t, n, r, i, a) {
+function eCe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -59000,10 +59011,10 @@ function ZSe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var HX = (e, t, n, r) => ({
- queryKey: IX(e, t, n, r),
+var VX = (e, t, n, r) => ({
+ queryKey: FX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await wn(ZSe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await wn(eCe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -59016,8 +59027,8 @@ var HX = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), UX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function QSe(e) {
+}), HX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function tCe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -59028,25 +59039,25 @@ async function QSe(e) {
t,
n
] });
- e.resolvedEntity?.id && H.setQueryData(FX(t, n), e.resolvedEntity), await Promise.all([
- H.fetchQuery(VX(t, n)).then((t) => !t || t.error || !t.id ? null : (H.removeQueries({ queryKey: AX(Number(t.id)) }), H.fetchQuery(jX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- H.fetchQuery(BX(e)),
- H.fetchInfiniteQuery(HX(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(HX(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && H.setQueryData(PX(t, n), e.resolvedEntity), await Promise.all([
+ H.fetchQuery(BX(t, n)).then((t) => !t || t.error || !t.id ? null : (H.removeQueries({ queryKey: kX(Number(t.id)) }), H.fetchQuery(AX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ H.fetchQuery(zX(e)),
+ H.fetchInfiniteQuery(VX(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(VX(t, n, e.media.set, "")) : null
]);
}
// src/identity-filter.ts
-var WX = [
+var UX = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], GX = "mb-4 flex flex-wrap gap-2";
-function $Se(e) {
- let t = WX.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${GX}">${WX.map(([e, n]) => Ds({
+], WX = "mb-4 flex flex-wrap gap-2";
+function nCe(e) {
+ let t = UX.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${WX}">${UX.map(([e, n]) => Ds({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -59054,45 +59065,45 @@ function $Se(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var eCe = "/api/follow/authors", tCe = "/api/follow/tags", nCe = (e) => [
+var rCe = "/api/follow/authors", iCe = "/api/follow/tags", aCe = (e) => [
"follow",
"authors",
e
-], rCe = (e, t) => [
+], oCe = (e, t) => [
"follow",
"tags",
e,
t
];
-function iCe(e, t, n) {
+function sCe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${eCe}?${r}`;
+ return e && r.set("q", e), `${rCe}?${r}`;
}
-function aCe(e, t, n, r) {
+function cCe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${tCe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${iCe}?${i}`;
}
-var oCe = (e, t, n, r) => B(iCe(e, t, n), r), sCe = (e, t, n, r, i) => B(aCe(e, t, n, r), i), cCe = "/api/index", KX = {
+var lCe = (e, t, n, r) => B(sCe(e, t, n), r), uCe = (e, t, n, r, i) => B(cCe(e, t, n, r), i), dCe = "/api/index", GX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, lCe = {
+}, fCe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, qX = [
+}, KX = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -59102,31 +59113,31 @@ var oCe = (e, t, n, r) => B(iCe(e, t, n), r), sCe = (e, t, n, r, i) => B(aCe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], JX = [
+], qX = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], YX = {
+], JX = {
people: 120,
tags: 100
-}, XX = (e) => e !== "tags", ZX = (e) => e === "studios" || e === "agencies";
-function QX(e) {
- if (e.kind === "creators" && e.category === "animation") return QX({
+}, YX = (e) => e !== "tags", XX = (e) => e === "studios" || e === "agencies";
+function ZX(e) {
+ if (e.kind === "creators" && e.category === "animation") return ZX({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? JX : qX : e.kind === "performers" && t === "local" ? WX : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? qX : KX : e.kind === "performers" && t === "local" ? UX : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function $X(e) {
+function QX(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -59146,50 +59157,50 @@ function $X(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var eZ = (e, t, n = "all") => [
+var $X = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function tZ(e, t, n, r, i) {
+function eZ(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${cCe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${dCe}?${a}`;
}
-function nZ(e, t = YX.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? YX.people : t, r = {
+function tZ(e, t = JX.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? JX.people : t, r = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...r,
- queryKey: eZ(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => B(tZ(e.kind, e.q, e.category || "all", n, t), r)
+ queryKey: $X(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: t, signal: r }) => B(eZ(e.kind, e.q, e.category || "all", n, t), r)
};
case "tags": return {
...r,
- queryKey: eZ("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => B(tZ("tags", e.q, e.category, n, t), r)
+ queryKey: $X("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => B(eZ("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: nCe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => oCe(e.q, n, t, r)
+ queryKey: aCe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => lCe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: rCe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => sCe(e.q, e.category, n, t, r)
+ queryKey: oCe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => uCe(e.q, e.category, n, t, r)
};
}
}
-async function uCe(e, t) {
- let n = nZ($X(QX(e)));
+async function pCe(e, t) {
+ let n = tZ(QX(ZX(e)));
H.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -59203,20 +59214,20 @@ async function uCe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var dCe = (e) => e ? e.pages.flatMap((e) => e.items) : [], fCe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, rZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", pCe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, mCe = {
+var mCe = (e) => e ? e.pages.flatMap((e) => e.items) : [], hCe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, nZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", gCe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, _Ce = {
numeric: !0,
sensitivity: "base"
};
-function iZ(e, t) {
+function rZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", mCe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", _Ce))) {
let e = $n(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
}
// src/react/boardui/components/base/badges/chip.tsx
-var aZ = cF({
+var iZ = LF({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -59235,15 +59246,15 @@ var aZ = cF({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function oZ({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function aZ({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
ref: r,
- className: sF(aZ.base, aZ.variant[e], aZ.color[t], n),
+ className: IF(iZ.base, iZ.variant[e], iZ.color[t], n),
...i
});
}
// src/react/index/index-people.tsx
-function sZ({ html: e, face: t, company: n, big: r }) {
+function oZ({ html: e, face: t, company: n, big: r }) {
let i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -59255,18 +59266,18 @@ function sZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var hCe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", gCe = Xz("rss");
-function cZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var vCe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", yCe = Yz("rss");
+function sZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: QH({
+ className: ZH({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${hCe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${vCe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -59275,10 +59286,10 @@ function cZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, F.jsx)(oZ, {
+ children: /* @__PURE__ */ (0, F.jsx)(aZ, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, F.jsx)(gCe, {})
+ children: /* @__PURE__ */ (0, F.jsx)(yCe, {})
})
}) : null,
/* @__PURE__ */ (0, F.jsx)("span", {
@@ -59294,9 +59305,9 @@ function cZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function lZ({ kind: e, items: t, layout: n, props: r }) {
- let i = ZX(e) || e === "series";
- iI();
+function cZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = XX(e) || e === "series";
+ sI();
let a = n === "big";
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-grid": "",
@@ -59304,16 +59315,16 @@ function lZ({ kind: e, items: t, layout: n, props: r }) {
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || lCe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, F.jsx)(cZ, {
+ let n = t.entity_kind || fCe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, F.jsx)(sZ, {
"data-k": t.k,
"data-kind": n,
name: tn(n, t.k, t.entity_id),
- readout: `${pCe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${gCe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, F.jsx)(sZ, {
+ children: /* @__PURE__ */ (0, F.jsx)(oZ, {
html: o.html,
face: o.face,
company: i,
@@ -59323,15 +59334,15 @@ function lZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function _Ce({ items: e, layout: t, props: n }) {
- iI();
+function bCe({ items: e, layout: t, props: n }) {
+ sI();
let r = t === "big";
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(cZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(sZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: tn("creator", e.k, e.entity_id),
@@ -59340,7 +59351,7 @@ function _Ce({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, F.jsx)(sZ, {
+ children: /* @__PURE__ */ (0, F.jsx)(oZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -59349,8 +59360,8 @@ function _Ce({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var uZ = (e) => e.replace(/\s+/g, " ").trim();
-function dZ(e) {
+var lZ = (e) => e.replace(/\s+/g, " ").trim();
+function uZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -59358,12 +59369,12 @@ function dZ(e) {
let t = document.createRange();
t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);
}
- return uZ(n);
+ return lZ(n);
}
-function fZ(e) {
+function dZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && dZ(e) && !pZ(e)) {
+ if (e.matches("a") && uZ(e) && !fZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -59376,7 +59387,7 @@ function fZ(e) {
let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));
return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);
}
-function pZ(e) {
+function fZ(e) {
if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;
let t = document.createRange();
t.selectNodeContents(e);
@@ -59387,19 +59398,19 @@ function pZ(e) {
}
return !1;
}
-function vCe() {
+function xCe() {
let e = document.createElement("div");
e.className = "ui-board-tooltip", e.id = "board-control-tooltip", e.role = "tooltip", e.popover = "manual", e.hidden = !0, document.body.append(e);
let t = null, n = "", r = null, i, a = (t) => {
- let n = fZ(t), r = e.getBoundingClientRect();
+ let n = dZ(t), r = e.getBoundingClientRect();
n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);
}, o = () => {
clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null;
}, s = (s, c) => {
if (!(s instanceof Element)) return;
let l = s.closest("[title]");
- (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (dZ(l) !== uZ(n) || pZ(l)) && (i = setTimeout(() => {
- t === l && l.isConnected && fZ(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
+ (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (uZ(l) !== lZ(n) || fZ(l)) && (i = setTimeout(() => {
+ t === l && l.isConnected && dZ(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
}, c)));
};
document.addEventListener("pointerover", (e) => s(e.target, 400)), document.addEventListener("pointerout", (e) => {
@@ -59408,32 +59419,32 @@ function vCe() {
e.key === "Escape" && o();
}), document.addEventListener("scroll", (n) => {
if (!t || !us(n, t)) return;
- let r = fZ(t);
+ let r = dZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && a(t) : o();
}, !0), window.addEventListener("resize", o);
}
// src/board-controls.ts
-function mZ(e) {
+function pZ(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
-var hZ = /* @__PURE__ */ new WeakSet();
-function yCe() {
- if (hZ.has(document)) return;
- hZ.add(document);
+var mZ = /* @__PURE__ */ new WeakSet();
+function SCe() {
+ if (mZ.has(document)) return;
+ mZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(mZ), xCe(e), bCe(e);
+ e.querySelectorAll("input[type=range]").forEach(pZ), wCe(e), CCe(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && mZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && pZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && mZ(e.target);
- }), vCe();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && pZ(e.target);
+ }), xCe();
}
-function bCe(e) {
+function CCe(e) {
let t = ".ui-board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -59457,15 +59468,15 @@ function bCe(e) {
r.observe(e);
});
}
-var gZ = /* @__PURE__ */ new Map();
-function xCe(e) {
+var hZ = /* @__PURE__ */ new Map();
+function wCe(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = gZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = hZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -59474,7 +59485,7 @@ function xCe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Vc(t, r, a, "x"), r = a, gZ.set(n, a);
+ Vc(t, r, a, "x"), r = a, hZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -59490,8 +59501,8 @@ function xCe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var _Z = "/vendor/swiper/14.3.0/", vZ = null, SCe = () => vZ ??= Promise.all([new Promise((e, t) => {
- let n = `${_Z}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var gZ = "/vendor/swiper/14.3.0/", _Z = null, TCe = () => _Z ??= Promise.all([new Promise((e, t) => {
+ let n = `${gZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -59505,11 +59516,11 @@ var _Z = "/vendor/swiper/14.3.0/", vZ = null, SCe = () => vZ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${_Z}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${gZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw vZ = null, e;
+ throw _Z = null, e;
});
-function CCe(e, t, n) {
+function ECe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -59530,46 +59541,46 @@ function CCe(e, t, n) {
}
};
}
-var yZ = (e) => {
+var vZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Yn(t)).replace(" ", "\xA0") : "大小未知";
-}, wCe = (e) => e.asset?.name || e.name || "未命名图片";
-function TCe(e, t) {
+}, DCe = (e) => e.asset?.name || e.name || "未命名图片";
+function OCe(e, t) {
let n = e.asset;
- if (n) return [tr[n.location ?? ""] || n.location || "来源未知", yZ(n.size)].join(" · ");
+ if (n) return [tr[n.location ?? ""] || n.location || "来源未知", vZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? yZ(e.size) : ""
+ e.size ? vZ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var bZ = null, xZ = null, ECe = 0;
-function DCe() {
- return xZ && bZ?.isConnected || (xZ?.unmount(), bZ = document.createElement("div"), bZ.className = "peach-react", bZ.dataset.photoLightboxHost = "", document.body.append(bZ), xZ = (0, Rt.createRoot)(bZ)), xZ;
+var yZ = null, bZ = null, kCe = 0;
+function ACe() {
+ return bZ && yZ?.isConnected || (bZ?.unmount(), yZ = document.createElement("div"), yZ.className = "peach-react", yZ.dataset.photoLightboxHost = "", document.body.append(yZ), bZ = (0, Rt.createRoot)(yZ)), bZ;
}
-async function SZ(e, t, n) {
+async function xZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await SCe();
+ r = await TCe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = DCe();
- (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, F.jsx)(OCe, {
+ let i = ACe();
+ (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, F.jsx)(jCe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++ECe)));
+ }, ++kCe)));
}
-function CZ() {
- xZ && (0, Lt.flushSync)(() => xZ.render(null));
+function SZ() {
+ bZ && (0, Lt.flushSync)(() => bZ.render(null));
}
-function OCe({ slides: e, index: t, Swiper: n, host: r }) {
+function jCe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, P.useId)(), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (0, P.useRef)(null), [_, v] = (0, P.useState)(t), [y, b] = (0, P.useState)(100), [x, S] = (0, P.useState)({}), [C, w] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, P.useState)(!1), [k, A] = (0, P.useState)({
at: t,
text: ""
@@ -59612,7 +59623,7 @@ function OCe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = CCe(e, a, b);
+ i(t, 0), h.current = ECe(e, a, b);
let m = tl(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -59629,13 +59640,13 @@ function OCe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : CZ());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : SZ());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, P.useLayoutEffect)(() => {
- m.current && mZ(m.current);
+ m.current && pZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
@@ -59666,18 +59677,18 @@ function OCe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), CZ();
+ e.preventDefault(), SZ();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && CZ();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && SZ();
},
children: [
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: CZ,
+ onClick: SZ,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -59813,10 +59824,10 @@ function OCe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: wCe(j)
+ children: DCe(j)
}, _), /* @__PURE__ */ (0, F.jsx)("span", {
"data-photo-detail-meta": "",
- children: TCe(j, x[_])
+ children: OCe(j, x[_])
})]
}),
/* @__PURE__ */ (0, F.jsx)("button", {
@@ -59854,24 +59865,24 @@ function OCe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function kCe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, F.jsx)(ACe, {
+function MCe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, F.jsx)(NCe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, F.jsx)(jCe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, F.jsx)(PCe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, F.jsx)(PCe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, F.jsx)(LCe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var wZ = YX.people;
-function ACe({ roster: e, props: t }) {
+var CZ = JX.people;
+function NCe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, P.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, P.useState)(wZ), s = (0, P.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, P.useCallback)(async () => {
- o((e) => e + wZ);
+ }), [n, r]), [a, o] = (0, P.useState)(CZ), s = (0, P.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, P.useCallback)(async () => {
+ o((e) => e + CZ);
}, []);
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(lZ, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(cZ, {
kind: e.kind,
items: s,
layout: e.layout,
@@ -59882,8 +59893,8 @@ function ACe({ roster: e, props: t }) {
enabled: () => !0
}, a) : null] });
}
-function jCe(e) {
- let t = eG(!e.items, e.skeletonHtml);
+function PCe(e) {
+ let t = tG(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
@@ -59907,33 +59918,33 @@ function jCe(e) {
}) : null]
});
}
-var MCe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var FCe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), TZ = (e) => e.sample === !0, EZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, DZ = (e) => TZ(e) ? `/sample-thumb?${EZ(e)}` : `/photo-thumb?id=${e.id}`, NCe = (e) => TZ(e) ? {
- src: `/sample-image?${EZ(e)}`,
- thumb: DZ(e),
+})), wZ = (e) => e.sample === !0, TZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, EZ = (e) => wZ(e) ? `/sample-thumb?${TZ(e)}` : `/photo-thumb?id=${e.id}`, ICe = (e) => wZ(e) ? {
+ src: `/sample-image?${TZ(e)}`,
+ thumb: EZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: DZ(e),
+ thumb: EZ(e),
name: e.name || "",
asset: e
};
-function PCe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, P.useMemo)(() => [...e.codeSets.flatMap(MCe), ...e.items], [e]), [s, c] = (0, P.useState)(() => /* @__PURE__ */ new Set()), l = (0, P.useCallback)((e) => c((t) => {
+function LCe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, P.useMemo)(() => [...e.codeSets.flatMap(FCe), ...e.items], [e]), [s, c] = (0, P.useState)(() => /* @__PURE__ */ new Set()), l = (0, P.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, P.useCallback)((e) => {
- SZ(e, o.map(NCe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, F.jsx)(FCe, {
+ xZ(e, o.map(ICe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, F.jsx)(RCe, {
item: e,
index: t,
lost: s.has(t),
@@ -59951,7 +59962,7 @@ function PCe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(OZ, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(DZ, {
label: e.code,
title: e.name,
meta: [
@@ -59963,7 +59974,7 @@ function PCe({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, F.jsx)(OZ, {
+ m.length && e.total ? /* @__PURE__ */ (0, F.jsx)(DZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -59979,7 +59990,7 @@ function PCe({ photos: e, props: t }) {
}, e.items.length) : null
] });
}
-function OZ({ label: e, title: t, meta: n }) {
+function DZ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -59996,7 +60007,7 @@ function OZ({ label: e, title: t, meta: n }) {
]
});
}
-function FCe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function RCe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -60005,7 +60016,7 @@ function FCe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, F.jsx)("img", {
- src: DZ(e),
+ src: EZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -60015,9 +60026,9 @@ function FCe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var ICe = 2e3, LCe = (e) => e, RCe = (e, t) => t;
-function kZ(e) {
- let { queryKey: t, jobOf: n = LCe, withJob: r = RCe, idlePollMs: i } = e, [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(e);
+var zCe = 2e3, BCe = (e) => e, VCe = (e, t) => t;
+function OZ(e) {
+ let { queryKey: t, jobOf: n = BCe, withJob: r = VCe, idlePollMs: i } = e, [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(e);
(0, P.useEffect)(() => {
l.current = e;
});
@@ -60026,7 +60037,7 @@ function kZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? ICe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? zCe : i ?? !1;
}
}), d = Ft({
mutationFn: (e) => l.current.start(e),
@@ -60050,13 +60061,13 @@ function kZ(e) {
};
}
// src/react/follow-feed/follow-check.ts
-var AZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function zCe(e, t) {
- return t ? AZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
+var kZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+function HCe(e, t) {
+ return t ? kZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
// src/react/follow-feed/follow-check-button.tsx
-function BCe({ sources: e, report: t }) {
- let n = AZ(e), [r, i] = (0, P.useState)(""), { running: a, start: o } = kZ({
+function UCe({ sources: e, report: t }) {
+ let n = kZ(e), [r, i] = (0, P.useState)(""), { running: a, start: o } = OZ({
queryKey: Rr,
queryFn: ({ signal: e }) => _i(e),
start: (e) => bi(e),
@@ -60070,20 +60081,20 @@ function BCe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
disabled: !n.length,
- ...Qz(s),
+ ...Zz(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ }), r ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var VCe = (e) => Number(e) > 0;
-function jZ({ name: e, actions: t, children: n, ...r }) {
+var WCe = (e) => Number(e) > 0;
+function AZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, F.jsx)("a", {
...r,
href: Nn("creator", e),
@@ -60093,15 +60104,15 @@ function jZ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var MZ = ({ provider: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
+var jZ = ({ provider: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: rW(e) }
+ dangerouslySetInnerHTML: { __html: nW(e) }
});
-function HCe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function GCe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, P.useState)(!1), [l, u] = (0, P.useState)(!1), [d, f] = (0, P.useState)(null);
return (0, P.useEffect)(() => {
c(!1);
- }, [o]), s ? /* @__PURE__ */ (0, F.jsx)(MZ, { provider: i }) : /* @__PURE__ */ (0, F.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, F.jsx)(jZ, { provider: i }) : /* @__PURE__ */ (0, F.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -60120,8 +60131,8 @@ function HCe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function UCe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ha(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => yW(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? _a(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ya({
+function KCe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ha(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => bW(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? _a(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ya({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -60129,7 +60140,7 @@ function UCe(e) {
limit: 9
}), S = (0, P.useRef)(x.faces);
S.current = x.faces;
- let C = qG({
+ let C = JG({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -60137,7 +60148,7 @@ function UCe(e) {
w.current = C.onPointerLeave;
let T = (0, P.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = cW(u, n, i), D = iW(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = dW(u, i), j = uW(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), E = sW(u, n, i), D = rW(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = uW(u, i), j = lW(t, u), M = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, te = (e, t) => {
e.stopPropagation(), t();
@@ -60152,7 +60163,7 @@ function UCe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: TG,
+ onMouseDown: EG,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -60166,7 +60177,7 @@ function UCe(e) {
}), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, F.jsx)(HCe, {
+ p ? /* @__PURE__ */ (0, F.jsx)(GCe, {
src: p,
fallback: m,
width: _?.width,
@@ -60174,7 +60185,7 @@ function UCe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, F.jsx)(MZ, { provider: O }),
+ }, p) : /* @__PURE__ */ (0, F.jsx)(jZ, { provider: O }),
x.faces.length > 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -60194,7 +60205,7 @@ function UCe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: rW(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: nW(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -60207,7 +60218,7 @@ function UCe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- VCe(u.duration) ? /* @__PURE__ */ (0, F.jsx)("span", {
+ WCe(u.duration) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-duration": "",
children: qn(u.duration)
}) : null,
@@ -60279,7 +60290,7 @@ function UCe(e) {
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-meta": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, F.jsx)(jZ, {
+ E.entityName ? /* @__PURE__ */ (0, F.jsx)(AZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -60298,12 +60309,12 @@ function UCe(e) {
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: lW(t, u) + z(D) }
+ dangerouslySetInnerHTML: { __html: cW(t, u) + z(D) }
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, F.jsx)(jZ, {
+ E.entityName ? /* @__PURE__ */ (0, F.jsx)(AZ, {
name: E.entityName,
actions: l,
"data-follow-author": "",
@@ -60316,8 +60327,8 @@ function UCe(e) {
}),
/* @__PURE__ */ (0, F.jsx)("time", {
dateTime: u.published_at || "",
- title: pW(u),
- children: mW(u)
+ title: mW(u),
+ children: hW(u)
}),
E.credited ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-credit": "",
@@ -60352,9 +60363,9 @@ function UCe(e) {
]
});
}
-var NZ = (0, P.memo)(UCe);
+var MZ = (0, P.memo)(KCe);
// src/react/components/use-masonry-grid.ts
-function WCe(e, t) {
+function qCe(e, t) {
let n = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
let t = n.current;
@@ -60389,37 +60400,37 @@ function WCe(e, t) {
}, [e, t]), n;
}
// src/react/follow-manage/manage-route.ts
-var PZ = [
+var NZ = [
["list", "关注列表"],
["add", "添加关注"],
["tags", "标签管理"]
-], FZ = PZ.map(([e]) => e);
-function IZ(e) {
+], PZ = NZ.map(([e]) => e);
+function FZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: FZ.find((e) => e === n) || "list",
+ tab: PZ.find((e) => e === n) || "list",
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
sort: t.get("sort") || "",
dir: t.get("dir") || ""
};
}
-function LZ(e) {
+function IZ(e) {
let t = new URLSearchParams();
return e.tab !== "list" && t.set("tab", e.tab), e.page > 1 && t.set("page", String(e.page)), e.sort && t.set("sort", e.sort), e.dir && t.set("dir", e.dir), "/subscriptions" + (t.size ? `?${t}` : "");
}
-function RZ(e, t) {
- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : LZ({
- tab: t || IZ(e).tab,
+function LZ(e, t) {
+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : IZ({
+ tab: t || FZ(e).tab,
page: 1,
sort: "",
dir: ""
});
}
// src/react/follow-feed/follow-feed-page.tsx
-var zZ = () => /* @__PURE__ */ (0, F.jsx)("span", {
+var RZ = () => /* @__PURE__ */ (0, F.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), GCe = Xz("settings"), BZ = Xz("chevron-down"), KCe = Xz("history"), qCe = Xz("arrow-up"), JCe = Xz("arrow-down"), YCe = [[
+}), JCe = Yz("settings"), zZ = Yz("chevron-down"), YCe = Yz("history"), XCe = Yz("arrow-up"), ZCe = Yz("arrow-down"), QCe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -60428,7 +60439,7 @@ var zZ = () => /* @__PURE__ */ (0, F.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function XCe(e, t, n) {
+function $Ce(e, t, n) {
return (0, P.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
@@ -60476,7 +60487,7 @@ function XCe(e, t, n) {
n
]);
}
-function ZCe(e) {
+function ewe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = na(t, r), o = It(a), s = Pt({
queryKey: ra,
queryFn: ({ signal: e }) => ia(e)
@@ -60484,7 +60495,7 @@ function ZCe(e) {
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = XCe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, P.useMemo)(() => ({
+ }), [c, l]), d = $Ce(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, P.useMemo)(() => ({
tags: ou(d.visible.flatMap(ca).map((e) => ({ tags: e.tags || [] }))),
providers: [...d.providers].map(([e, t]) => [
e,
@@ -60510,10 +60521,10 @@ function ZCe(e) {
m,
i
]);
- let h = $Ce(e, !!c);
+ let h = nwe(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, F.jsx)(VZ, {}), /* @__PURE__ */ (0, F.jsx)(tG, {
+ children: [/* @__PURE__ */ (0, F.jsx)(BZ, {}), /* @__PURE__ */ (0, F.jsx)(nG, {
message: bn(o.error),
onRetry: () => void o.refetch()
})]
@@ -60526,7 +60537,7 @@ function ZCe(e) {
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, aW(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, iW(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@ -60535,7 +60546,7 @@ function ZCe(e) {
ref: h.host,
"data-follow-progress": ""
}, h.generation),
- !h.busy && h.report ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ !h.busy && h.report ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
title: "检查结果",
children: h.report
@@ -60544,7 +60555,7 @@ function ZCe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(VZ, { children: d.sources.length ? /* @__PURE__ */ (0, F.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(BZ, { children: d.sources.length ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -60555,20 +60566,20 @@ function ZCe(e) {
dangerouslySetInnerHTML: { __html: zs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, F.jsx)(ewe, {
+ /* @__PURE__ */ (0, F.jsx)(rwe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, F.jsx)(twe, {
+ /* @__PURE__ */ (0, F.jsx)(iwe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, F.jsx)(nwe, {
+ /* @__PURE__ */ (0, F.jsx)(awe, {
facets: d,
view: t,
total: v,
@@ -60576,7 +60587,7 @@ function ZCe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, F.jsx)(rwe, {
+ /* @__PURE__ */ (0, F.jsx)(owe, {
conditions: _,
onDrop: (e) => i.route(Ta(t, e)),
onClear: () => g({
@@ -60588,8 +60599,8 @@ function ZCe(e) {
durMax: 0
})
}),
- d.broken.length ? /* @__PURE__ */ (0, F.jsx)(iwe, { count: d.broken.length }) : null,
- /* @__PURE__ */ (0, F.jsx)(awe, {
+ d.broken.length ? /* @__PURE__ */ (0, F.jsx)(swe, { count: d.broken.length }) : null,
+ /* @__PURE__ */ (0, F.jsx)(cwe, {
retryKey: o.dataUpdatedAt,
pending: f,
facets: d,
@@ -60618,8 +60629,8 @@ function ZCe(e) {
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, F.jsx)(BZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, o.data?.pages.length) : /* @__PURE__ */ (0, F.jsx)(QCe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(zZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, o.data?.pages.length) : /* @__PURE__ */ (0, F.jsx)(twe, {
busy: o.isFetchingNextPage,
error: o.isFetchNextPageError ? bn(o.error) : "",
load: () => {
@@ -60630,7 +60641,7 @@ function ZCe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : KCe,
+ leadingIcon: h.olderBusy ? void 0 : YCe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -60648,7 +60659,7 @@ function ZCe(e) {
})
] });
}
-function VZ({ children: e }) {
+function BZ({ children: e }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, F.jsx)("h2", {
@@ -60656,30 +60667,30 @@ function VZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, F.jsx)(SI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(xI, {
variant: "secondary",
- leadingIcon: GCe,
+ leadingIcon: JCe,
"data-follow-manage": "",
- href: HZ(),
+ href: VZ(),
children: "管理关注"
}), e]
})]
});
}
-function QCe({ busy: e, error: t, load: n }) {
+function twe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, F.jsx)(BZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, F.jsx)(tG, {
+ children: [/* @__PURE__ */ (0, F.jsx)(zZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, F.jsx)(nG, {
message: t,
onRetry: n
}) : null] });
}
-function $Ce(e, t) {
+function nwe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, P.useState)(0), [o, s] = (0, P.useState)(!1), [c, l] = (0, P.useState)(""), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(!1), m = (0, P.useRef)(!1), h = (0, P.useRef)(null), g = (0, P.useRef)({
helpers: n,
actions: r
@@ -60741,12 +60752,12 @@ function $Ce(e, t) {
olderBusy: c === "older" || f && o
};
}
-function ewe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function rwe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, P.useRef)(null);
(0, P.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => aW(e.authorSources.get(t) || [], n);
+ let o = (t) => iW(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, F.jsx)("div", {
@@ -60754,14 +60765,14 @@ function ewe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = oW(a), c = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = aW(a), c = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: sW(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: oW(a, o(n)) }
}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, F.jsx)(jZ, {
+ return s ? /* @__PURE__ */ (0, F.jsx)(AZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -60778,7 +60789,7 @@ function ewe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function twe({ rows: e, pressed: t, props: n, onPick: r }) {
+function iwe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -60799,13 +60810,13 @@ function twe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function nwe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = bI(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = bI(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function awe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = yI(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = yI(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, P.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, F.jsx)(pI, {
+ return /* @__PURE__ */ (0, F.jsx)(mI, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -60857,7 +60868,7 @@ function nwe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, F.jsx)(zZ, {})] }) : null, /* @__PURE__ */ (0, F.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)(RZ, {})] }) : null, /* @__PURE__ */ (0, F.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -60877,7 +60888,7 @@ function nwe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, F.jsx)(zZ, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, F.jsx)(RZ, {}) : null]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -60890,9 +60901,9 @@ function nwe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: rW(t, n) }
+ dangerouslySetInnerHTML: { __html: nW(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, F.jsx)(zZ, {}) : null,
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, F.jsx)(RZ, {}) : null,
e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, F.jsxs)(hI, {
"data-follow-tag": n,
"data-entity-press": "",
@@ -60913,18 +60924,18 @@ function nwe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-readout": "",
children: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`
}),
- /* @__PURE__ */ (0, F.jsx)(dB, {
+ /* @__PURE__ */ (0, F.jsx)(uB, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(PW, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(NW, {
+ /* @__PURE__ */ (0, F.jsx)(FW, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(PW, {
label: "图片布局",
value: i.photoLayout,
- options: YCe,
+ options: QCe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
@@ -60954,9 +60965,9 @@ function nwe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = xa(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, F.jsx)(QU, {
- a: qCe,
- b: JCe,
+ children: [n, r ? /* @__PURE__ */ (0, F.jsx)(ZU, {
+ a: XCe,
+ b: ZCe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -60967,7 +60978,7 @@ function nwe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function rwe({ conditions: e, onDrop: t, onClear: n }) {
+function owe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -60992,19 +61003,19 @@ function rwe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function iwe({ count: e }) {
+function swe({ count: e }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-broken": "",
- dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(HZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(VZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var HZ = () => RZ(window.location.search);
-function awe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
- let { view: s, helpers: c } = i, l = s.media === "images", u = eG(e, () => c.listSkeletonHtml(s.media));
+var VZ = () => LZ(window.location.search);
+function cwe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+ let { view: s, helpers: c } = i, l = s.media === "images", u = tG(e, () => c.listSkeletonHtml(s.media));
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": u.fading ? "" : void 0,
- children: [u.layer, e ? null : /* @__PURE__ */ (0, F.jsx)(owe, {
+ children: [u.layer, e ? null : /* @__PURE__ */ (0, F.jsx)(lwe, {
facets: t,
data: n,
context: r,
@@ -61015,29 +61026,29 @@ function awe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})]
});
}
-function owe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
- let { view: s, actions: c } = r, l = WZ(r), u = i ? {
+function lwe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+ let { view: s, actions: c } = r, l = UZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = WCe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = qCe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, F.jsx)(NZ, {
+ return /* @__PURE__ */ (0, F.jsx)(MZ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(UZ(t, s)),
+ selected: r.selected.has(HZ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(UZ(t, s)) || "",
- failure: l.failures.get(UZ(t, s)) || "",
+ busy: l.busy.get(HZ(t, s)) || "",
+ failure: l.failures.get(HZ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, F.jsx)(swe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(uwe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -61060,22 +61071,22 @@ function owe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function UZ(e, t) {
+function HZ(e, t) {
return ha(e, t.media).id;
}
-function swe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function uwe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, F.jsx)(Jz, {
- icon: Xz(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, F.jsx)(qz, {
+ icon: Yz(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, F.jsx)(SI, {
+ }) : a ? r : /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -61084,12 +61095,12 @@ function swe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var cwe = {
+var dwe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function WZ(e) {
+function UZ(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, P.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, P.useState)(() => /* @__PURE__ */ new Map()), c = na(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -61112,7 +61123,7 @@ function WZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(cwe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(dwe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(jr, {
item: t,
to: i
@@ -61157,9 +61168,9 @@ function WZ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function lwe(e) {
- let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = eG(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, F.jsx)(tG, {
+function fwe(e) {
+ let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = tG(a, () => i.listSkeletonHtml(r));
+ return !n && t.isError ? /* @__PURE__ */ (0, F.jsx)(nG, {
message: bn(t.error),
onRetry: () => {
t.refetch();
@@ -61170,7 +61181,7 @@ function lwe(e) {
"data-grid-reveal": o.fading ? "" : void 0,
children: [
o.layer,
- a || !n ? null : /* @__PURE__ */ (0, F.jsx)(uwe, {
+ a || !n ? null : /* @__PURE__ */ (0, F.jsx)(pwe, {
...e,
data: n
}),
@@ -61184,8 +61195,8 @@ function lwe(e) {
]
});
}
-function uwe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = WZ({
+function pwe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+ let u = UZ({
view: e,
revision: 0,
actions: c
@@ -61203,7 +61214,7 @@ function uwe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
let n = ha(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, F.jsx)(NZ, {
+ return /* @__PURE__ */ (0, F.jsx)(MZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -61216,11 +61227,11 @@ function uwe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, F.jsx)(dwe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(mwe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: zCe(n.sources || [], e.author)
+ sources: HCe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-list": "",
@@ -61229,21 +61240,21 @@ function uwe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function dwe({ searched: e, clear: t, actions: n, sources: r }) {
+function mwe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, F.jsx)(Jz, {
- icon: Xz(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, F.jsx)(qz, {
+ icon: Yz(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, F.jsx)(BCe, {
+ }) : r.length ? /* @__PURE__ */ (0, F.jsx)(UCe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, F.jsx)(SI, {
+ }) : /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -61252,7 +61263,7 @@ function dwe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function GZ(e) {
+function WZ(e) {
return {
x0: 0,
y0: 0,
@@ -61260,7 +61271,7 @@ function GZ(e) {
y1: e.height
};
}
-function KZ(e) {
+function GZ(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -61268,40 +61279,40 @@ function KZ(e) {
y1: Math.round(e.y1)
};
}
-function qZ(e) {
+function KZ(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function JZ(e, t) {
- if (!qZ(e)) return {
+function qZ(e, t) {
+ if (!KZ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return GZ(e);
+ if (t == null || !(t > 0)) return WZ(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return KZ({
+ return GZ({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function fwe(e, t) {
- if (!qZ(e) || !(t > 0)) return GZ(e);
+function hwe(e, t) {
+ if (!KZ(e) || !(t > 0)) return WZ(e);
let n = Math.min(e.width, e.height * t);
- return KZ({
+ return GZ({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function pwe(e, t, n) {
- if (!qZ(t) || !(n > 0)) return GZ(t);
- let r = YZ(e, t), i = JZ({
+function gwe(e, t, n) {
+ if (!KZ(t) || !(n > 0)) return WZ(t);
+ let r = JZ(e, t), i = qZ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -61312,8 +61323,8 @@ function pwe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function YZ(e, t, n = null, r = "width") {
- if (!qZ(t)) return {
+function JZ(e, t, n = null, r = "width") {
+ if (!KZ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -61322,43 +61333,43 @@ function YZ(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return KZ({
+ return GZ({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function XZ(e, t, n, r) {
+function YZ(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return KZ({
+ return GZ({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function ZZ(e, t, n, r = null) {
- if (!qZ(n) || !(t > 0)) return e;
+function XZ(e, t, n, r = null) {
+ if (!KZ(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return YZ({
+ return JZ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function mwe(e, t, n, r, i = null) {
+function _we(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return YZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return JZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function hwe(e, t) {
- return qZ(t) ? {
+function vwe(e, t) {
+ return KZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -61370,8 +61381,8 @@ function hwe(e, t) {
height: 0
};
}
-function gwe(e, t) {
- if (!qZ(t)) return {
+function ywe(e, t) {
+ if (!KZ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -61381,7 +61392,7 @@ function gwe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function _we(e, t) {
+function bwe(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -61390,15 +61401,15 @@ function _we(e, t) {
height: `${t.height / r * 100}%`
};
}
-function QZ(e, t, n) {
+function ZZ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function vwe(e, t) {
+function xwe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
// src/react/crop/crop-frame.tsx
-var ywe = .02, $Z = 1.08;
-function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var Swe = .02, QZ = 1.08;
+function $Z({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, P.useRef)(null), c = (0, P.useRef)(null), [l, u] = (0, P.useState)(!1), [d, f] = (0, P.useState)(null);
(0, P.useEffect)(() => {
u(!1);
@@ -61417,8 +61428,8 @@ function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: QZ(e, n.clientWidth, r.width),
- dy: QZ(t, n.clientHeight, r.height)
+ dx: ZZ(e, n.clientWidth, r.width),
+ dy: ZZ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -61435,22 +61446,22 @@ function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(XZ(n.box, o.dx, o.dy, r)) : i(mwe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ n.mode === "move" ? i(YZ(n.box, o.dx, o.dy, r)) : i(_we(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function g(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function _(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * ywe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * Swe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(XZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(ZZ(n, e.key === "-" ? 1 / $Z : $Z, r, t)));
+ o[e.key] ? (e.preventDefault(), i(YZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(XZ(n, e.key === "-" ? 1 / QZ : QZ, r, t)));
}
- let v = n && r ? hwe(YZ(n, r, t), r) : null, y = v ? vwe(v, d) : !1, b = v ? {
+ let v = n && r ? vwe(JZ(n, r, t), r) : null, y = v ? xwe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -61469,7 +61480,7 @@ function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- qZ({
+ KZ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -61508,7 +61519,7 @@ function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(ZZ(n, e.deltaY > 0 ? $Z : 1 / $Z, r, t));
+ n && r && i(XZ(n, e.deltaY > 0 ? QZ : 1 / QZ, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, F.jsx)("span", {
@@ -61530,13 +61541,13 @@ function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var bwe = "/api/avatar-choices", tQ = "/api/avatar-pick", xwe = "/api/avatar-code-cover", nQ = "/api/avatar-frame", Swe = "/avatar-choice", rQ = (e, t) => [
+var Cwe = "/api/avatar-choices", eQ = "/api/avatar-pick", wwe = "/api/avatar-code-cover", tQ = "/api/avatar-frame", Twe = "/avatar-choice", nQ = (e, t) => [
"avatar-choices",
e,
t
-], iQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, aQ = (e, t, n, r = "") => `${Swe}${iQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), oQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Cwe = (e, t, n) => B(bwe + iQ(e, t), n), wwe = (e) => V(xwe, { code: e });
-async function Twe(e, t, n) {
- let r = await V(nQ, {
+], rQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, iQ = (e, t, n, r = "") => `${Twe}${rQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), aQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Ewe = (e, t, n) => B(Cwe + rQ(e, t), n), Dwe = (e) => V(wwe, { code: e });
+async function Owe(e, t, n) {
+ let r = await V(tQ, {
kind: e,
id: t,
ref: n.ref
@@ -61549,12 +61560,12 @@ async function Twe(e, t, n) {
bases: r.bases
};
}
-var Ewe = (e, t, n) => V(nQ, {
+var kwe = (e, t, n) => V(tQ, {
kind: e,
id: t,
url: n
-}), Dwe = (e, t, n) => sQ(`${nQ}${iQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function sQ(e, t) {
+}), Awe = (e, t, n) => oQ(`${tQ}${rQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function oQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -61563,17 +61574,17 @@ async function sQ(e, t) {
if (n.ok) return r;
throw new or(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function cQ(e, t, n) {
+function sQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? pwe(e.focus, t, n) : JZ(t, n);
+ return e.focus && r ? gwe(e.focus, t, n) : qZ(t, n);
}
-var Owe = (e) => e.crop && qZ({
+var jwe = (e) => e.crop && KZ({
width: e.width,
height: e.height
});
-async function kwe(e, t, n) {
+async function Mwe(e, t, n) {
if (!("file" in n)) {
- await V(tQ, {
+ await V(eQ, {
kind: e,
id: t,
...n
@@ -61586,19 +61597,19 @@ async function kwe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await sQ(`${tQ}${iQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await oQ(`${eQ}${rQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var lQ = 2;
-function Awe(e, t) {
+var cQ = 2;
+function Nwe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, lQ).join("」「")}」`}${n.length > lQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, cQ).join("」「")}」`}${n.length > cQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var jwe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Mwe(e) {
- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${jwe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var Pwe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function Fwe(e) {
+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Pwe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var uQ = (e) => e.cast > 1, Nwe = (e) => uQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Pwe = {
+var lQ = (e) => e.cast > 1, Iwe = (e) => lQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Lwe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -61608,7 +61619,7 @@ var uQ = (e) => e.cast > 1, Nwe = (e) => uQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function Fwe(e) {
+function Rwe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -61619,19 +61630,19 @@ function Fwe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var Iwe = (e) => `${Pwe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (uQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), Lwe = 8, Rwe = 3 / 4;
-async function zwe(e, t, n) {
+var zwe = (e) => `${Lwe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (lQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), Bwe = 8, Vwe = 3 / 4;
+async function Hwe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await Twe(e, t, n.choice) };
- case "code": return { choice: await wwe(n.code) };
- case "url": return { choice: await Ewe(e, t, n.url) };
+ case "choice": return { choice: await Owe(e, t, n.choice) };
+ case "code": return { choice: await Dwe(n.code) };
+ case "url": return { choice: await kwe(e, t, n.url) };
case "file": return {
- choice: await Dwe(e, t, n.file),
+ choice: await Awe(e, t, n.file),
file: n.file
};
}
}
-function Bwe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function Uwe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -61641,17 +61652,17 @@ function Bwe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, F.jsx)(gpe, {
+ children: /* @__PURE__ */ (0, F.jsx)(ype, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, F.jsx)(Gz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Wz, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, F.jsx)(Vwe, {
+ children: /* @__PURE__ */ (0, F.jsx)(Wwe, {
kind: e,
entityId: t,
name: n,
@@ -61660,24 +61671,24 @@ function Bwe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, P.useRef)(null), o = _V(), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(null), p = rQ(e, t), m = (0, P.useRef)(!1), h = Pt({
+function Wwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, P.useRef)(null), o = gV(), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(null), p = nQ(e, t), m = (0, P.useRef)(!1), h = Pt({
queryKey: p,
- queryFn: ({ signal: n }) => Cwe(e, t, n),
+ queryFn: ({ signal: n }) => Ewe(e, t, n),
retryOnMount: !0,
refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,
refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1
});
(0, P.useEffect)(() => () => {
- m.current && H.removeQueries({ queryKey: rQ(e, t) });
+ m.current && H.removeQueries({ queryKey: nQ(e, t) });
}, [e, t]);
let g = Ft({
- mutationFn: (n) => kwe(e, t, n),
+ mutationFn: (n) => Mwe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = Ft({
- mutationFn: (n) => zwe(e, t, n),
+ mutationFn: (n) => Hwe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -61698,39 +61709,39 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, S = x?.choices ?? [], C = (g.error ? cr(g.error) : "") || (!d && _.error ? cr(_.error) : "") || (h.error ? cr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : Mwe(x), E = !!C && !!h.error && C === cr(h.error), D = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? cr(g.error) : "") || (!d && _.error ? cr(_.error) : "") || (h.error ? cr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : Fwe(x), E = !!C && !!h.error && C === cr(h.error), D = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, F.jsx)(Kz, { children: /* @__PURE__ */ (0, F.jsx)(Iz, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, F.jsx)(Gz, { children: /* @__PURE__ */ (0, F.jsx)(Fz, { className: "size-6" }) }),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(WI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(UI, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, F.jsxs)(oZ, {
+ }), !d && S.length ? /* @__PURE__ */ (0, F.jsxs)(aZ, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? Nwe(d.choice) : Awe(n, x)
+ children: d ? Iwe(d.choice) : Nwe(n, x)
}),
- T ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ T ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ C ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
action: E ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Qz(h.isFetching),
+ ...Zz(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -61740,14 +61751,14 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsx)(oI, {
- icon: wz,
+ /* @__PURE__ */ (0, F.jsx)(lI, {
+ icon: Cz,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, F.jsx)(Uwe, {
+ }), d ? /* @__PURE__ */ (0, F.jsx)(Kwe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -61767,7 +61778,7 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": h.isPending || void 0,
"data-skeleton": h.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: h.isPending ? Array.from({ length: Lwe }, (e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: Bwe }, (e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -61780,8 +61791,8 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Iwe(n),
- ...Qz(w),
+ title: zwe(n),
+ ...Zz(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -61790,8 +61801,8 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, F.jsx)(Hwe, {
- src: aQ(e, t, n.ref, oQ(n, n.ref)),
+ /* @__PURE__ */ (0, F.jsx)(Gwe, {
+ src: iQ(e, t, n.ref, aQ(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, F.jsx)("span", {
@@ -61800,15 +61811,15 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, F.jsx)(oZ, {
+ children: /* @__PURE__ */ (0, F.jsx)(aZ, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- uQ(n) ? /* @__PURE__ */ (0, F.jsx)("span", {
+ lQ(n) ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, F.jsxs)(oZ, {
+ children: /* @__PURE__ */ (0, F.jsxs)(aZ, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -61830,7 +61841,7 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(Wz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Uz, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -61840,7 +61851,7 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...Qz(v("code")),
+ ...Zz(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -61849,7 +61860,7 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...Qz(v("file")),
+ ...Zz(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, F.jsx)("input", {
@@ -61869,7 +61880,7 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(Wz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Uz, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -61879,7 +61890,7 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
disabled: !s.trim(),
- ...Qz(v("url")),
+ ...Zz(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -61893,7 +61904,7 @@ function Vwe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Hwe({ src: e, choice: t }) {
+function Gwe({ src: e, choice: t }) {
let n = (0, P.useRef)(null), [r, i] = (0, P.useState)(!1), [a, o] = (0, P.useState)(!1);
(0, P.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -61901,7 +61912,7 @@ function Hwe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = Owe(t) ? _we(cQ(t, s, Rwe), s) : null, l = r || a ? !0 : void 0;
+ }, c = jwe(t) ? bwe(sQ(t, s, Vwe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -61927,23 +61938,23 @@ function Hwe({ src: e, choice: t }) {
})]
});
}
-function Uwe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, P.useState)(o[0]), [l, u] = (0, P.useState)(null), [d, f] = (0, P.useState)(null), p = oQ(n, s), m = aQ(e, t, s, p), h = _V();
+function Kwe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, P.useState)(o[0]), [l, u] = (0, P.useState)(null), [d, f] = (0, P.useState)(null), p = aQ(n, s), m = iQ(e, t, s, p), h = gV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? gwe(d, l) : null;
+ let _ = d && l ? ywe(d, l) : null;
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [m ? /* @__PURE__ */ (0, F.jsx)(eQ, {
+ children: [m ? /* @__PURE__ */ (0, F.jsx)($Z, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), qZ(e) && f(s === n.ref ? cQ(n, e, 1) : JZ(e, 1));
+ u(e), KZ(e) && f(s === n.ref ? sQ(n, e, 1) : qZ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
@@ -61957,7 +61968,7 @@ function Uwe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => g(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: Fwe(e)
+ children: Rwe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -61977,12 +61988,12 @@ function Uwe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: i,
- ...Qz(r),
+ ...Zz(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Qz(r),
+ ...Zz(r),
onClick: () => {
r || a(null);
},
@@ -61990,7 +62001,7 @@ function Uwe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, F.jsx)(q, {
disabled: !d || !l,
- ...Qz(r),
+ ...Zz(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -62005,9 +62016,9 @@ function Uwe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
})] });
}
// src/react/components/source-picture.tsx
-var dQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function fQ({ item: e, image: t, thumbnail: n = !1 }) {
- let [r, i] = (0, P.useState)(0), [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(""), l = (0, P.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? dQ(e.code, t, r) : u ? co(e, !0) : e.cover_url || "";
+var uQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function dQ({ item: e, image: t, thumbnail: n = !1 }) {
+ let [r, i] = (0, P.useState)(0), [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(""), l = (0, P.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? uQ(e.code, t, r) : u ? co(e, !0) : e.cover_url || "";
if ((0, P.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -62026,14 +62037,14 @@ function fQ({ item: e, image: t, thumbnail: n = !1 }) {
})
}) : n ? /* @__PURE__ */ (0, F.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, F.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, F.jsx)(qz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
children: "封面未取得"
})
});
if (s === p) return n ? /* @__PURE__ */ (0, F.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, F.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, F.jsx)(qz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -62088,8 +62099,8 @@ function fQ({ item: e, image: t, thumbnail: n = !1 }) {
] });
}
// src/react/components/source-avatar.tsx
-function pQ({ code: e, person: t, detail: n = !1 }) {
- iI();
+function fQ({ code: e, person: t, detail: n = !1 }) {
+ sI();
let r = (0, P.useRef)(null), [i, a] = (0, P.useState)(n || typeof IntersectionObserver > "u");
(0, P.useEffect)(() => {
if (!r.current || i) return;
@@ -62103,7 +62114,7 @@ function pQ({ code: e, person: t, detail: n = !1 }) {
"data-source-initial": "",
children: $n(tn("performer", t.name))
}), i && t.source_actor_id ? /* @__PURE__ */ (0, F.jsx)("img", {
- src: dQ(e, `actor:${t.source_actor_id}`),
+ src: uQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -62113,8 +62124,8 @@ function pQ({ code: e, person: t, detail: n = !1 }) {
}) : o;
}
// src/react/feed-new/feed-new-row.tsx
-function mQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, P.useContext)(LU), o = (0, P.useRef)(null), [s, c] = (0, P.useState)([]), l = e?.items.length ? e.html : "";
+function pQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, P.useContext)(IU), o = (0, P.useRef)(null), [s, c] = (0, P.useState)([]), l = e?.items.length ? e.html : "";
(0, P.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -62146,7 +62157,7 @@ function mQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(pQ, {
+ }), s.map((e, t) => (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(fQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -62155,7 +62166,7 @@ function mQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}), e, `${l.length}:${t}`))] }) : null;
}
// src/react/entity-hero/glyph.tsx
-function hQ({ name: e }) {
+function mQ({ name: e }) {
let { wide: t, viewBox: n } = Sn(e);
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: n,
@@ -62165,20 +62176,20 @@ function hQ({ name: e }) {
});
}
// src/react/entity-hero/hero-pop.tsx
-function gQ(e, t) {
+function hQ(e, t) {
t.style.removeProperty("max-height");
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8, a = innerHeight - 8 - i, o = n.top - 16, s = r.height <= a || r.height > o && a >= o, c = Math.max(0, s ? a : o);
r.height > c && (t.style.maxHeight = `${c}px`), t.style.top = `${s ? i : n.top - 8 - Math.min(r.height, c)}px`;
}
-var _Q = (e) => !!e?.isConnected && e.matches(":popover-open");
-function vQ(e, t, n, r) {
+var gQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function _Q(e, t, n, r) {
let i = (0, P.useRef)(r);
i.current = r, (0, P.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && _Q(n.current) ? gQ(t.current, n.current) : i.current();
+ t.current && gQ(n.current) ? hQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -62192,17 +62203,17 @@ function vQ(e, t, n, r) {
n
]);
}
-function yQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function vQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, P.useRef)(null), s = (0, P.useRef)(null), [c, l] = (0, P.useState)(!1), u = (0, P.useRef)(!1), d = (0, P.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, _Q(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, gQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !_Q(s.current) && (s.current.showPopover(), gQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !gQ(s.current) && (s.current.showPopover(), hQ(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
u.current || o.current?.matches(":hover,:focus-visible") || s.current?.matches(":hover") || f();
}, 150);
};
- return vQ(c, o, s, f), (0, P.useEffect)(() => {
+ return _Q(c, o, s, f), (0, P.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -62228,7 +62239,7 @@ function yQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && _Q(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && gQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -62246,16 +62257,16 @@ function yQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function Wwe({ following: e, busy: t, onToggle: n, tip: r }) {
+function qwe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), [s, c] = (0, P.useState)(!1), l = (0, P.useRef)(!1), u = () => {
- _Q(o.current) && o.current.hidePopover(), c(!1);
+ gQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !_Q(o.current) && (o.current.showPopover(), gQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !gQ(o.current) && (o.current.showPopover(), hQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return vQ(s, i, o, () => c(!1)), (0, P.useEffect)(() => {
- i.current && _Q(o.current) && gQ(i.current, o.current);
+ return _Q(s, i, o, () => c(!1)), (0, P.useEffect)(() => {
+ i.current && gQ(o.current) && hQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, F.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -62264,7 +62275,7 @@ function Wwe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, F.jsx)(hQ, { name: "rss" }),
+ /* @__PURE__ */ (0, F.jsx)(mQ, { name: "rss" }),
/* @__PURE__ */ (0, F.jsx)("input", {
ref: a,
type: "checkbox",
@@ -62298,29 +62309,29 @@ function Wwe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function Gwe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function Jwe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, P.useState)(!1), o = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, F.jsxs)(zde, {
+ }, []), /* @__PURE__ */ (0, F.jsxs)(Hde, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, F.jsx)(HI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(VI, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, F.jsx)(hQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, F.jsx)(hR, {
+ children: /* @__PURE__ */ (0, F.jsx)(mQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, F.jsx)(mR, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: lV,
+ className: cV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, F.jsxs)(Vde, {
+ children: /* @__PURE__ */ (0, F.jsxs)(Wde, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(CR, {
+ /* @__PURE__ */ (0, F.jsx)(SR, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -62328,34 +62339,34 @@ function Gwe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, F.jsxs)(TR, {
+ children: t.map((e) => /* @__PURE__ */ (0, F.jsxs)(wR, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "check" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.label })]
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "check" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, F.jsx)(Sde, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, F.jsx)(CR, { children: /* @__PURE__ */ (0, F.jsxs)(TR, {
+ /* @__PURE__ */ (0, F.jsx)(Tde, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, F.jsx)(SR, { children: /* @__PURE__ */ (0, F.jsxs)(wR, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "plus" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "plus" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var Kwe = (e) => e === "studio" || e === "agency", bQ = (e) => e === "performer" || e === "creator", qwe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function Jwe(e, t = "zh-CN") {
+var Ywe = (e) => e === "studio" || e === "agency", yQ = (e) => e === "performer" || e === "creator", Xwe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function Zwe(e, t = "zh-CN") {
return e.name_display ? e.name_display.choices[t] : [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t).map((e) => ({
value: e,
label: e
}));
}
-function xQ(e) {
+function bQ(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -62367,13 +62378,13 @@ function xQ(e) {
linked: !1
} : null;
}
-function SQ(e, t) {
+function xQ(e, t) {
let n = Gn(e, "performer"), r = Hn(t);
return r && [e.label, n].map(Hn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var CQ = (e) => ({ site: Rn(e) });
-function Ywe(e, t) {
- let n = xQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var SQ = (e) => ({ site: Rn(e) });
+function Qwe(e, t) {
+ let n = bQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -62383,7 +62394,7 @@ function Ywe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${SQ(e, n)} · ${t}`
+ title: `${xQ(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -62391,11 +62402,11 @@ function Ywe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (bQ(t) && e.link_kind !== "social") return {
+ if (yQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: SQ(e, n),
- mark: CQ(e)
+ title: xQ(e, n),
+ mark: SQ(e)
};
if (e.link_kind === "social") {
let t = Vn(r);
@@ -62403,7 +62414,7 @@ function Ywe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : CQ(e)
+ mark: t ? { brand: t } : SQ(e)
};
}
return {
@@ -62411,12 +62422,12 @@ function Ywe(e, t) {
url: r,
title: e.label || "",
text: Gn(e, t, i),
- mark: CQ(e)
+ mark: SQ(e)
};
});
- return [...r, ...Xwe(a)];
+ return [...r, ...$we(a)];
}
-function Xwe(e) {
+function $we(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -62424,8 +62435,8 @@ function Xwe(e) {
sources: t.map((e) => e.label)
}];
}
-var wQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function Zwe(e) {
+var CQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function eTe(e) {
return [
[
"legal_name",
@@ -62481,7 +62492,7 @@ function Zwe(e) {
}]
}] : []);
}
-function Qwe(e) {
+function tTe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -62538,14 +62549,14 @@ function Qwe(e) {
tags: e.tags
}), t;
}
-function TQ(e, t = 4) {
+function wQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function $we(e) {
+function nTe(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -62555,7 +62566,7 @@ function $we(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function eTe(e) {
+function rTe(e) {
return ho({
id: e.id,
hasImage: e.has_image,
@@ -62566,9 +62577,9 @@ function eTe(e) {
standIn: e.avatar_stand_in
});
}
-function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- iI();
- let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = bQ(e), u = Kwe(e), d = l ? Qwe(n.profile) : u ? Zwe(n.company_profile) : [], f = Ywe(n, e), p = wQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, P.useRef)(null), g = (0, P.useRef)(null);
+function iTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ sI();
+ let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = yQ(e), u = Ywe(e), d = l ? tTe(n.profile) : u ? eTe(n.company_profile) : [], f = Qwe(n, e), p = CQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, P.useRef)(null), g = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
o.wireScroller(h.current);
}, [o, f.length]), (0, P.useEffect)(() => {
@@ -62581,7 +62592,7 @@ function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, F.jsx)(nTe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(aTe, {
kind: e,
name: s,
helpers: o,
@@ -62589,7 +62600,7 @@ function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: u
}), l && n.id ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, F.jsx)(Bwe, {
+ children: /* @__PURE__ */ (0, F.jsx)(Uwe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -62604,17 +62615,17 @@ function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, F.jsx)("h2", {
- lang: mF(s),
+ lang: UF(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, F.jsx)(Gwe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, F.jsx)(Jwe, {
current: n.canonical_name,
- choices: Jwe(n, Yt()),
+ choices: Zwe(n, Yt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, F.jsx)(uB, { item: {
+ n.id ? /* @__PURE__ */ (0, F.jsx)(lB, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -62628,7 +62639,7 @@ function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
className: "text-caption-1-regular text-text-secondary",
children: c
}) : null,
- /* @__PURE__ */ (0, F.jsx)(rTe, {
+ /* @__PURE__ */ (0, F.jsx)(oTe, {
kind: e,
entity: n,
actions: a
@@ -62649,14 +62660,14 @@ function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
f.length ? /* @__PURE__ */ (0, F.jsx)("div", {
ref: h,
"data-entity-links": "",
- children: f.map((e, t) => /* @__PURE__ */ (0, F.jsx)(lTe, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, F.jsx)(fTe, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, F.jsx)(uTe, {
+ p.length || n.feed ? /* @__PURE__ */ (0, F.jsx)(pTe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, F.jsx)(oTe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, F.jsx)(lTe, {
follow: n.follow,
displayName: s,
actions: a
@@ -62665,11 +62676,11 @@ function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
d.length ? /* @__PURE__ */ (0, F.jsx)("dl", {
"data-entity-facts": "",
- children: d.map((e) => /* @__PURE__ */ (0, F.jsx)(sTe, {
+ children: d.map((e) => /* @__PURE__ */ (0, F.jsx)(uTe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, F.jsx)(cTe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, F.jsx)(dTe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -62688,7 +62699,7 @@ function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${z($n(tn("performer", e.k, e.id)))}</span>${eTe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z($n(tn("performer", e.k, e.id)))}</span>${rTe(e)}` }
}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-hero-costar-name": "",
children: tn("performer", e.k, e.id)
@@ -62696,14 +62707,14 @@ function tTe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(mQ, {
+ }), i ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(pQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function nTe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function aTe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let a = (0, P.useRef)(null), [o] = (0, P.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${z($n(t))}</span>`);
return (0, P.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-portrait-initial]");
@@ -62717,8 +62728,8 @@ function nTe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function rTe({ kind: e, entity: t, actions: n }) {
- let r = xQ(t), i = (e, t) => (r) => {
+function oTe({ kind: e, entity: t, actions: n }) {
+ let r = bQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, F.jsx)("a", {
href: Nn("agency", r.name, r.id),
@@ -62727,44 +62738,44 @@ function rTe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = t.name_display?.groups[Yt()] ?? t.name_groups, r = $we(e);
+ let e = t.name_display?.groups[Yt()] ?? t.name_groups, r = nTe(e);
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, F.jsx)(EQ, { entity: t }),
+ /* @__PURE__ */ (0, F.jsx)(TQ, { entity: t }),
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "film" }), /* @__PURE__ */ (0, F.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "film" }), /* @__PURE__ */ (0, F.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, F.jsx)(aTe, {
+ t.follow?.key ? /* @__PURE__ */ (0, F.jsx)(cTe, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "briefcase" }), /* @__PURE__ */ (0, F.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "briefcase" }), /* @__PURE__ */ (0, F.jsx)("span", { children: a })]
}) : null,
r ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, F.jsx)(hQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, F.jsx)(mQ, { name: "id-card" }),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, F.jsx)("span", {
- lang: mF(e),
+ lang: UF(e),
children: e
}, t))
}),
- r.rest > 0 ? /* @__PURE__ */ (0, F.jsx)(yQ, {
+ r.rest > 0 ? /* @__PURE__ */ (0, F.jsx)(vQ, {
id: "entityAliasPop",
hook: "alias",
rest: r.rest,
label: `另外 ${r.rest.toLocaleString()} 个别名`,
heading: `${r.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, F.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, F.jsx)(DQ, {
+ children: /* @__PURE__ */ (0, F.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, F.jsx)(EQ, {
label: e.label,
names: e.names
}, t)) })
@@ -62786,61 +62797,61 @@ function rTe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, F.jsx)(EQ, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, F.jsx)(TQ, { entity: t }) : null,
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "film" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "film" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "briefcase" }), /* @__PURE__ */ (0, F.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "briefcase" }), /* @__PURE__ */ (0, F.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "clapperboard" }), /* @__PURE__ */ (0, F.jsx)("a", {
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "clapperboard" }), /* @__PURE__ */ (0, F.jsx)("a", {
href: Nn("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, F.jsx)(iTe, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, F.jsx)(sTe, { aliases: s }) : null
]
});
}
-function iTe({ aliases: e }) {
- let { shown: t, rest: n } = TQ(e, 3);
+function sTe({ aliases: e }) {
+ let { shown: t, rest: n } = wQ(e, 3);
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(hQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, F.jsx)(mQ, { name: "id-card" }),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, F.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, F.jsx)(yQ, {
+ n ? /* @__PURE__ */ (0, F.jsx)(vQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, F.jsx)("dl", { children: /* @__PURE__ */ (0, F.jsx)(DQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, F.jsx)("dl", { children: /* @__PURE__ */ (0, F.jsx)(EQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function aTe({ follow: e, actions: t }) {
+function cTe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "rss" }), /* @__PURE__ */ (0, F.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "rss" }), /* @__PURE__ */ (0, F.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -62849,7 +62860,7 @@ function aTe({ follow: e, actions: t }) {
})]
});
}
-function oTe({ follow: e, displayName: t, actions: n }) {
+function lTe({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, P.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -62863,12 +62874,12 @@ function oTe({ follow: e, displayName: t, actions: n }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, F.jsxs)(qz, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, F.jsxs)(Kz, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
- ...Qz(r === e.key),
+ ...Zz(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -62883,37 +62894,37 @@ function oTe({ follow: e, displayName: t, actions: n }) {
}, e.key))
});
}
-function EQ({ entity: e }) {
+function TQ({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function DQ({ label: e, names: t }) {
+function EQ({ label: e, names: t }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [e ? /* @__PURE__ */ (0, F.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, F.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
"data-pop-name": "",
- lang: mF(e.name),
+ lang: UF(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, F.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function sTe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("dt", { children: [/* @__PURE__ */ (0, F.jsx)(hQ, { name: e }), t] }), /* @__PURE__ */ (0, F.jsx)("dd", {
+function uTe({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("dt", { children: [/* @__PURE__ */ (0, F.jsx)(mQ, { name: e }), t] }), /* @__PURE__ */ (0, F.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function cTe({ tags: e }) {
- let { shown: t, rest: n } = TQ(e);
+function dTe({ tags: e }) {
+ let { shown: t, rest: n } = wQ(e);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, F.jsx)(yQ, {
+ }, e)), n ? /* @__PURE__ */ (0, F.jsx)(vQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -62929,10 +62940,10 @@ function cTe({ tags: e }) {
})
}) : null] });
}
-function OQ({ mark: e }) {
+function DQ({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, F.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, F.jsx)(hQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, F.jsx)(mQ, { name: e.brand })
});
let t = R("globe") + ("site" in e ? `<img src="${z(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, F.jsx)("span", {
@@ -62940,7 +62951,7 @@ function OQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function lTe({ link: e }) {
+function fTe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, F.jsx)("a", {
"data-link": "icon",
@@ -62949,19 +62960,19 @@ function lTe({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, F.jsx)(OQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, F.jsx)(DQ, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, F.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, F.jsx)(OQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, F.jsx)(DQ, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, F.jsx)(OQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(DQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -62973,7 +62984,7 @@ function lTe({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, F.jsx)(OQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, F.jsx)(DQ, { mark: e.mark }),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -62988,7 +62999,7 @@ function lTe({ link: e }) {
});
}
}
-function uTe({ entity: e, actions: t, helpers: n }) {
+function pTe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, P.useState)(!!e.feed?.following), [a, o] = (0, P.useState)(!1), s = (0, P.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -63006,33 +63017,33 @@ function uTe({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entry-marks": "",
- children: [wQ(e).map((e, t) => /* @__PURE__ */ (0, F.jsxs)("a", {
+ children: [CQ(e).map((e, t) => /* @__PURE__ */ (0, F.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, F.jsx)(hQ, { name: e.mark }) : /* @__PURE__ */ (0, F.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, F.jsx)(mQ, { name: e.mark }) : /* @__PURE__ */ (0, F.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, F.jsx)(Wwe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, F.jsx)(qwe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: qwe(r)
+ tip: Xwe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var dTe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function fTe(e, t, n) {
+var mTe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function hTe(e, t, n) {
let [r, i] = (0, P.useState)(() => ga(e));
r.author !== e && i(ga(e));
let [a, o] = (0, P.useState)({
@@ -63111,7 +63122,7 @@ function fTe(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: $i,
- seed: dTe()
+ seed: mTe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -63141,8 +63152,8 @@ function fTe(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function pTe(e) {
- let { kind: t, name: n } = e, r = Pt(VX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function gTe(e) {
+ let { kind: t, name: n } = e, r = Pt(BX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -63160,17 +63171,17 @@ function pTe(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, F.jsx)(tG, {
+ ]), r.isError ? /* @__PURE__ */ (0, F.jsx)(nG, {
message: cr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, F.jsx)(gTe, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, F.jsx)(yTe, {
...e,
entity: r.data
});
}
-function kQ(e) {
+function OQ(e) {
let [t, n] = (0, P.useState)({
key: e,
n: 1
@@ -63182,22 +63193,22 @@ function kQ(e) {
};
return n(r), r.n;
}
-var mTe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function hTe(e, t) {
+var _Te = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function vTe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function gTe(e) {
- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = It(HX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || UX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function yTe(e) {
+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = It(VX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || HX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
media: "online",
set: 0
- } : PX, [y, b] = (0, P.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, P.useState)(x);
+ } : NX, [y, b] = (0, P.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, P.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = fTe(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = hTe(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, P.useState)(0), k = BX(e), A = Pt(k), j = kQ(JSON.stringify([k.queryKey, D])), [M] = (0, P.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, P.useState)(0), k = zX(e), A = Pt(k), j = OQ(JSON.stringify([k.queryKey, D])), [M] = (0, P.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
(0, P.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
@@ -63207,26 +63218,26 @@ function gTe(e) {
}, [e.layout, M]), te = {
jav: e.jav,
seed: e.seed
- }, ne = (0, P.useCallback)((e, r, a) => zX(t, n, i, te, e, r, a), [j]), [N, re] = (0, P.useState)({}), ie = v.set, ae = N[ie] || "", oe = It({
- ...HX(t, n, ie, ae),
+ }, ne = (0, P.useCallback)((e, r, a) => RX(t, n, i, te, e, r, a), [j]), [N, re] = (0, P.useState)({}), ie = v.set, ae = N[ie] || "", oe = It({
+ ...VX(t, n, ie, ae),
enabled: w === "photos"
- }), se = oe.data?.pages[0], ce = kQ(JSON.stringify(IX(t, n, ie, ae))), le = (0, P.useMemo)(() => {
+ }), se = oe.data?.pages[0], ce = OQ(JSON.stringify(FX(t, n, ie, ae))), le = (0, P.useMemo)(() => {
let e = oe.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: ce,
- codeSets: t.id ? [] : UX(t),
+ codeSets: t.id ? [] : HX(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [oe.data, ce]), ue = oe.refetch, de = oe.fetchNextPage, fe = Pt({
- ...jX(d, o.feedRowHtml),
+ ...AX(d, o.feedRowHtml),
enabled: !!d
}), pe = (0, P.useRef)(e.feedRevision);
(0, P.useEffect)(() => {
- pe.current !== e.feedRevision && (pe.current = e.feedRevision, H.invalidateQueries({ queryKey: AX(d) }));
+ pe.current !== e.feedRevision && (pe.current = e.feedRevision, H.invalidateQueries({ queryKey: kX(d) }));
}, [d, e.feedRevision]);
let me = !!A.data;
(0, P.useEffect)(() => {
@@ -63245,7 +63256,7 @@ function gTe(e) {
he.current = !1;
}, []);
let I = (0, P.useCallback)(async () => {
- await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: FX(t, n) }), await H.invalidateQueries({ queryKey: [
+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: PX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -63279,7 +63290,7 @@ function gTe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => H.setQueryData(FX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(PX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -63333,10 +63344,10 @@ function gTe(e) {
let e = await wn("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- he.current && await H.invalidateQueries({ queryKey: AX(d) });
+ he.current && await H.invalidateQueries({ queryKey: kX(d) });
})();
},
- feedAction: MX,
+ feedAction: jX,
avatarPicked: () => {
s.avatarChanged(), I().then(() => {
he.current && O((e) => e + 1);
@@ -63384,19 +63395,19 @@ function gTe(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : PX));
+ } : NX));
},
setState: (e) => s.route({
...i,
state: e
- }, PX),
+ }, NX),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = BX({
+ let r = s.reshuffleVideos(), a = zX({
kind: t,
name: n,
filters: {
@@ -63410,7 +63421,7 @@ function gTe(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = mTe(), a = await H.fetchInfiniteQuery(HX(t, n, ie, r)).catch(() => null);
+ let r = _Te(), a = await H.fetchInfiniteQuery(VX(t, n, ie, r)).catch(() => null);
he.current && a?.pages[0] && !a.pages[0].error && re((e) => ({
...e,
[ie]: r
@@ -63445,7 +63456,7 @@ function gTe(e) {
k: e.k,
label: Zl(e.k),
n: e.n,
- selected: XSe(i.tag, e.k)
+ selected: $Se(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -63480,14 +63491,14 @@ function gTe(e) {
creator: "",
studio: "",
owner: ""
- }, PX), Ne = "", Pe = !1;
+ }, NX), Ne = "", Pe = !1;
if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
Pe = !A.data;
- let e = LX(i.tag).length;
+ let e = IX(i.tag).length;
Ne = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else se && !se.error ? Ne = De ? `${se.title} · ${(se.total || 0).toLocaleString()} 张` : hTe(se, UX(se).length) : Pe = oe.isPending;
+ } else se && !se.error ? Ne = De ? `${se.title} · ${(se.total || 0).toLocaleString()} 张` : vTe(se, HX(se).length) : Pe = oe.isPending;
let Fe = (0, P.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -63504,7 +63515,7 @@ function gTe(e) {
u
]);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(tTe, {
+ /* @__PURE__ */ (0, F.jsx)(iTe, {
kind: t,
name: n,
entity: r,
@@ -63514,7 +63525,7 @@ function gTe(e) {
actions: be,
helpers: xe
}, D),
- (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(TW, {
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(EW, {
kind: t,
name: n,
view: w,
@@ -63531,9 +63542,9 @@ function gTe(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(k_e, {
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(M_e, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, F.jsx)(lwe, {
+ children: w === "online" ? /* @__PURE__ */ (0, F.jsx)(fwe, {
view: T.view,
media: T.media,
result: T.result,
@@ -63547,16 +63558,16 @@ function gTe(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }, T.key) : w === "videos" && A.isError ? /* @__PURE__ */ (0, F.jsx)(tG, {
+ }, T.key) : w === "videos" && A.isError ? /* @__PURE__ */ (0, F.jsx)(nG, {
message: cr(A.error),
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, F.jsx)(_Te, {
+ }) : je ? /* @__PURE__ */ (0, F.jsx)(bTe, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, F.jsx)(kCe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(MCe, {
kind: t,
name: n,
view: w,
@@ -63588,9 +63599,9 @@ function gTe(e) {
}), c.body)
] });
}
-function _Te({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, F.jsx)(Jz, {
- icon: Xz("search"),
+function bTe({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ icon: Yz("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
@@ -63598,14 +63609,14 @@ function _Te({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, F.jsx)(Jz, {
- icon: Xz("film"),
+ }) : /* @__PURE__ */ (0, F.jsx)(qz, {
+ icon: Yz("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, F.jsx)(SI, {
+ }) : /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -63614,30 +63625,30 @@ function _Te({ filtered: e, onShowAll: t, onOnline: n }) {
});
}
// src/react/diagnostics/diagnostics.ts
-var AQ = ["diagnostics"], jQ = (e) => B("/api/diagnostics", e);
-async function vTe(e) {
+var kQ = ["diagnostics"], AQ = (e) => B("/api/diagnostics", e);
+async function xTe(e) {
await H.fetchQuery({
- queryKey: AQ,
- queryFn: () => jQ(e),
+ queryKey: kQ,
+ queryFn: () => AQ(e),
staleTime: 1e4
});
}
// src/react/feed-new/feed-new-page.tsx
-function yTe({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Pt(jX(null, n.feedRowHtml)), a = (0, P.useRef)(t);
+function STe({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Pt(AX(null, n.feedRowHtml)), a = (0, P.useRef)(t);
return (0, P.useEffect)(() => {
- a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: AX(null) }));
- }, [t]), (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(mQ, {
+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: kX(null) }));
+ }, [t]), (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(pQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: MX,
+ act: jX,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var bTe = Xz("search");
-function MQ({ label: e, value: t, onQuery: n }) {
+var CTe = Yz("search");
+function jQ({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, P.useState)(t), a = (0, P.useRef)(!1), o = (0, P.useRef)(void 0);
(0, P.useEffect)(() => {
clearTimeout(o.current), i(t);
@@ -63654,15 +63665,15 @@ function MQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, F.jsx)(Vz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Bz, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, F.jsx)(Uz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Hz, {
type: "search",
- leadingIcon: bTe,
+ leadingIcon: CTe,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
@@ -63674,7 +63685,7 @@ function MQ({ label: e, value: t, onQuery: n }) {
});
}
// src/react/index/tag-pagination.ts
-function NQ(e) {
+function MQ(e) {
let [t, n] = (0, P.useState)({
filter: e,
pageIndex: 0,
@@ -63691,7 +63702,7 @@ function NQ(e) {
}), [e])
};
}
-function PQ(e, t, n) {
+function NQ(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
(0, P.useEffect)(() => {
if (e === void 0) return;
@@ -63708,16 +63719,16 @@ function PQ(e, t, n) {
]);
}
// src/react/components/board-tabs.tsx
-function FQ({ value: e }) {
+function PQ({ value: e }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var xTe = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function IQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, P.useRef)(null), o = lI(a);
+var wTe = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function FQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, P.useRef)(null), o = fI(a);
return (0, P.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -63726,7 +63737,7 @@ function IQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, F.jsx)(uF, {
+ }, [t]), /* @__PURE__ */ (0, F.jsx)(zF, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -63741,7 +63752,7 @@ function IQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? Xz(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? Yz(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "tab",
@@ -63750,7 +63761,7 @@ function IQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
"data-pill-selected": i ? "" : void 0,
"data-pill-variant": "gray",
tabIndex: i ? 0 : -1,
- className: xTe,
+ className: wTe,
onClick: () => {
i || r(e.value);
},
@@ -63760,11 +63771,11 @@ function IQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/index/index-tags.tsx
-var LQ = () => /* @__PURE__ */ (0, F.jsx)("span", {
+var IQ = () => /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), RQ = Xz("pencil"), zQ = (e, t) => ({
+}), LQ = Yz("pencil"), RQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -63773,7 +63784,7 @@ var LQ = () => /* @__PURE__ */ (0, F.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function STe({ tag: e, actions: t }) {
+function TTe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -63782,13 +63793,13 @@ function STe({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": rZ(t.online, e.cat),
+ "data-tag-cat": nZ(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 flex-1 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, F.jsx)(LQ, {}),
+ /* @__PURE__ */ (0, F.jsx)(IQ, {}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -63799,32 +63810,32 @@ function STe({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, F.jsx)(uB, { item: zQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, F.jsx)(lB, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, F.jsx)(lB, { item: RQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, F.jsx)(cB, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, F.jsx)(RQ, {})
+ children: /* @__PURE__ */ (0, F.jsx)(LQ, {})
}) : null
]
});
}
-function BQ({ groups: e, actions: t }) {
+function zQ({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, F.jsxs)("section", {
"data-alpha-group": r,
- className: QH({
+ className: ZH({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, F.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, F.jsx)(FQ, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, F.jsx)(PQ, { value: n.length })]
}), /* @__PURE__ */ (0, F.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, F.jsx)(STe, {
+ children: n.map((e) => /* @__PURE__ */ (0, F.jsx)(TTe, {
tag: e,
actions: t
}, e.k))
@@ -63832,26 +63843,26 @@ function BQ({ groups: e, actions: t }) {
}, e))
});
}
-var CTe = "\xA0";
-function VQ({ tags: e, actions: t }) {
+var ETe = "\xA0";
+function BQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("span", {
"data-tag-token": "",
- "data-tag-cat": rZ(t.online, e.cat),
+ "data-tag-cat": nZ(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": rZ(t.online, e.cat),
+ "data-tag-cat": nZ(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + CTe
+ children: e.label + ETe
}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -63860,16 +63871,16 @@ function VQ({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, F.jsx)(uB, { item: zQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, F.jsx)(lB, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, F.jsx)(lB, { item: RQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, F.jsx)(cB, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, F.jsx)(RQ, {})
+ children: /* @__PURE__ */ (0, F.jsx)(LQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var wTe = [[
+var DTe = [[
"cloud",
"标签云",
"tags"
@@ -63878,9 +63889,9 @@ var wTe = [[
"字母表",
"text-aa"
]];
-function HQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = lI();
- return /* @__PURE__ */ (0, F.jsx)(pI, {
+function VQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
+ let d = fI();
+ return /* @__PURE__ */ (0, F.jsx)(mI, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [l ? /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -63902,10 +63913,10 @@ function HQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
}) : null]
}) : null, e.map(([e, r]) => /* @__PURE__ */ (0, F.jsxs)(hI, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : rZ(n, e),
+ "data-tag-cat": e === "all" ? "all" : nZ(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, F.jsx)(LQ, {}), r]
+ children: [/* @__PURE__ */ (0, F.jsx)(IQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsx)("span", {
@@ -63926,19 +63937,19 @@ function HQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, F.jsx)(FR, {
+ /* @__PURE__ */ (0, F.jsx)(PR, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${YU}`,
- children: wTe.map(([e, t, n]) => {
- let r = Xz(n);
- return /* @__PURE__ */ (0, F.jsx)(IR, {
+ className: `ml-auto ${JU}`,
+ children: DTe.map(([e, t, n]) => {
+ let r = Yz(n);
+ return /* @__PURE__ */ (0, F.jsx)(FR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: XU,
+ className: YU,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
@@ -63950,13 +63961,13 @@ function HQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function TTe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, F.jsxs)(Bk, {
+function OTe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, F.jsxs)(Jk, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, F.jsx)(gV, {
+ /* @__PURE__ */ (0, F.jsx)(hV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, F.jsxs)("span", {
@@ -63987,29 +63998,29 @@ function TTe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
});
}
// src/react/toaster.tsx
-var UQ = (e, t) => /* @__PURE__ */ (0, F.jsx)("span", {
+var HQ = (e, t) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), WQ = null, GQ = { "--floating-radius": "var(--radius-2xl)" };
-function KQ() {
- let e = WQ;
- WQ = null, e?.root.unmount();
-}
-var qQ = (e, t) => {
- if (WQ?.host === e) return;
- KQ();
+}), UQ = null, WQ = { "--floating-radius": "var(--radius-2xl)" };
+function GQ() {
+ let e = UQ;
+ UQ = null, e?.root.unmount();
+}
+var KQ = (e, t) => {
+ if (UQ?.host === e) return;
+ GQ();
let n = (0, Rt.createRoot)(e);
- WQ = {
+ UQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, F.jsxs)(pH, { children: [/* @__PURE__ */ (0, F.jsx)(xH, {
+ }, n.render(/* @__PURE__ */ (0, F.jsxs)(fH, { children: [/* @__PURE__ */ (0, F.jsx)(bH, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...GQ,
+ ...WQ,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
@@ -64024,16 +64035,16 @@ var qQ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: UQ(t.success, !0),
- error: UQ(t.error, !1)
+ success: HQ(t.success, !0),
+ error: HQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, F.jsx)(xH, {
+ }), /* @__PURE__ */ (0, F.jsx)(bH, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...GQ,
+ ...WQ,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
@@ -64048,13 +64059,13 @@ var qQ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, ETe = 6e3, JQ = (e, t) => {
+}, kTe = 6e3, qQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? gH.error : gH.success, r = t.action;
+ let n = t.alert ? hH.error : hH.success, r = t.action;
n(/* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : ETe,
+ duration: t.timeout > 0 ? t.timeout : kTe,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -64062,7 +64073,7 @@ var qQ = (e, t) => {
}
} : void 0
});
-}, YQ = (e) => e.id ?? e.entity_id, XQ = {
+}, JQ = (e) => e.id ?? e.entity_id, YQ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -64070,26 +64081,26 @@ var qQ = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, ZQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
-async function QQ(e, t, n) {
+}, XQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
+async function ZQ(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
return !(await ol({
- title: XQ[e.operation],
+ title: YQ[e.operation],
body: i,
- confirmLabel: XQ[e.operation],
+ confirmLabel: YQ[e.operation],
onConfirm: () => V("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), JQ(`tag-management-${Date.now()}`, {
- html: `已${XQ[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), qQ(`tag-management-${Date.now()}`, {
+ html: `已${YQ[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function $Q({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function QQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, P.useRef)({
operation: e,
selected: t,
@@ -64098,24 +64109,24 @@ function $Q({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
scope: i
}), o = (0, P.useRef)({
name: t[0]?.k || "",
- target_id: t[0] ? YQ(t[0]) : 0
+ target_id: t[0] ? JQ(t[0]) : 0
}), [s, c] = (0, P.useState)(null);
return (0, P.useEffect)(() => {
let e = new AbortController(), t = a.current, n = il({
- title: XQ[t.operation],
+ title: YQ[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
body: "<div class=\"peach-react\" data-tag-editor-fields></div>",
onConfirm: async () => {
let n = {
operation: t.operation,
- ids: t.selected.map(YQ),
+ ids: t.selected.map(JQ),
...t.scope === "online" ? { scope: t.scope } : {},
...t.operation === "rename" ? { name: o.current.name.trim() } : { target_id: o.current.target_id }
};
return {
command: n,
- plan: await ZQ(n, e.signal)
+ plan: await XQ(n, e.signal)
};
}
});
@@ -64126,14 +64137,14 @@ function $Q({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await QQ(r.command, r.plan, e.signal) && t.done();
+ await ZQ(r.command, r.plan, e.signal) && t.done();
}
e.signal.aborted || t.close();
}
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(DTe, {
+ }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(ATe, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -64142,8 +64153,8 @@ function $Q({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function DTe({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, P.useState)(t[0]?.k || ""), [o, s] = (0, P.useState)(t[0] ? YQ(t[0]) : 0);
+function ATe({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, P.useState)(t[0]?.k || ""), [o, s] = (0, P.useState)(t[0] ? JQ(t[0]) : 0);
return (0, P.useEffect)(() => {
r({
name: i,
@@ -64156,7 +64167,7 @@ function DTe({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, F.jsx)(Wz, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, F.jsx)(Uz, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
@@ -64167,17 +64178,17 @@ function DTe({ operation: e, selected: t, dialog: n, update: r }) {
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(YQ(t)) === String(e));
- n && s(YQ(n));
+ let n = t.find((t) => String(JQ(t)) === String(e));
+ n && s(JQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, F.jsx)(BU, {
- id: String(YQ(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, F.jsx)(zU, {
+ id: String(JQ(e)),
children: e.k
- }, YQ(e)))
+ }, JQ(e)))
});
}
// src/react/index/tag-manager.tsx
-function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function $Q({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
let s = o === "online", c = (0, P.useRef)(null), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(t), [p, m] = (0, P.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, P.useState)(!1), [b, x] = (0, P.useState)(!1), S = JSON.stringify([
o,
_,
@@ -64185,7 +64196,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
g,
v,
b
- ]), { pagination: C, onChange: w } = NQ(S), T = new URLSearchParams({
+ ]), { pagination: C, onChange: w } = MQ(S), T = new URLSearchParams({
limit: String(C.pageSize),
offset: String(C.pageIndex * C.pageSize),
q: _,
@@ -64202,25 +64213,25 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
],
queryFn: ({ signal: e }) => B(`/api/tag-management?${T}`, e)
});
- PQ(E.data?.total, C, w);
+ NQ(E.data?.total, C, w);
let [D, O] = (0, P.useState)(/* @__PURE__ */ new Map());
(0, P.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, P.useState)(null), M = BH(), ee = E.data?.items || [], te = ee, ne = (s ? JX : qX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), N = te.map((e) => ({
+ let k = new Set(D.keys()), [A, j] = (0, P.useState)(null), M = zH(), ee = E.data?.items || [], te = ee, ne = (s ? qX : KX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), N = te.map((e) => ({
...e,
label: e.k
- })), re = g === "alphabet" ? iZ(N, (e) => e) : [], ie = [...D.values()], ae = (e) => {
+ })), re = g === "alphabet" ? rZ(N, (e) => e) : [], ie = [...D.values()], ae = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
scope: o
} : e;
- return QQ(n, await ZQ(n, t), t);
+ return ZQ(n, await XQ(n, t), t);
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, oe = ie.map(YQ), se = {
+ }, oe = ie.map(JQ), se = {
online: s,
favorites: s,
picked: k,
@@ -64241,13 +64252,13 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: [
e === void 0 ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mb-4 flex",
- children: /* @__PURE__ */ (0, F.jsx)(MQ, {
+ children: /* @__PURE__ */ (0, F.jsx)(jQ, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, F.jsx)(HQ, {
+ /* @__PURE__ */ (0, F.jsx)(VQ, {
categories: ne,
category: h,
online: s,
@@ -64275,7 +64286,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, F.jsx)(_I, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, F.jsx)(gI, {
busy: M.busy === "repair",
onPress: () => ae({
operation: "repair",
@@ -64283,11 +64294,11 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- te.length ? /* @__PURE__ */ (0, F.jsx)(_I, {
+ te.length ? /* @__PURE__ */ (0, F.jsx)(gI, {
onPress: () => O((e) => new Map([...e, ...te.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, F.jsx)(_I, {
+ k.size ? /* @__PURE__ */ (0, F.jsx)(gI, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -64296,7 +64307,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, F.jsx)("div", { dangerouslySetInnerHTML: { __html: ec({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -64304,13 +64315,13 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: "立即重试"
}),
children: "无法读取标签"
- }) : te.length ? g === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(BQ, {
+ }) : te.length ? g === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(zQ, {
groups: re,
actions: se
- }) : /* @__PURE__ */ (0, F.jsx)(VQ, {
+ }) : /* @__PURE__ */ (0, F.jsx)(BQ, {
tags: N,
actions: se
- }) : /* @__PURE__ */ (0, F.jsx)(qz, {
+ }) : /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
@@ -64326,11 +64337,11 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: $s
})
}) : null,
- M.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ M.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, F.jsxs)(Bk, {
+ /* @__PURE__ */ (0, F.jsxs)(Jk, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -64352,7 +64363,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Qz(!!M.busy),
+ ...Zz(!!M.busy),
onClick: () => ae({
operation: v ? "restore" : "hide",
ids: oe
@@ -64362,7 +64373,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Qz(!!M.busy),
+ ...Zz(!!M.busy),
onClick: () => ae({
operation: b ? "unblock" : "block",
ids: oe
@@ -64371,7 +64382,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : null
]
}),
- A ? /* @__PURE__ */ (0, F.jsx)($Q, {
+ A ? /* @__PURE__ */ (0, F.jsx)(QQ, {
operation: A,
selected: ie,
scope: o,
@@ -64382,7 +64393,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var OTe = [
+var jTe = [
{
value: "studios",
label: "厂牌",
@@ -64398,7 +64409,7 @@ var OTe = [
label: "系列",
symbol: "list"
}
-], kTe = [{
+], MTe = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -64406,7 +64417,7 @@ var OTe = [
value: "online",
label: "在线",
symbol: "rss"
-}], ATe = [
+}], NTe = [
{
value: "performers",
label: "艺人",
@@ -64422,7 +64433,7 @@ var OTe = [
label: "在线",
symbol: "rss"
}
-], jTe = {
+], PTe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -64451,20 +64462,20 @@ var OTe = [
"layout-grid"
]]
};
-function MTe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, F.jsx)(KU, {
- "aria-label": `${KX[e]}索引版式`,
+function FTe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, F.jsx)(GU, {
+ "aria-label": `${GX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${qU}`,
- children: jTe[e === "series" ? "series" : ZX(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = Xz(n);
- return /* @__PURE__ */ (0, F.jsx)(IR, {
+ className: `flex-none ${KU}`,
+ children: PTe[e === "series" ? "series" : XX(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = Yz(n);
+ return /* @__PURE__ */ (0, F.jsx)(FR, {
value: e,
"aria-label": t,
- className: P_e,
+ className: L_e,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
@@ -64474,14 +64485,14 @@ function MTe({ kind: e, layout: t, onChange: n }) {
})
});
}
-function NTe(e) {
- let [t, n] = (0, P.useState)(!1), [r, i] = (0, P.useState)(() => QX({
+function ITe(e) {
+ let [t, n] = (0, P.useState)(!1), [r, i] = (0, P.useState)(() => ZX({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [a, o] = (0, P.useState)(e.layout), [s, c] = (0, P.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, P.useState)("any"), d = (0, P.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = r, _ = KX[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
+ })), [a, o] = (0, P.useState)(e.layout), [s, c] = (0, P.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, P.useState)("any"), d = (0, P.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = r, _ = GX[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
(0, P.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -64500,7 +64511,7 @@ function NTe(e) {
...t
};
x(Object.keys(t).every((e) => e === "q")), i(o), e.route(o, { replace: a });
- }, { pagination: C, onChange: w } = NQ(JSON.stringify(r)), T = nZ($X(r), C.pageSize), E = It({
+ }, { pagination: C, onChange: w } = MQ(JSON.stringify(r)), T = tZ(QX(r), C.pageSize), E = It({
queryKey: f === "tags" && (C.pageIndex || C.pageSize !== 100) ? [
...T.queryKey,
"page",
@@ -64515,9 +64526,9 @@ function NTe(e) {
getNextPageParam: f === "tags" ? () => void 0 : T.getNextPageParam,
enabled: !(t && f === "tags"),
placeholderData: b ? ke : void 0
- }), D = dCe(E.data), O = !!E.hasNextPage && !E.isPlaceholderData, k = E.data?.pages[0]?.total;
- PQ(f === "tags" && !E.isPlaceholderData ? k : void 0, C, w);
- let A = f === "tags" ? E.isPending || E.isError ? "" : `${(k ?? D.length).toLocaleString()} 个标签` : fCe(D.length, !!E.hasNextPage), j = `${f}:${m}:${p}`, M = (0, P.useRef)(null), ee = E.data?.pages[0]?.categories;
+ }), D = mCe(E.data), O = !!E.hasNextPage && !E.isPlaceholderData, k = E.data?.pages[0]?.total;
+ NQ(f === "tags" && !E.isPlaceholderData ? k : void 0, C, w);
+ let A = f === "tags" ? E.isPending || E.isError ? "" : `${(k ?? D.length).toLocaleString()} 个标签` : hCe(D.length, !!E.hasNextPage), j = `${f}:${m}:${p}`, M = (0, P.useRef)(null), ee = E.data?.pages[0]?.categories;
ee && !E.isPlaceholderData && (M.current = {
key: j,
counts: ee
@@ -64533,15 +64544,15 @@ function NTe(e) {
D,
f,
v
- ]), ie = (0, P.useMemo)(() => f === "tags" && h === "alphabet" ? iZ(re, (t) => v ? t : e.tagLabel(t)) : [], [
+ ]), ie = (0, P.useMemo)(() => f === "tags" && h === "alphabet" ? rZ(re, (t) => v ? t : e.tagLabel(t)) : [], [
re,
h,
f,
v
]), ae = (t) => {
o(t), e.savePreference({ layout: t });
- }, oe = f === "tags" ? /* @__PURE__ */ (0, F.jsx)(IQ, {
- tabs: kTe,
+ }, oe = f === "tags" ? /* @__PURE__ */ (0, F.jsx)(FQ, {
+ tabs: MTe,
value: m,
label: "词表",
onChange: (e) => {
@@ -64551,8 +64562,8 @@ function NTe(e) {
view: e === "online" ? "alphabet" : h
});
}
- }) : ZX(f) || f === "series" ? /* @__PURE__ */ (0, F.jsx)(IQ, {
- tabs: OTe,
+ }) : XX(f) || f === "series" ? /* @__PURE__ */ (0, F.jsx)(FQ, {
+ tabs: jTe,
value: f,
label: "资料类型",
onChange: (e) => S({ kind: e })
@@ -64561,7 +64572,7 @@ function NTe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : re.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, ce = (v ? JX : qX).filter(N);
+ }, ce = (v ? qX : KX).filter(N);
return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: d,
"data-index-page": f,
@@ -64576,23 +64587,23 @@ function NTe(e) {
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: _
}),
- XX(f) ? /* @__PURE__ */ (0, F.jsx)("span", {
+ YX(f) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
children: E.isPending || E.isError ? "" : A
}) : null,
- XX(f) ? /* @__PURE__ */ (0, F.jsx)(MTe, {
+ YX(f) ? /* @__PURE__ */ (0, F.jsx)(FTe, {
kind: f,
layout: a,
onChange: ae
}) : null,
- /* @__PURE__ */ (0, F.jsx)(dB, { kind: f === "tags" ? "tag" : f === "series" ? "series" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, F.jsx)(uB, { kind: f === "tags" ? "tag" : f === "series" ? "series" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
f === "tags" ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: Xz("pencil"),
+ leadingIcon: Yz("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -64600,7 +64611,7 @@ function NTe(e) {
e.exitSelectMode(), c(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, F.jsx)(MQ, {
+ /* @__PURE__ */ (0, F.jsx)(jQ, {
label: `过滤${_}`,
value: p,
onQuery: (e) => {
@@ -64609,8 +64620,8 @@ function NTe(e) {
})
]
}),
- f === "performers" || f === "creators" ? /* @__PURE__ */ (0, F.jsx)(IQ, {
- tabs: ATe,
+ f === "performers" || f === "creators" ? /* @__PURE__ */ (0, F.jsx)(FQ, {
+ tabs: NTe,
value: y ? "online" : f,
label: "人物名册",
onChange: (t) => {
@@ -64622,7 +64633,7 @@ function NTe(e) {
}
}) : null,
oe,
- t && f === "tags" ? /* @__PURE__ */ (0, F.jsx)(e$, {
+ t && f === "tags" ? /* @__PURE__ */ (0, F.jsx)($Q, {
scope: m,
search: p,
category: g,
@@ -64636,8 +64647,8 @@ function NTe(e) {
}, m) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
f === "performers" && m === "local" ? /* @__PURE__ */ (0, F.jsx)("div", {
"aria-label": "身份分类",
- className: GX,
- children: WX.filter((e) => e[0] === g || N(e)).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(q, {
+ className: WX,
+ children: UX.filter((e) => e[0] === g || N(e)).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(q, {
variant: g === e ? "primary" : "secondary",
size: "small",
"aria-pressed": g === e,
@@ -64645,7 +64656,7 @@ function NTe(e) {
children: t
}, e))
}) : null,
- f === "tags" ? /* @__PURE__ */ (0, F.jsx)(HQ, {
+ f === "tags" ? /* @__PURE__ */ (0, F.jsx)(VQ, {
categories: ce,
category: g,
online: v,
@@ -64673,8 +64684,8 @@ function NTe(e) {
mode: h
}) }
});
- if (E.isError) return /* @__PURE__ */ (0, F.jsx)(Jz, {
- icon: Xz("alert"),
+ if (E.isError) return /* @__PURE__ */ (0, F.jsx)(qz, {
+ icon: Yz("alert"),
title: `没能读取${_}`,
actions: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -64683,7 +64694,7 @@ function NTe(e) {
}),
children: bn(E.error)
});
- if (!D.length) return /* @__PURE__ */ (0, F.jsx)(FTe, {
+ if (!D.length) return /* @__PURE__ */ (0, F.jsx)(RTe, {
kind: f,
filtered: !!p || g !== "all",
online: v || y,
@@ -64692,12 +64703,12 @@ function NTe(e) {
category: "all"
})
});
- if (y) return /* @__PURE__ */ (0, F.jsx)(_Ce, {
+ if (y) return /* @__PURE__ */ (0, F.jsx)(bCe, {
items: D,
layout: a,
props: e
});
- if (XX(f)) return /* @__PURE__ */ (0, F.jsx)(lZ, {
+ if (YX(f)) return /* @__PURE__ */ (0, F.jsx)(cZ, {
kind: f,
items: D,
layout: a,
@@ -64708,10 +64719,10 @@ function NTe(e) {
picked: s,
press: se
};
- return h === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(BQ, {
+ return h === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(zQ, {
groups: ie,
actions: t
- }) : /* @__PURE__ */ (0, F.jsx)(VQ, {
+ }) : /* @__PURE__ */ (0, F.jsx)(BQ, {
tags: re,
actions: t
});
@@ -64744,7 +64755,7 @@ function NTe(e) {
}) : null, "载入更多"]
})
}) : null,
- f === "tags" && !v && e.selectMode ? /* @__PURE__ */ (0, F.jsx)(TTe, {
+ f === "tags" && !v && e.selectMode ? /* @__PURE__ */ (0, F.jsx)(OTe, {
count: s.size,
match: l,
onMatch: u,
@@ -64758,7 +64769,7 @@ function NTe(e) {
]
});
}
-var PTe = {
+var LTe = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -64766,9 +64777,9 @@ var PTe = {
agencies: "事务所",
series: "系列"
};
-function FTe({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, F.jsx)(Jz, {
- icon: Xz("search"),
+function RTe({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, F.jsx)(qz, {
+ icon: Yz("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
@@ -64777,16 +64788,16 @@ function FTe({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : PTe[e], a = /* @__PURE__ */ (0, F.jsx)(SI, {
+ let i = n && e === "performers" ? "创作者" : LTe[e], a = /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, F.jsx)(Jz, {
- icon: Xz(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, F.jsx)(qz, {
+ icon: Yz(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(SI, {
+ actions: n ? a : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -64794,15 +64805,15 @@ function FTe({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var t$ = {
+var e$ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, ITe = (e) => t$[e.junk_kind || "other"] || t$.other;
-function LTe(e) {
+}, zTe = (e) => e$[e.junk_kind || "other"] || e$.other;
+function BTe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -64813,40 +64824,40 @@ function LTe(e) {
glyph: "check"
};
}
-var n$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), RTe = (e, t) => [
+var t$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), VTe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function zTe({ kind: e, view: t }) {
+function HTe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function BTe(e, t) {
- let n = await B(`/api/ads?${zTe(e)}`, t);
+async function UTe(e, t) {
+ let n = await B(`/api/ads?${HTe(e)}`, t);
return {
...n,
items: n.items || []
};
}
// src/react/junk-queue/junk-card.tsx
-function r$({ name: e }) {
+function n$({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-var i$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function VTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, P.useRef)(null), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), d = e.junk_kind || "other", [f, p] = ITe(e), m = String(e.name || ""), h = LTe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
- t.target.closest("[data-junk-actions]") || i$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var r$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function WTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, P.useRef)(null), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), d = e.junk_kind || "other", [f, p] = zTe(e), m = String(e.name || ""), h = BTe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+ t.target.closest("[data-junk-actions]") || r$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), i$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), r$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, b = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, x = (t) => (n) => {
@@ -64877,7 +64888,7 @@ function VTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: TG,
+ onMouseDown: EG,
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
@@ -64885,7 +64896,7 @@ function VTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, F.jsx)(r$, { name: p }), /* @__PURE__ */ (0, F.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, F.jsx)(n$, { name: p }), /* @__PURE__ */ (0, F.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": "thumb",
@@ -64897,7 +64908,7 @@ function VTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, F.jsx)(r$, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(n$, { name: "check" })
})
]
}),
@@ -64934,7 +64945,7 @@ function VTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: zs("正在定位") }
- }) : /* @__PURE__ */ (0, F.jsx)(r$, { name: "folder-open" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)(n$, { name: "folder-open" }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -64946,7 +64957,7 @@ function VTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, F.jsx)(r$, { name: h.glyph }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(n$, { name: h.glyph }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -64958,7 +64969,7 @@ function VTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, F.jsx)(r$, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(n$, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -64973,7 +64984,7 @@ function VTe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var HTe = (0, P.memo)(VTe), a$ = [
+var GTe = (0, P.memo)(WTe), i$ = [
[
"",
"全部",
@@ -65009,40 +65020,40 @@ var HTe = (0, P.memo)(VTe), a$ = [
"其它",
"hard-drive"
]
-], UTe = (e) => a$.find(([t]) => t === e)?.[0] ?? "";
-function o$(e) {
+], KTe = (e) => i$.find(([t]) => t === e)?.[0] ?? "";
+function a$(e) {
let t = new URLSearchParams(e);
return {
- kind: UTe(t.get("type")),
+ kind: KTe(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function s$(e = "", t = "pending") {
+function o$(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function c$(e) {
+function s$(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: s$("", "pending")
+ href: o$("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: s$("", "dismissed")
+ href: o$("", "dismissed")
};
}
-var l$ = (e) => e === "dismissed" ? "已排除" : "待判断", u$ = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function WTe({ kind: e, view: t }) {
- let n = a$.map(([n, r, i]) => `<a href="${s$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${u$(i)}${z(r)}</a>`).join(""), r = c$(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(l$(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${u$(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var c$ = (e) => e === "dismissed" ? "已排除" : "待判断", l$ = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function qTe({ kind: e, view: t }) {
+ let n = i$.map(([n, r, i]) => `<a href="${o$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${l$(i)}${z(r)}</a>`).join(""), r = s$(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(c$(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${l$(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/components/collection-summary.tsx
-function d$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function u$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -65068,31 +65079,31 @@ function d$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
});
}
// src/react/junk-queue/junk-count.tsx
-function f$({ name: e }) {
+function d$({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function p$({ scope: e, count: t }) {
+function f$({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function GTe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = _V(), a = (0, P.useRef)(null), { kind: o, view: s } = e, c = bI(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? a$.map(([e]) => n$(t, e)).join(",") : ""}`), l = c$(s), u = (e) => {
+function JTe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = gV(), a = (0, P.useRef)(null), { kind: o, view: s } = e, c = yI(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? i$.map(([e]) => t$(t, e)).join(",") : ""}`), l = s$(s), u = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || s$()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || o$()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, F.jsx)(d$, {
- label: l$(s),
+ children: /* @__PURE__ */ (0, F.jsx)(u$, {
+ label: c$(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -65112,17 +65123,17 @@ function GTe({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- a$.map(([e, n, r]) => /* @__PURE__ */ (0, F.jsxs)("a", {
- href: s$(e, s),
+ i$.map(([e, n, r]) => /* @__PURE__ */ (0, F.jsxs)("a", {
+ href: o$(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, F.jsx)(f$, { name: r }),
+ /* @__PURE__ */ (0, F.jsx)(d$, { name: r }),
n,
- /* @__PURE__ */ (0, F.jsx)(p$, {
+ /* @__PURE__ */ (0, F.jsx)(f$, {
scope: e,
- count: t ? n$(t, e) : 0
+ count: t ? t$(t, e) : 0
})
]
}, e || "all")),
@@ -65136,9 +65147,9 @@ function GTe({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, F.jsx)(f$, { name: l.glyph }),
+ /* @__PURE__ */ (0, F.jsx)(d$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, F.jsx)(p$, {
+ /* @__PURE__ */ (0, F.jsx)(f$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -65150,33 +65161,33 @@ function GTe({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var KTe = Xz("check"), qTe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function JTe(e) {
+var YTe = Yz("check"), XTe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function ZTe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Pt({
- queryKey: RTe(t, e.revision),
- queryFn: ({ signal: e }) => BTe(t, e),
- placeholderData: (e, n) => n && qTe(n.queryKey, t) ? e : void 0
+ queryKey: VTe(t, e.revision),
+ queryFn: ({ signal: e }) => UTe(t, e),
+ placeholderData: (e, n) => n && XTe(n.queryKey, t) ? e : void 0
});
(0, P.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = YTe(e.countRow), i = n.isPending;
+ let r = QTe(e.countRow), i = n.isPending;
(0, P.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, P.useLayoutEffect)(() => {
r && n.data && Zs(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(GTe, {
+ let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(JTe, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [o, /* @__PURE__ */ (0, F.jsx)(XTe, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [o, /* @__PURE__ */ (0, F.jsx)($Te, {
props: e,
data: n.data,
pending: i,
@@ -65184,7 +65195,7 @@ function JTe(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function YTe(e) {
+function QTe(e) {
let [t, n] = (0, P.useState)(null);
return (0, P.useLayoutEffect)(() => {
if (!e) return;
@@ -65194,8 +65205,8 @@ function YTe(e) {
};
}, [e]), t;
}
-function XTe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = eG(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, P.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, P.useCallback)(() => {
+function $Te({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = tG(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, P.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, P.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -65203,16 +65214,16 @@ function XTe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, F.jsx)(tG, {
+ if (!t) return /* @__PURE__ */ (0, F.jsx)(nG, {
message: bn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, F.jsx)(Jz, {
- icon: KTe,
+ return /* @__PURE__ */ (0, F.jsx)(qz, {
+ icon: YTe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, F.jsx)(SI, {
+ actions: t ? /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -65225,7 +65236,7 @@ function XTe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, F.jsx)(HTe, {
+ children: u.map((t) => /* @__PURE__ */ (0, F.jsx)(GTe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -65234,7 +65245,7 @@ function XTe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, F.jsx)(ZTe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, F.jsx)(eEe, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -65244,14 +65255,14 @@ function XTe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function ZTe({ onMore: e }) {
+function eEe({ onMore: e }) {
let t = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: $W });
+ }, { rootMargin: eG });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, F.jsx)("div", {
ref: t,
@@ -65261,18 +65272,18 @@ function ZTe({ onMore: e }) {
});
}
// src/react/wants/wants.ts
-var m$ = "/api/wants", h$ = ["wants"], QTe = (e) => [
+var p$ = "/api/wants", m$ = ["wants"], tEe = (e) => [
"wants",
"follow",
e
-], $Te = [
+], nEe = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], g$ = (e) => B(m$, e);
-function eEe(e, t) {
- H.setQueryData(h$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], h$ = (e) => B(p$, e);
+function rEe(e, t) {
+ H.setQueryData(m$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -65280,37 +65291,37 @@ function eEe(e, t) {
} : n)
} : n);
}
-var tEe = (e, t) => B(`${m$}?follow=${encodeURIComponent(e)}`, t), _$ = (e, t) => V(m$, {
+var iEe = (e, t) => B(`${p$}?follow=${encodeURIComponent(e)}`, t), g$ = (e, t) => V(p$, {
action: "add",
...e
-}, "POST", t), v$ = (e, t) => V(m$, {
+}, "POST", t), _$ = (e, t) => V(p$, {
action: "remove",
ids: e
-}, "POST", t), nEe = (e, t) => V(m$, {
+}, "POST", t), aEe = (e, t) => V(p$, {
action: "reset",
ids: e
-}, "POST", t), y$ = () => H.invalidateQueries({ queryKey: h$ }), rEe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function iEe(e) {
+}, "POST", t), v$ = () => H.invalidateQueries({ queryKey: m$ }), oEe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function sEe(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
// src/react/jav/jav-navigation.ts
-var b$ = [
+var y$ = [
["library", "馆藏"],
["discover", "发现"],
["wants", "想要"]
-], x$ = (e) => b$.some(([t]) => t === e) ? e : "library", aEe = (e) => x$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function oEe(e) {
+], b$ = (e) => y$.some(([t]) => t === e) ? e : "library", cEe = (e) => b$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function lEe(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/react/jav/jav.ts
-var S$ = (e, t = "taste", n = "desc") => [
+var x$ = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function C$(e, t, n = {}) {
+function S$(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -65319,7 +65330,7 @@ function C$(e, t, n = {}) {
});
return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), B(`/api/jav/discoveries?${r}`, t);
}
-function sEe(e, t, n) {
+function uEe(e, t, n) {
let r = Co({
...e,
is_jav: !0
@@ -65328,82 +65339,82 @@ function sEe(e, t, n) {
let i = z(uo(e));
return xo(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
}
-async function cEe(e, t) {
+async function dEe(e, t) {
e === "wants" ? await H.ensureQueryData({
- queryKey: h$,
- queryFn: () => g$(t),
+ queryKey: m$,
+ queryFn: () => h$(t),
staleTime: 3e4,
revalidateIfStale: !0
}) : e === "discover" && await H.ensureQueryData({
- queryKey: S$("external"),
- queryFn: () => C$("external", t),
+ queryKey: x$("external"),
+ queryFn: () => S$("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
// src/react/components/fieldset-layout.ts
-var w$ = QH({
+var C$ = ZH({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), T$ = {
+}), w$ = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, E$ = {
+}, T$ = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
};
-function D$(e) {
- return `${w$} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function E$(e) {
+ return `${C$} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/management.ts
-var O$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", k$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", A$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", j$ = "disabled data-skeleton-action", lEe = "aria-disabled=\"true\"", M$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, N$ = (e, t, n) => `<div class="${T$[n]}"><div class="flex flex-col gap-2">
+var D$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", O$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", k$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", A$ = "disabled data-skeleton-action", fEe = "aria-disabled=\"true\"", j$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, M$ = (e, t, n) => `<div class="${w$[n]}"><div class="flex flex-col gap-2">
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div></div>`;
-function uEe() {
- return M$(`<section aria-label="扫描与采集" class="${D$("stack")}" data-cleanup-task data-cleanup-processing>
- ${N$("扫描与采集", O$, "stack")}
- <footer class="${E$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${ws("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Ds({
+function pEe() {
+ return j$(`<section aria-label="扫描与采集" class="${E$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${M$("扫描与采集", D$, "stack")}
+ <footer class="${T$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${ws("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Ds({
label: "同步新增文件",
- attrs: j$
+ attrs: A$
})}${Ds({
glyph: "chevron-down",
- attrs: `${j$} aria-label="更多同步方式"`
+ attrs: `${A$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function dEe() {
- return M$(`<section aria-label="媒体修复" class="${D$("split")}" data-cleanup-task data-cleanup-processing>
- ${N$("媒体修复", k$, "split")}
- <footer class="${E$.split}">${ks(A$, {
+function mEe() {
+ return j$(`<section aria-label="媒体修复" class="${E$("split")}" data-cleanup-task data-cleanup-processing>
+ ${M$("媒体修复", O$, "split")}
+ <footer class="${T$.split}">${ks(k$, {
className: "w-48",
- attrs: lEe
+ attrs: fEe
})}${Ds({
label: "开始修复",
- attrs: j$
+ attrs: A$
})}</footer>
</section>`);
}
-function P$() {
+function N$() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = w$, n = T$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${E$.stack}">${Ds({
+ ], t = C$, n = w$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${T$.stack}">${Ds({
label: e,
- attrs: j$
+ attrs: A$
})}</footer>`, a = (e) => `<div class="flex flex-col gap-1.5"><span class="text-body-medium text-text-primary">${e}</span><span class="skeleton ui-configuration-skeleton-input"></span></div>`;
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
- <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${ws(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${A$}</strong><span class="text-caption-1-regular">${A$}</span></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${ws(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${k$}</strong><span class="text-caption-1-regular">${k$}</span></div>`).join("")}</div>
<div class="flex flex-col gap-4 max-cleanup-tight:gap-3">
- <div id="libraryProcessing">${uEe()}</div><div id="mediaRepair">${dEe()}</div>
+ <div id="libraryProcessing">${pEe()}</div><div id="mediaRepair">${mEe()}</div>
<section id="organize" class="${t} flex flex-col" data-cleanup-organize><div class="${n}">${r("整理", "mb-3")}<p class="text-body-regular text-text-secondary">清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
- <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${ks(A$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => Ds({
+ <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${ks(k$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => Ds({
variant: "secondary",
- label: A$,
- attrs: j$
+ label: k$,
+ attrs: A$
})).join("")}</div></div></div>${i("预览")}</section>
</div>
<section id="link-manager" class="flex scroll-mt-20 flex-col gap-4"><div class="${t} flex flex-col"><div class="${n}">${r("链接管理")}<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${[
@@ -65411,57 +65422,57 @@ function P$() {
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">${e}</span><b class="text-title-2-semibold">${A$}</b></div>`).join("")}</div><div class="mt-4 flex flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span>${A$}</div></div>${i("检查死链")}</div></section>
+ ].map((e) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">${e}</span><b class="text-title-2-semibold">${k$}</b></div>`).join("")}</div><div class="mt-4 flex flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span>${k$}</div></div>${i("检查死链")}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var fEe = QH({
+var hEe = ZH({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), pEe = "border-t border-border-button-default p-4 first:border-t-0";
-function F$({ id: e, gap: t = "none", children: n }) {
+}), gEe = "border-t border-border-button-default p-4 first:border-t-0";
+function P$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, F.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function I$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function F$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, F.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: D$(e),
+ className: E$(e),
children: [/* @__PURE__ */ (0, F.jsx)("div", {
- className: T$[e],
+ className: w$[e],
children: a
}), i ? /* @__PURE__ */ (0, F.jsx)("footer", {
- className: E$[e],
+ className: T$[e],
children: i
}) : null]
});
}
// src/react/components/status-label.tsx
-var mEe = {
+var _Ee = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function L$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, F.jsx)(oZ, {
+function I$({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, F.jsx)(aZ, {
"data-status-tone": e,
variant: "caption",
- color: mEe[e],
+ color: _Ee[e],
...t
});
}
// src/react/components/path-line.tsx
-function hEe({ className: e }) {
+function vEe({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -65474,8 +65485,8 @@ function hEe({ className: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-folder-open" })
});
}
-var gEe = "打开文件管理器失败,请重试";
-function R$({ path: e, prefix: t, className: n, onRevealed: r }) {
+var yEe = "打开文件管理器失败,请重试";
+function L$({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(""), c = (0, P.useRef)(!0);
(0, P.useEffect)(() => () => {
c.current = !1;
@@ -65486,7 +65497,7 @@ function R$({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await V("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof or ? e.message : gEe);
+ c.current && s(e instanceof or ? e.message : yEe);
} finally {
c.current && a(!1);
}
@@ -65497,15 +65508,15 @@ function R$({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, F.jsxs)("p", {
- className: sF("min-w-0 break-all", n),
+ className: IF("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, F.jsx)(oI, {
- icon: hEe,
+ }), /* @__PURE__ */ (0, F.jsx)(lI, {
+ icon: vEe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
- ...Qz(i)
+ ...Zz(i)
})]
}), o ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
@@ -65514,7 +65525,7 @@ function R$({ path: e, prefix: t, className: n, onRevealed: r }) {
});
}
// src/react/library-processing/issue-export.ts
-async function _Ee(e, t) {
+async function bEe(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -65537,41 +65548,41 @@ async function _Ee(e, t) {
rows: n
}, null, 2);
}
-function vEe(e, t) {
+function xEe(e, t) {
let n = URL.createObjectURL(new Blob([t], { type: "application/json;charset=utf-8" })), r = document.createElement("a");
r.href = n, r.download = `peach-issues-${e}.json`, r.click(), URL.revokeObjectURL(n);
}
// src/react/library-processing/library-processing-card.tsx
-var yEe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", bEe = (e) => {
+var SEe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", CEe = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 项同名人物资料需要确认是否为同一人`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, xEe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + bEe(e);
-function SEe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = hge(e), o = BH(), s = BH(), c = e.status === "failed" && !!e.retryable_asset_ids?.length, l = fge(e.notes || {}), u = !!t || !e.archived && e.status === "failed", d = !t && !e.archived && DH(e), f = u && !!a?.log, p = wH(e), m = _V();
+}, wEe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + CEe(e);
+function TEe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = vge(e), o = zH(), s = zH(), c = e.status === "failed" && !!e.retryable_asset_ids?.length, l = hge(e.notes || {}), u = !!t || !e.archived && e.status === "failed", d = !t && !e.archived && EH(e), f = u && !!a?.log, p = CH(e), m = gV();
return /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- p ? /* @__PURE__ */ (0, F.jsx)(vge, {
+ p ? /* @__PURE__ */ (0, F.jsx)(xge, {
state: e,
slow: p
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "warning",
title: "处理较慢",
- children: yEe
+ children: SEe
}) : null,
- u ? /* @__PURE__ */ (0, F.jsxs)(qz, {
+ u ? /* @__PURE__ */ (0, F.jsxs)(Kz, {
tone: d ? "warning" : "error",
className: "gap-0 p-3",
title: d ? "处理已结束,部分项目需处理" : "处理未完成",
action: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [d ? /* @__PURE__ */ (0, F.jsx)(zH, {
- href: kH,
+ children: [d ? /* @__PURE__ */ (0, F.jsx)(RH, {
+ href: OH,
size: "small",
- trailingIcon: Sz,
+ trailingIcon: xz,
children: "查看全部内容"
}) : null, c ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -65583,7 +65594,7 @@ function SEe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}),
extra: a ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3",
- children: /* @__PURE__ */ (0, F.jsxs)(dU, {
+ children: /* @__PURE__ */ (0, F.jsxs)(uU, {
summary: a.label,
contentClassName: "gap-0",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
@@ -65615,7 +65626,7 @@ function SEe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, F.jsx)(R$, {
+ children: /* @__PURE__ */ (0, F.jsx)(L$, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -65624,55 +65635,55 @@ function SEe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null]
})
}) : null,
- children: [t || e.error || "处理未完成,请重试", d ? `\n${OH}` : null]
+ children: [t || e.error || "处理未完成,请重试", d ? `\n${DH}` : null]
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "success",
title: "处理完成",
- children: xEe(n)
+ children: wEe(n)
}) : null,
- n?.status === "cancelled" ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ n?.status === "cancelled" ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
title: "任务已停止",
children: "已取得的资料和预览已保留,不会自动继续这趟任务。"
}) : null,
- e.archived ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ e.archived ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
children: "上一趟的问题提示已归档,历史记录仍保留。"
}) : null,
- !EH(e) && (e.issue_count || e.status === "failed") ? /* @__PURE__ */ (0, F.jsxs)("div", {
+ !TH(e) && (e.issue_count || e.status === "failed") ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [e.issue_count ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Qz(!!o.busy),
- onClick: () => void o.run("export", (t) => _Ee(e, t), (t) => {
- vEe(e.job_id, t), i("已导出问题清单");
+ ...Zz(!!o.busy),
+ onClick: () => void o.run("export", (t) => bEe(e, t), (t) => {
+ xEe(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, e.archived ? null : /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Qz(!!s.busy),
- onClick: () => void s.run("archive", (t) => V(SH, {
+ ...Zz(!!s.busy),
+ onClick: () => void s.run("archive", (t) => V(xH, {
action: "archive",
job_id: e.job_id
}, "POST", t), (e) => {
- H.setQueryData(CH, e), i("已归档问题提示");
+ H.setQueryData(SH, e), i("已归档问题提示");
}),
children: "归档提示"
})]
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ o.error || s.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "warning",
children: o.error || s.error
}) : null,
- !EH(e) && l ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ !TH(e) && l ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
className: "gap-0 p-3",
extra: e.issues_log && !f ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, F.jsx)(R$, {
+ children: /* @__PURE__ */ (0, F.jsx)(L$, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -65684,41 +65695,41 @@ function SEe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function z$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = ZH(e), o = Ft({
- mutationFn: (e) => V(SH, e),
+function R$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = XH(e), o = Ft({
+ mutationFn: (e) => V(xH, e),
onSuccess: (e) => {
- a(), H.setQueryData(CH, e), H.invalidateQueries({ queryKey: CH });
+ a(), H.setQueryData(SH, e), H.invalidateQueries({ queryKey: SH });
}
});
(0, P.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = DU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? NH : cr(r.error) : "", d = o.isPending || EH(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = EU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? MH : cr(r.error) : "", d = o.isPending || TH(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, F.jsx)(I$, {
+ children: [/* @__PURE__ */ (0, F.jsx)(F$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(zH, {
+ /* @__PURE__ */ (0, F.jsx)(RH, {
href: "/sources",
size: "small",
- trailingIcon: Sz,
+ trailingIcon: xz,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, F.jsx)(zH, {
+ /* @__PURE__ */ (0, F.jsx)(RH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: Sz,
+ trailingIcon: xz,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, F.jsx)(zH, {
+ s.candidates ? /* @__PURE__ */ (0, F.jsx)(RH, {
href: "/review",
size: "small",
- trailingIcon: Sz,
+ trailingIcon: xz,
children: "复核资料"
}) : null,
/* @__PURE__ */ (0, F.jsx)(IK, {
@@ -65737,7 +65748,7 @@ function z$(e) {
className: "flex flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(F$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, F.jsx)(oZ, {
+ children: [/* @__PURE__ */ (0, F.jsx)(P$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, F.jsx)(aZ, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, F.jsxs)("span", {
@@ -65745,31 +65756,31 @@ function z$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (EH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, F.jsx)(q, {
+ }), l && (TH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- onClick: () => EU(c, !0),
+ onClick: () => TU(c, !0),
children: "显示进度浮窗"
}) : null]
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: O$
+ children: D$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, F.jsx)(L$, { children: "已暂停" })
- }) : EH(s) ? /* @__PURE__ */ (0, F.jsx)(Nge, { state: s }) : null,
- EH(s) ? /* @__PURE__ */ (0, F.jsx)("p", {
+ children: /* @__PURE__ */ (0, F.jsx)(I$, { children: "已暂停" })
+ }) : TH(s) ? /* @__PURE__ */ (0, F.jsx)(Ige, { state: s }) : null,
+ TH(s) ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: AH(s)
+ children: kH(s)
}) : null,
- EH(s) ? /* @__PURE__ */ (0, F.jsx)(yU, { traffic: s.traffic }) : null,
- EH(s) ? /* @__PURE__ */ (0, F.jsx)(XH, { state: s }) : null
+ TH(s) ? /* @__PURE__ */ (0, F.jsx)(vU, { traffic: s.traffic }) : null,
+ TH(s) ? /* @__PURE__ */ (0, F.jsx)(YH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, F.jsx)(SEe, {
+ }), /* @__PURE__ */ (0, F.jsx)(TEe, {
state: s,
problem: u,
settled: i,
@@ -65784,32 +65795,32 @@ function z$(e) {
});
}
// src/react/playlists/playlists.ts
-var CEe = "/api/playlists", B$ = "/api/playlist", V$ = ["playlists"], H$ = (e) => B(CEe, e);
-async function wEe(e) {
+var EEe = "/api/playlists", z$ = "/api/playlist", B$ = ["playlists"], V$ = (e) => B(EEe, e);
+async function DEe(e) {
await H.fetchQuery({
- queryKey: V$,
- queryFn: () => H$(e),
+ queryKey: B$,
+ queryFn: () => V$(e),
staleTime: 0
});
}
-var TEe = () => H.invalidateQueries({
- queryKey: V$,
+var OEe = () => H.invalidateQueries({
+ queryKey: B$,
exact: !0
-}), EEe = (e) => e.current_asset_id || e.preview_asset_id || null, DEe = (e) => `/poster?id=${e}&c=4`, OEe = (e) => V(B$, {
+}), kEe = (e) => e.current_asset_id || e.preview_asset_id || null, AEe = (e) => `/poster?id=${e}&c=4`, jEe = (e) => V(z$, {
action: "create",
name: e,
asset_ids: []
-}), kEe = (e, t) => V(B$, {
+}), MEe = (e, t) => V(z$, {
action: "rename",
id: e,
name: t
-}), AEe = (e) => V(B$, {
+}), NEe = (e) => V(z$, {
action: "delete",
id: e
-}), jEe = (e) => B(`${B$}?id=${e}`).catch(() => null);
-function MEe(e) {
+}), PEe = (e) => B(`${z$}?id=${e}`).catch(() => null);
+function FEe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return V(B$, {
+ return V(z$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -65818,9 +65829,13 @@ function MEe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var U$ = "/api/custom-metadata", W$ = ["custom-metadata"], G$ = (e) => B(U$, e), NEe = "/api/scraping", PEe = "/api/scraping/settings", FEe = "/api/scraping/check", K$ = "/api/scraping/cover", IEe = "/api/scraping/amane-bridge", LEe = "/api/scraping/amane-bridge/check", REe = "/api/scraping/amane-bridge/rebuild", q$ = ["scraping"], J$ = ["scraping", "cover"], Y$ = ["scraping", "amane-bridge"], zEe = 262144, X$ = (e) => B(NEe, e), Z$ = (e) => B(K$, e), Q$ = (e) => B(IEe, e);
-async function BEe(e) {
+var H$ = "/api/custom-metadata", U$ = ["custom-metadata"], W$ = (e) => B(H$, e), IEe = "/api/scraping", LEe = "/api/scraping/settings", REe = "/api/scraping/check", G$ = "/api/scraping/cover", zEe = "/api/scraping/amane-bridge", BEe = "/api/scraping/amane-bridge/check", VEe = "/api/scraping/amane-bridge/rebuild", K$ = ["scraping"], q$ = ["scraping", "cover"], J$ = ["scraping", "amane-bridge"], HEe = 262144, Y$ = (e) => B(IEe, e), X$ = (e) => B(G$, e), Z$ = (e) => B(zEe, e);
+async function UEe(e) {
await Promise.all([
+ H.fetchQuery({
+ queryKey: K$,
+ queryFn: () => Y$(e)
+ }),
H.fetchQuery({
queryKey: q$,
queryFn: () => X$(e)
@@ -65830,40 +65845,36 @@ async function BEe(e) {
queryFn: () => Z$(e)
}),
H.fetchQuery({
- queryKey: Y$,
- queryFn: () => Q$(e)
- }),
- H.fetchQuery({
- queryKey: W$,
- queryFn: () => G$(e)
+ queryKey: U$,
+ queryFn: () => W$(e)
})
]);
}
-function VEe(e, t) {
+function WEe(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");
}
// src/react/search/search.ts
-var $$ = /* @__PURE__ */ new Set([
+var Q$ = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), e1 = /* @__PURE__ */ new Set([
+]), $$ = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
-]), t1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function HEe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+]), e1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function GEe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
...e,
index: c++
};
return l.push(t), t;
- }, d = t.filter((t) => !e || t1(t).includes(t1(e)));
+ }, d = t.filter((t) => !e || e1(t).includes(e1(e)));
if (!e) {
if (s.length) {
let e = s.map((e) => ({
@@ -65884,8 +65895,8 @@ function HEe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
value: e
}))
} : null,
- left: e.filter((e) => !e1.has(e.kind)),
- right: e.filter((e) => e1.has(e.kind)),
+ left: e.filter((e) => !$$.has(e.kind)),
+ right: e.filter((e) => $$.has(e.kind)),
empty: !1,
options: l
};
@@ -65935,7 +65946,7 @@ function HEe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !e1.has(e.kind)).map(h), _ = m.filter((e) => e1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !$$.has(e.kind)).map(h), _ = m.filter((e) => $$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -65945,16 +65956,16 @@ function HEe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function UEe(e, t, n = Math.random) {
+function KEe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => t1(t) === t1(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => e1(t) === e1(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var WEe = () => ({
+var qEe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -65973,7 +65984,7 @@ var WEe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), n1 = (e) => HEe({
+}), t1 = (e) => GEe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -65982,18 +65993,18 @@ var WEe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), GEe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), r1 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
+}), JEe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), n1 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
-function KEe(e) {
+function YEe(e) {
let t = (0, P.useRef)(e);
t.current = e;
let n = (0, P.useRef)(null);
- n.current ??= WEe();
+ n.current ??= qEe();
let r = n.current, i = (0, P.useRef)(null), [, a] = (0, P.useReducer)((e) => e + 1, 0), o = (0, P.useRef)(null);
- o.current ??= qEe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= XEe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, P.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus(), c = () => {
@@ -66008,7 +66019,7 @@ function KEe(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = n1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, F.jsx)(YEe, {
+ let c = t1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, F.jsx)(QEe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -66021,7 +66032,7 @@ function KEe(e) {
children: [
/* @__PURE__ */ (0, F.jsxs)("h3", { children: [e.label, e.href ? /* @__PURE__ */ (0, F.jsx)("a", {
href: e.href,
- onMouseDown: i1,
+ onMouseDown: r1,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -66040,7 +66051,7 @@ function KEe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, F.jsx)(JEe, {
+ c.tabs ? /* @__PURE__ */ (0, F.jsx)(ZEe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -66067,7 +66078,7 @@ function KEe(e) {
]
});
}
-function qEe(e, t, n, r) {
+function XEe(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -66078,7 +66089,7 @@ function qEe(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => t1(e) !== t1(t))]), V("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => e1(e) !== e1(t))]), V("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -66125,9 +66136,9 @@ function qEe(e, t, n, r) {
i && e().helpers.dismiss(i), t.active = -1, r();
}, h = () => {
if (t.dismissed) return;
- t.query = i().value.trim(), t.picks = t.query ? [] : UEe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : KEe(t.pool, o()), t.active = -1;
let a = n();
- a && (GEe(n1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (JEe(t1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -66139,7 +66150,7 @@ function qEe(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), h(), t.rewind = !0, f(n, e).then(() => {
a() && t.kind === e && h();
}));
- }, v = () => p() ? n1(t).options : [], y = (e) => {
+ }, v = () => p() ? t1(t).options : [], y = (e) => {
let n = v();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, b = (t, n) => {
@@ -66148,7 +66159,7 @@ function qEe(e, t, n, r) {
}, x = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, S = (t) => {
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && $$.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
+ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && Q$.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
}, C = (t) => {
m(), i().blur(), e().actions.openPath?.(t);
};
@@ -66194,13 +66205,13 @@ function qEe(e, t, n, r) {
await V("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => t1(t) !== t1(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => e1(t) !== e1(e))), t.active = -1, r();
},
pickKind: _,
openPath: C
};
}
-function JEe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function ZEe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, P.useRef)(null);
(0, P.useLayoutEffect)(() => {
r(i.current);
@@ -66214,9 +66225,9 @@ function JEe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, F.jsx)(FQ, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, F.jsx)(PQ, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, F.jsxs)(uF, {
+ return /* @__PURE__ */ (0, F.jsxs)(zF, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -66225,9 +66236,9 @@ function JEe({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var i1 = (e) => e.preventDefault();
-function YEe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- iI();
+var r1 = (e) => e.preventDefault();
+function QEe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ sI();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -66239,33 +66250,33 @@ function YEe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: i1,
+ onMouseDown: r1,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, F.jsx)(r1, { name: "chevron-right" })
+ /* @__PURE__ */ (0, F.jsx)(n1, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, F.jsx)(r1, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, F.jsx)(n1, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, F.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: i1,
+ onMouseDown: r1,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, F.jsx)(r1, { name: "x" })
+ children: /* @__PURE__ */ (0, F.jsx)(n1, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = $$.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = Q$.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -66279,8 +66290,8 @@ function YEe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
- onMouseDown: i1,
- children: [/* @__PURE__ */ (0, F.jsx)(a1, {
+ onMouseDown: r1,
+ children: [/* @__PURE__ */ (0, F.jsx)(i1, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, F.jsxs)("span", {
@@ -66305,9 +66316,9 @@ function YEe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: i1,
+ onMouseDown: r1,
children: [
- /* @__PURE__ */ (0, F.jsx)(o1, {
+ /* @__PURE__ */ (0, F.jsx)(a1, {
item: s,
kind: c
}),
@@ -66330,11 +66341,11 @@ function YEe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: i1,
+ onMouseDown: r1,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, F.jsx)(a1, {
+ children: /* @__PURE__ */ (0, F.jsx)(i1, {
card: e,
helpers: n
})
@@ -66348,7 +66359,7 @@ function YEe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, F.jsx)(o1, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, F.jsx)(a1, {
item: s,
kind: c
}) : null,
@@ -66361,13 +66372,13 @@ function YEe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function a1({ card: e, helpers: t }) {
+function i1({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function o1({ item: e, kind: t }) {
+function a1({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -66386,24 +66397,24 @@ function o1({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var s1 = ["configuration"], c1 = (e) => B(GY, e);
-async function XEe(e) {
+var o1 = ["configuration"], s1 = (e) => B(GY, e);
+async function $Ee(e) {
await H.fetchQuery({
- queryKey: s1,
- queryFn: () => c1(e)
+ queryKey: o1,
+ queryFn: () => s1(e)
});
}
// src/react/settings-panel/legacy-controls.tsx
-var l1 = (e) => e.map(([e, t, n]) => n ? [
+var c1 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function u1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function l1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(l);
return f.current = l, (0, P.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Xc(t, n, l1(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Xc(t, n, c1(r), i, {
attr: a,
className: o,
text: s
@@ -66421,13 +66432,13 @@ function u1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function d1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function u1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(-1), m = (0, P.useRef)(l);
return m.current = l, (0, P.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = ps(l1(n), r, { label: t });
+ e.innerHTML = ps(c1(n), r, { label: t });
let i = ms(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -66440,7 +66451,7 @@ function d1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function ZEe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function eDe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, P.useRef)(null), c = (0, P.useRef)(null), l = (0, P.useRef)({
onStep: a,
onSettle: o
@@ -66474,7 +66485,7 @@ function ZEe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var QEe = [
+var tDe = [
[
"strength",
"强度",
@@ -66501,8 +66512,8 @@ var QEe = [
100
]
];
-function $Ee({ host: e, spot: t, index: n, glow: r }) {
- let i = pse[n], a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = _V(), [l, u] = (0, P.useState)("all");
+function nDe({ host: e, spot: t, index: n, glow: r }) {
+ let i = cse[n], a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = gV(), [l, u] = (0, P.useState)("all");
(0, P.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -66515,7 +66526,7 @@ function $Ee({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = pA(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
+ r[t].color = bA(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
};
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-glow-stop": t,
@@ -66540,7 +66551,7 @@ function $Ee({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, F.jsx)(gP, { name: "chevron-down" })
+ /* @__PURE__ */ (0, F.jsx)(HP, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "popmenu",
@@ -66552,7 +66563,7 @@ function $Ee({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: gse.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)("button", {
+ children: dse.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -66566,7 +66577,7 @@ function $Ee({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: _se.map(([e, t, n]) => /* @__PURE__ */ (0, F.jsx)("button", {
+ children: fse.map(([e, t, n]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -66583,8 +66594,8 @@ function $Ee({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function eDe({ host: e }) {
- let t = e.store.value.homeGlow, n = oA(t.preset);
+function rDe({ host: e }) {
+ let t = e.store.value.homeGlow, n = pA(t.preset);
return /* @__PURE__ */ (0, F.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -66603,10 +66614,10 @@ function eDe({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, F.jsx)("b", {
"data-glow-preset-name": "",
- children: mse(t.preset)
+ children: lse(t.preset)
})]
}),
- /* @__PURE__ */ (0, F.jsx)(oj, {
+ /* @__PURE__ */ (0, F.jsx)(uj, {
store: e.store,
label: "光晕配色"
}),
@@ -66617,7 +66628,7 @@ function eDe({ host: e }) {
}),
/* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-fields": "",
- children: QEe.map(([r, i, a]) => /* @__PURE__ */ (0, F.jsx)(ZEe, {
+ children: tDe.map(([r, i, a]) => /* @__PURE__ */ (0, F.jsx)(eDe, {
field: r,
label: i,
max: a,
@@ -66638,7 +66649,7 @@ function eDe({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = hA(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = SA(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -66657,7 +66668,7 @@ function eDe({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-stops": "",
- children: rA.map((n, r) => /* @__PURE__ */ (0, F.jsx)($Ee, {
+ children: uA.map((n, r) => /* @__PURE__ */ (0, F.jsx)(nDe, {
host: e,
spot: n,
index: r,
@@ -66669,7 +66680,7 @@ function eDe({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var tDe = {
+var iDe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -66716,22 +66727,22 @@ var tDe = {
optional: !0,
fallback: 60
}
-}, f1 = (e) => `peach.number.${e}`;
-function p1(e, t) {
+}, d1 = (e) => `peach.number.${e}`;
+function f1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function m1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = tDe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, P.useRef)(0);
- d.current ||= Kk(Number(localStorage.getItem(f1(e))), o, s, n && n > 0 ? n : l);
+function p1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = iDe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, P.useRef)(0);
+ d.current ||= $k(Number(localStorage.getItem(d1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, P.useState)(n ?? 0), [m, h] = (0, P.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, P.useState)(""), v = (0, P.useRef)(null), y = (0, P.useRef)(i);
y.current = i, (0, P.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let b = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(f1(e), String(d.current)), y.current(d.current)));
+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(d1(e), String(d.current)), y.current(d.current)));
}, x = (0, P.useRef)(b);
x.current = b, (0, P.useEffect)(() => {
let e = v.current;
@@ -66741,7 +66752,7 @@ function m1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let S = f > 0, C = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(f1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(d1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, w = r || n === null;
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-number-setting": "",
@@ -66778,7 +66789,7 @@ function m1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": "true",
- children: [c, p1(Number(m), c) ? ` · ${p1(Number(m), c)}` : ""]
+ children: [c, f1(Number(m), c) ? ` · ${f1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, F.jsx)("small", {
id: `${e}-error`,
@@ -66791,13 +66802,13 @@ function m1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/sidebar/sidebar-order.ts
-function h1(e) {
+function m1(e) {
let { mutate: t } = rX();
return (0, P.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function g1(e, t, n, r) {
+function h1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -66806,17 +66817,17 @@ function g1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var nDe = "__home__", _1 = (e) => e === "" ? nDe : e;
-function rDe({ host: e }) {
- let t = h1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, P.useState)(null), [c, l] = (0, P.useState)(!1), [u, d] = (0, P.useState)(null), [f, p] = (0, P.useState)(null), m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (e, r, i) => {
- let a = g1(n, e, r, i);
+var aDe = "__home__", g1 = (e) => e === "" ? aDe : e;
+function oDe({ host: e }) {
+ let t = m1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, P.useState)(null), [c, l] = (0, P.useState)(!1), [u, d] = (0, P.useState)(null), [f, p] = (0, P.useState)(null), m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (e, r, i) => {
+ let a = h1(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => _1(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => g1(e) === o) ?? a[0], y = () => {
h.current && cs(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -66837,7 +66848,7 @@ function rDe({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", _1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", g1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -66869,9 +66880,9 @@ function rDe({ host: e }) {
/* @__PURE__ */ (0, F.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, F.jsx)(gP, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, F.jsx)(HP, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, F.jsx)(gP, { name: a ?? "" }),
+ /* @__PURE__ */ (0, F.jsx)(HP, { name: a ?? "" }),
/* @__PURE__ */ (0, F.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, F.jsxs)("span", {
@@ -66885,7 +66896,7 @@ function rDe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, F.jsx)(gP, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, F.jsx)(HP, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -66895,7 +66906,7 @@ function rDe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, F.jsx)(gP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, F.jsx)(HP, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -66907,11 +66918,11 @@ function rDe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, F.jsx)(gP, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, F.jsx)(HP, { name: "eye-off" })
})
]
})]
- }, _1(e))), /* @__PURE__ */ (0, F.jsxs)("div", {
+ }, g1(e))), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -66927,13 +66938,13 @@ function rDe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(gP, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, F.jsx)(HP, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, F.jsx)(gP, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(gP, { name: "check" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, F.jsx)(HP, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(HP, { name: "check" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -66944,15 +66955,15 @@ function rDe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": _1(e),
+ "data-sidebar-add-option": g1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(_1(e)), y(), m.current?.focus();
+ s(g1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, F.jsx)(gP, { name: n ?? "" }), /* @__PURE__ */ (0, F.jsx)("span", { children: t })]
- }, _1(e)))
+ children: [/* @__PURE__ */ (0, F.jsx)(HP, { name: n ?? "" }), /* @__PURE__ */ (0, F.jsx)("span", { children: t })]
+ }, g1(e)))
}) : null]
}), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -66968,13 +66979,13 @@ function rDe({ host: e }) {
});
}
// src/react/settings-panel/settings-panel.tsx
-var v1 = [
+var _1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], iDe = [
+], sDe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -66983,7 +66994,7 @@ var v1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], aDe = [["desc", "降序"], ["asc", "升序"]], oDe = [[
+], cDe = [["desc", "降序"], ["asc", "升序"]], lDe = [[
"cover",
"官方封面",
""
@@ -66991,7 +67002,7 @@ var v1 = [
"thumbnail",
"预览图",
""
-]], sDe = [
+]], uDe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -67010,88 +67021,88 @@ var v1 = [
"切片",
"隐藏切片"
]
-], cDe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", y1 = null, b1 = {
+], dDe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", v1 = null, y1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, x1 = 0, S1 = null, C1 = /* @__PURE__ */ new Set();
-function lDe(e) {
- return C1.add(e), () => {
- C1.delete(e);
+}, b1 = 0, x1 = null, S1 = /* @__PURE__ */ new Set();
+function fDe(e) {
+ return S1.add(e), () => {
+ S1.delete(e);
};
}
-function uDe() {
- for (let e of [...C1]) e();
+function pDe() {
+ for (let e of [...S1]) e();
}
-function w1(e) {
- b1 = {
- ...b1,
+function C1(e) {
+ y1 = {
+ ...y1,
...e
- }, (0, Lt.flushSync)(uDe);
+ }, (0, Lt.flushSync)(pDe);
}
-async function dDe(e) {
- let t = b1.epoch, n = await e.configurable();
- b1.open && b1.epoch === t && w1({ configurable: n });
+async function mDe(e) {
+ let t = y1.epoch, n = await e.configurable();
+ y1.open && y1.epoch === t && C1({ configurable: n });
}
-function fDe(e = "") {
- let t = y1;
+function hDe(e = "") {
+ let t = v1;
if (!t) return;
- let n = v1.findIndex(([t]) => t === e);
- if (b1.open && !b1.closing) {
- n >= 0 && n !== b1.tab && w1({ tab: n });
+ let n = _1.findIndex(([t]) => t === e);
+ if (y1.open && !y1.closing) {
+ n >= 0 && n !== y1.tab && C1({ tab: n });
return;
}
- as(), x1 += 1, S1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = Qxe();
- w1({
+ as(), b1 += 1, x1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = eSe();
+ C1({
open: !0,
closing: !1,
configurable: null,
- epoch: b1.epoch + 1,
- tab: n >= 0 ? n : b1.tab
+ epoch: y1.epoch + 1,
+ tab: n >= 0 ? n : y1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), dDe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), mDe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function T1(e = !0) {
- if (!b1.open || b1.closing) return;
- let t = ++x1;
- e && y1?.closed?.(), w1({ closing: !0 });
+function w1(e = !0) {
+ if (!y1.open || y1.closing) return;
+ let t = ++b1;
+ e && v1?.closed?.(), C1({ closing: !0 });
let n = () => {
- t === x1 && b1.closing && (w1({
+ t === b1 && y1.closing && (C1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), S1 instanceof HTMLElement && document.contains(S1) && S1.focus(), S1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), x1 instanceof HTMLElement && document.contains(x1) && x1.focus(), x1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var pDe = {
- open: fDe,
- close: T1,
- isOpen: () => b1.open,
+var gDe = {
+ open: hDe,
+ close: w1,
+ isOpen: () => y1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function mDe(e) {
- return y1 = e, pDe;
+function _De(e) {
+ return v1 = e, gDe;
}
-function hDe() {
- let e = (0, P.useSyncExternalStore)(lDe, () => b1);
- return y1 ? /* @__PURE__ */ (0, F.jsx)(vDe, {
- host: y1,
+function vDe() {
+ let e = (0, P.useSyncExternalStore)(fDe, () => y1);
+ return v1 ? /* @__PURE__ */ (0, F.jsx)(xDe, {
+ host: v1,
view: e
}) : null;
}
-function gDe(e) {
+function yDe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(cDe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(dDe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
-var E1 = (e) => `settings-tab-${e}`, D1 = (e) => `settings-group-${e}`;
-function _De({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var T1 = (e) => `settings-tab-${e}`, E1 = (e) => `settings-group-${e}`;
+function bDe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useRef)(e), l = (0, P.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -67119,7 +67130,7 @@ function _De({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = v1.length, r = t;
+ let n = _1.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@ -67148,11 +67159,11 @@ function _De({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- v1.map(([t, n], r) => /* @__PURE__ */ (0, F.jsxs)("button", {
+ _1.map(([t, n], r) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "tab",
- id: E1(r),
- "aria-controls": D1(r),
+ id: T1(r),
+ "aria-controls": E1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -67163,7 +67174,7 @@ function _De({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, F.jsx)(gP, { name: n }) : /* @__PURE__ */ (0, F.jsx)(Vle, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, F.jsx)(HP, { name: n }) : /* @__PURE__ */ (0, F.jsx)(UP, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, F.jsx)("div", {
"data-settings-service": "",
@@ -67174,27 +67185,27 @@ function _De({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(gP, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, F.jsx)(HP, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, F.jsx)(gP, { name: "chevron-right" })
+ /* @__PURE__ */ (0, F.jsx)(HP, { name: "chevron-right" })
]
})
})
]
});
}
-function O1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function D1({ index: e, tab: t, children: n, cards: r = !1 }) {
return /* @__PURE__ */ (0, F.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
- id: D1(e),
+ id: E1(e),
role: "tabpanel",
- "aria-labelledby": E1(e),
+ "aria-labelledby": T1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, F.jsx)("h3", { children: v1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, F.jsx)("h3", { children: _1[e][0] }), n]
});
}
-function k1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function O1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, F.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, F.jsxs)("span", { children: [/* @__PURE__ */ (0, F.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, F.jsx)("small", {
@@ -67211,7 +67222,7 @@ function k1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function A1({ title: e, description: t, kind: n, children: r }) {
+function k1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -67219,7 +67230,7 @@ function A1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, F.jsxs)("span", { children: [/* @__PURE__ */ (0, F.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, F.jsx)("small", { children: t }) : t] }), r]
});
}
-function vDe({ host: e, view: t }) {
+function xDe({ host: e, view: t }) {
(0, P.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, P.useRef)(null), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -67240,7 +67251,7 @@ function vDe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== b1.tab && (w1({ tab: t }), e.selectSection?.(v1[t][0]));
+ t !== y1.tab && (C1({ tab: t }), e.selectSection?.(_1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, F.jsx)("section", {
"data-settings-panel": "",
@@ -67251,9 +67262,9 @@ function vDe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: gDe,
+ onKeyDown: yDe,
onClick: (e) => {
- e.target === e.currentTarget && T1();
+ e.target === e.currentTarget && w1();
},
children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-settings-card": "",
@@ -67264,27 +67275,27 @@ function vDe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, F.jsx)("h2", {
id: "settingsTitle",
- children: v1[t.tab][0]
- }), /* @__PURE__ */ (0, F.jsx)(Zz, {
+ children: _1[t.tab][0]
+ }), /* @__PURE__ */ (0, F.jsx)(Xz, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => T1()
+ onPress: () => w1()
})]
}),
- /* @__PURE__ */ (0, F.jsx)(_De, {
+ /* @__PURE__ */ (0, F.jsx)(bDe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- T1(!1), e.openConfiguration();
+ w1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, F.jsxs)(O1, {
+ /* @__PURE__ */ (0, F.jsxs)(D1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -67292,9 +67303,9 @@ function vDe({ host: e, view: t }) {
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "主题",
- children: /* @__PURE__ */ (0, F.jsx)(u1, {
+ children: /* @__PURE__ */ (0, F.jsx)(l1, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -67322,7 +67333,7 @@ function vDe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, F.jsx)(k1, {
+ /* @__PURE__ */ (0, F.jsx)(O1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -67330,7 +67341,7 @@ function vDe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, F.jsx)(k1, {
+ /* @__PURE__ */ (0, F.jsx)(O1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -67340,7 +67351,7 @@ function vDe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, F.jsx)(eDe, { host: e }),
+ /* @__PURE__ */ (0, F.jsx)(rDe, { host: e }),
/* @__PURE__ */ (0, F.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -67352,35 +67363,35 @@ function vDe({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, F.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, F.jsx)(rDe, { host: e })
+ children: /* @__PURE__ */ (0, F.jsx)(oDe, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, F.jsx)(bDe, {
+ /* @__PURE__ */ (0, F.jsx)(CDe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, F.jsx)(xDe, {
+ /* @__PURE__ */ (0, F.jsx)(wDe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, F.jsxs)(O1, {
+ /* @__PURE__ */ (0, F.jsxs)(D1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, F.jsx)(TDe, {
+ /* @__PURE__ */ (0, F.jsx)(ODe, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, F.jsx)(m1, {
+ children: /* @__PURE__ */ (0, F.jsx)(p1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -67390,24 +67401,24 @@ function vDe({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, F.jsx)(SI, {
+ children: /* @__PURE__ */ (0, F.jsx)(xI, {
variant: "secondary",
href: "/taste",
- onClick: () => T1(!1),
+ onClick: () => w1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, F.jsx)(O1, {
+ /* @__PURE__ */ (0, F.jsx)(D1, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, F.jsx)(k1, {
+ children: /* @__PURE__ */ (0, F.jsx)(O1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -67422,7 +67433,7 @@ function vDe({ host: e, view: t }) {
})
});
}
-function yDe(e, t) {
+function SDe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Gs("arrow-up", "arrow-down", "a", {
@@ -67432,9 +67443,9 @@ function yDe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function bDe({ host: e, tab: t, epoch: n }) {
+function CDe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
- return /* @__PURE__ */ (0, F.jsxs)(O1, {
+ return /* @__PURE__ */ (0, F.jsxs)(D1, {
index: 1,
tab: t,
children: [
@@ -67442,11 +67453,11 @@ function bDe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, F.jsx)(m1, {
+ children: /* @__PURE__ */ (0, F.jsx)(p1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -67456,24 +67467,24 @@ function bDe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, F.jsx)(d1, {
+ children: [/* @__PURE__ */ (0, F.jsx)(u1, {
id: "defaultSortSetting",
label: "默认排序",
- options: iDe,
+ options: sDe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, F.jsx)(d1, {
+ }), /* @__PURE__ */ (0, F.jsx)(u1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: aDe,
+ options: cDe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -67481,13 +67492,13 @@ function bDe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => yDe(e, o)
+ decorate: (e) => SDe(e, o)
})]
})
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, F.jsx)(u1, {
+ children: /* @__PURE__ */ (0, F.jsx)(l1, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -67513,16 +67524,16 @@ function bDe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, F.jsx)(m1, {
+ children: /* @__PURE__ */ (0, F.jsx)(p1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Kk(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = $k(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -67531,16 +67542,16 @@ function bDe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, F.jsx)(wDe, {
+ /* @__PURE__ */ (0, F.jsx)(DDe, {
host: e,
epoch: n
})
]
});
}
-function xDe({ host: e, tab: t, epoch: n }) {
+function wDe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, F.jsxs)(O1, {
+ return /* @__PURE__ */ (0, F.jsxs)(D1, {
index: 2,
tab: t,
children: [
@@ -67548,17 +67559,17 @@ function xDe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, F.jsx)(SDe, {
+ /* @__PURE__ */ (0, F.jsx)(TDe, {
host: e,
epoch: n
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, F.jsx)(u1, {
+ children: /* @__PURE__ */ (0, F.jsx)(l1, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: oDe,
+ options: lDe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -67573,21 +67584,21 @@ function xDe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "显示数量",
children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, F.jsx)(m1, {
+ children: /* @__PURE__ */ (0, F.jsx)(p1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Kk(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = $k(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, F.jsx)(k1, {
+ /* @__PURE__ */ (0, F.jsx)(O1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -67595,7 +67606,7 @@ function xDe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- sDe.map(([t, n, r, i]) => /* @__PURE__ */ (0, F.jsx)(CDe, {
+ uDe.map(([t, n, r, i]) => /* @__PURE__ */ (0, F.jsx)(EDe, {
host: e,
id: t,
settingKey: n,
@@ -67605,19 +67616,19 @@ function xDe({ host: e, tab: t, epoch: n }) {
]
});
}
-function SDe({ host: e, epoch: t }) {
+function TDe({ host: e, epoch: t }) {
let n = Pt({
queryKey: ZY,
queryFn: ({ signal: e }) => nX(e),
staleTime: 0
}), r = rX(), [i, a] = (0, P.useState)(null), o = n.data?.performerNameLanguage;
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(A1, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(k1, {
title: "女优名称",
description: /* @__PURE__ */ (0, F.jsx)("small", {
"data-copy-key": "performer-name-language-help",
children: "名称与别名只显示所选语言的写法;缺少对应时保留当前名称。偏好保存在数据库,其他设备读取同一份设置。"
}),
- children: /* @__PURE__ */ (0, F.jsx)(d1, {
+ children: /* @__PURE__ */ (0, F.jsx)(u1, {
id: "performerNameLanguageSetting",
label: "女优名称",
epoch: t,
@@ -67635,12 +67646,12 @@ function SDe({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ }), n.isError ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function CDe({ host: e, id: t, settingKey: n, label: r, title: i }) {
+function EDe({ host: e, id: t, settingKey: n, label: r, title: i }) {
let a = rX(), [o, s] = (0, P.useState)(null), c = (0, P.useRef)(null), l = e.store.value, u = (t) => {
s(t), qc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -67665,10 +67676,10 @@ function CDe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function wDe({ host: e, epoch: t }) {
+function DDe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(k1, {
+ /* @__PURE__ */ (0, F.jsx)(O1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -67676,7 +67687,7 @@ function wDe({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, F.jsx)(k1, {
+ /* @__PURE__ */ (0, F.jsx)(O1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -67684,11 +67695,11 @@ function wDe({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, F.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, F.jsx)(m1, {
+ children: /* @__PURE__ */ (0, F.jsx)(p1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -67700,86 +67711,86 @@ function wDe({ host: e, epoch: t }) {
})
] });
}
-function TDe({ host: e, epoch: t }) {
+function ODe({ host: e, epoch: t }) {
let n = e.store.value, r = rX();
- return /* @__PURE__ */ (0, F.jsx)(A1, {
+ return /* @__PURE__ */ (0, F.jsx)(k1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, F.jsx)(m1, {
+ children: /* @__PURE__ */ (0, F.jsx)(p1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Kk(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = $k(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
// src/react/sidebar/sidebar-island.tsx
-var j1 = "__home__", EDe = {
+var A1 = "__home__", kDe = {
creator: 26,
tag: 30,
tech: 16
-}, M1 = 180, N1 = null, P1 = {
+}, j1 = 180, M1 = null, N1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, F1 = /* @__PURE__ */ new Set();
-function DDe(e) {
- return F1.add(e), () => {
- F1.delete(e);
+}, P1 = /* @__PURE__ */ new Set();
+function ADe(e) {
+ return P1.add(e), () => {
+ P1.delete(e);
};
}
-function I1() {
- for (let e of [...F1]) e();
+function F1() {
+ for (let e of [...P1]) e();
}
-var ODe = {
+var jDe = {
render(e) {
- P1 = {
- ...P1,
+ N1 = {
+ ...N1,
props: e
- }, (0, Lt.flushSync)(I1);
+ }, (0, Lt.flushSync)(F1);
},
navChanged() {
- P1 = {
- ...P1,
- epoch: P1.epoch + 1
- }, (0, Lt.flushSync)(I1);
+ N1 = {
+ ...N1,
+ epoch: N1.epoch + 1
+ }, (0, Lt.flushSync)(F1);
}
};
-function kDe(e) {
- return N1 = e, P1 = {
- ...P1,
+function MDe(e) {
+ return M1 = e, N1 = {
+ ...N1,
props: {
content: null,
filters: {},
latest: null
}
- }, ODe;
+ }, jDe;
}
-function ADe() {
- let e = (0, P.useSyncExternalStore)(DDe, () => P1);
- return N1 ? /* @__PURE__ */ (0, F.jsx)(jDe, {
- host: N1,
+function NDe() {
+ let e = (0, P.useSyncExternalStore)(ADe, () => N1);
+ return M1 ? /* @__PURE__ */ (0, F.jsx)(PDe, {
+ host: M1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function jDe({ host: e, props: t, epoch: n }) {
+function PDe({ host: e, props: t, epoch: n }) {
let r = (0, P.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, F.jsx)(MDe, {
+ /* @__PURE__ */ (0, F.jsx)(FDe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, F.jsx)(PDe, {
+ t.content ? /* @__PURE__ */ (0, F.jsx)(LDe, {
host: e,
content: t.content,
filters: t.filters,
@@ -67787,8 +67798,8 @@ function jDe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function MDe({ host: e, epoch: t, version: n }) {
- let r = h1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = bI(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || j1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function FDe({ host: e, epoch: t, version: n }) {
+ let r = m1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = yI(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || A1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, P.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -67812,7 +67823,7 @@ function MDe({ host: e, epoch: t, version: n }) {
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || j1);
+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || A1);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@ -67827,7 +67838,7 @@ function MDe({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : g1(i, n, e, a);
+ let o = n === null ? null : h1(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -67855,16 +67866,16 @@ function MDe({ host: e, epoch: t, version: n }) {
height: 24,
alt: "",
decoding: "async"
- }) : /* @__PURE__ */ (0, F.jsx)(gP, { name: r }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
- }, t || j1))
+ }) : /* @__PURE__ */ (0, F.jsx)(HP, { name: r }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
+ }, t || A1))
}), v ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
-var L1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function NDe(e) {
+var I1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function IDe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -67878,7 +67889,7 @@ function NDe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function PDe({ host: e, content: t, filters: n, latest: r }) {
+function LDe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, P.useLayoutEffect)(() => {
t.kind === "catalog" && Zs(e.scroll, "drawer");
@@ -67887,8 +67898,8 @@ function PDe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? FDe(e, t.facets, n, r, i) : IDe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, F.jsx)(LDe, {
+ let a = t.kind === "catalog" ? RDe(e, t.facets, n, r, i) : zDe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, F.jsx)(BDe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -67897,11 +67908,11 @@ function PDe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function FDe(e, t, n, r, i) {
- let a = NDe(r), o = (t, r, i) => {
+function RDe(e, t, n, r, i) {
+ let a = IDe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = L1(n, r);
- return /* @__PURE__ */ (0, F.jsx)(B1, {
+ let o = I1(n, r);
+ return /* @__PURE__ */ (0, F.jsx)(z1, {
rows: t,
filterKey: r,
multi: i,
@@ -67911,7 +67922,7 @@ function FDe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = L1(n, l), p = c.some((e) => f.includes(e.value));
+ let f = I1(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -67923,12 +67934,12 @@ function FDe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, F.jsx)(zDe, {
+ body: /* @__PURE__ */ (0, F.jsx)(HDe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: EDe[d],
+ limit: kDe[d],
filterKey: l,
selected: f,
counts: a,
@@ -67943,7 +67954,7 @@ function FDe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, F.jsx)(U1, {
+ body: /* @__PURE__ */ (0, F.jsx)(H1, {
host: e,
filters: n
})
@@ -67958,7 +67969,7 @@ function FDe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, F.jsx)(V1, {
+ body: /* @__PURE__ */ (0, F.jsx)(B1, {
rows: t.followTags,
host: e,
selected: null,
@@ -67967,14 +67978,14 @@ function FDe(e, t, n, r, i) {
} : null
];
}
-function IDe(e, t, n) {
- let r = t.providers || [], i = L1(n, "provider"), a = new Set(t.selected);
+function zDe(e, t, n) {
+ let r = t.providers || [], i = I1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, F.jsx)(B1, {
+ body: /* @__PURE__ */ (0, F.jsx)(z1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -67988,7 +67999,7 @@ function IDe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, F.jsx)(U1, {
+ body: /* @__PURE__ */ (0, F.jsx)(H1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -67998,7 +68009,7 @@ function IDe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, F.jsx)(V1, {
+ body: /* @__PURE__ */ (0, F.jsx)(B1, {
rows: t.tags,
host: e,
selected: a,
@@ -68007,19 +68018,19 @@ function IDe(e, t, n) {
} : null
];
}
-function R1(e, t) {
+function L1(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function LDe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, P.useRef)(null), s = (0, P.useRef)(null), [c, l] = (0, P.useState)(() => R1(e, n)), u = (0, P.useRef)(!1);
+function BDe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, P.useRef)(null), s = (0, P.useRef)(null), [c, l] = (0, P.useState)(() => L1(e, n)), u = (0, P.useRef)(!1);
(0, P.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? R1(e, n) : c;
+ let i = u.current ? L1(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -68040,7 +68051,7 @@ function LDe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, F.jsx)(gP, { name: "chevron-right" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, F.jsx)(HP, { name: "chevron-right" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, F.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -68051,7 +68062,7 @@ function LDe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, F.jsx)(z1.Provider, {
+ children: /* @__PURE__ */ (0, F.jsx)(R1.Provider, {
value: d,
children: a
})
@@ -68060,15 +68071,15 @@ function LDe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var z1 = (0, P.createContext)(() => {});
-function RDe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, F.jsx)(gP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, F.jsx)("img", {
+var R1 = (0, P.createContext)(() => {});
+function VDe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, F.jsx)(HP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, F.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, F.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function B1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function z1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -68085,7 +68096,7 @@ function B1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, F.jsx)(RDe, { dot: e.dot }),
+ /* @__PURE__ */ (0, F.jsx)(VDe, { dot: e.dot }),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -68100,8 +68111,8 @@ function B1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function zDe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, P.useContext)(z1), [d, f] = (0, P.useState)(null), [p, m] = (0, P.useState)(e);
+function HDe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, P.useContext)(R1), [d, f] = (0, P.useState)(null), [p, m] = (0, P.useState)(e);
p !== e && (m(e), f(null));
let h = (0, P.useRef)(null), g = (0, P.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, P.useLayoutEffect)(() => {
@@ -68116,7 +68127,7 @@ function zDe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), Uo(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(B1, {
+ }, [d, _]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(z1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -68141,10 +68152,10 @@ function zDe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, F.jsx)(gP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, F.jsx)(HP, { name: "chevron-down" })
}) : null] });
}
-function V1({ rows: e, host: t, selected: n, badges: r }) {
+function B1({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
@@ -68166,10 +68177,10 @@ function V1({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var H1 = (e, t) => e ? Math.min(M1, Number(e) / 60) : t;
-function U1({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, P.useState)(r), [o, s] = (0, P.useState)(() => [H1(t.dur_min, 0), H1(t.dur_max, M1)]), [c, l] = (0, P.useState)("max");
- i !== r && (a(r), s([H1(t.dur_min, 0), H1(t.dur_max, M1)]));
+var V1 = (e, t) => e ? Math.min(j1, Number(e) / 60) : t;
+function H1({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, P.useState)(r), [o, s] = (0, P.useState)(() => [V1(t.dur_min, 0), V1(t.dur_max, j1)]), [c, l] = (0, P.useState)("max");
+ i !== r && (a(r), s([V1(t.dur_min, 0), V1(t.dur_max, j1)]));
let [u, d] = o, f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useRef)(null), h = (0, P.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -68182,11 +68193,11 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, P.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / M1 * 100}%`), e.style.setProperty("--hi", `${d / M1 * 100}%`);
+ e.style.setProperty("--lo", `${u / j1 * 100}%`), e.style.setProperty("--hi", `${d / j1 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / M1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / j1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -68196,7 +68207,7 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= M1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= j1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-duration": "",
@@ -68211,7 +68222,7 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: M1,
+ max: j1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -68222,7 +68233,7 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: M1,
+ max: j1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -68236,7 +68247,7 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
});
}
// src/diagnostics-skeleton.ts
-function W1() {
+function U1() {
let e = (e) => Ds({
label: e,
variant: "secondary",
@@ -68250,11 +68261,11 @@ function W1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var G1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", BDe = [
+var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", UDe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], VDe = [
+], WDe = [
[
"读本地 NFO 和图片",
"✓",
@@ -68285,7 +68296,7 @@ var G1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], HDe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", K1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", q1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", J1 = "只填域名,留空用默认地址", UDe = [
+], GDe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", G1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", K1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", q1 = "只填域名,留空用默认地址", KDe = [
{
provider: "coomer",
label: "Coomer",
@@ -68375,8 +68386,8 @@ var G1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], Y1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", WDe = "peach.configuration.shape.v1";
-function X1() {
+], J1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", qDe = "peach.configuration.shape.v1";
+function Y1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -68384,28 +68395,28 @@ function X1() {
return {};
}
}
-function GDe(e, t) {
+function JDe(e, t) {
try {
- let n = X1();
+ let n = Y1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(WDe, JSON.stringify({
+ localStorage.setItem(qDe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var Z1 = (e) => X1()[e], Q1 = (e) => e === !0, $1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, e0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], t0 = "disabled data-skeleton-action", n0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, r0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, i0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, a0 = (e = "3em") => i0(e, "24px"), o0 = () => i0("var(--icon-inline)", "var(--icon-inline)"), s0 = (e, t = "primary", n = "medium") => Ds({
+var X1 = (e) => Y1()[e], Z1 = (e) => e === !0, Q1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, $1 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], e0 = "disabled data-skeleton-action", t0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, n0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, r0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, i0 = (e = "3em") => r0(e, "24px"), a0 = () => r0("var(--icon-inline)", "var(--icon-inline)"), o0 = (e, t = "primary", n = "medium") => Ds({
label: e,
variant: t,
size: n,
- attrs: t0
-}), c0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, l0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, KDe = (e, t, n) => {
- let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${o0()}${e}</span>` : e}</p>`;
+ attrs: e0
+}), s0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, c0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, YDe = (e, t, n) => {
+ let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${a0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, u0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${KDe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? c0(n, i) : ""}</div></section>`, d0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, f0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => d0(e, t, `<span class="skeleton ${n}"></span>`), p0 = (e, t = "4em") => d0(e, "", n0(t)), m0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, h0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, g0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${r0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, _0 = (e) => `<div class="flex flex-col gap-1">${h0(e)}${ks(n0("8em"))}</div>`, v0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${i0("16px", "16px")}${e}</span>`, y0 = (e) => `<span class="inline-flex items-center gap-1">${o0()}${e}</span>`, b0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, qDe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), x0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${qDe.has(e) ? n0("100%") + n0("80%") + n0("6em") : n0("6em")}</dd></div>`).join("")}</dl>`, JDe = UDe;
-function YDe(e = Z1("credentials")) {
- let t = new Set(e0(e?.done, 64, String));
- return JDe.map((e) => {
+}, l0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${YDe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? s0(n, i) : ""}</div></section>`, u0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, d0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => u0(e, t, `<span class="skeleton ${n}"></span>`), f0 = (e, t = "4em") => u0(e, "", t0(t)), p0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, m0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, h0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${n0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, g0 = (e) => `<div class="flex flex-col gap-1">${m0(e)}${ks(t0("8em"))}</div>`, _0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${r0("16px", "16px")}${e}</span>`, v0 = (e) => `<span class="inline-flex items-center gap-1">${a0()}${e}</span>`, y0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, XDe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), b0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${XDe.has(e) ? t0("100%") + t0("80%") + t0("6em") : t0("6em")}</dd></div>`).join("")}</dl>`, ZDe = KDe;
+function QDe(e = X1("credentials")) {
+ let t = new Set($1(e?.done, 64, String));
+ return ZDe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -68414,134 +68425,134 @@ function YDe(e = Z1("credentials")) {
};
});
}
-function XDe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = a0() + (n && !e.done ? t.map(() => a0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${i0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
- if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? m0(z(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + m0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? m0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => g0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${s0("保存配置")}</div>${b0("凭据文件")}</div></div>` : "";
- return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${b0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+function $De(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = i0() + (n && !e.done ? t.map(() => i0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${r0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
+ if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? p0(z(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + p0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? p0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => h0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${o0("保存配置")}</div>${y0("凭据文件")}</div></div>` : "";
+ return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${y0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function S0() {
- let e = YDe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return u0("来源凭据", l0(`<div class="flex flex-col gap-4">${[
+function x0() {
+ let e = QDe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ return l0("来源凭据", c0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(XDe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? n0("5em") : "" });
+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map($De).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? t0("5em") : "" });
}
-function C0() {
- let e = e0(Z1("indexers")?.open, 20, Q1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${ws("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${n0("6em")}${n0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${g0("名称")}${g0("Torznab 地址")}${g0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${v0("启用")}${s0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return u0("资源搜索", l0(`<div class="flex min-w-0 flex-col gap-4">${b0("索引器连接帮助")}${e}</div>`), s0("添加索引器", "secondary") + s0("保存配置"));
+function S0() {
+ let e = $1(X1("indexers")?.open, 20, Z1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${ws("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${t0("6em")}${t0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${h0("名称")}${h0("Torznab 地址")}${h0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${_0("启用")}${o0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return l0("资源搜索", c0(`<div class="flex min-w-0 flex-col gap-4">${y0("索引器连接帮助")}${e}</div>`), o0("添加索引器", "secondary") + o0("保存配置"));
}
-function w0() {
- let e = Z1("javBrowser"), t = Q1(e?.enabled);
- return u0("浏览器添加 JAV", l0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${n0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${a0()}</div><p class="text-caption-1-regular text-text-secondary">${n0("70%")}</p><div class="flex flex-wrap items-center gap-2">${s0("重新检测", "secondary")}</div></div>`}${_0("浏览器添加的下载渠道")}${Q1(e?.ready) ? "" : m0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${g0("Peach 地址")}</div>`), (t ? s0("关闭浏览器添加", "secondary") : "") + s0(t ? "更新渠道与令牌" : "启用并生成令牌"));
+function C0() {
+ let e = X1("javBrowser"), t = Z1(e?.enabled);
+ return l0("浏览器添加 JAV", c0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${t0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${i0()}</div><p class="text-caption-1-regular text-text-secondary">${t0("70%")}</p><div class="flex flex-wrap items-center gap-2">${o0("重新检测", "secondary")}</div></div>`}${g0("浏览器添加的下载渠道")}${Z1(e?.ready) ? "" : p0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${h0("Peach 地址")}</div>`), (t ? o0("关闭浏览器添加", "secondary") : "") + o0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var T0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${h0(e)}${ks(n0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${g0(`${e}地址`)}</div><div class="w-full sm:w-28">${g0(`${e}端口`)}</div></div>${b0("代理认证")}` : "") + "</div>";
-function E0() {
- let e = Z1("cloudProxy"), t = e0(e?.accounts, 12, (e) => Array.isArray(e) ? [Q1(e[0]), Q1(e[1])] : [!1, !1]), n = $1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${h0(y0(n0("6em")))}${m0(n0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${h0(y0(n0("8em")))}${m0(n0("50%"))}${T0("数据代理", e)}${T0("API 代理", t)}<div class="flex justify-end">${s0("保存配置")}</div></div>`).join("") : m0(n0("60%"));
- return u0("CloudDrive 代理", l0(`${m0(Y1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), s0("重新读取", "secondary"));
+var w0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${m0(e)}${ks(t0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${h0(`${e}地址`)}</div><div class="w-full sm:w-28">${h0(`${e}端口`)}</div></div>${y0("代理认证")}` : "") + "</div>";
+function T0() {
+ let e = X1("cloudProxy"), t = $1(e?.accounts, 12, (e) => Array.isArray(e) ? [Z1(e[0]), Z1(e[1])] : [!1, !1]), n = Q1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${m0(v0(t0("6em")))}${p0(t0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${m0(v0(t0("8em")))}${p0(t0("50%"))}${w0("数据代理", e)}${w0("API 代理", t)}<div class="flex justify-end">${o0("保存配置")}</div></div>`).join("") : p0(t0("60%"));
+ return l0("CloudDrive 代理", c0(`${p0(J1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), o0("重新读取", "secondary"));
}
-var D0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, ZDe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
- <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${r0()}</span>${Ds({
+var E0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, eOe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+ <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${n0()}</span>${Ds({
glyph: "folder-search",
variant: "secondary",
- attrs: t0
+ attrs: e0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${D0("来源", ks(n0("6em")), "w-full @lg:w-60")}${D0("读取策略", ks(n0("4em")), "w-full @lg:w-32")}${e > 1 ? D0("移到媒体库", ks(n0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, QDe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${E0("来源", ks(t0("6em")), "w-full @lg:w-60")}${E0("读取策略", ks(t0("4em")), "w-full @lg:w-32")}${e > 1 ? E0("移到媒体库", ks(t0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, tOe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Ds({
label: "自动识别",
variant: "secondary",
- attrs: t0
-})}${r0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(n0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${ZDe(t).repeat(e)}<div class="flex">${Ds({
+ attrs: e0
+})}${n0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(t0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${eOe(t).repeat(e)}<div class="flex">${Ds({
label: "添加文件夹",
variant: "secondary",
- attrs: t0
-})}</div></div></div>`, $De = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${G1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, eOe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
-function tOe(e = Z1("media")) {
- let t = e0(e?.folders, 12, (e) => $1(e, 50)).filter(Boolean);
+ attrs: e0
+})}</div></div></div>`, nOe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${W1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, rOe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function iOe(e = X1("media")) {
+ let t = $1(e?.folders, 12, (e) => Q1(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: Q1(e?.cloud)
+ cloud: Z1(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
-function nOe() {
- let e = Z1("discovery"), t = Q1(e?.enabled), n = t && Q1(e?.cloud), r = n && Q1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${r0()}</span>${ks(n0("4em"), { prefix: "对应目录" })}${Ds({
+function aOe() {
+ let e = X1("discovery"), t = Z1(e?.enabled), n = t && Z1(e?.cloud), r = n && Z1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${n0()}</span>${ks(t0("4em"), { prefix: "对应目录" })}${Ds({
glyph: "trash",
variant: "secondary",
- attrs: t0
+ attrs: e0
})}</div>`;
- return u0("自动发现新文件", l0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${a0()}</div>`) + f0("发现新文件后自动入库", t ? n0("10em") : "") + f0("监视本机文件夹", t && Q1(e?.watchLocal) ? n0("12em") : "") + f0("接收 CloudDrive2 通知") + (n ? d0("Webhook 配置", n0("20em"), "") : "") + (r ? l0(b0("查看配置"), !0) : "") + (n ? l0(`<div class="flex flex-col gap-3">${h0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat($1(e?.prefixes, 20))}</div><div>${s0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? s0("更换密钥", "secondary") : "") + s0("保存配置"));
-}
-var rOe = () => {
- let e = tOe();
- return u0("媒体库与目录", l0(`${$De}<div class="flex flex-col gap-4">${e.folders.map((t) => QDe(t, e.folders.length)).join("")}</div>
- <div class="self-start">${s0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${K1}</p>
- ${e.cloud ? eOe : ""}<span class="text-body-medium text-text-primary">${n0("15em")}</span>`), s0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? E0() : "") + nOe() + u0("番号识别规则", l0(`${n0("90%")}${n0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), s0("保存配置")) + u0("视频预览", f0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + f0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + f0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, iOe = () => `<div>${s0("采集来源与登录状态", "secondary")}</div>` + S0() + u0("关注采集", d0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + p0("订阅源拉取") + f0("首次采集范围", "", "ui-configuration-skeleton-select") + p0("头像刷新") + p0("favicon 刷新")) + C0() + u0("作品资料站点", l0(`<p class="text-body-2-regular text-text-secondary">${q1}</p>${g0(y0("JavDB 地址"), J1)}${g0(y0("MISSAV 地址"), J1)}`), s0("保存配置")), aOe = () => {
- let e = Z1("downloads"), t = Q1(e?.pikpak), n = Q1(e?.pikpakRoots) ? _0(y0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${h0(y0("PikPak 根目录对应的媒体目录"))}${m0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Q1(e?.cloud) ? u0("云下载", l0(g0("CloudDrive2 地址") + g0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Q1(e?.has115) ? g0(y0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? g0(y0("PikPak 目标目录"), "目录要已经存在。") + n : "") + g0("等待上限(小时)", n0("14em"))), s0("检查连接", "secondary") + s0("保存配置")) : "", i = Q1(e?.pikpakLoggedIn);
- return r + (t ? u0("PikPak 账号", i ? x0(["账号", n0("4em")]) : l0(g0("账号") + g0("密码") + v0("保存密码,登录过期时自动重新登录")), i ? s0("登出", "secondary") : (Q1(e?.browserLogin) ? s0("用浏览器登录", "secondary") : "") + s0("登录"), {
- aside: a0(),
+ return l0("自动发现新文件", c0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${i0()}</div>`) + d0("发现新文件后自动入库", t ? t0("10em") : "") + d0("监视本机文件夹", t && Z1(e?.watchLocal) ? t0("12em") : "") + d0("接收 CloudDrive2 通知") + (n ? u0("Webhook 配置", t0("20em"), "") : "") + (r ? c0(y0("查看配置"), !0) : "") + (n ? c0(`<div class="flex flex-col gap-3">${m0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(Q1(e?.prefixes, 20))}</div><div>${o0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? o0("更换密钥", "secondary") : "") + o0("保存配置"));
+}
+var oOe = () => {
+ let e = iOe();
+ return l0("媒体库与目录", c0(`${nOe}<div class="flex flex-col gap-4">${e.folders.map((t) => tOe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${o0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${G1}</p>
+ ${e.cloud ? rOe : ""}<span class="text-body-medium text-text-primary">${t0("15em")}</span>`), o0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? T0() : "") + aOe() + l0("番号识别规则", c0(`${t0("90%")}${t0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), o0("保存配置")) + l0("视频预览", d0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + d0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + d0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, sOe = () => `<div>${o0("采集来源与登录状态", "secondary")}</div>` + x0() + l0("关注采集", u0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + f0("订阅源拉取") + d0("首次采集范围", "", "ui-configuration-skeleton-select") + f0("头像刷新") + f0("favicon 刷新")) + S0() + l0("作品资料站点", c0(`<p class="text-body-2-regular text-text-secondary">${K1}</p>${h0(v0("JavDB 地址"), q1)}${h0(v0("MISSAV 地址"), q1)}`), o0("保存配置")), cOe = () => {
+ let e = X1("downloads"), t = Z1(e?.pikpak), n = Z1(e?.pikpakRoots) ? g0(v0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${m0(v0("PikPak 根目录对应的媒体目录"))}${p0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Z1(e?.cloud) ? l0("云下载", c0(h0("CloudDrive2 地址") + h0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Z1(e?.has115) ? h0(v0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? h0(v0("PikPak 目标目录"), "目录要已经存在。") + n : "") + h0("等待上限(小时)", t0("14em"))), o0("检查连接", "secondary") + o0("保存配置")) : "", i = Z1(e?.pikpakLoggedIn);
+ return r + (t ? l0("PikPak 账号", i ? b0(["账号", t0("4em")]) : c0(h0("账号") + h0("密码") + _0("保存密码,登录过期时自动重新登录")), i ? o0("登出", "secondary") : (Z1(e?.browserLogin) ? o0("用浏览器登录", "secondary") : "") + o0("登录"), {
+ aside: i0(),
mark: !0
- }) : "") + w0();
-}, O0 = {
+ }) : "") + C0();
+}, D0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, k0 = {
+}, O0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function oOe(e) {
- let t = e === "locked" ? "" : g0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + g0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (O0[e] ? m0(O0[e]) : "") + (e === "open" ? i0("100%", "64px") : "") + (e === "password" || e === "legacy" ? v0("关闭访问密码") : "") + (e === "password" ? g0("当前访问密码 *") : "") + t;
+function lOe(e) {
+ let t = e === "locked" ? "" : h0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + h0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (D0[e] ? p0(D0[e]) : "") + (e === "open" ? r0("100%", "64px") : "") + (e === "password" || e === "legacy" ? _0("关闭访问密码") : "") + (e === "password" ? h0("当前访问密码 *") : "") + t;
}
-var sOe = () => {
- let e = Z1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Q1(e?.tunnelNamed), r = (n && Q1(e?.tunnelNamedMode) ? m0(k0.named) + g0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + g0("隧道令牌", n0("16em")) : m0(k0.quick)) + (Q1(e?.tunnelNote) ? i0("100%", "64px") : ""), i = $1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${g0([
+var uOe = () => {
+ let e = X1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Z1(e?.tunnelNamed), r = (n && Z1(e?.tunnelNamedMode) ? p0(O0.named) + h0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + h0("隧道令牌", t0("16em")) : p0(O0.quick)) + (Z1(e?.tunnelNote) ? r0("100%", "64px") : ""), i = Q1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${h0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
- ][t])}</div>${s0("复制地址", "secondary")}</div>`).join("");
- return (i || Q1(e?.port) ? u0("访问地址", l0(a + (i ? i0("100%", "40px") : "") + (Q1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${h0("谁可以访问")}${i0("min(100%, 20em)", "36px")}</div>` + (Q1(e?.lan) ? g0("局域网访问地址") : "") : "") + (Q1(e?.port) ? g0("端口") : "")), Q1(e?.port) ? s0("保存配置") : "", Q1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + u0("访问密码", l0(oOe(t)), t === "locked" ? "" : s0("保存配置")) + u0("Cloudflare 公网入口", l0((n ? i0("10.5em", "36px") : "") + r), s0("启动公网入口", n ? "secondary" : "primary") + (n ? s0("保存配置") : ""), { aside: a0() }) + u0("Peach 代理", f0("连接方式", "", "ui-configuration-skeleton-select") + (Q1(e?.proxyAddress) ? l0(g0("代理地址"), !0) : ""), s0("保存配置"));
-}, cOe = [
+ ][t])}</div>${o0("复制地址", "secondary")}</div>`).join("");
+ return (i || Z1(e?.port) ? l0("访问地址", c0(a + (i ? r0("100%", "40px") : "") + (Z1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${m0("谁可以访问")}${r0("min(100%, 20em)", "36px")}</div>` + (Z1(e?.lan) ? h0("局域网访问地址") : "") : "") + (Z1(e?.port) ? h0("端口") : "")), Z1(e?.port) ? o0("保存配置") : "", Z1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + l0("访问密码", c0(lOe(t)), t === "locked" ? "" : o0("保存配置")) + l0("Cloudflare 公网入口", c0((n ? r0("10.5em", "36px") : "") + r), o0("启动公网入口", n ? "secondary" : "primary") + (n ? o0("保存配置") : ""), { aside: i0() }) + l0("Peach 代理", d0("连接方式", "", "ui-configuration-skeleton-select") + (Z1(e?.proxyAddress) ? c0(h0("代理地址"), !0) : ""), o0("保存配置"));
+}, dOe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], lOe = () => {
- let e = Z1("maintenance"), t = [
+], fOe = () => {
+ let e = X1("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, $1(e?.releaseFacts, 5))), n = $1(e?.releaseNotes, 4), r = $1(e?.storageRows, 12), i = $1(e?.storageNotes, 3), a = e0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${a0("6em")}</span>`, s = (t) => !e || Q1(t), c = s(e?.reporting) ? f0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (Q1(e?.reportingIdle) ? l0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${f0("上传馆藏与口味明细", Q1(e?.sharingNotice) ? n0("12em") : "")}${Q1(e?.sharingIdle) ? l0(o, !0) : ""}${c0(s0("预览上传内容", "secondary"))}</div>` : "";
- return u0("检查更新", x0(t) + (n ? l0(m0(n0("50%")).repeat(n), !0) : ""), s0("检查更新"), {
- aside: a0("4em"),
- status: n0("5em")
- }) + u0("自动更新", f0("自动检查新版本") + f0("自动下载更新") + f0("检查频率", Q1(e?.autoUpdateHelp) ? n0("12em") : "", "ui-configuration-skeleton-select"), s0("保存配置")) + u0("开机自启", f0("开机后启动 Peach") + f0("只启动托盘,不打开网页") + f0("在桌面创建快捷方式", Q1(e?.desktopNote) ? n0("12em") : "") + (Q1(e?.startupNote) ? l0(m0(n0("60%")), !0) : ""), s0("保存配置")) + u0("视频播放", f0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + u0("存储空间", x0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => d0(n0("6em"), "", n0("4em"))).join("") : l0(m0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? l0(m0(n0("80%")).repeat(i), !0) : ""), s0("更改位置", "secondary") + s0(r ? "重新统计" : "统计占用")) + (c || l ? u0("数据上传", c + l) : "") + u0("运行信息", x0(a.length ? a : cOe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${d0("安装教程", "", s0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? u0("卸载 Peach", (Q1(e?.uninstallHelp) ? l0(m0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + f0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + l0(b0("数据目录"), !0), s0("卸载 Peach"), { status: n0("16em") }) : "");
+ ].slice(0, Math.max(4, Q1(e?.releaseFacts, 5))), n = Q1(e?.releaseNotes, 4), r = Q1(e?.storageRows, 12), i = Q1(e?.storageNotes, 3), a = $1(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${i0("6em")}</span>`, s = (t) => !e || Z1(t), c = s(e?.reporting) ? d0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (Z1(e?.reportingIdle) ? c0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${d0("上传馆藏与口味明细", Z1(e?.sharingNotice) ? t0("12em") : "")}${Z1(e?.sharingIdle) ? c0(o, !0) : ""}${s0(o0("预览上传内容", "secondary"))}</div>` : "";
+ return l0("检查更新", b0(t) + (n ? c0(p0(t0("50%")).repeat(n), !0) : ""), o0("检查更新"), {
+ aside: i0("4em"),
+ status: t0("5em")
+ }) + l0("自动更新", d0("自动检查新版本") + d0("自动下载更新") + d0("检查频率", Z1(e?.autoUpdateHelp) ? t0("12em") : "", "ui-configuration-skeleton-select"), o0("保存配置")) + l0("开机自启", d0("开机后启动 Peach") + d0("只启动托盘,不打开网页") + d0("在桌面创建快捷方式", Z1(e?.desktopNote) ? t0("12em") : "") + (Z1(e?.startupNote) ? c0(p0(t0("60%")), !0) : ""), o0("保存配置")) + l0("视频播放", d0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + l0("存储空间", b0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => u0(t0("6em"), "", t0("4em"))).join("") : c0(p0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? c0(p0(t0("80%")).repeat(i), !0) : ""), o0("更改位置", "secondary") + o0(r ? "重新统计" : "统计占用")) + (c || l ? l0("数据上传", c + l) : "") + l0("运行信息", b0(a.length ? a : dOe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${u0("安装教程", "", o0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? l0("卸载 Peach", (Z1(e?.uninstallHelp) ? c0(p0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + d0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + c0(y0("数据目录"), !0), o0("卸载 Peach"), { status: t0("16em") }) : "");
};
-function uOe(e) {
+function pOe(e) {
switch (e) {
- case "系统诊断": return W1();
- case "来源与订阅": return iOe();
- case "下载渠道": return aOe();
- case "网络与访问": return sOe();
- case "应用与维护": return lOe();
- default: return rOe();
+ case "系统诊断": return U1();
+ case "来源与订阅": return sOe();
+ case "下载渠道": return cOe();
+ case "网络与访问": return uOe();
+ case "应用与维护": return fOe();
+ default: return oOe();
}
}
-function dOe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(yV).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${uOe(e)}</div></div></div>`;
+function mOe(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(vV).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${pOe(e)}</div></div></div>`;
}
// src/react/jav/discovery-sorts.ts
-var A0 = [
+var k0 = [
[
"taste",
"口味",
@@ -68549,7 +68560,7 @@ var A0 = [
],
[
"release_date",
- Jk[1],
+ tA[1],
"按发行日期排序"
],
[
@@ -68568,10 +68579,10 @@ var A0 = [
"按番号排序"
]
];
-function fOe(e) {
+function hOe(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function pOe(e) {
+function gOe(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -68596,8 +68607,8 @@ function pOe(e) {
};
}
// src/jav-skeleton.ts
-var j0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, mOe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, M0 = "w-full min-w-0";
-function N0() {
+var A0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, _Oe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, j0 = "w-full min-w-0";
+function M0() {
return [
"w-20",
"w-16",
@@ -68607,26 +68618,26 @@ function N0() {
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
-function P0(e, t = NA()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${j0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${mOe("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${j0("80%")}${j0("60%")}${j0("40%")}</div></div>`).join("")}</div>`;
- let n = VA({
- ...BA({
+function N0(e, t = zA()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${A0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${_Oe("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${A0("80%")}${A0("60%")}${A0("40%")}</div></div>`).join("")}</div>`;
+ let n = qA({
+ ...KA({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${M0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
+ return `<div data-media-grid class="${j0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
<span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span>
<div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>
- <div data-media-title>${j0("85%")}${j0("65%")}</div><div data-media-byline>${j0("55%")}</div>
+ <div data-media-title>${A0("85%")}${A0("65%")}</div><div data-media-byline>${A0("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div>
</div></div>
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-function hOe(e) {
+function vOe(e) {
let t = e === "wants" ? "筛选想要" : "筛选推荐";
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
<div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${Ds({
@@ -68634,28 +68645,28 @@ function hOe(e) {
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${b$.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${y$.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
<form aria-label="${t}">${Es("筛选番号、女优或标题", "", t)}</form>
- ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${j0("100%")}</div>${P0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${gOe()}${P0(e)}</section>`}</div></div>`;
+ ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${A0("100%")}</div>${N0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${yOe()}${N0(e)}</section>`}</div></div>`;
}
-function gOe() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${NA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
+function yOe() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${zA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
- <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${N0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${M0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
${Ts()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${ws("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${A0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? ws("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${k0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? ws("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
// src/management-skeletons.ts
-var F0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", I0 = (e = "60%") => `<span class="${F0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, L0 = "disabled data-skeleton-action", R0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function _Oe() {
+var P0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", F0 = (e = "60%") => `<span class="${P0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, I0 = "disabled data-skeleton-action", L0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function bOe() {
let e = [
"馆藏视频",
"看过",
@@ -68663,27 +68674,27 @@ function _Oe() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${F0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${I0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${I0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${R0}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${I0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${P0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${F0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${F0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${L0}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${F0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${I0()}</span><b class="text-title-2-medium">${I0("3em")}</b><small class="text-caption-1-regular">${I0()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${F0()}</span><b class="text-title-2-medium">${F0("3em")}</b><small class="text-caption-1-regular">${F0()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${I0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${F0("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${R0}"><h3 class="text-title-2-medium">${e}</h3><div class="${F0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${L0}"><h3 class="text-title-2-medium">${e}</h3><div class="${P0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -68692,11 +68703,11 @@ function _Oe() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${F0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${P0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function vOe() {
+function xOe() {
let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = [
"浏览记录",
"口味维度",
@@ -68704,20 +68715,20 @@ function vOe() {
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${F0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${I0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${I0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${F0} h-6"></div>`).join(""), r = (e) => `<section class="${R0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${F0} h-40"></div></section>`;
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${P0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${F0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${F0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${P0} h-6"></div>`).join(""), r = (e) => `<section class="${L0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${P0} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
<div class="flex flex-wrap items-center gap-2">${ks("全部时间")}<span data-button-group data-split-button data-variant="primary">${Ds({
glyph: "compass",
label: "读取浏览器历史",
- attrs: L0
+ attrs: I0
})}${Ds({
glyph: "chevron-down",
- attrs: L0
+ attrs: I0
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@ -68735,11 +68746,11 @@ function vOe() {
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${I0("8em")}</small></div>
+ <small class="text-caption-1-regular">${F0("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${R0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${F0} h-72 max-sm:h-48"></div></section>
+ <section class="${L0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${P0} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@ -68747,20 +68758,20 @@ function vOe() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${F0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${P0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function yOe() {
+function SOe() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
- <span class="${F0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
- <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${I0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${I0("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${I0("75%")}</span>
+ <span class="${P0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
+ <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${F0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${F0("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${F0("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${I0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${I0("8em")}</span>
+ <b class="text-title-2-medium">${F0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${F0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -68769,27 +68780,27 @@ function yOe() {
variant: "secondary",
size: "small",
label: e,
- attrs: L0
+ attrs: I0
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${I0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${I0("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${F0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${F0("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${L0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${I0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function bOe() {
+function COe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${F0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
- <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${I0("80%")}</h3><p class="text-body-2-regular">${I0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${P0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
+ <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${F0("80%")}</h3><p class="text-body-2-regular">${F0("60%")}</p></div>
</div>
<footer class="flex justify-end">${Ds({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: L0
+ attrs: I0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@ -68798,20 +68809,20 @@ function bOe() {
</div></div>`;
}
// src/board-skeleton.ts
-var z0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, xOe = () => `${z0("80%")}${z0("48%")}`, B0 = (e, t) => e.repeat(t), V0 = "disabled data-skeleton-action", H0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, U0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, SOe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", W0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var R0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, wOe = () => `${R0("80%")}${R0("48%")}`, z0 = (e, t) => e.repeat(t), B0 = "disabled data-skeleton-action", V0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, H0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, TOe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", U0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${SOe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${H0("3em")}</b></div>`).join("")}</div>`, COe = (e = "") => PZ.some(([t]) => t === e) ? e : "list", G0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${PZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, K0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, wOe = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${TOe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${V0("3em")}</b></div>`).join("")}</div>`, EOe = (e = "") => NZ.some(([t]) => t === e) ? e : "list", W0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${NZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, G0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, DOe = ({ table: e, sort: t, dir: n }) => {
let r = lr.find(([e]) => e === t)[1];
- return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${H0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Ds({
+ return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${V0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Ds({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: V0
+ attrs: B0
})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Ds({
variant: "ghost",
glyph: "layout-grid",
@@ -68828,42 +68839,42 @@ var z0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, xOe
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: V0
+ attrs: B0
})}</span></div></div>`;
-}, q0 = () => `<span class="flex shrink-0 items-center gap-1">${Ds({
+}, K0 = () => `<span class="flex shrink-0 items-center gap-1">${Ds({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: V0
+ attrs: B0
})}${Ds({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: V0
-})}</span>`, TOe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${K0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${H0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${U0(14, 14)}</span>${U0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${H0("113px")}</span>${q0()}</span></div>`, J0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${U0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${H0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Ds({
+ attrs: B0
+})}</span>`, OOe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${G0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${V0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${H0(14, 14)}</span>${H0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${V0("113px")}</span>${K0()}</span></div>`, q0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${H0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${V0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Ds({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: V0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${U0(14, 14)}${U0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Ds({
+ attrs: B0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${H0(14, 14)}${H0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Ds({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: V0
+ attrs: B0
})}${Ds({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: V0
-})}</span></span></div><div data-source-divider>${B0(TOe(), e)}</div></section>`, EOe = () => {
+ attrs: B0
+})}</span></span></div><div data-source-divider>${z0(OOe(), e)}</div></section>`, kOe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, DOe = [
+}, AOe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -68871,90 +68882,90 @@ var z0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, xOe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], OOe = {
+], jOe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, kOe = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", AOe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${DOe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${OOe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${kOe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${B0(`<tr>${[
- K0(),
- `<span class="flex min-w-0 items-center gap-2">${U0(32, 32, !0)}${H0("5em")}</span>`,
- H0("10em"),
- `<span class="flex items-center gap-1.5">${U0(14, 14)}${H0("4em")}</span>`,
- U0(48, 24),
- H0("113px"),
- q0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, jOe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${H0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${U0(204, 32)}</div></div>`, MOe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${H0("120px")}</h3>${[
+}, MOe = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", NOe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${AOe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${jOe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${MOe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${z0(`<tr>${[
+ G0(),
+ `<span class="flex min-w-0 items-center gap-2">${H0(32, 32, !0)}${V0("5em")}</span>`,
+ V0("10em"),
+ `<span class="flex items-center gap-1.5">${H0(14, 14)}${V0("4em")}</span>`,
+ H0(48, 24),
+ V0("113px"),
+ K0()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, POe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${V0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${H0(204, 32)}</div></div>`, FOe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${V0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${H0(e)}</span>`).join("")}</div>`, NOe = (e) => {
- let t = COe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${W0()}<div class="flex flex-col gap-6">${G0(t)}<div class="flex flex-col gap-4">${MOe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || EOe(), a = n ? AOe(i, r) : `${K0("全选本页")}<div class="flex flex-col gap-3">${J0(3)}${J0(4)}${J0(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${W0()}<div class="flex flex-col gap-6">${G0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${wOe({
+].map((e) => `<span class="text-body-medium">${V0(e)}</span>`).join("")}</div>`, IOe = (e) => {
+ let t = EOe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${U0()}<div class="flex flex-col gap-6">${W0(t)}<div class="flex flex-col gap-4">${FOe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || kOe(), a = n ? NOe(i, r) : `${G0("全选本页")}<div class="flex flex-col gap-3">${q0(3)}${q0(4)}${q0(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${U0()}<div class="flex flex-col gap-6">${W0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${DOe({
table: n,
...r
- })}${a}${jOe(n, i)}</div></div></div></div></div>`;
+ })}${a}${POe(n, i)}</div></div></div></div></div>`;
};
-function POe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${z0("85%")}${z0("65%")}${B0(xOe(), 4)}</div></aside></div>`;
+function LOe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${R0("85%")}${R0("65%")}${z0(wOe(), 4)}</div></aside></div>`;
}
-function FOe(e, t = {}) {
+function ROe(e, t = {}) {
let n = "";
- if (e === "/stats") n = _Oe();
- else if (e === "/jav") n = hOe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = vOe();
- else if (e === "/subscriptions") n = NOe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in yV) n = dOe(yV[e.split("/")[2]]);
+ if (e === "/stats") n = bOe();
+ else if (e === "/jav") n = vOe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
+ else if (e === "/taste") n = xOe();
+ else if (e === "/subscriptions") n = IOe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in vV) n = mOe(vV[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
"最近完成"
- ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${H0("8em")}</span><span class="text-caption-1-regular">${H0("14em")}</span>${H0("60%")}${H0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${H0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = yOe();
- else if (e === "/quality-goals") n = bOe();
+ ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${V0("8em")}</span><span class="text-caption-1-regular">${V0("14em")}</span>${V0("60%")}${V0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${V0("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = SOe();
+ else if (e === "/quality-goals") n = COe();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Ds({
label: "新建",
- attrs: V0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${B0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: B0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${z0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function IOe(e) {
+function zOe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function Y0(e) {
+function J0(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return IOe(n ?? t.body);
+ return zOe(n ?? t.body);
}
-var X0 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function LOe(e) {
+var Y0 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
+function BOe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
- let t = e.matches(X0) ? e : e.querySelector(X0);
+ let t = e.matches(Y0) ? e : e.querySelector(Y0);
if (t) return t;
}
return null;
}
-function Z0(e) {
+function X0(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var Q0 = (e) => ["follow-item", e], ROe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, zOe = "/api/follow/save", BOe = "/api/follow/media/hide", $0 = class extends Error {
+var Z0 = (e) => ["follow-item", e], VOe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, HOe = "/api/follow/save", UOe = "/api/follow/media/hide", Q0 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function e2(e, t) {
- let n = await B(ROe(e), t);
+async function $0(e, t) {
+ let n = await B(VOe(e), t);
for (let t of n.groups || []) {
let r = ca(t).find((t) => t.id === e);
if (r) return {
@@ -68964,9 +68975,9 @@ async function e2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new $0();
+ throw new Q0();
}
-function VOe(e) {
+function WOe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = ca(t.group).find((t) => t.id === e);
@@ -68977,20 +68988,20 @@ function VOe(e) {
}
return null;
}
-async function t2(e, t) {
- let n = Q0(e.id), r = la(e.id), i = H.getQueryData(ra) ? null : H.fetchQuery({
+async function e2(e, t) {
+ let n = Z0(e.id), r = la(e.id), i = H.getQueryData(ra) ? null : H.fetchQuery({
queryKey: ra,
queryFn: () => ia(t)
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? VOe(e.id);
+ } : H.getQueryData(n) ?? WOe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
- queryFn: () => e2(e.id, t)
+ queryFn: () => $0(e.id, t)
}), await i;
}
-function HOe(e, t, n, r) {
+function GOe(e, t, n, r) {
let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && _a(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
@@ -69005,32 +69016,32 @@ function HOe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var UOe = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), WOe = {
+var KOe = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), qOe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, GOe = {
+}, JOe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function KOe(e) {
+function YOe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return WOe[t] || t;
+ return qOe[t] || t;
} catch {
return "外部文件页";
}
}
-function n2(e, t) {
- return GOe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function t2(e, t) {
+ return JOe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function qOe(e, t, n = "") {
+function XOe(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -69039,54 +69050,54 @@ function qOe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var JOe = (e) => String(e.name || "").trim(), r2 = (e, t) => e.tag_types?.[t] || "unknown", YOe = /* @__PURE__ */ new Set([
+var ZOe = (e) => String(e.name || "").trim(), n2 = (e, t) => e.tag_types?.[t] || "unknown", QOe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function XOe(e, t) {
- let n = r2(e, t);
- return `r34-${YOe.has(n) ? n : "general"}`;
+function $Oe(e, t) {
+ let n = n2(e, t);
+ return `r34-${QOe.has(n) ? n : "general"}`;
}
-var i2 = [
+var r2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function ZOe(e, t) {
+function eke(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = i2.indexOf(r2(e, t));
- return n < 0 ? i2.length : n;
+ let n = r2.indexOf(n2(e, t));
+ return n < 0 ? r2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function a2(e, t) {
+function i2(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var QOe = (e, t) => ({
+var tke = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), o2 = (e) => e?.size ? { size: e.size } : {};
-function $Oe(e, t) {
+}), a2 = (e) => e?.size ? { size: e.size } : {};
+function nke(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: n2(t, e),
- ...o2(t)
+ source: t2(t, e),
+ ...a2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: n2(a, e),
- ...o2(a)
+ source: t2(a, e),
+ ...a2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -69094,7 +69105,7 @@ function $Oe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var eke = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", s2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => nc(e, {
+var rke = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", o2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => nc(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -69102,7 +69113,7 @@ var eke = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", s2
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), tke = [
+}), ike = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -69112,38 +69123,38 @@ var eke = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", s2
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], nke = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], ake = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${tke.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${ike.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, rke = {
- "/data-cleanup": () => P$(),
- "/resource-sync": () => P$(),
- "/review": () => nke(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, oke = {
+ "/data-cleanup": () => N$(),
+ "/resource-sync": () => N$(),
+ "/review": () => ake(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${s2("正在读取采集来源", {
+ ${o2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function c2(e, { followLayout: t, followSort: n, followDir: r }) {
- return FOe(e, {
+function s2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return ROe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (rke[e] ?? (() => s2("正在读取页面")))();
+ }) || (oke[e] ?? (() => o2("正在读取页面")))();
}
-var l2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function u2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = l2(t);
+var c2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function l2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = c2(t);
r && r === n || (e.innerHTML = t, uc(e));
}
// src/react/components/related-section.tsx
-function d2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function u2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, P.useCallback)((e) => {
e && (uc(e), t(e));
}, [t]);
@@ -69156,17 +69167,17 @@ function d2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, F.jsx)(tG, {
+ children: /* @__PURE__ */ (0, F.jsx)(nG, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, F.jsx)(Jz, {
+ children: /* @__PURE__ */ (0, F.jsx)(qz, {
size: "compact",
- icon: Lz,
+ icon: Iz,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, F.jsx)(SI, {
+ actions: /* @__PURE__ */ (0, F.jsx)(xI, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -69182,7 +69193,7 @@ function d2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
});
}
// src/react/components/detail-continuation.tsx
-function f2({ queue: e, children: t, queueCards: n }) {
+function d2({ queue: e, children: t, queueCards: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-detail-continuation": "",
"data-queue-cards": n == null ? void 0 : Math.min(3, n),
@@ -69190,7 +69201,7 @@ function f2({ queue: e, children: t, queueCards: n }) {
});
}
// src/react/components/media-carousel.tsx
-function p2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function f2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, P.useRef)(null), o = e.some((e) => e.video), s = !!i;
if ((0, P.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
@@ -69270,7 +69281,7 @@ function p2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, F.jsx)(ike, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, F.jsx)(ske, {
item: e,
selected: r === t,
onSelect: n,
@@ -69289,7 +69300,7 @@ function p2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function ike({ item: e, selected: t, onSelect: n, render: r }) {
+function ske({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(typeof IntersectionObserver > "u");
return (0, P.useEffect)(() => {
if (!i.current || a) return;
@@ -69315,14 +69326,14 @@ function ike({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var ake = (e, t, n) => [
+var cke = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function m2(e, t, n, r) {
+function p2(e, t, n, r) {
let i = new Set((t.group ? ca(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
let t = ca(e);
@@ -69337,7 +69348,7 @@ function m2(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-async function oke(e, t, n, r) {
+async function lke(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...ga(i),
status: "new",
@@ -69351,22 +69362,22 @@ async function oke(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return m2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && m2(o, e, t, n).length < n && await s("", 0), {
+ return p2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && p2(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
// src/react/components/detail-tags.tsx
-var h2 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
+var m2 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
});
-function g2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
+function h2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
let [u, d] = (0, P.useState)(null), [f, p] = (0, P.useState)(!1), m = Pt({
queryKey: ["tag-management", n],
queryFn: ({ signal: e }) => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
enabled: f && (n === "online" || !t.length)
- }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = BH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = zH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -69398,9 +69409,9 @@ function g2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...Qz(!!g.busy),
+ ...Zz(!!g.busy),
onClick: () => _(e),
- children: /* @__PURE__ */ (0, F.jsx)(h2, { name: "pencil" })
+ children: /* @__PURE__ */ (0, F.jsx)(m2, { name: "pencil" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -69409,10 +69420,10 @@ function g2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"aria-label": `删除标签 ${a(e.k)}`,
...l(e.k),
onClick: () => c(e),
- children: /* @__PURE__ */ (0, F.jsx)(h2, { name: "x" })
+ children: /* @__PURE__ */ (0, F.jsx)(m2, { name: "x" })
})
]
- }, e.k)), /* @__PURE__ */ (0, F.jsx)(ske, {
+ }, e.k)), /* @__PURE__ */ (0, F.jsx)(uke, {
tags: e,
candidates: h,
label: a,
@@ -69423,11 +69434,11 @@ function g2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
loading: m.isFetching
})]
}),
- g.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ g.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ m.isError ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -69436,7 +69447,7 @@ function g2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}),
children: "无法读取标签候选"
}) : null,
- u ? /* @__PURE__ */ (0, F.jsx)($Q, {
+ u ? /* @__PURE__ */ (0, F.jsx)(QQ, {
operation: "rename",
selected: [u],
scope: n,
@@ -69445,8 +69456,8 @@ function g2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function ske({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = _V(), d = (0, P.useRef)(null), f = (0, P.useRef)(!1), [p, m] = (0, P.useState)(!1), [h, g] = (0, P.useState)(""), [_, v] = (0, P.useState)(""), [y, b] = (0, P.useState)(-1), x = (0, P.useRef)({
+function uke({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+ let c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = gV(), d = (0, P.useRef)(null), f = (0, P.useRef)(!1), [p, m] = (0, P.useState)(!1), [h, g] = (0, P.useState)(""), [_, v] = (0, P.useState)(""), [y, b] = (0, P.useState)(-1), x = (0, P.useRef)({
adding: i,
query: h,
tags: e,
@@ -69491,7 +69502,7 @@ function ske({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? qce(_, t, dN()) : {
+ let w = p ? Xce(_, t, uN()) : {
recent: [],
results: [],
create: ""
@@ -69534,7 +69545,7 @@ function ske({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"aria-pressed": i,
onClick: () => E(t, i),
children: [
- /* @__PURE__ */ (0, F.jsx)(h2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, F.jsx)(m2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-pick-name": "",
children: n(t.k)
@@ -69554,8 +69565,8 @@ function ske({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...Qz(!!i),
- children: /* @__PURE__ */ (0, F.jsx)(h2, { name: "plus" })
+ ...Zz(!!i),
+ children: /* @__PURE__ */ (0, F.jsx)(m2, { name: "plus" })
}), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: l,
id: "tagPicker",
@@ -69568,7 +69579,7 @@ function ske({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
children: [s ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: zs("正在读取标签") }
- }) : /* @__PURE__ */ (0, F.jsx)(h2, { name: "search" }), /* @__PURE__ */ (0, F.jsx)("input", {
+ }) : /* @__PURE__ */ (0, F.jsx)(m2, { name: "search" }), /* @__PURE__ */ (0, F.jsx)("input", {
ref: d,
id: "tagPickSearch",
maxLength: 80,
@@ -69612,7 +69623,7 @@ function ske({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
onClick: () => {
C(), r(w.create);
},
- children: [/* @__PURE__ */ (0, F.jsx)(h2, { name: "plus" }), /* @__PURE__ */ (0, F.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(m2, { name: "plus" }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -69629,8 +69640,8 @@ function ske({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function cke({ item: e, label: t, actions: n }) {
- let r = BH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function dke({ item: e, label: t, actions: n }) {
+ let r = zH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -69653,7 +69664,7 @@ function cke({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && fN(s);
+ o === "add" && dN(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -69669,10 +69680,10 @@ function cke({ item: e, label: t, actions: n }) {
"aria-label": "内容标签",
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
- children: [/* @__PURE__ */ (0, F.jsx)(g2, {
- tags: ZOe(e, t).map((t) => ({
+ children: [/* @__PURE__ */ (0, F.jsx)(h2, {
+ tags: eke(e, t).map((t) => ({
k: t,
- cat: XOe(e, t)
+ cat: $Oe(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -69681,30 +69692,30 @@ function cke({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => Qz(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ busyAttrs: () => Zz(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var _2 = (e) => Number(e) > 0, lke = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
+var g2 = (e) => Number(e) > 0, fke = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), v2 = R("external-link", "ui-externalmark");
-function uke(e) {
+}), _2 = R("external-link", "ui-externalmark");
+function pke(e) {
let { id: t, actions: n } = e, r = Pt({
- queryKey: Q0(t),
- queryFn: ({ signal: e }) => e2(t, e)
+ queryKey: Z0(t),
+ queryFn: ({ signal: e }) => $0(t, e)
}), i = Pt({
queryKey: ra,
queryFn: ({ signal: e }) => ia(e)
}), a = (0, P.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, P.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, F.jsx)(pke, {
+ return r.data ? /* @__PURE__ */ (0, F.jsx)(gke, {
...e,
data: r.data,
- context: QOe(r.data, a),
+ context: tke(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, F.jsx)("div", {
@@ -69713,9 +69724,9 @@ function uke(e) {
children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, F.jsx)(y2, { onClose: n.close }), /* @__PURE__ */ (0, F.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)(v2, { onClose: n.close }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? dke(r.error) ? /* @__PURE__ */ (0, F.jsx)(fke, { onBack: n.close }) : /* @__PURE__ */ (0, F.jsx)(tG, {
+ children: r.isError ? mke(r.error) ? /* @__PURE__ */ (0, F.jsx)(hke, { onBack: n.close }) : /* @__PURE__ */ (0, F.jsx)(nG, {
message: bn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -69723,8 +69734,8 @@ function uke(e) {
})
});
}
-var dke = (e) => e instanceof $0 || e instanceof or && e.status === 404;
-function fke({ onBack: e }) {
+var mke = (e) => e instanceof Q0 || e instanceof or && e.status === 404;
+function hke({ onBack: e }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -69733,7 +69744,7 @@ function fke({ onBack: e }) {
dangerouslySetInnerHTML: { __html: Rs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var y2 = ({ onClose: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
+var v2 = ({ onClose: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -69742,8 +69753,8 @@ var y2 = ({ onClose: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function pke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = HOe(c, l, n, i), d = yke(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, P.useState)({
+function gke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = GOe(c, l, n, i), d = Ske(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, P.useState)({
key: "",
kind: ""
}), h = {
@@ -69763,20 +69774,20 @@ function pke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? UOe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, F.jsx)(C2, {
+ let g = !u.embedded.length && u.collection ? KOe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, F.jsx)(S2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, F.jsx)(C2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, F.jsx)(S2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, F.jsx)(gke, {
+ }) : /* @__PURE__ */ (0, F.jsx)(yke, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -69786,14 +69797,14 @@ function pke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, F.jsx)(hke, {
+ children: [/* @__PURE__ */ (0, F.jsx)(vke, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, F.jsx)(_ke, {
+ }, f), /* @__PURE__ */ (0, F.jsx)(bke, {
item: c,
data: e,
context: t,
@@ -69803,9 +69814,9 @@ function pke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, F.jsx)(f2, {
+ }), /* @__PURE__ */ (0, F.jsx)(d2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, F.jsx)(mke, {
+ children: a > 0 ? /* @__PURE__ */ (0, F.jsx)(_ke, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -69815,23 +69826,23 @@ function pke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function mke({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function _ke({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Pt({
- queryKey: ake(e.item.id, t, n),
- queryFn: ({ signal: r }) => oke(e, t, n, r)
- }), [s] = (0, P.useState)(() => s2("正在读取推荐", {
+ queryKey: cke(e.item.id, t, n),
+ queryFn: ({ signal: r }) => lke(e, t, n, r)
+ }), [s] = (0, P.useState)(() => o2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, P.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = m2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
+ }), [a]), l = p2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
...r,
sources: u,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, F.jsx)(d2, {
+ return /* @__PURE__ */ (0, F.jsx)(u2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -69841,11 +69852,11 @@ function mke({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, F.jsx)(NZ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, F.jsx)(MZ, {
variant: "next",
group: e,
media: t,
- authorSources: a2(e.primary, u),
+ authorSources: i2(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
@@ -69858,8 +69869,8 @@ function mke({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function hke({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, P.useRef)(null), p = $Oe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, P.useState)(g), b = (0, P.useRef)({
+function vke({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, P.useRef)(null), p = nke(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, P.useState)(g), b = (0, P.useRef)({
item: e,
selected: o
}), x = (0, P.useRef)(i.failed);
@@ -69873,14 +69884,14 @@ function hke({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, F.jsx)(y2, { onClose: n.close }),
+ /* @__PURE__ */ (0, F.jsx)(v2, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, F.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void SZ(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void xZ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -69888,10 +69899,10 @@ function hke({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: nW(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: tW(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, F.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, F.jsx)(p2, {
+ u ? /* @__PURE__ */ (0, F.jsx)(f2, {
items: c,
position: l,
onSelect: r,
@@ -69908,11 +69919,11 @@ function hke({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var b2 = ({ kind: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
+var y2 = ({ kind: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function x2({ src: e }) {
+function b2({ src: e }) {
let [t, n] = (0, P.useState)(!1);
return t ? null : /* @__PURE__ */ (0, F.jsx)("img", {
src: e,
@@ -69922,27 +69933,27 @@ function x2({ src: e }) {
onError: () => n(!0)
});
}
-function S2(e) {
+function x2(e) {
return (0, P.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function gke({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = _a(e), a = S2(n);
+function yke({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = _a(e), a = x2(n);
return /* @__PURE__ */ (0, F.jsx)(EK, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${iW(e.primary)} · ${i.length} 个视频`,
+ summary: `${rW(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = qOe(e, n, i ? n.provider_label : ""), o = i ? nW(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = XOe(e, n, i ? n.provider_label : ""), o = i ? tW(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, F.jsxs)(DK, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, F.jsx)(x2, { src: n.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(b2, { kind: "video" }), _2(n.duration) ? /* @__PURE__ */ (0, F.jsx)("i", {
+ pic: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, F.jsx)(b2, { src: n.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(y2, { kind: "video" }), g2(n.duration) ? /* @__PURE__ */ (0, F.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: qn(n.duration)
@@ -69960,15 +69971,15 @@ function gke({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, F.jsx)("time", {
dateTime: n.published_at || "",
- children: pW(n)
+ children: mW(n)
})]
})]
}, n.id);
})
});
}
-function C2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = S2(r), c = [];
+function S2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = x2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -69984,8 +69995,8 @@ function C2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${iW(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, F.jsx)(K_e, {
+ summary: `${rW(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, F.jsx)(J_e, {
label: n.label,
count: n.items.length
}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, F.jsxs)(DK, {
@@ -69994,10 +70005,10 @@ function C2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, F.jsx)(x2, { src: n.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(b2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, F.jsx)(b2, { src: n.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(y2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, F.jsx)("b", {
"data-middle-truncate": "",
- children: JOe(n)
+ children: ZOe(n)
}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -70005,13 +70016,13 @@ function C2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function bke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = uW(d, e), p = cW(e, a2(e, t.sources), n), m = p.credited ? "" : e.author && Hn(e.author) !== Hn(p.author) ? e.author : "", h = dW(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = lW(d, e), p = sW(e, i2(e, t.sources), n), m = p.credited ? "" : e.author && Hn(e.author) !== Hn(p.author) ? e.author : "", h = uW(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -70027,7 +70038,7 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: lW(d, e) + z(iW(e)) }
+ dangerouslySetInnerHTML: { __html: cW(d, e) + z(rW(e)) }
}), e.url ? /* @__PURE__ */ (0, F.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -70035,7 +70046,7 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: v2 }
+ dangerouslySetInnerHTML: { __html: _2 }
}) : null]
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -70043,8 +70054,8 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, F.jsx)("span", { children: pW(e) }),
- _2(e.duration) ? /* @__PURE__ */ (0, F.jsx)("span", { children: qn(e.duration) }) : null,
+ /* @__PURE__ */ (0, F.jsx)("span", { children: mW(e) }),
+ g2(e.duration) ? /* @__PURE__ */ (0, F.jsx)("span", { children: qn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -70061,7 +70072,7 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: "创作者"
}), /* @__PURE__ */ (0, F.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, F.jsxs)(jZ, {
+ children: p.entityName ? /* @__PURE__ */ (0, F.jsxs)(AZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -70093,7 +70104,7 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, F.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, F.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, F.jsx)(vke, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, F.jsx)(xke, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -70116,9 +70127,9 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [KOe(e), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [YOe(e), /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: v2 }
+ dangerouslySetInnerHTML: { __html: _2 }
})]
}, e))
}) : null,
@@ -70218,7 +70229,7 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, F.jsx)(x2, { src: e.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(lke, { name: "image-off" }), /* @__PURE__ */ (0, F.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, F.jsx)(b2, { src: e.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(fke, { name: "image-off" }), /* @__PURE__ */ (0, F.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -70227,7 +70238,7 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, F.jsx)(cke, {
+ /* @__PURE__ */ (0, F.jsx)(dke, {
item: e,
label: o.tagLabel,
actions: s
@@ -70236,7 +70247,7 @@ function _ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function vke({ text: e }) {
+function xke({ text: e }) {
let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(!1);
return (0, P.useLayoutEffect)(() => {
let e = t.current;
@@ -70249,7 +70260,7 @@ function vke({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: mF(e),
+ lang: UF(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, F.jsx)(q, {
@@ -70261,8 +70272,8 @@ function vke({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function yke(e, t, n) {
- let r = e.id, i = Q0(r), [a, o] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, P.useState)(""), l = (e, t) => o((n) => {
+function Ske(e, t, n) {
+ let r = e.id, i = Z0(r), [a, o] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, P.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -70281,7 +70292,7 @@ function yke(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && y$(), t.toast(eke(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && v$(), t.toast(rke(n), { undo: i === "saved" ? void 0 : async () => {
await V(jr, {
item: r,
to: i
@@ -70291,7 +70302,7 @@ function yke(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Ft({
- mutationFn: () => V(zOe, { item: r }),
+ mutationFn: () => V(HOe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -70299,7 +70310,7 @@ function yke(e, t, n) {
onSettled: () => l("save", !1)
}), m = Ft({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(BOe, {
+ await V(UOe, {
item: r,
media: e,
hidden: t
@@ -70315,12 +70326,12 @@ function yke(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Pt({
- queryKey: QTe(r),
- queryFn: ({ signal: e }) => tEe(r, e)
+ queryKey: tEe(r),
+ queryFn: ({ signal: e }) => iEe(r, e)
}).data?.want ?? null, g = Ft({
- mutationFn: async (e) => (e ? await v$([e.id]) : await _$({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await _$([e.id]) : await g$({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), y$();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), v$();
},
onError: d,
onSettled: () => l("want", !1)
@@ -70359,8 +70370,8 @@ function yke(e, t, n) {
};
}
// src/react/components/identity-cell.tsx
-function w2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- iI();
+function C2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+ sI();
let o = tn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z($n(o))}</span>` + ho({
@@ -70406,7 +70417,7 @@ function w2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: c
});
}
-function T2({ people: e, onOpen: t }) {
+function w2({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
@@ -70439,7 +70450,7 @@ function T2({ people: e, onOpen: t }) {
});
}
// src/react/components/folded-title.ts
-function E2(e) {
+function T2(e) {
let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(!1);
return (0, P.useLayoutEffect)(() => {
let e = t.current;
@@ -70456,9 +70467,9 @@ function E2(e) {
};
}
// src/react/item-detail/catalog-picture.tsx
-function D2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function E2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, F.jsx)(fQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, F.jsx)(dQ, {
item: {
code: e.code,
has_cover: !1,
@@ -70472,7 +70483,7 @@ function D2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ }) : i === c ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -70490,34 +70501,34 @@ function D2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var O2 = (e) => ["jav-detail", e], k2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), bke = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), A2 = (e, t) => H.ensureQueryData({
- queryKey: O2(e.code),
- queryFn: () => k2(e.code, t),
+var D2 = (e) => ["jav-detail", e], O2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), Cke = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), k2 = (e, t) => H.ensureQueryData({
+ queryKey: D2(e.code),
+ queryFn: () => O2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function xke(e, t) {
+function wke(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
// src/react/item-detail/external-playback.tsx
-var j2 = "peach.playback-target.v1", M2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function Ske() {
+var A2 = "peach.playback-target.v1", j2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
+function Tke() {
try {
- return localStorage.getItem(j2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
+ return localStorage.getItem(A2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
return "local:default";
}
}
-function N2({ id: e, onOpened: t }) {
- let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(Ske), [o, s] = (0, P.useState)(null), [c, l] = (0, P.useState)(""), [u, d] = (0, P.useState)(0), f = BH();
+function M2({ id: e, onOpened: t }) {
+ let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(Tke), [o, s] = (0, P.useState)(null), [c, l] = (0, P.useState)(""), [u, d] = (0, P.useState)(0), f = zH();
(0, P.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
- e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || M2.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
+ e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || j2.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
}).catch((t) => {
- e.signal.aborted || (r([]), a((e) => M2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
+ e.signal.aborted || (r([]), a((e) => j2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
}), () => e.abort();
}, [u]);
let p = () => void f.run("open", async (t) => {
@@ -70541,29 +70552,29 @@ function N2({ id: e, onOpened: t }) {
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-local-playback-row": "",
- children: [/* @__PURE__ */ (0, F.jsx)(d1, {
+ children: [/* @__PURE__ */ (0, F.jsx)(u1, {
id: `external-player-${e}`,
label: "外部播放器",
- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...M2],
+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...j2],
value: i,
disabled: n === null || !!f.busy,
epoch: u * 2 + Number(n !== null),
onPick: (e) => {
a(e), s(null), f.setError("");
try {
- localStorage.setItem(j2, e);
+ localStorage.setItem(A2, e);
} catch {}
}
}), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...Qz(f.busy === "open"),
+ ...Zz(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, F.jsx)(lU, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, F.jsx)(cU, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
disabled: !!f.busy,
@@ -70572,16 +70583,16 @@ function N2({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Wz, {
+ o ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Uz, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, F.jsx)(cU, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, F.jsx)(sU, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var Cke = cF({
+var Eke = LF({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -70643,23 +70654,23 @@ var Cke = cF({
}
}
});
-function wke({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Cke[t];
+function Dke({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Eke[t];
return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
- className: sF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? sF("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: IF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? IF("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, F.jsx)("span", {
- className: sF("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, F.jsx)("span", { className: sF("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: IF("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, F.jsx)("span", { className: IF("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
-function P2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, F.jsx)(ufe, {
+function N2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)(pfe, {
ref: i,
...a,
- className: (t) => sF("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(wke, {
+ className: (t) => IF("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Dke, {
state: e,
size: n,
shape: r
@@ -70670,12 +70681,12 @@ function P2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var Tke = "/api/cover-crop", Eke = (e, t) => V(Tke, {
+var Oke = "/api/cover-crop", kke = (e, t) => V(Oke, {
code: e,
box: t
});
// src/react/cover-crop/cover-crop-page.tsx
-function F2({ className: e }) {
+function P2({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -70688,7 +70699,7 @@ function F2({ className: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-crop" })
});
}
-function Dke({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function Ake({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -70698,13 +70709,13 @@ function Dke({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, F.jsx)(F2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, F.jsx)(Gz, {
+ children: /* @__PURE__ */ (0, F.jsx)(P2, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, F.jsx)(Wz, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, F.jsx)(Oke, {
+ children: /* @__PURE__ */ (0, F.jsx)(jke, {
code: e,
coverUrl: t,
box: n,
@@ -70713,9 +70724,9 @@ function Dke({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function Oke({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(null), [l, u] = (0, P.useState)(!0), d = _V(), f = Ft({
- mutationFn: (t) => Eke(e, t),
+function jke({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(null), [l, u] = (0, P.useState)(!0), d = gV(), f = Ft({
+ mutationFn: (t) => kke(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -70727,19 +70738,19 @@ function Oke({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : fwe(e, to);
- c(YZ(t, e, null));
+ } : hwe(e, to);
+ c(JZ(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, F.jsx)(Kz, { children: /* @__PURE__ */ (0, F.jsx)(F2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, F.jsx)(Gz, { children: /* @__PURE__ */ (0, F.jsx)(P2, { className: "size-6" }) }),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(WI, {
+ /* @__PURE__ */ (0, F.jsx)(UI, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -70748,14 +70759,14 @@ function Oke({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ f.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: cr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsx)(oI, {
- icon: wz,
+ /* @__PURE__ */ (0, F.jsx)(lI, {
+ icon: Cz,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -70765,24 +70776,24 @@ function Oke({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, F.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, F.jsx)(eQ, {
+ children: /* @__PURE__ */ (0, F.jsx)($Z, {
src: t,
aspect: l ? to : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- qZ(e) && p(e);
+ KZ(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, F.jsx)(P2, {
+ children: [/* @__PURE__ */ (0, F.jsx)(N2, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(YZ(s, a, to));
+ u(e), e && s && a && c(JZ(s, a, to));
},
children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -70792,14 +70803,14 @@ function Oke({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Qz(m),
+ ...Zz(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, F.jsx)(q, {
disabled: !s || !a,
- ...Qz(m),
+ ...Zz(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -70810,21 +70821,21 @@ function Oke({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
] });
}
// src/react/item-detail/item-detail-page.tsx
-var I2 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
+var F2 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), L2 = ({ html: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
+}), I2 = ({ html: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), R2 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";
-function kke(e) {
+}), L2 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";
+function Mke(e) {
let { queue: t, actions: n } = e, r = Pt({
- queryKey: t ? KM(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => tN(t, e.helpers, n),
+ queryKey: t ? GM(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => eN(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? iN(i, e.id) : t ? null : e.id, o = Pt({
- queryKey: GM(a ?? 0),
- queryFn: ({ signal: e }) => eN(a, e),
+ }), i = t && r.data || null, a = i ? rN(i, e.id) : t ? null : e.id, o = Pt({
+ queryKey: WM(a ?? 0),
+ queryFn: ({ signal: e }) => $M(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -70835,9 +70846,9 @@ function kke(e) {
children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, F.jsx)(z2, { onClose: n.close }), /* @__PURE__ */ (0, F.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)(R2, { onClose: n.close }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, F.jsx)(tG, {
+ children: e ? /* @__PURE__ */ (0, F.jsx)(nG, {
message: bn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -70847,13 +70858,13 @@ function kke(e) {
})
});
}
- return /* @__PURE__ */ (0, F.jsx)(Ake, {
+ return /* @__PURE__ */ (0, F.jsx)(Nke, {
...e,
- item: Wce(o.data, i),
+ item: qce(o.data, i),
queue: i
}, o.data.id);
}
-var z2 = ({ onClose: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
+var R2 = ({ onClose: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -70862,23 +70873,23 @@ var z2 = ({ onClose: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function Ake(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = Gke(t, r, i.tagLabel), o = (0, P.useRef)(t);
+function Nke(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = Jke(t, r, i.tagLabel), o = (0, P.useRef)(t);
(0, P.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, P.useEffect)(() => {
- n?.kind === "playlist" && V(qM, {
+ n?.kind === "playlist" && V(KM, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = ele(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = aN(n, t.id);
+ let s = rle(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = iN(n, t.id);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, F.jsx)(jke, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Pke, {
item: t,
gate: s,
helpers: i,
@@ -70891,22 +70902,22 @@ function Ake(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, F.jsx)(Ike, {
+ }), /* @__PURE__ */ (0, F.jsx)(zke, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, F.jsx)(f2, {
+ }), /* @__PURE__ */ (0, F.jsx)(d2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, F.jsx)(Nke, {
+ queue: n ? /* @__PURE__ */ (0, F.jsx)(Ike, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, F.jsx)(Wke, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, F.jsx)(qke, {
...e,
item: n ? {
...t,
@@ -70915,12 +70926,12 @@ function Ake(e) {
}) : null
})] });
}
-function jke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function Pke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, P.useState)(t ? "" : "auto"), c = (0, P.useRef)(null), [l, u] = (0, P.useState)(-2), d = (0, P.useRef)(!1), f = Pt({
- queryKey: O2(e.code || ""),
+ queryKey: D2(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, k2(e.code, t, n);
+ return d.current = !1, O2(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -70965,7 +70976,7 @@ function jke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, F.jsx)(z2, { onClose: r.close }),
+ /* @__PURE__ */ (0, F.jsx)(R2, { onClose: r.close }),
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-player-toolbar": "",
children: [
@@ -70975,21 +70986,21 @@ function jke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, F.jsx)(F2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}) : null,
/* @__PURE__ */ (0, F.jsx)("span", { "data-player-net-slot": "" })
]
}),
- h ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, F.jsx)(D2, {
+ h ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, F.jsx)(E2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
- }, e.id), /* @__PURE__ */ (0, F.jsx)(p2, {
+ }, e.id), /* @__PURE__ */ (0, F.jsx)(f2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, F.jsx)(D2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, F.jsx)(E2, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@ -71005,7 +71016,7 @@ function jke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Qz(f.isFetching),
+ ...Zz(f.isFetching),
title: f.data?.message || bn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -71014,7 +71025,7 @@ function jke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, F.jsx)(Mke, {
+ t === "offline" ? /* @__PURE__ */ (0, F.jsx)(Fke, {
item: e,
badge: y,
helpers: n,
@@ -71025,7 +71036,7 @@ function jke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: [
/* @__PURE__ */ (0, F.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, F.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, F.jsx)(N2, {
+ /* @__PURE__ */ (0, F.jsx)(M2, {
id: e.id,
onOpened: () => r.toast("已请求打开本地播放器")
}, e.id)
@@ -71035,7 +71046,7 @@ function jke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, F.jsx)(L2, { html: y }),
+ /* @__PURE__ */ (0, F.jsx)(I2, { html: y }),
/* @__PURE__ */ (0, F.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, F.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, F.jsx)("button", {
@@ -71050,12 +71061,12 @@ function jke({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, F.jsx)(L2, { html: y }), /* @__PURE__ */ (0, F.jsxs)("span", { children: ["点此开始拉流 · ", R2(e.size)] })]
+ children: [/* @__PURE__ */ (0, F.jsx)(I2, { html: y }), /* @__PURE__ */ (0, F.jsxs)("span", { children: ["点此开始拉流 · ", L2(e.size)] })]
}) : null
]
});
}
-function Mke({ item: e, badge: t, helpers: n, actions: r }) {
+function Fke({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -71066,7 +71077,7 @@ function Mke({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, F.jsx)(L2, { html: t }),
+ /* @__PURE__ */ (0, F.jsx)(I2, { html: t }),
/* @__PURE__ */ (0, F.jsx)("b", { children: "媒体目录无法访问" }),
/* @__PURE__ */ (0, F.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
/* @__PURE__ */ (0, F.jsx)("button", {
@@ -71080,8 +71091,8 @@ function Mke({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function Nke({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Xce(e), a = (0, P.useRef)(null), o = Fke(e, t, r), s = (0, P.useRef)(o);
+function Ike({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = $ce(e), a = (0, P.useRef)(null), o = Rke(e, t, r), s = (0, P.useRef)(o);
s.current = o;
let c = (0, P.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -71089,7 +71100,7 @@ function Nke({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = Pke(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, F.jsx)("button", {
+ }, [n, e.kind]), l = Lke(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -71117,10 +71128,10 @@ function Nke({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, F.jsx)("i", {
- className: `javedition ${Jce[i.edition_label] || "censored"}`,
+ className: `javedition ${Zce[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && rN(i);
+ }) : null, s = e.kind === "playlist" && nN(i);
return /* @__PURE__ */ (0, F.jsxs)(DK, {
current: i.id === t,
"data-queue-item": i.id,
@@ -71131,25 +71142,25 @@ function Nke({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(L2, { html: Do(i, n.javImage()) }), /* @__PURE__ */ (0, F.jsx)("i", {
+ pic: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(I2, { html: Do(i, n.javImage()) }), /* @__PURE__ */ (0, F.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: qn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, F.jsx)(L2, { html: Ao(i) }),
+ lead: /* @__PURE__ */ (0, F.jsx)(I2, { html: Ao(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, F.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "x" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, F.jsxs)("span", {
@@ -71160,14 +71171,14 @@ function Nke({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? pN(i.part_label) : jo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? fN(i.part_label) : jo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function Pke(e, t) {
- let n = Ft({ mutationFn: (t) => V(qM, {
+function Lke(e, t) {
+ let n = Ft({ mutationFn: (t) => V(KM, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -71180,11 +71191,11 @@ function Pke(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function Fke(e, t, n) {
- let r = KM({
+function Rke(e, t, n) {
+ let r = GM({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, nN(e)), e), a = (t) => V(qM, {
+ }), i = (e) => (H.setQueryData(r, tN(e)), e), a = (t) => V(KM, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Ft({
@@ -71200,8 +71211,8 @@ function Fke(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Qce(s, t, r, c);
- if ($ce(l, s)) return;
+ let l = tle(s, t, r, c);
+ if (nle(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -71243,7 +71254,7 @@ function Fke(e, t, n) {
}
};
}
-function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function zke({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-side": "",
@@ -71251,7 +71262,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(Lke, {
+ /* @__PURE__ */ (0, F.jsx)(Bke, {
item: e,
queue: t,
helpers: r,
@@ -71263,7 +71274,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, F.jsx)(zke, {
+ /* @__PURE__ */ (0, F.jsx)(Hke, {
item: e,
write: n
}),
@@ -71274,7 +71285,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: "monitor" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, F.jsx)(F2, { name: "monitor" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -71282,11 +71293,11 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: "hard-drive" }), /* @__PURE__ */ (0, F.jsx)("span", { children: R2(e.size) })]
+ children: [/* @__PURE__ */ (0, F.jsx)(F2, { name: "hard-drive" }), /* @__PURE__ */ (0, F.jsx)("span", { children: L2(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: "calendar" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, F.jsx)(F2, { name: "calendar" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
@@ -71294,20 +71305,20 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: "globe" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, F.jsx)(F2, { name: "globe" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, F.jsx)(N2, {
+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, F.jsx)(M2, {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, F.jsx)(Bke, {
+ /* @__PURE__ */ (0, F.jsx)(Uke, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, F.jsx)(Vke, {
+ /* @__PURE__ */ (0, F.jsx)(Wke, {
item: e,
write: n,
helpers: r,
@@ -71316,10 +71327,10 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
/* @__PURE__ */ (0, F.jsx)(RK, {
assetIds: LK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: GM(e.id) });
+ H.invalidateQueries({ queryKey: WM(e.id) });
}
}),
- /* @__PURE__ */ (0, F.jsx)(Hke, { item: e }),
+ /* @__PURE__ */ (0, F.jsx)(Gke, { item: e }),
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -71333,7 +71344,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -71345,7 +71356,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -71356,7 +71367,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -71367,7 +71378,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "eye" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "eye" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -71378,7 +71389,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -71387,7 +71398,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "playlist" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "playlist" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -71398,7 +71409,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "sparkles" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -71409,11 +71420,11 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "trash" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, F.jsx)(Uke, {
+ /* @__PURE__ */ (0, F.jsx)(Kke, {
item: e,
open: s,
write: n
@@ -71424,7 +71435,7 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, F.jsx)(I2, { name: "sperm" }),
+ /* @__PURE__ */ (0, F.jsx)(F2, { name: "sperm" }),
/* @__PURE__ */ (0, F.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, F.jsx)("b", {
className: "mono",
@@ -71437,8 +71448,8 @@ function Ike({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function Lke({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = E2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Zce(e, t);
+function Bke({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = T2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + ele(e, t);
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -71465,23 +71476,23 @@ function Lke({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, F.jsx)(aU, {})
+ children: /* @__PURE__ */ (0, F.jsx)(iU, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, F.jsx)(Dke, {
+ children: /* @__PURE__ */ (0, F.jsx)(Ake, {
code: e.cover_key || e.code || "",
coverUrl: co(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: GM(e.id),
+ queryKey: WM(e.id),
exact: !0
- }), VM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), BM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, F.jsx)(Rke, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, F.jsx)(Vke, {
id: e.id,
actions: r,
onStatus: i
@@ -71491,7 +71502,7 @@ function Lke({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function Rke({ id: e, actions: t, onStatus: n }) {
+function Vke({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, P.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -71521,17 +71532,17 @@ function Rke({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "folder-sync" })
})] });
}
-function zke({ item: e, write: t }) {
- let n = UM(e.rating);
+function Hke({ item: e, write: t }) {
+ let n = HM(e.rating);
return /* @__PURE__ */ (0, F.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": HM(e.rating),
+ "data-value": VM(e.rating),
children: [/* @__PURE__ */ (0, F.jsx)(ZJ, {
value: n,
onRate: (e) => t.rate(e),
@@ -71546,14 +71557,14 @@ function zke({ item: e, write: t }) {
}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Bce(e.rating)
+ children: Uce(e.rating)
})]
});
}
-function Bke({ item: e, actions: t }) {
- let n = (0, P.useMemo)(() => Gce(e), [e]), [r, i] = (0, P.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function Uke({ item: e, actions: t }) {
+ let n = (0, P.useMemo)(() => Jce(e), [e]), [r, i] = (0, P.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, F.jsx)(w2, {
+ return /* @__PURE__ */ (0, F.jsx)(C2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -71585,7 +71596,7 @@ function Bke({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "user-round" })
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { name: "user-round" })
}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -71597,7 +71608,7 @@ function Bke({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: xz,
+ trailingIcon: bz,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -71616,18 +71627,18 @@ function Bke({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, F.jsx)(T2, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(w2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function Vke({ item: e, write: t, helpers: n, actions: r }) {
+function Wke({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-item-tags": "",
- children: /* @__PURE__ */ (0, F.jsx)(g2, {
+ children: /* @__PURE__ */ (0, F.jsx)(h2, {
id: "detailTags",
- tags: Kce(e, n),
+ tags: Yce(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -71638,8 +71649,8 @@ function Vke({ item: e, write: t, helpers: n, actions: r }) {
})
});
}
-function Hke({ item: e }) {
- let t = tle(e);
+function Gke({ item: e }) {
+ let t = ile(e);
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -71673,7 +71684,7 @@ function Hke({ item: e }) {
})]
});
}
-function Uke({ item: e, open: t, write: n }) {
+function Kke({ item: e, open: t, write: n }) {
let [r, i] = (0, P.useState)(e.like_reason || ""), a = (0, P.useRef)(null);
(0, P.useEffect)(() => {
t && a.current?.focus();
@@ -71712,12 +71723,12 @@ function Uke({ item: e, open: t, write: n }) {
})]
});
}
-function Wke(e) {
+function qke(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Pt({
- queryKey: Vce(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Uce(t.id, n), e)).items || []
+ queryKey: Wce(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(Kce(t.id, n), e)).items || []
}), [o] = (0, P.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, F.jsx)(d2, {
+ return /* @__PURE__ */ (0, F.jsx)(u2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -71738,11 +71749,11 @@ function Wke(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, F.jsx)(L2, { html: o })
+ }) : /* @__PURE__ */ (0, F.jsx)(I2, { html: o })
});
}
-function Gke(e, t, n) {
- let r = e.id, i = GM(r), [a, o] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), d = (e, t) => o((n) => {
+function Jke(e, t, n) {
+ let r = e.id, i = WM(r), [a, o] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -71758,7 +71769,7 @@ function Gke(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return BM(r, n), t;
+ return zM(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -71773,7 +71784,7 @@ function Gke(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(JM, t === void 0 ? { kind: e } : {
+ let n = await m(qM, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -71793,21 +71804,21 @@ function Gke(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = WM(n, e);
- await _("rate", r), t.toast(r ? `已评 ${UM(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = UM(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${HM(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(mN(e, r), { undo: async () => {
+ t.toast(pN(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(XM, {});
+ let e = await m(YM, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(XM, {})).watch_later });
+ p({ watch_later: (await m(YM, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -71817,9 +71828,9 @@ function Gke(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(ZM, { wanted: !e.wanted });
+ }), r = await m(XM, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(ZM, e));
+ n(await m(XM, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -71833,7 +71844,7 @@ function Gke(e, t, n) {
});
u("保存中…");
try {
- o(await m(QM, {
+ o(await m(ZM, {
liked: a,
reason: i
}));
@@ -71843,7 +71854,7 @@ function Gke(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(QM, r));
+ o(await m(ZM, r));
} });
});
},
@@ -71852,37 +71863,37 @@ function Gke(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => cN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(YM, {
+ p((t) => sN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(JM, {
operation: "add",
tag: e.k
- }), p((t) => lN(t, e));
+ }), p((t) => cN(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(YM, {
+ let e = await m(JM, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- sN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => lN(e, {
+ oN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => cN(e, {
k: i,
cat: "general"
- })), fN(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(YM, {
+ })), dN(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(JM, {
operation: "remove",
tag: i
- }), p((e) => cN(e, i));
+ }), p((e) => sN(e, i));
} }));
});
}
};
}
// src/react/activity/downloads-panel.tsx
-var B2 = "/api/downloads", V2 = ["downloads"], Kke = "/api/downloads/cancel", qke = "/api/downloads/postprocess", H2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Jke = {
+var z2 = "/api/downloads", B2 = ["downloads"], Yke = "/api/downloads/cancel", Xke = "/api/downloads/postprocess", V2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Zke = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -71891,21 +71902,21 @@ var B2 = "/api/downloads", V2 = ["downloads"], Kke = "/api/downloads/cancel", qk
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, U2 = (e) => {
- let t = e.display_code || e.code || "", { title: n } = hF({
+}, H2 = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = WF({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, W2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Yke = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function Xke() {
+}, U2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Qke = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function $ke() {
let e = (0, P.useId)(), t = It({
- queryKey: [...V2, "pages"],
+ queryKey: [...B2, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${B2}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${z2}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,
- refetchInterval: (e) => e.state.data?.pages.some((e) => H2(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => V2(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
return !r.length && !t.error ? null : /* @__PURE__ */ (0, F.jsxs)("section", {
id: "cloudDownloads",
@@ -71917,14 +71928,14 @@ function Xke() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ t.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: cr(t.error)
}) : null,
r.length ? /* @__PURE__ */ (0, F.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, F.jsx)(Zke, {
+ children: r.map((e) => /* @__PURE__ */ (0, F.jsx)(eAe, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -71932,9 +71943,9 @@ function Xke() {
t.hasNextPage ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: xz,
+ leadingIcon: bz,
className: "self-start",
- ...Qz(t.isFetchingNextPage),
+ ...Zz(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -71943,16 +71954,16 @@ function Xke() {
]
});
}
-function Zke({ task: e, writable: t }) {
- iI();
- let n = oe(), r = BH(), [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(!1), c = (0, P.useId)(), l = W2(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+function eAe({ task: e, writable: t }) {
+ sI();
+ let n = oe(), r = zH(), [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(!1), c = (0, P.useId)(), l = U2(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- $F(e.submitted_at)
+ aI(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: V2 });
+ n.invalidateQueries({ queryKey: B2 });
}, g = () => {
- r.run("cancel", (t) => V(Kke, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(Yke, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -71962,16 +71973,16 @@ function Zke({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(B2, t, "POST", e), h);
+ r.run("resubmit", (e) => V(z2, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(qke, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(Xke, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, F.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: QH({
+ className: ZH({
padding: "none",
bordered: "line",
className: p ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -71982,14 +71993,14 @@ function Zke({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(jA) },
+ style: { "--card-ratio": String(LA) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, F.jsx)(nG, {
+ u?.has_cover ? /* @__PURE__ */ (0, F.jsx)(rG, {
artwork: {
kind: "cover",
html: xo(u, "big")
@@ -71999,7 +72010,7 @@ function Zke({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, F.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${U2(e)}`,
+ "aria-label": `打开作品详情:${H2(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
@@ -72010,19 +72021,19 @@ function Zke({ task: e, writable: t }) {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: U2(e),
+ title: H2(e),
children: f ? /* @__PURE__ */ (0, F.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: U2(e)
- }) : U2(e)
+ children: H2(e)
+ }) : H2(e)
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(oZ, {
- color: Jke[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, F.jsx)(aZ, {
+ color: Zke[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, F.jsx)(oZ, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, F.jsx)(aZ, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -72032,7 +72043,7 @@ function Zke({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, F.jsx)(hU, {
+ children: /* @__PURE__ */ (0, F.jsx)(mU, {
source: e.provider,
label: e.provider_label
})
@@ -72059,7 +72070,7 @@ function Zke({ task: e, writable: t }) {
children: [d.map((e) => tn("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, F.jsx)(tU, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, F.jsx)(eU, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -72069,7 +72080,7 @@ function Zke({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, F.jsx)(lU, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, F.jsx)(cU, { children: r.error }) : null,
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
@@ -72094,21 +72105,21 @@ function Zke({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Qz(r.busy === "cancel"),
+ ...Zz(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Qz(r.busy === "resubmit"),
+ ...Zz(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Qz(r.busy === "postprocess"),
+ ...Zz(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -72123,33 +72134,33 @@ function Zke({ task: e, writable: t }) {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: U2(e)
+ children: H2(e)
}) : null,
l || e.postprocess_detail ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, F.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || Yke(e)
+ children: l || Qke(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var G2 = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), K2 = (e, t) => !!G2(e) && G2(e) === G2(t);
+var W2 = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), G2 = (e, t) => !!W2(e) && W2(e) === W2(t);
// src/react/activity/resource-search.tsx
-function Qke({ className: e }) {
+function tAe({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: zs("") }
});
}
-function $ke(e) {
+function nAe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function eAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, P.useState)(e), [s, c] = (0, P.useState)(() => $ke(t)), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(null), [h, g] = (0, P.useState)(""), [_, v] = (0, P.useState)(""), y = BH(), b = (0, P.useRef)(null);
+function rAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, P.useState)(e), [s, c] = (0, P.useState)(() => nAe(t)), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(null), [h, g] = (0, P.useState)(""), [_, v] = (0, P.useState)(""), y = zH(), b = (0, P.useRef)(null);
(0, P.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -72165,7 +72176,7 @@ function eAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
b.current = e, B(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => K2(e.code, t));
+ let r = (n.items || []).find((e) => G2(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -72186,18 +72197,18 @@ function eAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, F.jsxs)(cU, { children: [
+ t ? /* @__PURE__ */ (0, F.jsxs)(sU, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, F.jsx)(Wz, {
+ /* @__PURE__ */ (0, F.jsx)(Uz, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? Qke : Fz,
+ leadingIcon: y.busy ? tAe : Pz,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -72207,7 +72218,7 @@ function eAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, F.jsx)(uU, { children: "优先寻找" }), /* @__PURE__ */ (0, F.jsxs)(zU, {
+ children: [/* @__PURE__ */ (0, F.jsx)(lU, { children: "优先寻找" }), /* @__PURE__ */ (0, F.jsxs)(RU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -72215,15 +72226,15 @@ function eAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, F.jsx)(BU, {
+ /* @__PURE__ */ (0, F.jsx)(zU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, F.jsx)(BU, {
+ /* @__PURE__ */ (0, F.jsx)(zU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, F.jsx)(BU, {
+ /* @__PURE__ */ (0, F.jsx)(zU, {
id: "uncensored",
children: "无码"
})
@@ -72232,32 +72243,32 @@ function eAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, F.jsx)(Wz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Uz, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, F.jsx)(Wz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Uz, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, F.jsx)(cU, {
+ y.busy ? /* @__PURE__ */ (0, F.jsx)(sU, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, F.jsx)(lU, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, F.jsx)(cU, {
+ y.error ? /* @__PURE__ */ (0, F.jsx)(cU, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, F.jsx)(sU, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, F.jsx)(cU, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, F.jsx)(sU, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, F.jsx)(cU, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, F.jsx)(sU, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
@@ -72267,7 +72278,7 @@ function eAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, F.jsx)(cU, { children: [
+ /* @__PURE__ */ (0, F.jsx)(sU, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -72291,19 +72302,19 @@ function eAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var tAe = {
+var iAe = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function q2({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, F.jsx)(Gz, {
+function K2({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, F.jsx)(Wz, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, F.jsx)(nAe, {
+ children: e ? /* @__PURE__ */ (0, F.jsx)(aAe, {
prefill: e,
close: t,
receipt: n,
@@ -72311,26 +72322,26 @@ function q2({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function nAe({ prefill: e, close: t, receipt: n, provider: r }) {
+function aAe({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Pt({
- queryKey: V2,
- queryFn: ({ signal: e }) => B(`${B2}?limit=50`, e),
- refetchInterval: (e) => H2(e.state.data)
+ queryKey: B2,
+ queryFn: ({ signal: e }) => B(`${z2}?limit=50`, e),
+ refetchInterval: (e) => V2(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, F.jsx)(WI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(UI, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: wz,
+ leadingIcon: Cz,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, F.jsx)(rAe, {
+ return a ? /* @__PURE__ */ (0, F.jsx)(oAe, {
header: o,
snapshot: a,
prefill: e,
@@ -72343,7 +72354,7 @@ function nAe({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ children: i.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: cr(i.error)
}) : null
@@ -72359,8 +72370,8 @@ function nAe({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function rAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = oe(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, P.useState)(c?.key || ""), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(n.code ?? ""), [h, g] = (0, P.useState)(c?.target || ""), [_, v] = (0, P.useState)(n.code ? n : null), [y, b] = (0, P.useState)(""), x = t.available && s.some((e) => e.key === l), S = BH(), C = (0, P.useRef)(null), w = (e) => {
+function oAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = oe(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, P.useState)(c?.key || ""), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(n.code ?? ""), [h, g] = (0, P.useState)(c?.target || ""), [_, v] = (0, P.useState)(n.code ? n : null), [y, b] = (0, P.useState)(""), x = t.available && s.some((e) => e.key === l), S = zH(), C = (0, P.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, F.jsxs)("form", {
@@ -72376,14 +72387,14 @@ function rAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(B2, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: V2 });
- let t = tAe[e.outcome];
+ b(""), S.run("submit", (e) => V(z2, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: B2 });
+ let t = iAe[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = W2(e.task);
+ let n = U2(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -72407,7 +72418,7 @@ function rAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, F.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, F.jsx)(cU, { children: [
+ }), _ ? /* @__PURE__ */ (0, F.jsx)(sU, { children: [
_.performers,
_.studio,
_.release_date,
@@ -72415,22 +72426,22 @@ function rAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, F.jsx)(eAe, {
+ /* @__PURE__ */ (0, F.jsx)(rAe, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- K2(e, _?.code) || (v(K2(e, n.code) ? n : null), f("")), m(e);
+ G2(e, _?.code) || (v(G2(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? K2(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? G2(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : K2(t?.code, n.code) ? t : null),
+ } : e : G2(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, F.jsx)(Wz, {
+ /* @__PURE__ */ (0, F.jsx)(Uz, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -72442,38 +72453,38 @@ function rAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, F.jsx)(uU, { children: "下载到" }),
- /* @__PURE__ */ (0, F.jsx)(zU, {
+ /* @__PURE__ */ (0, F.jsx)(lU, { children: "下载到" }),
+ /* @__PURE__ */ (0, F.jsx)(RU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, F.jsx)(BU, {
+ children: s.map((e) => /* @__PURE__ */ (0, F.jsx)(zU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, F.jsx)(hU, {
+ children: /* @__PURE__ */ (0, F.jsx)(mU, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, F.jsx)(cU, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, F.jsx)(sU, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, F.jsx)(qz, {
+ t.available ? null : /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, F.jsxs)(qz, {
+ s.length ? null : /* @__PURE__ */ (0, F.jsxs)(Kz, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, F.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, F.jsx)(Wz, {
+ /* @__PURE__ */ (0, F.jsx)(Uz, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -72481,17 +72492,17 @@ function rAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, F.jsx)(Wz, {
+ n.code ? null : /* @__PURE__ */ (0, F.jsx)(Uz, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), K2(e, _?.code) || v(null);
+ m(e), G2(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, F.jsx)(lU, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, F.jsx)(cU, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -72503,7 +72514,7 @@ function rAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, F.jsx)(q, {
type: "submit",
disabled: !d.trim() || !x,
- ...Qz(S.busy === "submit"),
+ ...Zz(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -72511,11 +72522,11 @@ function rAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/publication-cache.ts
-var J2 = 864e5, Y2 = (e) => {
+var q2 = 864e5, J2 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function X2(e) {
+function Y2(e) {
let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");
if (!t) return;
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));
@@ -72523,25 +72534,25 @@ function X2(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function iAe(e, t = Date.now()) {
- let n = X2(e);
- return n !== void 0 && Y2(t) > n ? Infinity : J2;
+function sAe(e, t = Date.now()) {
+ let n = Y2(e);
+ return n !== void 0 && J2(t) > n ? Infinity : q2;
}
-function Z2(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : iAe(t, n) === Infinity ? Y2(e) > X2(t) : n - e < J2;
+function X2(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : sAe(t, n) === Infinity ? J2(e) > Y2(t) : n - e < q2;
}
// src/react/wants/resource-cache.ts
-var Q2 = "peach.want-resources.v2";
-function $2(e) {
+var Z2 = "peach.want-resources.v2";
+function Q2(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function e4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !$2(e) ? Date.now() - t < 6e4 : Z2(t, n));
+function $2(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !Q2(e) ? Date.now() - t < 6e4 : X2(t, n));
}
-function t4() {
+function e4() {
try {
- let e = JSON.parse(localStorage.getItem(Q2) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && $2(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem(Z2) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && Q2(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -72550,23 +72561,23 @@ function t4() {
return [];
}
}
-function aAe(e, t) {
- let n = t4().find((t) => t.code === e);
- return n && Z2(n.saved, t) ? n : void 0;
+function cAe(e, t) {
+ let n = e4().find((t) => t.code === e);
+ return n && X2(n.saved, t) ? n : void 0;
}
-function oAe(e) {
- let t = new Map(t4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function lAe(e) {
+ let t = new Map(e4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
let e = t.get(`all-sources:${r.code}`);
- e && Z2(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && X2(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function sAe(e, t) {
- if (t.state === "ready" && $2(t)) try {
- let n = t4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(Q2, JSON.stringify([{
+function uAe(e, t) {
+ if (t.state === "ready" && Q2(t)) try {
+ let n = e4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(Z2, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -72574,15 +72585,15 @@ function sAe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function cAe(e) {
+function dAe(e) {
let t = /^([\d,]+)\s*B$/i.exec(e.trim());
return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? Yn(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
}
-function lAe(e) {
+function fAe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
-function n4({ icon: e, children: t, title: n }) {
+function t4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, F.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -72592,8 +72603,8 @@ function n4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, P.useRef)(null), [c, l] = (0, P.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, P.useState)([]), f = BH(), p = oe(), m = (0, P.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, P.useMemo)(() => aAe(h, e.release_date), [h, e.release_date]);
+function n4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
+ let s = (0, P.useRef)(null), [c, l] = (0, P.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, P.useState)([]), f = zH(), p = oe(), m = (0, P.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, P.useMemo)(() => cAe(h, e.release_date), [h, e.release_date]);
(0, P.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -72613,22 +72624,22 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
],
queryFn: async ({ signal: t }) => {
let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", sAe(h, i), i;
+ return m.current = n && i.state === "busy", uAe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => e4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => $2(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !e4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !$2(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
(0, P.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, P.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && eEe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && rEe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -72636,7 +72647,7 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await V(B2, {
+ let n = await V(z2, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -72647,7 +72658,7 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: V2 });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: B2 });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -72665,39 +72676,39 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: Pz,
- ...Qz(x),
+ leadingIcon: Nz,
+ ...Zz(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, F.jsx)($H, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ x ? /* @__PURE__ */ (0, F.jsx)(QH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, F.jsx)(qz, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
- children: lAe(e)
+ children: fAe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, F.jsx)(SI, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, F.jsx)(xI, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: Tz,
+ trailingIcon: wz,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ f.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -72712,7 +72723,7 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(oZ, {
+ children: [/* @__PURE__ */ (0, F.jsx)(aZ, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -72726,26 +72737,26 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-facts": "",
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, F.jsx)(n4, {
- icon: Gpe,
+ /* @__PURE__ */ (0, F.jsx)(t4, {
+ icon: Jpe,
children: e.source
}),
- /* @__PURE__ */ (0, F.jsx)(n4, {
- icon: kz,
+ /* @__PURE__ */ (0, F.jsx)(t4, {
+ icon: Oz,
title: `来源大小:${e.size}`,
- children: cAe(e.size)
+ children: dAe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, F.jsx)(n4, {
- icon: Ipe,
+ e.files ? /* @__PURE__ */ (0, F.jsx)(t4, {
+ icon: zpe,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, F.jsx)(n4, {
- icon: Spe,
+ /* @__PURE__ */ (0, F.jsx)(t4, {
+ icon: Tpe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, F.jsx)(n4, {
- icon: Nz,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, F.jsx)(t4, {
+ icon: Mz,
children: e
}, e))
]
@@ -72754,11 +72765,11 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(SI, {
+ /* @__PURE__ */ (0, F.jsx)(xI, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: Tz,
+ trailingIcon: wz,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -72767,18 +72778,18 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: Ppe,
- ...Qz(f.busy === `copy:${e.id}`),
+ leadingIcon: Lpe,
+ ...Zz(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
size: "small",
- leadingIcon: v ? mU(v.key) : Ope,
+ leadingIcon: v ? pU(v.key) : jpe,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...Qz(f.busy === e.id),
+ ...Zz(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -72789,7 +72800,7 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, F.jsx)(dU, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, F.jsx)(uU, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -72801,10 +72812,10 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
});
}
// src/react/jav-detail/review-cache.ts
-var i4 = "peach.jav-reviews.v2";
-function a4() {
+var r4 = "peach.jav-reviews.v2";
+function i4() {
try {
- let e = localStorage.getItem(i4) || "[]";
+ let e = localStorage.getItem(r4) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@ -72812,21 +72823,21 @@ function a4() {
return [];
}
}
-function uAe(e, t) {
+function pAe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...a4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(i4, i);
+ }, ...i4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(r4, i);
} catch {}
}
-function dAe(e, t) {
- let n = a4(), r = [], i = Infinity;
+function mAe(e, t) {
+ let n = i4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !Z2(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !X2(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -72834,16 +72845,16 @@ function dAe(e, t) {
saved: i
} : void 0;
}
-function fAe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && Z2(Date.parse(e.checked_at || "") || t, n));
+function hAe(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && X2(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function pAe(e) {
+function gAe(e) {
let t = (0, P.useRef)(!1), n = Pt({
- queryKey: O2(e.code),
+ queryKey: D2(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, k2(e.code, n, r);
+ return t.current = !1, O2(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -72853,21 +72864,21 @@ function pAe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, F.jsx)(mAe, {
+ children: n.data ? /* @__PURE__ */ (0, F.jsx)(_Ae, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, F.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, F.jsx)(o4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, F.jsx)(tG, {
+ children: [/* @__PURE__ */ (0, F.jsx)(a4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, F.jsx)(nG, {
message: cr(n.error),
onRetry: r
}) : null]
})
});
}
-var o4 = ({ close: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
+var a4 = ({ close: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -72876,7 +72887,7 @@ var o4 = ({ close: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function _Ae({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, P.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, P.useEffect)(() => {
@@ -72896,13 +72907,13 @@ function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, P.useState)(null), [d, f] = (0, P.useState)(t.want_id), p = BH(), m = () => {
- p.run("want", async (e) => d ? (await v$([d], e), null) : (await _$({ code: t.code }, e)).want.id, (t) => {
- f(t), H.setQueryData(O2(e), (e) => e && {
+ ], [l, u] = (0, P.useState)(null), [d, f] = (0, P.useState)(t.want_id), p = zH(), m = () => {
+ p.run("want", async (e) => d ? (await _$([d], e), null) : (await g$({ code: t.code }, e)).want.id, (t) => {
+ f(t), H.setQueryData(D2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), y$(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), v$(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
@@ -72911,24 +72922,24 @@ function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(o4, { close: n.close }),
+ /* @__PURE__ */ (0, F.jsx)(a4, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, F.jsx)(s4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, F.jsx)(o4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, F.jsx)(_Ae, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, F.jsx)(fQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, F.jsx)(bAe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, F.jsx)(dQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
- /* @__PURE__ */ (0, F.jsx)(p2, {
+ /* @__PURE__ */ (0, F.jsx)(f2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, F.jsx)(fQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, F.jsx)(dQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -72942,33 +72953,33 @@ function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, F.jsx)(hAe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, F.jsx)(l4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, F.jsx)(vAe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, F.jsx)(c4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, F.jsx)(c4, {
+ children: [/* @__PURE__ */ (0, F.jsx)(s4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, F.jsx)(c4, {
+ }), /* @__PURE__ */ (0, F.jsx)(s4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, F.jsx)(gAe, {
+ /* @__PURE__ */ (0, F.jsx)(yAe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, F.jsx)(c4, {
+ children: [/* @__PURE__ */ (0, F.jsx)(s4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, F.jsx)(c4, {
+ }), /* @__PURE__ */ (0, F.jsx)(s4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -72997,14 +73008,14 @@ function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: mF(t.summary),
+ lang: UF(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ t.message ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Qz(a),
+ ...Zz(a),
onClick: i,
children: "立即重试"
}),
@@ -73013,10 +73024,10 @@ function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, F.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, F.jsx)(SI, {
+ t.source_url ? /* @__PURE__ */ (0, F.jsx)(xI, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: Tz,
+ trailingIcon: wz,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -73026,7 +73037,7 @@ function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...Qz(!!p.busy),
+ ...Zz(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -73044,16 +73055,16 @@ function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ p.error ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, F.jsx)(vAe, {
+ /* @__PURE__ */ (0, F.jsx)(xAe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, F.jsx)(yAe, {
+ /* @__PURE__ */ (0, F.jsx)(SAe, {
item: t,
actions: n,
readOnly: r
@@ -73061,24 +73072,24 @@ function mAe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, F.jsx)(q2, {
+ /* @__PURE__ */ (0, F.jsx)(K2, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var s4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
+var o4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: R(e) }
-}), c4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, F.jsxs)("span", {
+}), s4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, F.jsx)(s4, { name: e }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, F.jsx)(o4, { name: e }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
}) : null;
-function hAe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = E2(e.title), a = e.title === e.code ? "" : e.title;
+function vAe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = T2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, F.jsx)("h1", {
@@ -73094,7 +73105,7 @@ function hAe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, F.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)("span", {
- lang: mF(a),
+ lang: UF(a),
children: a
})] }) : null]
})
@@ -73108,12 +73119,12 @@ function hAe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, F.jsx)(aU, {})
+ children: /* @__PURE__ */ (0, F.jsx)(iU, {})
})
})]
});
}
-function l4({ score: e, review: t = !1 }) {
+function c4({ score: e, review: t = !1 }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
@@ -73126,7 +73137,7 @@ function l4({ score: e, review: t = !1 }) {
})]
});
}
-function gAe({ item: e, navigate: t }) {
+function yAe({ item: e, navigate: t }) {
let n = (e, n) => t(Nn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, F.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -73135,14 +73146,14 @@ function gAe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, F.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, F.jsx)(w2, {
+ children: i.map((r) => /* @__PURE__ */ (0, F.jsx)(C2, {
kind: t,
person: {
...r,
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, F.jsx)(pQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, F.jsx)(fQ, {
code: e.code,
person: r,
detail: !0
@@ -73159,7 +73170,7 @@ function gAe({ item: e, navigate: t }) {
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, F.jsx)(T2, {
+ }), /* @__PURE__ */ (0, F.jsx)(w2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -73168,18 +73179,18 @@ function gAe({ item: e, navigate: t }) {
})]
});
}
-function _Ae({ src: e }) {
+function bAe({ src: e }) {
let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(0);
return (0, P.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), wce(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Dce(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, F.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ children: n ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
@@ -73192,8 +73203,8 @@ function _Ae({ src: e }) {
}) : null
});
}
-function vAe({ code: e, count: t, released: n }) {
- let r = oe(), [i, a] = (0, P.useState)(!1), o = (0, P.useMemo)(() => dAe(e, n), [e, n]), s = (0, P.useRef)(!1), c = It({
+function xAe({ code: e, count: t, released: n }) {
+ let r = oe(), [i, a] = (0, P.useState)(!1), o = (0, P.useMemo)(() => mAe(e, n), [e, n]), s = (0, P.useRef)(!1), c = It({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -73202,12 +73213,12 @@ function vAe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => fAe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => hAe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await bke(e, n, t, s.current);
- if (uAe(e, i), !i.ok || i.cache_stale) {
+ let i = await Cke(e, n, t, s.current);
+ if (pAe(e, i), !i.ok || i.cache_stale) {
let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);
if (t?.ok) return {
...t,
@@ -73217,7 +73228,7 @@ function vAe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: xke
+ getNextPageParam: wke
});
(0, P.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -73225,10 +73236,10 @@ function vAe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? cr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, F.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, F.jsxs)(dU, {
+ children: /* @__PURE__ */ (0, F.jsxs)(uU, {
trailing: !0,
summary: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(Cpe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, F.jsx)(Epe, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -73265,7 +73276,7 @@ function vAe({ code: e, count: t, released: n }) {
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, F.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, F.jsx)(l4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, F.jsx)(c4, {
score: Number(e.score),
review: !0
}) : null,
@@ -73277,28 +73288,28 @@ function vAe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, F.jsx)("p", {
"data-long-text": "",
- lang: mF(e.content),
+ lang: UF(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ d ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Qz(c.isFetching),
+ ...Zz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, F.jsx)(qz, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, F.jsx)(Kz, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Qz(c.isFetching),
+ ...Zz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -73306,13 +73317,13 @@ function vAe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Qz(c.isFetchingNextPage),
+ ...Zz(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, F.jsxs)(qz, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, F.jsxs)(Kz, {
tone: "neutral",
children: [
"已显示 ",
@@ -73324,21 +73335,21 @@ function vAe({ code: e, count: t, released: n }) {
})
});
}
-function yAe({ item: e, actions: t, readOnly: n }) {
+function SAe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, P.useState)(!1), a = Pt({
- queryKey: V2,
+ queryKey: B2,
enabled: r,
- queryFn: ({ signal: e }) => B(`${B2}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${z2}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, F.jsx)(dU, {
+ children: /* @__PURE__ */ (0, F.jsx)(uU, {
trailing: !0,
- summary: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(s4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(o4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, F.jsx)(r4, {
+ children: s ? /* @__PURE__ */ (0, F.jsx)(n4, {
want: {
id: 0,
code: e.code,
@@ -73355,31 +73366,31 @@ function yAe({ item: e, actions: t, readOnly: n }) {
});
}
// src/react/stage/stage-player.ts
-var u4 = null, d4 = null, f4 = null, p4 = null, m4 = null, h4 = !1, g4 = 0, _4 = null, v4 = () => !1, y4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function bAe(e, t) {
- u4 = e, v4 = () => t.isOpen(), _4 = () => t.requestClose(), Gse({
+var l4 = null, u4 = null, d4 = null, f4 = null, p4 = null, m4 = !1, h4 = 0, g4 = null, _4 = () => !1, v4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function CAe(e, t) {
+ l4 = e, _4 = () => t.isOpen(), g4 = () => t.requestClose(), Use({
...e.player,
stage: () => document.getElementById("stage")
- }), Kse({
- inMiniplayer: (e) => d4?.player === e,
- kind: (e) => d4?.player === e ? d4.kind : f4?.kind ?? p4?.kind ?? "item",
- expand: () => z4(),
- toMiniplayer: () => B4()
- }), b4 || (b4 = !0, addEventListener("pagehide", () => hM()));
-}
-var b4 = !1;
-function x4() {
- if (!u4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return u4;
-}
-function S4(e) {
- p4 = e;
-}
-var xAe = () => p4;
-function C4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = y4(n, r.id, i?.index ?? null);
- if (d4 && d4.key === a) return CAe(e, d4);
- d4 && R4();
+ }), Wse({
+ inMiniplayer: (e) => u4?.player === e,
+ kind: (e) => u4?.player === e ? u4.kind : d4?.kind ?? f4?.kind ?? "item",
+ expand: () => R4(),
+ toMiniplayer: () => z4()
+ }), y4 || (y4 = !0, addEventListener("pagehide", () => gM()));
+}
+var y4 = !1;
+function b4() {
+ if (!l4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return l4;
+}
+function x4(e) {
+ f4 = e;
+}
+var wAe = () => f4;
+function S4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = v4(n, r.id, i?.index ?? null);
+ if (u4 && u4.key === a) return EAe(e, u4);
+ u4 && L4();
let o = {
player: null,
kind: n,
@@ -73387,52 +73398,52 @@ function C4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- f4 = o;
+ d4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = OM(s, {
+ let c = DM(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- f4 === o && (o.player = e);
+ d4 === o && (o.player = e);
},
- handedOff: (e) => d4?.player === e
+ handedOff: (e) => u4?.player === e
});
return () => {
- let e = !!o.player && d4?.player === o.player;
- f4 === o && (f4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), hM());
+ let e = !!o.player && u4?.player === o.player;
+ d4 === o && (d4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), gM());
};
}
-async function SAe(e, t, n) {
+async function TAe(e, t, n) {
let r = await wn(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await x4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(x4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await b4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(b4().player.offlineReason(String(r.root_id || r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- S4(a);
- let o = C4(t, {
+ x4(a);
+ let o = S4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && p4 === a && T4(!0), o(), p4 === a && S4(null));
+ s || (s = !0, e && f4 === a && w4(!0), o(), f4 === a && x4(null));
};
}
-function CAe(e, t) {
+function EAe(e, t) {
let { player: n } = t;
- I4(t), d4 = null, L4(), n.el().classList.remove("vjs-peach-mini"), EM(e), e.append(n.el()), gj(n);
+ F4(t), u4 = null, I4(), n.el().classList.remove("vjs-peach-mini"), TM(e), e.append(n.el()), bj(n);
let r = {
player: n,
kind: t.kind,
@@ -73440,23 +73451,23 @@ function CAe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- f4 = r;
- let i = DM(n, e);
- return _j(n), () => {
- f4 === r && (f4 = null), i(), d4?.player !== n && (hj() === n && gj(null), rM(n), hM());
+ d4 = r;
+ let i = EM(n, e);
+ return xj(n), () => {
+ d4 === r && (d4 = null), i(), u4?.player !== n && (yj() === n && bj(null), sM(n), gM());
};
}
-var w4 = () => {
- let e = f4?.player;
+var C4 = () => {
+ let e = d4?.player;
return e && !e.isDisposed() ? e : null;
};
-function T4(e) {
- let t = h4;
- h4 = !1, d4?.pending && R4();
- let n = f4, r = n?.player, i = p4;
- if (!n || !r || r.isDisposed() || !i || !m4) return;
- let a = x4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && DAe({
+function w4(e) {
+ let t = m4;
+ m4 = !1, u4?.pending && L4();
+ let n = d4, r = n?.player, i = f4;
+ if (!n || !r || r.isDisposed() || !i || !p4) return;
+ let a = b4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && AAe({
player: r,
kind: n.kind,
item: n.item,
@@ -73464,46 +73475,46 @@ function T4(e) {
key: n.key
}, i);
}
-function E4(e, t) {
- h4 = !1, d4 && (d4.kind === e && d4.item.id === t ? (d4.pending = !0, L4()) : R4());
+function T4(e, t) {
+ m4 = !1, u4 && (u4.kind === e && u4.item.id === t ? (u4.pending = !0, I4()) : L4());
}
-function D4(e) {
- m4 = e, m4 && P4();
+function E4(e) {
+ p4 = e, p4 && N4();
}
-var O4 = () => !!d4 && !d4.pending && !d4.player.isDisposed();
-function wAe() {
- return O4() ? m4?.frame.querySelector("video") ?? null : null;
+var D4 = () => !!u4 && !u4.pending && !u4.player.isDisposed();
+function DAe() {
+ return D4() ? p4?.frame.querySelector("video") ?? null : null;
}
-function TAe() {
- return v4() ? document.getElementById("stage")?.querySelector("video") ?? null : w4()?.el().querySelector("video") ?? wAe();
+function OAe() {
+ return _4() ? document.getElementById("stage")?.querySelector("video") ?? null : C4()?.el().querySelector("video") ?? DAe();
}
-function k4(e) {
- m4 && (m4.title.textContent = e.title || "", m4.sub.textContent = e.sub || "", m4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function O4(e) {
+ p4 && (p4.title.textContent = e.title || "", p4.sub.textContent = e.sub || "", p4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function A4(e = d4?.item) {
- if (!m4) return;
- let t = m4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- m4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function k4(e = u4?.item) {
+ if (!p4) return;
+ let t = p4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ p4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function j4() {
- let e = d4?.player;
- if (!e || e.isDisposed() || !m4) return;
+function A4() {
+ let e = u4?.player;
+ if (!e || e.isDisposed() || !p4) return;
let t = e.paused();
- m4.play.setAttribute("aria-label", t ? "播放" : "暂停"), m4.play.querySelector("[data-icon-swap]") || (m4.play.innerHTML = Gs("player-pause", "player-play", t ? "b" : "a")), Ks(m4.play, t ? "b" : "a");
-}
-function M4() {
- let e = d4?.player;
- if (!e || e.isDisposed() || !m4) return;
- let t = Kn(d4?.item.duration) || Kn(e.duration());
- m4.time.textContent = `${Jn(e.currentTime())} / ${t ? Jn(t) : "0:00"}`;
-}
-var N4 = () => Math.max(1, Number(x4().player.settings().seekSeconds) || 10);
-function P4() {
- if (!m4 || !u4) return;
- let e = N4();
- for (let [t, n] of [[m4.back, `后退 ${e} 秒`], [m4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+ p4.play.setAttribute("aria-label", t ? "播放" : "暂停"), p4.play.querySelector("[data-icon-swap]") || (p4.play.innerHTML = Gs("player-pause", "player-play", t ? "b" : "a")), Ks(p4.play, t ? "b" : "a");
}
-function F4(e) {
+function j4() {
+ let e = u4?.player;
+ if (!e || e.isDisposed() || !p4) return;
+ let t = Kn(u4?.item.duration) || Kn(e.duration());
+ p4.time.textContent = `${Jn(e.currentTime())} / ${t ? Jn(t) : "0:00"}`;
+}
+var M4 = () => Math.max(1, Number(b4().player.settings().seekSeconds) || 10);
+function N4() {
+ if (!p4 || !l4) return;
+ let e = M4();
+ for (let [t, n] of [[p4.back, `后退 ${e} 秒`], [p4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function P4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -73515,17 +73526,17 @@ function F4(e) {
"play",
"pause",
"ended"
- ], j4), t([
+ ], A4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], M4), t("loadedmetadata", () => A4()), j4(), M4(), A4(), P4();
+ ], j4), t("loadedmetadata", () => k4()), A4(), j4(), k4(), N4();
}
-function I4(e) {
+function F4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function EAe() {
- let e = m4?.root;
+function kAe() {
+ let e = p4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -73533,8 +73544,8 @@ function EAe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function L4() {
- let e = m4?.root;
+function I4() {
+ let e = p4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -73545,73 +73556,73 @@ function L4() {
e.style.transform = "";
}
}
-function DAe(e, t) {
- if (!m4) return;
+function AAe(e, t) {
+ if (!p4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- d4 = n, g4++, e.player.el().classList.add("vjs-peach-mini"), m4.frame.prepend(e.player.el()), k4(t), F4(n), EAe(), _j(e.player);
+ u4 = n, h4++, e.player.el().classList.add("vjs-peach-mini"), p4.frame.prepend(e.player.el()), O4(t), P4(n), kAe(), xj(e.player);
}
-function R4() {
- let e = d4;
- e && I4(e), d4 = null, g4++;
+function L4() {
+ let e = u4;
+ e && F4(e), u4 = null, h4++;
let t = e?.player ?? null;
- t && hj() === t && gj(null), rM(t), t && hM(), m4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), pj(), L4();
+ t && yj() === t && bj(null), sM(t), t && gM(), p4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), _j(), I4();
}
-function z4() {
- if (!O4() || !d4) return;
- let { kind: e, item: t, mediaIndex: n } = d4;
- x4().expand(e, t.id, n);
+function R4() {
+ if (!D4() || !u4) return;
+ let { kind: e, item: t, mediaIndex: n } = u4;
+ b4().expand(e, t.id, n);
}
-function B4() {
- O4() && !v4() ? z4() : v4() && w4() && _4 && (h4 = !0, _4());
+function z4() {
+ D4() && !_4() ? R4() : _4() && C4() && g4 && (m4 = !0, g4());
}
-function OAe() {
- let e = d4?.player;
+function jAe() {
+ let e = u4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function V4(e) {
- let t = d4?.player;
+function B4(e) {
+ let t = u4?.player;
if (!t || t.isDisposed()) return;
- let n = Kn(t.duration()) || Kn(d4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + N4() * e);
+ let n = Kn(t.duration()) || Kn(u4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + M4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function H4(e) {
- return !(!O4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || x4().sourceOffline(String(e.root_id || e.location || "")));
-}
-async function kAe(e) {
- if (!O4() || !d4 || !m4) return;
- let t = ++g4, n = await wn(`/api/item?id=${e}`).catch(() => null);
- if (t !== g4 || !O4() || !d4 || !m4 || !n || n.error) return;
- if (!H4(n)) {
- x4().openItem(e);
+function V4(e) {
+ return !(!D4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || b4().sourceOffline(String(e.root_id || e.location || "")));
+}
+async function MAe(e) {
+ if (!D4() || !u4 || !p4) return;
+ let t = ++h4, n = await wn(`/api/item?id=${e}`).catch(() => null);
+ if (t !== h4 || !D4() || !u4 || !p4 || !n || n.error) return;
+ if (!V4(n)) {
+ b4().openItem(e);
return;
}
- let r = d4;
- I4(r), hj() === r.player && gj(null), rM(r.player), hM(), m4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = u4;
+ F4(r), yj() === r.player && bj(null), sM(r.player), gM(), p4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", m4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", p4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- k4(a), OM(i, {
+ O4(a), DM(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== g4) {
- r && hj() === r && gj(null), rM(r);
+ if (t !== h4) {
+ r && yj() === r && bj(null), sM(r);
return;
}
if (!r) {
- R4(), x4().openItem(e);
+ L4(), b4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -73620,25 +73631,25 @@ async function kAe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: y4("item", n.id, null),
+ key: v4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- d4 = i, F4(i);
+ u4 = i, P4(i);
}
- }), A4(n);
+ }), k4(n);
}
// src/react/stage/miniplayer.tsx
-var U4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
+var H4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
-}), AAe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, W4 = (e) => (t) => {
+}), NAe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, U4 = (e) => (t) => {
t.stopPropagation(), e();
-}, jAe = (0, P.memo)(function() {
+}, PAe = (0, P.memo)(function() {
let e = (0, P.useRef)(null), t = (0, P.useRef)(null), n = (0, P.useRef)(null), r = (0, P.useRef)(null), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useRef)(null), l = (0, P.useRef)(null);
- return (0, P.useLayoutEffect)(() => (D4({
+ return (0, P.useLayoutEffect)(() => (E4({
root: e.current,
frame: n.current,
play: r.current,
@@ -73648,7 +73659,7 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => D4(null)), []), (0, P.useEffect)(() => NAe(e.current, t.current), []), /* @__PURE__ */ (0, F.jsx)("aside", {
+ }), () => E4(null)), []), (0, P.useEffect)(() => IAe(e.current, t.current), []), /* @__PURE__ */ (0, F.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -73672,24 +73683,24 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: W4(z4),
- children: /* @__PURE__ */ (0, F.jsx)(U4, { name: "maximize-2" })
+ onClick: U4(R4),
+ children: /* @__PURE__ */ (0, F.jsx)(H4, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: W4(R4),
- children: /* @__PURE__ */ (0, F.jsx)(U4, { name: "x" })
+ onClick: U4(L4),
+ children: /* @__PURE__ */ (0, F.jsx)(H4, { name: "x" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: W4(() => V4(-1)),
- children: /* @__PURE__ */ (0, F.jsx)(U4, { name: "rotate-ccw" })
+ onClick: U4(() => B4(-1)),
+ children: /* @__PURE__ */ (0, F.jsx)(H4, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
ref: r,
@@ -73698,16 +73709,16 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: W4(OAe),
- dangerouslySetInnerHTML: AAe
+ onClick: U4(jAe),
+ dangerouslySetInnerHTML: NAe
}),
/* @__PURE__ */ (0, F.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: W4(() => V4(1)),
- children: /* @__PURE__ */ (0, F.jsx)(U4, { name: "rotate-cw" })
+ onClick: U4(() => B4(1)),
+ children: /* @__PURE__ */ (0, F.jsx)(H4, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, F.jsx)("span", {
ref: i,
@@ -73724,7 +73735,7 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => z4(),
+ onClick: () => R4(),
children: [/* @__PURE__ */ (0, F.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -73738,7 +73749,7 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
})
});
});
-function MAe(e, t, n) {
+function FAe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -73760,7 +73771,7 @@ function MAe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function NAe(e, t) {
+function IAe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -73786,7 +73797,7 @@ function NAe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), MAe(e, i.dx, i.dy));
+ }, 0), FAe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -73797,57 +73808,57 @@ function NAe(e, t) {
};
}
// src/react/stage/stage.tsx
-var G4 = null, K4 = null, q4 = null, J4 = /* @__PURE__ */ new Set(), Y4 = 0, X4 = null, Z4 = !1, Q4 = !1, $4 = () => {
+var W4 = null, G4 = null, K4 = null, q4 = /* @__PURE__ */ new Set(), J4 = 0, Y4 = null, X4 = !1, Z4 = !1, Q4 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function e3() {
- if (!G4) throw Error("舞台还没有接上宿主(configureStage)");
- return G4;
+function $4() {
+ if (!W4) throw Error("舞台还没有接上宿主(configureStage)");
+ return W4;
}
-function PAe(e) {
- return J4.add(e), () => {
- J4.delete(e);
+function LAe(e) {
+ return q4.add(e), () => {
+ q4.delete(e);
};
}
-function FAe() {
- for (let e of [...J4]) e();
+function RAe() {
+ for (let e of [...q4]) e();
}
-function t3() {
- (0, Lt.flushSync)(FAe);
+function e3() {
+ (0, Lt.flushSync)(RAe);
}
-function IAe({ view: e }) {
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [e ? /* @__PURE__ */ (0, F.jsx)(LAe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, F.jsx)(jAe, {})] });
+function zAe({ view: e }) {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [e ? /* @__PURE__ */ (0, F.jsx)(BAe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, F.jsx)(PAe, {})] });
}
-var n3 = () => /* @__PURE__ */ (0, F.jsx)("div", {
+var t3 = () => /* @__PURE__ */ (0, F.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: POe() }
+ dangerouslySetInnerHTML: { __html: LOe() }
});
-function r3(e) {
+function n3(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function i3() {
- let e = $4(), t = e && LOe(e);
+function r3() {
+ let e = Q4(), t = e && BOe(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
- }))) : a3();
+ }))) : i3();
}
-function LAe({ view: e }) {
+function BAe({ view: e }) {
let t = (0, P.useRef)(null);
(0, P.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), i3());
+ t.target === e && (t.preventDefault(), r3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, F.jsx)(kke, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, F.jsx)(pAe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, F.jsx)(uke, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, F.jsx)(Mke, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, F.jsx)(gAe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, F.jsx)(pke, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, F.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -73855,27 +73866,27 @@ function LAe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), i3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), r3());
},
onPointerDown: (e) => {
- Q4 = r3(e);
+ Z4 = n3(e);
},
onClick: (e) => {
- Q4 && r3(e) && a3();
+ Z4 && n3(e) && i3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, F.jsx)(n3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, F.jsx)(t3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, F.jsx)(n3, {})
+ children: /* @__PURE__ */ (0, F.jsx)(t3, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, F.jsx)(BT, {
- getContainer: () => Y0(t.current),
+ children: /* @__PURE__ */ (0, F.jsx)(KT, {
+ getContainer: () => J0(t.current),
children: i
})
})
@@ -73883,14 +73894,14 @@ function LAe({ view: e }) {
]
});
}
-function a3() {
- K4 && !Z4 && (Z4 = !0, K4.request.actions.close());
+function i3() {
+ G4 && !X4 && (X4 = !0, G4.request.actions.close());
}
-function o3(e, t) {
- let n = $4();
+function a3(e, t) {
+ let n = Q4();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function s3(e) {
+function o3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -73898,30 +73909,30 @@ function s3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: a3
+ close: i3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => e3().player.settings(), i = () => K4?.request === e;
+ }, r = () => $4().player.settings(), i = () => G4?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: a3,
+ close: i3,
present: (e, t) => {
let n = e.performers;
- S4({
+ x4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), o3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), a3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => C4(e, {
+ mountPlayer: (e, t, r, i) => S4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -73939,18 +73950,18 @@ function s3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: a3,
+ close: i3,
present: (e, t) => {
- S4({
+ x4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), o3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), a3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => C4(e, {
+ mountPlayer: (e, t, r, i) => S4(e, {
kind: "follow",
item: t,
media: r,
@@ -73967,106 +73978,106 @@ function s3(e) {
}
};
}
-function RAe(e, t) {
+function VAe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), K4?.generation === t && K4.phase === "reveal" && (K4 = {
- ...K4,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), G4?.generation === t && G4.phase === "reveal" && (G4 = {
+ ...G4,
phase: "content"
- }, t3());
+ }, e3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function c3(e) {
- let t = $4();
- return !K4 || K4.content.kind !== e || Z4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function s3(e) {
+ let t = Q4();
+ return !G4 || G4.content.kind !== e || X4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function zAe(e) {
- !q4 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (q4 = {
+async function HAe(e) {
+ !K4 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (K4 = {
left: window.scrollX,
top: window.scrollY,
anchor: document.activeElement
});
- let t = c3(e.kind);
+ let t = s3(e.kind);
if (t) {
- await VAe(e, t);
+ await WAe(e, t);
return;
}
- K4 && l3({ miniplayer: !1 });
- let n = ++Y4, r = new AbortController();
- X4 = r, Z4 = !1, Q4 = !1, e.kind === "jav" ? R4() : E4(e.kind, e.id ?? NaN);
- let i = s3(e);
- K4 = {
+ G4 && c3({ miniplayer: !1 });
+ let n = ++J4, r = new AbortController();
+ Y4 = r, X4 = !1, Z4 = !1, e.kind === "jav" ? L4() : T4(e.kind, e.id ?? NaN);
+ let i = o3(e);
+ G4 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? oN(i.props, r.signal) : i.kind === "jav" ? A2(i.props, r.signal) : t2(i.props, r.signal);
- if (n !== Y4 || K4?.request !== e) {
+ let a = i.kind === "item" ? aN(i.props, r.signal) : i.kind === "jav" ? k2(i.props, r.signal) : e2(i.props, r.signal);
+ if (n !== J4 || G4?.request !== e) {
await a.catch(() => {});
return;
}
- let o = BAe(i);
- K4 = {
- ...K4,
+ let o = UAe(i);
+ G4 = {
+ ...G4,
phase: o ? "content" : "skeleton"
- }, t3();
- let s = $4();
+ }, e3();
+ let s = Q4();
if (!s) {
await a.catch(() => {});
return;
}
- o || uc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), Z0(s);
+ o || uc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), X0(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== Y4 || !K4 || o) return;
+ if (n !== J4 || !G4 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- K4 = {
- ...K4,
+ G4 = {
+ ...G4,
phase: c ? "content" : "reveal"
- }, t3(), c || RAe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, e3(), c || VAe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function BAe(e) {
- if (e.kind === "jav") return !!H.getQueryData(O2(e.props.code));
- if (e.kind === "follow") return !!H.getQueryData(Q0(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(KM(t)) : null;
+function UAe(e) {
+ if (e.kind === "jav") return !!H.getQueryData(D2(e.props.code));
+ if (e.kind === "follow") return !!H.getQueryData(Z0(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(GM(t)) : null;
if (t && !r) return !1;
- let i = r ? iN(r, n) : n;
- return i != null && !!H.getQueryData(GM(i));
+ let i = r ? rN(r, n) : n;
+ return i != null && !!H.getQueryData(WM(i));
}
-async function VAe(e, t) {
- let n = ++Y4;
- X4?.abort();
+async function WAe(e, t) {
+ let n = ++J4;
+ Y4?.abort();
let r = new AbortController();
- X4 = r, Q4 = !1;
- let i = s3(e);
+ Y4 = r, Z4 = !1;
+ let i = o3(e);
try {
- i.kind === "item" ? await oN(i.props, r.signal) : i.kind === "jav" ? await A2(i.props, r.signal) : await t2(i.props, r.signal);
+ i.kind === "item" ? await aN(i.props, r.signal) : i.kind === "jav" ? await k2(i.props, r.signal) : await e2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== Y4 || !K4 || c3(e.kind) !== t) return;
- e.kind === "jav" ? R4() : E4(e.kind, e.id ?? NaN), ql(t), pj(), K4 = {
- ...K4,
+ if (n !== J4 || !G4 || s3(e.kind) !== t) return;
+ e.kind === "jav" ? L4() : T4(e.kind, e.id ?? NaN), ql(t), _j(), G4 = {
+ ...G4,
request: e,
content: i,
phase: "content"
- }, t3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Qs(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, e3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Qs(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function HAe() {
- Z0(null);
- let e = $4();
+function GAe() {
+ X0(null);
+ let e = Q4();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -74076,14 +74087,14 @@ function HAe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function l3({ miniplayer: e = !0 } = {}) {
- if (Y4++, X4?.abort(), X4 = null, T4(e), !K4) return;
- let t = $4();
- t && ql(t), pj(), Z0(null), t?.open && t.close(), K4 = null, Z4 = !1, Q4 = !1, t3(), S4(null), document.body.removeAttribute("data-detail-open");
- let n = q4;
- q4 = null;
+function c3({ miniplayer: e = !0 } = {}) {
+ if (J4++, Y4?.abort(), Y4 = null, w4(e), !G4) return;
+ let t = Q4();
+ t && ql(t), _j(), X0(null), t?.open && t.close(), G4 = null, X4 = !1, Z4 = !1, e3(), x4(null), document.body.removeAttribute("data-detail-open");
+ let n = K4;
+ K4 = null;
let r = () => {
- !K4 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
+ !G4 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
left: n.left,
top: n.top,
behavior: "instant"
@@ -74091,80 +74102,80 @@ function l3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function UAe(e) {
- K4 && (K4 = {
- ...K4,
- content: K4.content.kind === "item" ? {
+function KAe(e) {
+ G4 && (G4 = {
+ ...G4,
+ content: G4.content.kind === "item" ? {
kind: "item",
props: {
- ...K4.content.props,
+ ...G4.content.props,
...e
}
- } : K4.content.kind === "jav" ? K4.content : {
+ } : G4.content.kind === "jav" ? G4.content : {
kind: "follow",
props: {
- ...K4.content.props,
+ ...G4.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, t3());
+ }, e3());
}
-function WAe() {
- let e = xAe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, e3().player.settings().javImage) : "";
+function qAe() {
+ let e = wAe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, $4().player.settings().javImage) : "";
if (!n) return;
- let r = w4();
+ let r = C4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var GAe = {
- open: zAe,
- update: UAe,
- exit: HAe,
- dispose: l3,
- requestClose: a3,
- requestEscape: i3,
- repaintPoster: WAe,
- isOpen: () => !!K4,
- showing: () => K4 && c3(K4.content.kind) ? K4.content.kind : null,
- activeVideo: () => TAe(),
- mountWallPlayer: SAe,
+var JAe = {
+ open: HAe,
+ update: KAe,
+ exit: GAe,
+ dispose: c3,
+ requestClose: i3,
+ requestEscape: r3,
+ repaintPoster: qAe,
+ isOpen: () => !!G4,
+ showing: () => G4 && s3(G4.content.kind) ? G4.content.kind : null,
+ activeVideo: () => OAe(),
+ mountWallPlayer: TAe,
toggleTheater: () => {
- K4 && Wj(!e3().player.settings().theaterMode);
+ G4 && Jj(!$4().player.settings().theaterMode);
},
- toggleMiniplayer: () => B4(),
- closeMiniplayer: () => R4(),
- miniplayerActive: () => O4(),
- miniplayerTakesCard: (e) => H4(e),
+ toggleMiniplayer: () => z4(),
+ closeMiniplayer: () => L4(),
+ miniplayerActive: () => D4(),
+ miniplayerTakesCard: (e) => V4(e),
miniplayerPlay: (e) => {
- kAe(e);
+ MAe(e);
}
};
-function KAe(e) {
- return G4 = e, bAe(e, {
- isOpen: () => !!K4,
- requestClose: a3
- }), GAe;
+function YAe(e) {
+ return W4 = e, CAe(e, {
+ isOpen: () => !!G4,
+ requestClose: i3
+ }), JAe;
}
-function qAe() {
- let e = (0, P.useSyncExternalStore)(PAe, () => K4);
- return G4 ? /* @__PURE__ */ (0, F.jsx)(IAe, { view: e }) : null;
+function XAe() {
+ let e = (0, P.useSyncExternalStore)(LAe, () => G4);
+ return W4 ? /* @__PURE__ */ (0, F.jsx)(zAe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var JAe = "/api/stats", u3 = ["stats"], d3 = (e) => B(JAe, e);
-async function YAe(e) {
+var ZAe = "/api/stats", l3 = ["stats"], u3 = (e) => B(ZAe, e);
+async function QAe(e) {
await H.fetchQuery({
- queryKey: u3,
- queryFn: () => d3(e)
+ queryKey: l3,
+ queryFn: () => u3(e)
});
}
-var f3 = (e) => e != null && Number.isFinite(e), XAe = (e) => f3(e) ? e.toLocaleString() : "未取得", ZAe = (e, t) => f3(e) && f3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, QAe = (e, t) => {
- let n = ZAe(e, t);
- return !n && f3(e) && e > 0 && f3(t) && t > 0 ? "<1%" : `${n}%`;
-}, p3 = (e) => {
- if (!f3(e)) return "未取得";
+var d3 = (e) => e != null && Number.isFinite(e), $Ae = (e) => d3(e) ? e.toLocaleString() : "未取得", eje = (e, t) => d3(e) && d3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, tje = (e, t) => {
+ let n = eje(e, t);
+ return !n && d3(e) && e > 0 && d3(t) && t > 0 ? "<1%" : `${n}%`;
+}, f3 = (e) => {
+ if (!d3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, m3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, h3 = (e) => (e.max_reached || 0) * 100, $Ae = (e) => e.kind === "online" ? "在线直接观看" : m3(e) < h3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", eje = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function tje(e, t = 6) {
+}, p3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, m3 = (e) => (e.max_reached || 0) * 100, nje = (e) => e.kind === "online" ? "在线直接观看" : p3(e) < m3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", rje = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function ije(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);
@@ -74174,7 +74185,7 @@ function tje(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var nje = (e) => Math.max(1, ...e) * 1.1, rje = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, ije = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), aje = {
+var aje = (e) => Math.max(1, ...e) * 1.1, oje = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, sje = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), cje = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -74182,18 +74193,18 @@ var nje = (e) => Math.max(1, ...e) * 1.1, rje = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, oje = (e) => e.map((e) => ({
- name: aje[e.k] ?? e.k,
+}, lje = (e) => e.map((e) => ({
+ name: cje[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), sje = {
+})).sort((e, t) => t.value - e.value), uje = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, g3 = (e, t = {}) => e.map((e) => ({
+}, h3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), cje = (e) => g3(e, sje), lje = [
+})), dje = (e) => h3(e, uje), fje = [
[
1,
1,
@@ -74229,12 +74240,12 @@ var nje = (e) => Math.max(1, ...e) * 1.1, rje = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], uje = (e) => lje.map(([t, n, r]) => ({
+], pje = (e) => fje.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
// node_modules/d3-array/src/max.js
-function _3(e, t) {
+function g3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -74244,7 +74255,7 @@ function _3(e, t) {
return n;
}
// node_modules/d3-array/src/min.js
-function v3(e, t) {
+function _3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -74254,7 +74265,7 @@ function v3(e, t) {
return n;
}
// node_modules/d3-array/src/sum.js
-function y3(e, t) {
+function v3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -74264,64 +74275,64 @@ function y3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function dje(e, t) {
+function mje(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
-function b3(e) {
+function y3(e) {
return function() {
return e;
};
}
// node_modules/d3-sankey/src/sankey.js
+function b3(e, t) {
+ return S3(e.source, t.source) || e.index - t.index;
+}
function x3(e, t) {
- return C3(e.source, t.source) || e.index - t.index;
+ return S3(e.target, t.target) || e.index - t.index;
}
function S3(e, t) {
- return C3(e.target, t.target) || e.index - t.index;
-}
-function C3(e, t) {
return e.y0 - t.y0;
}
-function w3(e) {
+function C3(e) {
return e.value;
}
-function fje(e) {
+function hje(e) {
return e.index;
}
-function pje(e) {
+function gje(e) {
return e.nodes;
}
-function mje(e) {
+function _je(e) {
return e.links;
}
-function T3(e, t) {
+function w3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function E3({ nodes: e }) {
+function T3({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function hje() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = fje, c = dje, l, u, d = pje, f = mje, p = 6;
+function vje() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = hje, c = mje, l, u, d = gje, f = _je, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), E3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), T3(e), e;
}
m.update = function(e) {
- return E3(e), e;
+ return T3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : b3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : y3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : b3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : y3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -74329,9 +74340,9 @@ function hje() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : b3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : y3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : b3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : y3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -74347,12 +74358,12 @@ function hje() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = T3(n, t)), typeof i != "object" && (i = r.target = T3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = w3(n, t)), typeof i != "object" && (i = r.target = w3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(y3(t.sourceLinks, w3), y3(t.targetLinks, w3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(v3(t.sourceLinks, C3), v3(t.targetLinks, C3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -74377,7 +74388,7 @@ function hje() {
}
}
function y({ nodes: t }) {
- let r = _3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = g3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -74386,7 +74397,7 @@ function hje() {
return o;
}
function b(e) {
- let n = v3(e, (e) => (r - t - (e.length - 1) * o) / y3(e, w3));
+ let n = _3(e, (e) => (r - t - (e.length - 1) * o) / v3(e, C3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -74403,7 +74414,7 @@ function hje() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (_3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (g3(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -74422,7 +74433,7 @@ function hje() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(C3), w(i, n);
+ l === void 0 && i.sort(S3), w(i, n);
}
}
function C(e, t, n) {
@@ -74438,7 +74449,7 @@ function hje() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(C3), w(i, n);
+ l === void 0 && i.sort(S3), w(i, n);
}
}
function w(e, n) {
@@ -74459,12 +74470,12 @@ function hje() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(S3);
- for (let { target: { targetLinks: t } } of e) t.sort(x3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(x3);
+ for (let { target: { targetLinks: t } } of e) t.sort(b3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(S3), n.sort(x3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(x3), n.sort(b3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -74493,15 +74504,15 @@ function hje() {
return m;
}
// node_modules/d3-path/src/path.js
-var D3 = Math.PI, O3 = 2 * D3, k3 = 1e-6, gje = O3 - k3;
-function A3() {
+var E3 = Math.PI, D3 = 2 * E3, O3 = 1e-6, yje = D3 - O3;
+function k3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function j3() {
- return new A3();
+function A3() {
+ return new k3();
}
-A3.prototype = j3.prototype = {
- constructor: A3,
+k3.prototype = A3.prototype = {
+ constructor: k3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -74522,11 +74533,11 @@ A3.prototype = j3.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > k3) {
- if (!(Math.abs(u * s - c * l) > k3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > O3) {
+ if (!(Math.abs(u * s - c * l) > O3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((D3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > k3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((E3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > O3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -74534,7 +74545,7 @@ A3.prototype = j3.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > k3 || Math.abs(this._y1 - l) > k3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % O3 + O3), d > gje ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > k3 && (this._ += "A" + n + "," + n + ",0," + +(d >= D3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > O3 || Math.abs(this._y1 - l) > O3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % D3 + D3), d > yje ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > O3 && (this._ += "A" + n + "," + n + ",0," + +(d >= E3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -74544,93 +74555,93 @@ A3.prototype = j3.prototype = {
}
};
// node_modules/d3-shape/src/constant.js
-function M3(e) {
+function j3(e) {
return function() {
return e;
};
}
// node_modules/d3-shape/src/point.js
-function _je(e) {
+function bje(e) {
return e[0];
}
-function vje(e) {
+function xje(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var yje = Array.prototype.slice;
+var Sje = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function bje(e) {
+function Cje(e) {
return e.source;
}
-function xje(e) {
+function wje(e) {
return e.target;
}
-function Sje(e) {
- var t = bje, n = xje, r = _je, i = vje, a = null;
+function Tje(e) {
+ var t = Cje, n = wje, r = bje, i = xje, a = null;
function o() {
- var o, s = yje.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = j3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = Sje.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = A3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : M3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : j3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : M3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : j3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function Cje(e, t, n, r, i) {
+function Eje(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function wje() {
- return Sje(Cje);
+function Dje() {
+ return Tje(Eje);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function Tje(e) {
+function Oje(e) {
return [e.source.x1, e.y0];
}
-function Eje(e) {
+function kje(e) {
return [e.target.x0, e.y1];
}
-function Dje() {
- return wje().source(Tje).target(Eje);
+function Aje() {
+ return Dje().source(Oje).target(kje);
}
// src/react/taste/taste.ts
-var Oje = "/api/taste", N3 = "/api/taste/refresh", kje = "/api/taste/import", P3 = "/api/taste/source", F3 = (e) => ["taste", e], Aje = ["taste", "refresh"], jje = [
+var jje = "/api/taste", M3 = "/api/taste/refresh", Mje = "/api/taste/import", N3 = "/api/taste/source", P3 = (e) => ["taste", e], Nje = ["taste", "refresh"], Pje = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], Mje = 2e3, Nje = (e) => e?.stale && !e.error ? Mje : !1, Pje = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], Fje = 2e3, Ije = (e) => e?.stale && !e.error ? Fje : !1, Lje = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", Fje = (e, t) => V(P3, {
+}) : "—", Rje = (e, t) => V(N3, {
...e,
window: t
-}), I3 = (e, t, n = !1) => B(`${Oje}?window=${e}${n ? "&retry=1" : ""}`, t), Ije = (e) => B(N3, e);
-async function Lje(e, t) {
+}), F3 = (e, t, n = !1) => B(`${jje}?window=${e}${n ? "&retry=1" : ""}`, t), zje = (e) => B(M3, e);
+async function Bje(e, t) {
await H.fetchQuery({
- queryKey: F3(e),
- queryFn: () => I3(e, t)
+ queryKey: P3(e),
+ queryFn: () => F3(e, t)
});
}
-var Rje = (e) => V(N3, {
+var Vje = (e) => V(M3, {
window: e,
background: !0
-}), zje = (e, t) => V(P3, {
+}), Hje = (e, t) => V(N3, {
operation: "remove",
source_key: e,
window: t
});
-async function Bje(e) {
- let t = await fetch(kje, {
+async function Uje(e) {
+ let t = await fetch(Mje, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -74648,52 +74659,52 @@ async function Bje(e) {
}
return n;
}
-var Vje = 1e4, L3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function Hje(e) {
+var Wje = 1e4, I3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function Gje(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
month: "numeric",
day: "numeric"
- }) : L3(e);
+ }) : I3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var Uje = p3, Wje = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), Gje = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function Kje(e) {
+var Kje = f3, qje = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), Jje = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function Yje(e) {
if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();
let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;
return r > 0 && t.push(`浏览 ${r.toLocaleString()}`), n && t.push(`书签 ${n.toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
}
-function qje(e) {
- let t = e.map(Gje), n = Math.max(1, ...t);
+function Xje(e) {
+ let t = e.map(Jje), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var R3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var L3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function Jje(e) {
- let t = R3(e, 6);
+function Zje(e) {
+ let t = L3(e, 6);
return t.length < 3 ? [] : t;
}
-var z3 = {
+var R3 = {
width: 720,
height: 435
-}, Yje = {
+}, Qje = {
source: 145,
target: 545
-}, B3 = 30, Xje = 240;
-function V3(e, t, n) {
+}, z3 = 30, $je = 240;
+function B3(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
if (r.size <= 12) return (e) => e;
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function Zje(e = []) {
+function eMe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = V3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = V3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = B3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = B3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
for (let e of t) {
let t = n(e.source), a = r(e.target), o = JSON.stringify([t, a]), s = i.get(o);
s ? s.value += e.value : i.set(o, {
@@ -74702,7 +74713,7 @@ function Zje(e = []) {
value: e.value
});
}
- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * B3 + Xje), u = hje().nodeId((e) => e.id).nodeWidth(10).nodePadding(B3).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * z3 + $je), u = vje().nodeId((e) => e.id).nodeWidth(10).nodePadding(z3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -74717,7 +74728,7 @@ function Zje(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = Dje();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = Aje();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -74745,17 +74756,17 @@ function Zje(e = []) {
};
}),
total: d,
- height: l + z3.height - 404
+ height: l + R3.height - 404
};
}
-var Qje = (e) => er(e, 17), H3 = {
+var tMe = (e) => er(e, 17), V3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, $je = [[
+}, nMe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -74763,7 +74774,7 @@ var Qje = (e) => er(e, 17), H3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], eMe = [[
+]], rMe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -74771,7 +74782,7 @@ var Qje = (e) => er(e, 17), H3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], tMe = [[
+]], iMe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -74779,7 +74790,7 @@ var Qje = (e) => er(e, 17), H3 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], nMe = [
+]], aMe = [
[
"studios",
"厂牌",
@@ -74795,7 +74806,7 @@ var Qje = (e) => er(e, 17), H3 = {
"系列",
"file-stack"
]
-], rMe = [[
+], oMe = [[
"local",
"本地",
"hard-drive"
@@ -74803,7 +74814,7 @@ var Qje = (e) => er(e, 17), H3 = {
"online",
"在线",
"rss"
-]], iMe = [
+]], sMe = [
[
"performers",
"艺人",
@@ -74819,7 +74830,7 @@ var Qje = (e) => er(e, 17), H3 = {
"在线",
"rss"
]
-], aMe = [[
+], cMe = [[
"cloud",
"标签云",
"tags"
@@ -74827,8 +74838,8 @@ var Qje = (e) => er(e, 17), H3 = {
"alphabet",
"字母表",
"text-aa"
-]], U3 = (e) => e === "compact" ? "compact" : "big";
-function W3(e, t) {
+]], H3 = (e) => e === "compact" ? "compact" : "big";
+function U3(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -74838,7 +74849,7 @@ function W3(e, t) {
category: n.get("category") || "all"
};
}
-var G3 = (e, t, n) => Hs(e.map(([e, t, n]) => ({
+var W3 = (e, t, n) => Hs(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -74846,12 +74857,12 @@ var G3 = (e, t, n) => Hs(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), oMe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
+}), lMe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${Xc("tag-view", "标签视图", aMe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function sMe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = H3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? tMe : c ? eMe : $je, a) : "";
+ <span class="ml-auto">${Xc("tag-view", "标签视图", cMe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function uMe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = V3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? iMe : c ? rMe : nMe, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
@@ -74863,26 +74874,26 @@ function sMe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? G3(rMe, n, "词表") : e === "performers" || e === "creators" ? G3(iMe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? G3(nMe, e, "资料类型") : ""}
- ${e === "tags" ? oMe(r) : ""}
- ${e === "performers" && n !== "online" ? $Se(i) : ""}
+ ${e === "tags" ? W3(oMe, n, "词表") : e === "performers" || e === "creators" ? W3(sMe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? W3(aMe, e, "资料类型") : ""}
+ ${e === "tags" ? lMe(r) : ""}
+ ${e === "performers" && n !== "online" ? nCe(i) : ""}
${rc({
kind: e,
layout: a,
mode: r
})}`;
}
-var cMe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function K3(e, t, n) {
- let r = sMe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== cMe(r) && (e.innerHTML = r, uc(e));
+var dMe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function G3(e, t, n) {
+ let r = uMe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== dMe(r) && (e.innerHTML = r, uc(e));
}
// src/react/router/pages/index-entity.tsx
-var lMe = () => Du, uMe = () => fu, q3 = () => document.getElementById("index");
-function J3(e, t, n = {}) {
- let r = (0, P.useSyncExternalStore)(Ru, lMe);
- YB();
- let i = kV(cH.navigation.location.pathname), a = (0, P.useRef)({
+var fMe = () => Du, pMe = () => fu, K3 = () => document.getElementById("index");
+function q3(e, t, n = {}) {
+ let r = (0, P.useSyncExternalStore)(Ru, fMe);
+ JB();
+ let i = OV(sH.navigation.location.pathname), a = (0, P.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -74907,7 +74918,7 @@ function J3(e, t, n = {}) {
let t = a.current;
if (!t.mounted) return;
let n = t.epoch !== e || t.opens !== Du, r = t.opens !== Du;
- if (t.epoch = e, t.opens = Du, kV(cH.navigation.location.pathname)) {
+ if (t.epoch = e, t.opens = Du, OV(sH.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -74928,13 +74939,13 @@ function J3(e, t, n = {}) {
i
]);
}
-async function dMe(e, t, n, r) {
- let i = q3();
+async function mMe(e, t, n, r) {
+ let i = K3();
if (!i) return;
let a = `/${t}`;
e.surfaceChanged("index", a);
- let o = W3(t, n), s = U3(SA().value.peopleLayout);
- K3(i, o, s), await ZV(a, {
+ let o = U3(t, n), s = H3(OA().value.peopleLayout);
+ G3(i, o, s), await XV(a, {
...o,
layout: s,
selectMode: fu,
@@ -74944,23 +74955,23 @@ async function dMe(e, t, n, r) {
isCurrent: r
}) && r() && e.surfaceShown?.("index", a);
}
-function fMe(e) {
- let t = q3(), n = t ? qV(t) : null;
+function hMe(e) {
+ let t = K3(), n = t ? KV(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function pMe({ epoch: e }) {
- let t = (0, P.useContext)(LU), n = YB(), r = n.pathname.split("/").filter(Boolean)[0];
- return J3(e, (e, i) => {
- t && dMe(t, r, n.search, i);
- }, { shown: () => fMe(`/${r}`) }), null;
+function gMe({ epoch: e }) {
+ let t = (0, P.useContext)(IU), n = JB(), r = n.pathname.split("/").filter(Boolean)[0];
+ return q3(e, (e, i) => {
+ t && mMe(t, r, n.search, i);
+ }, { shown: () => hMe(`/${r}`) }), null;
}
-function mMe() {
- let e = IU(), t = (0, P.useSyncExternalStore)(Ru, uMe), n = (0, P.useRef)(t);
+function _Me() {
+ let e = FU(), t = (0, P.useSyncExternalStore)(Ru, pMe), n = (0, P.useRef)(t);
return (0, P.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && QV(q3(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, F.jsx)(pMe, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && ZV(K3(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, F.jsx)(gMe, { epoch: e }, e);
}
-function Y3(e) {
+function J3(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -74974,9 +74985,9 @@ function Y3(e) {
name: a
} : null;
}
-var X3 = /* @__PURE__ */ new WeakMap();
-function hMe(e) {
- let t = X3.get(e);
+var Y3 = /* @__PURE__ */ new WeakMap();
+function vMe(e) {
+ let t = Y3.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -74986,14 +74997,14 @@ function hMe(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, X3.set(e, t)), t;
+ }, Y3.set(e, t)), t;
}
-function Z3() {
- let e = q3(), t = e ? qV(e) : null;
+function X3() {
+ let e = K3(), t = e ? KV(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function gMe(e, t, n, r, i, a, o) {
- let s = q3();
+async function yMe(e, t, n, r, i, a, o) {
+ let s = K3();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (e.surfaceChanged("entity", r), await t.loading(l, u, a), !a()) return;
@@ -75007,7 +75018,7 @@ async function gMe(e, t, n, r, i, a, o) {
}, h = t.props(l, u, i), g = {
...h,
hosts: m,
- card: hMe(e),
+ card: vMe(e),
resolvedEntity: o,
actions: {
...h.actions,
@@ -75016,18 +75027,18 @@ async function gMe(e, t, n, r, i, a, o) {
}
}
};
- await ZV(`/${c}/*`, g, {
+ await XV(`/${c}/*`, g, {
container: s,
isCurrent: a,
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && Z3() && (e.surfaceShown?.("entity", r), window.scrollTo({
+ }) && a() && X3() && (e.surfaceShown?.("entity", r), window.scrollTo({
top: 0,
behavior: "smooth"
}));
}
-function _Me({ target: e }) {
- let t = (0, P.useContext)(LU), n = IU(), r = YB();
- return J3(n, (n, i) => {
+function bMe({ target: e }) {
+ let t = (0, P.useContext)(IU), n = FU(), r = JB();
+ return q3(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
let o = new URLSearchParams({ kind: e.kind });
@@ -75043,9 +75054,9 @@ function _Me({ target: e }) {
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- lH(Nn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ cH(Nn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
replace: !0,
- state: cH.navigation.location.state
+ state: sH.navigation.location.state
});
return;
}
@@ -75054,22 +75065,22 @@ function _Me({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = Nn(e.kind, c, Number(s.id));
- l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && gMe(t, a, {
+ l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && yMe(t, a, {
...e,
name: c
- }, r.pathname, r.search, i, s) : lH(l + r.search + r.hash, {
+ }, r.pathname, r.search, i, s) : cH(l + r.search + r.hash, {
replace: !0,
- state: cH.navigation.location.state
+ state: sH.navigation.location.state
});
})();
- }, { shown: () => Z3() && !q3()?.hidden }), null;
+ }, { shown: () => X3() && !K3()?.hidden }), null;
}
-function vMe() {
- let e = Y3(YB().pathname);
- return e ? /* @__PURE__ */ (0, F.jsx)(_Me, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function xMe() {
+ let e = J3(JB().pathname);
+ return e ? /* @__PURE__ */ (0, F.jsx)(bMe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/jav/jav-header.tsx
-function Q3({ tab: e, navigate: t, find: n }) {
+function Z3({ tab: e, navigate: t, find: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -75083,46 +75094,46 @@ function Q3({ tab: e, navigate: t, find: n }) {
onClick: n,
children: "查找资源"
})]
- }), /* @__PURE__ */ (0, F.jsx)(IQ, {
- tabs: b$.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, F.jsx)(FQ, {
+ tabs: y$.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(aEe(e))
+ onChange: (e) => t(cEe(e))
})]
});
}
-function yMe({ navigate: e, receipt: t }) {
+function SMe({ navigate: e, receipt: t }) {
let [n, r] = (0, P.useState)(null);
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Q3, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Z3, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, F.jsx)(q2, {
+ }), /* @__PURE__ */ (0, F.jsx)(K2, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/router/pages/catalog.tsx
-var bMe = () => Du, $3 = cH.navigation.seq, e6 = cH.navigation.openEpoch, t6 = cH.navigation.location.pathname, n6 = {
- seq: $3,
+var CMe = () => Du, Q3 = sH.navigation.seq, $3 = sH.navigation.openEpoch, e6 = sH.navigation.location.pathname, t6 = {
+ seq: Q3,
claimed: !0,
- from: t6
+ from: e6
};
-cH.listen((e) => {
- n6 = {
+sH.listen((e) => {
+ t6 = {
seq: e.seq,
- claimed: e.openEpoch === e6,
- from: t6
- }, e6 = e.openEpoch, t6 = e.location.pathname;
+ claimed: e.openEpoch === $3,
+ from: e6
+ }, $3 = e.openEpoch, e6 = e.location.pathname;
});
-var r6 = !1;
-function i6(e) {
- let { seq: t, openEpoch: n, location: r } = cH.navigation, i = kV(r.pathname), a = dH() ?? r, o = U ?? {};
+var n6 = !1;
+function r6(e) {
+ let { seq: t, openEpoch: n, location: r } = sH.navigation, i = OV(r.pathname), a = uH() ?? r, o = U ?? {};
return {
seq: t,
epoch: n,
@@ -75133,7 +75144,7 @@ function i6(e) {
opened: e
};
}
-function xMe(e, t, n, r) {
+function wMe(e, t, n, r) {
let i = { ...U };
if (e === "/trash") return {
...i,
@@ -75144,7 +75155,7 @@ function xMe(e, t, n, r) {
state: "trash",
q: ""
};
- let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = SA().value;
+ let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = OA().value;
return {
...i,
loc: a.get("loc") ?? r.defaultLoc(),
@@ -75158,7 +75169,7 @@ function xMe(e, t, n, r) {
dur_max: a.get("dur_max") || "",
orient: a.get("orient") || "",
state: On[e] || a.get("state") || "",
- ...nA(a.get("sort"), a.get("dir"), o, s),
+ ...lA(a.get("sort"), a.get("dir"), o, s),
seed: a.get("seed") || (n ? rr() : i.seed || rr()),
q: a.get("q") || "",
jav: a.get("jav") || "",
@@ -75169,13 +75180,13 @@ function xMe(e, t, n, r) {
folder_recursive: a.get("folder_recursive") === "0" ? "0" : ""
};
}
-function SMe(e, t) {
- let n = { ...e }, r = i6(n.opened);
+function TMe(e, t) {
+ let n = { ...e }, r = r6(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- dH() || i.fill();
+ uH() || i.fill();
return;
}
let a = !1;
@@ -75185,41 +75196,41 @@ function SMe(e, t) {
i.load();
return;
}
- r.epoch !== n.epoch && (a = cH.navigation.action === "POP" && n6.from !== "/");
+ r.epoch !== n.epoch && (a = sH.navigation.action === "POP" && t6.from !== "/");
}
- let { pathname: o, search: s } = cH.navigation.location;
+ let { pathname: o, search: s } = sH.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = o$(s);
- r6 = !0, lH(s$(e, t), { replace: !0 });
+ let { kind: e, view: t } = a$(s);
+ n6 = !0, cH(o$(e, t), { replace: !0 });
return;
}
- let c = r6;
- r6 = !1, a &&= o === "/", e.opened = !0, Iu({ state: xMe(o, s, a, i) }), i.open(o, {
+ let c = n6;
+ n6 = !1, a &&= o === "/", e.opened = !0, Iu({ state: wMe(o, s, a, i) }), i.open(o, {
entering: a,
retitle: c
});
}
-function CMe(e) {
- return An(e) || e === "/trash" || kV(e) || e === "/immerse" || !!Y3(e);
+function EMe(e) {
+ return An(e) || e === "/trash" || OV(e) || e === "/immerse" || !!J3(e);
}
-function wMe() {
- let e = (0, P.useContext)(LU), t = IU(), n = (0, P.useSyncExternalStore)(Ru, bMe), r = YB(), i = (0, P.useRef)(null), a = (0, P.useRef)({
+function DMe() {
+ let e = (0, P.useContext)(IU), t = FU(), n = (0, P.useSyncExternalStore)(Ru, CMe), r = JB(), i = (0, P.useRef)(null), a = (0, P.useRef)({
mounted: !0,
queued: !1
});
return (0, P.useEffect)(() => {
let t = a.current;
t.mounted = !0;
- let n = i6(!kV(cH.navigation.location.pathname));
- return !n.covered && n.opens > 0 && (r6 || n6.seq === $3 ? n.opens = -1 : n6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
+ let n = r6(!OV(sH.navigation.location.pathname));
+ return !n.covered && n.opens > 0 && (n6 || t6.seq === Q3 ? n.opens = -1 : t6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !CMe(cH.navigation.location.pathname) && e.catalog.release();
+ e?.catalog && !EMe(sH.navigation.location.pathname) && e.catalog.release();
});
};
}, []), (0, P.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && SMe(i.current, e);
+ t.queued = !1, t.mounted && i.current && TMe(i.current, e);
}));
}, [
t,
@@ -75228,8 +75239,8 @@ function wMe() {
e
]), null;
}
-function a6() {
- let { pathname: e, search: t } = YB();
+function i6() {
+ let { pathname: e, search: t } = JB();
(0, P.useLayoutEffect)(() => {
if (e !== "/wall") return;
document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
@@ -75242,36 +75253,36 @@ function a6() {
});
};
}, [e]);
- let n = (0, P.useContext)(LU), r = document.getElementById("javLibraryHeader"), i = An(e) && new URLSearchParams(t).get("jav") === "1";
+ let n = (0, P.useContext)(IU), r = document.getElementById("javLibraryHeader"), i = An(e) && new URLSearchParams(t).get("jav") === "1";
return (0, P.useLayoutEffect)(() => {
if (r) return r.hidden = !i, () => {
r.hidden = !0;
};
- }, [r, i]), kV(e) && !OV(e) ? null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(wMe, {}, e === "/junk-files" ? "/junk-files" : "/"),
- An(e) ? /* @__PURE__ */ (0, F.jsx)(GU, {}) : null,
- i && r && n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(yMe, {
+ }, [r, i]), OV(e) && !DV(e) ? null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(DMe, {}, e === "/junk-files" ? "/junk-files" : "/"),
+ An(e) ? /* @__PURE__ */ (0, F.jsx)(WU, {}) : null,
+ i && r && n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(SMe, {
navigate: n.navigate,
receipt: (e) => n.receipt(e)
}), r) : null
] });
}
// src/react/router/pages/follow.tsx
-var o6 = () => document.getElementById("stats"), TMe = () => Nu;
-function EMe(e) {
+var a6 = () => document.getElementById("stats"), OMe = () => Nu;
+function kMe(e) {
let t = document.createElement("div");
return t.className = "peach-react", tc(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-async function DMe(e, t) {
- let n = o6(), r = e.follow;
+async function AMe(e, t) {
+ let n = a6(), r = e.follow;
if (!n || !r || r.refresh()) return;
let i = Mu;
- e.surfaceChanged("follow", "/follow"), u2(n, r.skeleton()), await ZV("/follow", r.props(), {
+ e.surfaceChanged("follow", "/follow"), l2(n, r.skeleton()), await XV("/follow", r.props(), {
container: n,
isCurrent: t,
- place: EMe
+ place: kMe
}), t() && window.scrollTo(i ? {
top: i,
behavior: "instant"
@@ -75280,32 +75291,32 @@ async function DMe(e, t) {
behavior: "smooth"
});
}
-function OMe() {
- let e = o6(), t = e ? qV(e) : null;
+function jMe() {
+ let e = a6(), t = e ? KV(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function kMe() {
- let e = (0, P.useContext)(LU);
- return J3(IU(), (t, n) => {
- e && DMe(e, n);
+function MMe() {
+ let e = (0, P.useContext)(IU);
+ return q3(FU(), (t, n) => {
+ e && AMe(e, n);
}, {
- shown: OMe,
+ shown: jMe,
onCovered: () => {
- cH.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ sH.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function s6(e) {
- let t = e ? qV(e) : null;
+function o6(e) {
+ let t = e ? KV(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function AMe(e, t) {
- let n = o6();
- n && (e.surfaceChanged("playlists", "/playlists"), u2(n, c2("/playlists", {
+async function NMe(e, t) {
+ let n = a6();
+ n && (e.surfaceChanged("playlists", "/playlists"), l2(n, s2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), await ZV("/playlists", { revision: Nu }, {
+ })), await XV("/playlists", { revision: Nu }, {
container: n,
isCurrent: t
}), t() && window.scrollTo({
@@ -75313,37 +75324,37 @@ async function AMe(e, t) {
behavior: "smooth"
}));
}
-function jMe() {
- let e = (0, P.useContext)(LU), t = (0, P.useSyncExternalStore)(Ru, TMe), n = (0, P.useRef)(t);
+function PMe() {
+ let e = (0, P.useContext)(IU), t = (0, P.useSyncExternalStore)(Ru, OMe), n = (0, P.useRef)(t);
return (0, P.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = o6();
- s6(e) && QV(e, { revision: t });
- }, [t]), J3(IU(), (t, n) => {
- e && AMe(e, n);
+ let e = a6();
+ o6(e) && ZV(e, { revision: t });
+ }, [t]), q3(FU(), (t, n) => {
+ e && NMe(e, n);
}, { shown: () => {
- let e = o6();
- return s6(e) && !e.hidden;
+ let e = a6();
+ return o6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function MMe() {
- let e = new URLSearchParams(cH.navigation.location.search).get("id");
+function FMe() {
+ let e = new URLSearchParams(sH.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function NMe() {
- let e = (0, P.useContext)(LU);
- return PU(() => {
- e?.openImmerse(MMe());
+function IMe() {
+ let e = (0, P.useContext)(IU);
+ return NU(() => {
+ e?.openImmerse(FMe());
}, !0), null;
}
-function PMe() {
- return /* @__PURE__ */ (0, F.jsx)(NMe, {}, IU());
+function LMe() {
+ return /* @__PURE__ */ (0, F.jsx)(IMe, {}, FU());
}
// src/ui-kit/anchor-scroll.ts
-var c6 = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
-async function l6(e, t) {
+var s6 = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
+async function c6(e, t) {
let n;
try {
n = decodeURIComponent(e.slice(1));
@@ -75358,37 +75369,37 @@ async function l6(e, t) {
let r = document.getElementById(n);
r?.getClientRects().length && r.scrollIntoView({
block: "start",
- behavior: c6()
+ behavior: s6()
});
}
// src/react/router/pages/managed.tsx
-var FMe = () => Du > 0, u6 = () => (0, P.useSyncExternalStore)(Ru, FMe), d6 = () => SA().value.followLayout === "table" ? "table" : "default", f6 = () => new URLSearchParams(window.location.search);
-function IMe(e) {
- let t = f6();
- return c2(e, {
- followLayout: d6(),
+var RMe = () => Du > 0, l6 = () => (0, P.useSyncExternalStore)(Ru, RMe), u6 = () => OA().value.followLayout === "table" ? "table" : "default", d6 = () => new URLSearchParams(window.location.search);
+function zMe(e) {
+ let t = d6();
+ return s2(e, {
+ followLayout: u6(),
followSort: t.get("sort") || "",
followDir: t.get("dir") || ""
});
}
-function p6(e) {
+function f6(e) {
return wn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (Tn(e)) return null;
throw e;
});
}
-function m6(e, t) {
+function p6(e, t) {
return {
readOnly: !!e?.ledger_read_only,
readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function LMe(e, t) {
+async function BMe(e, t) {
if (e === "/jav") {
- let e = await p6(t);
+ let e = await f6(t);
return t.live ? {
- tab: x$(f6().get("tab")),
+ tab: b$(d6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -75399,36 +75410,36 @@ async function LMe(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && Iu({ configurationRequestedSection: "网络与访问" });
- let t = f6().get("section") || wu || bV(e);
+ let t = d6().get("section") || wu || yV(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = f6().get("category") || "", n = await p6(t);
+ let e = d6().get("category") || "", n = await f6(t);
return t.live ? {
category: EY(e) ? e : "",
- queue: kY(f6().get("queue")),
- ...m6(n, "/review")
+ queue: kY(d6().get("queue")),
+ ...p6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = IZ("?" + f6().toString()), n = await p6(t);
+ let e = FZ("?" + d6().toString()), n = await f6(t);
if (!t.live) return null;
- let r = SA().value;
+ let r = OA().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
- layout: d6(),
- ...m6(n, "/subscriptions")
+ layout: u6(),
+ ...p6(n, "/subscriptions")
};
}
return {};
}
-var RMe = () => {
+var VMe = () => {
window.scrollTo({
top: 0,
- behavior: c6()
+ behavior: s6()
});
-}, zMe = /* @__PURE__ */ new Set([
+}, HMe = /* @__PURE__ */ new Set([
"/stats",
"/taste",
"/review",
@@ -75436,18 +75447,18 @@ var RMe = () => {
"/tasks",
"/subscriptions"
]);
-async function BMe(e, t, n) {
- let r = cH.navigation.seq, i = () => n.live && cH.navigation.seq === r;
- if (e === "/jav" && x$(f6().get("tab")) === "library") {
- cH.replace(oEe(window.location.search));
+async function UMe(e, t, n) {
+ let r = sH.navigation.seq, i = () => n.live && sH.navigation.seq === r;
+ if (e === "/jav" && b$(d6().get("tab")) === "library") {
+ sH.replace(lEe(window.location.search));
return;
}
- if (e === "/subscriptions" && f6().get("tab") === "wants") {
- lH("/jav?tab=wants", { replace: !0 });
+ if (e === "/subscriptions" && d6().get("tab") === "wants") {
+ cH("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && f6().get("tab") === "source") {
- lH("/settings/subscriptions", { replace: !0 });
+ if (e === "/subscriptions" && d6().get("tab") === "source") {
+ cH("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
@@ -75469,38 +75480,38 @@ async function BMe(e, t, n) {
state: "",
q: "",
jav: ""
- } }), t.clearSearch()), u2(a, IMe(e));
- let o = await LMe(e, n);
+ } }), t.clearSearch()), l2(a, zMe(e));
+ let o = await BMe(e, n);
if (!o) return;
- let s = await ZV(e, o, {
+ let s = await XV(e, o, {
container: a,
isCurrent: () => n.live
});
- if (s && (n.revision = qV(a)?.revision ?? 0), e.startsWith("/settings/") && s && Iu({ configurationRequestedSection: "" }), s && i()) {
+ if (s && (n.revision = KV(a)?.revision ?? 0), e.startsWith("/settings/") && s && Iu({ configurationRequestedSection: "" }), s && i()) {
let { hash: t } = window.location;
e === "/settings/library" && t === "#libraryProcessing" ? queueMicrotask(() => {
- i() && lH("/data-cleanup#libraryProcessing", {
+ i() && cH("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
- }) : t ? l6(t, i) : (zMe.has(e) || e === "/settings/library") && RMe();
+ }) : t ? c6(t, i) : (HMe.has(e) || e === "/settings/library") && VMe();
}
}
-function h6({ path: e }) {
- let t = IU();
- YB();
- let n = kV(cH.navigation.location.pathname), r = (0, P.useRef)(n ? null : t), i = (0, P.useRef)(n);
+function m6({ path: e }) {
+ let t = FU();
+ JB();
+ let n = OV(sH.navigation.location.pathname), r = (0, P.useRef)(n ? null : t), i = (0, P.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, F.jsx)(VMe, {
+ return /* @__PURE__ */ (0, F.jsx)(WMe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function VMe({ path: e, covered: t }) {
- let n = (0, P.useContext)(LU), r = u6(), i = (0, P.useRef)(null);
+function WMe({ path: e, covered: t }) {
+ let n = (0, P.useContext)(IU), r = l6(), i = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
- e.startsWith("/settings/") && QV(document.getElementById("stats"), { section: bV(e) });
+ e.startsWith("/settings/") && ZV(document.getElementById("stats"), { section: yV(e) });
}, [e]), (0, P.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
@@ -75509,7 +75520,7 @@ function VMe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && BMe(e, n, a);
+ a.live && UMe(e, n, a);
});
}, [r]), (0, P.useEffect)(() => () => {
let e = i.current;
@@ -75517,42 +75528,42 @@ function VMe({ path: e, covered: t }) {
e.live = !1, e.controller.abort();
let t = document.getElementById("stats");
queueMicrotask(() => {
- t && e.revision && !t.hidden && qV(t)?.revision === e.revision && $V(t);
+ t && e.revision && !t.hidden && KV(t)?.revision === e.revision && QV(t);
});
}, []), null;
}
-function HMe() {
- let e = u6(), t = (0, P.useRef)(!1);
+function GMe() {
+ let e = l6(), t = (0, P.useRef)(!1);
return (0, P.useEffect)(() => {
- if (!e || t.current || kV(cH.navigation.location.pathname)) return;
+ if (!e || t.current || OV(sH.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && lH("/data-cleanup#resource-sync", { replace: !0 });
+ n && cH("/data-cleanup#resource-sync", { replace: !0 });
}), () => {
n = !1;
};
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var g6 = [], _6 = "peach.chunkReloadAt", UMe = 3e4;
-async function WMe() {
+var h6 = [], g6 = "peach.chunkReloadAt", KMe = 3e4;
+async function qMe() {
try {
- let e = Number(sessionStorage.getItem(_6) || 0);
- if (Date.now() - e < UMe || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(g6) || 0);
+ if (Date.now() - e < KMe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(_6, String(Date.now())), location.reload();
+ sessionStorage.setItem(g6, String(Date.now())), location.reload();
} catch {}
}
-function v6(e) {
+function _6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return g6.push(r), {
+ return h6.push(r), {
preload: () => r().catch(async (e) => {
- throw await WMe(), e;
+ throw await qMe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -75560,10 +75571,10 @@ function v6(e) {
}
};
}
-function GMe() {
+function JMe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...g6], n = () => {
+ let t = [...h6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -75572,31 +75583,31 @@ function GMe() {
document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });
}
// src/react/router/managed-routes.tsx
-async function y6(e, t) {
+async function v6(e, t) {
let [n, r] = await Promise.allSettled([e.preload(), t]);
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var b6 = v6(() => import("./peach-app.jav-page-DHl3Jm_q.js")), x6 = v6(() => import("./peach-app.stats-page-BJbvUxyv.js")), S6 = v6(() => import("./peach-app.taste-page-nSIqYyl-.js")), C6 = v6(() => import("./peach-app.review-page-BoybwF8-.js")), w6 = v6(() => import("./peach-app.data-cleanup-page-Ctwipl6H.js")), T6 = v6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), E6 = v6(() => import("./peach-app.quality-goals-page-DwyqtX3v.js")), D6 = v6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), O6 = v6(async () => {
- let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-Cpe1NwYj.js"), import("./peach-app.diagnostics-page-CZQmu5mE.js")]);
+var y6 = _6(() => import("./peach-app.jav-page-DHl3Jm_q.js")), b6 = _6(() => import("./peach-app.stats-page-CxbUCXeP.js")), x6 = _6(() => import("./peach-app.taste-page-C5j4APwJ.js")), S6 = _6(() => import("./peach-app.review-page-BoybwF8-.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-Ctwipl6H.js")), w6 = _6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), T6 = _6(() => import("./peach-app.quality-goals-page-DwyqtX3v.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-DFsNUGcd.js"), import("./peach-app.diagnostics-page-CZQmu5mE.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), k6 = v6(() => import("./peach-app.activity-page-B66P-r0P.js")), A6 = v6(() => import("./peach-app.follow-manage-page-36Z6mSDD.js")), j6 = v6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function KMe(e, t, n) {
+}), O6 = _6(() => import("./peach-app.activity-page-B66P-r0P.js")), k6 = _6(() => import("./peach-app.follow-manage-page-36Z6mSDD.js")), A6 = _6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+function YMe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- P6(r) ? n(r) : t.openManage(e);
+ N6(r) ? n(r) : t.openManage(e);
}
-var M6 = (e) => ({
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: e }),
- prefetch: (t, n) => y6(O6, Promise.all([XEe(n), ...e === "/settings/diagnostics" ? [vTe(n)] : []]).then(() => {})),
+var j6 = (e) => ({
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: e }),
+ prefetch: (t, n) => v6(D6, Promise.all([$Ee(n), ...e === "/settings/diagnostics" ? [xTe(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = O6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = D6.get();
return /* @__PURE__ */ (0, F.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -75607,12 +75618,12 @@ var M6 = (e) => ({
})
});
}
-}), N6 = {
+}), M6 = {
"/jav": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/jav" }),
- prefetch: (e, t) => y6(b6, cEe(e.tab, t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/jav" }),
+ prefetch: (e, t) => v6(y6, dEe(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = b6.get();
+ let { JavPage: n } = y6.get();
return /* @__PURE__ */ (0, F.jsx)(n, {
...e,
navigate: t.navigate,
@@ -75621,10 +75632,10 @@ var M6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/stats" }),
- prefetch: (e, t) => y6(x6, YAe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/stats" }),
+ prefetch: (e, t) => v6(b6, QAe(t)),
page: (e, t) => {
- let { StatsPage: n } = x6.get();
+ let { StatsPage: n } = b6.get();
return /* @__PURE__ */ (0, F.jsx)(n, {
tagLabel: Zl,
onTag: t.openTag
@@ -75632,10 +75643,10 @@ var M6 = (e) => ({
}
},
"/taste": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/taste" }),
- prefetch: (e, t) => y6(S6, Lje("all", t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/taste" }),
+ prefetch: (e, t) => v6(x6, Bje("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = S6.get();
+ let { TastePage: r } = x6.get();
return /* @__PURE__ */ (0, F.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -75645,10 +75656,10 @@ var M6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/review" }),
- prefetch: (e, t) => y6(C6, Lxe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/review" }),
+ prefetch: (e, t) => v6(S6, zxe(t)),
page: (e, t) => {
- let { ReviewPage: n } = C6.get();
+ let { ReviewPage: n } = S6.get();
return /* @__PURE__ */ (0, F.jsx)(n, {
...e,
route: t.routeReview,
@@ -75660,22 +75671,22 @@ var M6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/data-cleanup" }),
- prefetch: (e, t) => y6(w6, USe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => v6(C6, KSe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = w6.get();
+ let { DataCleanupPage: r } = C6.get();
return /* @__PURE__ */ (0, F.jsx)(r, {
failure: t.failure,
- open: (e) => KMe(e, t, n),
+ open: (e) => YMe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/duplicates" }),
- prefetch: (e, t) => y6(T6, $be(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/duplicates" }),
+ prefetch: (e, t) => v6(w6, txe(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = T6.get();
+ let { DuplicatesPage: n } = w6.get();
return /* @__PURE__ */ (0, F.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -75684,46 +75695,46 @@ var M6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/quality-goals" }),
- prefetch: (e, t) => y6(E6, dxe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/quality-goals" }),
+ prefetch: (e, t) => v6(T6, pxe(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = E6.get();
+ let { QualityGoalsPage: n } = T6.get();
return /* @__PURE__ */ (0, F.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: _F,
- javDisplayName: gF,
+ javTitleHtml: KF,
+ javDisplayName: GF,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/sources" }),
- prefetch: (e, t) => y6(D6, BEe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/sources" }),
+ prefetch: (e, t) => v6(E6, UEe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = D6.get();
+ let { ScrapingPage: n } = E6.get();
return /* @__PURE__ */ (0, F.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": M6("/settings/library"),
- "/settings/subscriptions": M6("/settings/subscriptions"),
- "/settings/downloads": M6("/settings/downloads"),
- "/settings/network": M6("/settings/network"),
- "/settings/maintenance": M6("/settings/maintenance"),
- "/settings/diagnostics": M6("/settings/diagnostics"),
+ "/settings/library": j6("/settings/library"),
+ "/settings/subscriptions": j6("/settings/subscriptions"),
+ "/settings/downloads": j6("/settings/downloads"),
+ "/settings/network": j6("/settings/network"),
+ "/settings/maintenance": j6("/settings/maintenance"),
+ "/settings/diagnostics": j6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/tasks" }),
- prefetch: (e, t) => y6(k6, OF(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/tasks" }),
+ prefetch: (e, t) => v6(O6, Mue(t)),
page: () => {
- let { ActivityPage: e } = k6.get();
+ let { ActivityPage: e } = O6.get();
return /* @__PURE__ */ (0, F.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, F.jsx)(h6, { path: "/subscriptions" }),
- prefetch: (e, t) => y6(A6, Li(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/subscriptions" }),
+ prefetch: (e, t) => v6(k6, Li(t)),
page: (e, t) => {
- let { FollowManagePage: n } = A6.get();
+ let { FollowManagePage: n } = k6.get();
return /* @__PURE__ */ (0, F.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -75733,12 +75744,12 @@ var M6 = (e) => ({
});
}
}
-}, P6 = (e) => Object.hasOwn(N6, e), qMe = { "/resource-sync": { element: /* @__PURE__ */ (0, F.jsx)(HMe, {}) } }, JMe = { "/immerse": { element: /* @__PURE__ */ (0, F.jsx)(PMe, {}) } }, F6 = {
+}, N6 = (e) => Object.hasOwn(M6, e), XMe = { "/resource-sync": { element: /* @__PURE__ */ (0, F.jsx)(GMe, {}) } }, ZMe = { "/immerse": { element: /* @__PURE__ */ (0, F.jsx)(LMe, {}) } }, P6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, F.jsx)(jMe, {}),
- prefetch: (e, t) => y6(j6, wEe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(PMe, {}),
+ prefetch: (e, t) => v6(A6, DEe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = j6.get();
+ let { PlaylistsPage: n } = A6.get();
return /* @__PURE__ */ (0, F.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -75749,14 +75760,14 @@ var M6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, F.jsx)(kMe, {}),
+ element: /* @__PURE__ */ (0, F.jsx)(MMe, {}),
prefetch: (e, t) => aa(e, t),
- page: (e) => /* @__PURE__ */ (0, F.jsx)(ZCe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(ewe, { ...e })
}
-}, I6 = (e) => Object.hasOwn(F6, e), L6 = {
- element: /* @__PURE__ */ (0, F.jsx)(mMe, {}),
- prefetch: (e, t) => uCe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, F.jsx)(NTe, {
+}, F6 = (e) => Object.hasOwn(P6, e), I6 = {
+ element: /* @__PURE__ */ (0, F.jsx)(_Me, {}),
+ prefetch: (e, t) => pCe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, F.jsx)(ITe, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -75769,82 +75780,82 @@ var M6 = (e) => ({
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, L6 = {
+ "/performers": I6,
+ "/creators": I6,
+ "/studios": I6,
+ "/agencies": I6,
+ "/tags": I6,
+ "/series": I6
}, R6 = {
- "/performers": L6,
- "/creators": L6,
- "/studios": L6,
- "/agencies": L6,
- "/tags": L6,
- "/series": L6
+ element: /* @__PURE__ */ (0, F.jsx)(xMe, {}),
+ prefetch: (e) => tCe(e),
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(gTe, { ...e })
}, z6 = {
- element: /* @__PURE__ */ (0, F.jsx)(vMe, {}),
- prefetch: (e) => QSe(e),
- page: (e) => /* @__PURE__ */ (0, F.jsx)(pTe, { ...e })
+ "/performers/*": R6,
+ "/studios/*": R6,
+ "/creators/*": R6,
+ "/series/*": R6,
+ "/agencies/*": R6,
+ "/tags/*": R6
}, B6 = {
- "/performers/*": z6,
- "/studios/*": z6,
- "/creators/*": z6,
- "/series/*": z6,
- "/agencies/*": z6,
- "/tags/*": z6
-}, V6 = {
"/": {
- element: /* @__PURE__ */ (0, F.jsx)(a6, {}),
- prefetch: (e, t) => Nce(e, t),
+ element: /* @__PURE__ */ (0, F.jsx)(i6, {}),
+ prefetch: (e, t) => Ice(e, t),
page: (e) => /* @__PURE__ */ (0, F.jsx)(oY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, F.jsx)(a6, {}),
+ element: /* @__PURE__ */ (0, F.jsx)(i6, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, F.jsx)(JTe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(ZTe, { ...e })
}
-}, H6 = (e) => Object.hasOwn(V6, e), YMe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, F.jsx)(Xge, { ...e }) : /* @__PURE__ */ (0, F.jsx)(z$, { ...e }), U6 = {
+}, V6 = (e) => Object.hasOwn(B6, e), QMe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, F.jsx)($ge, { ...e }) : /* @__PURE__ */ (0, F.jsx)(R$, { ...e }), H6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, F.jsx)(UW, { ...e })
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(WW, { ...e })
},
"feed-new": {
- prefetch: (e) => JSe(e),
- page: (e) => /* @__PURE__ */ (0, F.jsx)(yTe, { ...e })
+ prefetch: (e) => ZSe(e),
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(STe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => MH(t),
- page: (e) => /* @__PURE__ */ (0, F.jsx)(YMe, { ...e })
+ prefetch: (e, t) => jH(t),
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(QMe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, F.jsx)(KEe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(YEe, { ...e })
}
-}, W6 = (e) => Object.hasOwn(U6, e), G6 = {
+}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, F.jsx)(use, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(ase, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, F.jsx)(Use, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(Vse, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, F.jsx)(zue, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(fue, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, F.jsx)(Fle, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(jP, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, F.jsx)(hDe, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(vDe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, F.jsx)(ADe, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(NDe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, F.jsx)(qAe, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(XAe, {})
}
-}, K6 = (e) => Object.hasOwn(G6, e), q6 = [
+}, G6 = (e) => Object.hasOwn(W6, e), K6 = [
"/",
"/wall",
"/unseen",
@@ -75854,99 +75865,99 @@ var M6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(N6),
- ...Object.keys(F6),
- ...Object.keys(R6),
- ...Object.keys(B6),
- ...q6
+ ...Object.keys(M6),
+ ...Object.keys(P6),
+ ...Object.keys(L6),
+ ...Object.keys(z6),
+ ...K6
];
-var J6 = (e) => P6(e) || I6(e) || Object.hasOwn(R6, e) || Object.hasOwn(B6, e) || H6(e) || W6(e) || K6(e);
-function Y6(e) {
- return P6(e) ? N6[e] : I6(e) ? F6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : K6(e) ? G6[e] : Object.hasOwn(R6, e) ? R6[e] : B6[e];
+var q6 = (e) => N6(e) || F6(e) || Object.hasOwn(L6, e) || Object.hasOwn(z6, e) || V6(e) || U6(e) || G6(e);
+function J6(e) {
+ return N6(e) ? M6[e] : F6(e) ? P6[e] : V6(e) ? B6[e] : U6(e) ? H6[e] : G6(e) ? W6[e] : Object.hasOwn(L6, e) ? L6[e] : z6[e];
}
-function XMe(e, t, n) {
- return J6(e) ? Y6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function $Me(e, t, n) {
+ return q6(e) ? J6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function ZMe(e, t, n, r) {
- return Y6(e).page(t, n, r);
+function eNe(e, t, n, r) {
+ return J6(e).page(t, n, r);
}
// src/react/application-residents.ts
-var X6 = null, Z6 = null, Q6 = 0, $6 = /* @__PURE__ */ new Set();
-function QMe(e) {
- return X6 = e, Z6 && e(Z6), () => {
- X6 === e && (X6 = null);
+var Y6 = null, X6 = null, Z6 = 0, Q6 = /* @__PURE__ */ new Set();
+function tNe(e) {
+ return Y6 = e, X6 && e(X6), () => {
+ Y6 === e && (Y6 = null);
};
}
-function $Me(e) {
- return X6 && (Z6 = e, X6(e), jhe(Promise.resolve(XMe)), GMe()), Promise.resolve();
+function nNe(e) {
+ return Y6 && (X6 = e, Y6(e), Phe(Promise.resolve($Me)), JMe()), Promise.resolve();
}
-async function e8(e, t, n = (e) => e) {
- let r = Q6;
- if (t.isConnected || $6.add(t), !await ZV(e, {}, {
+async function $6(e, t, n = (e) => e) {
+ let r = Z6;
+ if (t.isConnected || Q6.add(t), !await XV(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!X6 && r === Q6,
+ isCurrent: () => !!Y6 && r === Z6,
place: () => n(t)
- }) || r !== Q6 || !X6) throw new DOMException("应用已卸载", "AbortError");
-}
-function eNe() {
- Q6 += 1, X6 = null, Z6 = null, t8 = null, n8 = null, a8 = null, o8 = null, c8 = null, l8 = null, d8 = null, f8 = null, m8 = null, h8 = null, _8 = null, v8 = null, b8 = null;
- for (let e of $6) e.remove();
- $6.clear(), KQ();
+ }) || r !== Z6 || !Y6) throw new DOMException("应用已卸载", "AbortError");
}
-var t8 = null, n8 = null;
-function r8(e) {
- return t8 ??= (async () => {
- let t = KAe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await e8("stage", n, (e) => (document.body.append(e), e)), n8 = t, t;
- })(), t8;
+function rNe() {
+ Z6 += 1, Y6 = null, X6 = null, e8 = null, t8 = null, i8 = null, a8 = null, s8 = null, c8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null;
+ for (let e of Q6) e.remove();
+ Q6.clear(), GQ();
}
-var i8 = () => n8, a8 = null, o8 = null;
-function tNe(e) {
- return a8 ??= (async () => {
- let t = Ple(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await e8("immerse", n, (e) => (document.body.append(e), e)), o8 = t, t;
- })(), a8;
+var e8 = null, t8 = null;
+function n8(e) {
+ return e8 ??= (async () => {
+ let t = YAe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await $6("stage", n, (e) => (document.body.append(e), e)), t8 = t, t;
+ })(), e8;
}
-var s8 = () => o8, c8 = null, l8 = null;
-function nNe(e) {
- return c8 ??= (async () => {
- let t = mDe(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await e8("settings-panel", n, (e) => (document.body.append(e), e)), l8 = t, t;
- })(), c8;
-}
-var u8 = () => l8, d8 = null, f8 = null;
-function rNe(e) {
- return d8 ??= (async () => {
- let t = kDe(e);
- return await e8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), f8 = t, t;
- })(), d8;
-}
-var p8 = () => f8, m8 = null, h8 = null;
+var r8 = () => t8, i8 = null, a8 = null;
function iNe(e) {
- return m8 ??= (async () => {
- let t = Rue(e);
- return await e8("manage-header", e.root, (e) => (e.replaceChildren(), e)), h8 = t, t;
- })(), m8;
+ return i8 ??= (async () => {
+ let t = AP(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await $6("immerse", n, (e) => (document.body.append(e), e)), a8 = t, t;
+ })(), i8;
}
-var g8 = () => h8, _8 = null, v8 = null;
+var o8 = () => a8, s8 = null, c8 = null;
function aNe(e) {
- return _8 ??= (async () => {
- let t = lse(e);
- return await e8("batch-dock", e.root), v8 = t, t;
- })(), _8;
+ return s8 ??= (async () => {
+ let t = _De(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await $6("settings-panel", n, (e) => (document.body.append(e), e)), c8 = t, t;
+ })(), s8;
}
-var y8 = () => v8, b8 = null;
+var l8 = () => c8, u8 = null, d8 = null;
function oNe(e) {
- return b8 ??= (async () => {
- Hse(e), await e8("glow-picker", e.root);
- })(), b8;
-}
-function x8(e, t, n, r) {
- qQ(e, t), JQ(n, r);
+ return u8 ??= (async () => {
+ let t = MDe(e);
+ return await $6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), d8 = t, t;
+ })(), u8;
+}
+var f8 = () => d8, p8 = null, m8 = null;
+function sNe(e) {
+ return p8 ??= (async () => {
+ let t = due(e);
+ return await $6("manage-header", e.root, (e) => (e.replaceChildren(), e)), m8 = t, t;
+ })(), p8;
+}
+var h8 = () => m8, g8 = null, _8 = null;
+function cNe(e) {
+ return g8 ??= (async () => {
+ let t = ise(e);
+ return await $6("batch-dock", e.root), _8 = t, t;
+ })(), g8;
+}
+var v8 = () => _8, y8 = null;
+function lNe(e) {
+ return y8 ??= (async () => {
+ Bse(e), await $6("glow-picker", e.root);
+ })(), y8;
+}
+function b8(e, t, n, r) {
+ KQ(e, t), qQ(n, r);
}
// src/application/effects.ts
-var S8 = class {
+var x8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -76027,12 +76038,12 @@ var S8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, J = new S8();
-function sNe() {
- return J.dispose(), J = new S8(), J;
+}, J = new x8();
+function uNe() {
+ return J.dispose(), J = new x8(), J;
}
// src/application/receipts.js
-var C8 = {
+var S8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -76042,13 +76053,13 @@ var C8 = {
rollSeed: void 0,
seededSample: void 0
};
-function cNe() {
- qQ(L("#toasts"), {
+function dNe() {
+ KQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
- }), C8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), C8.toastSeq = 0, C8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++C8.toastSeq}`, o = (e, t, n, r) => {
- Zo(i || (t ? "error" : "success")), x8(L("#toasts"), {
+ }), S8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), S8.toastSeq = 0, S8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++S8.toastSeq}`, o = (e, t, n, r) => {
+ Zo(i || (t ? "error" : "success")), b8(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}, a, {
@@ -76063,13 +76074,13 @@ function cNe() {
} : null
});
};
- return o(C8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(C8.toastBody(e), t, n, null) };
- }, C8.liftToastsOverTutorial = () => {
+ return o(S8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(S8.toastBody(e), t, n, null) };
+ }, S8.liftToastsOverTutorial = () => {
let e = L("#postSetupTutorial"), t = L("#toasts"), n = e.hidden ? innerHeight : e.getBoundingClientRect().top;
e.hidden || !e.offsetHeight || n < 160 ? t.style.removeProperty("--toast-bottom") : t.style.setProperty("--toast-bottom", `${Math.round(innerHeight - n + 12)}px`);
- }, J.resize(C8.liftToastsOverTutorial).observe(L("#postSetupTutorial")), J.listen.bind(J, window)("resize", C8.liftToastsOverTutorial), C8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ }, J.resize(S8.liftToastsOverTutorial).observe(L("#postSetupTutorial")), J.listen.bind(J, window)("resize", S8.liftToastsOverTutorial), S8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = C8.toast({ text: e }, {
+ return r = S8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -76082,14 +76093,14 @@ function cNe() {
}
} : null
}), r;
- }, C8.actionFailure = (e, t) => C8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), C8.rollSeed = () => rr(), C8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, S8.actionFailure = (e, t) => S8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), S8.rollSeed = () => rr(), S8.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
let i = new Set([...e].sort((e, t) => nr(n, r(e)) - nr(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
};
}
// src/react/catalog-grid/catalog-state.ts
-var lNe = [
+var fNe = [
"loc",
"creator",
"studio",
@@ -76110,10 +76121,10 @@ var lNe = [
"folder",
"folder_recursive"
];
-function w8(e, t, n, r = n.defaultSort) {
- return nA(e, t, n.defaultSort, n.defaultSortDirection, r);
+function C8(e, t, n, r = n.defaultSort) {
+ return lA(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function uNe(e, t, n) {
+function pNe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = An(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -76129,7 +76140,7 @@ function uNe(e, t, n) {
region: o("region") || "",
year: o("year") || "",
state: On[r] || o("state") || "",
- ...w8(o("sort"), o("dir"), t),
+ ...C8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -76139,18 +76150,18 @@ function uNe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function dNe(e, t) {
+function mNe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function fNe(e) {
+function hNe(e) {
let t = Dn[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of lNe) {
+ for (let t of fNe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === $k(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === oA(e.sort ?? "") || n.set(t, r);
}
return !Dn[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function pNe(e, t, n) {
+function gNe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -76166,7 +76177,7 @@ function pNe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: tA(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: cA(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -76176,7 +76187,7 @@ function pNe(e, t, n) {
folder_recursive: ""
};
}
-function T8(e) {
+function w8(e) {
return {
state: e,
barsContext: {
@@ -76187,7 +76198,7 @@ function T8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var mNe = class {
+var _Ne = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -76232,44 +76243,44 @@ var mNe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, E8 = 3e4, D8 = 0, hNe = (e, t = D8) => [
+}, T8 = 3e4, E8 = 0, vNe = (e, t = E8) => [
"facets",
e,
t
-], gNe = (e, t, n = D8) => [
+], yNe = (e, t, n = E8) => [
"tops",
e,
t,
n
-], _Ne = (e, t = D8) => [
+], bNe = (e, t = E8) => [
"tops",
e,
t
];
-async function O8(e) {
+async function D8(e) {
let t = String(e), n = await wn(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await wn(`/api/tops?${r}`));
}
-function vNe(e, t) {
+function xNe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: hNe(e),
+ queryKey: vNe(e),
queryFn: () => wn(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: E8
+ staleTime: T8
}), H.fetchQuery({
- queryKey: gNe(t, e),
- queryFn: () => O8(t),
- staleTime: E8
+ queryKey: yNe(t, e),
+ queryFn: () => D8(t),
+ staleTime: T8
})]);
}
-function yNe(e) {
+function SNe(e) {
return H.fetchQuery({
- queryKey: _Ne(e),
- queryFn: () => O8(e),
- staleTime: E8
+ queryKey: bNe(e),
+ queryFn: () => D8(e),
+ staleTime: T8
});
}
-function k8() {
- D8 += 1;
+function O8() {
+ E8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
H.removeQueries({
queryKey: ["facets"],
@@ -76280,7 +76291,7 @@ function k8() {
});
}
// src/application/navigation-items.ts
-var A8 = [
+var k8 = [
[
"",
"首页",
@@ -76331,7 +76342,7 @@ var A8 = [
"管理",
"wrench"
]
-], j8 = [
+], A8 = [
[
"stats",
"统计",
@@ -76377,18 +76388,18 @@ var A8 = [
"Peach 配置",
"folder-cog"
]
-], M8 = [
+], j8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], bNe = (e) => j8.filter(([t]) => M8.includes(t) && (t !== "configuration" || e)), N8 = j8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], CNe = (e) => A8.filter(([t]) => j8.includes(t) && (t !== "configuration" || e)), M8 = A8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), xNe = [...A8, ...N8], SNe = {
+]]), wNe = [...k8, ...M8], TNe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -76396,18 +76407,18 @@ var A8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, P8 = [
+}, N8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
];
// src/react/index/index-controller.ts
-function F8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function P8({ kind: e, q: t, scope: n, view: r, category: i }) {
let a = new URLSearchParams();
return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");
}
-function I8(e, t, n) {
+function F8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: go(e.k, r ? {
@@ -76420,20 +76431,20 @@ function I8(e, t, n) {
face: vo(e.avatar_focus)
};
}
-function L8(e) {
+function I8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Ba({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function CNe(e) {
+function ENe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Oa(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(F8(t), n);
+ e.route(P8(t), n);
},
- personAvatar: I8,
- authorAvatar: L8,
+ personAvatar: F8,
+ authorAvatar: I8,
openFollowAuthor(n) {
t(ka(e.followView(), n));
},
@@ -76443,7 +76454,7 @@ function CNe(e) {
};
}
// src/application/source-action.ts
-function wNe(e) {
+function DNe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -76458,36 +76469,36 @@ function wNe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var R8 = () => Object.fromEntries(NX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function z8(e, t) {
- let n = new URLSearchParams(e), r = R8();
- for (let e of NX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+var L8 = () => Object.fromEntries(MX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function R8(e, t) {
+ let n = new URLSearchParams(e), r = L8();
+ for (let e of MX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...nA(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...lA(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function B8(e) {
+function z8(e) {
let t = new URLSearchParams();
- for (let n of NX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === $k(e.sort || "") || t.set(n, e[n]);
+ for (let n of MX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === oA(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
-function V8(e) {
+function B8(e) {
let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");
return {
media: r === "photos" || r === "online" ? r : "videos",
set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0
};
}
-function H8(e, t) {
- let n = new URLSearchParams(B8(e));
+function V8(e, t) {
+ let n = new URLSearchParams(z8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
-function TNe(e, t, n, r) {
- let i = H8(n, r);
+function ONe(e, t, n, r) {
+ let i = V8(n, r);
return Nn(e, t) + (i ? `?${i}` : "");
}
-function ENe() {
+function kNe() {
let e = "";
return {
fresh(t, n) {
@@ -76496,22 +76507,22 @@ function ENe() {
read(t, n, r, i) {
let a = e === Nn(t, n) && !r;
e = "";
- let o = a ? R8() : { ...z8(r, i) };
+ let o = a ? L8() : { ...R8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : V8(r)
+ } : B8(r)
};
}
};
}
// src/react/entity-page/photo-surface.ts
-function DNe(e, t) {
+function ANe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function ONe(e) {
+function jNe(e) {
let t = () => {
let t = e.preferences();
for (let n of e.walls()) n.dataset.size = t.size, n.dataset.layout = "fixed", n.dataset.imagesOnly = String(t.imagesOnly);
@@ -76533,12 +76544,12 @@ function ONe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function kNe(e, t, n) {
+function MNe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(TNe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(ONe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -76552,7 +76563,7 @@ function kNe(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : R8();
+ return n?.kind === t && n.name === a ? n.filters : L8();
}, l = {
...n,
route: (e, n) => {
@@ -76565,7 +76576,7 @@ function kNe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = eA(e, n.sort || "new", n.dir || "");
+ let n = c(), i = sA(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -76616,7 +76627,7 @@ function kNe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function ANe(e) {
+function NNe(e) {
return async (t, n, r) => {
!e.shapesReady(t, n) && (await e.waitShapes(), !r()) || (e.paintSkeleton(t, n), e.resetView(), e.loadShapes().then(() => {
r() && e.syncParts(t, n);
@@ -76624,7 +76635,7 @@ function ANe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function jNe(e, t) {
+function PNe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? ho({
kind: e,
id: t.id,
@@ -76646,11 +76657,11 @@ function jNe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Ba({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function MNe(e) {
- let t = ENe(), n = {
+function FNe(e) {
+ let t = kNe(), n = {
...e.helpers,
- portraitImg: jNe
- }, r = kNe(e.controller, n, e.actions);
+ portraitImg: PNe
+ }, r = MNe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -76659,12 +76670,12 @@ function MNe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: ANe(e.loading),
- photos: ONe(e.photos)
+ loading: NNe(e.loading),
+ photos: jNe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function NNe(e) {
+function INe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : go(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Nn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -76672,7 +76683,7 @@ function NNe(e) {
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
}
// src/application/feed.js
-var U8 = {
+var H8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -76688,56 +76699,56 @@ var U8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function W8(e) {
+function U8(e) {
return e.has_cover ? xo(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Vs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : xo(e, "big").replace(/ src="[^"]*"/, ` src="${z(uo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function PNe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = W8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? _F({
+function LNe(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? KF({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${jA}">${n}
+ ${a}<div class="pic" style="--card-ratio:${LA}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>
- <div class="meta">${NNe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${INe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function FNe() {
+function RNe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;
- U8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Hn(e)}`, t.parts]));
+ H8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Hn(e)}`, t.parts]));
} catch {}
}
-async function G8() {
+async function W8() {
let e = J, t = await wn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (U8.entityShapesComplete = !0, U8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Hn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && q8(t.home.feed), Z8(location.pathname) && J8(L("#feedNew"))), U8.entityShapes;
+ return e.isActive && t && !t.error && (H8.entityShapesComplete = !0, H8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Hn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && K8(t.home.feed), X8(location.pathname) && q8(L("#feedNew"))), H8.entityShapes;
}
-var K8 = "peach.home-feed.v1";
-function q8(e) {
+var G8 = "peach.home-feed.v1";
+function K8(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem(K8, e ? "1" : "0");
+ localStorage.setItem(G8, e ? "1" : "0");
} catch {}
}
-function INe() {
+function zNe() {
try {
- let e = localStorage.getItem(K8);
+ let e = localStorage.getItem(G8);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function J8(e) {
- !e || JV(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = U8.feedNewSkeletonHtml())));
+function q8(e) {
+ !e || qV(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = H8.feedNewSkeletonHtml())));
}
-function LNe(e, t) {
+function BNe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Rs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -76745,55 +76756,55 @@ function LNe(e, t) {
actionHref: "/sources"
});
}
-function Y8(e) {
+function J8(e) {
let t = e && !e.error && e.items || [];
- return LNe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(PNe).join("")}</div>`;
+ return BNe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(LNe).join("")}</div>`;
}
-function X8(e) {
- e && (t9(e), Z.appSettings.feedAutoScroll && Lc(e));
+function Y8(e) {
+ e && (e9(e), Z.appSettings.feedAutoScroll && Lc(e));
}
-function Z8(e) {
+function X8(e) {
return An(e) && e !== "/junk-files";
}
-function RNe() {
+function VNe() {
let e = L("#feedNew");
- JV(e) ? QV(e, { revision: ++U8.feedRevision }) : (J8(e), ZV("feed-new", {
+ qV(e) ? ZV(e, { revision: ++H8.feedRevision }) : (q8(e), XV("feed-new", {
host: e,
- revision: U8.feedRevision,
- helpers: U8.feedNewHelpers,
- actions: U8.feedNewActions
+ revision: H8.feedRevision,
+ helpers: H8.feedNewHelpers,
+ actions: H8.feedNewActions
}, {
container: e,
- isCurrent: () => Z8(location.pathname)
+ isCurrent: () => X8(location.pathname)
}));
}
-function Q8() {
+function Z8() {
let e = L("#feedNew");
- e.querySelectorAll(".feednewrow").forEach(Rc), $V(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
+ e.querySelectorAll(".feednewrow").forEach(Rc), QV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
}
-function $8() {
- U8.feedRevision += 1, QV(L("#feedNew"), { revision: U8.feedRevision }), o5({ feedRevision: U8.feedRevision });
+function Q8() {
+ H8.feedRevision += 1, ZV(L("#feedNew"), { revision: H8.feedRevision }), a5({ feedRevision: H8.feedRevision });
}
-function zNe() {
+function HNe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Lc(e) : Rc(e));
}
-var e5 = 0;
-function BNe([e]) {
- let t = e.contentRect.width >= U8.HERO_WIDE_PX;
- cancelAnimationFrame(e5), e5 = requestAnimationFrame(() => {
- e5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
+var $8 = 0;
+function UNe([e]) {
+ let t = e.contentRect.width >= H8.HERO_WIDE_PX;
+ cancelAnimationFrame($8), $8 = requestAnimationFrame(() => {
+ $8 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function VNe() {
- U8.FEED_SKELETON_CARDS = 8, U8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${jA}"></div>
+function WNe() {
+ H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${LA}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
- <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(U8.FEED_SKELETON_CARDS)}</div>`, U8.entityShapes = null, U8.entityShapesComplete = !1, U8.hasEntityShape = (e, t) => U8.entityShapesComplete || !!U8.entityShapes?.has(`${e}/${Hn(t)}`), U8.hasEntityPart = (e, t, n) => !!t && !!U8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), U8.feedNewSkeletonSection = () => `<section class="feednew">${U8.feedNewSkeletonHtml()}</section>`, U8.COSTAR_SKELETON_PEOPLE = 12, U8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(U8.COSTAR_SKELETON_PEOPLE)}</div></div>`, U8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, U8.feedRevision = 0, U8.feedNewHelpers = {
- feedRowHtml: Y8,
- wireFeedRow: (e) => X8(e)
- }, U8.feedNewActions = { settled: (e) => q8(e) }, U8.HERO_WIDE_PX = 900, J.resize(BNe).observe(L("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(H8.FEED_SKELETON_CARDS)}</div>`, H8.entityShapes = null, H8.entityShapesComplete = !1, H8.hasEntityShape = (e, t) => H8.entityShapesComplete || !!H8.entityShapes?.has(`${e}/${Hn(t)}`), H8.hasEntityPart = (e, t, n) => !!t && !!H8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), H8.feedNewSkeletonSection = () => `<section class="feednew">${H8.feedNewSkeletonHtml()}</section>`, H8.COSTAR_SKELETON_PEOPLE = 12, H8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(H8.COSTAR_SKELETON_PEOPLE)}</div></div>`, H8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, H8.feedRevision = 0, H8.feedNewHelpers = {
+ feedRowHtml: J8,
+ wireFeedRow: (e) => Y8(e)
+ }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, J.resize(UNe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function HNe(e, t, n, r = "") {
+function GNe(e, t, n, r = "") {
let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">
@@ -76807,10 +76818,10 @@ function HNe(e, t, n, r = "") {
<div class="entitysection">${o}</div></div></section>`;
}
// src/filter-controls-skeleton.ts
-var t5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : ws(e, "size-4 shrink-0"), n5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", r5 = (e, t, n) => `<span data-entity-layout="" class="${YU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${XU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${n5}>${t5(r)}</span>`).join("")}</span>`;
-function i5(e, t) {
- let n = PM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? r5(t.label, t.value, t.options) : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${n5}>${t5("shuffle")}</button>${i}${r5("馆藏显示方式", n, [[
+var e5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : ws(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${JU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${YU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
+function r5(e, t) {
+ let n = NM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? n5(t.label, t.value, t.options) : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${t5}>${e5("shuffle")}</button>${i}${n5("馆藏显示方式", n, [[
"cards",
"卡片",
"ri-layout-grid-line"
@@ -76818,7 +76829,7 @@ function i5(e, t) {
"list",
"列表",
"ri-list-unordered"
- ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${n5}>${t5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${n5}>${z(e.label)}${e.dir ? t5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
+ ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${t5}>${e5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${t5}>${z(e.label)}${e.dir ? e5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
// src/application/entity.js
var Y = {
@@ -76846,16 +76857,16 @@ var Y = {
sourceToolButtons: void 0,
application: void 0
};
-function a5() {
- let e = qV(L("#index"));
+function i5() {
+ let e = KV(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function o5(e) {
- Y.entityPageCurrent() && QV(L("#index"), e);
+function a5(e) {
+ Y.entityPageCurrent() && ZV(L("#index"), e);
}
-function s5() {
+function o5() {
if (cu.type === "item") return cu;
- let e = a5();
+ let e = i5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -76867,23 +76878,23 @@ function s5() {
}
return cu;
}
-function c5(e, t, n = t7()) {
- return IPe(n).map(([n, r]) => {
- let i = e === n, a = eA(n, e, t);
+function s5(e, t, n = e7()) {
+ return zPe(n).map(([n, r]) => {
+ let i = e === n, a = sA(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Qk(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Qk(a.sort, a.dir) : ""}排序` : ""
+ dir: i && aA(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? aA(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function l5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
+function c5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
-function u5() {
- return DNe({
+function l5() {
+ return ANe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -76892,37 +76903,37 @@ function u5() {
statsVisible: !L("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function d5() {
+function u5() {
Y.photos.sync();
}
-function f5() {
- u5() ? QA(LA()) : XA();
+function d5() {
+ l5() ? Nse(UA()) : nj();
}
-function UNe(e) {
+function KNe(e) {
Y.photos.setSize(e);
}
-var p5 = wNe({
+var f5 = DNe({
request: (e) => wn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => C8.toast({ text: "已在资源管理器中显示" }),
+ success: () => S8.toast({ text: "已在资源管理器中显示" }),
failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function m5(e) {
+async function p5(e) {
let t = { textContent: "" };
- return await p5(e, t), t.textContent;
+ return await f5(e, t), t.textContent;
}
-async function WNe(e) {
+async function qNe(e) {
let t = { textContent: "" }, n = [];
- return await h5(e, t, (e) => {
+ return await m5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function h5(e, t, n) {
+async function m5(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await wn("/api/purge-missing", {
@@ -76935,7 +76946,7 @@ async function h5(e, t, n) {
}
if (t.textContent = r.removed ? `${Y.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);
- n && n(r), C8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), S8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
await wn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -76947,22 +76958,22 @@ async function h5(e, t, n) {
restored: e.length
});
} : null });
- } else C8.actionReceipt("目录核对完成,无需改动");
+ } else S8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = Y.sourceHint(e.message), C8.actionFailure("核对目录", e);
+ t.textContent = Y.sourceHint(e.message), S8.actionFailure("核对目录", e);
}
}
-function GNe(e) {
+function JNe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function KNe(e, t) {
+function YNe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && J.handler(r, "onclick", () => p5(Number(r.dataset.reveal), n, { button: r })), i && J.handler(i, "onclick", () => h5(Number(i.dataset.sync), n, t));
+ r && J.handler(r, "onclick", () => f5(Number(r.dataset.reveal), n, { button: r })), i && J.handler(i, "onclick", () => m5(Number(i.dataset.sync), n, t));
}
-async function qNe(e, t) {
+async function XNe(e, t) {
let n = il({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -76985,53 +76996,53 @@ async function qNe(e, t) {
remove: !0
});
} catch (e) {
- C8.actionFailure("撤销别名", e);
+ S8.actionFailure("撤销别名", e);
return;
}
- C8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ S8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? C8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? S8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : C8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : S8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function g5(e, t) {
- let n = ["performer", "studio"].includes(e) && U8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : i5(c5(U.sort, U.dir, n), n ? {
+function h5(e, t) {
+ let n = ["performer", "studio"].includes(e) && H8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : r5(s5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: NA(),
- options: OA
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${n5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${n5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${n5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = HNe(e, r, e === "agency" ? rc({
+ value: zA(),
+ options: PA
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${t5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = GNe(e, r, e === "agency" ? rc({
kind: "performers",
- layout: M5.peopleIndexLayout()
- }) : VJ("正在读取作品", VA(BA({
+ layout: j5.peopleIndexLayout()
+ }) : VJ("正在读取作品", qA(KA({
active: n,
home: !1,
portrait: !1
}))), i);
- L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? _5(e, t) : (L("#index").innerHTML = a, _5(e, t), uc(L("#index")));
+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? g5(e, t) : (L("#index").innerHTML = a, g5(e, t), uc(L("#index")));
}
-function _5(e, t) {
+function g5(e, t) {
let n = L("#index").firstElementChild;
if (n?.dataset.skeleton !== `entity/${e}`) return;
let r = (e, t, n) => {
t && !e ? n() : !t && e && e.remove();
};
- r(n.querySelector(".entityfoot"), e !== "agency" && U8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", U8.costarSkeletonFoot())), r(n.querySelector(".feednew"), U8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", U8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && U8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", U8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && H8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", H8.costarSkeletonFoot())), r(n.querySelector(".feednew"), H8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", H8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && H8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", H8.factsSkeleton()));
}
-function v5(e) {
- let t = jn[e] || e, n = H3[t] || "条目", r = H3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+function _5(e) {
+ let t = jn[e] || e, n = V3[t] || "条目", r = V3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function y5(e, t) {
- x9(Y.application.fresh(e, t));
+function v5(e, t) {
+ b9(Y.application.fresh(e, t));
}
-function JNe() {
+function ZNe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -77043,40 +77054,40 @@ function JNe() {
"year",
"sort",
"dir"
- ], Y.emptyEntityFilters = R8, Y.parseEntityFilters = (e) => z8(e, {
+ ], Y.emptyEntityFilters = L8, Y.parseEntityFilters = (e) => R8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), Y.entityFilterSearch = B8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), Y.entityFilterSearch = z8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
} : e, Y.activeFilterState = () => {
- let e = s5();
+ let e = o5();
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function YNe() {
- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!a5(), Y.entityPageLive = (e, t) => {
- let n = a5();
+function QNe() {
+ Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!i5(), Y.entityPageLive = (e, t) => {
+ let n = i5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
}, Y.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, Y.parseMediaView = V8, Y.entityViewSearch = H8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => q7(), Y.entityPageHelpers = {
+ }, Y.parseMediaView = B8, Y.entityViewSearch = V8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => K7(), Y.entityPageHelpers = {
wireDrag: (e) => {
- e && t9(e);
+ e && e9(e);
},
wireScroller: (e) => {
e && Dc(e);
},
- wireFeedRow: (e) => X8(e),
- feedRowHtml: Y8,
- receipt: (e, t) => C8.actionReceipt(e, t),
- failure: (e, t) => C8.actionFailure(e, t),
- aliasForm: (e, t) => qNe(e, t),
- sourceToolsHtml: (e) => GNe(e),
- wireSourceTools: (e, t) => KNe(e, t),
- comboItems: (e) => I7(e),
- sortKeys: (e, t, n) => c5(e, t, n)
+ wireFeedRow: (e) => Y8(e),
+ feedRowHtml: J8,
+ receipt: (e, t) => S8.actionReceipt(e, t),
+ failure: (e, t) => S8.actionFailure(e, t),
+ aliasForm: (e, t) => XNe(e, t),
+ sourceToolsHtml: (e) => JNe(e),
+ wireSourceTools: (e, t) => YNe(e, t),
+ comboItems: (e) => F7(e),
+ sortKeys: (e, t, n) => s5(e, t, n)
}, Y.entityFollowActions = {
...$.followFeedActions,
route: () => {},
@@ -77099,11 +77110,11 @@ function YNe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function XNe() {
- Y.application = MNe({
+function $Ne() {
+ Y.application = FNe({
controller: {
context: () => {
- let e = s5();
+ let e = o5();
return e.type === "entity" ? e : null;
},
live: (e, t) => Y.entityPageLive(e, t),
@@ -77115,28 +77126,28 @@ function XNe() {
filters: U
} }),
releaseBodyPreviews: () => ql(L("#index [data-entity-body]")),
- push: o5,
+ push: a5,
state: () => ({
seed: String(U.seed || ""),
jav: U.jav === "1"
}),
preferences: () => ({
revision: Y.entityPageRevision,
- feedRevision: U8.feedRevision,
- photoSize: LA(),
- photoLayout: RA(),
- photoLayouts: AA,
+ feedRevision: H8.feedRevision,
+ photoSize: UA(),
+ photoLayout: WA(),
+ photoLayouts: IA,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: NA(),
- javLayouts: OA,
+ javLayout: zA(),
+ javLayouts: PA,
states: X.VIEW_PILLS,
- peopleLayout: M5.peopleIndexLayout(),
- layout: K7(),
+ peopleLayout: j5.peopleIndexLayout(),
+ layout: G7(),
selectMode: fu,
selected: new Set(uu),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: t9,
+ wireDrag: e9,
skeletonHtml: Y.entityBodySkeleton,
canLoadMore: Y.entityBodyCanLoadMore,
follow: {
@@ -77144,52 +77155,52 @@ function XNe() {
actions: Y.entityFollowActions
}
}),
- changeFilter: C7,
- rollSeed: () => C8.rollSeed(),
+ changeFilter: S7,
+ rollSeed: () => S8.rollSeed(),
writeSeed: (e) => {
U.seed = e, Lu();
},
- setJavLayout: i7,
- javLayout: NA,
- setPhotoLayout: UA,
- syncPhotoWalls: d5,
- openEntity: y5,
- photoViewActive: u5,
+ setJavLayout: r7,
+ javLayout: zA,
+ setPhotoLayout: YA,
+ syncPhotoWalls: u5,
+ openEntity: v5,
+ photoViewActive: l5,
recordPainted: (e, t) => {
Y.entityPageView = e, Y.entityPageWall = t;
},
- syncDensity: f5,
- scheduleSticky: d7,
- releasePage: () => $V(L("#index")),
- showMissing: v5,
- dropBars: k8
+ syncDensity: d5,
+ scheduleSticky: u7,
+ releasePage: () => QV(L("#index")),
+ showMissing: _5,
+ dropBars: O8
},
loading: {
- shapesReady: (e, t) => U8.hasEntityShape(e, t),
- waitShapes: z5,
- paintSkeleton: g5,
+ shapesReady: (e, t) => H8.hasEntityShape(e, t),
+ waitShapes: R5,
+ paintSkeleton: h5,
resetView: () => {
Iu({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
},
- loadShapes: G8,
- syncParts: _5
+ loadShapes: W8,
+ syncParts: g5
},
photos: {
preferences: () => ({
- size: LA(),
- layout: RA(),
+ size: UA(),
+ layout: WA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: o5,
- pushFollow: E9,
- syncDensity: f5,
- storeSize: Fse
+ pushEntity: a5,
+ pushFollow: T9,
+ syncDensity: d5,
+ storeSize: jse
},
helpers: Y.entityPageHelpers,
actions: {
- toggleTag: F7,
- openFollowAuthor: F5,
+ toggleTag: P7,
+ openFollowAuthor: P5,
javContext: (e) => Iu({ entityJavLayout: !!e })
},
sortPreference: () => ({
@@ -77199,8 +77210,8 @@ function XNe() {
}), Y.photos = Y.application.photos, Y.entityPageHelpers = Y.application.helpers;
}
// src/application/playlists.js
-var b5 = { playlistWrite: void 0 };
-function ZNe(e, t) {
+var y5 = { playlistWrite: void 0 };
+function ePe(e, t) {
e === "tag" ? (Iu({ state: {
...U,
tag: t,
@@ -77210,17 +77221,17 @@ function ZNe(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(g7()), W5(), N7()) : y5(e, t);
+ } }), X.clearSearchField(), Q.route(h7()), U5(), M7()) : v5(e, t);
}
-function x5(e = "") {
+function b5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function QNe({ title: e, count: t, save: n }) {
+async function tPe({ title: e, count: t, save: n }) {
let r = il({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: x5(e),
+ body: b5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -77230,28 +77241,28 @@ async function QNe({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await s9(a.id, a.current_asset_id, !0), C8.actionReceipt("已保存为播放列表", { undo: async () => {
- await b5.playlistWrite({
+ i && (await o9(a.id, a.current_asset_id, !0), S8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await y5.playlistWrite({
action: "delete",
id: a.id
- }), x9("/playlists");
+ }), b9("/playlists");
} }));
}
-async function $Ne(e) {
+async function nPe(e) {
let t = ((await wn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ws(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = il({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: x5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Rs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: b5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Rs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
confirmLabel: "保存",
confirmDisabled: !0,
onConfirm: async () => {
- let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await b5.playlistWrite({
+ let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await y5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await b5.playlistWrite({
+ for (let t of r) await y5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -77269,42 +77280,42 @@ async function $Ne(e) {
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- C8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await b5.playlistWrite({
+ S8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await y5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await b5.playlistWrite({
+ a.created && await y5.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function S5() {
- ql(), a9(!1), U5();
- let e = qV(L("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? Iu({ pageOpens: Du + 1 }) : (H5({ manage: !1 }), Iu({ playlistsRevision: Nu + 1 }));
+function x5() {
+ ql(), i9(!1), H5();
+ let e = KV(L("#stats"));
+ e?.path !== "/playlists" || !e.host.isConnected ? Iu({ pageOpens: Du + 1 }) : (V5({ manage: !1 }), Iu({ playlistsRevision: Nu + 1 }));
}
-function ePe(e) {
+function rPe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
}
-function C5(e) {
- Iu({ configurationRequestedSection: e }), Q.navigatePath(wV(e));
+function S5(e) {
+ Iu({ configurationRequestedSection: e }), Q.navigatePath(CV(e));
}
-function tPe() {
- b5.playlistWrite = (e) => wn("/api/playlist", {
+function iPe() {
+ y5.playlistWrite = (e) => wn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
// src/react/catalog-grid/selection-controller.ts
-function w5(e) {
+function C5(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function T5(e, t, n, r, i = !1) {
+function w5(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -77312,23 +77323,23 @@ function T5(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function E5(e, t, n, r, i, a = !1) {
+function T5(e, t, n, r, i, a = !1) {
let o = n === "follow", s = CY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...T5(e, t, n, !0),
+ ...w5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function nPe(e, t, n, r) {
- let i = w5(t);
+function aPe(e, t, n, r) {
+ let i = C5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: o$(n).view === "dismissed"
+ junkDismissed: a$(n).view === "dismissed"
};
}
// src/application/selection.js
-var D5 = {
+var E5 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -77336,43 +77347,43 @@ var D5 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function O5() {
- W7({
+function D5() {
+ U7({
selected: new Set(uu),
selectMode: fu
- }), o5({
+ }), a5({
selected: new Set(uu),
selectMode: fu
- }), E9({
+ }), T9({
selected: new Set(du),
selectMode: fu
- }), D5.batchDockProps = fPe(), y8() && (y8().render(D5.batchDockProps), Z.syncGlassOptics());
+ }), E5.batchDockProps = hPe(), v8() && (v8().render(E5.batchDockProps), Z.syncGlassOptics());
}
-function k5(e, t = !1) {
- Iu(T5({
+function O5(e, t = !1) {
+ Iu(w5({
selected: uu,
followSelected: du
- }, j5(), w5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", fu), fu && ql(), L("#selectMode").setAttribute("aria-pressed", String(fu)), O5();
+ }, A5(), C5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", fu), fu && ql(), L("#selectMode").setAttribute("aria-pressed", String(fu)), D5();
}
-function rPe() {
- return [...I5.gridCards()].map((e) => +e.dataset.id);
+function oPe() {
+ return [...F5.gridCards()].map((e) => +e.dataset.id);
}
-function A5(e, t = !1) {
- Iu(E5({
+function k5(e, t = !1) {
+ Iu(T5({
selected: uu,
followSelected: du
- }, j5(), w5(location.pathname), rPe(), e, t)), k5(!0);
+ }, A5(), C5(location.pathname), oPe(), e, t)), O5(!0);
}
-function iPe() {
+function sPe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function aPe(e, t = !1) {
- Iu(E5({
+function cPe(e, t = !1) {
+ Iu(T5({
selected: uu,
followSelected: du
- }, j5(), "follow", iPe(), e, t)), k5(!0);
+ }, A5(), "follow", sPe(), e, t)), O5(!0);
}
-async function oPe(e, t) {
+async function lPe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -77404,9 +77415,9 @@ async function oPe(e, t) {
})
});
if (t.blocked && t.blocked.length) throw Error(`已永久删除 ${t.purged} 项;${t.blocked.length} 项未能删除,仍在回收站:\n` + t.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- k5(!1, !0), await o7();
+ O5(!1, !0), await a7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- C8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ S8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -77431,23 +77442,23 @@ async function oPe(e, t) {
operation: r
})
});
- await o7();
+ await a7();
} : null });
} catch (e) {
throw qc(t, !1), e;
} finally {
- qc(t, !1), O5();
+ qc(t, !1), D5();
}
}
});
}
-async function sPe() {
+async function uPe() {
let e = [...uu];
if (!e.length) return;
let t = il({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + D5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
+ body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + E5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
<span class="chip-label">${t}</span></button>`).join("") + "</div>",
confirmLabel: "判定产地",
confirmDisabled: !0,
@@ -77471,9 +77482,9 @@ async function sPe() {
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
- n && (k5(!1, !0), await o7(), C8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (O5(!1, !0), await a7(), S8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function cPe(e, t) {
+async function dPe(e, t) {
let n = [...du];
if (!n.length) return;
let r = {
@@ -77499,16 +77510,16 @@ async function cPe(e, t) {
items: n,
to: e
})
- }), k5(!1, !0), location.pathname === "/follow" && Iu({ pageOpens: Du + 1 }), C8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), O5(!1, !0), location.pathname === "/follow" && Iu({ pageOpens: Du + 1 }), S8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
throw qc(t, !1), e;
} finally {
- qc(t, !1), O5();
+ qc(t, !1), D5();
}
}
});
}
-async function lPe(e, t) {
+async function fPe(e, t) {
let n = [...uu];
if (!n.length) return;
let r = {
@@ -77535,68 +77546,68 @@ async function lPe(e, t) {
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), k5(!1, !0), await R7();
+ }), O5(!1, !0), await L7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- C8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ S8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await wn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t
})
- }), await R7();
+ }), await L7();
} : null });
} catch (e) {
throw qc(t, !1), e;
} finally {
- qc(t, !1), O5();
+ qc(t, !1), D5();
}
}
});
}
-function uPe() {
- aNe({
+function pPe() {
+ cNe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
- D5.BATCH_RUNNERS[e]?.(t, n);
+ E5.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(D5.batchDockProps), Z.syncGlassOptics();
+ e.render(E5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function dPe() {
- D5.batchDockProps = {
+function mPe() {
+ E5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, D5.trashCount = null, D5.currentSelectSurface = () => w5(location.pathname), J.handler(L("#selectMode"), "onclick", () => k5(!fu, !!fu)), D5.REGION_CHOICES = [
+ }, E5.trashCount = null, E5.currentSelectSurface = () => C5(location.pathname), J.handler(L("#selectMode"), "onclick", () => O5(!fu, !!fu)), E5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], D5.BATCH_RUNNERS = {
- batch: oPe,
- region: sPe,
- follow: cPe,
- junk: lPe,
- clear: () => k5(!1, !0)
+ ], E5.BATCH_RUNNERS = {
+ batch: lPe,
+ region: uPe,
+ follow: dPe,
+ junk: fPe,
+ clear: () => O5(!1, !0)
}, J.handler(L("#density"), "onclick", () => {
- u5() ? UNe(LA() === "big" ? "small" : "big") : ZA();
- }), XA(), Gl({
+ l5() ? KNe(UA() === "big" ? "small" : "big") : Mse();
+ }), nj(), Gl({
selecting: () => fu,
- censored: () => $7(),
+ censored: () => Q7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
}), J.listen(window, "pagehide", () => ql()), J.listen(document, "visibilitychange", () => {
document.hidden && ql();
- }), Hl(), D5.coverRecheck = 0, J.listen(window, "resize", () => {
- zl(L("#index")), clearTimeout(D5.coverRecheck), D5.coverRecheck = J.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ }), Hl(), E5.coverRecheck = 0, J.listen(window, "resize", () => {
+ zl(L("#index")), clearTimeout(E5.coverRecheck), E5.coverRecheck = J.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && Al(e);
}), 200);
}, { passive: !0 });
}
-function j5() {
+function A5() {
return {
selectMode: fu,
selectSurface: hu,
@@ -77604,73 +77615,73 @@ function j5() {
followLastSelectedId: mu
};
}
-function fPe() {
- return nPe({
+function hPe() {
+ return aPe({
selected: uu,
followSelected: du
}, location.pathname, location.search, U.state);
}
// src/application/index.js
-var M5 = {
+var j5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function pPe() {
+function gPe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function mPe() {
- return IZ(location.search);
+function _Pe() {
+ return FZ(location.search);
}
-function hPe(e) {
- return LZ(e);
+function vPe(e) {
+ return IZ(e);
}
-function gPe(e) {
- Q.route(hPe(e));
+function yPe(e) {
+ Q.route(vPe(e));
}
-function _Pe(e = "") {
- return RZ(location.search, e);
+function bPe(e = "") {
+ return LZ(location.search, e);
}
-function vPe(e) {
- return L8(e);
+function xPe(e) {
+ return I8(e);
}
-function N5(e) {
- return F8(e);
+function M5(e) {
+ return P8(e);
}
-function P5() {
- L("#stats").hidden = !0, L("#index").hidden = !1, B7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
+function N5() {
+ L("#stats").hidden = !0, L("#index").hidden = !1, z7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function yPe(e, t) {
+function SPe(e, t) {
Iu({ state: {
...U,
state: "",
tag: e.join(","),
tag_match: t
- } }), k5(!1, !1), Q.route(g7()), W5(), _9(), N7();
+ } }), O5(!1, !1), Q.route(h7()), U5(), g9(), M7();
}
-function F5(e) {
- M5.controller.openFollowAuthor(e);
+function P5(e) {
+ j5.controller.openFollowAuthor(e);
}
-function bPe(e) {
- M5.controller.openFollowTag(e);
+function CPe(e) {
+ j5.controller.openFollowTag(e);
}
-function xPe() {
- $.FOLLOW_MANAGE_TABS = FZ, J.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") && C5("媒体库与入库");
- }), M5.peopleIndexLayout = () => U3(Z.appSettings.peopleLayout), M5.personAvatar = I8;
+function wPe() {
+ $.FOLLOW_MANAGE_TABS = PZ, J.listen(document, "click", (e) => {
+ e.target.closest?.("[data-empty-settings]") && S5("媒体库与入库");
+ }), j5.peopleIndexLayout = () => H3(Z.appSettings.peopleLayout), j5.personAvatar = F8;
}
-function SPe() {
- M5.controller = CNe({
+function TPe() {
+ j5.controller = ENe({
route: Q.route,
- followView: C9,
- adoptFollowView: w9,
+ followView: S9,
+ adoptFollowView: C9,
hideIndex: () => {
L("#index").hidden = !0;
},
- openPage: x9
+ openPage: b9
});
}
// src/application/loading.js
-var I5 = {
+var F5 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -77679,58 +77690,58 @@ var I5 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function L5(e = "正在读取作品") {
+function I5(e = "正在读取作品") {
if (location.pathname === "/wall") {
L("#loadSentinel").hidden = !0;
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = WTe(o$(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = qTe(a$(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && w7({
count: null,
- ...O7()
- })), L("#loadSentinel").hidden = !0, U7()) return;
- let r = L("#grid"), i = q7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== l2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== J7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : I5.setGridCards(i), uc(L("#grid")));
+ ...D7()
+ })), L("#loadSentinel").hidden = !0, H7()) return;
+ let r = L("#grid"), i = K7(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== c2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : F5.setGridCards(i), uc(L("#grid")));
}
-function R5() {
- L("#catalogFilter").style.display = "none", w7();
+function L5() {
+ L("#catalogFilter").style.display = "none", C7();
}
-function z5() {
+function R5() {
let e = new Promise((e) => {
- let t = I5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = F5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
t -= Math.min(i - n, 50), n = i, t > 0 ? J.delay(r, Math.min(t, 50)) : e();
};
J.delay(r, 50);
});
- return Promise.race([I5.entityShapesReady ||= G8(), e]);
+ return Promise.race([F5.entityShapesReady ||= W8(), e]);
}
-function CPe() {
+function EPe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), R5();
- else if (/^\/assets\/\d+$/.test(e)) R5();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) R5();
- else if (e === "/junk-files") L5("正在读取垃圾文件");
- else if (e === "/jav" && x$(new URLSearchParams(location.search).get("tab")) === "library") L5("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), L5();
+ else if (/^\/assets\/\d+$/.test(e)) L5();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) L5();
+ else if (e === "/junk-files") I5("正在读取垃圾文件");
+ else if (e === "/jav" && b$(new URLSearchParams(location.search).get("tab")) === "library") I5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- R5();
+ L5();
let t = L("#stats");
- t.hidden = !1, B7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : I5.managementPlaceholder(e), uc(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) R5(), P5(), K3(L("#index"), W3(e.slice(1), location.search), M5.peopleIndexLayout());
+ t.hidden = !1, z7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : F5.managementPlaceholder(e), uc(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) L5(), N5(), G3(L("#index"), U3(e.slice(1), location.search), j5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- R5(), L("#index").hidden = !1, B7();
+ L5(), L("#index").hidden = !1, z7();
let t = Mn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (U8.hasEntityShape(t, n) ? Promise.resolve() : z5()).then(() => {
- L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (g5(t, n), uc(L("#index")));
+ (H8.hasEntityShape(t, n) ? Promise.resolve() : R5()).then(() => {
+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (h5(t, n), uc(L("#index")));
});
- } else Q.routeMeta(e) ? L5() : (B7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? I5() : (z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function wPe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => s2(t, {
+function DPe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => o2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: LA()
+ gridSize: UA()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -77738,37 +77749,37 @@ function wPe() {
<div class="board-filter-frame" data-filter-frame>
<div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div>
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Vs(Bs), I5.setGridCards = (e) => tc(L("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Vs(Bs), F5.setGridCards = (e) => tc(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), I5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), I5.managementPlaceholder = (e) => c2(e, {
- followLayout: pPe(),
+ }), F5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), F5.managementPlaceholder = (e) => s2(e, {
+ followLayout: gPe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(mPe())
- }), I5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", I5.entityShapesReady = null, I5.ENTITY_SHAPES_WAIT = 400, I5.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = zV(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, h9();
+ }))(_Pe())
+ }), F5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", F5.entityShapesReady = null, F5.ENTITY_SHAPES_WAIT = 400, F5.syncPageTitle = (e) => {
+ let t = new URL(e, location.origin), n = RV(decodeURIComponent(t.pathname))?.title;
+ document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, m9();
};
}
// src/sidebar-skeleton.ts
-var B5 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var z5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function TPe(e, t, n) {
+function OPe(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${B5(r)}"/></svg>`;
- return `<button type="button" data-nav="${B5(e)}" aria-pressed="${n(e)}" aria-label="${B5(t)}">${i}<span>${B5(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${z5(r)}"/></svg>`;
+ return `<button type="button" data-nav="${z5(e)}" aria-pressed="${n(e)}" aria-label="${z5(t)}">${i}<span>${z5(t)}</span></button>`;
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function EPe(e, t, n, r = !1) {
+function kPe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -77786,7 +77797,7 @@ function EPe(e, t, n, r = !1) {
};
}
// src/application/layout.js
-var V5 = {
+var B5 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -77808,20 +77819,20 @@ var V5 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function H5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, B7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), _9()), t && u2(L("#stats"), t);
+function V5({ manage: e = !0, placeholder: t = "" } = {}) {
+ L("#stats").hidden = !1, L("#index").hidden = !0, z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? X5() : (Z5(""), g9()), t && l2(L("#stats"), t);
}
-function U5() {
- X.hideCatalogCombo(), R5(), document.body.classList.remove("entity-open", "index-open");
+function H5() {
+ X.hideCatalogCombo(), L5(), document.body.classList.remove("entity-open", "index-open");
}
-function W5() {
- document.body.classList.remove("entity-open", "index-open"), $V(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, Z8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", w7(), Z5(), $5();
+function U5() {
+ document.body.classList.remove("entity-open", "index-open"), QV(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, X8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", C7(), X5(), Q5();
}
-function DPe() {
- Q.route("/"), W5();
+function APe() {
+ Q.route("/"), U5();
}
-function G5({ tags: e = [], providers: t = [], duration: n = !1 }) {
- g9({
+function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ h9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
@@ -77844,69 +77855,69 @@ function G5({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function K5(e) {
- NFe({
- ...C9(),
+function G5(e) {
+ IFe({
+ ...S9(),
...e
- }), g9({ filters: $.followSidebarFilters() });
+ }), h9({ filters: $.followSidebarFilters() });
}
-function q5() {
+function K5() {
return matchMedia("(max-width:760px)").matches;
}
-function J5(e) {
+function q5(e) {
let t = L("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && q5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
+ t.inert = !e && K5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
}
-function OPe() {
- q5() && J5(!1);
+function jPe() {
+ K5() && q5(!1);
}
-function kPe() {
+function MPe() {
Tu === null && (Iu({ runtimeConfigurable: !1 }), wn("/healthz").then((e) => {
- Iu({ runtimeConfigurable: !!e.configurable }), Tu && X5() && Z5();
+ Iu({ runtimeConfigurable: !!e.configurable }), Tu && Y5() && X5();
}).catch(() => {}));
}
-function Y5(e = "", t = !1) {
- if (!t && !SV(location.pathname)) {
- let t = cH.navigation;
- cH.push(wV(e), { settingsBackground: {
+function J5(e = "", t = !1) {
+ if (!t && !xV(location.pathname)) {
+ let t = sH.navigation;
+ sH.push(CV(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
- } else !t && e && lH(wV(e), {
+ } else !t && e && cH(CV(e), {
replace: !0,
- state: cH.navigation.location.state
+ state: sH.navigation.location.state
});
- return e ||= CV(location.pathname), nNe(V5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= SV(location.pathname), aNe(B5.settingsHost()).then((t) => (t.open(e), t));
}
-function APe() {
- SV(location.pathname) && (TV(cH.navigation.location.state) ? cH.go(-1) : Q.navigatePath("/", !0));
+function NPe() {
+ xV(location.pathname) && (wV(sH.navigation.location.state) ? sH.go(-1) : Q.navigatePath("/", !0));
}
-function jPe() {
+function PPe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: V5.NAV_CATALOG,
- navOn: c7,
- navTo: l7,
- toggleChip: (e, t, n) => C7((r) => {
+ navCatalog: B5.NAV_CATALOG,
+ navOn: s7,
+ navTo: c7,
+ toggleChip: (e, t, n) => S7((r) => {
if (n) {
let n = String(r[e] || "").split(",").filter(Boolean), i = n.indexOf(t);
i >= 0 ? n.splice(i, 1) : n.push(t), r[e] = n.join(",");
} else r[e] = r[e] === t ? "" : t;
}),
- setDuration: (e, t) => C7((n) => {
+ setDuration: (e, t) => S7((n) => {
n.len = "", n.dur_min = e ? String(e * 60) : "", n.dur_max = t < 180 ? String(t * 60) : "";
}),
openFollowTag: (e) => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), J5(!1), x9(S9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), q5(!1), b9(x9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), J5(!1), x9(S9());
+ $.followTags = /* @__PURE__ */ new Set([e]), q5(!1), b9(x9());
},
- selectFollowProvider: (e) => K5({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => K5({
+ selectFollowProvider: (e) => G5({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => G5({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -77915,137 +77926,137 @@ function jPe() {
}
};
}
-function MPe() {
+function FPe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = TPe(Z.appSettings.sidebarOrder, V5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), J.listen(e, "click", (e) => {
- if (p8()) return;
+ e.innerHTML = OPe(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, s7), e.querySelector("[data-sidebar-head]").append(...t), J.listen(e, "click", (e) => {
+ if (f8()) return;
let t = e.target.closest?.("[data-nav]");
- t && l7(t.dataset.nav);
- }), rNe(jPe()).then((e) => e.render(V5.sidebarProps)).catch(() => {});
+ t && c7(t.dataset.nav);
+ }), oNe(PPe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
}
-async function NPe() {
+async function IPe() {
let e = J, t = null;
try {
t = await wn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && CA(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && kA(t, (e) => Z.settingsEffects[e]?.());
}
-function X5() {
+function Y5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
-function Z5() {
- let e = X5();
- kPe(), e && R5(), L("#count").classList.toggle("no-tagbar", !!e), _9(), e !== "trash" && (D5.trashCount = null), Q5(e);
+function X5() {
+ let e = Y5();
+ MPe(), e && L5(), L("#count").classList.toggle("no-tagbar", !!e), g9(), e !== "trash" && (E5.trashCount = null), Z5(e);
}
-function PPe(e) {
+function LPe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: V5.MANAGE_SECTIONS,
- menu: e ? V5.manageMenuSections() : [],
- trash: D5.trashCount
+ sections: B5.MANAGE_SECTIONS,
+ menu: e ? B5.manageMenuSections() : [],
+ trash: E5.trashCount
};
}
-function Q5(e = X5()) {
- $5();
- let t = PPe(e), n = g8();
+function Z5(e = Y5()) {
+ Q5();
+ let t = LPe(e), n = h8();
if (n) n.render(t);
else {
- let e = zle(t);
- e !== V5.manageHeaderSkeleton && (V5.manageHeaderSkeleton = e, V5.manageHeaderRoot().innerHTML = e);
+ let e = BP(t);
+ e !== B5.manageHeaderSkeleton && (B5.manageHeaderSkeleton = e, B5.manageHeaderRoot().innerHTML = e);
}
- let r = fP(t)?.title || "";
- r !== V5.lastManagePageLabel && (V5.lastManagePageLabel = r, r && Qs(V5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ let r = IP(t)?.title || "";
+ r !== B5.lastManagePageLabel && (B5.lastManagePageLabel = r, r && Qs(B5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function FPe() {
- let e = V5.manageHeaderRoot();
+function RPe() {
+ let e = B5.manageHeaderRoot();
J.listen(e, "click", (e) => {
- if (g8()) return;
+ if (h8()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) e7(t.dataset.manage);
+ if (t) $5(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
- } else e.target.closest?.("[data-empty-trash]") && P7();
- }), iNe({
+ } else e.target.closest?.("[data-empty-trash]") && N7();
+ }), sNe({
root: e,
- openManage: e7,
+ openManage: $5,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: P7
- }).then(() => Q5()).catch(() => {});
+ emptyTrash: N7
+ }).then(() => Z5()).catch(() => {});
}
-function $5() {
+function Q5() {
let e = L("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !X5() && An(t) && kn[U.state] || "";
- e.hidden = !n, n && (e.textContent = n), L("#catalogPageHeading").hidden = !!X5() || !An(t) || !!n || U.jav === "1";
+ let t = decodeURIComponent(location.pathname), n = !Y5() && An(t) && kn[U.state] || "";
+ e.hidden = !n, n && (e.textContent = n), L("#catalogPageHeading").hidden = !!Y5() || !An(t) || !!n || U.jav === "1";
}
-function e7(e = "stats") {
+function $5(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Lu(), Q.route(s$()), W5(), _9(), N7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Lu(), Q.route(o$()), U5(), g9(), M7());
}
-function t7() {
+function e7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || ku : !1;
}
-function IPe(e = t7()) {
- let t = qk.filter(([e]) => e !== "seed");
- return e ? [Jk, ...t] : t;
+function zPe(e = e7()) {
+ let t = eA.filter(([e]) => e !== "seed");
+ return e ? [tA, ...t] : t;
}
-function n7() {
+function t7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
-function r7() {
- return PA(n7());
+function n7() {
+ return BA(t7());
}
-function LPe(e) {
- Nse(e), a7(), L("#grid").hidden || Y7();
+function BPe(e) {
+ kse(e), i7(), L("#grid").hidden || J7();
}
-function i7(e) {
- HA(e), a7(), Y7();
+function r7(e) {
+ JA(e), i7(), J7();
}
-function a7() {
+function i7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === r7();
- }), X.catalogFilterProps && T7({ layout: D7() });
+ e.checked = e.value === n7();
+ }), X.catalogFilterProps && w7({ layout: E7() });
}
-function RPe(e) {
- Pse(e), a7(), Y7();
+function VPe(e) {
+ Ase(e), i7(), J7();
}
-async function o7() {
- k8(), X.mixRelatedCache.clear(), await Promise.all([s7(), N7()]);
+async function a7() {
+ O8(), X.mixRelatedCache.clear(), await Promise.all([o7(), M7()]);
}
-async function s7() {
+async function o7() {
if (Y.entityPageCurrent() && !L("#index").hidden) {
- o5({ revision: ++Y.entityPageRevision });
+ a5({ revision: ++Y.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
- if (zV(e)?.reload === "reopen" || e === "/follow") {
+ if (RV(e)?.reload === "reopen" || e === "/follow") {
Iu({ pageOpens: Du + 1 });
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await R7();
+ t?.route.reload ? await t.route.reload() : await L7();
}
-function c7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = V5.DIRECT_MANAGE_NAV[e];
- if (r) return X5() === r;
+function s7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = B5.DIRECT_MANAGE_NAV[e];
+ if (r) return Y5() === r;
if (e === "manage") {
- let e = X5();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => V5.DIRECT_MANAGE_NAV[t] === e);
+ let e = Y5();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => B5.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || t7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !X5() && !U.state && !t7() && U.orient !== "竖屏" : Dn[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || e7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !Y5() && !U.state && !e7() && U.orient !== "竖屏" : Dn[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
-function l7(e) {
- if (OPe(), V5.DIRECT_MANAGE_NAV[e]) {
- e7(V5.DIRECT_MANAGE_NAV[e]);
+function c7(e) {
+ if (jPe(), B5.DIRECT_MANAGE_NAV[e]) {
+ $5(B5.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- e7();
+ $5();
return;
}
if (e === "jav") {
@@ -78053,25 +78064,25 @@ function l7(e) {
return;
}
if (e === "") {
- _7();
+ g7();
return;
}
let t = Dn[e] ? null : Q.routePathOf("nav", e);
- t ? Q.openRoutePath(t) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Lu(), Q.route(g7()), W5(), _9(), N7());
+ t ? Q.openRoutePath(t) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Lu(), Q.route(h7()), U5(), g9(), M7());
}
-function u7() {
+function l7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- fu && hu !== D5.currentSelectSurface() && k5(!1, !0);
+ fu && hu !== E5.currentSelectSurface() && O5(!1, !0);
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Mn, t[0]), r = An(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
- L("#selectMode").hidden = !i, L("#density").hidden = !a, d5(), !i && fu && k5(!1, !0);
+ L("#selectMode").hidden = !i, L("#density").hidden = !a, u5(), !i && fu && O5(!1, !0);
}
-function zPe() {
+function HPe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== V5.mobileFilterHost || location.pathname !== V5.mobileFilterPath) && (V5.mobileFilterScroll = null), V5.mobileFilterHost = t, V5.mobileFilterPath = location.pathname;
+ (t !== B5.mobileFilterHost || location.pathname !== B5.mobileFilterPath) && (B5.mobileFilterScroll = null), B5.mobileFilterHost = t, B5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- V5.mobileFilterScroll = EPe(V5.mobileFilterScroll, n, innerWidth <= 760, r);
+ B5.mobileFilterScroll = kPe(B5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && V5.mobileFilterScroll.free;
+ let e = n === t && B5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
let r = n.getBoundingClientRect().top;
n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);
@@ -78083,63 +78094,63 @@ function zPe() {
});
}
}
-function BPe() {
- zPe(), [".board-filter-frame", "#count"].forEach((e) => {
+function UPe() {
+ HPe(), [".board-filter-frame", "#count"].forEach((e) => {
let t = L(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;
t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);
});
}
-function d7() {
- V5.stickyFrame ||= J.frame(() => {
- V5.stickyFrame = 0, BPe();
+function u7() {
+ B5.stickyFrame ||= J.frame(() => {
+ B5.stickyFrame = 0, UPe();
});
}
-function VPe() {
+function WPe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), J.handler(L("#filterBtn"), "onclick", () => J5(!L("#drawer").classList.contains("open"))), V5.SIDEBAR_ITEMS = A8, V5.MANAGE_SECTIONS = j8, V5.MANAGE_MENU_SECTIONS = M8, V5.manageMenuSections = () => bNe(Tu === !0), V5.OPTIONAL_SIDEBAR_ITEMS = N8, V5.NAV_CATALOG = xNe, V5.DIRECT_MANAGE_NAV = SNe, V5.settingsHost = () => ({
- selectSection: (e) => lH(wV(e), {
+ }), J.handler(L("#filterBtn"), "onclick", () => q5(!L("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = k8, B5.MANAGE_SECTIONS = A8, B5.MANAGE_MENU_SECTIONS = j8, B5.manageMenuSections = () => CNe(Tu === !0), B5.OPTIONAL_SIDEBAR_ITEMS = M8, B5.NAV_CATALOG = wNe, B5.DIRECT_MANAGE_NAV = TNe, B5.settingsHost = () => ({
+ selectSection: (e) => cH(CV(e), {
replace: !0,
- state: cH.navigation.location.state
+ state: sH.navigation.location.state
}),
- closed: APe,
+ closed: NPe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Zo(e),
- navCatalog: V5.NAV_CATALOG,
- themeOptions: Ose,
- videoLayouts: OA,
- followInitialRanges: P8,
- videoLayout: () => r7(),
- setVideoLayout: RPe,
- censored: $7,
- setCensored: uFe,
+ navCatalog: B5.NAV_CATALOG,
+ themeOptions: wse,
+ videoLayouts: PA,
+ followInitialRanges: N8,
+ videoLayout: () => n7(),
+ setVideoLayout: VPe,
+ censored: Q7,
+ setCensored: pFe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: dFe,
- receipt: (e) => C8.actionReceipt(e),
- failure: C8.actionFailure,
- syncRemote: (e) => CA(e, (e) => Z.settingsEffects[e]?.()),
+ setHighContrast: mFe,
+ receipt: (e) => S8.actionReceipt(e),
+ failure: S8.actionFailure,
+ syncRemote: (e) => kA(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => wn("/healthz").then((e) => (Iu({ runtimeConfigurable: !!e.configurable }), Tu)).catch(() => null)
- }), J.handler(L("#settingsBtn"), "onclick", () => void Y5()), V5.lastManagePageLabel = "", V5.manageHeaderSkeleton = "", V5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, V5.scrollT = null, V5.stickyFrame = 0, V5.mobileFilterScroll = null, V5.mobileFilterHost = null, V5.mobileFilterPath = "", J.listen(document, "focusin", d7), J.listen(document, "focusout", d7), J.listen(window, "scroll", () => {
- d7(), location.pathname === "/follow" && T9() && Iu({ followScrollY: scrollY }), window.__scrolling = !0, ql(), clearTimeout(V5.scrollT), V5.scrollT = J.delay(() => {
+ }), J.handler(L("#settingsBtn"), "onclick", () => void J5()), B5.lastManagePageLabel = "", B5.manageHeaderSkeleton = "", B5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, B5.scrollT = null, B5.stickyFrame = 0, B5.mobileFilterScroll = null, B5.mobileFilterHost = null, B5.mobileFilterPath = "", J.listen(document, "focusin", u7), J.listen(document, "focusout", u7), J.listen(window, "scroll", () => {
+ u7(), location.pathname === "/follow" && w9() && Iu({ followScrollY: scrollY }), window.__scrolling = !0, ql(), clearTimeout(B5.scrollT), B5.scrollT = J.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), J.listen(window, "resize", d7, { passive: !0 }), J.handler(L("#scrim"), "onclick", () => J5(!1));
+ }, { passive: !0 }), J.listen(window, "resize", u7, { passive: !0 }), J.handler(L("#scrim"), "onclick", () => q5(!1));
}
// src/catalog-filter-skeleton.ts
-var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
+var d7 = 64, f7 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), m7 = (e) => e.repeat(f7);
-function HPe(e, t, n) {
- let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join(""), i = BW();
- return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(f7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ts()}</span>` + (n ? i5(n.sorts, n.layout) : "") + "</div></div></div></div>";
+})[e]), p7 = (e) => e.repeat(d7);
+function GPe(e, t, n) {
+ let r = e.map((e) => `<a href="${f7(e.href)}" data-catalog-view="${f7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${f7(e.label)}</a>`).join(""), i = VW();
+ return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + p7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + p7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(d7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ts()}</span>` + (n ? r5(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/application/catalog.js
var X = {
@@ -78178,46 +78189,46 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function UPe() {
- X.initialParams.has("loc") || (U.loc = h7(U.loc), Lu());
+function KPe() {
+ X.initialParams.has("loc") || (U.loc = m7(U.loc), Lu());
}
-function h7(e) {
- return dNe(e, Z.sourceOnline);
+function m7(e) {
+ return mNe(e, Z.sourceOnline);
}
-function g7(e = U) {
- return fNe(e);
+function h7(e = U) {
+ return hNe(e);
}
-function WPe() {
- Iu(T8(pNe(U, Z.appSettings, C8.rollSeed))), k8();
+function qPe() {
+ Iu(w8(gNe(U, Z.appSettings, S8.rollSeed))), O8();
}
-function _7(e = null, t = !1) {
- WPe(), e && (Object.assign(U, e), Lu()), Q.route(e ? g7() : "/"), X.clearSearchField(), a9(!1), W5(), _9(), N7(), t && window.scrollTo({
+function g7(e = null, t = !1) {
+ qPe(), e && (Object.assign(U, e), Lu()), Q.route(e ? h7() : "/"), X.clearSearchField(), i9(!1), U5(), g9(), M7(), t && window.scrollTo({
top: 0,
behavior: "smooth"
});
}
-function GPe(e, t = null) {
+function JPe(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? l9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : A5(n);
+ !e.medium || e.medium === "video" ? c9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : k5(n);
}
-function v7(e) {
+function _7(e) {
return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, wn("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function KPe(e, t) {
- i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : y7(e, t);
+function YPe(e, t) {
+ r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : v7(e, t);
}
-function y7(e, t) {
- e.edition_group ? vFe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? yFe(e.part_group.seed_id, e.id, !0, t) : l9(e.id, !0, null, t);
+function v7(e, t) {
+ e.edition_group ? xFe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? SFe(e.part_group.seed_id, e.id, !0, t) : c9(e.id, !0, null, t);
}
-async function qPe(e, t) {
+async function XPe(e, t) {
try {
let n = await wn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), C8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), S8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await wn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -78225,10 +78236,10 @@ async function qPe(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- C8.actionFailure("更新稍后看", e);
+ S8.actionFailure("更新稍后看", e);
}
}
-async function JPe(e, t) {
+async function ZPe(e, t) {
try {
await wn("/api/batch", {
method: "POST",
@@ -78236,9 +78247,9 @@ async function JPe(e, t) {
ids: [e.id],
operation: t
})
- }), await R7();
+ }), await L7();
let n = t === "restore" ? "dispose" : "restore";
- C8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ S8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await wn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -78246,14 +78257,14 @@ async function JPe(e, t) {
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await R7();
+ }), await L7();
} });
} catch (e) {
- throw C8.actionFailure("操作", e), e;
+ throw S8.actionFailure("操作", e), e;
}
}
-async function YPe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = WM(i, t), o = async (t, r) => {
+async function QPe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = UM(i, t), o = async (t, r) => {
let i = (await wn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -78267,14 +78278,14 @@ async function YPe(e, t, n, r) {
};
try {
let e = await o(a, r);
- C8.actionReceipt(e ? `已评 ${UM(e)} 星` : "已取消评分", { undo: () => o(i) });
+ S8.actionReceipt(e ? `已评 ${HM(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || C8.actionFailure("评分", e), e;
+ throw r?.aborted || S8.actionFailure("评分", e), e;
}
}
-async function b7(e) {
+async function y7(e) {
let t = new URLSearchParams();
- if (t7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
+ if (e7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
let e = Y.activeFilterState();
[
"loc",
@@ -78296,9 +78307,9 @@ async function b7(e) {
e[n] && t.set(n, e[n]);
});
}
- return vNe(t.toString(), X.topsQueryParams(e).toString());
+ return xNe(t.toString(), X.topsQueryParams(e).toString());
}
-function XPe() {
+function $Pe() {
if (scrollY <= 0) return;
let e = document.documentElement;
e.classList.add("refiltering");
@@ -78310,32 +78321,32 @@ function XPe() {
behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
});
}
-function x7(e) {
- s5().type !== "entity" && T7({ tags: k7(e) }), g9({ filters: { ...e } }), L7();
+function b7(e) {
+ o5().type !== "entity" && w7({ tags: O7(e) }), h9({ filters: { ...e } }), I7();
}
-async function S7(e) {
- let t = ++X.facetCountsSeq, [n] = await b7(e);
- t === X.facetCountsSeq && (e.type === "home" && (n9.facets = n), g9({ latest: Q7(n, e) }));
+async function x7(e) {
+ let t = ++X.facetCountsSeq, [n] = await y7(e);
+ t === X.facetCountsSeq && (e.type === "home" && (t9.facets = n), h9({ latest: Z7(n, e) }));
}
-function C7(e) {
- XPe();
- let t = s5();
+function S7(e) {
+ $Pe();
+ let t = o5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), l5(t.kind, t.name, n), x7(n), S7(s5());
+ e(n), c5(t.kind, t.name, n), b7(n), x7(o5());
} else if (t.type === "item") {
let t = Y.cloneBarsContext(lu);
- if (a9(!1), Iu({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), l5(t.kind, t.name, t.filters) ? N7() : Iu({ pageOpens: Du + 1 });
+ if (i9(!1), Iu({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), c5(t.kind, t.name, t.filters) ? M7() : Iu({ pageOpens: Du + 1 });
return;
}
e(U), Iu({ barsContext: {
type: "home",
filters: U
- } }), Q.route(g7()), W5(), N7();
- } else e(U), Lu(), Q.route(g7()), x7(U), S7(cu);
+ } }), Q.route(h7()), U5(), M7();
+ } else e(U), Lu(), Q.route(h7()), b7(U), x7(cu);
}
-function ZPe() {
+function eFe() {
return {
tiers: null,
tiersPending: !1,
@@ -78353,94 +78364,94 @@ function ZPe() {
combo: [],
comboHidden: !0,
comboHost: L("#combo"),
- actions: E7(),
+ actions: T7(),
helpers: {
- wireDrag: t9,
+ wireDrag: e9,
wireScroller: (e) => {
e && Dc(e);
}
}
};
}
-function w7() {
- X.catalogFilterProps && T7({});
+function C7() {
+ X.catalogFilterProps && w7({});
}
-function T7(e) {
+function w7(e) {
let t = L("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");
e = {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || ZPe(),
+ ...X.catalogFilterProps || eFe(),
...e
- }, !X.catalogFilterMounting && (JV(t) ? QV(t, e) : (!t.firstChild && !n && (t.innerHTML = HPe(X.catalogViews(), X.catalogFilterProps.state, O7()), uc(t)), X.catalogFilterMounting = ZV("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (qV(t) ? ZV(t, e) : (!t.firstChild && !n && (t.innerHTML = GPe(X.catalogViews(), X.catalogFilterProps.state, D7()), uc(t)), X.catalogFilterMounting = XV("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => QV(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => ZV(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
-function E7() {
+function T7() {
return {
currentHref: () => {
- let e = new URL(g7(), location.origin);
+ let e = new URL(h7(), location.origin);
return e.searchParams.set("loc", U.loc || ""), e.searchParams.set("thumb", U.thumb || "0"), e.searchParams.set("sort", U.sort || ""), e.searchParams.set("dir", U.dir || ""), e.pathname + e.search;
},
- openEntity: (e, t) => y5(e, t),
+ openEntity: (e, t) => v5(e, t),
setView: (e) => {
- U.state = e, Lu(), T7({ state: e }), Q.route(g7()), N7();
+ U.state = e, Lu(), w7({ state: e }), Q.route(h7()), M7();
},
- toggleTag: (e) => F7(e),
- clearFilter: (e) => C7((t) => {
+ toggleTag: (e) => P7(e),
+ clearFilter: (e) => S7((t) => {
t[e] = "";
}),
- clearAll: () => C7((e) => {
+ clearAll: () => S7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = eA(e, U.sort, U.dir);
- t && (U.sort = t.sort, U.dir = t.dir, Lu(), Z7());
+ let t = sA(e, U.sort, U.dir);
+ t && (U.sort = t.sort, U.dir = t.dir, Lu(), X7());
},
- reshuffle: () => lFe(),
+ reshuffle: () => fFe(),
setLayout: (e) => {
- t7() ? i7(e) : LPe(e);
+ e7() ? r7(e) : BPe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await yNe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(A7) : n.map(j7);
+ let n = (await SNe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ return e === "performers" ? n.map(k7) : n.map(A7);
}
};
}
-function D7() {
- return t7() ? {
+function E7() {
+ return e7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: NA(),
- options: OA
- } : n7() ? {
+ value: zA(),
+ options: PA
+ } : t7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: r7(),
- options: OA
+ value: n7(),
+ options: PA
} : null;
}
-function O7() {
+function D7() {
return {
- sorts: c5(U.sort, U.dir),
- layout: D7(),
+ sorts: s5(U.sort, U.dir),
+ layout: E7(),
state: U.state || "",
trash: U.state === "trash"
};
}
-function k7(e) {
+function O7(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function A7(e) {
+function k7(e) {
return {
name: e.k,
ringHtml: `<span data-tier-initial>${z($n(tn("performer", e.k, e.id)))}</span>${ho({
@@ -78454,99 +78465,99 @@ function A7(e) {
})}`
};
}
-function j7(e) {
+function A7(e) {
return {
name: e.k,
fallback: Qn(e.k, 2),
logo: e.has_logo ? fo(e.k, "icon", e.logo_version) : ""
};
}
-function QPe(e, t) {
- X.catalogFilterProps?.tiers || (X.barsRendered = "", X.barsPendingSeq = t, T7({
+function tFe(e, t) {
+ X.catalogFilterProps?.tiers || (X.barsRendered = "", X.barsPendingSeq = t, w7({
tiers: null,
tiersPending: !0,
state: e.state || ""
}));
}
-function M7(e) {
- X.barsPendingSeq === e && (X.barsPendingSeq = 0, T7({ tiersPending: !1 }));
+function j7(e) {
+ X.barsPendingSeq === e && (X.barsPendingSeq = 0, w7({ tiersPending: !1 }));
}
-async function N7() {
+async function M7() {
let e = ++X.barsRequestSeq;
- if (g9(), !au(location.pathname) || cu.type === "item") return;
- let t = s5(), n = Y.activeFilterState(), r = JSON.stringify([
+ if (h9(), !au(location.pathname) || cu.type === "item") return;
+ let t = o5(), n = Y.activeFilterState(), r = JSON.stringify([
t,
n,
U.state || "",
U.seed || "",
- t7()
+ e7()
]);
- QPe(n, e);
+ tFe(n, e);
let i;
try {
- i = await b7(t);
+ i = await y7(t);
} catch (t) {
- throw M7(e), t;
+ throw j7(e), t;
}
let [a, o] = i;
if (e !== X.barsRequestSeq) {
- M7(e);
+ j7(e);
return;
}
let s = r + "\n" + JSON.stringify([a, o]);
if (s === X.barsRendered) {
- V5.sidebarCatalog && g9({
- content: V5.sidebarCatalog,
+ B5.sidebarCatalog && h9({
+ content: B5.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = s, t.type === "home" && (n9.facets = a);
+ X.barsRendered = s, t.type === "home" && (t9.facets = a);
let c = a.tags || [];
Ya(o.performers), Ya(o.studios);
- let l = t.type === "home" && !t7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
+ let l = t.type === "home" && !e7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
performers: 0,
studios: 0
};
- let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = C8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
+ let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = S8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
X.catalogTagRows = f.concat(m, p.filter((e) => !h.has(e.k))).map((e) => ({
k: e.k,
label: Zl(e.k),
n: e.n ?? null
- })), X.barsPendingSeq = 0, T7({
+ })), X.barsPendingSeq = 0, w7({
tiers: {
key: String(X.barsRequestSeq),
- performers: o.performers.map(A7),
- studios: o.studios.map(j7)
+ performers: o.performers.map(k7),
+ studios: o.studios.map(A7)
},
tiersPending: !1,
empty: l,
- tags: k7(n),
+ tags: O7(n),
tagFirst: f.length + m.length,
views: X.catalogViews(),
state: n.state || ""
- }), L7(), V5.sidebarCatalog = {
+ }), I7(), B5.sidebarCatalog = {
kind: "catalog",
- key: String(++V5.sidebarContentSeq),
- facets: Q7(a, t)
- }, g9({
- content: V5.sidebarCatalog,
+ key: String(++B5.sidebarContentSeq),
+ facets: Z7(a, t)
+ }, h9({
+ content: B5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function $Pe(e, t) {
- n9.total = e, U.state === "trash" && (D5.trashCount = {
- total: n9.total,
+function nFe(e, t) {
+ t9.total = e, U.state === "trash" && (E5.trashCount = {
+ total: t9.total,
shown: t
- }), Z5(), T7({ count: {
- total: n9.total,
+ }), X5(), w7({ count: {
+ total: t9.total,
shown: t
} });
}
-function P7() {
+function N7() {
return ol({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
@@ -78556,19 +78567,19 @@ function P7() {
try {
let e = await wn("/api/trash/empty", { method: "POST" });
if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- C8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ S8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await R7();
+ await L7();
}
}
});
}
-function F7(e) {
- C7((t) => {
+function P7(e) {
+ S7((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function I7(e) {
+function F7(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -78592,13 +78603,13 @@ function I7(e) {
label: Zl(e)
})), t;
}
-function L7() {
- T7({
- combo: I7(U),
+function I7() {
+ w7({
+ combo: F7(U),
comboHidden: !X.catalogOnScreen()
});
}
-async function R7() {
+async function L7() {
let e = Q.claimSurface(Q.surfacePath());
if (Iu({
barsContext: {
@@ -78606,110 +78617,110 @@ async function R7() {
filters: U
},
detailReturnBarsContext: null
- }), a9(!1), U.state === "ads") return nFe(e);
- if (X.controller.page === "/junk-files" && B7(), L5(), W5(), Z8(location.pathname) && U.browse !== "folders") {
- if (await I5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- RNe();
- } else Q8();
- return L7(), L("#count").classList.remove("manage-static", "junkcount"), V7(e);
-}
-function z7(e) {
+ }), i9(!1), U.state === "ads") return aFe(e);
+ if (X.controller.page === "/junk-files" && z7(), I5(), U5(), X8(location.pathname) && U.browse !== "folders") {
+ if (await F5.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ VNe();
+ } else Z8();
+ return I7(), L("#count").classList.remove("manage-static", "junkcount"), B7(e);
+}
+function R7(e) {
X.controller.settle(e);
}
-function B7() {
+function z7() {
let e = L("#grid");
- ql(e), $V(e), X.controller.clear(), e.innerHTML = "";
+ ql(e), QV(e), X.controller.clear(), e.innerHTML = "";
}
-function V7(e) {
- return G7("/", tFe, e, { place: FFe });
+function B7(e) {
+ return W7("/", iFe, e, { place: RFe });
}
-function eFe(e) {
- return G7("/junk-files", iFe, e);
+function rFe(e) {
+ return W7("/junk-files", sFe, e);
}
-function H7() {
- return !!qV(L("#grid"));
+function V7() {
+ return !!KV(L("#grid"));
}
-function U7() {
- return X.controller.taken(H7());
+function H7() {
+ return X.controller.taken(V7());
}
-function W7(e) {
- QV(L("#grid"), e);
+function U7(e) {
+ ZV(L("#grid"), e);
}
-function G7(e, t, n, r = {}) {
+function W7(e, t, n, r = {}) {
let i = L("#grid");
- X.controller.page && X.controller.page !== e && B7();
- let a = X.controller.begin(e, H7()), o = t();
- if (!a.mount) return W7(o), a.settled;
+ X.controller.page && X.controller.page !== e && z7();
+ let a = X.controller.begin(e, V7()), o = t();
+ if (!a.mount) return U7(o), a.settled;
ql(i);
- let s = () => $V(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), ZV(e, o, {
+ let s = () => QV(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), XV(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(H7());
+ a.signal.removeEventListener("abort", s), a.finish(V7());
}), a.settled;
}
-function K7() {
- let e = n7();
- return BA({
- active: t7() || e,
+function G7() {
+ let e = t7();
+ return KA({
+ active: e7() || e,
home: e,
portrait: U.orient === "竖屏"
});
}
-function q7(e = "正在读取作品") {
- return VJ(e, J7());
+function K7(e = "正在读取作品") {
+ return VJ(e, q7());
}
-function J7() {
- return U ? VA(K7()) : 16 / 9;
+function q7() {
+ return U ? qA(G7()) : 16 / 9;
}
-function Y7() {
- U7() && (ql(L("#grid")), W7({
- layout: K7(),
+function J7() {
+ H7() && (ql(L("#grid")), U7({
+ layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
- })), Y.entityPageCurrent() && (ql(L("#index [data-entity-hero]")), o5({
- layout: K7(),
+ })), Y.entityPageCurrent() && (ql(L("#index [data-entity-hero]")), a5({
+ layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function tFe() {
+function iFe() {
let e = decodeURIComponent(location.pathname), t = An(e), n = U.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: K7(),
+ layout: G7(),
wall: e === "/wall",
selectMode: fu,
selected: new Set(uu),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: t9,
- settled: z7,
- skeletonHtml: () => q7(),
+ wireDrag: e9,
+ settled: R7,
+ skeletonHtml: () => K7(),
filters: { ...U },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
excludeVertical: t && e !== "/wall" && !U.q && !U.orient && U.browse !== "folders" || U.jav === "1",
mix: t && e !== "/wall" && !n && U.browse !== "folders",
- shorts: t && e !== "/wall" && !t7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
+ shorts: t && e !== "/wall" && !e7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: $Pe,
- onCountFailed: () => T7({ count: !1 }),
+ onCount: nFe,
+ onCountFailed: () => w7({ count: !1 }),
emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : NK({
- jav: t7() && !t,
+ jav: e7() && !t,
configurable: Tu,
filtered: !t
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function nFe(e) {
+function aFe(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && H7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (B7(), L5("正在读取垃圾文件")), W5(), L7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), eFe(e);
+ return X.controller.page === "/junk-files" && V7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (z7(), I5("正在读取垃圾文件")), U5(), I7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), rFe(e);
}
-async function rFe(e, t) {
+async function oFe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await wn("/api/batch", {
@@ -78719,24 +78730,24 @@ async function rFe(e, t) {
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await R7();
+ }), await L7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- C8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ S8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await wn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e
})
- }), await R7();
+ }), await L7();
} });
} catch (e) {
- throw C8.actionFailure("操作", e), e;
+ throw S8.actionFailure("操作", e), e;
}
}
-function iFe() {
+function sFe() {
return {
- ...o$(location.search),
+ ...a$(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -78744,16 +78755,16 @@ function iFe() {
selectMode: fu,
selected: new Set(uu),
countRow: L("#count"),
- settled: z7,
- skeletonHtml: () => s2("正在读取垃圾文件", {
+ settled: R7,
+ skeletonHtml: () => o2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function aFe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => w8(e, t, Z.appSettings, n), Iu(T8(uNe(location, Z.appSettings, C8.rollSeed))), X.searchValueSnapshot = {
+function cFe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => C8(e, t, Z.appSettings, n), Iu(w8(pNe(location, Z.appSettings, S8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -78774,55 +78785,55 @@ function aFe() {
};
};
}
-function oFe() {
+function lFe() {
J.handler(L("#wallBtn"), "onclick", () => {
- k5(!1, !0);
- let e = s5(), t = {
+ O5(!1, !0);
+ let e = o5(), t = {
...Y.activeFilterState(),
- jav: t7() ? "1" : ""
+ jav: e7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(J_e(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(X_e(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => _F(e, t),
- displayName: (e, t) => gF(e, t),
+ titleHtml: (e, t) => KF(e, t),
+ displayName: (e, t) => GF(e, t),
tagLabel: (e) => Zl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await r8(n9.stageHost);
+ let r = await n8(t9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: y7,
- open: (e, t) => KPe(e, t),
- openResource: (e, t) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : GPe(e, t),
- openShort: (e) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : f9(e.id),
- openShorts: () => f9(),
- openMix: (e, t) => _Fe(e, e, !0, t),
- openEntity: (e, t) => y5(e, t),
- openUnowned: () => _7({ owner: "none" }, !0),
+ wallDetails: v7,
+ open: (e, t) => YPe(e, t),
+ openResource: (e, t) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : JPe(e, t),
+ openShort: (e) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : d9(e.id),
+ openShorts: () => d9(),
+ openMix: (e, t) => bFe(e, e, !0, t),
+ openEntity: (e, t) => v5(e, t),
+ openUnowned: () => g7({ owner: "none" }, !0),
toggleTag: (e) => {
- C7((t) => {
+ S7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- toggleSelection: (e, t) => A5(e, t),
- watchLater: (e, t) => qPe(e, t),
- rate: (e, t, n, r) => YPe(e, t, n, r),
- resourceOperation: (e, t) => JPe(e, t),
- mixRelated: (e) => v7(e),
- canFlip: () => !fu && !$7() && !window.__scrolling && !X.reduceMotion()
+ toggleSelection: (e, t) => k5(e, t),
+ watchLater: (e, t) => XPe(e, t),
+ rate: (e, t, n, r) => QPe(e, t, n, r),
+ resourceOperation: (e, t) => ZPe(e, t),
+ mixRelated: (e) => _7(e),
+ canFlip: () => !fu && !Q7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
seed: U.seed || ""
});
- return t && n.set("page", String(t)), t7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
+ return t && n.set("page", String(t)), e7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@ -78845,36 +78856,36 @@ function oFe() {
href: e.k ? Dn[e.k] : "/"
})), X.TAGS_FIRST = 26, J.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), E7().setView(t.dataset.catalogView));
+ t && !e.defaultPrevented && (e.preventDefault(), T7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && T7({ comboHidden: !0 });
+ X.catalogFilterProps && w7({ comboHidden: !0 });
};
}
-function sFe() {
+function uFe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- fu && k5(!1, !0), Q.route(e);
+ fu && O5(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => A5(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : l9(e.id, !0, null, t),
+ toggleSelection: (e, t) => k5(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : c9(e.id, !0, null, t),
reveal: async (e) => {
try {
return await wn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), C8.toast({ text: "已在资源管理器中显示" }), "";
+ }), S8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => rFe(e, t)
+ operate: (e, t) => oFe(e, t)
};
}
-X.controller = new mNe();
+X.controller = new _Ne();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -78897,7 +78908,7 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function X7() {
+async function Y7() {
let e = J;
try {
let t = await xr(e.signal);
@@ -78908,18 +78919,18 @@ async function X7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), UPe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), KPe(), Z.sourceOnline;
}
-function Z7() {
+function X7() {
let e = Q.surfacePath();
- if (!An(e) || e === "/junk-files") return R7();
+ if (!An(e) || e === "/junk-files") return L7();
let t = Z.nextCatalogLoad();
- return lH(g7(), {
+ return cH(h7(), {
replace: !0,
- state: cH.navigation.location.state
+ state: sH.navigation.location.state
}), t;
}
-function cFe(e) {
+function dFe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -78940,7 +78951,7 @@ function cFe(e) {
cost: "free"
};
}
-function Q7(e, t) {
+function Z7(e, t) {
let n = (e, t = (e) => e.label || Zl(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
@@ -78951,7 +78962,7 @@ function Q7(e, t) {
value: e.k,
label: tr[e.k] || e.k,
n: e.n ?? null,
- dot: cFe(e.k),
+ dot: dFe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -78964,24 +78975,24 @@ function Q7(e, t) {
duration: !!e.stats?.duration
};
}
-async function lFe(e = !1) {
- if (e && (document.hidden || !An(decodeURIComponent(location.pathname)) || n9.stageOpen() || n9.immerseOpen() || fu || uu.size || document.activeElement === L("#q"))) return !1;
+async function fFe(e = !1) {
+ if (e && (document.hidden || !An(decodeURIComponent(location.pathname)) || t9.stageOpen() || t9.immerseOpen() || fu || uu.size || document.activeElement === L("#q"))) return !1;
if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
if (t === "skip") return;
if (e === "/playlists") {
- S5();
+ x5();
return;
}
let n = t === "reopen" ? e : "/stats";
- n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, cH.navigation.location.state) : Q.navigatePath(n);
+ n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, sH.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
- U.sort = "seed", U.dir = "", U.seed = C8.rollSeed(), Lu(), k8(), T7({ refreshing: !0 });
+ U.sort = "seed", U.dir = "", U.seed = S8.rollSeed(), Lu(), O8(), w7({ refreshing: !0 });
try {
- let e = Z7();
- await null, await Promise.all([e, N7()]);
+ let e = X7();
+ await null, await Promise.all([e, M7()]);
} finally {
- T7({ refreshing: !1 });
+ w7({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -78989,71 +79000,71 @@ async function lFe(e = !1) {
}), !0;
}
}
-function $7() {
+function Q7() {
return document.body.classList.contains("censor");
}
-function e9(e) {
+function $7(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function uFe(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), e9(e), e && ql();
+function pFe(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), $7(e), e && ql();
}
-function dFe(e) {
+function mFe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function t9(e) {
+function e9(e) {
return Dc(e, { drag: !0 });
}
-function fFe() {
- ["#nrow", "#count"].forEach((e) => t9(L(e))), document.querySelectorAll(".tier,.srow").forEach(t9);
+function hFe() {
+ ["#nrow", "#count"].forEach((e) => e9(L(e))), document.querySelectorAll(".tier,.srow").forEach(e9);
}
-function pFe() {
+function gFe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function mFe() {
+function _Fe() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = SA(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), EA(), jse(), $A(), nj(), rj(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = OA(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), MA(), Dse(), rj(), oj(), sj(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
- Xt(Z.appSettings.performerNameLanguage), I5.syncPageTitle(location.href), X.barsRendered = "", N7();
+ Xt(Z.appSettings.performerNameLanguage), F5.syncPageTitle(location.href), X.barsRendered = "", M7();
},
- theme: () => EA(),
+ theme: () => MA(),
uiSounds: () => {
Xo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Zo("toggle-on");
},
- glowFrame: () => tj(),
+ glowFrame: () => aj(),
glow: () => {
- tj(), nj();
+ aj(), oj();
},
batchSize: () => {
- location.pathname === "/" && R7();
+ location.pathname === "/" && L7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = tA(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Lu(), location.pathname === "/" && Z7();
+ U.sort = Z.appSettings.defaultSort, U.dir = cA(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Lu(), location.pathname === "/" && X7();
},
sortDirection: () => {
- U.dir = tA(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Lu(), location.pathname === "/" && Z7();
+ U.dir = cA(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Lu(), location.pathname === "/" && X7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
Yl(e, "previewing", !1), Yl(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => Y7(),
- groupCollapse: () => s7(),
- feedAutoScroll: () => zNe(),
- feedLimit: () => $8(),
- feedCompilations: () => $8(),
+ seekSeconds: () => J7(),
+ groupCollapse: () => o7(),
+ feedAutoScroll: () => HNe(),
+ feedLimit: () => Q8(),
+ feedCompilations: () => Q8(),
miniplayer: () => {
- Z.appSettings.miniplayer || i8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || r8()?.closeMiniplayer();
},
javImage: () => {
- io(document, Z.appSettings.javImage), Y7(), document.querySelectorAll("img[data-jav-image].cover").forEach(El), gFe();
+ io(document, Z.appSettings.javImage), J7(), document.querySelectorAll("img[data-jav-image].cover").forEach(El), yFe();
},
- searchHistoryLimit: () => QV(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => ZV(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
...Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
online: R("rss")
@@ -79062,11 +79073,11 @@ function mFe() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Us;
}
-function hFe() {
- Z.CENSOR_KEY = "peach-censor", e9(localStorage.getItem(Z.CENSOR_KEY) === "1");
+function vFe() {
+ Z.CENSOR_KEY = "peach-censor", $7(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
-var n9 = {
+var t9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -79077,18 +79088,18 @@ var n9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function r9() {
+function n9() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function i9() {
- return i8()?.exit() || Promise.resolve();
+function r9() {
+ return r8()?.exit() || Promise.resolve();
}
-function a9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && v9(), i8()?.dispose({ miniplayer: n }), Iu({
+function i9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && _9(), r8()?.dispose({ miniplayer: n }), Iu({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -79096,15 +79107,15 @@ function a9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), d7(), e && Q.route(gu || "/");
+ }), u7(), e && Q.route(gu || "/");
}
-function gFe() {
- i8()?.repaintPoster();
+function yFe() {
+ r8()?.repaintPoster();
}
-function o9(e, t, n, r, i = null, a = {}) {
+function a9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = bu?.kind === e && (e === "playlist" ? bu.playlistId : bu.seedId) === t;
- r && !o && Iu({ detailReturnPath: location.pathname + location.search }), r && NV();
+ r && !o && Iu({ detailReturnPath: location.pathname + location.search }), r && MV();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -79115,38 +79126,38 @@ function o9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- v9();
+ _9();
let e = Q.queueOpenRequest = {
- seq: cH.navigation.seq,
+ seq: sH.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => l9(n == null ? null : +n, !1, s, i, !0, e), Iu({ queueOpens: Ou + 1 });
- } else return l9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => c9(n == null ? null : +n, !1, s, i, !0, e), Iu({ queueOpens: Ou + 1 });
+ } else return c9(n == null ? null : +n, !1, s, i, r);
}
-function _Fe(e, t = e, n = !0, r = null) {
- return o9("mix", e, t, n, r);
+function bFe(e, t = e, n = !0, r = null) {
+ return a9("mix", e, t, n, r);
}
-function vFe(e, t = e, n = !0, r = null) {
- return o9("editions", e, t, n, r);
+function xFe(e, t = e, n = !0, r = null) {
+ return a9("editions", e, t, n, r);
}
-function yFe(e, t = e, n = !0, r = null) {
- return o9("parts", e, t, n, r);
+function SFe(e, t = e, n = !0, r = null) {
+ return a9("parts", e, t, n, r);
}
-function s9(e, t = null, n = !0) {
- return o9("playlist", e, t, n);
+function o9(e, t = null, n = !0) {
+ return a9("playlist", e, t, n);
}
-function c9() {
+function s9() {
return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !L("#index").hidden || !L("#stats").hidden;
}
-async function l9(e, t = !0, n = null, r = null, i = !1, a = null) {
+async function c9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || v9(), t && !n) {
- Iu({ detailReturnPath: location.pathname + location.search }), y9("/assets/" + +e, "item", () => l9(e, !1, null, r));
+ if (a || _9(), t && !n) {
+ Iu({ detailReturnPath: location.pathname + location.search }), v9("/assets/" + +e, "item", () => c9(e, !1, null, r));
return;
}
ql(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : _u?.isConnected ? _u : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : vu, c = c9(), l = yu || !t && !c, u = cu.type === "item" ? lu : Y.cloneBarsContext(s5());
- t ? Iu({ detailReturnPath: location.pathname + location.search }) : i || Iu({ detailReturnPath: FV() || gu }), t && NV(), i8()?.showing() !== "item" && a9(!1, !0, {
+ let o = r?.isConnected ? r : _u?.isConnected ? _u : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : vu, c = s9(), l = yu || !t && !c, u = cu.type === "item" ? lu : Y.cloneBarsContext(o5());
+ t ? Iu({ detailReturnPath: location.pathname + location.search }) : i || Iu({ detailReturnPath: PV() || gu }), t && MV(), r8()?.showing() !== "item" && i9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), Iu({
@@ -79157,119 +79168,119 @@ async function l9(e, t = !0, n = null, r = null, i = !1, a = null) {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), Iu({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, IV("item"));
- let d = await r8(n9.stageHost);
+ } }), Iu({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, FV("item"));
+ let d = await n8(t9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...n9.itemDetailActions,
+ ...t9.itemDetailActions,
present: (e, t) => {
- a.cancelled || n9.itemDetailActions.present(e, t);
+ a.cancelled || t9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || n9.itemDetailActions.redirect(e);
+ a.cancelled || t9.itemDetailActions.redirect(e);
}
- } : n9.itemDetailActions;
+ } : t9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: n9.itemDetailHelpers,
+ helpers: t9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: K7(),
+ layout: G7(),
selectMode: fu,
selected: new Set(uu),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : r9()
- }), d7();
+ resume: t || e == null ? null : n9()
+ }), u7();
}
-async function u9() {
+async function l9() {
let e = Y.cloneBarsContext(lu), t = gu || "/", n = yu;
- await i9(), a9(!1, !1, { miniplayer: !1 }), Iu({ detailReturnBarsContext: null }), PV(), Iu({ barsContext: e || {
+ await r9(), i9(!1, !1, { miniplayer: !1 }), Iu({ detailReturnBarsContext: null }), NV(), Iu({ barsContext: e || {
type: "home",
filters: U
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? Iu({ pageOpens: Du + 1 }) : (N7(), location.pathname === "/playlists" && Iu({ pageOpens: Du + 1 })));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? Iu({ pageOpens: Du + 1 }) : (M7(), location.pathname === "/playlists" && Iu({ pageOpens: Du + 1 })));
}
-async function d9(e, t = !0) {
+async function u9(e, t = !0) {
if (t) {
- Iu({ detailReturnPath: location.pathname + location.search }), y9("/works/" + encodeURIComponent(e), "jav", () => d9(e, !1));
+ Iu({ detailReturnPath: location.pathname + location.search }), v9("/works/" + encodeURIComponent(e), "jav", () => u9(e, !1));
return;
}
- let n = cH.navigation.seq, r = Y.cloneBarsContext(s5()), i = !c9(), a = FV() || (i ? "/jav?tab=discover" : gu) || "/jav?tab=discover";
- i8()?.showing() !== "jav" && a9(!1, !0, { miniplayer: !1 }), Iu({
+ let n = sH.navigation.seq, r = Y.cloneBarsContext(o5()), i = !s9(), a = PV() || (i ? "/jav?tab=discover" : gu) || "/jav?tab=discover";
+ r8()?.showing() !== "jav" && i9(!1, !0, { miniplayer: !1 }), Iu({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), ql();
- let [o, s] = await Promise.all([r8(n9.stageHost), B("/healthz")]);
- cH.navigation.seq === n && (await o.open({
+ let [o, s] = await Promise.all([n8(t9.stageHost), B("/healthz")]);
+ sH.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void u9(),
+ close: () => void l9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
- cH.navigation.seq === n && t && t !== e && lH("/works/" + encodeURIComponent(t) + location.search + location.hash, {
+ sH.navigation.seq === n && t && t !== e && cH("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
- state: cH.navigation.location.state
+ state: sH.navigation.location.state
});
},
openTag: (e) => {
- C7((t) => {
+ S7((t) => {
t.tag = e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- receipt: (e) => C8.toast({ text: e })
+ receipt: (e) => S8.toast({ text: e })
}
- }), d7());
+ }), u7());
}
-async function f9(e = null, t = !0) {
- t ? (n9.requestedImmerseId = e, Q.route("/immerse")) : (i8()?.closeMiniplayer(), await (await tNe(n9.immerseHost)).open(e));
+async function d9(e = null, t = !0) {
+ t ? (t9.requestedImmerseId = e, Q.route("/immerse")) : (r8()?.closeMiniplayer(), await (await iNe(t9.immerseHost)).open(e));
}
-function bFe() {
- n9.total = 0, n9.facets = null, n9.stageHost = {
+function CFe() {
+ t9.total = 0, t9.facets = null, t9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => C8.toast({ text: e }, t),
- loadSourceStatus: () => X7(),
+ toast: (e, t) => S8.toast({ text: e }, t),
+ loadSourceStatus: () => Y7(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? O9(t, !0, n) : l9(t, !0);
+ e === "follow" ? D9(t, !0, n) : c9(t, !0);
},
- openItem: (e) => void l9(e)
- }, n9.stageOpen = () => !!i8()?.isOpen();
+ openItem: (e) => void c9(e)
+ }, t9.stageOpen = () => !!r8()?.isOpen();
}
-function xFe() {
- n9.itemDetailHelpers = {
+function wFe() {
+ t9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => _F(e),
- displayName: (e) => gF(e),
+ titleHtml: (e) => KF(e),
+ displayName: (e) => GF(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Zl(e),
isDurationTag: (e) => ir.has(e),
- tagCandidates: () => n9.facets && n9.facets.tags || [],
+ tagCandidates: () => t9.facets && t9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => s2("正在读取推荐", {
+ relatedSkeletonHtml: () => o2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => v7(e),
- wireDrag: (e) => t9(e),
+ mixRelated: (e) => _7(e),
+ wireDrag: (e) => e9(e),
wireDragReorder: (e, t) => nl(e, t)
- }, n9.itemDetailActions = {
- close: () => u9(),
+ }, t9.itemDetailActions = {
+ close: () => l9(),
present: (e) => {
Iu({ presentedItem: e });
let t = lu;
@@ -79277,65 +79288,65 @@ function xFe() {
type: "item",
id: e.id,
filters: t?.type === "entity" ? { ...t.filters } : Y.emptyEntityFilters()
- } }), xu && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${xu}`, !1, IV("item")), Iu({ pendingQueueRoute: null })), N7();
+ } }), xu && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${xu}`, !1, FV("item")), Iu({ pendingQueueRoute: null })), M7();
},
redirect: (e) => {
let t = !!xu;
e.kind === "follow" ? (Q.queueOpenRequest = null, Iu({
pendingQueueRoute: null,
followDetailReturnPath: gu || "/"
- }), Q.route(`/posts/${e.id}`, !t, IV("follow")), O9(e.id, !1, null, !0)) : e.kind === "item" ? l9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? x9("/playlists") : S5() : a9(!1);
+ }), Q.route(`/posts/${e.id}`, !t, FV("follow")), D9(e.id, !1, null, !0)) : e.kind === "item" ? c9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? b9("/playlists") : x5() : i9(!1);
},
- openQueueItem: (e, t, n = !0) => void o9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void a9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
let e = Su;
if (!e) return;
let t = bu;
- t ? o9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : l9(e.id, !1);
+ t ? a9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : c9(e.id, !1);
},
- checkSource: async (e) => (await X7())[e] !== !1,
+ checkSource: async (e) => (await Y7())[e] !== !1,
openSavedFollow: () => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", x9(S9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", b9(x9());
},
- openEntity: (e, t) => y5(e, t),
- openUnowned: () => _7({ owner: "none" }, !0),
- openRegion: (e) => _7({ region: e || "none" }, !0),
+ openEntity: (e, t) => v5(e, t),
+ openUnowned: () => g7({ owner: "none" }, !0),
+ openRegion: (e) => g7({ region: e || "none" }, !0),
openTag: (e) => {
- C7((t) => {
+ S7((t) => {
t.tag = e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- addToPlaylist: (e) => $Ne(e),
- saveMix: (e) => QNe(e),
- editPlaylist: () => x9("/playlists"),
- openPlaylists: () => x9("/playlists"),
- reveal: (e) => m5(e),
- sync: (e) => WNe(e),
+ addToPlaylist: (e) => nPe(e),
+ saveMix: (e) => tPe(e),
+ editPlaylist: () => b9("/playlists"),
+ openPlaylists: () => b9("/playlists"),
+ reveal: (e) => p5(e),
+ sync: (e) => qNe(e),
trashChanged: async (e, t) => {
- U.state === "ads" && (t || e === "trash") && (t || (PV(), a9(!0, !1, { miniplayer: !1 })), await R7());
+ U.state === "ads" && (t || e === "trash") && (t || (NV(), i9(!0, !1, { miniplayer: !1 })), await L7());
},
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: (e, t) => C8.actionFailure(e, t)
- }, n9.immerseHost = {
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => S8.actionFailure(e, t)
+ }, t9.immerseHost = {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => gF(e),
+ displayName: (e) => GF(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => _7(),
- openItem: (e) => void l9(e),
- openEntity: (e, t) => y5(e, t),
- openUnowned: () => _7({ owner: "none" }, !0),
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- warn: (e) => C8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => C8.actionFailure(e, t)
- }, n9.immerseOpen = () => !!s8()?.isOpen(), J.handler(L("#immerseBtn"), "onclick", () => f9());
+ closed: () => g7(),
+ openItem: (e) => void c9(e),
+ openEntity: (e, t) => v5(e, t),
+ openUnowned: () => g7({ owner: "none" }, !0),
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ warn: (e) => S8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => S8.actionFailure(e, t)
+ }, t9.immerseOpen = () => !!o8()?.isOpen(), J.handler(L("#immerseBtn"), "onclick", () => d9());
}
// src/application/tutorial.js
-var p9 = {
+var f9 = {
postSetupTutorialDone: void 0,
postSetupTutorialNeedsReopen: void 0,
postSetupTutorialTasks: void 0,
@@ -79344,29 +79355,29 @@ var p9 = {
readPostSetupTutorialDone: void 0,
openTutorialTarget: void 0
};
-async function SFe() {
- Sl(), await p9.writePostSetupTutorialDone(!1), await m9();
+async function TFe() {
+ Sl(), await f9.writePostSetupTutorialDone(!1), await p9();
}
-async function m9() {
+async function p9() {
let e = L("#postSetupTutorial");
if (!e) return;
let t = () => {
e.hidden = !0, e.innerHTML = "", delete e.dataset.tutorialSignature, e.removeAttribute("aria-busy");
};
- if (p9.postSetupTutorialNeedsReopen && (p9.postSetupTutorialNeedsReopen = !1, await p9.writePostSetupTutorialDone(!1).catch(() => {})), fl() !== "pending" || await p9.readPostSetupTutorialDone()) {
+ if (f9.postSetupTutorialNeedsReopen && (f9.postSetupTutorialNeedsReopen = !1, await f9.writePostSetupTutorialDone(!1).catch(() => {})), fl() !== "pending" || await f9.readPostSetupTutorialDone()) {
t();
return;
}
let n = bl();
e.hidden = !1, e.setAttribute("aria-busy", "true"), e.firstElementChild || (e.innerHTML = `<article class="post-setup-notification post-setup-loading">${R("compass")}<p>正在检查安装进度…</p></article>`);
try {
- let r = await p9.postSetupTutorialTasks();
+ let r = await f9.postSetupTutorialTasks();
if (!xl(n)) return;
let i = new Set(r.map((e) => e.key)), a = new Set([...gl()].filter((e) => i.has(e)));
_l(a);
let o = r.filter((e) => !a.has(e.key)), s = o.filter((e) => !e.done);
if (!s.length) {
- pl("complete"), t(), await p9.writePostSetupTutorialDone(!0).catch(() => {});
+ pl("complete"), t(), await f9.writePostSetupTutorialDone(!0).catch(() => {});
return;
}
let c = vl(o);
@@ -79374,47 +79385,47 @@ async function m9() {
e.removeAttribute("aria-busy");
return;
}
- e.innerHTML = p9.postSetupTutorialHtml(o, a.size, r.length), e.dataset.tutorialSignature = c, e.removeAttribute("aria-busy");
+ e.innerHTML = f9.postSetupTutorialHtml(o, a.size, r.length), e.dataset.tutorialSignature = c, e.removeAttribute("aria-busy");
let l = s[0], u = e.querySelector("[data-tutorial-collapse]"), d = e.querySelector(".post-setup-collapse-body");
d.inert = ml(), d.classList.toggle("ui-fcollapse-settled", !d.inert), J.handler(u, "onclick", () => {
let t = e.querySelector(".post-setup-notification"), n = t.dataset.collapsed !== "true";
t.dataset.collapsed = String(n), hl(n), u.setAttribute("aria-expanded", String(!n)), u.setAttribute("aria-label", n ? "展开安装教程" : "折叠安装教程"), Bo(d, !n);
}), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => J.handler(e, "onclick", () => {
let t = gl(), n = e.dataset.tutorialSkip;
- t.add(n), _l(t), C8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
+ t.add(n), _l(t), S8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
let e = gl();
- e.delete(n), _l(e), pl("pending"), await m9();
- } }), m9();
+ e.delete(n), _l(e), pl("pending"), await p9();
+ } }), p9();
}));
let f = new Map(o.map((e) => [e.key, e]));
e.querySelectorAll("[data-tutorial-task]").forEach((e) => J.handler(e, "onclick", (t) => {
let n = f.get(e.dataset.tutorialTask);
- !n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), p9.openTutorialTarget(n));
- })), J.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => p9.openTutorialTarget(l));
+ !n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), f9.openTutorialTarget(n));
+ })), J.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => f9.openTutorialTarget(l));
} catch {
if (!xl(n)) return;
e.innerHTML = Cl(R("alert")), e.removeAttribute("aria-busy"), J.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
- delete e.dataset.tutorialSignature, e.innerHTML = "", m9();
+ delete e.dataset.tutorialSignature, e.innerHTML = "", p9();
}), J.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
}
}
-function CFe() {
- if (Iu({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), p9.postSetupTutorialDone = null, p9.postSetupTutorialNeedsReopen = !1, Eu) {
- pl("pending"), p9.postSetupTutorialDone = !1, p9.postSetupTutorialNeedsReopen = !0;
+function EFe() {
+ if (Iu({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), f9.postSetupTutorialDone = null, f9.postSetupTutorialNeedsReopen = !1, Eu) {
+ pl("pending"), f9.postSetupTutorialDone = !1, f9.postSetupTutorialNeedsReopen = !0;
let e = new URL(location.href);
- e.searchParams.delete("onboarding"), lH(e, {
+ e.searchParams.delete("onboarding"), cH(e, {
replace: !0,
- state: cH.navigation.location.state
+ state: sH.navigation.location.state
});
}
{
let e = new URL(location.href), t = e.searchParams.get("agentation");
- localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), lH(e, {
+ localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), cH(e, {
replace: !0,
- state: cH.navigation.location.state
+ state: sH.navigation.location.state
})), t === "on" && import("/dev/agentation.js").catch(() => {});
}
- p9.postSetupTutorialTasks = async () => {
+ f9.postSetupTutorialTasks = async () => {
let { library: e, scraping: t, taste: n, follow: r, credentials: i, review: a } = await wn("/api/post-setup-tutorial"), o = (t.sources || []).filter((e) => e.accepts_cookie).filter((e) => e.cookie_saved), s = (r.sources || []).filter((e) => e.enabled !== !1), c = new Map((i.providers || []).map((e) => [e.provider, e])), l = [...new Set(s.map((e) => e.provider))].map((e) => c.get(e)).filter((e) => e?.requirement === "required"), u = Number(e.total || 0) > 0, d = s.length > 0, f = d && l.every((e) => e.present && !e.missing?.length), p = Object.values(a.counts || {}).reduce((e, t) => e + (Number(t) || 0), 0);
return [
{
@@ -79467,7 +79478,7 @@ function CFe() {
icon: "square-check-big"
}
];
- }, p9.postSetupTutorialHtml = (e, t, n) => {
+ }, f9.postSetupTutorialHtml = (e, t, n) => {
let r = [...e].sort((e, t) => Number(e.done) - Number(t.done)), i = e.find((e) => !e.done), a = e.filter((e) => e.done).length + t, o = ml(), s = r.map((e) => `<li class="post-setup-task" data-state="${e.done ? "checked" : "unchecked"}">
<a href="${e.href}" data-tutorial-task="${e.key}">
<span class="post-setup-check" aria-hidden="true">${e.done ? R("check") : R(e.icon)}</span>
@@ -79488,19 +79499,19 @@ function CFe() {
<footer><button class="geist-button" type="button" data-tutorial-action="next">继续:${i.label}</button></footer>
</div>
</article>`;
- }, p9.writePostSetupTutorialDone = async (e) => {
- p9.postSetupTutorialDone = e, await wn("/api/settings", {
+ }, f9.writePostSetupTutorialDone = async (e) => {
+ f9.postSetupTutorialDone = e, await wn("/api/settings", {
method: "POST",
body: JSON.stringify({ postSetupTutorialDone: e })
});
- }, p9.readPostSetupTutorialDone = async () => {
- if (p9.postSetupTutorialDone === null) try {
- p9.postSetupTutorialDone = (await wn("/api/settings")).postSetupTutorialDone === !0;
+ }, f9.readPostSetupTutorialDone = async () => {
+ if (f9.postSetupTutorialDone === null) try {
+ f9.postSetupTutorialDone = (await wn("/api/settings")).postSetupTutorialDone === !0;
} catch {
- p9.postSetupTutorialDone = !1;
+ f9.postSetupTutorialDone = !1;
}
- return p9.postSetupTutorialDone;
- }, p9.openTutorialTarget = (e) => {
+ return f9.postSetupTutorialDone;
+ }, f9.openTutorialTarget = (e) => {
e.setupEntry && Iu({ cameFromSetup: !0 }), Q.navigatePath(e.href);
};
}
@@ -79524,48 +79535,48 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function h9() {
- let e = p8();
- e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(c7(e.dataset.nav))));
+function m9() {
+ let e = f8();
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(s7(e.dataset.nav))));
}
-function g9(e = {}) {
+function h9(e = {}) {
let t = Q.surfacePath();
- t !== V5.sidebarSurface && (V5.sidebarSurface = t, V5.sidebarProps = {
- ...V5.sidebarProps,
+ t !== B5.sidebarSurface && (B5.sidebarSurface = t, B5.sidebarProps = {
+ ...B5.sidebarProps,
content: null,
latest: null
- }), V5.sidebarProps = {
- ...V5.sidebarProps,
+ }), B5.sidebarProps = {
+ ...B5.sidebarProps,
...e
- }, p8()?.render(V5.sidebarProps);
+ }, f8()?.render(B5.sidebarProps);
}
-function _9() {
- g9(), h9(), u7();
+function g9() {
+ h9(), m9(), l7();
}
-function v9() {
+function _9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, Iu({ pendingQueueRoute: null });
}
-function y9(e, t, n) {
- v9(), NV(), Q.requestedOverlay = {
+function v9(e, t, n) {
+ _9(), MV(), Q.requestedOverlay = {
path: e,
open: n
- }, Q.route(e, !1, IV(t));
+ }, Q.route(e, !1, FV(t));
}
-function b9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, I5.syncPageTitle(location.href), g9(), PV(), m9();
+function y9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, F5.syncPageTitle(location.href), h9(), NV(), p9();
}
-function x9(e) {
+function b9(e) {
Q.route(e), Iu({ pageOpens: Du + 1 });
}
-function wFe() {
+function DFe() {
Q.routeMeta = (e) => {
- let t = zV(e);
+ let t = RV(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys(RV).find((n) => RV[n][e] === t), Q.catalogPage = (e) => An(e) || e === "/trash", Q.managedPagePath = (e) => {
- let t = zV(e);
- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !kV(e) && e !== "/immerse";
+ }, Q.routePathOf = (e, t) => Object.keys(LV).find((n) => LV[n][e] === t), Q.catalogPage = (e) => An(e) || e === "/trash", Q.managedPagePath = (e) => {
+ let t = RV(e);
+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !OV(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? f9(pFe()) : e === "/follow" ? D9() : e === "/playlists" || Q.catalogPage(e) ? x9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? _Pe() : e) : (k5(!1, !0), x9(N5({
+ e === "/immerse" ? d9(gFe()) : e === "/follow" ? E9() : e === "/playlists" || Q.catalogPage(e) ? b9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? bPe() : e) : (O5(!1, !0), b9(M5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -79574,34 +79585,34 @@ function wFe() {
})));
};
}
-function TFe() {
+function OFe() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
signal: Q.surfaceRequests?.signal
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (Z8(e) || Q8(), $V(L("#stats"), L("#index")), !An(e) && e !== "/trash" && B7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, lH(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (X8(e) || Z8(), QV(L("#stats"), L("#index")), !An(e) && e !== "/trash" && z7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, cH(e, {
replace: t,
state: n
- }), I5.syncPageTitle(e), queueMicrotask(() => {
- u7(), $5(), g9(), m9();
+ }), F5.syncPageTitle(e), queueMicrotask(() => {
+ l7(), Q5(), h9(), p9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? cH.replace(e, n) : cH.push(e, n), queueMicrotask(() => {
- u7(), $5();
+ t ? sH.replace(e, n) : sH.push(e, n), queueMicrotask(() => {
+ l7(), Q5();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function EFe(e, t, n) {
+function kFe(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
return `<div class="ui-board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function DFe(e, t = 0, n = 0) {
- return n > 0 ? EFe(e, t, n) : Vs(e);
+function AFe(e, t = 0, n = 0) {
+ return n > 0 ? kFe(e, t, n) : Vs(e);
}
-async function OFe(e) {
+async function jFe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -79616,14 +79627,14 @@ async function OFe(e) {
await t(2e3);
}
}
-function kFe(e) {
+function MFe(e) {
let t = e.note || ((e) => Rs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Vs, r = e.progress || ((e, t, n) => DFe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || Vs, r = e.progress || ((e, t, n) => AFe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
- OFe({
+ jFe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -79672,25 +79683,25 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function AFe(e) {
+function NFe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- C8.toast({ text: Vi(e) }, {
+ S8.toast({ text: Vi(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
action: {
label: "查看",
- run: () => D9(!0)
+ run: () => E9(!0)
}
});
}
-function S9() {
- return Oa(C9());
+function x9() {
+ return Oa(S9());
}
-function jFe() {
+function PFe() {
return $.controller.read();
}
-function C9() {
+function S9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -79705,33 +79716,33 @@ function C9() {
seed: $.followSeed
};
}
-function w9(e) {
+function C9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
-function MFe() {
- let e = qV(L("#stats"));
+function FFe() {
+ let e = KV(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function T9() {
- return !!MFe();
+function w9() {
+ return !!FFe();
}
-function E9(e) {
- T9() && QV(L("#stats"), e);
+function T9(e) {
+ w9() && ZV(L("#stats"), e);
}
-function NFe(e, t = {}) {
+function IFe(e, t = {}) {
return $.controller.route(e, t);
}
-function D9(e = !1) {
+function E9(e = !1) {
$.controller.enter(e);
}
-async function O9(e, t = !0, n = null, r = !1) {
+async function D9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && Iu({ followDetailReturnPath: location.pathname + location.search }), y9(`/posts/${+e}`, "follow", () => O9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && Iu({ followDetailReturnPath: location.pathname + location.search }), v9(`/posts/${+e}`, "follow", () => D9(e, !1, n, r));
return;
}
ql(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && Iu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Iu({ followDetailReturnPath: FV() || "/follow" }), t && NV(), i8()?.showing() !== "follow" && a9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, IV("follow")), await (await r8(n9.stageHost)).open({
+ t && i && !r && Iu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Iu({ followDetailReturnPath: PV() || "/follow" }), t && MV(), r8()?.showing() !== "follow" && i9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, FV("follow")), await (await n8(t9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -79739,66 +79750,66 @@ async function O9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : r9()
- }), d7();
+ resume: t ? null : n9()
+ }), u7();
}
-async function PFe() {
- await i9(), a9(!1, !1, { miniplayer: !1 }), PV(), Q.route(Cu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && T9() ? (jFe(), E9({ view: C9() })) : Iu({ pageOpens: Du + 1 }));
+async function LFe() {
+ await r9(), i9(!1, !1, { miniplayer: !1 }), NV(), Q.route(Cu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && w9() ? (PFe(), T9({ view: S9() })) : Iu({ pageOpens: Du + 1 }));
}
-function FFe(e) {
+function RFe(e) {
let t = document.createElement("div");
return t.className = "peach-react", tc(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function IFe() {
+function zFe() {
$.followFeedHelpers = $l({
wireDrag: (e) => {
- e && t9(e);
+ e && e9(e);
},
wireScroller: (e) => {
e && Dc(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: kFe
+ jobProgress: MFe
}), $.followFeedActions = {
- loaded: (e) => G5(e),
- openDetail: (e) => O9(e),
+ loaded: (e) => W5(e),
+ openDetail: (e) => D9(e),
openAuthor: (e) => Q.navigatePath(Nn("creator", e)),
- toggleSelection: (e, t) => aPe(e, t),
+ toggleSelection: (e, t) => cPe(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), d5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), u5();
},
setPhotoLayout: (e) => {
- UA(e), d5();
+ YA(e), u5();
},
- canFlip: () => !fu && !$7() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: (e, t) => C8.actionFailure(e, t),
- checkReport: (e) => AFe(e)
+ canFlip: () => !fu && !Q7() && !window.__scrolling && !X.reduceMotion(),
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => S8.actionFailure(e, t),
+ checkReport: (e) => NFe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- i8()?.showing() !== "follow" && (ql(), a9(!1), U5(), !T9() && (Q.claimSurface(Q.surfacePath()), H5({ manage: !1 }), L("#stats").querySelector(".peach-react") && $V(L("#stats")), L("#stats").replaceChildren()));
+ r8()?.showing() !== "follow" && (ql(), i9(!1), H5(), !w9() && (Q.claimSurface(Q.surfacePath()), V5({ manage: !1 }), L("#stats").querySelector(".peach-react") && QV(L("#stats")), L("#stats").replaceChildren()));
}
}, $.followDetailActions = su({
- view: C9,
- adoptView: w9,
+ view: S9,
+ adoptView: C9,
rememberReturn: (e) => Iu({ followDetailReturnPath: e }),
- close: () => void PFe(),
- open: (e, t, n) => void O9(e, !0, t, n),
- drawer: G5,
+ close: () => void LFe(),
+ open: (e, t, n) => void D9(e, !0, t, n),
+ drawer: W5,
openAuthor: (e) => Q.navigatePath(Nn("creator", e))
}, {
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: C8.actionFailure
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: S8.actionFailure
});
}
-function LFe() {
+function BFe() {
$.controller = ja({
location: () => location,
- view: C9,
- adoptView: w9,
+ view: S9,
+ adoptView: C9,
session: () => ({
discoverySeed: Au,
revision: ju,
@@ -79812,20 +79823,20 @@ function LFe() {
preferences: () => ({
selectMode: fu,
selected: du,
- photoSize: LA(),
- photoLayout: RA(),
+ photoSize: UA(),
+ photoLayout: WA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: T9,
- push: E9,
+ live: w9,
+ push: T9,
route: Q.route,
- openPage: x9,
- rollSeed: () => Number(C8.rollSeed()),
+ openPage: b9,
+ rollSeed: () => Number(S8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- ql(), U5(), H5({ manage: !1 });
+ ql(), H5(), V5({ manage: !1 });
},
- syncPhotoWalls: d5,
+ syncPhotoWalls: u5,
scrollTop: () => window.scrollTo({
top: 0,
behavior: "smooth"
@@ -79833,19 +79844,19 @@ function LFe() {
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function RFe() {
- yCe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), J.own(Kc()), Ua(document.body), X.homeHasFeed = INe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, V5.sidebarProps = {
+function VFe() {
+ SCe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), J.own(Kc()), Ua(document.body), X.homeHasFeed = zNe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
content: null,
filters: {},
latest: null
- }, V5.sidebarSurface = "", V5.sidebarCatalog = null, V5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, B5.sidebarSurface = "", B5.sidebarCatalog = null, B5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/react/search/recommendations.ts
-async function zFe(e) {
+async function O9(e) {
let t = (await Promise.allSettled([
e("/api/items?sort=rand&limit=5"),
e("/api/jav/discoveries?scope=library&limit=5"),
@@ -79869,9 +79880,9 @@ async function zFe(e) {
let t = ma(e);
for (let n of ["videos", "images"]) {
if (n === "images" ? !t.has("image") : t.size && !t.has("video")) continue;
- let r = ha(e, n), i = l.sources.find((e) => e.id === r.source_id), a = cW(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let r = ha(e, n), i = l.sources.find((e) => e.id === r.source_id), a = sW(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
(n === "images" ? c : s).push({
- value: iW(r),
+ value: rW(r),
id: r.id,
who: a.author,
href: `/posts/${r.id}`,
@@ -79887,7 +79898,7 @@ async function zFe(e) {
let u = (t[4]?.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: sW(l.sources.filter((t) => t.author_key === e.key), e.k),
+ avatarHtml: oW(l.sources.filter((t) => t.author_key === e.key), e.k),
subtitle: "关注中的作者"
})), d = /* @__PURE__ */ new Map();
for (let e of r) for (let t of e.performer_refs || []) t.id && !d.has(t.name) && d.set(t.name, {
@@ -79957,7 +79968,7 @@ async function zFe(e) {
];
}
// src/application/search-morph.js
-function BFe(e, t, n, r, i, a, o) {
+function HFe(e, t, n, r, i, a, o) {
let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];
return s.map((a, c) => {
let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);
@@ -79982,7 +79993,7 @@ var k9 = {
function A9() {
k9.searchControl?.close();
}
-function VFe(e) {
+function UFe(e) {
let t = e ? eo({
...e,
is_jav: !!e.code
@@ -80001,7 +80012,7 @@ function M9(e) {
if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Bc();
t.classList.add("search-morphing");
- let h = t.animate(BFe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(HFe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
@@ -80010,27 +80021,27 @@ function M9(e) {
k9.searchMorph === h && j9();
});
}
-function HFe() {
- return n9.immerseOpen() ? s8().activeVideo() : i8()?.activeVideo() || null;
+function WFe() {
+ return t9.immerseOpen() ? o8().activeVideo() : r8()?.activeVideo() || null;
}
-function UFe(e) {
+function GFe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function WFe() {
+function KFe() {
k9.searchControl = null, k9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), a9(!1), U.q = e, Lu(), Q.route(U.jav === "1" ? g7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
+ X.rememberSearchValue(), i9(!1), U.q = e, Lu(), Q.route(U.jav === "1" ? h7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
- openItem: (e) => l9(e),
- openEntity: (e, t) => y5(e, t),
+ openItem: (e) => c9(e),
+ openEntity: (e, t) => v5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, O9(e, !0, n);
+ $.followMediaView = t, D9(e, !0, n);
}
}, k9.searchHelpers = {
- pool: () => Z_e(U, wn),
- recommendations: () => zFe(wn),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? W8(e) : VFe(e)}</span>`,
+ pool: () => $_e(U, wn),
+ recommendations: () => O9(wn),
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? U8(e) : UFe(e)}</span>`,
present: (e) => ss(e),
dismiss: (e) => cs(e),
wireScroller: (e) => Dc(e),
@@ -80045,7 +80056,7 @@ function WFe() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, ZV("search", {
+ }, XV("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
actions: k9.searchActions,
@@ -80064,7 +80075,7 @@ function WFe() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function GFe() {
+function qFe() {
k9.searchMorph = null, k9.searchMorphViewport = innerWidth, J.listen.bind(J, window)("resize", () => {
innerWidth !== k9.searchMorphViewport && (k9.searchMorphViewport = innerWidth, j9());
}, { passive: !0 }), J.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), J.handler(L("#searchBtn"), "onclick", () => {
@@ -80076,10 +80087,10 @@ function GFe() {
e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || M9(!1), A9());
};
J.listen(document, "pointerdown", e, !0), J.listen(document, "focusin", e), J.handler(L("#brandHome"), "onclick", (e) => {
- e.preventDefault(), _7(null, !0);
+ e.preventDefault(), g7(null, !0);
}), J.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = u8();
+ let t = l8();
if (t?.isOpen()) {
t.close();
return;
@@ -80088,25 +80099,25 @@ function GFe() {
A9();
return;
}
- if (n9.immerseOpen()) {
- s8().close();
+ if (t9.immerseOpen()) {
+ o8().close();
return;
}
- if (n9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), i8().requestEscape());
+ if (t9.stageOpen()) {
+ e.defaultPrevented || (e.preventDefault(), r8().requestEscape());
return;
}
if (L("#drawer").classList.contains("open")) {
- J5(!1);
+ q5(!1);
return;
}
if (fu || uu.size || du.size) {
- k5(!1, !0);
+ O5(!1, !0);
return;
}
return;
}
- if (UFe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (GFe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
let t = document.querySelector(`#stage[open] [data-media-carousel]:not([data-carousel-video-active]) [data-follow-image-step="${e.key === "ArrowRight" ? 1 : -1}"]`);
if (t) {
@@ -80114,37 +80125,37 @@ function GFe() {
return;
}
}
- let t = HFe();
+ let t = WFe();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), i8()?.toggleTheater();
+ e.preventDefault(), r8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), AM(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), kM(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), kM(t);
+ e.preventDefault(), OM(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), Vj(t, ".vjs-mute-control");
+ e.preventDefault(), Gj(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), Vj(t, ".vjs-fullscreen-control");
+ e.preventDefault(), Gj(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), i8()?.toggleMiniplayer();
+ e.preventDefault(), r8()?.toggleMiniplayer();
return;
}
}
});
}
// src/history/links.ts
-function KFe(e) {
+function JFe(e) {
if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;
let t = e.target instanceof Element ? e.target.closest("a[href]") : null;
if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;
@@ -80158,79 +80169,79 @@ function KFe(e) {
} catch {
return null;
}
- if (i.origin !== window.location.origin || n.startsWith("#") && kV(i.pathname)) return null;
- let a = zV(i.pathname);
- return n.startsWith("#") && !a?.section || !OV(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
+ if (i.origin !== window.location.origin || n.startsWith("#") && OV(i.pathname)) return null;
+ let a = RV(i.pathname);
+ return n.startsWith("#") && !a?.section || !DV(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
// src/application/composition.js
var N9 = {
shellActions: void 0,
routing: void 0
};
-function qFe() {
+function YFe() {
let e = J, t = (e) => {
- e.kind === "item" ? l9(e.id, !1) : e.kind === "jav" ? d9(e.code, !1) : e.kind === "follow" ? O9(e.id, !1) : o9(e.queue, e.key, e.item, !1);
+ e.kind === "item" ? c9(e.id, !1) : e.kind === "jav" ? u9(e.code, !1) : e.kind === "follow" ? D9(e.id, !1) : a9(e.queue, e.key, e.item, !1);
};
- if (FNe(), I5.entityShapesReady = G8(), CPe(), location.pathname === "/") {
+ if (RNe(), F5.entityShapesReady = W8(), EPe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1);
}
- Z8(decodeURIComponent(location.pathname)) && J8(L("#feedNew")), MPe(), N9.shellActions = {
- openSettings: (e) => Y5(e, !0),
- closeSettings: () => u8()?.close(!1),
- openItem: (e) => void l9(e),
- openEntity: (e, t) => void y5(e, t),
+ X8(decodeURIComponent(location.pathname)) && q8(L("#feedNew")), FPe(), N9.shellActions = {
+ openSettings: (e) => J5(e, !0),
+ closeSettings: () => l8()?.close(!1),
+ openItem: (e) => void c9(e),
+ openEntity: (e, t) => void v5(e, t),
openTag: (e) => {
- DPe(), F7(e);
+ APe(), P7(e);
},
- openTasteSignal: ZNe,
+ openTasteSignal: ePe,
navigate: (e) => {
- let n = new URL(e, location.href), r = OV(n.pathname, n.search);
+ let n = new URL(e, location.href), r = DV(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
- y9(n.pathname + n.search + n.hash, e, () => t(r));
- } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !kV(location.pathname)) {
+ v9(n.pathname + n.search + n.hash, e, () => t(r));
+ } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !OV(location.pathname)) {
Q.route(e);
- let t = cH.navigation.seq;
- l6(n.hash, () => cH.navigation.seq === t);
+ let t = sH.navigation.seq;
+ c6(n.hash, () => sH.navigation.seq === t);
} else Q.navigatePath(e);
},
- openManage: e7,
+ openManage: $5,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => D9(),
- receipt: (e, t) => C8.actionReceipt(e, t),
- toast: (e, t) => C8.toast(e, t),
- failure: C8.actionFailure,
- revealSource: m5,
- reopenTutorial: SFe,
- routeReview: ePe,
- routeFollowManage: gPe,
+ openFollow: () => E9(),
+ receipt: (e, t) => S8.actionReceipt(e, t),
+ toast: (e, t) => S8.toast(e, t),
+ failure: S8.actionFailure,
+ revealSource: p5,
+ reopenTutorial: TFe,
+ routeReview: rPe,
+ routeFollowManage: yPe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
srcBadge: (e, t) => Z.srcBadge(e, t),
- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(N5(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(M5(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => k5(!1, !1),
- personAvatar: (e, t, n) => M5.personAvatar(e, t, n),
- authorAvatar: (e) => vPe(e),
- showIndexTags: yPe,
- openFollowAuthor: F5,
- openFollowTag: bPe,
- openPlaylist: (e, t) => void s9(e, t, !0),
- canFlip: () => !fu && !$7() && !window.__scrolling && !X.reduceMotion(),
+ exitSelectMode: () => O5(!1, !1),
+ personAvatar: (e, t, n) => j5.personAvatar(e, t, n),
+ authorAvatar: (e) => xPe(e),
+ showIndexTags: SPe,
+ openFollowAuthor: P5,
+ openFollowTag: CPe,
+ openPlaylist: (e, t) => void o9(e, t, !0),
+ canFlip: () => !fu && !Q7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
e === "entity" ? (ql(), Iu({ barsContext: {
type: "home",
filters: U
- } }), W5(), document.body.classList.add("entity-open"), w7(), P5()) : e === "index" ? (ql(), document.body.classList.remove("entity-open"), Q.claimSurface(t), W5(), document.body.classList.add("index-open"), w7(), P5()) : (ql(), Q.claimSurface(t), e === "catalog" ? W5() : (U5(), H5({ manage: e === "management" })));
+ } }), U5(), document.body.classList.add("entity-open"), C7(), N5()) : e === "index" ? (ql(), document.body.classList.remove("entity-open"), Q.claimSurface(t), U5(), document.body.classList.add("index-open"), C7(), N5()) : (ql(), Q.claimSurface(t), e === "catalog" ? U5() : (H5(), V5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = n9.requestedImmerseId === void 0 ? e : n9.requestedImmerseId;
- n9.requestedImmerseId = void 0, f9(t, !1);
+ let t = t9.requestedImmerseId === void 0 ? e : t9.requestedImmerseId;
+ t9.requestedImmerseId = void 0, d9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -80238,10 +80249,10 @@ function qFe() {
},
openOverlay: (e) => {
let n = Q.requestedOverlay;
- Q.requestedOverlay = null, cH.navigation.claimed && (!uH() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (uH() && (Q.initialOverlayOpened = !0), t(e));
+ Q.requestedOverlay = null, sH.navigation.claimed && (!lH() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (lH() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
- n9.stageOpen() && a9(!1);
+ t9.stageOpen() && i9(!1);
},
grid: {
helpers: X.gridHelpers,
@@ -80249,57 +80260,57 @@ function qFe() {
},
configurable: () => !!Tu,
surfaceShown: (e) => {
- e === "index" ? (_9(), d7()) : N7();
+ e === "index" ? (g9(), u7()) : M7();
},
entity: {
missing: (e) => {
- N9.shellActions.surfaceChanged("entity", location.pathname), v5(e);
+ N9.shellActions.surfaceChanged("entity", location.pathname), _5(e);
},
loading: (e, t, n) => Y.application.loading(e, t, n),
props: (e, t, n) => Y.application.addressProps(e, t, n),
refresh: (e, t, n) => {
let r = Y.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = s5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !l5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(s5()), !0);
+ let i = o5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !c5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (b7(r), x7(o5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => h7("local,115"),
+ defaultLoc: () => m7("local,115"),
open: (e, { entering: t = !1, retitle: n = !1 } = {}) => {
- n && (b9(), u7(), $5()), t && k8(), e === "/trash" ? (X.clearSearchField(), W5()) : (L("#q").value = U.q, X.rememberSearchValue()), _9(), N7(), Z.handOff(R7());
+ n && (y9(), l7(), Q5()), t && O8(), e === "/trash" ? (X.clearSearchField(), U5()) : (L("#q").value = U.q, X.rememberSearchValue()), g9(), M7(), Z.handOff(L7());
},
load: () => {
- Z.handOff(R7());
+ Z.handOff(L7());
},
fill: () => {
- if (U7() || !uH() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (H7() || !lH() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), V7(Q.surfaceToken(Q.surfacePath()));
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), B7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- B7(), Q8();
+ z7(), Z8();
}
}
}, N9.routing = !1, e.listen(document, "click", (e) => {
- let t = KFe(e);
+ let t = JFe(e);
t && (e.preventDefault(), N9.shellActions.navigate(t));
- }), J.own(cH.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !kV(e.location.pathname) && a9(!1), N9.routing && !e.claimed && b9();
- })), $Me(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), FPe(), uPe(), Z5(), Promise.all([
- X7(),
- NPe(),
- I5.entityShapesReady
+ }), J.own(sH.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !OV(e.location.pathname) && i9(!1), N9.routing && !e.claimed && y9();
+ })), nNe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), RPe(), pPe(), X5(), Promise.all([
+ Y7(),
+ IPe(),
+ F5.entityShapesReady
]).then(() => {
- e.isActive && (I5.wantsDiscoveryBars() && N7().catch((e) => console.error("首页横条装载失败", e)), _9(), fFe(), N9.routing = !0, Iu({ pageOpens: 1 }), b9(), d7());
+ e.isActive && (F5.wantsDiscoveryBars() && M7().catch((e) => console.error("首页横条装载失败", e)), g9(), hFe(), N9.routing = !0, Iu({ pageOpens: 1 }), y9(), u7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
var P9 = !1;
-async function JFe(e, t) {
+async function XFe(e, t) {
if (P9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -80321,7 +80332,7 @@ async function JFe(e, t) {
}
}
// src/application/chrome.js
-function YFe() {
+function ZFe() {
(() => {
let e = J, t = [
"#brandHome",
@@ -80383,7 +80394,7 @@ function YFe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), wn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- sG(t.libraries);
+ cG(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -80404,7 +80415,7 @@ function YFe() {
s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${z(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${z(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {
sessionStorage.setItem("peach.library", t.dataset.library), sessionStorage.setItem("peach.library-label", n.find((e) => e[0] === t.dataset.library)?.[1] || "全部媒体库"), location.assign("/");
})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {
- u.setOpen(!1), J5(!1), C5("媒体库与入库");
+ u.setOpen(!1), q5(!1), S5("媒体库与入库");
});
let d = l.querySelector(".board-library-rows");
e.listen(d, "pointerover", (e) => {
@@ -80421,18 +80432,18 @@ function YFe() {
(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());
let g = document.createElement("div");
g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && JFe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), EA();
+ t.getAttribute("aria-pressed") !== "true" && XFe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), MA();
});
- })), EA();
+ })), MA();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = ds(g, v, _);
- e.own(y.dispose), e.own(Vse(v)), oNe({
+ e.own(y.dispose), e.own(zse(v)), lNe({
root: _,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (y.setOpen(!1), J5(!1), Y5("外观与导航").then((t) => {
+ e.isActive && (y.setOpen(!1), q5(!1), J5("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -80444,7 +80455,7 @@ function YFe() {
let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");
if (!t) return;
c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);
- let r = n.classList.contains("open"), i = !q5();
+ let r = n.classList.contains("open"), i = !K5();
i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;
}
Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(J, window)("resize", b);
@@ -80568,15 +80579,15 @@ function YFe() {
subtree: !0
}), y();
}
- })(), J5(!q5() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), q5(!K5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/application/initialize.js
-function XFe() {
- RFe(), wFe(), wPe(), TFe(), mFe(), cNe(), aFe(), CFe(), JNe(), bFe(), dPe(), oFe(), VNe(), tPe(), IFe(), xPe(), YNe(), LFe(), SPe(), XNe(), VPe(), sFe(), WFe(), xFe(), GFe(), hFe(), qFe(), YFe(), J.own(B7), J.own(v9);
+function QFe() {
+ VFe(), DFe(), DPe(), OFe(), _Fe(), dNe(), cFe(), EFe(), ZNe(), CFe(), mPe(), lFe(), WNe(), iPe(), zFe(), wPe(), QNe(), BFe(), TPe(), $Ne(), WPe(), uFe(), KFe(), wFe(), qFe(), vFe(), YFe(), ZFe(), J.own(z7), J.own(_9);
}
// src/ui-kit/middle-truncate.ts
var F9 = "…", I9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, L9 = /* @__PURE__ */ new WeakMap(), R9 = /* @__PURE__ */ new WeakSet(), z9 = null, B9 = null, V9 = /* @__PURE__ */ new Set(), H9 = (e) => I9 ? [...I9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
-function ZFe(e, t) {
+function $Fe(e, t) {
let n = H9(e);
if (!n.length || t(e)) return String(e ?? "");
let r = 0, i = Math.max(0, n.length - 1), a = F9;
@@ -80594,7 +80605,7 @@ var U9 = Object.assign((e, t) => {
Number.isFinite(a) && (i += Math.max(0, H9(t).length - 1) * a);
let o = parseFloat(n.wordSpacing);
return Number.isFinite(o) && (i += (t.match(/\s/g) || []).length * o), i;
-}, { canvas: null }), QFe = (e) => {
+}, { canvas: null }), eIe = (e) => {
if (e.dataset.middleTruncateWithin === void 0) return e.clientWidth;
let t = e.parentElement;
if (!t) return e.clientWidth;
@@ -80604,17 +80615,17 @@ var U9 = Object.assign((e, t) => {
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, $Fe = (e) => {
+}, tIe = (e) => {
let t = L9.get(e);
if (!t || !e.isConnected) return;
- let n = QFe(e), r = n > 0 ? ZFe(t.full, (t) => U9(e, t) <= n) : t.full;
+ let n = eIe(e), r = n > 0 ? $Fe(t.full, (t) => U9(e, t) <= n) : t.full;
t.rendered = r, e.textContent !== r && (e.textContent = r);
let i = r !== t.full;
e.classList.toggle("middle-truncated", i), e.setAttribute("aria-label", t.full), e.hasAttribute("title") && e.dataset.middleTitle !== "true" || (e.title = t.full, e.dataset.middleTitle = "true");
}, W9 = (e) => {
let t = L9.get(e);
t && !t.raf && (t.raf = requestAnimationFrame(() => {
- t.raf = 0, $Fe(e);
+ t.raf = 0, tIe(e);
}));
}, G9 = (e) => {
e instanceof HTMLElement && (L9.has(e) || L9.set(e, {
@@ -80627,7 +80638,7 @@ var U9 = Object.assign((e, t) => {
let t = e;
t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);
};
-function eIe(e = document) {
+function nIe(e = document) {
B9?.(), R9 = /* @__PURE__ */ new WeakSet(), V9 = /* @__PURE__ */ new Set();
let t = V9, n = !0;
z9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -80701,7 +80712,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], tIe = {
+], rIe = {
catalog: [
...q9,
...J9,
@@ -80722,10 +80733,10 @@ var q9 = [
"avatar-choices"
]
};
-function nIe() {
+function iIe() {
let e = /* @__PURE__ */ new Set(), t = null;
return (n, r) => {
- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of tIe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of rIe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -80738,12 +80749,12 @@ function nIe() {
})), t || Promise.resolve();
};
}
-function rIe() {
+function aIe() {
let e = Pt({
- queryKey: yF,
- queryFn: ({ signal: e }) => DF(e),
- refetchInterval: (e) => EF(e.state.data)
- }), t = (0, P.useRef)(void 0), [n] = (0, P.useState)(nIe), r = e.data?.result_versions;
+ queryKey: JF,
+ queryFn: ({ signal: e }) => XF(e),
+ refetchInterval: (e) => YF(e.state.data)
+ }), t = (0, P.useRef)(void 0), [n] = (0, P.useState)(iIe), r = e.data?.result_versions;
return (0, P.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
@@ -80753,52 +80764,52 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function iIe() {
+function oIe() {
if (!X9) {
- let e = sNe();
+ let e = uNe();
X9 = {
effects: e,
owners: 0
- }, e.own(eIe(document)), e.own(() => {
+ }, e.own(nIe(document)), e.own(() => {
ql(), H.cancelQueries();
- }), e.own(eNe), e.own(Phe), e.own(as);
+ }), e.own(rNe), e.own(Lhe), e.own(as);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function aIe() {
+function sIe() {
let [e, t] = (0, P.useState)(null);
return (0, P.useLayoutEffect)(() => {
- let e = X9 === null, n = iIe(), r = QMe(t);
+ let e = X9 === null, n = oIe(), r = tNe(t);
if (e) try {
- XFe();
+ QFe();
} catch (e) {
throw r(), n.effects.dispose(), X9 = null, e;
}
return () => {
r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Z9(n)));
};
- }, []), /* @__PURE__ */ (0, F.jsx)(S_e, {
+ }, []), /* @__PURE__ */ (0, F.jsx)(T_e, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, F.jsx)(rIe, {}) : null
+ background: e ? /* @__PURE__ */ (0, F.jsx)(aIe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function oIe(e) {
+function cIe(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, Rt.createRoot)(e, C_e);
+ let n = (0, Rt.createRoot)(e, E_e);
Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
Q9.get(e) === n && (Q9.delete(e), r(), X9 && Z9(X9));
- }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, F.jsx)(aIe, {}))), n;
+ }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, F.jsx)(sIe, {}))), n;
}
// src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-oIe($9);
-export { WI as $2ec61d1d4f780267$export$a8a3e93435678ff9, QI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, hR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, BT as $72abaeab4d80592f$export$78efe591171d7d45, sz as $76d00c5a4edb230a$export$76ccd210b9029917, iz as $76d00c5a4edb230a$export$816b5d811295e6bc, uz as $76d00c5a4edb230a$export$b59bdbef9ce70de2, fz as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, rz as $76d00c5a4edb230a$export$f850895b287ef28e, $fe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Qfe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Yfe as $b4f18e3395fe64d7$export$b2539bed5023c21c, gz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, npe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, Dw as $ea3928288112382f$export$439d29a4e110a164, OR as $f2ff30fde7b014be$export$3ddf2d174ce01153, FR as $fe21c36db05242bb$export$a98f0dcb43a68a25, IR as $fe21c36db05242bb$export$d7b12c4107be0d61, Rpe as $l, lA as ACCENTS, LEe as AMANE_BRIDGE_CHECK_URL, Y$ as AMANE_BRIDGE_KEY, REe as AMANE_BRIDGE_REBUILD_URL, or as ApiError, nG as ArtSlot, q as Button, SI as ButtonLink, qpe as Bx, _n as CLOUD_LOCATIONS, Y1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, s1 as CONFIGURATION_KEY, GY as CONFIGURATION_URL, zEe as COOKIE_TEXT_LIMIT, J$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, W$ as CUSTOM_SOURCES_KEY, U$ as CUSTOM_SOURCES_URL, gV as Checkbox, hV as CheckboxGlyph, oV as ChevronSortDown, oZ as Chip, q2 as CloudDownloadDialog, aU as CollapseChevron, iU as CollapseRegion, d$ as CollectionSummary, _xe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, AQ as DIAGNOSTICS_KEY, gSe as DIRECTORY_TEMPLATE_ERROR, A0 as DISCOVERY_SORTS, V2 as DOWNLOADS_KEY, B2 as DOWNLOADS_URL, dY as DUPLICATES_KEY, KJ as DataTableFooter, HJ as DataTableFrame, GJ as DataTableSort, dU as Disclosure, Xke as DownloadsPanel, kpe as E3, vxe as ENTITY_REVIEW_KINDS, q1 as ENTRY_LINKS_HELP, J1 as ENTRY_LINKS_HINT, Vpe as Ea, ime as EmptyFocusButton, Jz as EmptyState, lU as ErrorText, Bge as ExternalLink, Br as FEEDS_KEY, $Y as FEED_SCHEDULE_KEY, E$ as FIELDSET_FOOT, Yje as FLOW_LABEL_X, z3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, P8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, PZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, QY as FOLLOW_SCHEDULE_KEY, Uge as Fact, Hge as FactList, uU as FieldLabel, I$ as Fieldset, F$ as FieldsetTitle, fI as FilterGlass, pI as FilterGlassRows, dI as FilterIconButton, hI as FilterPill, zge as Footer, Mz as Gg, _I as GlassPill, cU as Help, zz as HintText, Vje as IDLE_POLL_MS, oxe as IDLE_REPAIR, oI as IconButton, Wz as Input, Uz as InputBase, OA as JAV_LAYOUTS, M0 as JAV_RECOMMENDATION_GRID, CX as JUNK_KEY, Q3 as JavHeader, exe as KEEP_LABELS, Hr as LAYOUTS, K1 as LIBRARY_FOLDER_HELP, CH as LIBRARY_PROCESSING_KEY, LY as LINKS_KEY, RY as LINK_CHECK_KEY, Hxe as LINK_KINDS, zY as LINK_PRUNE_KEY, tr as LOC, Rz as Label, z$ as LibraryProcessingCard, dB as LibraryShortcuts, zH as LinkButton, $H as LoadingDots, jpe as M6, qxe as MEDIA_PROCESSING_KEY, tX as MEDIA_PROCESSING_URL, gY as MEDIA_REPAIR_KEY, hY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, uV as MENU_ITEM, dV as MENU_ITEM_INTERACTIVE, lV as MENU_POPOVER_SURFACE, UH as MenuDialog, QG as MixCard, Gz as ModalFrame, vy as MotionConfigContext, Lz as NR, qz as Note, eme as OA, iX as ORGANIZE_KEY, sX as ORPHAN_RECORDS_KEY, jz as OV, wz as P7, $Te as PHASES, KY as PICK_FOLDER_URL, V$ as PLAYLISTS_KEY, BDe as POLICY_COLUMNS, HDe as POLICY_COVER_NOTE, VDe as POLICY_MATRIX, G1 as POLICY_SUMMARY, WJ as Pagination, R$ as PathLine, uF as PillTabList, tU as Progress, xY as QUALITY_GOALS_KEY, k$ as REPAIR_CARD_TEXT, _Y as REPAIR_LIBRARIES_KEY, fX as RESOURCE_APPLY_KEY, dX as RESOURCE_SCAN_KEY, fEe as RESULT_PANEL, pEe as RESULT_SECTION, gxe as REVIEW_CATEGORIES, SX as REVIEW_COUNTS_KEY, yxe as REVIEW_DECISION_LABELS, wY as REVIEW_KEY, TY as REVIEW_LABELS, DY as REVIEW_QUEUES, OY as REVIEW_QUEUE_LABELS, tG as RetryNote, $pe as Rf, Ige as Rows, FEe as SCRAPING_CHECK_URL, K$ as SCRAPING_COVER_URL, q$ as SCRAPING_KEY, PEe as SCRAPING_SETTINGS_URL, JU as SEGMENT, qU as SEGMENTED_TRACK, ZY as SETTINGS_KEY, qY as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, u3 as STATS_KEY, Fge as Section, Rge as SectionSkeleton, KU as SegmentedRadioGroup, N_e as SegmentedTabList, NW as Segments, UJ as Select, zU as Select$1, d1 as SelectField, BU as SelectItem, $J as SelectionActions, Bk as SelectionDock, eY as SelectionPopover, oU as SettingsCard, Pge as SettingsRow, sU as SettingsSectionLabel, qge as SiteLabel, $U as SortDirectionIcon, IW as SortKeys, pQ as SourceAvatar, hU as SourceLabel, fU as SourceMark, Lge as Stack, L$ as StatusLabel, P2 as Switch, yF as TASKS_KEY, Aje as TASTE_REFRESH_KEY, jje as TASTE_WINDOWS, eX as THUMBNAIL_JOBS_KEY, TX as TRASH_KEY, kF as TRIGGER_LABELS, NJ as Table, tY as TableColumnControls, nY as TableColumnResizer, iY as TableSelectionHeader, e$ as TagManager, Vge as TaskCenterLink, nU as TaskProgress, Vz as TextField, Bz as TextFieldContext, Az as Un, h$ as WANTS_KEY, r4 as WantMagnets, qp as WithPromise, Tz as Wt, kz as Xc, Iz as Xf, Npe as Xt, Ape as _8, o as __commonJSMin, s as __exportAll, l as __toESM, Qpe as aB, Ti as addAlias, wi as addSource, _$ as addWant, yb as animate, B as apiGet, V as apiSend, SA as appSettingsStore, PSe as applyConfirmText, xX as applyLeftovers, NSe as applyPlanText, ISe as applyText, EA as applyTheme, u_ as asNumber, CSe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, xq as autoResetPageIndex, go as avatarInner, g3 as bandRows, _Se as baseName, axe as batchOperate, Kk as boundedPreference, nxe as bulkCloudPreferences, Qz as busyProps, Zpe as cB, oAe as cachedMagnetStates, Lp as calcGeneratorVelocity, Exe as canApprove, Yf as cancelFrame, OSe as candidateText, QH as cardClass, VA as cardRatio, Oz as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Kxe as checkLine, Vi as checkReceipt, Hi as checkSummary, VEe as checkText, Gi as checkedText, wG as clickedBlank, Jbe as cloudLocations, E0 as cloudProxySkeleton, $x as clsx, Wpe as cn, qh as collectMotionValues, Vq as columnVisibilityFeature, OJ as column_getCanSort, wJ as column_getSortFn, wxe as commonReviewSources, bV as configurationSection, Fje as configureTasteBrowser, ol as confirmModal, rq as copyInstancePropertiesWithoutMemos, co as coverUrl, Mq as createColumnHelper, OEe as createPlaylist, Yi as credentialDone, S0 as credentialsSkeleton, Fxe as currentReviewRow, sF as cx, Pz as dZ, Mxe as decisionPayload, Nxe as decisionReceipt, jxe as defaultChoice, AEe as deletePlaylist, x as diagnosticHeaders, W1 as diagnosticsSkeleton, sEe as discoveryArtwork, S$ as discoveryKey, fOe as discoveryScore, Qbe as distinctName, zi as dropSources, Xpe as du, rxe as duplicateVictims, GF as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, bq as expandRowModel, xz as f1, $r as feedIntervalText, Q$ as fetchAmaneBridge, _i as fetchCheckJob, c1 as fetchConfiguration, Z$ as fetchCoverJob, gi as fetchCredentials, G$ as fetchCustomSources, jQ as fetchDiagnostics, C$ as fetchDiscoveries, pY as fetchDuplicates, SF as fetchEarlier, Xxe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Yxe as fetchFollowSchedule, DX as fetchJunkSummary, HY as fetchLinkCheck, UY as fetchLinkPrune, VY as fetchLinkStats, Jxe as fetchMediaProcessing, vY as fetchMediaRepair, yr as fetchMediaSources, aX as fetchOrganize, lSe as fetchOrganizeExample, cX as fetchOrphanRecords, Ai as fetchPending, H$ as fetchPlaylists, SY as fetchQualityGoals, yY as fetchRepairLibraries, vi as fetchResolveJob, mX as fetchResourceApply, pX as fetchResourceScan, PY as fetchReview, EX as fetchReviewCounts, nX as fetchSettings, X$ as fetchSources, d3 as fetchStats, yi as fetchSuggestions, DF as fetchTasks, I3 as fetchTaste, Ije as fetchTasteJob, Zxe as fetchThumbnailJobs, OX as fetchTrashSummary, g$ as fetchWants, Sxe as filterReviewRows, $n as firstGrapheme, zK as flexRender, Zje as flowGraph, Qje as flowLabel, XAe as fmtCount, qn as fmtDur, Yn as fmtSize, xF as foldByKind, VF as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, WF as followupDetail, bF as followupTally, Jf as frame, bpe as g4, Wq as getDefaultPaginationState, BA as gridLayout, ci as groupByAuthor, BF as groupFollowups, jY as groupReviewRows, jSe as hasChanges, hX as hasResourceRoots, FF as hasResultProblems, Hje as historySpan, Sz as i2, Bje as importTasteExport, C0 as indexersSkeleton, kp as interpolate, y$ as invalidateWants, UF as isActive, Qr as isBroken, Kr as isLayout, ug as isMotionValue, EY as isReviewCategory, HF as isRoutine, w0 as javBrowserSkeleton, P0 as javContentSkeleton, NA as javLayout, N0 as javTagSkeleton, VSe as junkBreakdown, jEe as keepPlaylist, ke as keepPreviousData, fi as keepSelected, f3 as known, wpe as l7, zF as latestOfKind, cje as lengthRows, Sr as localTime, Fi as lookupFeedActor, Dpe as m7, Nz as mM, En as mapLimit, ki as markItem, _3 as max, oje as mediumRows, CF as mergeFinished, v3 as min, Bxe as mirrorText, lxe as missingToolText, mY as mixedCloudPreferences, $F as momentText, xb as motion, Yh as motionValue, ySe as organizeOutcome, Y0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, cH as peachHistory, cH as peachHistory$1, Axe as pendingGenres, QAe as percentText, fSe as pickOrganizeFolder, vSe as planSummary, p3 as playedFor, eje as playedItemUrl, EF as pollInterval, Js as popCount, DEe as posterUrl, bG as previewLibraryColor, dSe as previewOrganize, fxe as previewUrl, RF as problemDestination, KF as progressText, mU as providerIcon, Gxe as pruneText, vX as purgeCount, wSe as purgeOrphan, Fz as pv, Ype as qE, H as queryClient, Cz as r2, Jje as radarRows, rje as radialArc, ije as radialBarSize, nje as radialCeiling, tje as radialSlices, iM as randomId, Kje as rankDetail, qje as rankShares, h3 as reachedShare, JF as readableErrorHeadline, pOe as recommendationScore, Ixe as recordGenre, ESe as recordsText, MEe as recreatePlaylist, TEe as refreshPlaylists, Bl as relayoutCovers, Bi as reloadFollowManage, zxe as reloadReview, GDe as rememberShape, mSe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, zje as removeTasteSource, v$ as removeWants, Di as renameAliasGroup, kEe as renamePlaylist, uje as replayRows, ie as require_jsx_runtime, A as require_react, te as require_react_dom, $K as require_with_selector, nEe as resetWants, pr as resolveFollowSort, Up as resolveStartTime, EEe as resumeAssetId, xxe as reviewGroupingOptions, AY as reviewQueueData, kY as reviewQueueOf, BSe as reviewSummary, Cxe as reviewWindow, Oxe as rowEvidence, NY as rowFieldName, Zq as rowPaginationFeature, vJ as rowSelectionFeature, jJ as rowSortingFeature, MY as rowSubject, kxe as rowTags, Dxe as rowTitle, xpe as s5, Oi as saveCredential, MSe as scanLine, nSe as schedulePollInterval, iEe as searchNote, Txe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, wV as settingsPath, Rxe as settleReviewRows, Zbe as sharedNamePrefix, lH as shellNavigate, x8 as showToast, zn as siteMarkUrl, dq as skipFirstRun, cF as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, FSe as sourceMeta, zs as spinnerHtml, Ep as spring, Xz as spriteGlyph, bi as startCheck, Uxe as startLinkCheck, Wxe as startLinkPrune, pSe as startOrganize, xi as startResolve, ASe as startResourceApply, kSe as startResourceScan, Rje as startTasteRefresh, jF as statusLabel, cxe as statusLine, Zr as statusText, HA as storeJavLayout, Pxe as submitDecision, tI as summaryItems, Nq as tableFeatures, fq as tableMemo, ui as tableRows, IF as taskIssues, L3 as tasteDate, Wje as tasteDimensions, Uje as tasteHours, F3 as tasteKey, Nje as tasteRefetchInterval, Pje as tasteTime, mF as textLang, Od as time, Lpe as tl, mi as toggleGroup, R3 as topScores, Bpe as uo, BH as useAction, kZ as useBackgroundJob, MU as useClientUpdates, Bu as useConstant, iI as useEntityNames, lI as useHorizontalScroller, Vu as useIsomorphicLayoutEffect, SG as useLibraryTints, Ft as useMutation, _V as useOverlayScrollbar, Pt as useQuery, oe as useQueryClient, tb as useReducedMotion, tSe as useRunSchedule, $xe as useSaveFollowSchedule, rX as useSaveSettings, rSe as useSaveThumbnailMode, MJ as useTable, YJ as useTablePreferences, bI as useViewGlide, ixe as victimBytes, rEe as wantName, $Ae as watchNote, m3 as watchedShare, Dc as wireHorizontalScroller, hSe as withOrganizeJob };
+cIe($9);
+export { UI as $2ec61d1d4f780267$export$a8a3e93435678ff9, ZI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, mR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, KT as $72abaeab4d80592f$export$78efe591171d7d45, oz as $76d00c5a4edb230a$export$76ccd210b9029917, rz as $76d00c5a4edb230a$export$816b5d811295e6bc, lz as $76d00c5a4edb230a$export$b59bdbef9ce70de2, dz as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, nz as $76d00c5a4edb230a$export$f850895b287ef28e, npe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, tpe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Qfe as $b4f18e3395fe64d7$export$b2539bed5023c21c, hz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, ape as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, Nw as $ea3928288112382f$export$439d29a4e110a164, DR as $f2ff30fde7b014be$export$3ddf2d174ce01153, PR as $fe21c36db05242bb$export$a98f0dcb43a68a25, FR as $fe21c36db05242bb$export$d7b12c4107be0d61, Vpe as $l, gA as ACCENTS, BEe as AMANE_BRIDGE_CHECK_URL, J$ as AMANE_BRIDGE_KEY, VEe as AMANE_BRIDGE_REBUILD_URL, or as ApiError, rG as ArtSlot, q as Button, xI as ButtonLink, Xpe as Bx, _n as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, o1 as CONFIGURATION_KEY, GY as CONFIGURATION_URL, HEe as COOKIE_TEXT_LIMIT, q$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, U$ as CUSTOM_SOURCES_KEY, H$ as CUSTOM_SOURCES_URL, hV as Checkbox, mV as CheckboxGlyph, aV as ChevronSortDown, aZ as Chip, K2 as CloudDownloadDialog, iU as CollapseChevron, rU as CollapseRegion, u$ as CollectionSummary, yxe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, kQ as DIAGNOSTICS_KEY, vSe as DIRECTORY_TEMPLATE_ERROR, k0 as DISCOVERY_SORTS, B2 as DOWNLOADS_KEY, z2 as DOWNLOADS_URL, dY as DUPLICATES_KEY, KJ as DataTableFooter, HJ as DataTableFrame, GJ as DataTableSort, uU as Disclosure, $ke as DownloadsPanel, Mpe as E3, bxe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, Wpe as Ea, sme as EmptyFocusButton, qz as EmptyState, cU as ErrorText, Uge as ExternalLink, Br as FEEDS_KEY, $Y as FEED_SCHEDULE_KEY, T$ as FIELDSET_FOOT, Qje as FLOW_LABEL_X, R3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, NZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, QY as FOLLOW_SCHEDULE_KEY, Kge as Fact, Gge as FactList, lU as FieldLabel, F$ as Fieldset, P$ as FieldsetTitle, $ue as FilterGlass, mI as FilterGlassRows, pI as FilterIconButton, hI as FilterPill, Hge as Footer, jz as Gg, gI as GlassPill, sU as Help, Rz as HintText, Wje as IDLE_POLL_MS, cxe as IDLE_REPAIR, lI as IconButton, Uz as Input, Hz as InputBase, PA as JAV_LAYOUTS, j0 as JAV_RECOMMENDATION_GRID, SX as JUNK_KEY, Z3 as JavHeader, nxe as KEEP_LABELS, Hr as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, SH as LIBRARY_PROCESSING_KEY, LY as LINKS_KEY, RY as LINK_CHECK_KEY, Wxe as LINK_KINDS, zY as LINK_PRUNE_KEY, tr as LOC, Lz as Label, R$ as LibraryProcessingCard, uB as LibraryShortcuts, RH as LinkButton, QH as LoadingDots, Ppe as M6, Yxe as MEDIA_PROCESSING_KEY, tX as MEDIA_PROCESSING_URL, gY as MEDIA_REPAIR_KEY, hY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, lV as MENU_ITEM, uV as MENU_ITEM_INTERACTIVE, cV as MENU_POPOVER_SURFACE, HH as MenuDialog, $G as MixCard, Wz as ModalFrame, wy as MotionConfigContext, Iz as NR, Kz as Note, rme as OA, iX as ORGANIZE_KEY, sX as ORPHAN_RECORDS_KEY, Az as OV, Cz as P7, nEe as PHASES, KY as PICK_FOLDER_URL, B$ as PLAYLISTS_KEY, UDe as POLICY_COLUMNS, GDe as POLICY_COVER_NOTE, WDe as POLICY_MATRIX, W1 as POLICY_SUMMARY, WJ as Pagination, L$ as PathLine, zF as PillTabList, eU as Progress, xY as QUALITY_GOALS_KEY, O$ as REPAIR_CARD_TEXT, _Y as REPAIR_LIBRARIES_KEY, fX as RESOURCE_APPLY_KEY, dX as RESOURCE_SCAN_KEY, hEe as RESULT_PANEL, gEe as RESULT_SECTION, vxe as REVIEW_CATEGORIES, xX as REVIEW_COUNTS_KEY, xxe as REVIEW_DECISION_LABELS, wY as REVIEW_KEY, TY as REVIEW_LABELS, DY as REVIEW_QUEUES, OY as REVIEW_QUEUE_LABELS, nG as RetryNote, nme as Rf, zge as Rows, REe as SCRAPING_CHECK_URL, G$ as SCRAPING_COVER_URL, K$ as SCRAPING_KEY, LEe as SCRAPING_SETTINGS_URL, qU as SEGMENT, KU as SEGMENTED_TRACK, ZY as SETTINGS_KEY, qY as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, l3 as STATS_KEY, Rge as Section, Vge as SectionSkeleton, GU as SegmentedRadioGroup, I_e as SegmentedTabList, PW as Segments, UJ as Select, RU as Select$1, u1 as SelectField, zU as SelectItem, $J as SelectionActions, Jk as SelectionDock, eY as SelectionPopover, aU as SettingsCard, Lge as SettingsRow, oU as SettingsSectionLabel, Xge as SiteLabel, QU as SortDirectionIcon, LW as SortKeys, fQ as SourceAvatar, mU as SourceLabel, dU as SourceMark, Bge as Stack, I$ as StatusLabel, N2 as Switch, JF as TASKS_KEY, Nje as TASTE_REFRESH_KEY, Pje as TASTE_WINDOWS, eX as THUMBNAIL_JOBS_KEY, wX as TRASH_KEY, Nue as TRIGGER_LABELS, NJ as Table, tY as TableColumnControls, nY as TableColumnResizer, iY as TableSelectionHeader, $Q as TagManager, Wge as TaskCenterLink, tU as TaskProgress, Bz as TextField, zz as TextFieldContext, kz as Un, m$ as WANTS_KEY, n4 as WantMagnets, qp as WithPromise, wz as Wt, Oz as Xc, Fz as Xf, Ipe as Xt, Npe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, tme as aB, Ti as addAlias, wi as addSource, g$ as addWant, bb as animate, B as apiGet, V as apiSend, OA as appSettingsStore, LSe as applyConfirmText, bX as applyLeftovers, ISe as applyPlanText, zSe as applyText, MA as applyTheme, f_ as asNumber, TSe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, xq as autoResetPageIndex, go as avatarInner, h3 as bandRows, ySe as baseName, sxe as batchOperate, $k as boundedPreference, ixe as bulkCloudPreferences, Zz as busyProps, eme as cB, lAe as cachedMagnetStates, Lp as calcGeneratorVelocity, Oxe as canApprove, Yf as cancelFrame, ASe as candidateText, ZH as cardClass, qA as cardRatio, Dz as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Jxe as checkLine, Vi as checkReceipt, Hi as checkSummary, WEe as checkText, Gi as checkedText, TG as clickedBlank, Xbe as cloudLocations, T0 as cloudProxySkeleton, $x as clsx, qpe as cn, Xh as collectMotionValues, Vq as columnVisibilityFeature, OJ as column_getCanSort, wJ as column_getSortFn, Exe as commonReviewSources, yV as configurationSection, Rje as configureTasteBrowser, ol as confirmModal, rq as copyInstancePropertiesWithoutMemos, co as coverUrl, Mq as createColumnHelper, jEe as createPlaylist, Yi as credentialDone, x0 as credentialsSkeleton, Lxe as currentReviewRow, IF as cx, Nz as dZ, Pxe as decisionPayload, Fxe as decisionReceipt, Nxe as defaultChoice, NEe as deletePlaylist, x as diagnosticHeaders, U1 as diagnosticsSkeleton, uEe as discoveryArtwork, x$ as discoveryKey, hOe as discoveryScore, exe as distinctName, zi as dropSources, $pe as du, axe as duplicateVictims, tI as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, bq as expandRowModel, bz as f1, $r as feedIntervalText, Z$ as fetchAmaneBridge, _i as fetchCheckJob, s1 as fetchConfiguration, X$ as fetchCoverJob, gi as fetchCredentials, W$ as fetchCustomSources, AQ as fetchDiagnostics, S$ as fetchDiscoveries, pY as fetchDuplicates, Oue as fetchEarlier, Qxe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Zxe as fetchFollowSchedule, EX as fetchJunkSummary, HY as fetchLinkCheck, UY as fetchLinkPrune, VY as fetchLinkStats, Xxe as fetchMediaProcessing, vY as fetchMediaRepair, yr as fetchMediaSources, aX as fetchOrganize, dSe as fetchOrganizeExample, cX as fetchOrphanRecords, Ai as fetchPending, V$ as fetchPlaylists, SY as fetchQualityGoals, yY as fetchRepairLibraries, vi as fetchResolveJob, mX as fetchResourceApply, pX as fetchResourceScan, PY as fetchReview, TX as fetchReviewCounts, nX as fetchSettings, Y$ as fetchSources, u3 as fetchStats, yi as fetchSuggestions, XF as fetchTasks, F3 as fetchTaste, zje as fetchTasteJob, $xe as fetchThumbnailJobs, DX as fetchTrashSummary, h$ as fetchWants, wxe as filterReviewRows, $n as firstGrapheme, zK as flexRender, eMe as flowGraph, tMe as flowLabel, $Ae as fmtCount, qn as fmtDur, Yn as fmtSize, Due as foldByKind, Hue as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, Wue as followupDetail, Eue as followupTally, Jf as frame, Cpe as g4, Wq as getDefaultPaginationState, KA as gridLayout, ci as groupByAuthor, Vue as groupFollowups, jY as groupReviewRows, PSe as hasChanges, hX as hasResourceRoots, QF as hasResultProblems, Gje as historySpan, xz as i2, Uje as importTasteExport, S0 as indexersSkeleton, kp as interpolate, v$ as invalidateWants, eI as isActive, Qr as isBroken, Kr as isLayout, ug as isMotionValue, EY as isReviewCategory, Uue as isRoutine, C0 as javBrowserSkeleton, N0 as javContentSkeleton, zA as javLayout, M0 as javTagSkeleton, WSe as junkBreakdown, PEe as keepPlaylist, ke as keepPreviousData, fi as keepSelected, d3 as known, Dpe as l7, Bue as latestOfKind, dje as lengthRows, Sr as localTime, Fi as lookupFeedActor, Ape as m7, Mz as mM, En as mapLimit, ki as markItem, g3 as max, lje as mediumRows, kue as mergeFinished, _3 as min, Hxe as mirrorText, dxe as missingToolText, mY as mixedCloudPreferences, aI as momentText, xb as motion, Qh as motionValue, xSe as organizeOutcome, J0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, sH as peachHistory, sH as peachHistory$1, Mxe as pendingGenres, tje as percentText, mSe as pickOrganizeFolder, bSe as planSummary, f3 as playedFor, rje as playedItemUrl, YF as pollInterval, Js as popCount, AEe as posterUrl, xG as previewLibraryColor, pSe as previewOrganize, mxe as previewUrl, zue as problemDestination, nI as progressText, pU as providerIcon, qxe as pruneText, _X as purgeCount, ESe as purgeOrphan, Pz as pv, Qpe as qE, H as queryClient, Sz as r2, Zje as radarRows, oje as radialArc, sje as radialBarSize, aje as radialCeiling, ije as radialSlices, cM as randomId, Yje as rankDetail, Xje as rankShares, m3 as reachedShare, rI as readableErrorHeadline, gOe as recommendationScore, Rxe as recordGenre, OSe as recordsText, FEe as recreatePlaylist, OEe as refreshPlaylists, Bl as relayoutCovers, Bi as reloadFollowManage, Vxe as reloadReview, JDe as rememberShape, gSe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, Hje as removeTasteSource, _$ as removeWants, Di as renameAliasGroup, MEe as renamePlaylist, pje as replayRows, ie as require_jsx_runtime, A as require_react, te as require_react_dom, $K as require_with_selector, aEe as resetWants, pr as resolveFollowSort, Up as resolveStartTime, kEe as resumeAssetId, Cxe as reviewGroupingOptions, AY as reviewQueueData, kY as reviewQueueOf, USe as reviewSummary, Txe as reviewWindow, Axe as rowEvidence, NY as rowFieldName, Zq as rowPaginationFeature, vJ as rowSelectionFeature, jJ as rowSortingFeature, MY as rowSubject, jxe as rowTags, kxe as rowTitle, wpe as s5, Oi as saveCredential, FSe as scanLine, iSe as schedulePollInterval, sEe as searchNote, Dxe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, CV as settingsPath, Bxe as settleReviewRows, $be as sharedNamePrefix, cH as shellNavigate, b8 as showToast, zn as siteMarkUrl, dq as skipFirstRun, LF as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, RSe as sourceMeta, zs as spinnerHtml, Ep as spring, Yz as spriteGlyph, bi as startCheck, Gxe as startLinkCheck, Kxe as startLinkPrune, hSe as startOrganize, xi as startResolve, MSe as startResourceApply, jSe as startResourceScan, Vje as startTasteRefresh, Fue as statusLabel, uxe as statusLine, Zr as statusText, JA as storeJavLayout, Ixe as submitDecision, oI as summaryItems, Nq as tableFeatures, fq as tableMemo, ui as tableRows, Rue as taskIssues, I3 as tasteDate, qje as tasteDimensions, Kje as tasteHours, P3 as tasteKey, Ije as tasteRefetchInterval, Lje as tasteTime, UF as textLang, Od as time, Bpe as tl, mi as toggleGroup, L3 as topScores, Upe as uo, zH as useAction, OZ as useBackgroundJob, jU as useClientUpdates, Bu as useConstant, sI as useEntityNames, fI as useHorizontalScroller, Vu as useIsomorphicLayoutEffect, CG as useLibraryTints, Ft as useMutation, gV as useOverlayScrollbar, Pt as useQuery, oe as useQueryClient, lb as useReducedMotion, rSe as useRunSchedule, tSe as useSaveFollowSchedule, rX as useSaveSettings, aSe as useSaveThumbnailMode, MJ as useTable, YJ as useTablePreferences, yI as useViewGlide, oxe as victimBytes, oEe as wantName, nje as watchNote, p3 as watchedShare, Dc as wireHorizontalScroller, _Se as withOrganizeJob };
-//# debugId=3c964309-0992-4699-b33d-0e022a308722
\ No newline at end of file
+//# debugId=1887a47f-16fe-4cdd-88a0-e023e9a3fd51
\ No newline at end of file
diff --git a/web/dist/peach-app.stats-page-BJbvUxyv.js b/web/dist/peach-app.stats-page-CxbUCXeP.js
similarity index 99%
rename from web/dist/peach-app.stats-page-BJbvUxyv.js
rename to web/dist/peach-app.stats-page-CxbUCXeP.js
index 4dde5111e..cb624e8b2 100644
--- a/web/dist/peach-app.stats-page-BJbvUxyv.js
+++ b/web/dist/peach-app.stats-page-CxbUCXeP.js
@@ -1,15 +1,15 @@
(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] = "4e9c6c78-244e-428a-b434-99df734cc9c7", e._sentryDebugIdIdentifier = "sentry-dbid-4e9c6c78-244e-428a-b434-99df734cc9c7");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "45a38cb3-b253-4ea5-bf72-b989b6cfb31b", e._sentryDebugIdIdentifier = "sentry-dbid-45a38cb3-b253-4ea5-bf72-b989b6cfb31b");
} catch {}
})();
-import { AnimatedItems as e, CHART_CARD as t, CHART_COLORS as n, Cell as r, ChartBackground as i, ChartContainer as a, ChartEmpty as o, ChartLegend as s, ChartLegendContent as c, ChartTip as l, ChartTooltip as u, ChartTooltipContent as d, DefaultZIndexes as f, LabelListFromLabelProp as p, Layer as m, LoadingIndicator as h, PolarChart as g, PolarLabelListContextProvider as _, RegisterGraphicalItemId as v, Sector as y, SetPolarGraphicalItem as b, SetPolarLegendPayload as x, SetTooltipEntrySettings as S, Shape as C, ZIndexLayer as w, adaptEventsOfChild as T, arrayTooltipSearcher as E, combineAllBarPositions as ee, combineBarPosition as D, combineBarSizeList as te, combineDisplayedStackedData as ne, combineStackGroups as re, combineStackedData as ie, createSelector as O, defaultPolarChartProps as ae, findAllByType as oe, getBandSizeOfAxis as k, getBaseValueOfBar as se, getCateCoordinateOfBar as ce, getColorsCount as le, getNormalizedStackId as ue, getTooltipNameProp as de, getValueByDataKey as fe, getZIndexFromUnknown as pe, interpolate as me, isCategoricalAxis as he, isNullish as ge, isStacked as _e, matchAppend as ve, mathSign as ye, noop as be, resolveDefaultProps as xe, selectActiveTooltipIndex as Se, selectAngleAxis as Ce, selectBarCategoryGap as we, selectBarGap as Te, selectChartDataAndAlwaysIgnoreIndexes as Ee, selectChartDataWithIndexes as De, selectChartLayout as A, selectPolarItemsSettings as Oe, selectPolarViewBox as ke, selectRadiusAxis as Ae, selectReverseStackOrder as je, selectRootBarSize as Me, selectRootMaxBarSize as Ne, selectStackOffsetType as Pe, selectTooltipAxis as Fe, selectUnfilteredPolarItems as Ie, sliceConfig as Le, sliceKey as Re, svgPropertiesNoEvents as ze, svgPropertiesNoEventsFromUnknown as Be, truncateByDomain as Ve, useAnimationCallbacks as He, useAppSelector as j, useMouseClickItemDispatch as Ue, useMouseEnterItemDispatch as We, useMouseLeaveItemDispatch as Ge, usePolarChartLayout as Ke } from "./peach-app.chart-tip-Dv3VREj-.js";
+import { AnimatedItems as e, CHART_CARD as t, CHART_COLORS as n, Cell as r, ChartBackground as i, ChartContainer as a, ChartEmpty as o, ChartLegend as s, ChartLegendContent as c, ChartTip as l, ChartTooltip as u, ChartTooltipContent as d, DefaultZIndexes as f, LabelListFromLabelProp as p, Layer as m, LoadingIndicator as h, PolarChart as g, PolarLabelListContextProvider as _, RegisterGraphicalItemId as v, Sector as y, SetPolarGraphicalItem as b, SetPolarLegendPayload as x, SetTooltipEntrySettings as S, Shape as C, ZIndexLayer as w, adaptEventsOfChild as T, arrayTooltipSearcher as E, combineAllBarPositions as ee, combineBarPosition as D, combineBarSizeList as te, combineDisplayedStackedData as ne, combineStackGroups as re, combineStackedData as ie, createSelector as O, defaultPolarChartProps as ae, findAllByType as oe, getBandSizeOfAxis as k, getBaseValueOfBar as se, getCateCoordinateOfBar as ce, getColorsCount as le, getNormalizedStackId as ue, getTooltipNameProp as de, getValueByDataKey as fe, getZIndexFromUnknown as pe, interpolate as me, isCategoricalAxis as he, isNullish as ge, isStacked as _e, matchAppend as ve, mathSign as ye, noop as be, resolveDefaultProps as xe, selectActiveTooltipIndex as Se, selectAngleAxis as Ce, selectBarCategoryGap as we, selectBarGap as Te, selectChartDataAndAlwaysIgnoreIndexes as Ee, selectChartDataWithIndexes as De, selectChartLayout as A, selectPolarItemsSettings as Oe, selectPolarViewBox as ke, selectRadiusAxis as Ae, selectReverseStackOrder as je, selectRootBarSize as Me, selectRootMaxBarSize as Ne, selectStackOffsetType as Pe, selectTooltipAxis as Fe, selectUnfilteredPolarItems as Ie, sliceConfig as Le, sliceKey as Re, svgPropertiesNoEvents as ze, svgPropertiesNoEventsFromUnknown as Be, truncateByDomain as Ve, useAnimationCallbacks as He, useAppSelector as j, useMouseClickItemDispatch as Ue, useMouseEnterItemDispatch as We, useMouseLeaveItemDispatch as Ge, usePolarChartLayout as Ke } from "./peach-app.chart-tip-CRxYp6KT.js";
import { $b4f18e3395fe64d7$export$3d96ec278d3efce4 as M, $b4f18e3395fe64d7$export$3e41faf802a29e71 as N, $b4f18e3395fe64d7$export$b2539bed5023c21c as qe, $b4f18e3395fe64d7$export$e51a686c67fdaa2d as Je, ButtonLink as P, EmptyState as F, LOC as Ye, MEDIA_SOURCE_ICONS as Xe, NR as Ze, Note as Qe, Progress as I, SEGMENT as $e, SEGMENTED_TRACK as et, STATS_KEY as tt, SegmentedTabList as nt, SourceMark as rt, StatusLabel as it, Xc as at, Xt as ot, _8 as st, __toESM as ct, bandRows as lt, cardClass as ut, clsx as dt, errorMessage as ft, fetchStats as pt, fmtCount as L, fmtSize as R, known as mt, lengthRows as ht, mM as z, mediumRows as gt, percentText as B, playedFor as _t, playedItemUrl as vt, radialArc as yt, radialBarSize as bt, radialCeiling as xt, radialSlices as St, reachedShare as Ct, replayRows as wt, require_jsx_runtime as Tt, require_react as Et, settingsPath as Dt, uo as Ot, useQuery as kt, watchNote as At, watchedShare as jt } from "./peach-app.js";
import { Page as Mt } from "./peach-app.page-QAncjzM1.js";
import { STAT_STRIP as Nt, StatCard as Pt, statCardClass as Ft } from "./peach-app.stat-card-DsNmy_0F.js";
import { ConnectionStatus as It } from "./peach-app.connection-status-DI6kgn3i.js";
-import { ActivityHeat as Lt, BarCard as V, ExpandableRanking as Rt, PolarAngleAxis as zt, selectPolarAxisScale as Bt, selectPolarAxisTicks as Vt, selectPolarGraphicalItemAxisTicks as Ht } from "./peach-app.expandable-ranking-icp-Mk4j.js";
+import { ActivityHeat as Lt, BarCard as V, ExpandableRanking as Rt, PolarAngleAxis as zt, selectPolarAxisScale as Bt, selectPolarAxisTicks as Vt, selectPolarGraphicalItemAxisTicks as Ht } from "./peach-app.expandable-ranking-dFA65P9N.js";
// node_modules/recharts/es6/util/RadialBarUtils.js
var H = /* @__PURE__ */ ct(Et()), Ut = ["option"];
function Wt(e, t) {
@@ -1474,4 +1474,4 @@ function Vr(e) {
}
export { Vr as StatsPage };
-//# debugId=4e9c6c78-244e-428a-b434-99df734cc9c7
\ No newline at end of file
+//# debugId=45a38cb3-b253-4ea5-bf72-b989b6cfb31b
\ No newline at end of file
diff --git a/web/dist/peach-app.taste-page-nSIqYyl-.js b/web/dist/peach-app.taste-page-C5j4APwJ.js
similarity index 99%
rename from web/dist/peach-app.taste-page-nSIqYyl-.js
rename to web/dist/peach-app.taste-page-C5j4APwJ.js
index 493c1954f..40c1f045c 100644
--- a/web/dist/peach-app.taste-page-nSIqYyl-.js
+++ b/web/dist/peach-app.taste-page-C5j4APwJ.js
@@ -1,15 +1,15 @@
(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] = "b3f9f400-ff64-4f24-844f-651126acd037", e._sentryDebugIdIdentifier = "sentry-dbid-b3f9f400-ff64-4f24-844f-651126acd037");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "62f24d84-b5ed-47a6-8679-31d01dffdedc", e._sentryDebugIdIdentifier = "sentry-dbid-62f24d84-b5ed-47a6-8679-31d01dffdedc");
} 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 te, Text as T, 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-Dv3VREj-.js";
+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 te, Text as T, 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, SegmentedTabList as lt, Select$1 as ut, SelectItem 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 P, cB as xt, cardClass as F, clsx as I, configureTasteBrowser as St, confirmModal as Ct, cx as wt, errorMessage as L, 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 R, queryClient as z, 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, tasteDate as Kt, tasteDimensions as qt, tasteHours as Jt, tasteKey as B, tasteRefetchInterval as Yt, tasteTime as Xt, topScores as Zt, uo as Qt, useBackgroundJob as $t, useMutation as V, useQuery as en } from "./peach-app.js";
import { Page as tn } from "./peach-app.page-QAncjzM1.js";
import { STAT_STRIP as nn, StatCard as rn, statCardClass as an } from "./peach-app.stat-card-DsNmy_0F.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-icp-Mk4j.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) => {
@@ -3309,4 +3309,4 @@ function ha({ term: e, value: t, rest: n }) {
}
export { ra as TASTE_GUIDE_KEY, ma as TastePage };
-//# debugId=b3f9f400-ff64-4f24-844f-651126acd037
\ No newline at end of file
+//# debugId=62f24d84-b5ed-47a6-8679-31d01dffdedc
\ No newline at end of file
diff --git a/web/index.html b/web/index.html
index 430f0f938..dcf49d7ae 100644
--- a/web/index.html
+++ b/web/index.html
@@ -36,8 +36,8 @@ if(location.pathname==='/wall')document.documentElement.setAttribute('data-wall-
</head>
<body>
<a class="skiplink" href="#main">跳到正文</a>
-<!-- Lucide static 1.62.0, ISC. Local pinned subset; no CDN/runtime dependency.
- Climax uses Health Icons 2.0.0 sperm outline-24px, CC0/public domain.
+<!-- Lucide static 1.64.0, ISC. Local pinned subset; no CDN/runtime dependency.
+ Climax uses Health Icons 3.0.0 sperm outline-24px, CC0/public domain.
Phosphor 2.1.1 regular, MIT: filled glyphs where a stroked icon cannot say it. -->
<svg aria-hidden="true" width="0" height="0" style="position:absolute;overflow:hidden">
<symbol id="i-network" viewBox="0 0 24 24"><rect x="16" y="16" width="6" height="6" rx="1" /><rect x="2" y="16" width="6" height="6" rx="1" /><rect x="9" y="2" width="6" height="6" rx="1" /><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3" /><path d="M12 12V8" /></symbol>
diff --git a/web/vendor/healthicons-LICENSE.txt b/web/vendor/healthicons-LICENSE.txt
index 5c020aea6..0e259d42c 100644
--- a/web/vendor/healthicons-LICENSE.txt
+++ b/web/vendor/healthicons-LICENSE.txt
@@ -1,21 +1,121 @@
-MIT License
-
-Copyright (c) 2021 Resolve to Save Lives
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
+ HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer
+exclusive Copyright and Related Rights (defined below) upon the creator
+and subsequent owner(s) (each and all, an "owner") of an original work of
+authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for
+the purpose of contributing to a commons of creative, cultural and
+scientific works ("Commons") that the public can reliably and without fear
+of later claims of infringement build upon, modify, incorporate in other
+works, reuse and redistribute as freely as possible in any form whatsoever
+and for any purposes, including without limitation commercial purposes.
+These owners may contribute to the Commons to promote the ideal of a free
+culture and the further production of creative, cultural and scientific
+works, or to gain reputation or greater distribution for their Work in
+part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any
+expectation of additional consideration or compensation, the person
+associating CC0 with a Work (the "Affirmer"), to the extent that he or she
+is an owner of Copyright and Related Rights in the Work, voluntarily
+elects to apply CC0 to the Work and publicly distribute the Work under its
+terms, with knowledge of his or her Copyright and Related Rights in the
+Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be
+protected by copyright and related or neighboring rights ("Copyright and
+Related Rights"). Copyright and Related Rights include, but are not
+limited to, the following:
+
+ i. the right to reproduce, adapt, distribute, perform, display,
+ communicate, and translate a Work;
+ ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or
+ likeness depicted in a Work;
+ iv. rights protecting against unfair competition in regards to a Work,
+ subject to the limitations in paragraph 4(a), below;
+ v. rights protecting the extraction, dissemination, use and reuse of data
+ in a Work;
+ vi. database rights (such as those arising under Directive 96/9/EC of the
+ European Parliament and of the Council of 11 March 1996 on the legal
+ protection of databases, and under any national implementation
+ thereof, including any amended or successor version of such
+ directive); and
+vii. other similar, equivalent or corresponding rights throughout the
+ world based on applicable law or treaty, and any national
+ implementations thereof.
+
+2. Waiver. To the greatest extent permitted by, but not in contravention
+of, applicable law, Affirmer hereby overtly, fully, permanently,
+irrevocably and unconditionally waives, abandons, and surrenders all of
+Affirmer's Copyright and Related Rights and associated claims and causes
+of action, whether now known or unknown (including existing as well as
+future claims and causes of action), in the Work (i) in all territories
+worldwide, (ii) for the maximum duration provided by applicable law or
+treaty (including future time extensions), (iii) in any current or future
+medium and for any number of copies, and (iv) for any purpose whatsoever,
+including without limitation commercial, advertising or promotional
+purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
+member of the public at large and to the detriment of Affirmer's heirs and
+successors, fully intending that such Waiver shall not be subject to
+revocation, rescission, cancellation, termination, or any other legal or
+equitable action to disrupt the quiet enjoyment of the Work by the public
+as contemplated by Affirmer's express Statement of Purpose.
+
+3. Public License Fallback. Should any part of the Waiver for any reason
+be judged legally invalid or ineffective under applicable law, then the
+Waiver shall be preserved to the maximum extent permitted taking into
+account Affirmer's express Statement of Purpose. In addition, to the
+extent the Waiver is so judged Affirmer hereby grants to each affected
+person a royalty-free, non transferable, non sublicensable, non exclusive,
+irrevocable and unconditional license to exercise Affirmer's Copyright and
+Related Rights in the Work (i) in all territories worldwide, (ii) for the
+maximum duration provided by applicable law or treaty (including future
+time extensions), (iii) in any current or future medium and for any number
+of copies, and (iv) for any purpose whatsoever, including without
+limitation commercial, advertising or promotional purposes (the
+"License"). The License shall be deemed effective as of the date CC0 was
+applied by Affirmer to the Work. Should any part of the License for any
+reason be judged legally invalid or ineffective under applicable law, such
+partial invalidity or ineffectiveness shall not invalidate the remainder
+of the License, and in such case Affirmer hereby affirms that he or she
+will not (i) exercise any of his or her remaining Copyright and Related
+Rights in the Work or (ii) assert any associated claims and causes of
+action with respect to the Work, in either case contrary to Affirmer's
+express Statement of Purpose.
+
+4. Limitations and Disclaimers.
+
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
+ surrendered, licensed or otherwise affected by this document.
+ b. Affirmer offers the Work as-is and makes no representations or
+ warranties of any kind concerning the Work, express, implied,
+ statutory or otherwise, including without limitation warranties of
+ title, merchantability, fitness for a particular purpose, non
+ infringement, or the absence of latent or other defects, accuracy, or
+ the present or absence of errors, whether or not discoverable, all to
+ the greatest extent permissible under applicable law.
+ c. Affirmer disclaims responsibility for clearing rights of other persons
+ that may apply to the Work or any use thereof, including without
+ limitation any person's Copyright and Related Rights in the Work.
+ Further, Affirmer disclaims responsibility for obtaining any necessary
+ consents, permissions or other rights required for any use of the
+ Work.
+ d. Affirmer understands and acknowledges that Creative Commons is not a
+ party to this document and has no duty or obligation with respect to
+ this CC0 or use of the Work.
diff --git a/web/vendor/healthicons-ORIGIN.md b/web/vendor/healthicons-ORIGIN.md
index a731f5cb2..e60789dd0 100644
--- a/web/vendor/healthicons-ORIGIN.md
+++ b/web/vendor/healthicons-ORIGIN.md
@@ -1,6 +1,6 @@
-# Health Icons 2.0.0
+# Health Icons 3.0.0
-- npm 包:`[email protected]`
-- npm lock integrity:`sha512-fl2Ja5CUwtWqdHf5Q0/V7OEGGQjTHlMrDZy0bwgE5ZvYnVwR51WLlLonl4NY6+7urEJchCnWUJglTUEEUS1dhg==`
-- 许可证:npm 包为 MIT,图标由上游声明为 CC0/public domain;原文见 `healthicons-LICENSE.txt`
+- npm 包:`[email protected]`
+- npm lock integrity:`sha512-Ta5S7xBo5wKrLvj6OUyMOPAE07yq5DoJfeyufGql/WpZq1KEbstHOF+OmQtd4LwPzoAMmIhZyQz8KkRDrWweqg==`
+- 许可证:CC0-1.0;原文见 `healthicons-LICENSE.txt`
- 消费者:`web/index.html` 的 `sperm` outline-24px symbol
diff --git a/web/vendor/lucide-ORIGIN.md b/web/vendor/lucide-ORIGIN.md
index 2620e4981..ea708ca63 100644
--- a/web/vendor/lucide-ORIGIN.md
+++ b/web/vendor/lucide-ORIGIN.md
@@ -1,7 +1,7 @@
-# Lucide static 1.62.0
+# Lucide static 1.64.0
-- npm 包:`[email protected]`
-- npm lock integrity:`sha512-WBZA/m2PvkFpMGHDtsBck5P2A9G4ehLlYu4GwwICcmEm1BvYVgj00lCDxKRWLlbMlOibLaiwdQ88G5pHkSWgwA==`
+- npm 包:`[email protected]`
+- npm lock integrity:`sha512-UxWmMteOXbKHI5E4f2qVtxCAAsI9gsInYK1lNw0nrOA0w4FkJeOVZ+UOV6aGA2377FZe3qyiFYq3lqjBKZ6OuA==`
- 许可证:ISC;原文见 `lucide-LICENSE.txt`
- 消费者:`web/index.html` 内联的 127 个 symbol