From 1906d6d4f7900e2be4d6923c705b841dabb3ca0b Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 10:30:28 +0800 Subject: [PATCH 01/10] Add live-stream-recorder Mini App (neutralized brand) --- README.md | 1 + README.zh-CN.md | 1 + .../.minimax-plugin/plugin.json | 17 + .../live-stream-recorder/LICENSE | 21 + .../charlesnty612/live-stream-recorder/NOTICE | 69 + .../live-stream-recorder/README.md | 46 + .../live-stream-recorder/README.zh-CN.md | 46 + .../live-stream-recorder/icon.png | Bin 0 -> 90496 bytes .../licenses/rust-srec/ATTRIBUTION.md | 63 + .../licenses/rust-srec/LICENSE-APACHE-2.0.txt | 201 ++ .../licenses/rust-srec/LICENSE-MIT.txt | 21 + .../licenses/rust-srec/NOTICES.json | 55 + .../licenses/uncut/LICENSE | 21 + .../licenses/uncut/THIRD_PARTY_NOTICES | 1896 +++++++++++++++++ .../client/assets/AddOutline-C9wx-dLG.js | 110 + .../client/assets/AppShell-DmAH_wjP.js | 1 + .../client/assets/AppShell-dzC4MVjs.css | 1 + .../client/assets/CheckboxGroup-CVNCmOpb.js | 105 + .../assets/CloudDownloadOutline-Bwk608FY.js | 1 + .../assets/DocumentTextOutline-BdYVNaS7.js | 13 + .../client/assets/DownloadOutline-CvleeChj.js | 1 + .../client/assets/EmptyState-BJiq6Btv.css | 1 + .../client/assets/EmptyState-fy8GfigG.js | 1 + .../client/assets/FilmOutline-BX3jJC51.js | 1 + .../assets/GitCompareOutline-DCA6_Iop.js | 1 + .../miniapp/client/assets/Input-DOY9MBk2.js | 259 +++ .../client/assets/LoginView-BgEHpUPB.css | 1 + .../client/assets/LoginView-DDTKasOc.js | 1 + .../client/assets/PulseOutline-DBaBm7B1.js | 1 + .../client/assets/RecordingsView-g6Rw4_09.css | 1 + .../client/assets/RecordingsView-jJfZw4rU.js | 235 ++ .../client/assets/RefreshOutline-DsgjGZK9.js | 1 + .../client/assets/RelayView-D751WEBC.css | 1 + .../client/assets/RelayView-FDkwT__U.js | 1 + .../client/assets/SearchOutline--3GBf81B.js | 1 + .../miniapp/client/assets/Select-DlP0Rw4u.js | 410 ++++ .../assets/ServiceErrorView-3yOnzd5g.css | 1 + .../assets/ServiceErrorView-DxAvLK-K.js | 1 + .../client/assets/SettingsView-C7TOuPQQ.js | 3 + .../client/assets/SettingsView-ogFFTr5l.css | 1 + .../client/assets/ShortVideoView-9SicR-7j.js | 167 ++ .../client/assets/ShortVideoView-cKyh5vit.css | 1 + .../miniapp/client/assets/Spin-BbwWICDg.js | 43 + .../client/assets/StreamersView-Bg-GMiEY.css | 1 + .../client/assets/StreamersView-CmWF_crB.js | 117 + .../miniapp/client/assets/Switch-4rsLpKoT.js | 102 + .../client/assets/VideocamOutline-Dxd9Z4sO.js | 1 + .../_plugin-vue_export-helper-DQkFygL-.js | 9 + .../client/assets/empty-live-dVnauh0o.jpg | Bin 0 -> 27265 bytes .../assets/filename-template-DBJXvN0y.js | 1 + .../miniapp/client/assets/format-B8CnorUZ.js | 1 + .../miniapp/client/assets/index-CTfv2gCy.css | 1 + .../miniapp/client/assets/index-Ch4EWX-G.js | 816 +++++++ .../client/assets/login-art-Ct2j8Jdv.jpg | Bin 0 -> 40790 bytes .../miniapp/client/assets/logo-BjHPa6CA.png | Bin 0 -> 12782 bytes .../miniapp/client/assets/logo-X-myaeP_.js | 1 + .../client/assets/runtime-bridge-DmDzFGpU.js | 1 + .../client/assets/streamers-Bl5LBoP5.js | 2 + .../client/assets/use-compitable-CjxNERC_.js | 1 + .../client/assets/use-message-sIwnQEJL.js | 117 + .../miniapp/client/index.html | 14 + .../live-stream-recorder/miniapp/miniapp.json | 47 + .../miniapp/node/config.mjs | 119 ++ .../miniapp/node/events.mjs | 137 ++ .../miniapp/node/proxy.mjs | 435 ++++ .../miniapp/node/server.mjs | 123 ++ .../miniapp/node/sidecar.mjs | 307 +++ .../live-stream-recorder/package.json | 6 + 68 files changed, 6182 insertions(+) create mode 100644 plugins/charlesnty612/live-stream-recorder/.minimax-plugin/plugin.json create mode 100644 plugins/charlesnty612/live-stream-recorder/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/NOTICE create mode 100644 plugins/charlesnty612/live-stream-recorder/README.md create mode 100644 plugins/charlesnty612/live-stream-recorder/README.zh-CN.md create mode 100644 plugins/charlesnty612/live-stream-recorder/icon.png create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/ATTRIBUTION.md create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/LICENSE-APACHE-2.0.txt create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/LICENSE-MIT.txt create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/rust-srec/NOTICES.json create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/uncut/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/uncut/THIRD_PARTY_NOTICES create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-C9wx-dLG.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DmAH_wjP.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-dzC4MVjs.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CVNCmOpb.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Bwk608FY.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BdYVNaS7.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-CvleeChj.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-BJiq6Btv.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-fy8GfigG.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BX3jJC51.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-DCA6_Iop.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DOY9MBk2.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BgEHpUPB.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DDTKasOc.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-DBaBm7B1.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-g6Rw4_09.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-jJfZw4rU.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-DsgjGZK9.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-D751WEBC.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-FDkwT__U.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline--3GBf81B.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-DlP0Rw4u.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-3yOnzd5g.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-DxAvLK-K.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-C7TOuPQQ.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-ogFFTr5l.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-9SicR-7j.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-cKyh5vit.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbwWICDg.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Bg-GMiEY.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-CmWF_crB.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-4rsLpKoT.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Dxd9Z4sO.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DQkFygL-.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/empty-live-dVnauh0o.jpg create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/filename-template-DBJXvN0y.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/format-B8CnorUZ.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-CTfv2gCy.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Ch4EWX-G.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/login-art-Ct2j8Jdv.jpg create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-BjHPa6CA.png create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-X-myaeP_.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/runtime-bridge-DmDzFGpU.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bl5LBoP5.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CjxNERC_.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-sIwnQEJL.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/miniapp.json create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/node/config.mjs create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/node/events.mjs create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/node/sidecar.mjs create mode 100644 plugins/charlesnty612/live-stream-recorder/package.json diff --git a/README.md b/README.md index a085538a..abe92dd2 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques | MiniApp | What it does | Author | | --- | --- | --- | +| [Live Stream Recorder](plugins/charlesnty612/live-stream-recorder/) | A native workbench for multi-platform livestream recording, danmaku analysis and highlight clipping; requires a user-supplied biliup engine | [charlesnty612](https://github.com/charlesnty612) | | [Work Group](plugins/liuhaolin07/miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8/) | A chat-style work group where several MiniMax Code Agents reply in one thread, mention each other to hand work over, and ask you for tool approvals and answers as cards in the page | [liuhaolin07](https://github.com/liuhaolin07) | | [Prompt Enhancer](plugins/skypata/prompt-enhancer/) | Rewrite a one-line request into a complete prompt for a coding assistant; the model list and reasoning levels come from MiniMax Code's own configuration, and the rewrite runs on your signed-in account | [skypata](https://github.com/skypata) | | [Postman Lite](plugins/ssugarr/postman-lite/) | A lightweight local API request tool: build requests, send them through a local proxy that sidesteps browser CORS limits, and inspect responses, with collections kept as plain JSON | [ssugarr](https://github.com/ssugarr) | diff --git a/README.zh-CN.md b/README.zh-CN.md index 79d64bff..012c991f 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -57,6 +57,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求 | MiniApp | 功能 | 作者 | | --- | --- | --- | +| [Live Stream Recorder](plugins/charlesnty612/live-stream-recorder/) | 多平台直播录制、弹幕分析与高能切片原生工作台;需自备 biliup 录制引擎 | [charlesnty612](https://github.com/charlesnty612) | | [工作群](plugins/liuhaolin07/miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8/README.zh-CN.md) | 聊天式工作群:多个 MiniMax Code Agent 在同一个群里回复、互相 @ 接力,工具审批和提问以卡片形式在页面里完成 | [liuhaolin07](https://github.com/liuhaolin07) | | [提示词增强器](plugins/skypata/prompt-enhancer/) | 把一句话改写成可以直接交给编码助手的完整提示词,模型清单与推理等级取自 MiniMax Code 自己的配置,改写走你已登录的账号 | [skypata](https://github.com/skypata) | | [Postman Lite](plugins/ssugarr/postman-lite/README.zh-CN.md) | 轻量的本地 API 请求工具:构建请求、通过本地代理转发(绕过浏览器 CORS 限制)、查看响应,集合以纯 JSON 保存 | [ssugarr](https://github.com/ssugarr) | diff --git a/plugins/charlesnty612/live-stream-recorder/.minimax-plugin/plugin.json b/plugins/charlesnty612/live-stream-recorder/.minimax-plugin/plugin.json new file mode 100644 index 00000000..b05f36cf --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/.minimax-plugin/plugin.json @@ -0,0 +1,17 @@ +{ + "schemaVersion": 1, + "name": "live-stream-recorder", + "displayName": "Live Stream Recorder", + "version": "1.0.0", + "description": "多平台直播自动录制、弹幕分析、高能切片与短视频备份工作台。", + "author": "charlesnty612", + "icon": "icon.png", + "category": "Productivity", + "exampleQueries": [ + "打开 Live Stream Recorder", + "查看当前正在录制的直播间状态" + ], + "apps": [], + "mcpServers": [], + "skills": [] +} diff --git a/plugins/charlesnty612/live-stream-recorder/LICENSE b/plugins/charlesnty612/live-stream-recorder/LICENSE new file mode 100644 index 00000000..34ef13f8 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 charlesnty612 + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/NOTICE b/plugins/charlesnty612/live-stream-recorder/NOTICE new file mode 100644 index 00000000..359fc476 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/NOTICE @@ -0,0 +1,69 @@ +# Live Stream Recorder — 第三方组件出处与声明(NOTICE) + +本项目(Live Stream Recorder)自身代码采用 MIT 许可证,见仓库根 `LICENSE`, +版权所有 (c) 2026 charlesnty612。该 MIT 许可仅覆盖本项目自有代码, +不覆盖下列捆绑或派生的第三方组件。各组件原许可证文件已随仓库原样保留, +再分发时请一并保留。 + +## 1. biliup(上游项目) +- 出处:https://github.com/biliup/biliup (历史仓库 https://github.com/ForgQi/bilibiliupload) +- 许可:MIT +- 需保留声明:Copyright (c) 2019 ForgQi +- 说明:根 `LICENSE` 的版权行按本项目口径调整为 charlesnty612; + 上游 ForgQi 的原始 MIT 版权声明在此保留,以符合 MIT 第 1 条的保留要求。 + +## 2. DanmakuFactory(弹幕 XML→ASS 排版算法来源) +- 出处:https://github.com/hihkm/DanmakuFactory +- 参考提交:3813e93b13b087e95901d1822baf9c3540e3f3f6 +- 许可:MIT +- 需保留声明:Copyright (c) 2022 hkm / hihkm +- 许可文件:`crates/danmaku-factory/LICENSE-DanmakuFactory`(Copyright (c) 2022 hihkm) +- 声明文件:`crates/danmaku-factory/THIRD-PARTY-NOTICES.txt`、 + `crates/biliup-cli/assets/render-tools/THIRD-PARTY-NOTICES.txt`(Copyright (c) 2022 hkm) +- 说明:生产转换为原生 Rust 实现,未包含 DanmakuFactory 的 C 实现及其 PCRE2 依赖。 + +## 3. stream-gears +- 许可:MIT +- 需保留声明:Copyright (c) 2019 ForgQi +- 许可文件:`crates/stream-gears/LICENSE` + +## 4. rust-srec(mesio 下载 / 修复管线,7 个包以固定 rev 引入) +- 出处:https://github.com/hua0512/rust-srec +- 固定修订:dcdb80ee607ff6a991e5ddd86a0084a01bd945ac(2026-09-19) +- 声明许可:MIT OR Apache-2.0;本分发按 Apache-2.0 提供合规材料 +- 需保留声明:Copyright (c) 2025 the rust-srec project authors +- 上游 NOTICE:该修订下不存在(404),无从收录 +- 许可文件:`licenses/rust-srec/LICENSE-APACHE-2.0.txt`、 + `licenses/rust-srec/LICENSE-MIT.txt` +- 归属说明:`licenses/rust-srec/ATTRIBUTION.md`;机器可读清单:`licenses/rust-srec/NOTICES.json` +- 说明:本项目未修改 rust-srec 源码,仅以 git 依赖按固定 rev 原样构建链接。 + +## 5. Uncut(编辑器资源与声明来源) +- 出处:https://github.com/blazejkustra/uncut +- 固定修订:218be7f3aa23bc896c291acfc1d6b4820ea758d0 +- 许可:MIT +- 需保留声明:Copyright (c) 2026 Błażej Kustra and Uncut contributors +- 许可文件:`licenses/uncut/LICENSE` +- 随附声明:`licenses/uncut/THIRD_PARTY_NOTICES`,其中列出随 Uncut 分发的第三方组件; + DM Sans / DM Mono 字体采用 SIL Open Font License 1.1,声明原文随该文件保留。 +- 澄清:该文件所述 FFmpeg / ffprobe 为 LGPL 2.1+ 或 GPL,但明确标注 “not bundled” + (由用户自行安装、作为独立程序运行),其许可不适用于本项目,不属于捆绑组件。 + +## 6. three.js +- 许可:MIT +- 需保留声明:Copyright (c) 2010-2024 three.js authors +- 许可文件:`resources/editor/graphic-libs/three.LICENSE.txt` + +## Cargo.lock 直接依赖 +Cargo.lock 中经 crates.io / git 引入的直接依赖,声明许可均为 MIT、Apache-2.0、 +BSD-3-Clause、ISC、Unlicense 等 MIT 兼容的宽松许可(详见本报告的差异说明), +无 GPL / AGPL / MPL / EPL。本项目未 vendor 这些 crate 的源码副本, +其版权与许可声明由各自发布物携带,无需在仓库内新增署名文件。 +若后续将任一 crate 源码 vendored 进本仓库,须同步补入其许可原文。 + +## 本次整理核实(遗留 Next.js 前端移除) + +原遗留 Next.js 前端(app/ui、app/(app)、app/(auth) 等非编辑器部分)已移除; +其使用的 Semi UI(@douyinfe/semi-ui、@douyinfe/semi-icons)既未出现在本 NOTICE 原文清单, +也未以源码副本 vendored 进本仓库,随上述目录删除后不再随本项目分发,故此处无需新增或保留其许可条目。 +编辑器运行时已迁至 `editor-runtime/`,第 5 节 Uncut 与第 6 节 three.js 的声明义务按实际剩余内容继续有效。 diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md new file mode 100644 index 00000000..27038f1d --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -0,0 +1,46 @@ +# Live Stream Recorder + +[简体中文](README.zh-CN.md) + +A native MiniMax Code Mini App that turns the biliup recording engine into a desktop-style workbench: monitor multiple livestream rooms, record them with danmaku capture, replay and clip recordings, back up short videos, and manage relay tasks -- all inside the chat client. + +This package is a **client/workbench only**. It does not bundle the recording engine. You must supply a `biliup` binary (sidecar mode) or point it at a running biliup server (remote mode). Without an engine the pages still open and show an `engine not ready` state instead of crashing. + +## Install and open + +1. Copy this directory into the `plugins/` folder of your MiniMax Code workspace (or install the packaged plugin from the plugin list). Keep the hidden `.minimax-plugin/` directory and `miniapp/` together. +2. Restart MiniMax Code so the plugin is discovered. +3. Ask the Agent "Open Live Stream Recorder", or select it from the plugin list. The UI is served at `/app`. + +## Engine setup + +On the **Settings** page choose one of two modes: + +- **Sidecar (default).** Set `binaryPath` to your `biliup` executable, or place `biliup` / `biliup.exe` in `/bin/`, or put it on `PATH`. The app spawns `biliup server -b 127.0.0.1 -p --no-fleet --shutdown-on-stdin-eof` (older binaries fall back to `--relay-listen 127.0.0.1:0`) and proxies the UI to it over loopback. +- **Remote.** Set `remote.baseUrl` to the `http(s)` address of an already-running biliup server, with optional none / cookie / Bearer-token authentication. Link-local and cloud-metadata addresses are rejected. + +`ffmpeg`, `yt-dlp` and `streamlink` are optional tools used by biliup itself, not by this Mini App. + +## Tested environment + +- MiniMax Code 3.1.23 (exe 3.1.23.240) on Microsoft Windows 11 Pro (build 26200) x64. The package declares `engines.mcode: ">=3.1.20"` and `permissions`, which first require that client version. +- Client acceptance (2026-12-05, FilePanel Browser) exercised: cold start and readiness in 400-465 ms; Host-reserved `/__mavis/` returning 401 with no SPA fallback; private-route 404 interception; loopback-only network activity with zero external requests; the 584 px narrow-screen layout and both themes; the Settings diagnostics and notification permission controls. Two defects found during acceptance were fixed and re-verified. No recording engine or live stream source was available, so engine-dependent behavior was not exercised at runtime. +- Source-project structural gates: 11/11. Community-repository `npm run check` result is recorded in the pull request. +- Not verified at runtime: real recording, process-tree teardown with a live engine, multi-session / sleep recovery, remote 401 handling, large-file range playback, and local-file open routing. See the pull request for the full list. + +## Data & access + +- **Files read/written (Node):** `context.dataDir/miniapp-config.json` is created (mode `0600` where supported) and written when configuration changes. It stores `mode`, optional `binaryPath`, `ffmpegPath`, `renderToolsDir`, `desktopToken`, and `remote.{baseUrl, authMode, username, appPassword, token}`. Secret fields are blanked in the API response and replaced with `has*` flags. The binary is probed for existence at the configured path, `/bin/biliup[.exe]`, and on `PATH`; no file there is copied into the package. +- **Files read (client payload):** the package's own `miniapp/client/` static assets, served read-only. A local recording is read only when you open a supported file in MiniMax Code: the Host delivers its path, Node registers it as an opaque in-memory token (10-minute TTL), and the page reads it by token only -- the path is never echoed back. +- **File types handled:** `.flv`, `.mp4`, `.mkv`, `.webm`, `.xml` (declared in `fileHandlers`). +- **Network:** the Node entry listens only on the Host-assigned `context.listen` (loopback, dynamic port). In sidecar mode it connects to `http://127.0.0.1:`; in remote mode to the user-configured `baseUrl`. Outbound requests go only to that engine: a reverse proxy for `/v1/`, `/bili/`, `/static/`, WebSocket `/v1/ws/*`, and a 3-second `/v1/activity-events` poll. No third-party host is contacted directly by the page. There is no telemetry, update check, or analytics. +- **Spawned processes:** `biliup` / `biliup.exe` as a sidecar, including a startup `--help` capability probe, a `where` / `which biliup` PATH lookup, and `taskkill /PID /T /F` or `kill(-pid)` only as a shutdown fallback. `ffmpeg`, `yt-dlp` and `streamlink`, if used, are launched by biliup, not by this Mini App. +- **Agent turns / conversations:** none automatically. Two buttons call `window.miniapp.host.composer.append` to place text into the chat input for you to review and send: "Send diagnostics to Agent" (redacted log lines) and "Generate clip plan" (recording metadata and danmaku density peaks). Those prompts mention MCP tool names, but this package declares no MCP servers and calls no tools itself. No conversation is read. +- **Tools / Connectors:** none. `apps`, `mcpServers`, `skills`, and every `permissions` grant except `device.notifications` are empty. +- **Microphone / camera / Host navigation:** none. +- **Notifications:** yes. The Settings page reads `Notification.permission` and calls `Notification.requestPermission()` when you click "Enable system notifications"; this is declared as `permissions.device: ["notifications"]`. Delivery of livestream events depends on a running engine and was not verified. +- **State location:** durable config in `context.dataDir/miniapp-config.json`; opened-file tokens live in memory only and are cleared on dispose. No other state is written outside the Host-provided data directory. + +## Third-party notices + +This project's own code is MIT licensed (see `LICENSE`). Bundled and derived third-party components, their licenses, and attribution are listed in `NOTICE` and under `licenses/`. No recording engine, FFmpeg, or other executable binary is included in this package. diff --git a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md new file mode 100644 index 00000000..97ee219b --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md @@ -0,0 +1,46 @@ +# Live Stream Recorder + +[English](README.md) + +原生 MiniMax Code Mini App,把 biliup 录制引擎变成桌面式工作台:在聊天客户端里监控多个直播房间、录制并保存弹幕、回看与切片、备份短视频、管理转播任务。 + +本包**只是客户端/工作台**,不捆绑录制引擎。你需要自备 `biliup` 可执行文件(sidecar 模式),或指向一个正在运行的 biliup 服务(remote 模式)。没有引擎时页面照常打开并显示 `engine not ready` 状态,不会崩溃。 + +## 安装与打开 + +1. 把本目录复制到 MiniMax Code 工作区的 `plugins/` 下(或从插件列表安装打包好的插件),保留隐藏的 `.minimax-plugin/` 与 `miniapp/` 目录。 +2. 重启 MiniMax Code 让插件被识别。 +3. 对 Agent 说 "Open Live Stream Recorder",或从插件列表选择。界面在 `/app` 提供。 + +## 引擎配置 + +在**设置**页选择两种模式之一: + +- **Sidecar(默认)**:把 `binaryPath` 指向你的 `biliup` 可执行文件,或把 `biliup` / `biliup.exe` 放到 `/bin/`,或加入 `PATH`。应用会拉起 `biliup server -b 127.0.0.1 -p <空闲端口> --no-fleet --shutdown-on-stdin-eof`(旧版降级为 `--relay-listen 127.0.0.1:0`),并通过回环地址代理界面。 +- **Remote**:把 `remote.baseUrl` 设为正在运行的 biliup 服务的 `http(s)` 地址,认证可选 无 / Cookie / Bearer Token。链路本地与云元数据地址会被拒绝。 + +`ffmpeg`、`yt-dlp`、`streamlink` 是 biliup 自身使用的可选工具,不属于本 Mini App。 + +## 测试环境 + +- MiniMax Code 3.1.23(exe 3.1.23.240),Microsoft Windows 11 Pro(build 26200)x64。本包声明 `engines.mcode: ">=3.1.20"` 与 `permissions`,这些特性从该版本起可用。 +- 客户端验收(2026-12-05,FilePanel Browser):冷启动与就绪 400–465 ms;宿主保留路径 `/__mavis/` 返回 401 且无 SPA 回退;私有路由 404 拦截;仅回环网络、零外部请求;584 px 窄屏布局与两套主题;设置页诊断与通知权限控件。验收中发现的两个缺陷已修复并复验。验收环境没有录制引擎与直播源,依赖引擎的行为未在运行态验证。 +- 源项目结构门禁:11/11。`npm run check` 结果见 PR 描述。 +- 未在运行态验证:真实录制、有活引擎时的进程树回收、多会话/休眠恢复、远端 401、大文件拖动播放、本地文件投递。完整列表见 PR。 + +## 数据与访问 + +- **读写文件(Node)**:`context.dataDir/miniapp-config.json` 在配置变化时创建(支持时权限 `0600`)并写入,存放 `mode`、可选的 `binaryPath`、`ffmpegPath`、`renderToolsDir`、`desktopToken` 及 `remote.{baseUrl, authMode, username, appPassword, token}`。敏感字段在 API 响应中置空并以 `has*` 标志替代。引擎二进制只做存在性探测(配置路径、`/bin/biliup[.exe]`、`PATH`),不会拷进包里。 +- **读取文件(客户端载荷)**:仅只读提供包内 `miniapp/client/` 静态资源。只有你在 MiniMax Code 里打开受支持的文件时才会读取本地录像:宿主投递路径,Node 登记为不透明内存 token(10 分钟有效),页面只按 token 读取——路径绝不回显。 +- **处理的文件类型**:`.flv`、`.mp4`、`.mkv`、`.webm`、`.xml`(在 `fileHandlers` 中声明)。 +- **网络**:Node 入口只监听宿主分配的 `context.listen`(回环、动态端口)。sidecar 模式连接 `http://127.0.0.1:<空闲端口>`;remote 模式连接用户配置的 `baseUrl`。出站请求只发往该引擎:`/v1/`、`/bili/`、`/static/` 的反向代理、WebSocket `/v1/ws/*`、每 3 秒一次的 `/v1/activity-events` 轮询。页面不直连任何第三方主机;无遥测、更新检查或统计。 +- **拉起的进程**:sidecar 模式的 `biliup` / `biliup.exe`,包括启动时的 `--help` 能力探测、`where` / `which biliup` 的 PATH 查询,以及仅在关闭兜底时使用的 `taskkill /PID /T /F` 或 `kill(-pid)`。`ffmpeg`、`yt-dlp`、`streamlink` 如被使用,由 biliup 而非本 Mini App 拉起。 +- **Agent 轮次 / 会话**:不会自动触发。两个按钮会调用 `window.miniapp.host.composer.append` 把文本放进输入框供你确认后发送:"把诊断交给 Agent"(脱敏日志)与"生成切片方案"(录像元数据与弹幕密度峰值)。这些提示词提到 MCP 工具名,但本包不声明任何 MCP 服务,也不自行调用工具。不读取任何会话。 +- **工具 / Connector**:无。`apps`、`mcpServers`、`skills` 以及除 `device.notifications` 外的所有 `permissions` 授权均为空。 +- **麦克风 / 摄像头 / 宿主导航读取**:无。 +- **通知**:有。设置页读取 `Notification.permission`,点击"开启系统通知"时调用 `Notification.requestPermission()`;已声明为 `permissions.device: ["notifications"]`。直播事件的实际送达依赖运行中的引擎,未验证。 +- **状态存放位置**:持久配置在 `context.dataDir/miniapp-config.json`;打开文件的 token 只存在内存中,dispose 时清空。宿主提供的数据目录之外不写入其它状态。 + +## 第三方声明 + +本项目自有代码采用 MIT 许可证(见 `LICENSE`)。捆绑及派生的第三方组件、其许可证与出处见 `NOTICE` 和 `licenses/`。本包不含录制引擎、FFmpeg 或其它可执行二进制。 diff --git a/plugins/charlesnty612/live-stream-recorder/icon.png b/plugins/charlesnty612/live-stream-recorder/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..52c17150ab1406d63727652e9a4c43aaa91e050b GIT binary patch literal 90496 zcmb@tbyQqU(=R%>1ef6MK7$PIF2NyK@WEY!Lm&{`-Ghao!QI{6-CctF;eFos-22_{ zo^{S2_pVuc?b=nfO^b9jdG-jfzZ&3;+O7Wo0B(0RZTC5*mQ`ubUU4c-i|6 z$w5Zj`TY*{&!t4uGY0^`VMDZJ&17X60f_Hh1OOov+&^;T_a~zN&{pp>JrvA;+5rIA z(Em4W8G`x`-|1Zk00sLG{V&r{|AqcX^e^#$xex$=7z6<9I|sSXESAz|cV zr1x%Gk5b*k0rF106XNV(pt7_cC9@u-CdA3v(%$Z!4|;!6b~RR$c&By$tGa~RKboR8 z=Cc2i=~04M*;zqcU{(+i#LLYJV&wvY{?SkuQ~O_7`v>x;cQ5`e^LaO;W@&C`7Gj?uMurUzG1L0uj02zaMcuj!39K7tj?53vguz?^m4ighzULzno zFAqC61jGU1Fl9F~2J>>8n6iV}xwv_`xy^tO4kJ?@Ag>t@CkL1t1OXd^!Q4DN5Mu}j zFOZuDWXi>5#>>vd3j~8qO^hLCyn2*A%>O^)6|=N6wX`$;Cn941SImL`vhv@NL%^Kx z3FPH^2WJd2<}iks8gUz$LCk3gSN-h=m_$U6V` z0V-qUZ1I0^n)81?@FQ0vU{vT!TU}SFOV*mdt^ncipe@gwol`{K# zDO39Rbl^B#0{|ERSqV|~uNfz;NY&K+j{zU(%3R_LFlG^^Q`3juz6L< zZ0RASaf+G~U^xX-n|+j5Kw#&ksJ`qqNokgL2f<~x^ku~3Id*0Ej!r*9N<5+C`)MmR z>$O0>`xNKe3}>B(ORyU|6g|xDdGN#k|tbhXf4}}}6gWBt| zjBt@>lzfBoe)Egejn3-D5vp4A!z#vPug)W(_T}a4 zQhCWIwWrH@gmv~xN2;`K0;HsmbL|V?XGk}OV)`NqA)0xIH{`ae1p8ktmF;&hYDghn zjt_M>cO`CLu8Qj#*Y;w7ib(Wh=$Fth#>n_8l539m5)Hc>NQZtSva**t&!}NE=~f zvOA+V#)+rD7%aF@WxeQ@0gkNM#Ae-BElONvTHkCZez?S{&*aid=O#8w!zQzLD2^ZX z8&ZlJ!Mi&)ovoU!@Yh@0_)=Px))+(#$Sj<=x7NnKzsdrp3d;JTsQ$Su@>p9MTjt|s z3IAO;5wn8DQHgs_g*v5FyI47Im04A)?rI5Fskr!DWIHA!uPu6?o#fg*^GEUZnyIBu zEoCX{#4mw6oyT5ntowReh=$%`u6UU9z)*3B&a)q4^Eqnw3efR}SdCP`)z$@0dA@6+XPzq9}ieZEJI z+uLf=4}=_5bssF$xTg_q2{eW=zfM45sV2qDa7nJCpk=s>GbSq$b+@xri;@o+3;3#^ zStK44`ps@{7?`-BAZq;MU$Me=dVJxUmuTU_f|NZs^EWM|92 zGRwRi{9q(V9tso%Z-ox)V(}ID;&aDvb+ijkxO)8RO@;j2OFIy$8FZopN(={$%aKU& z_In&+;#JF7l48UQwURI{&dBz&k$|sl(xNnz!JAKUJInjBNmVGceVPae~@UE3om?~XGFiFWZitMd4rc=D9Zi?%x~O`zFtB})VpM= zgFg}Zigam4`)$dgfo3z5us$V|D2dO^K#WpJLY##u4qT82Vv?!3(a&R36uNQgXU4eT znOH)Xj|(mAwflW*FeJc?UtLagxGSW>6ju;!ROrQ`t4R?q<8!*)(7AG;(f*X6Rv*gb ze+b#)EJMsFn!7nsG>O^c-%C)M`pDZ7U-;``m79t5@DI;xwOBe~k)88OCuES*=$dQ2 z2gt03KF?f>wn0tkf9dPl&A}4&sgExE7^kpn|0MRgeGCc>0bEuh< zW@SfdE=CM9delV?P55eKQ@&K&H*v<&u?7% zt9o2}*GztPmfCsACYy^+@f_VaEH9aCMhJUxmZYnVMed=&&a>=fGR3xLHbgGalAkUo zY9K|0#JUZOJ%Ck4{i`En!{yUX(*>HUZqAiz!jRB*?0!}IsicH*a{a<+q+n^DkE^y( zCF~|r+J9SFdqYd_IS&NjZ^SyU}wj@dlN-$@$CDJ!QR53m^G?U;jr21 zMswH!lT2|9m?sSdQ}~zJSZmWCNq_RchnaGo%2}YI-)?69lKsv6drtV~r{LOT2FLFk4}V+&tkl}AdY4_A0|gf`*!oHIqrY6rJ@6Nl!3^Q;8% zeuTi1OMfje@C;B> zxNbdNODI#o2$iZx>0cDu=kLFF-OCNi+2q^dCY8Ss)f;SGF<4`?6|8hR_VR@fHpp$9 zeuB1d5F>sI8a0Kf+m%xa{KZhhn&jRG7UrXt)-k4#FR0Gq=W%JXu7Ty49UPCnNSUoQ zhz7@(@XB|B>)3gbnEX#wf7mwpc4|$eK?LBo8DdSmFTzs(Qf7eFWMpb_kMiV7YQAKG#OR&5s?5}SC%S zNY9V#Xu6wia9Y1fnhNels_n_}Et2CX3sU*9XWf6oR(**i%&-yhSsFcIyIMNS)G@5? zO~sm{t&Rfz;!hpYN-y3wchvbC%0+2A_&Ze*SsQh;`M67j?=Cz<0VnNSHs(p3d;jpsBi{&rt+R&nftGg zA1@Se05X}i3%yG|@0+-VUiO;XYp0i;^7PY~!8jqA9m3~?zqwSY5>*Dzw_UOBr`Oc3 z#@c>-pAkX>@)A8hUlJu~izKHf**U$;Ac*ho{Pmb3=l z>}ANOz2gBa65q5D#agI9;`6>E+-dOlEa5q4@Cb>P?Ar<36B_$nPz|M92W`=V=4S6o zH!Xix<5D$nWvJMM{^t;W!*u)=e(M{z1nuoo7E&#{^kpYQ_8T@c-7@?F0n+m}i)~1q zWPN_TNiy2b+Th_ID2_oXBL7cPu#uAtR$hCig$Ji{@()bXS7&dfK4@lNR6Yr3-+%|g zOV^UPULVHTU-X^pt+Wnxf!JHVv>k0}jwrU{-A-)nS+6!ezGjYZWwk`MfI4->%JzxD z;>0m)ArH!e6O<0Q{Awuqj6tbG1sl3dX4Xt7twa}aPCWMQ*N9G|=tI*+*JO|1rrRhT zlq<~P#OAYX9?2nkk1ORaPh114*V|QlMvo_ot1hEWFSOx{mD?G7FqM{78<8vJMeXr7 z!(btbYESU;*T^CX#rLk?!g9SH`FUxKX)x~WzDu`QZu6F3X7j-~Fjt)_>C!PJ#&1%( zB(&<%sdb9XO2JEw8s8reX`3B!EBC*#(ldSk%J$8g)Gwp%l*s(+T(&gh-N+)LS=WXe-hpOzlSZOd@n10#Il;&28Q{(%$!2hxfw_H3B1 z>??gzhaVLpovWsT1&Tg3Jy0)d!c^iARr2z=xKb^eCd}{^Oebb$P=h{@1%#c}F91et zVZds5BStWaq+^~O_M^cAa>YD~xhZM_*;!VQX4DR1V;xfH>RMNrW9|M@BVX|5N0+KS zUqEJQ8n=6kO(fJphQp}b?#vzxUoU8v**2=(3A!ia$3sRp{QZ}@K0pQv7k6Yv-0(?$ zJk5}%^+oS@Pr!&NyhXAtJD^CKH|uXvV?1a|kZ2g!xhWeA2KbV2{>dF7yspsM^}yRt zUaz4uo8vku{pvSa<&!==nUtof%buN{q*F06PD~NrM-{Pd_IwxqWOTLLMA)7yJ}RM9 zGj{id#VzJ?TQC3n)9rVEO-2&dhIlo~B2$9ZK~AS5l#arO^kshGZM^VRfovP1iPiN_ zF&88m=pSlA;Wrut5~d?QWGQ{@%yxBZnJR-(3?5m6^ZkG#LYGP0oZ;^aLj-}TbMys^ z7N*u?YauwCg!`X)obGVS)T8n2Ryn;#n>FnWbebQJD|_c;oA>MEsFm4u2Db~GL&Vg> zYi0)cFzZ2$i3TReAK#;PWWYJbpyZDiOTCcc^jgqi{8aVdK(_Bn&k6EWWKr6eS9Jy4 z7MFC3=lllMF$~dUL*6g&jP7m>ck*QlSG`79i-?Y;J@=U-Y+p#aX$O+5_DAo6#14%$ zlZAEc5?H)vtL-2*$;D?&D}X5wCbv#`yC>T6(tN%Yty2&cLpBy9PIKMIn?*{W_5VrS=UA z^@MRPOxy9yY8d1YKE6q7uo@a08t?6S)^%?O>q;b!T*OkiPAfm7LW@60jF4T+A>A;4 zJyIm6 zs3}Y@TD0ox?>cMr1?dXCD)MQ^W<9KQZa(X&X#~s%Um_=YZ-)F2LpWcRr+--e7EAe>0cWB;9br%w zh3Yb$&m?)4A8%>eVtmw)J4b8Ae?`DS1UQzVURi%mWel5V`w~?2j}IN*?BmEC{pNB> zhDM7Yw_+9f7AX(cis8&h6i%1yO?=re0vA|K556M z-Xz*Ac8}HdEqKDbcUGj`*K+0@!|3kx+mx3g=Yh1;^6SGqmC=!zov905W~s|A-!YMq z*|VA5&{LzX#fZ8ykSxP*$Rp*I=V}&Zbbj2hYc+Lp+McH)CCV_6h-a6A0@b6Q3=;J27%uxR?BMK*V_QNu8$fW;|Wy#n}&?JmF8eHboE%Uqdzi+qq0@OL?e@ z7bXKwBEu#`4LT<5bN%~zo0jS-97_-&ex*jSPLffvWV#DgDak76IHsA+LlRLgncE0? z!2yq-E!e0<+X`n1e|}g99 zzMjC^uJ)42Y%oV=62bJ{TwYjIx5svx9hpv%x)bRjDQ*e+^kn;{v$fF9ZrjHVWz1iP zy9!0U!>6?mp@dw;xyjo<8dJrMiP%ZR4)S18z;Q;1anL zh%U+C`LTciq^jxNxW~!@l72V6kKLK|v*;x#ZPxm$gPQL6`q@wi7pun!O?gMPZeOXa za<&Oi`t~DN@mz1d2;x%((VrR=9&1PC{guxV#n-jx7E zLf(}B2ol2$ZYdPzeLaR&E8r5X9UutsWX?oAFx7@eZ?WlvE>kxSeGN~249Kdu1lb5@ zN*y@CVDA@!1U5BD1-JvyU}mFL+jEVm>F(=zA9Iyk;eQc5PeUscT#ZN`rI@@VUZ{lQ zbTZxzT=IMw5?u-_I(Lwv{o&krkMq5uYkR(1jhK`%%RvYFo-?$<(oh_q)d$#}d(cJG zU0c$Sv!Rp`2qwSl8$g2bPqA&*7k`TlXIy?LFVTgvNyVRX+Fsq1h2@Xrtahg6HA*gY zDhu@%b?xsjxevSA{KI{(W?2g=;iRVS+HAz>We%}g^)wC;!{a$JmD4^{&EWtn)1!h7 zgGU(om!9{p3ERDq@oX4;G#*FzrXK#5Q8AQkgr(5}=tv_n?f8Hd!b`zN9E(AQaLVfP zilV$<^t;QF)P_(Wf-%Ns+yd$Zv-QU1-8FOLxt9ISU?ym4!CE#%%B{9uVHpZ*cBM2H z-qb+GE&^!2ATpv})i4>p9)0q89bq&YROVngF>f@V91J-OCkEflU`J2SUL9?ynM5z% zQ$5!=BJSh-c+`3*qIzg8O{E!ZX8jWIlD}irpXHo#^J8{VlQ@0WlFpd1Twgte$yAiF z;$M?MWKJ`$`qU2!Dx{`q)<``{mRjwq%bD9xCVk_}qZaUd{nn`L?(v)0mM~jqsmrXX ziKO{K9tL{nPap+V+gF}8hY|CLW2q0CSf6CWMarV5UpJE}cvmI-S`aZFPA+y5yoyO1 z;!opj@2Ezr*o?L{0htPM%2dUd6XZeLCJ%NW>db#~hG=id`-#k^e1y+D%i+=t_{LV_ zK{YI}twW~vqj;d> zYIh-%jA(s9`255`bG#a>nFpA>yr-8|6F@xAZsm#Y_IyzXx}B$wh_-B^FF(o|_)zsV z3jOt>0@)_SfT@yF{L`oPz@bF=*%EwbjMw-vA{#)t`@IF6BO#%VA&i6kZ%u4R0>krP z3cAV)j`_$(;pBSVqNHRIfA_*d?O_5jpXEKm4b8%1RCfO!OXN9PQc=*Q$r&83S|MAe*FWmzQ@otgqn z>f1_Fah7%2vBc|?%QV9TM*<13ytEMNjs}nVk_Z zIm%)P!2~GaJ2?QWvEnOJy9doR6dyMav}rI?SSX>RHq3Wu)hW5|Y`&nkWVGWgfzE6c zPDZJS;m%cj5-JyHE8-tddil+ggXn|l!0@IB~F5jfa@wYMteY!?s>Z9~KmGZL99oPseAC)e?Wj^kchjek{W~)eH{CzM z4RJyBLR~UVq(uz5laFDMxw--`0>ym&q-l|JGyMBGPxuY8q4L|i572X?y9`3FYdRhH zh&Jdd`GoBNCJsTU4{^m1&9MT9vI#ghKJBpE`Z-o8c)m4wm&Dd#T&B?#*$u0aB4~cc z_2h{RR9T&n-4OePnxzn9a=}gpZ8DavZ~h$uoWhs@q5=!_&JbcIu7}OJT9y)jKjM0c z*@XrL2~o|>&9_dM`&Hfjp=<@>k{Rv5!sIcX_Z@+BHH6B5WB>T23#b5)17GV`Vl!^aj?1Ne}e4&feh`sqM z?6t40X7qQ{H`XL}QSy=iHu?dj8Vz^{{Z1CdBf7uoWi`+_Ycr)KV4hLqk3!Ib!k2QX zAjS|uH>y99OTzxZBx%&&Gn51EGk+_6VbL6UitxV}x3yPVjeu~I1nlWlz-l7X9wJH?Qf0GwgVMVr?foTO?F&{ve zVV%W_CwiJz0R(4SIN^~9%1zKeur6KW&xJ3~FwCW}le4vw6gb7w^Iq_xDLK#DkYbUl zp-i+wpi(N-7M4ukH^wB00BDCUXv7~6Hxd$*YBRd-PV(Ao2NcIuK?Ea!~*olf3rLLGRFrjgJ6_R%S z9jeEN!%VIt;I1dBfgjLk@#glKWM0J~XOM05Tj;u^6?C28eoHBFJ|>-7k{Q54_IUJ5 zE(~~Mb8#*Gb3K&gga`Am#vkorcnUQ?4St?6#iFguxTuRD98|i>$XcAH;*9yHNmg(5 z)f|UU5Li)shjCs;+@7cj0gJxFpbsBDggVsQ&?8(HKruD^m5o*v8pnpLae)nQDVKsoOE~X$jWlidEF||vZXiGxV`*hUfcod$$|1!ApV}&Ak zpEpHEPDf1#j?cKSX)c(%v6NL;z7?n8+80Lv$0cL2hTkCFxvu;T`1$7p)%SoLV2l1Q zdALu#)WJ6teBEtrWMnVa@=RFzvJUz=T2eTEk6-{PBJAVr(gKSbaV?zfH#2{|S7;QC zQkCa;y$bkWO?@n=F-8ufr5*vnERS)uL*H~7Sjd31n|^v#o1l1Xw=eP>fb_w}rrM=; zQ}_vZPJ>ZmoBBu*a<^Lo?$AdPl6~ZsklJ<*01jrCiYGkjg{f#ZUvzpD;3(0#pd~=b ztTLOG$_80k)!CmM8jLs}(A)TeZxIGptLySeSX~LmDjZr-mX)}=GxT$y%hDLK6|rkA zcKqgUp-zQrRjF*TLlZ6LQ3ck!nfYdx^y zD`Ev!RK!Q-7CRk`j%>m*nKBQ5T@lzT-PfOGZB6$b*rkL#9N?+&qaD~`cGUNM&d;<5 z^wFJg6nq7lG~duVx$4k@)CO4^#AgXfgL9~UTmfy!#_0;=D5DCSuO6l!+KEw}dC*uf zoWq2E0`a^nl`)iwCm37=LUV&SlzTSYOmV!4vsLTMEd%(!9ZPOULWu@4(snB0?E@;y zE+vdZ!3zfoGdLO+Z#EI6YJ*Ozx1-}o_94slAk|X@;NF=cvovQlwfIpeCI|n|n#*Ap zFX-QAeu7@43jF=TX|NwEhWK%Y-Ke#hW(B{;5QU6DnJ@f6yk=nXxo(qmz(+HuXBsG@ik$v=3GNJZUW&Lro%V(&$W@yGr&dw1Ge7~la%hS65f;x zbPTDW`~F&00U~^8voSSEbFgEg<{z0KI2mx&6^8Z+s=SQu$i4DFgppS%8bk0rF%vrw zER`n~6wDM1NC4Q_OIorLVabQ7i+G9g}AD#XPV|70&MNX8gw~1-+=aTZf7v!A3 zK7vs=XVyTmt*xV|+tlX3&Ni8&4QLVKU4+O8C`K2&$@o!0FJjXV_ye%!+`MV64dvp19XkqrkP@+Bn7Oj3I3KOaU_d$-*ewW5Kw;9Hxi=hFTx9D4j$Q9tXeSmj=kvl+nQ|!jU##y--i}GWYCuLHm6F>bv3Bh~J3} z_nM8EM8+_M#3FdS3-1eVLja#iTcqj@Uw{35o?r6QcSm4wF?YiWYTvQ@;W~yuJuZ`lfO;(ip8DK31>#myWJK=*{_1zN_^X?oX zGzPu>;}}6EHJD^kd$OvqPy?DItBZdo9*(hY0xJeSKQP{-!xmHRi%)$O)qC_fMN1<@irNCW$K?Z)b!LEvYQOxQ;i=NXp#7x_;FMqc{^ z&GhJf)gV4HkPcjiPY9=EA>7I;Jv#udGwR9>w6_@@1_x^jkP&BuOCyYty%&&=MP*l> zy%3DZy{Oq9Fl(G3utC=xu!mP$U3@O+3|(S;;>D3 zdHUD*LBT-uu&o^ggm88`yP#0DLxYzcU8H-Q`lbP`W?BB$%UhdMSrvAUU2@ zL>KZS!z#5>C5p-g%Me0P8%{C5eWNs)^2JGC`AuIHI}{W^wP#2I2x5bnah6h1meT#0 z)SWL}KbFml1o0(#Q1&QNy4`u1kDaZ19@8;pSc;?sCv4@t8m4+$&PW+x2GD*k`S2;oP0WK)Rq1XSC(!{yfK|`F8bX#T# zzbrE1U=tcZmtPSu!5UVxCsA$?%c~aj0rk5ETzUJqKf$VSEejjCY9-d^fx^3L5g*_y zCy}2!cclUhLE65aOdH=!^oSKIoR8SED*Qs1#7Bkd`eN0=d%e%pVT*Ho{tN}Wk7eq8 zy5~a`vvF%q-vHkjf4EbKpx9&9SY8XR9~xj!_6?|xTzZQ1OHhKvEG=ulFEl}w6~h|) zqvRuCoKR^{CXPkS&_)Iw(B(;l{bCzC$!xwF`{2IndN$QtjlS00>~8ipr|UkJ8SZwc zF~z|M?f!*`DksQV<`@Q_QD`T&<`0fesLY~;bk_0R%|n*P9d-1wz`REqDw>`C%f{03 zxt{Owsr7mL+t|3Tov;A@7vUJjk4XBj^tE{uyXF*KI3^+nARw-+cNF5m>(o@pf1q33}0v-jAxml4Y!Z@9MRocp1`GbZ87>+5lGWZuwqH2Dw>OUIB zfLa;ftznMH@l0y;bch%*ZzyU0+R#Tx0oq1N=VE`vWgSQl7JS$zZMi$66ZYKCi_U6v z$ZhunAD%~1DmO?i}!8^xgTo|~I z%O0k|oG^N|a`)LV2AyW2xE8EUN2nX``mpDyK8t{wh@sVd45 zjAsyScsmzZc#8Qx)6@yt$Xey!$tNN|`Ur^_T>DS!*SzlX$liKZl?3Yi*1zmM`zBqh z+M-9uIFk^ZT^o0V&ovHm$-swyCe&C+Wn_1GZJG5 zHHaci<-N};{a!<49H?3@tKqZejYy372we`X>cqsIf^{II4ad%HMrci@0bAJx8YzsI zEzpsa1?nq|ih~|f&!i%;q)HO123Aqml7742KFOW$b1{PO!wCtxaD)40+|qiZo6Gg) z!GINZuOLBxD(*(8xGH%)9|xF&7C{0vKaGOgzP8T6I|PI)wx7ZV`uGvSqK6XGlBvoj zfhaNwHVH@Pm|8ZDzD_}^{RoA}t{)Fz#_wQk+ZgNG-?cA)N=i#Zrv-RyO#0Ygl z1z-s~Lq3qf<<*HH%^}J>>Y#||rdtqGnieQf1A@$1$`xyHAp8xS)jCWG0QvLP09m4+ z3DoC-mr%LQY+zYrr`EzEcNi!tI{p2DKiF-`XyiL}t2Ixass(*)nv8!@@y(DadV>n8 zS5Q-+g;qv0?(vCDoF})xQ_aNii6o#n)M*2{_Az+khQuD#2W28Butc2Qm6nIRcqIg@? zIrEvTGkVObD=`P*7s7Nr-^J+%C3~=@T zfa=J><;gErk&V2cre1F_H>)kiLQelK?U znHzdF%Jt;ty{-qZvxk$salgNhOcig}7427l*L~Q0_I+fO&6jSlItlZ_c^<$WCZvcd-zYKFEa!W4B_BKAnrn5tLZS^Duh_C?8ehr{5xi)Gxe z$?w*?(35P>6FA}oW0a)=4pS9WkOtI2b#e39CqXpB0!X26vGmO6JQeb!lF>Mwahws% zwL=GXcrTO?GYQDy!YF@?cEki1OZ}u^q6iP?HBImIgj+(wFR(+gldzl#H)iP}mn)Df z-`#5hJ>9L{JfFXWMEhNSC-Zx<_q{%SWAk`Z?*8*f3e8_80Uo|2FmE804`+_l0_MlB zs55nsDdJk?*hAFz(iP*M(X6*LBELW?J0;(Wd<^?!;9eT_fWL~K&P+L0-$2$?4=N%? z*M4n3O{vFvBHx#J z;l~Gq)yC5;jaV|Bl4|jb{wtL<^ZbbrK7`8)T9S=J#vldhP=%i} zJ%O2-nOninH^ViMcw`DS+$3t_!=hJrI7caKZ?mUTfX8xcae@sW> zaziMyMBSXN8)b___-6W1>t3Xnw+j+-RBvRd#&H(1}q4B1t%{J zqHilCn1{dCDMm?0vB1_GCN{|@`x6yi2RGZ8ANxWS_dQ+cgV0sYouf7LbNIR*Qs*Na zvhh9E0 zb|^4j%^WC#?C*6!rtG05TeA5<)$d@Q>WoYrp`&Y~Q37EnDDJ`VIaYa^}7u5`j&gdY0M4+1Qxkd71au!$$Mh(`lub z9k%wDm$$p|VEY%<6oFxm5!HUpPy>Ma&ht3D> z#kJ-y1ivi$J-?rRtvzcH9%B8TK5LRtX}^ReuG(MDy<-)Tid!yzl)tt1kUtDX9GK8` z_se&%-P-G0jFiX9wuWeWP#bQs>pCWiE8q?J%U*H(Pp=M?U_$b1XhXkT385;@4BqOe zj@9hP(~8x%6S^6}dIJ*3p#z4c?fY^}@CO7P*9^V{FmkY$!W6~XSH)#a$93fLZ3;UL zONa>S;q&>N8p79plT#n7o#*^LR#SKsHhb|J6dYPLVtVLG#{2n70*TfR{|?+cQSHZJ&L;R7*1ExUA`*ZWJyC?h zZMEJg~!6V_?EeNEY7OGEuC9_)`E2vik*U9uV-RxO-%dWVLuo~QW z4c0cc;yp3=Nf=;Z(w!X_I4HUDYDm+Y*dF;b6 zpoyP*Ie)gz$gfV5T<36Y78#N4Cr<;_9e|u9Iw1okgKepOgB6+BLw(7NB-F{Om-F9L9z*4_55d7F@#3%3r)sPQ8x{7%|#$k;8`XIod(=Ze- z#2tj)k;Ql>_GOt@FY1>^)5ezPmz)fIrW8#mWG5tFHJ7 zuk*iAM+6sb{oY6xlM?wG!7Qvw$%@co5>$#|o`L0&6{b)5__8eYF!JH;)&1;# zK@EYCZ{&}NdxB)1z_1hys)#Z}0ck

GyA6ESBs7qO!4T@(*b4m-FZTgyzkkp!{)X zAqrRLSq3PTYyXb<3E$yAjndwe0C%ap{}H~!Gp$K{>Y1Lx-xb>87sVprt6D6udBPY%M!nfC;s~N+iiPa>-#=kV~NXWM8ePPPw5|2p$vj=B=z;U_rtio}eTtv@l;fFR z2kXyA&h0NZYcO|h@es;k7T5=b#mQXu#;`5U;o!WZv4b5YB8{2zy(u^1~1ThE-B^JW*K1dj%I^GFoe1&ii_& zCoF7BoGe>Ja4g1uPGU~!U^EKa59%1?>eA_tWg$|+sSa2mp0TO0m*%TesYoV1%w1Uw zJ#TnYYrmOAXup4Wo+>C2i}FAHgdSDiUpyxjT{Bocq7^R_dnkYl9#aiFZ_YZM$cGD- zkiaZ;_O}yl4m0qJ{B_JALgTpWf1Q)i=a8%*y*(lPTR&N#BQI92K(QU%&x~mCdCsNs z6|kk$;0C7&jmHEQ)BI3MH^w30Ekvx%fS{6Q=2$fy&Hk{d@hhp}?nAcUWfZ^uHJ zRr5N>d`0-c4+Syz00G?M(Cs!H%28>?SQWHZzR8r{g!%qT{5m;@yMfrANlyPvay4nY zc8<;6Qjv?#lL~z#7^=(`0FlNfykxoF%_2TCl<f86r~Q!zgMER?M2Bb`7T+a{X~|X9rec@$yf+X=Y!wd025ZIBCB_5O zS*3S!BK5u>^wwvwpBpW3Tk!UrtwfIIZD1cA0H@DNBJJUECFo5bHL^##rU)}HbN5{Wb zn89V^!m-8zjY#}A0g39bMV2za0mrR9%0vK^+uE*Y35GQM62{VMa0xv#dN(x`l`{r9 zGMAnyfPOKOz&hmxKW&kG6Qiaz;0Q_(tC%3NYW2z-f$C)l;qw`f*WTg#OW6GUWc~F{ z7)0hxuez#+If*}*k8aI8z=T~m*sWpNL`5GiuGuQ}8E}TDy<4f51HI{565NN^3|(RK z%z&fk_Wcklja#cYXnDpR#gEUezBL}iKD`>s?VwV3$`03Jq{kj*(p>A+X%PHnl)Z88Oxz1ziIF{t118kZ8)<6%V$Nj6{Rr_;MNY>lQO@sUC<80t0#r?tq zISFZ>Du4ogM}83?fqxQ1c+JZBx641|JGH|`U9bd*RjMbKfKuW@Bxh?&8CT_mAJHq3 z#~gZBQiXO4=jXN@F=A}J3MX6@a$5k^k#>luqzwbNBNQyoZH6=!ITf=yjuuGfCo?af z-1_P;S<6dQfBRn|1g{seH-oqOMsK(-xo-7*?V9xvRg1hoS33BAL{%w5h60NJDso z{V?Iv{`mBE*@>s$@OyU?NV0>mGkFLkA%BexjJMXxlTS&03?a8>L|JMobFAlnX z<3i~!j*CQ(9anllFN|oUS>Z5xh4%aTnR-Mmy*)4SXZZuso!-eK#vB_YQN)!3_k^LVctcVwRb1A0J(zu|=swZ3^c%5^G6xgHFL!$TE; zvk#pVjU)~qaIiIKI0$TD&>xU77zhIUgZTgkefl&nT^7ZNK!IZmMwj~LJg3v*q1p3w z5`IpYK$Iy@!S1jgcLaHuj;22EcnE0z3n3shhY;z3p<<%Iv0y_soEIx-%edR6mFZEo z*WWWHKRmdhdVLkk8&<_<&OZBFUy(=IDhpGrK}l@Ab6z6nlkK((;bYv;n0oY z+;k~VQ{2s_hr#z17#CvK5!UhYyGVW=hu5n*rwmi*fEWBKrXU-*OHyZ_UlygnKZ(hNW| zqhUTc$_4|Q=SoC6w|Zm}RBMdc1cV9s{_qLlkNla_0L=V@h)9ZUQ|RBh{6RqwMrRNU z8pNhB+)vbaKEi_=AU8vB6@)(G%4QUR+1Q-$mfYDA8J=Cp$<@|@mBK@!>PFH|24opH zA&|!jqejD{IPN7;q)aY#bZ~SCz$bO?vCq9AcaraY<4=Y^{sj<-LTgJ{2l@NVU{S9q z-Fk+~!NTR8Z_b?p$) zW-5sO$A9IsvC%K(-@Ng&SIvh9 zQIgmUS4gfrGtj@yPZm^hNB{s307*naR0F1|1Dc@Fcz6x#bb6(Kz<39o>}OauJaLzh zh_vz)L48}0u3x&GLS4U7nKgzsn*o@EZz$Yet;G_~*Kc517PwC2+m!FEE$ZvKp5QG- zA-Kc;kk){#r9uq{`#P9E=6ez6!o9VG&=KfmVD=YA$t1DR&)x1t*)6xd@Q45FU7vaW z+JVri9T-UVMn~xgx~gP(o7#$@63QEP%k+j%y0LDz^(@~sdBVqGMBvR*@GFOa_RdW9)pWi!s>HGif8}EMa zAH~f>lg05)oSOlZV^|qM;{)i2BY|_G2+wfJ*Ag)i)@k4Z0?EG6P=noZ8DsyLK+Rq- z0l|v|rOm#Zj`t3T<1cucIH1q$9A#etO$+gY2ahgQGi$09oI!Bi#o2EgE=bE)v~8l? zhXoadT5*r`DfPa8AG;O6l4V7{QUi+sX| zc>2jv65Y6QqX+cQ`siQ~1Jpm$d2Rslk9`=ipO+TYAB$ByqG_gWQ= z!{T+v@7z;OZadiwQgajos;mGU*MbAmR729-C)jbrp_!qO4>lRDwd5_WmJs*vj0!Dj zKruof2<-uslc5uhhR9eOBbTX-5@UP4(P;F`_uf5!>$yu$JoK6W>FYl^xBrXpe7AQc zO>bToy$I6dR;0O>y&lBnat0nbL@Fl0B`_R?%NIZ;VNfd!b5RgngXtlfZzzZ*Y>^Hs?-+uAxaG2%;ljXS{=seZX zU>C5S7GVFF>eWOMaDJT@fr2{ORsQwO3j=MpWCoWhe z$N>1IUhyx(hH$?kMpldd1v61e2>T=ibqVD{2tIPvB}b)CzO*SMYX;ygQp6lxU^;W6b}e zM#Q)ZbBh()pD8~nAK)|)LJ8S=U~q!NG7OHS;7_?O%(dag%U}w*^28RdJs2FG2)_*S zzJGwe_hko#LrpkM96I{l2<5~TfQRs4j+n*?RuD>?clv{)8%Ae6vwLkYiZXNIwmYBs zcVD~ZmRr92$KMcdXgNsXZ60P;#F4g!3^7yj;IfDzx)c|I!=t&DK%$g`=A>FJXUWDq zCp5&O%?r~I*X+QhD@sg{SB6Y%X%rC16F~!KZ(@_h-D}kgsR1%cevWrRFM661&p}o z?Y&bA=uDz<=3T-mC{1kGg3-rJ_0T-7j(yjO}ck0DC#x9tc`$c{U zhowSPDc3q!6G;_Chl2xa?M|_n7(S ze0<^cqrsd)^WtitN-{dl<6Xpvs8YMww;=>H{y5?^i8-e8b_QU{vIt7L?V%4)-J~)Y z;)!l6EbR+)5K%$l_dbEFMIJ?oN#cBW_oH8W@v+Z+?wZN+ERAz3wHXZu+GNO<(~<-@cWTEh={d`XbrLek;-ol zlUvT^kvz->u#XmbZnSu>e}3<_k3aR|E$9C3|M;)(efuBs8-pl`1~$dU1E}HMbr4a6 zK^&925GvV&=4BC^D!nGkn)7}|?O|b#3Z>)3w!%cZJhvETSoy5CC=ZpbXp1_vt7O_mR{VH8D)P&yq-t0G{x!Q3Zmf6Vm) zo4-eJlFv!-e|X!GQ{NcYT0RQI^l%Q2<9MOD;X6Bnw4!kRfnhDe*XYv4fvF&=c(wFR zv6vtZB2O;VsBW+_!mUoYWhCcQjg=8HDY;@aipf#%OEQ{(E!nn$Q{YuY$IRS_mZXKvHSstK)vcTtNVkAPk>l zu!-v9f_q*NWS5Bb`Iz_+6iW(^A1kNU`F79}s+ci{QsN|p%ObPct3AmLI5(A!1_RUlJnFVg4|J$G*2;>yL?n3ZAZR6gYi6)>d4OrdbaK+Wlrn2u84 zmo+g(oiD|rx-(Ru6r~1z3dBBue1hEgw}a?4E){0=ciehd^4yQVJ0=1k1bV0WN33Pf@=#({7FfI}su4W~Of zhK_$Ab_l4Wp`Zylg{tFD0=JDtgv*{B6f{tTBFq&Wd1PLbDuD(9semYv91U;Eq^EK_y!l~2 zQBkyi_~A_@6M63JQ~&NaFW!IeUw`BO8NB>2kPseaaK2syi4tRbR%VHW7HLdU0q52d z=$2%Z&@~lJl=)#Iv*$v6NMMJtetyiDe5p{xY$JU}o!jH&Sm%t57QpJGLBdrL+jaVt z9Dk*hXCK%VgIz#q}H)B8eiAXSo4bCcJA(s91>zBMN8s?|%BpXI}h**-Z`(4l!O8$gGgYyTlfE<~A(DaBZ)e%={?46e z&wcvqU%%y^`+o2z-#Yr~s|H9TMk1CfN@Pyz8{xEs=G4Z<$gk>Z1(2kOV)5`V_6c&! zEMidg?s@n~dFx0lq|76NM#C-M!{rz4!C7ZI5M_YFo}=X_c1q8Ey!KzBoGR_VDM{eY z1}rF{i{!s4e)1nE08C%un;8Z-h+sfOpd6@2myjw}QECCUxcA6I&-})hhEdOq@}3qt z2S!UX%Ak}MRsg`pLoFLwUlaD6wS((jM(t;rvW>bsVv3UedQsNnh;&DID5hAkB+WyE z&@ZlQrz@73Td*iU}wGbJfF3>5o?%-yVzW%`fQ*|?uf5!(gX=y>ddHJ%5mWOiL zJkNBo#IWS{!;UVP7r_PCAWw2=onv~D(9n6=WQi14bJ;(;|IqW#-+A9d|MIPGzw$TV z9lrNIBwrvLq*Nqfv1P4_V>ns{v*T_mx%Q~@U6*8D2657b|164oIhMuWI>#UBEyC$2 z9ve45keMj~d;IzUh){Lz`TzhB07*naRFTS+B^8;bGGG-!|4udn1=QJqWl6IQ2;#Y( z$&-Npg#V%TheAPSkF+$VE@Md1S}XQ?4}R*oiw`~g_Hdwb6Q|j5bfmS0{&ZGD*~r*Q=N>J@6&eb%a+dQSc-;}! zx;3bNzgZCM;6kqE02+M87C8v-aT}DXoLu4qZ2*+Z!SsS2CZC_C8QFu#gJ#SotuIhV zBfYkagf?jg%s+V|a*?YfNir2(J<4`dGaBk!?zsK)zyBXU@~P*3@aKQ|$`5~}u6<~R zLzU%;iXl>mIdZg=eq54~LO2WsuPPHU!Sc%4&Z0pafo+@>dK{Q5#s~;eh%r% zDqvZ@M;;*5QklHT`hBZ$`db47?QB4!RMWOKAIhtB#$EW=va-G=kcN9>IVA2UAK3-C z=`8uEDzZ|5`+sKV)`#zV^0S{g!pv(v80q22zK4ZC3vYafLRte1565v^aVTDq@ww-1v9s(*x@dtSWBQDV0ospVgwL zd^r@tAsdW2QKqI&aU6MEwK& z(?SFh{F|?3^ZFNa(Z$mhCU2pWJx9zib;E55D0~!}fgpXt%ddLQcJX-5dV)e7P-T5} z0G$n}h{LMaX`ZVR=Hh~VTQ?(&NM#G=;DolesFa~*RmK<3Kk(#7?|$%+Uk(ojX=b&~ zvTUSBd2V(!bUz254{3rz13=&sD)MrEJ$HU|&Lmm_G732mMpC{2tH2Qb&GlYzIPKLL zr3X+`yDC=>8F@%P83QzEuBf!BD{^g~eT}d~6P0~ZV%mYRp>OY_Lv`0RY{~2E$gu8# zu8VB|I_CVybN)aGo9RUMF;_^p%+ql4nt57EObhp>w_+A<$KchoO`1((FQEubga|<>o5RnjjVWP zE`I-GSpe2n*dP^x_R<@OMYa5y_=p`rJtIL;zcMDB5gSnS8`&6x8(0>gbE{$q8)RwH z@1?taap$FnUi|!(9h>J?av22}Sg20zu7l+Ltko7)etxT0G?H2Y4ujcF>L$aRP3^NYQWwSBy&lBJd;t zt5hnZuoCYA^A9G*D(IRCoU8CZt;I-*JW?u`CNf%zbYKT**6a2AFnOuI5k+@D_o@3o z`s^$J@PnWJIfQ*azftqX>f<- zkWpyPy#;~_yK;oH65m@oHgw{Pzh?H$4HTN>t`c}9bBq7B=gk6eMT;NAH21~!L480G zrA1Byjy^<6Lhr)7*V_T0<^KM|AARz|9e3Xtfuw1g>r`hsL2)>+1NC1H0_5TOIWR%f z82C(#^I>a1&BD<0gu{?3B)AZ$QontHF!6b0mn?Rd;8We9I`FgV0R{)z0%n z#bR_^|GmZ$k*(E{j9p%s&WNd7#37+G>l(GYbTq7BTuT|^+u;B@hGmLK6zVwaktPIy zK@r%B_#F*fTAc#?DG~{+nhZqdbf%+d)a&oQn|^Ta?Ab?u^)rt>^|7~p{Ler6?swn% z#mnN_hvF#BM>#g$!5U>NvRv=zII|{~RwPoyKVJ{SK`RPMmyt+NIts~M%#X0t0=kk*2kWG zHa>GUy>T;xvM+G^0dSH*{g=(PvBoZ2@2=whlT{aQ+HlX#6BE%!leLZ zDsVGw5scf=;)aGqbUhzK7XqPjJ7TINplKuX2mu?$9BFE_ zVDdOpGLyLw`{MG=o0ks{E}S`c?-!oG{n?Lw@b=q3`>StXe)Y|R*MBJv2T-L!INI0_ z*<@5=7Jr+jE!FR%tgJP3WmnNnnq1o8u9Yr|c!xIfFI zD9ViyySukN^vE3#K5~%eX*SIAk;!rZ?-RC%=m?BesL6@OnTdUf0D#$>9o*dYdGxCR zLXI-84&mj?+TUaLIbiLJii4}!tRg`yugGmdbHSQ8wp1Vb!g`oZfbunhU3uj- zFas&n7^8{Lt<4zPq@c;CP4ld$A{9ZVMMY5@!_4OzFA|M9l(LoZ{Z#rakgl7bDsEX* zY~wn^6r6g6U34~pP-j%<9cELC)|X~NPKzm0+=`)-W0B4PtWP}0q<{Ju;~&De{l*BG zcN)#tfjZ7ehJa#7o0~GiTdS1RN~jAL9(neeom+1G;PBdLG|ER9{L#?lOG0O0c-axU z!wh9e1wrm`p~pE|gRBo8mx54HWo(XC2)$;95%NnqXVFS8b|oB9o){cNap9$AU%t~J z#rHKa^t(uX}%T4s~O=T1qVt4n-yh4n7f?IKN@^U@(wza^}*-r@!{) z=f3>n<=5VP#!r8K?VWexgTw6bNTkCU+Oz=y6Wp{2*o$(D@gnT7%v7dEgIV&% z3>lV+CJLTFkm}43KvwhPIZ~8MP8RStNT5V3gCZ#Bf;^?dppXZNvK!l&WpRrX>T-^vp+*{W>H!MKZ_k}? zId0`|4P)mO&>gY6PkIge#!x$VUNqn?KnQ^mZ{HQ2Qq%A!1lch1WR1w7$C*+isJ>Fl z#PKkNy6w0(9HlqK&E4MqAUe1bU)|f=yZG>ZpM30*$3B1c$~*79^~%3oe)aY1ue_06 zxh@V4MW$sRkDp~Y>KL*Q%o7%i7$SVme1a_?swE5_(hM`j6GKm-WV|#fm<@KTvr2Us zm#MMtXP#7N1E2(sc9}#15gv2ta!Nw^3yPF-;|#zl$PKU*`ki9y3^6P=C{_vOZ}@{R z2E&vw1#7g>Vt?n}Cm-Lr?c$Z;;ZSEt!GLHN3;_X@1%uHL*$xW6kn#aP7qv&hIDL4> zaXZtP;b+G6qatLjKs~PtOb9s}cq|U!RMrG8%8V-B#dhf5NO1dKZZ7N{PG6=>wy?}< zKtR+I#Fke#)w_Ue0!Oe2p*3o+z)TQackSA8F$$Ja;L>}-44idjcE0`!ZGZxNEdpl| z-$cOD2yF7s&W`HIJkRnhOJW-(y+}!Ycp#F(A$;LjwpubTqF_sZl`VjBPO$yG}P9pbu_doWC-02N(4y+J)o@)(=PYU7_ z%>%#Nr2QR%Ct~{$Dj$xhJGLDR%oiXKuUW z!Q1b8OIW!gs;_^Ye7z)sn=>ttq zRTq?I!D3>(HbNZ3WO`_j!}X$24uJ1IGLtx0raJ9y9R-e8POzhCXR!gXIi?j>W9^vP zNPhnrg@HXG-r4bb@f9HQ-o^beM^e_R=k53`_-0pvN9|Kt!{h(rvQK<6sC z>w!lv-2d>0!%Szn9UV%_{btDS>CB0QFfx{C0q`Hz2Z&<fRrXO6hH*N|&ve^LY zm?NPzVYH|Z8Qnx+!BawMp=FdnKO9aLGdUn!5LyOmHp$8z!iQX*;=V!S0hMJS+|QC~ zm;(dvN$bMmvbw6886g^kO&O@`pRGx|nz>R1YKl`#v(2idnE4h zXt*?LQ$?Kys54pwbQ(YFOb$#tHabeO3@1ll`NaU5$Y zE}T7k>8VF=`{=_@!sTg@r4N~FOC8NHW>hZ)r~t!emVztkxV^rO zlxb?MI|Hz)$q%FG;r%Gswd(r>6-K-#s;^Q-zI&~Z;Q$LPT{*Fkwtwq|yB_<9?C+$9 z2Ra*xJOiS6hyH{VvC#_2oRRs#Lp+II+Q)WW*3;qlktLJDKma~rHO+}#jt|i5?~pOvEC}EzOY;#J1H!!f$u3VDox-P|arU^N%mr;YBTxh=obsaE zkaBHC{7zCY!v2iaJP_1CKMN`O`l0u<#EeIMhfSlpL!dt}M zD2rR>2t`~y0T&`b_=`>uSa%7J-i&$RhR!oC-P4JfiK)9Y04tFS!?T}o7ugT(0TPMP zpTXvcb-_qX2|178_re)<1-qzs;Vta<_U^pn!u|IRtQ}>U(pKl01maIbf4XK_oOp0C zeZ(yK?~&ezmIAILBmU`v!4Chy%H0S0y%u%9`Un7}hFwOnsPOVt0={r}(!6>mdo?}` z>5L@=vRN^}wE%P#5+<&?A}q=a@ryL)6s99MB*ubV>^q2ZBTEqG;AwlT&ZRB~STaDp z+7U2HE-;4HF>pumJA{q8tP36$LNa(7?69f9UkBh3a6l;)=Ta#&13(pFqSzXf3`Q9> zcTAE&o*sTU>?geoXV0tsy^GI0b?+xXp>G~se&zMoUi$H?Fa6WutFMY|B&>DG&r(}3`&{?UIpYxT@oFgc? zRvS`UygAY(fw$uZI1+;LzK)EgQa%;pTbCy^c@CwJesg;7AyOzm3=Kxa`d;Lw4ktMFEVV(OG_ zcK$x$O&f~?LNpXclFL(6gnH|%{?IT~e~l_YN4G{nO3zXqti!_ceg%-p4VC`m)Et=- zVv@#GwqgDqDht4r4o*8YaKqcl_)9J@#`J>^V_*p!glQPDiZDwqgo9)QBzU1!FPO6^ zijIyB;$8xA{Mg25PL8sHIkG#^&Ojtlk|byMF8<1=@A|~EPkipRw_pCno8S4XU%v9% z=;}?8=aG;Knj7afiJ+>OD%v0_1=B@QDQVzKBnxs@$~S9sp-CbUig_f~w_ z1!eV1x6~zU>hye*g!>+MGPiUgpyQWP&?6A${pZLJyP-$}ht*sdGUog+eMow@-gCFy z?PY_J%~G4f8sBCbqAwXWX<_~!sll`K=lAtrOrMOHb@J4i#Q{o-Ffr?3pni}g^iIGJ z!_FXv0nlqM$j3s*zwK>zu*=%7&C%XM=~oWu)q3dQ;}2YV>|#M2M5wu_&}fXqVO#)A z=i-tAtb|1xAVNPDFc=`xfVQ2GAl00<51O_Y;XdyBLN*`E>u_{*yA`2q(NlotWk^Uz zg~u4yGeGqWeQ2^#YNJ6<#*vB=on}Kh==FM05(^a_^ham=yJsGK=&2_jdi=RZ|K$fi z_{H~rc;)3+^oQ4_5OHo15`eT7a29AS#A^~J87~F;-Es#%6OI6}o<+FN{aNyag0v)8 zP?x`-3&+{{{)px zs_Q5$CBPt0fqA9N43~7A5yo;c)akT7aOO%HWq?7I^gS%-6cmkxDHe~nf&HL-%rGPe zVoHzz0-c#=Hq$bR`!T_NAlV^IViJ*#beyVwZ%>=S)xputUUX(}FTV4_V_*K#eV_c~ zE8qXem%sD(2QUAtILM4ijsc4SP( zL~&xQ&9hAFOe&T1cchYOo+**{l0=$lFgS{{OhghaMS3%d_j~<#@0N2P|MH6;`}DJ~ zzx2bG|Mu_Sd->l}_g)@oD&UvM=u@le&^l`CgEd;UkK?GMHAY zciMj;X@!AKG`wx8H&?Ge!!A=w8&G#Mxjx#ozmMZPC&>A&NHbZe9mItQArqsRf(M)G zQZ`l^8%bEQizorLp+$_Lf!yXc-r2k3lDcsI5Ek@~lwTwG1$;*BGC=SorAdP-KP603WuHK)e7~>1(-B+ap+>xS1&#K)eeOzava2Og&i)TS*DX%DV1eXX~2x8 zHaZ*)_VZn}cQ((H_}s0JfAy>PKmWojKl|CMfAyVrzyCvV<3RL;PKP2lk(Nmk57kJj z7%pa%syKqknUXfw5#pN+m8?LLnki$kegNslDaY;Z7EU@|x?9rW_UIyDK?Tm8TOjzd zHUClsZ&LV&uc36SKyFvChRy-1ynAJ{P18#&4*@l*ev+1csF6o`WcqvJeJk1PH0-*n|q31h=egaxYCf6)LJ0*{vaG%sCfSb_z-@`nx2Nb!R zT!MKpP|`7YvNlH+>i`8imSOrAct03UP7c_nZuJyXk6O$(c`%a-SGQEl#p`LLu%)xJ9toom#h2~{Cbl>VuVR%cw1^6D_{7R9?QZY(`|p!+ ztPcm2?1dlE#q>N7?6y-ifiKD}G6d*}`&bXW;U&O^Pb9eJxxAea+!n@f#vu2=Y}BvU z3v@VlyM?AG5W1F9z#RhUjhnVOB9sOYH60C_5?yK_aR%p5o6kV3jNEt9??C5F;VDe)atsPuGrCEj9zBKjhZHe~+xe8r03oPS z(ANQ4z__TL!dCTkHD~}Ja23PqM`xorii|a>O|><{;qa)R+R1e7SFk%_dJbBfdSSR9Fe{hP^s-JHP;~j*9x3pYP4n*}&dk!qSbi!5gB-B3`}-H~xd-CP zSqfyIMC+xLMocGl{=!HPu#ySrl@*|O0xRH4_OTwRV74iYN40vh^lsylf=aGf7w~7< z^72!*GZ;zz!ucovs+X+N^zMJVW^tpV%{cPp>jRJ+2elhqTLhg{iaDvX8gQ+LFBs;j z@R5qrbrtnc-q<_X4_SO?^nCJ&ubBuKn7AME%wXW$!Uc-_AV5UxKd=PI{$VWy0HuuM zKDZF6p*rLv16_e+B+|Y)|B**Of8RYXfA@Po`m=8hUwKuGvff^l4v*k5h=2z|BoVm( zxu)lbtQ|7w(UXBuJv6AeKIPlZoPLhADU=!qQ~@)ddMU7`V6d4)^H7kzY>%uJ1+*R; zptd<(48A;mK*!0e4-Qdatv=Nk@zR@AHk4VO-9K~Nr8L(%&%yBn+JGE7Xt}IISiMEa zAc}*tPH~F?-_e(s7-R~7CILwzy<_WyDn%VBkf%W4J~Z_0_KRhR|>Ua-lp5w zs``UQV=e{dLI{aGZ*b1=?Xq5;V1ykJv^b{R0MRD2+lLp0S7A{!|g zi=iGRLZ&*te0XqXZ~yTx{rZLb?)%xdzWv&FzL&oLz7V#TBoI#&QYEp;Qjt(AYPx*v zSHZa|N!&rSUQ?yP5`q@fChmUEbdQRr6q{Z3Yqm!PEz@5lX7CTDdC{Z=#Hf^xW!r$fh6EsH zdJ&!tzV(oq;7oaO`wYUL#Q*>h07*naRQa9WG30R ziH>6~+(~jD{CYle4n&yrSI8c;HB2u5*cnKjy#(L^`&?$aW^(!&f0O>4>X;iEf?3lr z<7=YGV{UP!tTu=@@`gw1U3#pNem>y69|sGs!gb^ilPl7NX} zeb`!4+uDV8eOOg(-=Dv7@vHycZ@lpG#c%xEe{=h-GuQ7P>{k0C)K zb$m$;KtALJBBhd7d%KI((i|LtR(RhBj~JdFSv)CC%+_Ai0olN0Q_gn4Bv5NRot1%}{b}vIiKzX33&8&~Yk2`gARzad6DdRMtOL3yaG0=Bb_p-|&ZKu_N_W=DuI4E~1o_ zD7A_{3^{b(Mi*SLE*RhhbD%P4s(Nwx!b>g4h?v;5Rb4soVnbV-rURw`NW?(t7YN;b z=%Hzg*f}xjkEB2ts(WN9Lkzw_Y!3w)#3V{9hem>;+2a)g2mGA=mGrby#}@g=Rn4TK z^a&D4N>!tro+Jc-yCWE;>>D?bEy*D(jL?)Vkj1^j3kL!9twFE{73Gt4>Lu2U% zO+UK*$XH605u6!BtzuO4!h^x&Gs`qq=TY*Fl24c`>*>j|A$C6478dFju5jJ-y;=Bn zS?}+A_nA-q>i_gV{`K$w(U1P{-&MEvA!8Q%IxawG6qV_nT{u&Boj1+}-@;M^wQ?${ z6Ssw|l9Z*AhlQ4>q&ZV+hZT2O8b^i?fxf>II%M&Q(K|Qwo9*;P9=3qY;}WPjISf?G zJgLD+z0)|S=VWMcj97j+#||{!12>gfyVzN=u~Bf(R2oes&0N*Yaw_@gM1-F#m?ZW^ zJW{d2%nZV(s57Lz1Lg=A-Ht~{oj$2+H=iCYdLvlL zOFZCgIr?L6DJJ-#hBzocU~?b_im`@6hRS#wTdZC87QjLm_Rjs&|KXp%dhzmq_?N#Q zZ`?3#+pk0AtZ~kSI&^qps4^>-B8c93;QpuMtI$4uUBquH--C9a>W5Ty#!F{zwz*`Eu$AT$ zoG}mSlD0;eaA<+%IOu8w>&WAY=Ct)NgHfKQqLdgoOsV3V`n(d!G!x@c^*A-n@vKU) z!W2fB-xpn9%tRs32qOzP7W(((8lZ4!6{&^~9lE#{gBk?JKH!-Hp%7MeN%F;1RflAO zRc|qeXo9i9E%t8reYA_O{N_J3d%Iuz-QVl4ehm6U5lLqQV1w}a3_xw63j0ETnk5tX zo9u;Pu*+qS0#YR@%59ecO_;Uaedl|B>RUc7gC4L`s{x!@{}YX5BOn7)7DdNKWb{Mz z2ZLKovswbgzw414K48WMwP?}S(@Kz{0WrStEfMvkxSTfwc4JyOh7Pjk0)nK1DkP`} zfyqnoKvYYQ@0ffpmS{;=Fe4*IE@Dw zb@Hl}It{WTr=oEuH`-;wQTiFJ%~-T2g|cM$d2-pGMa31GH=G)8z|3;d^i-O-V2RyVEbmW$8**S}Wp zG=KIxzZc(nyXs60t5FrK1-awSBb79lN%)ZyU!MR$Sj=KS9S@6j4CV5Vk+s}a_W*bI zY|IVLZ=Q`uJf^Y-vIc1Q;mn{KBFU@M4j`0UG*FL4zz?yv8?Y4FwPzYm6dd8y5h8Mu z(Pyv=X8*H0H98sjGo|RuYcYddkX4qH$g7#=p6#U|NyfEsDT?O9m7&kH#ZTLe=Wvjv z$IuHfIcWnO5b;Vd!lV+ZoXZx8Ewiw7;Qk4v!MW`aq=Tp2Qv_`_lXF$&dM4dtQ7iEAEC+h((#4XCyPzL|YT_3QhR5p4j z*SJO1A3>pM@8aJ6`Y`M+Kl3a9`7g!(+yCN!KYaWB2FQ`zy}rZRL#%;fkkHH(;9Ri~ z!etIAcLX5HrU{^@R7F&|gk9X;lqh^;c1Wh zv=Ssq-FH&1RHrS(Y8iMlO7EzVKp(^gL5E=~;hBk+m1V>~ldgSmb^M>n6Ts#sWa1m* zKFNunI6kH=Ql5_5J9v3eyannm7vYb728yC~N~u$J2LlF-9(pXV5G5b!(%|L5^T5}I z;4M@ZgT;VEDv^N{)&vLHH=rA&fDzUe-vJN+0IOBg#=cqZ#}5+l{CW%vBSJT%0SE;Gj%BeuwB!bmBlRkobTS z6+1J$v*VrrtIvUhhE)EQ6VorDEGm4GIqO|sR~CiOXFS@Zi19}c4jWC${0trQ;okD^ z%6!6xs=(O#qZ%>i<~ez$kVblkauk-1QT6kLb`?=f><`WpMM~=c_SbcV0^OueC@pMg z!O?4%=|SctZZQMfi;rbdyDA7@uk#$PHA%^cLbA3=pbl`z}P& zHme;IO?P+{7H+Xv-tPL>|IvSW;Qe1$@$ike0XYPD%EDB7P9{&`UhP*P)3{$ec?o@%2;s1B*U&jw_0vs9gOHh*L$2jNQ(8Q}$ zA*VXk0+64{^aFM82B3qvyR4m<9E)s=1$fNk5yL?5Uk{*qgeR&S%AV#Gg#ohYsN)A{ zZvl;gwi`ad0x6L#AjBM4w?q(@4FhtyKnguNrc@8s8V`hIfi~|XQ4rRUo@{*a$WL2O-F}$>xsAXYWe76bsPc-b#05>Fa^g~lB z08QwT3Yaot{yInyGfdlZ(3#Q#I*WczRl zvCz_MY+pqK;?kkl7tSUqA9vc4Udm@ z*p1%+hd_A0&h=3HDW;6w6iaavG zgSr&gBpGbOCLU;q1E@_Qadgo@Ag3`t;ekUcTOw7Qc)_xD(QUBR7}{&J`vN88rd-)F z$uUmv=~VqbReT=u`DbO{)IKq2hEVv|q;7`k_>BH4!w8N!crRF;q3=;NVy~Z^yLcx`020?$3{6lJf`#<$ZtpV5pLXCasp;_2k+tik{Z0LH)qvvpEhW$IwSe{!Al-MGz zckIs3292`?;PH%H_|5ncbZVJCWum&p0EqyNx}2OA(-8xx0BW}vEeN4F)1FOwiUIQpj<2G8f`S_wL&Sd&;W(J)cGfbZtfS|XUipFdZXFM$u zv!B@EF{mMpMi~}i(m`=oMUk6HS?Nm2$Igx|HXCPdIHKhd3&^=3noX6v$de|g!2Cah z!YRaFP-`WaBou!sGC-U#i&K&;16Hynh`}0)B>yo)b9hLw`+^6b%z=bJdFzX&6Mgrl zYW0Ew!sT(2Lw5#YF?q))Z|ZY9&K7{jIm&DU$;B#;OdR-1dJ62(*dRE9B+iqi3vs<( zXGb19K#&L&DrSY}FP(k)Rt}FDd48kH4&l80;I$%*41v{0MtM-R+f)Oeq3m)(K>l0P7DKJeQbu(2*y`AzqP*sTuiVMX#O~3=}zF zqlyn5W$Umz3>Fhdt%-6y&_W2QC%_u?eGlXjZME20+}OWu`tGNG`ZK@$&wl%lKl<3e z`(f1~5EPN7aB978V*n*lg*A}g13?GR+y$o0p;rP*1W_4=N)EYt&vekn0VN&oIl0Qxd!r~qb&%6jjdX%7#*F^ARS-NXIQ{DWWo#W&yl*1!DM)%uo& zLW%GD&NhqKU>x9r^9Wulkge=^aNr{kB;8PtwP}5CQ!$LH9Rpaz!1|xH3p|Pi;H>+1 zFiuo-8g~2+q_0OlPO{w$6-hjC;BEEm!y_;U&RHZ@gU^_*UG!#YKTOg#dO?Kip*TZr zf@g;K=JQSun}|XZ$En%Q1GpfDhdd0r`})BwAzZpx26FQAIwQ z4n#o6)c2HJ-gHl?&l;s7GioJY^~AFQ&1#7;NuL-YzG#tVSzcOnC`v>U2qYVc#_?kT z?4r~VKs|W420+~a76Qy!Q8BfwA5!U40;MZak& zUG}Two#ggcz5<3EWkMTOI34+939*CHD`W}8{S=NJ5tbEB8TRpQxmu*OKtk^00IoV3 zE;iy~my$ID`5lDtPgN!d9}rkGUyi3sBk^R+@8kXEazF|NM9&h8Kg(=l-Jfp?T>~SC z*yENXlKhH8^uC4TP`w{T;k;+uCsiZp#vv6onts%t={Xex4+52psTYM%Lo76kKT26d zj4(RfGf2yWL5C+NR=_maE$U^}nROK`Fvj(5W$!hs&;9mqz487B@BhiyOyA){96==D zU|rcI*m~#*@eoxIXPpOh1E!cb6yR$o!5n;9kf4rx8)b3NOJ*)sO{5*E_dISe2tgT; z(=rs}J!}t1c=Qp;T6@_oVKz0qnh%X;Chc>s^Zt0kI+6sR&KJ#15AGSeg7uFExbL(* z?wtN%wowKG2>WEvFnRiOmxVA~`M35!<{!ghSwm2>@CS7QlS(G9qw05n$Qejc%Cviw z?ID^36*H;OC%G938URZJh(V?yi~ul|$Y_@nRs;NIaoRqG*12_44`AQBkrAh=JkQ+ax&U# zB_C`oi(hHel}%J)UK2mxm<=AP4Ns#9dH({bNuS6vK&{a%Egne#;PElx*){UAjfZBwR?Qo|tR1raSz6=*>1z?TksYoS*evp+}?3fE0! zci05LF@vCQC{x5(09uPwXBPJqLa^a$$UWM&4<@#EtHsM-`rKFl$$#}1zw>)0L>Fv- zc;uQI!ce*6h%kaWxIuLSdb}Ydg6=qJIuR}Av9D1UU4}S1{lrdH@*lG|8LB61)W_CI z9`<;~)_~1mWC{X~1uSEVf8uip=Mw?(U>qFWeE;f;pZ|ibOkFSg3P3@@fwTwY35fDh zoM-(S&pYPWbiiKX?3q&Ez|?PbB|w*Rt10RQNl4E;jDu3})VsYoBRCxv@JGY*LM0RJ z2FdCoEI({4!F)oB9d`nkGjY#Ya*_`XC>S(&glUu|jgX;a^ohtdRWf*S&N+X~pJN(_ z+O;J0Pw^tAmI&p8Er5I>lo_gl6dD`Ggr=X{1~?p)(kupHj@Jgr`QSGJ$mQrp5zG{H zo>5@Hht8q~W!w8((fb&_{EvV6d*Axzt-t$`J?J3#f}c{-hn@=IfP%aq=M-_7!Zaw& zXL5>CKLX9dj3Qw<+vzSJQyQ>OuxWmD5x^6*283tY_a9`J$L>wCJ83Ic56^obk^oE; zaoCGHJzC$m_91M67&~Ba2Z2`R_{aJ%XHJOZhkiLsNn!Y(@&~HJX9$~m4}}2{qq+}fCW!UDS}~cUh*z%{c%yI>;HoFd21$u#~UmUCkS2oO+s3z(kDDw%Wv?*zE|)W((e zhFv9)pJ#9mdGiu)@F@{46I21RiYL-Q!NM1MXhlPru?RZA@RTC>$ld9?y^DKa`bWR? zAK&}1J-EKyU9S5MIFl;tluAsx8PuwRL`JA2L?ui+DGVh67l90EIj z5GR_COWu}fJ&w9|)xV1zD^mFd?csrf10LEDTM9Wp$LetDoWz;Km+z=i^y!f5`-;g`(3Jfye`GgA*%aPt~4#b`8sx6r=xmFbdXk&IIL zZWcsfWIo?MA{S*5`E(4d@t{5gu`Ub53;*naC6w<3{vRZTfTalW`2)08YCE9rLOce- zfdJwOix#dWKJ?&eScmOuCYn`qJBCmH;xGK@Ti^ZY#_g{6Rn-GYAgYUs6ofbvwCJY; zCX%O=*h!J3UINRShx}QBo{vjqTYWpK=X9Ky4OF}8bIf-4H=d<6U^exy3^#AaNfv^X zB=aP$G(P+YJLeZ0n4c9MLb_}!+gI1Geti4(?VY{l-9zlZ@ezPE$nQ9SZ}Ja?2uLIB zij&kHRw|;Fmp080F+=8zsxtYJlkkPB5M)Es$;eLTCz(%j%Jk2V(IRo|513miOUF$8 z2$}=v5$5$kG%&FkjwYJxuW2W80vb{UqRw(&$+Xe`f*((8J~H|K=OvWz^E9^hajE>K@+737|aqbJ~q~U51rSFU{NSAON=AH5ykeIMJ5BXlHSNg^?ulIDG`NO7A2QRNLG|9r_K_=D8Fsq+F) zHV&1D#^aeWHK(}%lr)CNjE9jpdXRRV2jA7Hj4`K8!rsg+t~m%8c)p`<7b^Cp%mCd2 zcw2z@&D{I=`pu88zx2YVn%dUZu6t+{faCzeP!q17C}{>dtJ(CYzg5w1d`cSpo<1or zFe!hrmr4#};yG0&zPMMZ8X(u6=$eP}lgB@>(*#4s9?;3v0R6ejVYdE*i&X`igm2N1 zFA{0@gOeFFktqk3&DJsPcydr8Ue@a}(}7?v1$5t7hzC$cxLgi>d|CjM6F}{{yers& z28IzQ5HuQspnUL^g)}~K`+#xp`rf)_<*GwtKm9X5^PN{ear>j|W(|zfjQvNrQ|e-{ z=oDo4gi68N5P6qVl*RSbBl;-uEYAxHXnU{!bWQMFyf%lrO@a3#TL~D=4cYgM&`7D| z)UATWE~wO{*(Udw2KYI8OOXIzA`9qb4_LystQqWDK7dH_OcfSAA@vA>KYCCOp{W zvBzIYh6>C)StWL#rD0fbsbCPfo`~5SfT5&>fTY`bpFF>+TUpFB+pWnQT7qk)U8PoA zwLMA#C(TCMJD$0iSGZzGu;kiCdO;|KKR9fvE8w~d-gJ*)4dL1am_u~j6eUPSfn@-+ za0*g)((HNo2j`gRKtS^Z`I3guB?%$WT7&3+BzQt1LD2dF!v7F!N~Yuf1N0T(BWXP= zO2QR7%ok#$0o*@uToRNaHDu7F_n~W0XBe=aHP8|IzBk@9%SGF_-ut$;7cO1;%s==~ zzy0PLwmXa{GKOmsJ_NP~M!8`9q6d~CB8Gz~0`E$!YLqL$M=A%Vc~yl6Q-UOMp2*$E z^)ezpid&%q?DSR>+iyAUFT&W|m#{f!Mc)$DNBWT4EUMXwc*Z+{AANlrxxN(0@;DbH zLvh5Yrc641ntzWk0Fqsj7Qg_cAFHbEKlQKzz8!MmA2ZnW4^m0`D9FDyQ#=3w5CBO;K~#D{tx}Ly88QLPjxAdN=`f{}IJ5sj zLRtTW`-#eQ^9fwb!|Fk2fRZ@eC<0YhkL=c_uL5F8aG^MC4~=bBt3?1+dGq?u ze(49VTSd|}*S2og>#J}6p@%r2G9X)R>YBmH6N4U0I@NfB+}rsJot=>MYsO=YXW#wdD-U>*YOv8~r|z2Wx0zkTh)yEkuK zeEAB5*v|3Y#To#5I+^ZYyu!@XBiSl~n;_*5F-IcgTvda&9Rmdz!FT7V43i#0ctHh& z<9C{K-N$V(dsg#~#zI}N$lV!By;9+oq1*sQd~%VWcUe*Q|5j& zqe(=j2&Q;(L`?~v4c;klLn}7(&Eh{2pEa}|N2i528KFS@vXs|CjF4Z4uIgN~I57VF zxz$(xi(h{GZ@$wWTy<@TwhoYg#3v9^m<&zkXBsq@MamJUo${ikQ?jWGU1>6(fF3lc zJM;_;^bRS;+EfNVWli9-F&?7_SKXuh^5v0|vz%y7sU9N#$DAyuzDI!fwqMuHvcI=~ z{oVI2f9Z>h)pF5xckkZi*Em^!?A)Q6@P<3hR9vGXYsQ`qww!GkR-dReI~tZ`@l}!p z)+g+!5<4!ipy6=r^iC$?PcX*6g(c4*lm66ZX!0^y>2@RMb%nk{kVFdpFaB=n{__Td z`P7`FTyjdv^6ElH&@XY}i9!(4>nJOR#S|>;AhjHpftj2cbf>Aum`@U@p&`)>#8lWc zoZ<|S3^NW(LRBB@Wn=B)u#Ydk{<&Ab@Wr=3__$vmLCippHU7$15f(tj>Bdnhpo92N zL=mV7$zr1u%Yarf+QJ!lh`FHCay0J`t19k-KXwhMPglp|$r+nkKOg>}j(q*ez}yxT z=k!o(M@;`)#1`j{#nu*R>V0)^c>SGszwG1gYG=J}?U6OLgLG<-F8w$WUv%r{lxs35 zMrDnQszZ4~6Kep_Qd6fX9C%D4I82oj2CwDC6Ghb;@$voN-KhSLC5iXuz<%tZi?F}}<90K0Q1 z#}G4`iwA5q3Pg6s4ifAcqX7f{l3UcK>*L|kt@p2XckeBB&Os@-X*#=xY=ChHx61=@ z>BJt)IjDh7w@{V}03%hkQ(c#+IaT-XVE?>ZaZF1YVeF|LzQPDw$(TegK_5TKqr}>= zKP=V&ra;(MRPZ6;3yTSde{rsisx?JVTYkey^F@4R`4t*w`~!0+U~5IkGSyU&LOS;p zfZv|cP0~3csY3JsEb7Za`p6x0ZMPx;HgooYw0_RR?E|TzvH_U)cS` z<%9P>u7a%s@VdInw8D%FNF?S>;$k(F8~|ymSkS5c88K<;!J7&KsKuRQ?&rD_I8tt~ zIz9q;9sskCvesWFA|&*tVyOQ$Ts{PBJF>aF6BJ4i6dJ z`FKk@xzI*`k^_v?oN1G4R8b_0oSWV;56x~HBR@#Cui!yM7E1D?qV0XV04J*Z@b<@V zzWb#weChVVU8n(2irAs#D~ZYzCnVf@Vqu4}94r-7X@KlE(nAuIM>@|)XjsCC{A|Gs z49r3b?Suafp{KP+))@E{PnK;)Y1x1bY&ros<&~qljr_83|CwQDVmJIlrP<4Cv(gX1 za0*Qj-y=MEDyijWV7XHD43_6OQ^YPv6Y zM}UljbOopv1@kBbB4F+v6d>k~a%w@KgrGtSaZv%_JtSv9M@QfnMiI2^!Qr6e7-k7R zm?X_>FJ3{lUV!5W{*^o1?BW9u(s(Qbbgh zsT~BS9xp$op@aa=VdTN+FT%bNs7eII$Skm?u?XLfZ^b57*y@;XCvIx>pkr{{fv2$j z{-q5hH}P%rtD*+*JcI%ddoYjfOk!kWd(GW`+)$1-Nk@v&qaz21;(g!l-@H**aoH@I zMcp2;O05nZQi7GZc$pJ&hSUL{3gUqroI^VQq9VstVwGD+=Ul+tIfs>f|7~V~ww&0M zQ`Qq34^v4)n~>qBTaJhHn#f8Cvw<2csNyJ3QBs2tE`|-~z*Qp|oZ6vmi{35^@D^!3 zQ3Fm=aLO;CWYmDnoYVOPMRNd7g{}e@ZS)>wWU4;cPkiQc7eDjaJKy_3^gtI1%>&lK zqbbOSY{4=>sp#z8JO+kRxc1J*G2`LFKp!u=+~XQaY~%PXAvMo_3TI#hh2L|E>QmC` zIJ=ipQjAy~wHIJbF|8#hm{mFH(QlMBnw0X&>~d4VL^?n2ZqBQfrg0wqYTo{ys061* zVsaDBI7z~nMwmM~JQnPc=VuUE5}8ikRZ0~iC2UdN$HRgcJc2GoE0}7}hV(fFgodg1UJiV$#f%3wjy z89ikQv6fwVsslqZYS1r9k1&_Fa>+t7cASmlBY?By&uNY1uZtW9e>}NydjHAjr%wm& z@tpM%wg#q}!Q+I(k8j-h;M)0%=NynVin&L^cHAQUgSOAW#MGoEuN`zEi`5w%nSC{` z4eARopCv&wvBUuGG@Qt<=a-t=f@H%JWB;eb22fL1{*6e;%sqz(8B)B>?p!*&M!x^C zXi?3*sz1z~cdYKNJC^C*u-&82((0U^C;l^+R1T5o{PhrS#z+|iuzw4uyQHpyw9 zv`7$dAa2auQuJl$L+nH7V^tkh_T|riwt4A=?%r+d>b^g$V(nwk`pJVCK!j47-1IzA zBy@a(eS$VTJqd05n4%3>0JhCQA2-h2|G^k%BnnRyl~)IIuk_8Qk{OZ;NT?I4t-+c#~3)>d2vcL1tj4XZ7$$b zD{o1dTn3IE1KvvgImcVrfz78aD--_8BY_>Sy7XJ3t4mFDNX?nL4T{A$tv8fofs4XY zabmI_L~o4nk!BR#J;3n+%SqA`h3#XM5yE1w_nr4#)xGfYm6t#JsrTM~3mye{xIDo9 zxg1-c2yyqE4^9C+_;_X-sZV!o&OPXd6+`hNeVntowDDl6 z0GE$F9rBEwF?|G)?zmpR|K^*Y?|&755|{-7yKf55Zs=uLLzp18@*^vzI3orL>xo*o zW(-x<4bSqp#|?jjUM%{6fg!B(kJxw_m|6pf(m;8>D)mIR9*@R+6>`3#E6U~2Nxp$( zG1akV@gqgGKo$~XpfyM4R$V12wZZ2^0p$mznTPh{Fy!bPHzLYa62oFjzfM1UHcXNXsqN#9G&0EZMsGGxSC zFtYw^J(V%vn1>lG1LHM7DH9-v<#-q4#8mnTBi`wf@*NbWoMH(a$>5xHNcJCr@}m?| z(ZZJ7_eSTg?z{dHP@R;qQLx>F0ZXYosScoPK6R40Ii*M%fnOhEgWv>I2jgZy5CQJ{ z@WM+k*Y(o3z$_PiPyBLQ<~-<>>=s~3##0cK;w%{0IBJE0hH)Q@!Qk!<__gnYM|+Oy z`l%b))hgEjYSChQCrJfjR!K6yAm#;dKw~M;M)(X6?n0QHWvcKE?460db6xN2s_FY! zIq$FCsIKkreB!d*ze_T|@ap&8L>6!^b%-Lgk9c&v;L>01F_v;4Hub5F4395QISe zcQlEPrPL9X4<|_}IuAWwVA)-uQZclJfqHv`H%N#-DK3DYICwCq2@7vEX7p%nKpqg} zkAtTO8i7el6uW@2Wz2#wXjOR&2D(8--VSyRL_#&`#`|yxXoX8x`WIg?Z@#sx!n&?% zzvyBIWdJ08bC3&!+Xvlkz-;2F`2;gX1WC)J>4Pa1T{N6qdY%M4yXD&&9x|Kc+#be$ z&7;Yslc{-L*gzlU7&ifEz~wBrjow&ghv}cf>OEYZllxYD8shr!=-}@D%D$9=hk=C^C?k-begL50lYIzz{A%Ut9-s4h= zdPFKK1yu^2fiKSu_f2>t1fY7Ll@6v}?d~nesWc5)#SR}C(IvgJe0dg>V% zE)1ue+z8dPGid707J!E`#(~tB%Voo_bb18dG%0SP zNGbz(OJpyU;UP3mdS{fyS8LAz(q39>cJ;F(UtS=3)098SuJPR9-Z88V&wGH40 zIx5KRBkD3!HP#_?m3w1rXZz5Dj4j}1!8QSRWr%&W&BDbP4uGo?B7@NRx~@5cpaz6L z>4l+mIOCdT1Jsmlqorh<@R}RibooJL>ZUF{e@K2ge&PlK5_1)re4fdcjx->-=zu?g z#&4=~kfNDB6CvuvClUCeA#9MS3!tdZu6B2K_s-wpl?I=RB!a9@W@EoUL5>n#=omni zuoYSh;R(0?p?VZ!?Ax6!0FPk|Zo^y?E42d5J--?VM6|k4?1lIl@)dF2?cch&u%@nS z=Uh+ToN&T$Kd02yzxgw?}@&S0~l|DGCgb5KH}#gkRanbnAPjIFM<>-!c7 z9ju9ck4SSWct9?~S+iIKls%q;@vjMP4bS3ac%FvFbEj=M>ZjaDbp87E_0hr6ojZs34o$OK zMR#Qg6!3+Q`$V^Uwb)w}}a&BNnxYe@MkK5L%h4SuM_AzVu<^ zBB;b?FGNc}md*hy#t%A6SpRZH8z%4JS)@09kTEtdXA8jN9NG~dTYo6qjXWc8{m9cv zti4PZ49%aUqzV=0824}9=#SPlW^YMnRS4#!-CrMTl;0nmC-HL)Pd=|AS(bz^N4(Kw z2S@u(#A+$WO&W#A#2FeKl_o8@(!Fo7sEM#dYx@{m@4-jDaQ?MVzxLv%UTe;ss~T6? z8p;DPy3l>1`uzIv=*HD+*WY_@|NW1;?&!kaZs;LBt#{7pc3Kw@H_s^`guA503@zQn zVpa?>+f)jkNex-$rc(-DT4XVrNi&e9MarQCjvo64xZOvpDZ_bFL;teG&~W9LAEp6) zWXd=}qegi}*b~682eWkNU%p}&O+4hgC5cBhH#4{?GM-CQ3YG)+@G$9|k8k*}h| zYw)sV!29TN!MMKg2hrgL7MMZFj?tm~ZnJZY-@w&QU1=&ya9i@+T120U;+>98(mtbg zCIsUFg6%8i2Dzr!Il5Yb!u{B`k8~e&9KJhbO{rUdfZf~o*eG4>d zO#>ZBz)IOyHI&CYW81D>82j3nzj*G#-nYN`&HiqSvj*@&)Jh{nKB;K}s(s1~7Ha_G zXz>FbJ#8>jQcH(6TB@-RE}#CQut^y{5(~|V{B6b%sK)xd^h6Dx&qNU_w{T*m8sxj= zk-#PuYzyv9=v{ErOIrGSfIEs?_Ix8da-4hB6oNSzyf*RM}9s2FOc+;-KRn*lAD9uS-NAQPU~XTRk5yZ(?gpjbcA*X zZM@g+Tv>W!V}pz<9%Q%yFViWpMQ~(|Gc}UDN2(1#DNj(RV#vhj%wQo-eCO-J3LrU- z@>XLXs;Eri@rF5ZZWtxXIplgE2s;>EYzQFV7Un@OmIJT~$sZZO(Z@bE&FaX9TkE4w ze&we>|MNfB?d;qoggqTTAO$555<45AAPlna%laU6eHE9VeDO=a`b$6j^RJtu{+wxS zADpwWS{P$t!I0VjOd*~T<8~O=B6pDOWB@I7WLrQP^4)jSNUJQq#2bF?4GX{ONc}qF+#&tU_pgAs6FM3_|cpZCSsUa zUJi*3RLv64*pNBy!H1S;Jd!< zmb|@Emy~j=RBq+xIJRV9*O<}lvnwK_oRZnDGgf0fgye#ELiNKfXK4YX#`dUfy>nMy zefhP|ex}-4t--7ew)D8Jz#@zb2O7g*yr~w=;{2r-Ui;i<-}(L$4n3nnhAnmO?K5?if!gIn#ow9L$os5P+vb#DHIqXM`mbQ^|J_FsZY} zL|4f_A!C{el^2gZ8N%C!E=&3WO+#(0v$m-m!P1yQWWS<-19AcXEEDI8&^U%>|DDxYdUO93R z+ESrC6emd7<>XJ!k^^Z?tojf=C|K=$<||*mcJ(8FsnLSGueg0^yfqk z{y*JzH(JStZ%HDBRWY8vQoApLAR@(8`YwyJ~%dz z30In~8d>Nm0}jLmG1{ZvTN5u{zH;T0pS*hO4TKQkvP85JT3wRs-9e#3k(v{)U}B}z zgsC&5Tp==AYrbv_^a;3A5q(2+mSN=25cjRoN^&o-=eam9;+T@8Kli)oAb@D$hFD+l zRLZ^N9aF~BMr)m|UGhaHymeA~JkEHe<#5j5A2hq2XvEV_96hm?@T>@Y%0oYkrRjX2 z=P4BfKmd$)h5ni}zmO3iu|UT1gJ~)(va;zET!2X;qoxldBE6;A1t8qAou|8#+=5!!<#>uQA5K=VWc z>2lO8jCZ>B)lYx=+7ExyAGHfD#hh`5lEdLOfWeyO6#?&((v~@PFfayhi9-F)F97m6 z%BdsDlLTI5c7P*Dl)?(B&h&GJ-_D=YpcXxO9@^RtAY9VP442ab$&anvOe=|ov}QrN zxl0~EKcAGG&(k&P=MWP6P{$a#v3cVY?Hp{@M1G)nC4B`T3;CYj*O1&v`afbx)KS2| zjlxcQUOc!(U}8+h?<4NB;ZJfy(-sDf3F8?I%dMuliD`6V7TUg?_0C*)@p2af^zR~) zs?;501LPQ%3cLnAlGXz;93+M6qxJfgS6*H2om(G#)YL!^2ZD*YQ7V}#pdrHwJ*n;> z(;9y_SPATL^$e~L+!ANYcsDrMXDiAh6@Euyk`3@(^a7wRH16|JEs52q087jkK z4O>-QfnQHBX?f~7q`+OL=xsoL1(bZC?w&6I@25U~n%yyj7B1AsXDrhbb>D>m^W3zL zon{1Zwg%9cMlsGu30qF@xCWq+*Wk(n1G{JM9bREH~?77iBp=iH%SPjCq)G)R2UU&ka&tx{vWd)C@3?SkZe6L1_CQy*UQCfZ?}sb zvRVSQs(>8z(Xgy*V(`J#z`07aWiEh_T4k%cuJR zpp!08*F`ssQ4BHrgrwV)2$`e;0r=H)sYz!7^M2YjDN-cx300{zvp0q=v__^9Yl0@z zG!hh9C}Xj0BBiY`KH?>cIuMa+RAEokjmwXsjx%&vuwfDuDq%dCCtC!}b7T4+3JU0K z4LH#axZkI3nB2@JTkG9^(nMclK(go4Q{4q9q+rTvWG*6}_k@?n&X z;+H-`wujc5^iz?Ynh%>eP1P?SjzjGzp;r3TK<7tCD6c z>Z-fW!-^RlBqp4Jm7u9yZ~W2GQL|h?_6RH=lIr;hHq&xQu3X%I@@JI|Jr>loB{}}w ziELV%^@E}7)#D$gN-I79*vdO<=hpRqC1gLHclYReK!z$+xeLA60=YdoaG*$6{iK`@kNUJ0zyxaBk~sUM`J$&KzmySagJi3ITkw71^iAo- zCZEM2=@=`fa?cm-84ZfXYy+{t<2DXiQ^4D6>d^JkIMdY2)vj}m>wxqU1mtU5c@KD( z5NriJG8W!FPR?R}fMp6OF94q*X@N5}7|_JoKvISHcNS3R%mpb2Dv2w(YN6}lEDDAu z23lIF3X6*6ROv-GpFH-EB^py^rHro7`()W+6u4L(bVsggtf?WXQ~3rugP}c`&lXRS zP9qr82Jhnbc@0(_`wuE2-(z5`BCwu_Qu;W8?Us-y2OHx>qRQaH?8 zz@OL$Ae0|=#!9LO0254(p#2=shGKxP~7 ztHZW(b?gJtTcD;u&fz18Hw33iriS24W)x9D?oLcRr>c^c4!cBLFFQqGXt>`Ewlw|6 z_8FYYNV9Ru5kQK5pB8)lkjCb9H2Gg!K9n0-)!5}EJUeXZ#l(<`jMRZ46cAc}aAuV+ ztD$xI3{`4=`@6}-=dwFr`);EjWZtxi3s;~W@@-#CD)`%qg4RQ71%oz9xfbi)qMe_UVTI>E%P-4Y>IR1DMzxf5*ZC%c@1tJCxYm6bh#~f zc2jJi6>w)tXz#ZNR}3K>qipPPzbCVlGd`>|d!nDC_35KGzzE$R-8ryPi4k(_|(Q9a<^-Mhf17a(XN6@iq!p;=->SSCX@XC5f+F*v3Ct-!i? zZ@g;Js>FGcQH^2Ss2$coxb@pktiU>1ZH*XF@f(h}2IT?1uo0$+Nd6)OA617;-1+mF zi6ROniK32QEE7EnrH0ap-8T~SIT@$30Gy@%AHu+rCO3BBDB%=?t?Rn>V6DMPbf9+_ zP3;ydX#|$mU(gKj8NQ9U(qvX-Q|2H>_z#jgOpbw}pKA&m{-n5wkWE~^Ai}dJOIKz{ z@^&e7D3*#EB@5R+?BBfc@@GF)K^`aCrl}&bzex~4*N@g5^a#BN`)(YhYbfWxaMhiU zZywyZy~K`$&i75zc%qQV_h9JAqwOoK^RV-l)igJhe}=hud;lDYMW$Y2nUR@E#!E~5 z&j~b@PZCo`PzoA_EF?)T!OF<;tN^oigyfI)V%e;g%ObU#@?mj6#dOwtdA(TqY0O^8C$_Hqt!p3qgZ1LvPS^Edw4`8w zlE&ENO6+6SRX*C_tZ_cXK6vMBU6~!@-hcPqs%srqDhw2W`=q#{2B)S8extw8i3mmD zGd+?ir=;~bBd5c=y#2_64+cFsNmK_O5+nmJwxK)>iQ8~tY17zXRiVx##7*!x&>F*M zOcP|f!=tM2MXl`kJ3rB)cwFxEiK2pdGDn)CVgWemf;rI=s{V1d20X}MziGtZGBrk{)s zqC>eeO%R_f@mM@%)yK>nUJNBAWHPy_y+E* zbA9MyG)vdiAs*eh`O(|&>{P}EAFZtyuJ8P+ZgNqYR}}t>51xvUV>7gc^)DI)NKqmE zh^3Xeg>5i|0It|iS}bT24fkikwvt41ZWNS3`q~o#b%}hHM39`842V8$b$DP6_&_jZYimDz@BO_OubjK|!j5%Ea;hUP1YpvGRT3Hi zfZW*k?d@APK79M_MP(hVq^5mdSgHrCNB>dP;`WR}bJ;9dxUs+S09he#a7zWLaI42O~crG~J_ zKvD{|cRU;R&zg$8>WKm(xieQQHp)O7>EPj7461>e}}f^oOryZY8Q{&Mdi z8dG}%dL<@;wlD}SEG^NqB>}8V)5NC`p<|kg3@o9Z9cO+1%64(;M$o5LWDkl?J^IWB z2H>Z?5xfhd8Y=Q|cP_Vs!~GUy4#rpXrb9L+_kM%+WLpL3hCoVL+ykGmt)ZPF`hb-Y zm=I|;CYmFp^+CQodO86*=4$FaK+F-fshb6W52|(5-MewicEGm;k6=It_w3I*%11T=G=N}BdlTny~s-kkP$lqRc40iET`9@8KLA$CFH?~}q9 zFogjacHD!j>U!tm#pu9wr6w`m}ziSRh_MetHkGI`OKf zeuq1E+-M*gMNC?r{!dMj0U@H$-8($IeLHkL0!$&{)}ztS;Zcd!&3l`ilLC%VR<_UF z|LsPR0y+@!9}_P}H<)oLMd}zVwne_OL(dd`n!6=$@BE z(8%bJ`fEstO!I&$0mu@6Lcd1;jJ_Xiws9mzGOF|v6a8RbB;`95<)?{|CeSfA`f-zjo!PUfo?GyMu>NsjAFk(Nt}Jbm#WK z4m{jMhJc;6Gk+m^Xw4-03+i&-lqx_q>Gq+b<*F$ z-y_unIQ8IF!~I9FfTP%qdJv$Qjy#jRPT-Rw!2h(~B$J&Ii4<_u)-7Fquz&a9`Yn(L z2B<>Om#6&|z5@4?!EK7hWv3CMxvPoxoM+F~=d{%K?> za!M4G$dm07y9qz8R0>Mx`auTFMvOJ!O-T39HQ?!2`yYJp?%g{#KX~u_l`9utcwwmOe0_YdN_YY*s69im&Jpit$=#vd|LNC97Nla7{<`9c zJBH(aJjjl7B2m?DQHT>ff-D;$xg##_LSqv7O{edVCj~xQQ6VA3CspaI_I9($_ z1FQ-bsT(Ac$S1}^#i;xXU|U!Ny4(Bfo44S(vaW(oyOwdHpcKG{oBzS9FV99=?Pc#0 zF`UsrKT%|GXJdA{2gX4H`T{4O5DwV>$e*Mapp5jjBME|EP&NR0LWHa|=PqB~yL9PZ z*Lrx9Nnn?_duF2PjTVQpyW*pXH%a_6(?3FWl;IQ*6DVcICsAW%96&OK1G1#FvlI#G z6^Kwi0oD`fcmqZm(lrS$td?EZ-o1MD=GFJf-lE()NF5s=8e>pABLvsm%{OY-l(uEK9L)pT?)G=mMLB-UWUePyUlg1}EJV*5mQv_J`NH{e7-kr6JEGG360mgie8` zQZTo0r|?1*ruFro6@j-Oc>y?c|4%dqhWmsgC48oNBS5(u$h3+YEIH|!>q_1(w#ulo zjdWa4;l2EcSC;4ZK0drn{6DY-7XlCq&q)6fcfayXCljoRtTEve)3+ELaH46`q>U$R zRzOBe*i0`2?20Or2+n2*)US%`9wZ1%Rdq-A04G~jHJpOCM0{*w+xDww;k&-;?yZ_; zr)fM0o!hSOTg&z^f>Vfa)*~R0^?XTtNv*J z`aADdcMq{)9YYNgIfY&+aDKc=Gq01yC4L_t&lOn(5ji0cita|>7By0d@n zCvR0p>lz?coki-BJQa`=q~Ie_gK*EHObP-2^FhNQ<0T!YX%ZLTY1)PE6Cl=`ucb)2H=5<0P@xDf4W%xi7rQN zLpgO;1fCn?XR>}6$W#5YhG!H`d+fVSRWeLx;`Z9vfy=Mynf3^rr^ZiVN5Q{)^uVmv z06@kBazU-bzXMTBA5-TH>MYz7rO+c z8QQkQz%cl48lv)ObLxx{HI;+*2c(8?a6&=%i%zifP@bgYArEM*P$mtvB_&fA;Uf8% zSR8=s=V~h9D`Bp{MoM8P3!xvAga8bdtd~*`$J|JIifA*YucPRS>a>C~f^&h@ED0?@ zh6|>UTbzZFfh$g~rnyatBhVFq_Q0BHoRKvfA2|q}Y{WhhV8k#Uhyxu=FlYo+uBsst z@CjCgNPk9RCnvRRkFsNFTpc+p0zZzSe5jK=qhcq- ziKhS_qvp`Z0F047R!j53OIP+TUbsiXd%SXsU-VxFUY3&Kr$SIPr3P8eU3Kgc#<0Qtl8Sz2kV#|wg(>T z+p2x$>TBMcVq@mJGlEwYmDLTotn`(He~|boK+3_4&KDyIU)KwoSm-l?h|1J;eROc| z`n&Iid-s6!qYDU4C^BX^`AW`Sz8J>`12n|s)t!wk#~BRtl*hm<&OMDM-Mjta+V_Q1gmP7A#}WFSPljHoSq48`3DC8ML8NN* z1?LmcoM!94F^fHM)o6C9oLD4$;8+55O50W^AJeqS=yql}Vg7<$ar~d@dsN=yWAEb@ zS*)3pERV>=o75SOGFy4U=7Z(?%GST=OV2v;*aDn(o*T-jfmrX8lXbW|+#o~)90C9$ z$`Uj91q34yjX)vYIaeq7~Z*9cRn|MyN0p>0wSVvYm#XlUdZGX zX}el->FADP%nfAvP0j~wS2>s_Fl94EJrh(m9-RqpA%sOm+1aWbwB6XEwaM#0X3#pC zF){gKFcHV?R_U1mVh_G1elUb+WN7^vEk@lQIZBYnj~skxp5t7QkUQX&N8+~QqH(&{ zTrEKE2o(IZRc%q^5*RlY&C1xi0kP$9>w^#1?_RBYXwycNr>jDU7(|qh3Wuj-mAb9N zqvw6ZlQ@@W3&2Ah1#F*~SqM6RGACsk`G+Pd^#@o8)Z0ETTy<{e<<~#e29^&5{12@; z=vvVUG0Tt6KX7FNJuI=gh=c)o85yt!FhCoPAQHad&!=dDPUeoW!PNvfi4i(ygtnoC zJJA@J?-a+(b}s{Po;8s9C(>g(*zx4g^WWu>CNC>3Jy>|4qmxaR{ym^|Ql2{x{?)+A zU{j93O{S;ALpY2i;J&850ZHqFeFg|9eTC%{nKUg7hGimL7_6ykOxN4!Kv$uzf?2wy z^YQBU|Gv6$+eT39gidv5Eyy%r=VG#1S^1rp=E**<>7)=}o_GeSee!JC*f`D>fQL0k zi!gOdCT`n#zUQKwW`u8(I;&Lm7=aG&a2KL!&b|7|xmRDj-2woV#8La$9^0;M#7-g5FwkONL*6(zw8A#G*lFi_f zGYiEltC>Jn`pmfzOyARaZiZr@;M&Yra#d-IbcW(J46aA;0tg%sNrUM$PFfClPaF*( z)Q1Fv7^EP-Ww4EYF4LMPYlH58PE^mx8v%`7&VkGj&J*|}wFCI4Tby64{6{xG`1bdz zyN5pZApkEl?F81+tfj!qDhIfU%9N{1vo}3u?6y}heYS_$=>890$+JeVM>SIG)>Qgp z9JP_{o3(aQWCQDueVmXUaJE|1uYTe6cwuM%-a*#^=^_)uWUee zArQq)_I#64SURI3(L9+B8c;{fTv;&>q)aJxlG+s*Ml|`uHhbx4 z{iR6x0Dfh$v}+YHx(~@BZ|)o(f0*dlwD~W8g>cX0-BSTTrypfWz|VjIBJCqB6%QfU17ky!hHD!?Hfy?@-5_ksC$ZS0ojba-Z_S*t8AWZ8S6p?OEb&$-N5?Vc22~ zNZzQNN}9l|sHLtB&;EXnidQ6V^}H{?<<2I~YU+r5Yp2&UBIw*?;J7hcq#0#J$z_A& z(Q~s~!r)Gw7}5kW353KY76T|=Nm45rNb$fo);4wMde_v()eBc2T)*|bzxhtQbI=&u z8B^QF^%f9npbsNRFLl?{kxpRr&&GX9LOuxoG|P2w2hP|aAvxIL(>R82Ea2-gIhr0` zWNuGBmlOun`vwI#t~3f~PD=fPdqvQDAhUGP>{`VNdYYoGf`PZI@9Gz?y!^#4wb6mN zVb{0qQPuOLg6Me&mG=hv_~Ew%IL97(BZfJYh*bwPlLG2_ft3CtjfhQ)_rGd+s{;kcrvVgn{))I^7b>@F7OTbbowwh)^_PF^4qK2^4z-7-#Ln30 z!`cCX72Fd<@&Le0vN(uW#;y@UxFPt5)_#Y0A!cQM zvM3~YjK?+}Gy*uqn%q-u{U1E=)cH$ti1Iq2Tsh9jluHf;($#AD!YeQBUAl18u1NyE zaZN{pEpmpM-Z=#X2~?i1f*Mk9rB4r|P~nLrkX z@oY;nI;Wd3i8X1ML3~66fk$Nq*+wQi@1L%ad5?yB-l~HK7j(VPFmx2i`sG>S@+!6R zN{IrOezD;=8w3k=M8{7kA>D$TTLCzIm3f99T$evCN3@v1qf4J-8Fe5ZqWp z+Vc~E7f5=%`e$sE5j&D&huI?USz&Z%e@EO4tUb<=|?&F3y zqI4Zjo%*--X7VQwJbcN(SUv0GeindJUof8;>putrHgK2amYk`FmYtm<(UARg@sZT) zVQY9{mx~LZeAO(QcKZ-l*RV0p`l&Z%5GTw<$xhY)coaP^&M4qQ~)Ob7^2NiTCCLgAaT~BqLqM4Ad z@tE`{5gMq|oi_S29}-?uA_j1w`H~5Qi<+A34KT8kADM~nUs*8oQv_~0O6E|mWzd#IUJ9_2>fhV|7@oQK*nS}Gv;ExQMP>j z@=nqQ42fiPN}}|HqdQye?wtSRt1Td_ee}Jnj2G62=Ba&@}VL&~_*$px9`!0Ug|1>h7H%xBE{Z`x)?2r#FE z6o9YXB=194FLR7f+Dz6omoJ=q_2r|sg_10F001Re2d+Oj|DY$HbN8bmId_$JO1UZO z(dUDX;~Er$Qj@?%3l3C>R$0mwNq&}_k-6u#NO{YQO-vVVz=Zd5Zkr6jOb8~n6?dB} zuIX~pycenrdISAunV~KdN_kp_L`iC>sS}erw=pB2XbzDGglYg8uqiqF^cN;-hPcoq z03ei71#%Sc9%hNCTCXk{(_^HiLwfR14#58fRe5CAbGwV?l54*6o$ns~kk5ubnf#@P!mUpaTG2n<;O01yC4L_t*f(w%l4yS9oU`asy#yN3{r4Pf)siIY=DCv1M!AIc@?;v|~>L~Eh_>uE-1dh=n)Q2BxfZ~;?(TwQOH ze<|9awmgTFJCP5V;&No!i^CN-F;xub2~=g0TO0{Kta*F zdUgKN#b#%By?-Z$;HtO=8JIwH%sRzSc_R=?fx=(M>w}Qu$e)t#M{AqERu^S95>@6i zMqGye?|k?Dzx%-gWH~$FeWTwcTmbncAZVXwkJCN!$dzj$edu9FqlDh`-1+qw z6u~x_`^`AnQ!)CFl0JLOG06K5zb$7~lA45I5pRy6bs76lze3J_^m-X>0e(AhJWwX4 zij8w!?1QQN&V^Tg`YWcc*Xypuik$P&SQVOp-5emmJn7@%Cdi3dulsm52lepo4W`8>Am--m+0y4b>HX6{aWZeO|0`8?6 zc>T~y#gw1aRu>7_%C!j*A4cnopFnd68sY?{r71~BElgt6x5vIGiIH`Ak{k4$9iQu(?nk7WCPGANkgh|u1|$#i)y5_zqxH_>6pM%ZnOW9YT(=xP8qpl z)p=(FpY(aTHq0C@hZJLMzWSWG8`2Yk6=1cF<*!B^aGJ(Ju{uER-f%?+{0p@tLA##{ zDY$x!@O)YnNqPuPZ}6)c*2JbZ)`3S+*FBi$YG-HVZ{7OafA{Bi-+6xli&^Ln4(h!X zQJ647+!-Ki;zaX&aqT#@(2kI@NT)i&sqgX8?*9~0Kxb>f zXy`QkhLP>WL{Gp>vNfg1Q(qOjd>(Quln61EJGXcK%H^)}Jqkc#tS!($ajWvN%P^X< zG%4dexm4&(v>wyz3cPwl>A|@%#iq%`b9(2p44nAw7!((EGxMnAD}-o8lKs9%nBk1W zjxEfr(7ngwN^mukoJo~~l$;?OjjtjXGB%WsIl-vDpw&*H)Hnd)1%Q-;AaJX3ae=-F zIXCn>YHJqICBCo?KxUm??d|rV-&vX;eDkk={AYhreS8~!6@1k+J)%A*WulYm*F9pI zmQFvn=}F#V?oSgSq{kDLdw9%6;IlYD#+LSCkPE`{+=#p8xM?q*Y;JtDwz+uz+~rGm z*Bzt`g!u>Qpqr zHDFLM*l?Ng|%(hnhkbu(uY?0M<{PJ^%8R)y0c94)&=Q*CQE_ zuVOt_v(*tm`Zp7w!P!u9iIi8V!^>ehX@V@Y+$Tfk>9U4fj2->sp8s+w+W2-Ho4YB_ zBHMl9wxa`;EAgb!->z#qAwD5q$;Tp!O<9A9UVoSff^rG^*hFi=j|5>YxfF!!y5#qb z0WKg6Ayh_@4R?+hxT}lEkieNo%4QJ-gY^N+3Jk!f<$@Ll2kpL)|0n4IS_2UN6GCVf zs~9S~XpHsFRC}iSt3UpeyWf9f(e@swK27YSZ#&!-1OXVBQcs&aB(YDmeeG2w67X0; zz!D+)r=qwJ<2>p!%lJ!*nE#Fgka5c8Q_>D>pq0=W^xzI#U z!j9frd-2MPb<+R?1o@xXQp0{IH8ruFklj*i@Bm%TrC0rSX(2HDH;U0KPu~qm8csZt zdpc?E#dD=i$NpV8YogdS95@@C@Geo3Xs0M1QW>_%^Bkmf(t&t)AatwUYGUq8e-V{S4liYZbY{Y0QJtBOP!z<#Ej+-dQIa4GEe=Os&?S~VAN&rS7&=Sr|Md5i^z;uFv za4uNn0)%G`mN1|ofeNwhOfmKsOcPPhDsNdBQzXu$->G)IJdVr%==mY; z2P7GlOW@-IX)5n8m80#%{s9y(#oLsVPYid7?oFj`6!o4Yml87sfQr;&02|=7XPO7$ zi32ze^l{_g(l{oQPr)I!0XrLAjmH4h$I9B}av7`Y!eV*&&ijA;`+peTyXxAGJPzB1 z1%waHVdyfztjNx1paK_uG1#2~8LO7bW1qAK$O75tBlUmER1nYV?40gUE?%a2*09R~ zndPul%hlkb*2lmOYj<~dNx>0-gD4cvxI}#j&UFmWDj<#(tBKnok;-j~w&V>L&SB41 z5u@50=psyPKx76yhWw+&arxhFD45P)V5t^Z`A+Q9%tae|`2m)EMx*3Th{AA#X;l1| zl6f!IGvxxS7((2CwIskl97%;{@pp>p7&Mvglu{^4=AH`6m=Pkf2gvhaR|b4kIpFw& zUaq=n05a;9i>2%1`Sa&@`|$Pu>rZe0<=@tA=)1mdob7zw+a|gmVjb>F$nHN*l2AX; z9m!o_#f=`#utrR%`quFo#s?X(Offw(qaL7NAF!q3K~{nj;c)E}x%RLfRP)EMZE@(R z<2^AjCw5F}x6IEMeU1(szL`Xb3F!33#147d7hR~T+E?DUyF2GDU)aBQ1ap1?7K8EIwgF$m9qT1B%lXB%WP>Mt(qRO9PS@0|zFxH*BC;!ySBG z$ZZ6~ziXRC5kEE)m1dg%n_Xr|egsY{Iid}g>D7~+_FU3XkG7z_({J?zE6rG`1|<4S z-Nu}n0Kzoe58|CtwoM)b?wZnlzeNg&#l^_3DB~`i87XVTD>(q5;KSNE(o2Aw8K5-- zJF0NDp(&RTVt8}Y6G#mHOc!zI1h;7HUF7Y}P|rh-NR0&fEBxwgR>?_6Wd zvUZ`V7WD!&Uz+7hi@opspMUtnKlqdC?w!zM{L#Vm`a0eVtqGS84Gl^UDnIp9Rn&cJ@M`mvm3dYf+{IU<&u#j>Sh8LB{D38YRi_{a_PPT z`EBw1vghWj`s`$3Mq~2ebdwe2A1j(vF9} zWDY=CHlkbBJ+u#om8)H|po?9tc4B9i&FaNV7k~K8Z~fID{c*gtUv=V1@N$a~w=7_x z@;vBy@WKNxh?4Y~@7N&dYH@?+$$y@%8o*Pz0BrxZJotE`JpB!0gNcXUTb0T@wrrr^ z1o|!S22%X+J(wSm;B)nAx!BzaRn?>8%m@%*R9A&U+@3lQaN45to0vTld+>Xd14#VS-E*FC22@i zEj#!YYA{0EF?j-`nyy6NbF9}aXGS0#hVSxmZMNe`?MWCRs5;PX2D)Z!^kwC^@p*-VE5X&E&h9y1 z$J#FT&h3T$oBz-M{J$Lj?Hkp-c2PI>F!Y23CRZSn^^<8wA42*7vh~OBi?kbN9FMsV zgNN{Vhw5ycQUs855$Ya1Z`Je1kWEsk9~M$YHV9CuMNtlxy+w;z6Z%8d1_cwSD#`2) zVnUfQ;x-15ZiNp)K{%5wqmcuUx>5ze(&^M<0QCSl*Ex_Zm%DRkZ|TY|mw<)7F!242yX8a_G zQ;*a=5*tuJq5b;Qkd|PeV%C{1lrukA@6AGz!~lW3Q`AZBDz|V;Tqj+#ST2@3wyxX0 zy?p7SJ-qw1|LuQ$|1ZAoZXPyn*|zP9f;Rj=TmTr{i9k=3CMC@YzG9T2R)v#tV$z@a z@fkG4jOCQb{bzL532x={IOw^0pcK&At4&+I{T+01yC4L_t(eMYNDSdVD*5cIBpM+sEJ{ z`A}=y!ars-dvOI~XTS6%kkX=zAquC0(^KO`h`~+rXWD?6sPkD;GDqvf5GnMu>r%#W z5(-EYM=I}A&zHEhx-cL!gPd>aqr%Nk3xK-qTpDGcJqx%?c87R6+4MslDDyhtb0OS5 zTnc76Us(pIg_zX7 z3V1U!6wqvH=M;yeh=CwFlDc8(MDA1=Aa|wAK7@6a3&7}fkV}nkDyMWrOh+vnkO`!# zWAl%vKIBA3(ckCR1N?sg`L}@jZxAf#>ZXZ}TQ$oUR(rN5{)#h!Olu{8BMku9Xlp)(is3s z_TB-hGAFlU3HBM%D-D*1!Ll^x4bW#OrXnjbL_3V=C7>-W0I5ZQ?I{t5(%M8Kz5)c& z1CgK>kjB>d+WHuF>SnQ8cBVRiVXwb??>k@n`geZkUsN}5$HTsg#?`KGkLtQ{tqZXw zTo3X-P??v23Gfs^WuGlNz?ZOQVYe-Vl|ge+Js$juz(SlnI;#n9u>d?ulKr`3g{M{z zVC?(zC&b1s;v7aQql|u|P`QWC=?n0YlkL>6J!x`LCDsJn+qhg*ru7g=lPlQv-Qmif z+o{6=ko-5nt}EZxKn+cV>d?yL8^Dr-mMiQI1XfZ0Jix08js6JFprk*p7f|5@KnK-( zfZvnX80l!s+A#o4M@J7M2FTF+CQSmOP`E6L0Rdij5wB(3(}#2vkLw$utpF2C2->n|HT{|r97w)nYOImt#j*7zMcb5tam?l~cz%Ld z0mHV-r-3s<=@Hl)u9{dyz`P75(G6HkNKJv{mL$=6ZJ-8S%Gz+g&su&ma0gT*5Z3{h zRiM^K$KwBI@6DeiIj%E74|k8q%sTo20fMBcgA@-fSCmL;B(2Fz+Sy&LhI`n~FJt@P z?Ju)4nxPFOkxNP<#hU;~kN^RKxQ}k2FQD&6A61o^5$>_}4)^f5vNEf(s>4yn)1UAr-~+_Lu^Wfr@XKL) z2Xr`K@`|1$UxW0a7}d9Z+s7Qlu2!s&?5f|Es{msJupFt1;Q{o%Hrt)v0{@62WSjoN zcnRm4wS_|Xdbr^HM^s0)fazauV|bxe0swtqGiwq(kh?hdrEw^OqrLqnt&<~dz zs+Oid)_rF`L1k~^kx|t*cI5{+AGOQG9`wiS)kQxFtuI9L{ap3aasypFt+CsiA|-#l zK4_wltMNq~62Wp~Edi^(ko~LEX5iJ4L59{dOs{Zh6uk{J+Z2wtTt7?)!bG310OL$Y zm};DAWskq}PTZz?`ey5rOK7j48 ziXup?{&K~arh)O)imu0yZ50~YM$1T0H>odty%8*;6K6>HnnVMzUuh_v5GLzpW-%p; z-=-5m%UYv5-uJj2=q+l3Lu_etJDE&|28IEU*DHl8VWLxgI0+7K4-QLpVCL?3&J)ZA zu$Tp^nA!2Q_2*0jzN>Q!R{$agJU*S717%R^#_6S>|Gmo<5O|+@LbXY zk^7``n2VsLtL@jC(?WaU`qv84?UI0pHdU||(sb1PP5vzDP@U;V>B zUHie);?Dh4h#cnmmcC&dEt*xOD5`$)io4&pTl-eR2Ft$(o7FfT>MvLDe0JRTzJ89= zCS`pcI;)J~ugft2r;re|vlvCdd=KIa-&LrmQC^<5bUl%EZSIfh$qu>Ev;uO1;Je2M zL1;~0Y;SL$5yrsR!w5g;d2z1Ud9~c(DFEN^K1_nI6A}O|L=T6<2pidb9x4*lBtm_M zKlng|OP!8n$SctK*Vt>%z8Y+}Y0z_36I_bjzl+%?v0H+%{Jt02VSFe{gCi}I-ZVX9 zd)yHA*7yNuDu{=fF9dFrduDuxK{Y!Qa*4FP4G?rA{%2@+^^2 z8mqBrVbIAi7?k+d;R5q_}1N*-Vk^0uMg9F zJLjm<-%jfK0uWABv#H|X;Agr5B%j7BDqLr~kB2#V!$zZ#Qw4_9z^)*L(@Ldqj+rdM z0GvYY-zT95T6vBH!ES9C5*!8}hAP9+3^1a^)$SO^!ux>7o)`Jfww4G3Rp7w0gDF(+%klyIaIzwI^X1Z z-)#qLY7~>_C7!FCef$~dhZqkE6Nxz=L9VpBBW_%IBB z|Dp65VNbDq%GC&F=AheF<&M0)q2~&GckJFGN>&`s&K#fEBkgZ&zSQ?B}(ejk14SRP%! zCBLo=&8|Lk+-AfE>zVyeEt0C0n|f;bO?Q%pmRPc3wU$LgHe0FT~QfP zvaG)6_)2s>EA>i=AYak3kkcm>?FZY_e8d{2mV+|}D)OR{Venb(u(l7DnbU4z`T}aI zR4b+Y4`b$mmD8!uiqV16`tUGRI8KfRXdpyL3eD_qNm5{52uA{7mPaa;X!u9!VXD(q zNv)*PXVwNAN{{c~d+SF}zx>@FiW|4Yv?vmpkMne}mX}6afCQjH<9L)W0k{KQ0XFE* zg(YJY0|5qH8L4iusqc?aM82_$@3`X>YCd3HxU$ox_uI1T3ee*hYXEzd2AN9}8W_M9 zXq-3D>azX_edkbRcp(NYK9bvp-5nUt<)*VTOusCrlb!qbOKTvPkS4ZBL=H&+C=5HE z0N({hn#vtr;e>F}^!nYL07RNoKA(w&I5oo-foV1Ui8GKXsPS@6xVb9TmGW}Vn;P2P zNDzul7Eb~OEv)OIO2w=p7j zF+o$2ci`XP1bpTvTvhrI8-1a!OFAa)k^FAB_;Hg%h zHBFuhI4e@|X?OWH#5107 zBugn;|CVBoLIW7XJ@LrV!ut|$e%0;5P9Qwc#u|W-m$?AsHl%H|PA28OJ2wRUn8`dz zQ=3nL4x#{nH*k5u`_C^M(v}7F398y6n+-H-qOJjxk!U1tH{3srByfZ`;fz*kEKG&< zt|`u3Bn%|e5^&lV0tQTQVL!0T)WftgPnE&VqWc{;hu>OZeFIS=QMm;yErt#}U6&Md9Tdq6?gNN`)j5H=3&4>N33){F;$O+sQHvQ& zE;9-^KX4NQ^(TfYLSe{nBBha{B-O7{n}{jYSY?_azdv9=Q!CYAFvua}Cv`T|DjC6a zmqZMQ=d$d4B5%HT;kBRt{OzB=U_ZE}w+qZMCV6ghYS(~i4@Dv&t5{XSf!z}(J|gu) z*L|_2!bbxprFps$YHX%T3Wp0-5D+ptV1EVQI0x6Inv*jI9vW1CC67e=%l)aTU3Y9g zuMAG`f!AWXIi`RP$_8+gQT2=lzQ3nt48ZJ7q<+A-N1ym+v9R9ip+}R4TXtunM?)xD zmZ;Ey4w}^j`;|@9X$|BUn zC3up{ zfJuDX21(q|xrZ&NkP6ibqVXg0PQvv=Vn-IGO?4^}3JiZnfPhxnG);26n`@)BEK990 z=|GQ0gN@NzdGG#je)h{3|MmMjm#&Fvu8lP|R|JT1IeXU}XMw{9?!%_ z=qVNum*PK}+T3^mzlc52`*mIWBTCz=M<;UbVXf7%)Z(t=1bQXZLE(2;tk~7}>5g4n`)2+kKk{ z55A@2^V(^^N&5T-Pphh`{VtC1sGe#FFgDBp01yC4L_t)EoRMf2jjI#%*&Fc6sYQ$L zSHKJh$sF|jEw=bo=rV)~L1chEy`_X!VIhGYTtG<|fv5NHNJ3*v?1oEscqiop>$>@;s4YZPwU zJKbYupr|0w^`#D1-uKM6o>f}jn9W(b4QLvGeU5}Yh0=Cdx&~SY$Z@9`sZ>a!V0u)I zMva_q?w%sw(^v#B-cegb+=nll4a z=4%)pKP8xLjN>(+bd2Y8^bw4E*JYVt5Wp^MbF?pAR;Xc#CyuVVZc3rj%Z_#b%7-?f zgP@dOiE2HY$sZS4dGLulH)?rf4IdnlIP!?%hd0ATt+ghR()V}St9w#}zQE(N_90Lh z)FEZ+AqC`SyE~>fSXRw1EVgl>u1A^>YUV1Xf^bczKm~!Z0dTlsEhx!!sT8J`N|i!v zkZJMQ+FCXqU-{+BZ@uu+&0oGUxqVkm@+?t#kxwUMsdScQ#l)#(hgxpt*_peaa)iv~ z>5Ohir8kszliecvr?zjDJ>-941aKH(K|?oH?Vyf7lH+Bl6*IK6gvr~OwDmM<_&GLd zQNYZ5@o){1l+*m-y^o$mVo)e4BhcF#s0d1lg9d3FxNrU9CNt_ZVqV z(1jC>gPCYfxjUz+2`a5S={{-0gxj<_Y{IQbfJny;*{vN1@?0DZRRJiyVA&Mp$GwmT9^ne>uboRg?5cZ2BQnw zZAI=%z9 zO|IX&a_Q>j-@Nj{>u=gycf@!CH@hsy;~ktQmg+r%t__MDH^S=)J zOzxoTHu4)&Qk9x*u*?S0J|gieE&zBdb93|Bhm-MkIvA!!3e=1U12vu<)0cwX!Ks7* ziWI#|g87sM)(ptiHP!f+ivFQueQ@3!AB#KH(6?t4kP9T>XH0WZGXy5FncEo@bQ=;H zOcPw>Hnb1oU_5?;*zO1Pu==_XuP1dWkifW z=+0#VA1bPn?Z;d{@`Ebk@Ij9rs{&FDU}sSM2oO?AXQ_g8KluAumJO8FLJkup#?zgL zcRu*#i|@bw#z*g677w>no+tUV%yV$z6&W6B^E{vAnNIa+FdmN$)%IO1M}2chUI9ZX z9W@)c1CATEim^QZ71{tMh_0LlYCXXRkN2W{S39Rl(NCRgJ&IU{4TuI{3F5W?{0@s( z|5d14ZxN`rq_)XmUq`EmUo9Y;4y`*-h6cgAYC2JnBtcM zYrU-vye4XRmOg&!%rMMz??Rd;2L%F9CEY2vKlNoLVGlMhNN^}B3GkQF#4Z}%LY%U! z`XMGmvIpD-z*hkC#2*qh1omd6?+1IYoeV^(0pzcf+!PPD?%lX`_3d{qz5RCn&P99w zp(vn_*VqEmgCfz15;?F)*#gd153+nZnQV=bR+iQZslt)X;lZa%B&368=yXr|?F(x#sFnx);R4RAFjaZnP>RqFVbYJT?e&f%~I2GoMw zkQ<==P{JootPA&-GJ1pu^%1C#)d9Oalv#FJc4YvnpD4`@1o-wS;MPrwTer7Ay!y!} z&VRHG*%hm_0%kgClG0!s5HY49lu+87FqmASbr~lMJwe#d2~6?WiVFQ@?6f10&tZhz zm-F!9vQ*UBRzm3ki~%}*z(7nDLO4spal0Y{W_;MFNJ}NwkkKD|26&tZ#uW@Kp)7n2 z2^~ZvR1$I3R-fXp$o(PXVd>{1xc?%Tya10u`m5WIs_WuA}?}k2?m7@c_XSY5XuvT zM)uN+1_c9T2__zV`nz{?`Byp^!9IP{e}m)55sm_*G;j|)9Ft2i)jeSUU~{lik@5s| zlC0dJ6&BCUVB=5qYPgDVxy$1gfaECeRKXBw=rQvkxg1VKb%d(fIr~+y#5w8kCzlNI zu+8f1oTu+RdbpP`Zjopk2o6NR%_Nx=Q?S8OXeG13dTz}$&%xOT3co~T0~l4KAa{GT9;o4PI9wk}A$IQH-@10=qx%o9zW4UM%O5*<8$tOVtpCJH845{r!gogaFrU3znCm?mVP%ma_xTtq{9F#J*tY@ zzrDir!;E$I+0sT}QMr>`o()+0x5qc$zx2iFB-_}qx!Fm^6NtfeAuXWDy(3ThC{Up= zF__2q@h3jxkFB-X7>sYe^O38)1Rj=Vykc(`v zQ#Y_20mjyC?>7yMQ%kELYpU;r25bs+6JE3o~BYm6YtnqVRM-c)P`1Rn#h4DZKmYr+F&pkm1UX9ax@&Q>uj>M zQ#`tV|I(%F7cO0W`<=U&ua@^8$zlrm9Am(@*3uf2u|RXvlEA^0aHfm;3kwHx>E+#79dh!T=HLg~`N%t;HC0{?cCI-?c= zhH&#FVWFTiEhxZZ7b!T!Rd-lGv4GeVIx%!48P2cpn+UxFaR<8F#3jc`1J~UX&T8?! zKA;@kX1?%jiTAp$_k9SAMe)#N_R>SvKF4H8tz7AiK+tXNVX+v0xP~%9XI1TBTo~{a z|I|K)DgtN|V8|p)SK z#wc6QhSTjwAKkin`Mvk9U$}JZt@oxk?}@Fk$O~l!So?Ac>xEDoj@6Pxq=43P>y3kh zTw)%RceoY*>nySB=L+UCR!h|w+v~Mq2>S_I;wudvCj6^|I3Cuj)5JHC^%v()AT($7 zxqzZ9DwR@burKh#9@e#7Vu#?>P2ZK&Pzk+2j*%V#7D7y?+c$3AyL@%?w>}A(<}^)B zHZ~J{%M^OF4pYeK2-G*oLuUb@6O60$LkYP<6@vhnkWxE&@EL(*$PbX`-7u#?$s*8v zoOyynsWLIXgaG7}tySViGnY<5ACZ4`HULqSd?GZX5*x=j007_CWs+=N*ZZ_h^|h3w z3c8A%#jSHU`I$C;0X#m37K(G+6(bw29(4I4$r4rC5x@iY0@yWh^=K-uhIA19b(9T@ zqR6sQHe4&Lu`(HDYgv{-j%O{~9A@QYa`)Qx*I$3@(ra(rxpGz9xhE#Mm>La5HXgKS z;C>h>WNL};T3IOyh3>wCg>kx{oofrV3P<^XxH1Y30@~Wz51t_vt*wIwRkapc>rOmR zvmLL_KNwhIcMjrsi9N)<_Af_+0y@D{eCC1x^`lT4;+pS0st|QBmM%T*Bs0IGhzHvb zE?*n|n?EyYwrya%pGZ@9C8ZHkOIdJ`54bua3Iz)Qa6VAW_&1CIpr;?5HrF};x{Uj^ z{OgL%1O#uTgt_Yyt9%)N)n z&Qy*k3dVObad&~~6b)S1!djRUU}chH-e1}>HHi{xj1Nt-1sBUTqOSct!!t())q(}; z+drh906hGYX9sb%qbmOT^{47d>qVIJ1&OjM24H@LevCq-rPIl_v;V#MqI%AhHidsJ z1IO7#a@l%Y7FuV;G{5ui<>}oA*^`fN>0D|JG%>*3Nv%RK{7+aY1`1h#4{D$Th;$uu z8?d_MaNaj4!8`-VW&lMf`)m-eqizJO5tJGDG|5Itg<2kG%>?R(i5qdwc~~}VFH!B% z5pwTK!S!&;C6R+RFMrVBPuMuoacopHRLZStww$W3=sKW*jZ8v7?&g5JE_6V4RyUP} zm(G#60cKxnbn~H{Yq%04rAlGI7LH-mT3eZ{udk1?(Lkqql4iIKD84q>e`RZNTP7cbqpcI~kzH%UgH000mGNklB=XlPXRQGm>{}6h?>$06JiA9Q2-M~SZ@K1S0d3$rm0G`&eC)Ma#rfWV6Z;gFk3rU zUV8cJD{tO>>)rd8uc+;*8E-3Lw3Y?r_>s7q=&xafV}bcJNH1Xe29&>od;|9@U}XZ|Zae@3 z=ixdKWyEtOJ@H(iO(;Xd%f}TD) zhRN&0G=n+3T8m^u56*9%+1wc1zk2 zw*8H@&w09r-+M3f0G2rtvTC29^ApER+Nyt1W6-Sb2I5|cc@Nl`8wn2QU2sceHkfgd z0+fU-isIUP?|uI6J@tvl28k-PF10CB$n{tQ^F5%4UjZ_uX0f0nADeicA!LjYW*QtN zrPnB|-%*z#yvNN7X4+AxMS@Zy=spugGD^lT0t`?LySJPX<#)=Z+R1URYO_8oK%X?3 zdED_)Cx*AcHGI|YQJEA$ih~F^v8aoiS7yhJdag`0PUgZ>!oj%6>MW#&t5?_t2mJ}j zRM>Qof-y*}R9a{awQQZ79iGjLNv7rcAX^&^A74MSX64rHdq4ljZ(n-j&HESL7dvB7 zK!dlirB=GY4lp#yU}Gs8XsB7vgK)_lQQIBlx`8WmD9@Tx?*k$~ps{-J z8ZaIoH1IRoaO68NqqP)h{n4%(3{SHpJUQc-%>&?KCH+h#L2>+K|DnL1ztpQN)S|&( zakL-`RBEa5$YK%Jlj&RVdco}!MREJ`m75pe|Lu>TFQlHPr7=borYwwANrAqrum}`H z%s#1X?r24Y!0iQu;U=0OdLRMR!dOozF~aOAJOVhyn9yfG5h~2SmKZ+Eq4UR=?MTF` zMPSZqw=7_^7>5cE6h#sJI>L7dHwXp%!5fAZp!a?Qnk7kO&iDm9a3S0YGgt%wRrr9T z>IY{ZRX=PB1sA0R@bW{B2O5W=)lSQ72&37w&;xBsd;VkR&Y#&lGZ?NXV*C1?7oUCZ z+DH(27bMPZ6jcw7oj-4}%y|I&%>H-oeC*P8 zVQuz+Y`{WCZbuD>FhSMNMF4`4f@YKnW*ek1!1Vj-r@s6}y*Wx@WS6oMM}h!j3?H*J z1rae<5E;gFP-dCN%`+D?IpxHA1_TfEXRHl)Iy;#5hboG}^)AoA^#iABAaUYrgP1?( z3PFe+2eLc9T1o;1qZO-Cr5AQ^8G14Sh2@pFVY}Xbx2ma7RD)8DdYlpVUgJ`+fUQa3t7|@32;kbL_Y^(FE}#quU7$JV2Q;b#;}{w-96+VOlVU(oU=^2&%zh9% zK@K@bPi;*AAc4vI8FzXxmNj|-K>%HH+`iU=nAyuP+w#JwuCCn$#GFqGHRDOAv+ z`rw+m;&2XE_>xd^ytbHi?7vt2zQYSHJb)pF=GGnF*DOK%J30rArD5oNMowcUbLNSR zfa`}QjB+r598bHq)bj_32)^A5&VZZ@vPqCEsG|nuKKF$MJF{vm6<`9=Pt#S|T4MIwN{*Y5N zXX9Ykeh?#+dG(Z4bvlLmDXjMu%+*r%fbfnTxZf>scOyB+03okzN^u5>L5|6fpwIiT@lhd*U z*goE4o9AUxW=aEa%bEfjHb5_9MO|8U%IRV;_ryed4yucnL_8Djp>csG&Y*T9+FZoh zXt^?2K6kLLMqFE4YHTC6b>wJZcq*CoR=_Gc8jtYsr_K;0F0!MjTOPA{03Hri16s5i z|Dwz(>>`?nxoB0RT!Gx+$$aGM90|6X;moU2g zzF5s)r`Z5Nx*gaZpuJ0K0QIMdJTn|Vxp8iK;~T z_^3pS6tmw3>;cY7!Afaw~ zeGZ2WNcC9qj0*aliO{{3sSaMwA6Qp0R%829nDbdImA?nPP+fpQq&nKn<(|#6?>{Hk z!!bbB_H7@n^9VD(wOHAVeed_(I$Ncyj64pMCC6{^IOsK7Fq!Gm|Ho+BR}p z4$8tR1@mJ?IYDj-!1-I~7%nuG+FU9GYMbDZaKV@WhFEBTdAa8Rrnx@c#IGL*6PJY02(6euz@Bm~k{iw;L{r`01Rh z>nVmD#RMs?Mu1h-Ck&@?Xuvv}Iw>;^{P{>FilG2R8yfgKr=>`TX)cXP#9+84gv{2~ zwASnC;PJ=LZ6?Xp=YR2=Z+-X9n-|k*ZcJXv#F(;RONOa^C4iABr-CS41&kelyghQ` zvpuHA2osR%}qyEwaG6;Vi`sNl&z*!2v2~Hj1w;~ z&ZvJE9-7M2LGGX3d5%tq*_uirNVvc~T+ADRv)Z8~pr9vjD7C@*k4kmAxu!}rO7+?x zJ9qw!ez5iHA3yW*cYh#m+!3Xj+5*XeYOkJaq#)J{hwy=d4I`l3eGdUq)gx4YkUFpo zbbO!jcOH8U=I<7^L&8c!2TCH~2y7I4+ewN>0btMCqCrHu*TbB4Sz0G>J3ct9$y~=p zs%NyFT5SNLtBR#dlCXIQ`CACk!C^Qg5Kx;jyPHZxF*Wwy!}p$l;fr7W()q9acRQoB zl!K9!JCC-M6jPi41DPC+T+s{=bOh0$^D!78oIm-$jy-_c9~{Ea;}Lm+iVtfD(CqrB zeDZ;^TW(%23u|8LuZ06L(>07h=Bp&v)(xBNeOznH74~EE&%|iQgDWeF0pD~Dwu@>3 z$j9y6VQvRwy{51O0|v5F!iN~I<(ZB3DOL#9)&^&?!Kcoh+q!-8C;#OiZv5<5={PTn zyetcqrFIIXn!urUFnP4Ud`rptyQhSDZ8;a@pQ37HO@Od+hw>b=Ve*GIf^ve3OKBT! zD62o81o5grydCv`&O1@9ybpri=b;y09}u*d90YHT6{ky<90B-Bz;SE=J0f9^%uiqE zf}^ZqMsZLqzLRdyY8i9_Q?AxvGZ&Gj0dYW?6jNh9y!pm6Kl{ti{qAsmR7`W7%0f;H znM1-F^-W@>0n&aRt%Y;P&^@(}3T=STm~f7-eHf!rFWQsyRy?=pLjPgD-Ka94+EID3PxH3Wj^|7OO_J5#E8gs@`Tttbc z1oG+ax$|D>_!J!0V8HAsrF}^T!yc}bLUCJ^iPo?tfY%g4ris=@s`WD)QtHB(Po4kR zV>-M1%a?xi&40|_yp$#)pXA$#9c^spd0uSo4AP8>w{#BF`$amRD?zTR;qSO{z%W10 zxbs2+)DJ&1oceNQC!qcAdpN^xFJH{3(O!X~Cu)v)Rex8?zV@YIY*DuWR4qGbk*Ct} z_pa{_rCn{SRMe|B|DgoCi_$DLY^j|DS2rIk{NX>LBe@%j&b@~O{$ z_K8n?>h4Dm#Xt&U6i|Vh#A;y>g$b1K;EZE(o^d7+{^JCBDj1R`CAZoqa3PLB!-G?c zaX>vAD?}3#GbS4`yox}RBh@gcCQ$DpaL5&SU6zc-iusW;ZfEddF`lTG9#C5`bE{FnhSC`jyQwTm)W+G3C(fQ< zn-stK?)P8(r++CvxDIqoc>(42GTC|X07?g1PpwgImS^R{V+`mgcKN(NPjDa$6i}Jc z>QG-r3!zz!-}0#*cftIne%*Xuv77tu{0jc0mUr?GXK$Y)u>!S%hI!KT{(c=A{znEs zoHiRk58lxXggMPJ!|SgcQva(f70^URYUxBi20t;?9Sie6gs{N`dQv6^8Ge-5*}4Am zD{npf>>qyZYooP6F_y_%p{JlY3Ip8(IKvBFL!=l&U){s#F)agMgj|f65r(J%m4ZvA zGvOP2fFLk+ii*l9QFFLDlYr3ipy0tc?($I$ZzN8`YPpgWvU zqDm*>^vP^!&LH7RvU(+*?i2h@^+QDCNS46LAjTg!G|<3U1*Q_{+*F##OeM(UpACoW zgTY#M{_Of-XXmx={rH7%{EN7EFEwUb0!m72DU8i?D`A|woa{`I8MMmq`-_Fl8zE3# zD&KkZG`!8B0IHc;%(dai-OvL>Nxg8Avuiz}M50IA)b%o&8m2v^;~)U4!Q|7Hpn8wr zwE**B$DvLs`t#6*FcQm@01O&)K{eUc#i-#&NwwF(KQ1t5j%5j0Pb?dftBSgSkfMMh zRNTU86PpQfq)( zdX@@8&WakSKhb>#j~*1co8U+c5H2e53b)E91n)UueV_teQ4?d>0Tk89I3)b`U@(xO zfW32vXTgK}mb$7X0qEH(P>Smx^DWklm#6DOwtgD&ncG8@pHdJ?a1 zrzi&{+Kq?U-Rjon2hEM{_uKDU8<@R8-*@dAxXpf8moAD5q%<)+@PexLP4AHfD2c}D zQD2YeVxY7;p)r(}P(j4p0FE3)y$oP^%nku^8+IzVZA)rnr{z@UrM+2OW@h3iY z=95oC{$x$wH!ys*ERz%x9&$3ViPB;UIvC2r0D%$K7A3TX0+lhOcq~i~;3>ThnGVRI z3ZN=WX}~NIx*roM=+?Vz23I$0ZYf3#8Wo=**a?;fz`ut92Eo1OJ_%pDs^>8f+}dRR zVFgM{#!Uk3&W9TSrv;AiC9J117V6|22jC2Nq0WoOQv zS>Jy6%-{Xp+u#3*d{9jCGEIj?zCDoz5_!r5=CDCV9%g|-?Lgy@F(a(Od67gxS}ltU zynKqLmJ;L`=8^uad#SYqdlEV?F z9{SbynzdiR>XUXoprw>>&XAicw-4E~K3Tf7k&|NXj;KAK?E&@yta4@e(D1^T|DK<@ zut|YZxyi20G6aTJ%FYnhk5lH=96mA}7`Y=kWFnvoKwo|J^_RZ?!~fww{QFU+9&MY^ zXoOJn#K7Qqkqw5qDWt|EzQIy5Dn)1vfW85TKEy#XRl^Sco79L*pg}CLhTL99N=wg<@zxE33sRHL1Viw z)BZr}zLc_5Nt&fF2LOzL8Vs{UsWay`9zSP@5UG{k^&0y zyhJn@hcK5k-kzQGUb^z*bD8XoEKgy>$!zbulf(jl1vsEU`gSJThhA;_tlA?9JVOw|y6ZGfYd7G`H5i@(eJGuIo&E|!|V;Ka1hIOi)>c~P#d zt*gOMjfQ8|hL4|FAK$(C%dh|ArKg`2cOMRg8t1u4Q)>%NbbHL*?{WFAR>71FVa3|@ z)43dts|~n5wh$Ofvl+THZxdY~{t^sz@qg>>|Dx6or+?dwRR`x|)gThSOuf8WF{iEM zy9*5T;A$^NtNjnZnnbCF2KsHjhL^StaG>?dtFJ_nw@vxt5O+@r1vfH4s6-=Ku{9%8;VtjKo$D!E5ZX}NA{>B*Oi9A zPso8gC=njKdJOR-fl7n>9o(=@vLsA`=H@PgF@UKz8tj2i6D>ui*4DEm%k*ftwzl^8 z##(vz?hpRo|8)DAm&N@@8MfdlDNT`=36M!Zg2r8SrETH3nA1lk?)mck^?LMrGNU@ zubw^g3L zDU4afNCle5NTKnx51-`042R1n)Rzq_C}e@C`=K%Lq#F0$=ri)AX{tInbPyQ>Xn3x2 z=s<5nx*i8%x_&W7Q^#o~U;xF7lo}?VDIj+PM!nH6Ny_2+nwIJlXEyE4TR-}b|M}+6 zpOg1%VW7=cBU&_{>`0xGlg~(2vQJQRr!hDsq}W{FayZ+oanpm=E+PkYKU0a_ zTZ<55*5xf%^JKhcpXnrVXGrS_oI`wJe$LNNX~JNIP(X(Uz&a|7(4o};YG?ltm#%gObrZ zcsYyx{~Jde{EKbJ#mJ|Z+3ECd0&Rq`udE1h>fXMQf*OyTjz_1f>>DYOa_ftgcL`uED8cxA8^+J zq~me|6`>g9eu_NNqoe==GB~kuF7oo$GcUYy_WW1=_pfa}wz(~Z+8B-VF*FoUjG@Vn z5JZ?VFL1(dBFcgcH}#1z8w9kHp_1|xJT5Cuv^iBt(^J1W5+0zJz^`%r1jK^YoW|1j z7Xbkp^f5Kr$Ix&0dWKj`U3h?>fQskFGps5*#%W6aU<(8sL1XusQi;~!&}*dznHr?) zqqVgxePS@Y^V&O4fBo-oz4&TYi0Ssk00~?M<@2paMyhNufB`NB`nu3oF;#40OJ+lb z5D88cs77fZ0X0D&2FkCTzjh0gaoqJ14-;LL8xSU%S+$NruEPp+XL43ej_Tz-J#qvo zAbWg9JRZ(j^}L5}7;V?zJYy)$U*Y~NsGj1u#)=#h^Y^JPq$+chaU0yYtOlrgv{Fa#ht5Gf+o(TG0+OT#=uP#_3~ zzk|{vP`@uu@SiB9gSmdJ+>*QNOlHuGTC1r9AjlcHi-6jmEiQ~YBf-=V?nXuouLS6f z@E}wcCc{EJ&kAYbv`(~^K=_=cqk#g*|M1Dj&c6SfSAOyz|Lf$f%X%BQowL!JDM~vj zRB2T@m`XdfIarb@ki|Kx2bUpBXsm;U#S#M&@Zm%sN~O_^+z|a4TqCphFb{*P3kUZ) zlr|l|TeWI?&&=9J+O#d}LCXT}|AC&zDU&)U?c7emo)b8;N1Ppm%=!3MxLVd{d%VQ@ z8gjcV=|}pnZ=?#5DqW|IkaTx$4tWoFc1aovxq`^0#eM)d9=8|KzUav3xlJT88)ssI zB@j*Zqy>j>XV;JV8Y@$**z5U?n|N0GU^dEoi ze|;d+JH?h3YHcvGFhky?O69`ZJW*O3N?w=9gzPffm~g>@4!ysXW@py7io_TbLX_+# zpT5cC=12<&@m}Spo#)Q_$gKtsH*c-4Dis?QNUPW~0Z>u6jL0>CJzw}M^(8O{6nKx6 zN@0Lnq7@W#(^M&F_0=L7Df#&M&5J*J?zwOM^Z5PC(wb?JOQlRvpw@PJoT;W=Ufb}?SSK}_v>XYi)VE(#YyI(i_wK2-^up(x{?pA@F>ywCbuyWXqV5dzQQ(VI5JLvVT zy}B)~w5IqL(2%UrAJfBZD3uVrPHw0#jC0{3-?B`yB%M5(s6lEjT>Zu0{rw+4fv&!1WU_;B?4v(NtezkPFj;j)+%sZs6UC4~!5ysN0 zG%H0pNVCb+Yd`w>Q`=?nrT^uxY&I~)*euObIhjn%I8QYC{7?plsgwW*q6ReR39E{+ z)Fb8g!y~cQkU-rvNeiMsuT9XM3-Ju%_Vh<>^K6j6Br2*ILqWb zeQKa}US|OyQGo6f@2ON;>Vecsr=yY5qv3F3^K<9UttH~MA3y!GzyGFq`)a0AQvlVD zQkg9aRVHRShAsgN0?58{mlh4t^w>?;#7noX!vOTF%C_V0cbpSn(3e;7gL>M>*&A$n zj$Ih&PbApDI^re_L9!61S?qd{Xakla(EuEhbURryD-E+BapH(4vSm!NBX>{;oG`=- z1Z7rg4`!^3SJO%vGc`MTwlYg6_1#hTgW5+o}EC zhYP#>;RL$IF+=Hl_7*}_1e=9tTbpU%+u7Pvn%m-En3yJ7ibMmjWa*?!tjG9`&v%L3 z+pmP*1Vby0X7>IxD>2jn}yu+EKz-$ZI9(-f%P z(%~Q**wk*G876l=di6U$ef`_tlQ(W>!sZsr*(yyTP68e`FoB6uP^PE;7C15L^2PZG zbv^DCedD$^{DVfYSPKn(?R&SJVc)vV>DSNRrt=_kB%msYb0`Q-aHXO7vRDvA%$Er2 zgf^XKNrHP94Zwk{Z}@9{{)Wq#*BhJ~j$vb8LVVIT2Hz1?KP+*Dk_~V(c)8OCgKO-D z1t<@C!8C!(6a%TDFG~+hK1~v##grVdNa~shS*Z@GcR4^01 zRtfjC1g@Guzmgv5#APr>*7X2G(kw}oR&XYW{LxVE9S(=1fgVaF)<>DSdHbbreEZ^e zpO&{CjilVpC#8Tk;5^Tb%`*kS|3vGZ=_Jv}Fp86o5uA(Hi#E>>TW=72))Z5v*{c*; zkPNHRLm_~8KUw?G^O*lodsm2ilM9xn_P!BpQH&m2N1T8|?wV zv|QXd;XrhBcQn!&sM;ve%n295)KJdZ&GthjXn^puG&ykgNUicR7kRF-k-dKBm*4)E zEB9`F<^TAbwNHH_$+9HPpp(GlC4?NgEs&euz`%HbPx`(i=C45(d!AR$r-ykRpay~p zc8b+u$JvIv;1U4EknaY7ybdH!h^HaAaIYqqHM)_Gpy@XB3E@ew(u?ct8hzPNV3#it zJ!H`EtEEac%yr3zgTWwE*>I3-UAy+&e|zfoFJ91-q7dV;%#yW%o|p9=^pn_x7E2HIa^|DCr3_`_%Sqh2BOMEwNpuvj|MB zA=n7svr7n%jyn3VMEg|QLW|x`z{#Tn>#!ZZQqNg=hdix9Il+S`*OmxD$>SON26_!0ZdWd@%Y|C&rGYFyi*~ z!|(lQdgJCF|6gDG)K|W`157%ZRq3|c$%l!Z7*!@(4hnpkbGuDZMK!CIIuT@nxqmE7 zK#~Ma6qo{@4s6^a@cPpAI_5N4@+<*1Exr~ESBDiss7y1XXH{jzMl*7>sQ?ZJ3QSxg za_D-r*x##QkfVZ1BQ%0#YN(}7ve7WH<@#{6Ib4&axbxC0&wlfpk6wFIKb$C&m~vpi zuuajPS)mnlD_|>xEeoX2N8)W{(buT)fKi*y2tP*(4896pr}`7(F1GoEK&c(`e6?xP zRLACJsKZQmdyyNDUkFQ^z2j^P(P={buWqs#tpS~670T@TQq1_qdA6Bx+Ey$qp+>NW zJ{4do!pq_ZYs@bzNY!+#r;qhL#8u|k{T-{h?a~5%*e)32Kg>jl-L{B{gk(D|7?dk3 zz68ohps8RQ{leaP@zo#Ry8G3Ccl(Qf{g-Dx@x-H@aj8ssW4+rJVd+)vYn-{xdIlVAYJiWLYpB+qim`j#V77F& zXV;HepHP5sg1#M>F10`;ij!4j13fYuunbRshBOF#8b!+>szw)*J`D0)F-1&{s)--?k zaJrEWic(E&nI}*sC}FCVp-GKGKp$2D?E^ukA25-S6l$Mnr5FmA+hJ#)Fh$f&fYod! z?xaK!vw>E~dUyK}=8Cvabnrm~VD9;C=5%+JitNUO0e=&Nbu7N)zZ&MykW01`zj3W+QkU_hOR z-*wCUke3-Qd9yf--`Vw0_3pJSnbZ5O+4!)E6Ik%2pIhI_9L^UV7a@=2gcyL8jRR&- ztjr^<3#!@Rl>$Mkp6=3d!{0<>;PH?2IpVFE-iN7p=sTeBTa*G=AJo9w$^A#SpL_nt z?_K=--~8Lp{rR74e)hNW%|Vg_zH>Cl5?fecyax(tEDRI{a1FskMIb&Vy^oU+p=?c! z#6icYW8j4IR9HlHCvRW}(zB>QJ-U>xmP;8S!?aT|Qf4I$f(M8v%=tpLO^GoNmVUD= z%`%zF6uNxXAXQqX=Z7QlXngVMpa1&1-+%Dt+hXg{s7#Gg))u)fXsAL`${g0twL9Q> z5EmQ#&vRp!i2n2!<1%BIed})bs|ZagZ0L6XT?(b{B{V$l_T+%0m2TG?!!yo41=en{ zS0gI){RzG!%QFCdxiGn6HozYJYtZ{<*7Bj=V+z2GlojEPxoXHW2Rb4Qgw%N+d=_d@ z0?*X71wc*)@;Hz#x0qDUr$P=(QSMB(w9;zFm`m5*c)BfQ- zYCl5VY&xw+NF0jHz^yet>{RP}KF_H4mn$bH0$AlZpw~(7=@YKm44%Z~G9+G8G&DYR zRMw#~&Xz!<6EZE(utw?A(Nc-Cw=> z^NW{%_odhV=zsg0kA2~D6ChjL9K#?>gA0$}i$Qcsl_s-cpQp-MBo zxi;EJ(_twd-MIDoGta&8y&sM*T}#H3GB3=du}(+uwUA^}nS!}40DhI4rpcrGiZdO3 z`J@ZJQ}fg7d~MEl1h=oO?}a_yv!x9UIuhwr?;*dzhEhU|KzP_>vjpxtx&Y!hFALb;WzagOh^? z0RKjG{$0-ih7&x@vd;JvB6h-0R#tU3sjiwJ1%@ZD?D?M(S=ay^iw^7+v;m+SyCCf| zgwhDC%>x_29&~`=@tlfv$CJMd>ELj-Bk5PTC{?l zOpYXMg@6I+aC~bhvx7DOqZYp=E)`C73v~Yx*6AZ59t!xI)vR3-yM4oHQ;9c>#?Aj|DhQpECP~0EyxzAl+3kBBK!--32jDrbj-tTi6Wj-NB9inly&6u4p=f~W2ADi4ZK1eQ3N&%3 z{$TQZcB+U{bhJ#6wTLEb$o9FptT9hzIAT`PYOA(%rEnv_ja>2=hTxrPA)Vy7sGyutc zMP+Z!xoZqClt>bt@-Q5UlM9y{s%Kq<|S`7+pXkhQLIYfW#G~d$7{WvlzqElLWGL7S~f*Kye&;!W^2* zCGqJv^?S{c99eprQR5h1Yk8zFYs7VunW@Ew-;JdcZky=bYaZZy-;Q1y+_#-HbHNof zWtCOGoKLg0^@&|gC)*w=40Nsrt&<|1ou479XCc8^@QuS#>f4PHX5^tidR1Nq;$qi^ zgMXo+?mTRg=6BJ5sH92c(l{R-bXo}rKHOtkf`|Xs#aFI=_~wf*{mvhK`E!5r)h9mp znR2AJizz7PL0Xo&D2h_*Y#@pxHKm>8RvKi7hVC$p%?Z%|Wr+Y1===GkNYP6r4Hghe zQ_xAIfbEeskr|NpD-9zXS-(h;6CexpVWzyRW}}`4_)>^w!1X z?n5!1Cf1f|0{BiWJkUQh!v_;O1l**P5gzwh^J>F8LY>J-Pg9kwv53vfTt|ZK3JmKk z4u#rzq2OSCn9Wkk$RQGGMes;RC|0bl9DNaZPBU=OS)IeVNnI2!0l=sB3GY$gmw&*m z(9d!R8Acbe-mmbZJdu$`NHX(2>Pj3(NMIoxzD|=;cxVjlYan~isdYM{#OdlxK#YxJ zg@KvAlOo@mTzK!=g&#aK`pj>C;V-`W`(OS;d1f;m4U43-c@BA)!O#HpXfe#72n>l7 zr^QSO;87wIrLqBi9jRbw7{>W5I0ua?10ZRcqTh`PAE@&3(*d(vj7ZaTElXu#cdp;M z{LaM>F1&yJ?Kih?+!8nM$#I?;Yx81C4!%mO@iSCyr&*0qGiL=>gDp9wR-<_8p?UB( zD7=ZgJ|W^@gdV&@P{)m77%N_@IL+FBB@Dp)W+1cy46{3K($n|YcqjXY0pp9*6~g-$ zn{om?Er7p?+LV|9A5}kQe2{R5dCG7X)VNilf=Ua(JIC*E0r_~$W6(%S^vaFObeWGu zk*E1uIeD=2(Q7Zi^WLjxzWdu>`O2q1_t_^u_q)UMn`Nr)WXA|Q(7LpM%{Pginxa5T zAR~35c@QFWP%)(tPPHt>cxNgUTs0sv9rKV7BExaMa4kY4TB#JGfus~^B8$m5zjyEY zjXSq5Ub_A6g?sN`*|~LFJ=}(3G}a|{48$-}t5l|Wp3?my?zX`?k@^YfxG zFt$LXXw{&Ei!lIxsiqUy*vLv^SH^Py&Stbjg_#ajI+Pmii8bTGPPc4c+`e+Cp!uN`_eGYZ0|HV)W>98PY0RSdxVwcq0# z1au;!XG-@5q>{KVpf0G^YhPDuz$Dw?I}A|25p^gPW$_=}jHZ6kTmkp$0%*s>-l-;_ zHGpE!ea{U<7T}~?TaJy@g&B``Zr{Cf;p(-Yy&%qv(kC8U|M+8{{{25Vd;a|SCqBM$ z?(F*7TA3=NOJhr$!E8pT+#-pD=ee*Z2V)>5Ft`!2vM{D725MC1h1lAfKG=GA^UjSc z*RH?+{zo@%k3YIz-hU`|rm7U$6rl8BGD}%tOoS*>rE!oMDe(#41uzWw6UR=l0nK%3 zaCKm!jO!w9%UTgN;D7FD@94Jp3lCne&S%A(>oD)XXO_29F7gn+>*x)@e#+&?%LcUb zHsoq|sf7NQB*2zes@Y9AL{MFY774iY>qqx)8fz=(;FqN&);7cuIgTLwi_+w}0>=&- z2ppp*ZJsB}3I!P%!25&3MGGMn1PZp46Qd>*^U;IJwc8Ud?>_UQ$g<()xzV|EYmc4Z zc>J-=$IlKo*4H0DkA%#rkUD{>?117#HyjRVt)1kBnT)r$wzfWcu=8l^&Xo_gKYFlr z``+}?wwUB%oQv^TObh65n-*G>TB_Vk;lvfv6VWVUpe-tFDF#wQ3tVA@GA_7b_GYAe z!%}cHma-1T5jB>#5Y)rwH)!KJXl{o6XLb4t%d;C5=Q(DS)t93*0H*~1)0Wn|)NnIf zFHbN!xW=VJ)M%V)fHvFU@Q^pBnkge>cuacrKGQTY%Jx8Im?jyL@*>=ceAeCOiSxF#9hTJ`7wrlOj)me$Gk=5)vV`EyRwsQ}Ch3cOOo!d~i=H zp>YtSRyI?5km)QdVLGGs24Gt3VBQ{@%z%Q~*kU}j<4IaV_pvl(2DzI8#@1tbp@3#A zxYR-vcu~?8rOgYN{DoJhk#~A(0ip^O12@FR-xY{|XmBQeLKAgpo1ig`q5L@ffE(?6 z@I{%Q@HVw?eO*OXN_ALw=Tq`noVpmvw->-*% zZFYb4GmRC+Ppr^Q72fSpueKBwFWB4*hIvX4DfFbo6t~3g(5G4zyf^A} z90pcuK>5RW(vUUW7MR>H5+XKJ554ktjYk?go9zZY&?o~}_zj7Be5-I>X$IV=m`-xH zwK11sH`$wR?Ni@jgCMRIm)KvG{|bPcq4*x`yAw+VnF-&;t*x86MbhLaNj2t;fQ{7hG@rI!AuV zQ`~);95{tsLW)d~J2j#xpwq#B5rhMJ+jydC{DfnSCe3Ns7~!EfYz|e1JI_+yWi;8s~-o zm&hzI#BlW2e&S?^Epek@{JA2JC}~yvYE0|kF77GD6~b?Uf;EnB}}fSr*A?gj;jLzRQm-C@4*K>H6)lGy#_mJc=pI9|D+6K1jNGV5J( zY3N!d%2zKb(a(czgF;osK3(@ru|2?f_N**W#WSA-B=*TmN1_NJB~blfdIfZ@BeR1e zF%E|kH+-Fx%y@QdO@5 zh6N#%(@)@GzzGQ}aOLbfH(6Ngl@WFw$ zj#doGSh*sON*sb5*v*hh;v@JauE94urua~F(k#IEU5LPl#R)hak!c4pD8QW-OXmWV>%YdMH*M z06f%Ikl8qrdOJ|$vPTiq=!Sn>q_&d-Nyxbi*BMe*^2<>$CH z*5f=l?!0o#S5;6nfz;AuzJP}X?FuS!5)3+Fkp#2VyQ;hNboG=#x0}df9PaerpMBGm z0&)D@qu--k*LaD_%Bp1bFxUivFGR z>g)ZN~O!*Oz7*Q=<(kL4_8R| zLi+bHp=sJei^{ZLdl!|Ta;pW-F7mb)^EN&Fds}OwV6HgOCoSn1d?>yP1 zawhm`_qcaZ-RnGOm|V63V+i>RS9{st(tqf>7DrA%M$UnHYfj`2_OU|`YC5LmFRf$$ zKNlc~6gGLXZNvP9*^1=$eKE2mA+iDIO?*(lM-lG2!S=0BPkyP($M`3>XMQXNAO}qV zi;=$_f3U+Tm=4p5SLhj{RXJaaF%e znhKkkZfiN(lUx+#t#tmRC4OFf$_;2cqRbKCXdSwx);-bK$i)lQ4*xU)j614|zfV+6!69h)xg&i)?OOrP#v8!Tb-A0*Z3`l7`;^(e!{3~0zFP>d%gEKO6|E$$z*A6g>$Ezqo=`=i& zvT1@4@Hwc2*iC_Vnw0|hxx73yY1s$q+rH1^O8E|KzMcw=Lx1UO9URA3^-HeDvRFs^ z+c2d0l#F~N^__TA`7WZcO)61OdEc6p&g|uwXTc@bbMV0Ar|H=}Bq_RcY@C^}V8`R} z!v<0! zoI5{vTQr1O6OVr*97PIQe*LP~Lo4-_P78mC^2R@}DFeOs6Ra=Qt+ji6imUl1%UUC; zzxu_L0}A`?!(xm6D=Xguso^9}nuu}HvRfSXJs2JCBZm%|f=Wvm+9&x+P@h+kZ_}Be zVrcheFFfaaKXRQ)4jU0rTc9-KW!v~IQ$e4H$Oq)2C3s9$By(*R=nRpYOm*Wsxo#pa zZ|CPXKuUoWJ}pdM4%17d*}h&BZE8-bHwpHn>X`qw>+|l350&u-TW|j``0R-8kU_u; z#nm4WkVQlfAKA~nNpc2FuH(@nF0~uuU$WdI^a#erupue?^Mqirqd@GsQQZ}JPxi6) z&gKcOz2ZlznFJj~)V?1QQPx45WT`S6J+jl4kGhk0d3Z$7Qw4+By`cW~O!MF)+Cwoz z@JXwmLEh|)3%e6`LdVmDjWewB&q-1hYejh1rZ)}yF5;PVc8pW#&yHg8^sm!lHw<)2 zc^5il^9t?qVO1Ax6rvVm=HC9+L&U}AHIIpO=}w564t`|#x1WSLQnBfg5cq@x`Bdb_ zAH=SjcQqe#+x?ge#twYlrLkFsPuE2LM0$IoPE#_Ls6s^iiI4nI^XbNN~8-RzXc85&T*UkuTeqkUYV@ zQusYKeb~YhKEB)Gk`+`$T`wldK^hG-v!h|V67Q9FFqnkAt)LJ@JL8%Jwg@D|m3?IG zK#w$;$u#CjGr#IzF#}2ol3%#cb_^^1gqq@*=AJ?qr|Ky6&lW1d(5?romAX_UWi+>M z2G-yJi^E6K;+_z$Er>a>Jx) zn{yJ|BMu|1tW5&%<(XEN)1n>J>*F*)Cx3HmfVxNThMHtmj!WN*-D%)AU{8B%ux6Ri z?uYy)AG7AK4!UtRQV?gwUpecc&?y=UVkm8m#g2m?5?GODArsW2y;y<(BE zXH_1)`6#f7c!sBFb9R@ZxajjRi;k|N5ctC5jofpO+y|?#^SI#-dxy%cZC!&?VM783 z6Zf^2(ffYO%^_)CcqQG3DHW+!OVZs*dg>ZV?h@iO7qTi}4(Y&kSg0B9>#Y0}+~(91 ztUHB#9W8t>ylwBHW~7hj>uIeoy;D4S8TB7BV_dmd=&XmC8X8W?6mA0SAyP}n!V&%V zVbL;`&O=s5Q&r#itoP1ZxyDKIaut3M^rV<6{sDhzk#S%=Q=y;>)6RFV2rp>na!_#> z5O=3%37kO&wbT)R7=FOTTQNrCRk_@pu~+uvPtbaHN^(1j<37b$t3aGVS2Y-S9yu5& zhb!)+uFAZS0Lo>g; zHtkSY-fRBSUzJfejAuP-oJ|EhedZA|V(Cl{9poIm1N@hplDKocK>P?vF%x<$gGMYq z>mJU0q{mLEPN+hFIQ7I>yz4KVYdkSVuu)V$;W@28>c|qfO%NqZ&SyOBiDF2y7p`5$GBVJrQj~7O3uCbYI9rvp_xu8 z;ga)Rzq|;u-7Oc-Ltti9_hJlj3YpZf=Zy3j@kjkb8C|rqXLlKUlV*-LgdLGN?oA@w zZ8jppRNYT--q9U2D7{CbF;OF}xSk|5%vml$V$w+Q1Aljj`&N4)dG4!fWcy_j?uRxy zo9V-&4R@SrsZqUrVfMCC=dhbD{uwnWJ!tCwCx5b!XohBy{E_g3HkB&SaV`EVsBb-X z@LYTxu4cv?F>WASu^ryx^wbPM+9Y- z86-wRK(%s`lX%82zuvRum<>Ne>+`p}HMra$lr>yvLq&8%`%3t#c?SUud-lW6$hDOc z)pjWa#ePN3wV|e%CISe!C2hD3!;?437AlM*#K4$}vniU^WhXrZHFP}P0b%&qQ}n#` zeWm?@mq!qguT&CM`JQTQy$DiyVESd;{ILZNT>k4gKs4g#wy7P< zNRi5Txh6~JkJH17JgE__^M@m}({5au(Ij$xQ;M97VF1T?Q*t{cNFfKUY=IB;8;H!~)!DAF) z9`Nfa80W+n>>UsUM7czKdo{hUwxmG$^}~jRs)%Zl@B*f$LZi?OFMo$-sQ6}3NJvCV z!+RaE`6@`G?x(4jwhDqX@)VCs5q{nf#Ntoj*F9H1Q#sIpgD_kE*_OM=;ar5ueKl~d zoT`wACHAgH^!TTguS72~mTD0q7~W62wNC3#B|SM(wLhCTP*1ePC+h zv?%M^J)=l_>=4`F^AcO1ZDOJb;D99P3izfOma$*+b_*EMxup~7Uj;csJ|#SkkiIcI zB0&y_oAXNFG35C9<0iCK9d>!IZ6154o1vzjPIfBQ?v}Mi44f;#Z-g8^Pe2ad7g_{Q zxE-tyj&n^L7<*XHc(l7erEBbjWzNS>^y(Pe`-XbCAqPgn;igs->v;!~_}n5|yk$xr zBIx?CM&ANraKc^WhtGK`d#yw73Yhw>aG54*k;5dbGUpT1G`h37f@MHdl~gCV8({S& zyTM?&a5%5L9Azq3T~>5`fq5Q0gB7dtJIP;LwQRqGYtW`HgRX`w&W@;tnPdI<{N>a` z5;|$D?^sb(gd&6<&e{9M58NB{4homIc4rKk(L&0t65Q8Z#Nl`=t}423iOH#Rr}u?8 z39)88uCy7iqjhq8mwT}85!u2cvG?59L!K2!2ct#5|2}CJQ2az+GM<+4MX#`%Iuczm z?CHmK%L~a8>xVtQ`HHH1z2Lstg6UJu zT2mA1By4O2+7Fw?M0$#0rmL#?q*C{a1#Sx1>Pe}$S>gF9PmauZo=BJvYO>mG-IG+A z%+i~_V@id=@D=I}nqaIGOLfQEV(utk9HyL+2!Y=j5b+X|%{W?riYoVB1+GM>ni1(p zyi?SHNxsj9H09nU(~>r?a@S}Ra?BFN;&VwL=al~^QSM6%T~AL}QKKkFn}Dze zJo0Jb4vit{MpL+y*&QvL|7&Z!g^VE5AuW0j-2>s*A%j1k;+fX9Qyg{aiL^B?vP{xs zEm^P-uoyDNYSzGG&KSxT8)01&i_pCN-vAx<%YJ@_xYy&pKFJ}6jW(ib=ME_O57{x}N3Q2_|<>LE)j>25nUmk8`FW18;dxiqgBByX=v#gH3QIBE8Rz~!g901Fkq%hJduwa2XrO+3B*%mnEFcC-&#ey# zKyQ@A4a2!|xO(46$fc^$mb>>-r_=3Ik+r3@l=2@kQD{7+y$yx<5Wu9IZdi*s@QR zJ98pf1oVzl$db>tKgmP{uaBXe9&W(x!rVJQ>`cIf+%vu{U$-HA?`Ao_Zk^k%w`ZBI zNiuP$CRpUE><1M3YvdA(oy?(sn3^SUab6=4qdX%2^l(funLGu`t)oUKn z!|ly-@TE(q1*|6Sp?Q$m_8A3qp2ou^injm~Wy}#v&e7*I%6@}RasNy#ynM`t|8vN(F+tq8GmZOH*>L((+&)k!CIbeIIhYv&C#{2+=N7V**m8$RTqG%?l=X0ArHao?BRuaB?fC!EA?YUmmOGHlK<3 zBdvd{;pOf%CSyv307*H_x($l~077aNh@4Iz`JWlx(R^NZ)ESL`>xLhl?m1g>JY9{V zfkC(kb6<7*hBBbqf~T(}(FT~upavve(^a5r^2`gE>WLD;0(FhmcY46g8?~3ap&+kKP!$o|5%XYDjhhrd_;eR1|MP|SKVtWK1Xq9 z!n90ZXQcAws|dx%3IvJ%&G3+qVtCD(^Fm^OTsC@X>8y==1!^2^Tz$F|e@I}K`*~!w zc$20{(EwpkKYjD@x17zF6!sLpMa7l7AU~2pJl+WG2=Wboc02TB0);Kma(K%fgy&z1 z<3%Z$b=m~&; zI5j8)-2cOd$j(cwkS8p7SpPUXYj6CD=%`NoXXa21TQaf#@Wb%!7@TsK1 zW)YkGtAo`=bgk zHpU%T+0L=^Z&b%8Mgsm#<>+%Rh*>O}#fQV6j;73uGlcI+75&&pJ9AWQajPlZ+?ZP6 z{L?U3(FDyunEdPM=L>mIC7lF=04{C z)Pkx0qSq1vjACK9sV0nD0GmMmo$D2x%!YygZA@pB*<&*BerbJnvJ;h$o|!PoAlC06Y_Hu7uC<3$Oxw0S850>M^QSI!_Wck^ zZW#*kLtE{qA!$yvB&%MMF3dd0p)eFp0{$^&t{&zGul%tvmjeH;cpFpg%lF;vpC;oc zrOM*j`<;EF7c+N#?jrkXnc&m;?vv` zs@pr?M+eTns6t91qbT+WovxRDujhqQNe?TkpUX?EHSx}kS=|$wmT+)G^=646wyIB& zvQ!(Rj{-oq0glGU8KzCcI>Rc7A;ibrPs_Q~lE+cE$}Im*ER3ebd+?a){<%?J9Z^&^ zNk6WK>y{V7JRcR$ph}-R*zoUvs@5jd-CiPC04&IF4%H^`AIR@ z_SG}hPLn2A_G3f2CD#z)NT=@9{y|NGlqdLi&pp!VxECAKEIpe4;y>P9{@HPHq>@4V zYK!`UI^FTu-F30P&5hr!I@R4YDpr3IV%WYR6SQyfpx=5xA7&2-6Zc`jF5 zvpdTlN0}A*%|rT+EPq8fw(mm!EEL0ZCQUe_Tt*>sy7M}{Tt<>K-2vUiVypmOZ-pi z(!xh(h}Z3mhGW8e#EmsyBEA%p)UyH3FL^Fgval?P$J}$Cfh+Y54`#x5X-r?21LxiW zg^i))T=rJcp+Sc2B*fV|d8yB>p4Lm(2_qZ%ViSI~X{R=)6PY_w2^DJfd&0L3PvJr& zoClG(FZ5lyr{XOir2Q$;i&SIa;_*_J3;J7KTM0(H$bH*+b~_XN*rny8faZfu$4 z!;S~vTB1$;naOH=W~HuI~f~{DAv{khke79TGGVgyx7Tm)P&Qn)>yGnNZ@0HGzEE zn}`pv2#+n)^E(#+y+_;(Ok^3*on}4;;GXV^9CpUEc}OliVU(y%I)2R;f8yjt2Z0K zB8ZF^?^~L9l#+XY?80H7(qeWgHt9b*95uBu*Sfq!FCVR9f7XA=V%MWf@|X3UAahR4 zYhfr=@|evd^&f7L130#IOh4idV>jCbSJr2m5Ztb$fB10-oDh@>*q$*(ywL;w8cDndD{zFqW2jR z)}VZUBHz$xbv`JH2`pQ#MHpBeeu;E@6sB)>1w0H%IJxGe!X24}=zo!l>vtjk)8h=B zBj_e`n{f%{M3^(K^x&~fbIWkY++>3cPIKp8dPCb(Xc>srIGHZ86n)_E?@nHMZm?Dj zU~@6u^>|j9C&`Q3K;X$%P+n8r*6oJR?>L2S9R$fTPJUnzH?;BR!p<7E3UYc zTcQ=XCuFz?a+tHNjHFY=b{wtie?A$M=<#EKbdl=$Tz5rw?~$ormL^18N=>3`bwm?q zzDP?HwuYfp9+0rbeMZP-&-9=!iZ6{EJcKp3`SX6ot@u;_A?`Kb75?LulZoQtSQbsg zxkj>MeUB}G|ENprSsL}1p(yh+iDS>j(Rt+-VrBs2r1GH3kLZe6Y~h068N4SJfDkb3 z6^%MSJ%7s{OvPTG7QPp8*_j>STThY2%aZF6zUTQhDY~^DTQidqyqd4(PdUcYo#qwd zJrVsUyWTfX-k~n-6<%3Uxmx9T%Xo}~vrPqG?Ym~E!1E?Cwj_kcEu!wB6_-MRtHoko z4ZC)USA&Q%2QTX4d1xql +Copyright (c) 2018-2021 Josh Junon + +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. + +------------------------------------------------------------------------------ +Licence of: fast-deep-equal@3.1.3, json-schema-traverse@1.0.0 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) 2017 Evgeny Poberezkin + +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. + +------------------------------------------------------------------------------ +Licence of: fast-uri@3.1.8 +------------------------------------------------------------------------------ + +Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae +Copyright (c) 2021-present The Fastify team +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * The names of any contributors may not be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + * * * + +The complete list of contributors can be found at: +- https://github.com/garycourt/uri-js/graphs/contributors + +------------------------------------------------------------------------------ +Licence of: fs-extra@10.1.0 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (c) 2011-2017 JP Richardson + +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. + +------------------------------------------------------------------------------ +Licence of: graceful-fs@4.2.11 +------------------------------------------------------------------------------ + +The ISC License + +Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: has-flag@4.0.0, supports-color@7.2.0 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +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. + +------------------------------------------------------------------------------ +Licence of: js-yaml@4.3.2 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (C) 2011-2015 by Vitaly Puzrin + +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. + +------------------------------------------------------------------------------ +Licence of: jsonfile@6.2.1 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (c) 2012-2015, JP Richardson + +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. + +------------------------------------------------------------------------------ +Licence of: lodash.escaperegexp@4.1.2 +------------------------------------------------------------------------------ + +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +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. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + +------------------------------------------------------------------------------ +Licence of: lodash.isequal@4.5.0 +------------------------------------------------------------------------------ + +Copyright JS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +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. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + +------------------------------------------------------------------------------ +Licence of: lucide-react@0.460.0 +------------------------------------------------------------------------------ + +ISC License + +Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: ms@2.1.3 +------------------------------------------------------------------------------ + +The MIT License (MIT) + +Copyright (c) 2020 Vercel, Inc. + +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. + +------------------------------------------------------------------------------ +Licence of: react@19.2.6, react-dom@19.2.6, scheduler@0.27.0 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +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. + +------------------------------------------------------------------------------ +Licence of: sax@1.6.1 +------------------------------------------------------------------------------ + +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + +------------------------------------------------------------------------------ +Licence of: semver@7.7.4 +------------------------------------------------------------------------------ + +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +------------------------------------------------------------------------------ +Licence of: tinyest@0.3.4, typegpu@0.12.6 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) 2025 Software Mansion + +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. + +------------------------------------------------------------------------------ +Licence of: tsover-runtime@0.0.7 +------------------------------------------------------------------------------ + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +------------------------------------------------------------------------------ +Licence of: typed-binary@4.3.3 +------------------------------------------------------------------------------ + +MIT License + +Copyright (c) 2022 Iwo Plaza + +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. + +------------------------------------------------------------------------------ +Licence of: universalify@2.0.1 +------------------------------------------------------------------------------ + +(The MIT License) + +Copyright (c) 2017, Ryan Zimmerman + +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. + +------------------------------------------------------------------------------ +Licence of: ws@8.22.0 +------------------------------------------------------------------------------ + +Copyright (c) 2011 Einar Otto Stangvik +Copyright (c) 2013 Arnout Kazemier and contributors +Copyright (c) 2016 Luigi Pinca and contributors + +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. + +These packages ship no licence file; their package.json names the licence: lazy-val@1.0.5 (MIT). + +============================================================================== +Rust crates in the media core (uncut-media) +============================================================================== + +itoa@1.0.18: MIT OR Apache-2.0 + https://crates.io/crates/itoa +memchr@2.8.3: Unlicense OR MIT + https://crates.io/crates/memchr +proc-macro2@1.0.107: MIT OR Apache-2.0 (used while compiling only) + https://crates.io/crates/proc-macro2 +quote@1.0.47: MIT OR Apache-2.0 (used while compiling only) + https://crates.io/crates/quote +serde@1.0.228: MIT OR Apache-2.0 + https://crates.io/crates/serde +serde_core@1.0.228: MIT OR Apache-2.0 + https://crates.io/crates/serde_core +serde_derive@1.0.228: MIT OR Apache-2.0 (used while compiling only) + https://crates.io/crates/serde_derive +serde_json@1.0.149: MIT OR Apache-2.0 + https://crates.io/crates/serde_json +syn@2.0.119: MIT OR Apache-2.0 (used while compiling only) + https://crates.io/crates/syn +unicode-ident@1.0.26: (MIT OR Apache-2.0) AND Unicode-3.0 (used while compiling only) + https://crates.io/crates/unicode-ident +zmij@1.0.23: MIT + https://crates.io/crates/zmij + +============================================================================== +Licence texts of the Rust crates +============================================================================== + +------------------------------------------------------------------------------ +Licence of: itoa@1.0.18 (LICENSE-APACHE), serde@1.0.228 (LICENSE-APACHE), serde_core@1.0.228 (LICENSE-APACHE), serde_json@1.0.149 (LICENSE-APACHE) +------------------------------------------------------------------------------ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +------------------------------------------------------------------------------ +Licence of: itoa@1.0.18 (LICENSE-MIT), serde@1.0.228 (LICENSE-MIT), serde_core@1.0.228 (LICENSE-MIT), serde_json@1.0.149 (LICENSE-MIT), zmij@1.0.23 (LICENSE-MIT) +------------------------------------------------------------------------------ + +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. + +------------------------------------------------------------------------------ +Licence of: memchr@2.8.3 (COPYING) +------------------------------------------------------------------------------ + +This project is dual-licensed under the Unlicense and MIT licenses. + +You may use this code under the terms of either license. + +------------------------------------------------------------------------------ +Licence of: memchr@2.8.3 (LICENSE-MIT) +------------------------------------------------------------------------------ + +The MIT License (MIT) + +Copyright (c) 2015 Andrew Gallant + +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. + diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-C9wx-dLG.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-C9wx-dLG.js new file mode 100644 index 00000000..d4ce0000 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-C9wx-dLG.js @@ -0,0 +1,110 @@ +import{W as se,a$ as Xe,L as Ue,z as et,aS as tt,b0 as rt,O as Ye,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b1 as Je,Z as Se,r as G,aJ as nt,a7 as ve,j as F,a as Ae,n as qe,e as it,b2 as at,T as st,b3 as ze,ae as be,b as ot,ac as lt,F as Le,Q as ft,_ as Ve,af as K,b4 as dt}from"./index-Ch4EWX-G.js";import{f as Fe}from"./_plugin-vue_export-helper-DQkFygL-.js";import{g as Ze}from"./use-message-sIwnQEJL.js";function ct(n,e,t){const r=se(n,null);if(r===null)return;const i=Xe()?.proxy;Ue(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}function ir(){const n=se(rt,null);return n===null&&tt("use-dialog","No outer founded."),n}const ce=Ye("n-form"),Qe=Ye("n-form-item-insts");var ut=N("form",[B("inline",` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[N("form-item",{width:"auto",marginRight:"18px"},[ie("&:last-child",{marginRight:0})])])]);const mt=["onSubmit"],gt={...xe.props,inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:n=>{n.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object},Ce=()=>!0;function ht(n){return n===void 0?{paths:null,shouldRuleBeApplied:Ce}:typeof n=="function"?{paths:null,shouldRuleBeApplied:n}:Array.isArray(n)?{paths:n,shouldRuleBeApplied:Ce}:n}var ar=Me({name:"Form",props:gt,setup(n){const{mergedClsPrefixRef:e}=Ie(n);xe("Form","-form",ut,Je,n,e);const t={},r=G(void 0),i=l=>{const c=r.value;(c===void 0||l>=c)&&(r.value=l)};function a(){for(const l of Re(t)){const c=t[l];for(const m of c)m.invalidateLabelWidth?.()}}async function s(l,c){const{paths:m,shouldRuleBeApplied:d}=ht(c);return await new Promise((p,A)=>{const q=[];for(const u of Re(t)){if(m!==null&&!m.includes(u))continue;const v=t[u];for(const f of v)f.path&&q.push(f.internalValidate(null,d))}Promise.all(q).then(u=>{const v=u.some(g=>!g.valid),f=[],P=[];u.forEach(g=>{g.errors?.length&&f.push(g.errors),g.warnings?.length&&P.push(g.warnings)}),l&&l(f.length?f:void 0,{warnings:P.length?P:void 0}),v?A(f.length?f:void 0):p({warnings:P.length?P:void 0})})})}function o(){for(const l of Re(t)){const c=t[l];for(const m of c)m.restoreValidation()}}return Se(ce,{props:n,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:i}),Se(Qe,{formItems:t}),Object.assign({validate:s,restoreValidation:o,invalidateLabelWidth:a},{mergedClsPrefix:e})},render(){const{mergedClsPrefix:n}=this;return O(),$("form",{class:I([`${n}-form`,this.inline&&`${n}-form--inline`]),onSubmit:this.onSubmit},[_(()=>this.$slots.default?.())],42,mt)}});const{cubicBezierEaseInOut:We}=nt;function pt({name:n="fade-down",fromOffset:e="-4px",enterDuration:t=".3s",leaveDuration:r=".3s",enterCubicBezier:i=We,leaveCubicBezier:a=We}={}){return[ie(`&.${n}-transition-enter-from, &.${n}-transition-leave-to`,{opacity:0,transform:`translateY(${e})`}),ie(`&.${n}-transition-enter-to, &.${n}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),ie(`&.${n}-transition-leave-active`,{transition:`opacity ${r} ${a}, transform ${r} ${a}`}),ie(`&.${n}-transition-enter-active`,{transition:`opacity ${t} ${i}, transform ${t} ${i}`})]}var vt=N("form-item",` + display: grid; + line-height: var(--n-line-height); +`,[N("form-item-label",` + grid-area: label; + align-items: center; + line-height: 1.25; + text-align: var(--n-label-text-align); + font-size: var(--n-label-font-size); + min-height: var(--n-label-height); + padding: var(--n-label-padding); + color: var(--n-label-text-color); + transition: color .3s var(--n-bezier); + box-sizing: border-box; + font-weight: var(--n-label-font-weight); + `,[ve("asterisk",` + white-space: nowrap; + user-select: none; + -webkit-user-select: none; + color: var(--n-asterisk-color); + transition: color .3s var(--n-bezier); + `),ve("asterisk-placeholder",` + grid-area: mark; + user-select: none; + -webkit-user-select: none; + visibility: hidden; + `)]),N("form-item-blank",` + grid-area: blank; + min-height: var(--n-blank-height); + `),B("auto-label-width",[N("form-item-label","white-space: nowrap;")]),B("left-labelled",` + grid-template-areas: + "label blank" + "label feedback"; + grid-template-columns: auto minmax(0, 1fr); + grid-template-rows: auto 1fr; + align-items: flex-start; + `,[N("form-item-label",` + display: grid; + grid-template-columns: 1fr auto; + min-height: var(--n-blank-height); + height: auto; + box-sizing: border-box; + flex-shrink: 0; + flex-grow: 0; + `,[B("reverse-columns-space",` + grid-template-columns: auto 1fr; + `),B("left-mark",` + grid-template-areas: + "mark text" + ". text"; + `),B("right-mark",` + grid-template-areas: + "text mark" + "text ."; + `),B("right-hanging-mark",` + grid-template-areas: + "text mark" + "text ."; + `),ve("text",` + grid-area: text; + `),ve("asterisk",` + grid-area: mark; + align-self: end; + `)])]),B("top-labelled",` + grid-template-areas: + "label" + "blank" + "feedback"; + grid-template-rows: minmax(var(--n-label-height), auto) 1fr; + grid-template-columns: minmax(0, 100%); + `,[B("no-label",` + grid-template-areas: + "blank" + "feedback"; + grid-template-rows: 1fr; + `),N("form-item-label",` + display: flex; + align-items: flex-start; + justify-content: var(--n-label-text-align); + `)]),N("form-item-blank",` + box-sizing: border-box; + display: flex; + align-items: center; + position: relative; + `),N("form-item-feedback-wrapper",` + grid-area: feedback; + box-sizing: border-box; + min-height: var(--n-feedback-height); + font-size: var(--n-feedback-font-size); + line-height: 1.25; + transform-origin: top left; + `,[ie("&:not(:empty)",` + padding: var(--n-feedback-padding); + `),N("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[B("warning",{color:"var(--n-feedback-text-color-warning)"}),B("error",{color:"var(--n-feedback-text-color-error)"}),pt({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);function bt(n){const e=se(ce,null),{mergedComponentPropsRef:t}=Ie(n);return{mergedSize:F(()=>{if(n.size!==void 0)return n.size;if(e?.props.size!==void 0)return e.props.size;const r=t?.value?.Form?.size;return r||"medium"})}}function yt(n){const e=se(ce,null),t=F(()=>{const{labelPlacement:d}=n;return d!==void 0?d:e?.props.labelPlacement?e.props.labelPlacement:"top"}),r=F(()=>t.value==="left"&&(n.labelWidth==="auto"||e?.props.labelWidth==="auto")),i=F(()=>{if(t.value==="top")return;const{labelWidth:d}=n;if(d!==void 0&&d!=="auto")return Fe(d);if(r.value){const p=e?.maxChildLabelWidthRef.value;return p!==void 0?Fe(p):void 0}if(e?.props.labelWidth!==void 0)return Fe(e.props.labelWidth)}),a=F(()=>{const{labelAlign:d}=n;if(d)return d;if(e?.props.labelAlign)return e.props.labelAlign}),s=F(()=>[n.labelProps?.style,n.labelStyle,{width:i.value}]),o=F(()=>{const{showRequireMark:d}=n;return d!==void 0?d:e?.props.showRequireMark}),l=F(()=>{const{requireMarkPlacement:d}=n;return d!==void 0?d:e?.props.requireMarkPlacement||"right"}),c=G(!1),m=G(!1);return{validationErrored:c,validationWarned:m,mergedLabelStyle:s,mergedLabelPlacement:t,mergedLabelAlign:a,mergedShowRequireMark:o,mergedRequireMarkPlacement:l,mergedValidationStatus:F(()=>{const{validationStatus:d}=n;if(d!==void 0)return d;if(c.value)return"error";if(m.value)return"warning"}),mergedShowFeedback:F(()=>{const{showFeedback:d}=n;return d!==void 0?d:e?.props.showFeedback!==void 0?e.props.showFeedback:!0}),mergedShowLabel:F(()=>{const{showLabel:d}=n;return d!==void 0?d:e?.props.showLabel!==void 0?e.props.showLabel:!0}),isAutoLabelWidth:r}}function wt(n){const e=se(ce,null),t=F(()=>{const{rulePath:a}=n;if(a!==void 0)return a;const{path:s}=n;if(s!==void 0)return s}),r=F(()=>{const a=[],{rule:s}=n;if(s!==void 0&&(Array.isArray(s)?a.push(...s):a.push(s)),e){const{rules:o}=e.props,{value:l}=t;if(o!==void 0&&l!==void 0){const c=Ze(o,l);c!==void 0&&(Array.isArray(c)?a.push(...c):a.push(c))}}return a}),i=F(()=>r.value.some(a=>a.required));return{mergedRules:r,mergedRequired:F(()=>i.value||n.required)}}function X(){return X=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function we(n,e,t){return kt()?we=Reflect.construct.bind():we=function(i,a,s){var o=[null];o.push.apply(o,a);var l=Function.bind.apply(i,o),c=new l;return s&&de(c,s.prototype),c},we.apply(null,arguments)}function Rt(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function $e(n){var e=typeof Map=="function"?new Map:void 0;return $e=function(r){if(r===null||!Rt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return we(r,arguments,Oe(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),de(i,r)},$e(n)}var qt=/%[sdj%]/g,Ft=function(){};function _e(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function z(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=a)return o;switch(o){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return o}});return s}return n}function Pt(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function R(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||Pt(e)&&typeof n=="string"&&!n)}function St(n,e,t){var r=[],i=0,a=n.length;function s(o){r.push.apply(r,o||[]),i++,i===a&&t(r)}n.forEach(function(o){e(o,s)})}function Be(n,e,t){var r=0,i=n.length;function a(s){if(s&&s.length){t(s);return}var o=r;r=r+1,o()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},le={integer:function(e){return le.number(e)&&parseInt(e,10)===e},float:function(e){return le.number(e)&&!le.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!le.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(He.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(jt())},hex:function(e){return typeof e=="string"&&!!e.match(He.hex)}},Mt=function(e,t,r,i,a){if(e.required&&t===void 0){Ge(e,t,r,i,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;s.indexOf(o)>-1?le[o](t)||i.push(z(a.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&i.push(z(a.messages.types[o],e.fullField,e.type))},It=function(e,t,r,i,a){var s=typeof e.len=="number",o=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=t,d=null,p=typeof t=="number",A=typeof t=="string",q=Array.isArray(t);if(p?d="number":A?d="string":q&&(d="array"),!d)return!1;q&&(m=t.length),A&&(m=t.replace(c,"_").length),s?m!==e.len&&i.push(z(a.messages[d].len,e.fullField,e.len)):o&&!l&&me.max?i.push(z(a.messages[d].max,e.fullField,e.max)):o&&l&&(me.max)&&i.push(z(a.messages[d].range,e.fullField,e.min,e.max))},ne="enum",zt=function(e,t,r,i,a){e[ne]=Array.isArray(e[ne])?e[ne]:[],e[ne].indexOf(t)===-1&&i.push(z(a.messages[ne],e.fullField,e[ne].join(", ")))},Lt=function(e,t,r,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(z(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var s=new RegExp(e.pattern);s.test(t)||i.push(z(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},h={required:Ge,whitespace:Et,type:Mt,range:It,enum:zt,pattern:Lt},Vt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"string")&&!e.required)return r();h.required(e,t,i,s,a,"string"),R(t,"string")||(h.type(e,t,i,s,a),h.range(e,t,i,s,a),h.pattern(e,t,i,s,a),e.whitespace===!0&&h.whitespace(e,t,i,s,a))}r(s)},Ct=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Wt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Bt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Nt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),R(t)||h.type(e,t,i,s,a)}r(s)},Tt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Dt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Ht=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return r();h.required(e,t,i,s,a,"array"),t!=null&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Kt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Ut="enum",Yt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h[Ut](e,t,i,s,a)}r(s)},Jt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"string")&&!e.required)return r();h.required(e,t,i,s,a),R(t,"string")||h.pattern(e,t,i,s,a)}r(s)},Zt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"date")&&!e.required)return r();if(h.required(e,t,i,s,a),!R(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),h.type(e,l,i,s,a),l&&h.range(e,l.getTime(),i,s,a)}}r(s)},Qt=function(e,t,r,i,a){var s=[],o=Array.isArray(t)?"array":typeof t;h.required(e,t,i,s,a,o),r(s)},Pe=function(e,t,r,i,a){var s=e.type,o=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(R(t,s)&&!e.required)return r();h.required(e,t,i,o,a,s),R(t,s)||h.type(e,t,i,o,a)}r(o)},Gt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a)}r(s)},fe={string:Vt,method:Ct,number:Wt,boolean:Bt,regexp:Nt,integer:Tt,float:Dt,array:Ht,object:Kt,enum:Yt,pattern:Jt,date:Zt,url:Pe,hex:Pe,email:Pe,required:Qt,any:Gt};function Ee(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var je=Ee(),ae=(function(){function n(t){this.rules=null,this._messages=je,this.define(t)}var e=n.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var s=r[a];i.rules[a]=Array.isArray(s)?s:[s]})},e.messages=function(r){return r&&(this._messages=De(Ee(),r)),this._messages},e.validate=function(r,i,a){var s=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var o=r,l=i,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function m(u){var v=[],f={};function P(b){if(Array.isArray(b)){var x;v=(x=v).concat.apply(x,b)}else v.push(b)}for(var g=0;g{try{const r=n(...t);return!e&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||Ve("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${e?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){Ve("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}var sr=Me({name:"FormItem",props:Xt,slots:Object,setup(n){ct(Qe,"formItems",be(n,"path"));const{mergedClsPrefixRef:e,inlineThemeDisabled:t}=Ie(n),r=se(ce,null),i=bt(n),a=yt(n),{validationErrored:s,validationWarned:o}=a,{mergedRequired:l,mergedRules:c}=wt(n),{mergedSize:m}=i,{mergedLabelPlacement:d,mergedLabelAlign:p,mergedRequireMarkPlacement:A}=a,q=G([]),u=G(ze()),v=G(null),f=r?be(r.props,"disabled"):G(!1),P=xe("Form","-form-item",vt,Je,n,e);Ue(be(n,"path"),()=>{n.ignorePathChange||b()});function g(){if(!a.isAutoLabelWidth.value)return;const y=v.value;if(y!==null){const D=y.style.whiteSpace;y.style.whiteSpace="nowrap",y.style.width="",r?.deriveMaxChildLabelWidth(Number(getComputedStyle(y).width.slice(0,-2))),y.style.whiteSpace=D}}function b(){q.value=[],s.value=!1,o.value=!1,n.feedback&&(u.value=ze())}const x=async(y=null,D=()=>!0,j={suppressWarning:!0})=>{const{path:W}=n;j?j.first||(j.first=n.first):j={};const{value:Y}=c,J=r?Ze(r.props.model,W||""):void 0,ee={},te={},Z=(y?Y.filter(w=>Array.isArray(w.trigger)?w.trigger.includes(y):w.trigger===y):Y).filter(D).map((w,M)=>{const k=Object.assign({},w);if(k.validator&&(k.validator=Ke(k.validator,!1)),k.asyncValidator&&(k.asyncValidator=Ke(k.asyncValidator,!0)),k.renderMessage){const ke=`__renderMessage__${M}`;te[ke]=k.message,k.message=ke,ee[ke]=k.renderMessage}return k}),Q=Z.filter(w=>w.level!=="warning"),H=Z.filter(w=>w.level==="warning"),V={valid:!0,errors:void 0,warnings:void 0};if(!Z.length)return V;const re=W??"__n_no_path__",ge=new ae({[re]:Q}),he=new ae({[re]:H}),{validateMessages:oe}=r?.props||{};oe&&(ge.messages(oe),he.messages(oe));const pe=w=>{q.value=w.map(M=>{const k=M?.message||"";return{key:k,render:()=>k.startsWith("__renderMessage__")?ee[k]():k}}),w.forEach(M=>{M.message?.startsWith("__renderMessage__")&&(M.message=te[M.message])})};if(Q.length){const w=await new Promise(M=>{ge.validate({[re]:J},j,M)});w?.length&&(V.valid=!1,V.errors=w,pe(w))}if(H.length&&!V.errors){const w=await new Promise(M=>{he.validate({[re]:J},j,M)});w?.length&&(pe(w),V.warnings=w)}return!V.errors&&!V.warnings?b():(s.value=!!V.errors,o.value=!!V.warnings),V};function S(){x("blur")}function T(){x("change")}function C(){x("focus")}function U(){x("input")}async function ue(y,D){let j,W,Y,J;return typeof y=="string"?(j=y,W=D):y!==null&&typeof y=="object"&&(j=y.trigger,W=y.callback,Y=y.shouldRuleBeApplied,J=y.options),await new Promise((ee,te)=>{x(j,Y,J).then(({valid:Z,errors:Q,warnings:H})=>{Z?(W&&W(void 0,{warnings:H}),ee({warnings:H})):(W&&W(Q,{warnings:H}),te(Q))})})}Se(dt,{path:be(n,"path"),disabled:f,mergedSize:i.mergedSize,mergedValidationStatus:a.mergedValidationStatus,restoreValidation:b,handleContentBlur:S,handleContentChange:T,handleContentFocus:C,handleContentInput:U});const me={validate:ue,restoreValidation:b,internalValidate:x,invalidateLabelWidth:g};ot(g);const L=F(()=>{const{value:y}=m,{value:D}=d,j=D==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:Y,asteriskColor:J,lineHeight:ee,feedbackTextColor:te,feedbackTextColorWarning:Z,feedbackTextColorError:Q,feedbackPadding:H,labelFontWeight:V,[K("labelHeight",y)]:re,[K("blankHeight",y)]:ge,[K("feedbackFontSize",y)]:he,[K("feedbackHeight",y)]:oe,[K("labelPadding",j)]:pe,[K("labelTextAlign",j)]:w,[K(K("labelFontSize",D),y)]:M}}=P.value;let k=p.value??w;return D==="top"&&(k=k==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":ee,"--n-blank-height":ge,"--n-label-font-size":M,"--n-label-text-align":k,"--n-label-height":re,"--n-label-padding":pe,"--n-label-font-weight":V,"--n-asterisk-color":J,"--n-label-text-color":Y,"--n-feedback-padding":H,"--n-feedback-font-size":he,"--n-feedback-height":oe,"--n-feedback-text-color":te,"--n-feedback-text-color-warning":Z,"--n-feedback-text-color-error":Q}}),E=t?lt("form-item",F(()=>`${m.value[0]}${d.value[0]}${p.value?.[0]||""}`),L,n):void 0;return{labelElementRef:v,mergedClsPrefix:e,mergedRequired:l,feedbackId:u,renderExplains:q,reverseColSpace:F(()=>d.value==="left"&&A.value==="left"&&p.value==="left"),...a,...i,...me,cssVars:t?void 0:L,themeClass:E?.themeClass,onRender:E?.onRender}},render(){const{$slots:n,mergedClsPrefix:e,mergedShowLabel:t,mergedShowRequireMark:r,mergedRequireMarkPlacement:i,onRender:a}=this,s=r!==void 0?r:this.mergedRequired;a?.();const o=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const c=(O(),$("span",{class:I(`${e}-form-item-label__text`)},[_(()=>l)],2)),m=s?(O(),$("span",{key:1,class:I(`${e}-form-item-label__asterisk`)},[i!=="left"?_(()=>" *"):_(()=>"* ")],2)):i==="right-hanging"&&(O(),$("span",{key:2,class:I(`${e}-form-item-label__asterisk-placeholder`)}," *",2)),{labelProps:d}=this;return O(),$("label",ft(d,{class:[d?.class,`${e}-form-item-label`,`${e}-form-item-label--${i}-mark`,this.reverseColSpace&&`${e}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),[i==="left"?(O(),$(Le,{key:0},[_(()=>[m,c])],64)):(O(),$(Le,{key:1},[_(()=>[c,m])],64))],16)};return O(),$("div",{class:I([`${e}-form-item`,this.themeClass,`${e}-form-item--${this.mergedSize}-size`,`${e}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${e}-form-item--auto-label-width`,!t&&`${e}-form-item--no-label`]),style:qe(this.cssVars)},[_(()=>t&&o()),Ae("div",{class:I([`${e}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${e}-form-item-blank--${this.mergedValidationStatus}`]),style:qe(this.contentStyle)},[_(()=>n.default?.())],6),this.mergedShowFeedback?(O(),$("div",{key:this.feedbackId,style:qe(this.feedbackStyle),class:I([`${e}-form-item-feedback-wrapper`,this.feedbackClass])},[it(st,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return at(n.feedback,c=>{const{feedback:m}=this,d=c||m?(O(),$("div",{key:"__feedback__",class:I(`${e}-form-item-feedback__line`)},[_(()=>c||m)],2)):this.renderExplains.length?this.renderExplains?.map(({key:p,render:A})=>(O(),$("div",{key:p,class:I(`${e}-form-item-feedback__line`)},[_(()=>A())],2))):null;return d?l==="warning"?(O(),$("div",{key:"controlled-warning",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--warning`)},[_(()=>d)],2)):l==="error"?(O(),$("div",{key:"controlled-error",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--error`)},[_(()=>d)],2)):l==="success"?(O(),$("div",{key:"controlled-success",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--success`)},[_(()=>d)],2)):(O(),$("div",{key:"controlled-default",class:I(`${e}-form-item-feedback`)},[_(()=>d)],2)):null})}},1024)],6)):_(()=>null)],6)}});const er={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},or=Me({name:"AddOutline",render:function(e,t){return O(),$("svg",er,t[0]||(t[0]=[Ae("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"},null,-1),Ae("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"},null,-1)]))}});export{or as A,ar as F,sr as a,ir as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DmAH_wjP.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DmAH_wjP.js new file mode 100644 index 00000000..4a4faffa --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DmAH_wjP.js @@ -0,0 +1 @@ +import{d as b,o as s,c as p,y as U,a as e,b as N,z as q,u as i,F as V,A,C as S,t as d,g as f,i as _,w as n,e as l,f as k,r as z,j as w,D as B,E,T as J,q as K,k as Q}from"./index-Ch4EWX-G.js";import{T as R,P as W}from"./PulseOutline-DBaBm7B1.js";import{N as g,_ as X}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as Y}from"./use-message-sIwnQEJL.js";import{g as Z}from"./streamers-Bl5LBoP5.js";import{i as j,e as ee}from"./runtime-bridge-DmDzFGpU.js";import{l as te}from"./logo-X-myaeP_.js";import{V as oe}from"./VideocamOutline-Dxd9Z4sO.js";import{F as ne}from"./FilmOutline-BX3jJC51.js";import{G as se}from"./GitCompareOutline-DCA6_Iop.js";import{C as ae}from"./CloudDownloadOutline-Bwk608FY.js";import"./use-compitable-CjxNERC_.js";const re={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=b({name:"ExpandOutline",render:function(m,a){return s(),p("svg",re,a[0]||(a[0]=[U('',8)]))}}),le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ce=b({name:"LogOutOutline",render:function(m,a){return s(),p("svg",le,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),de={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ue=b({name:"SettingsOutline",render:function(m,a){return s(),p("svg",de,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),pe={class:"shell"},ve={class:"sidebar"},me={class:"brand"},he={class:"brand-mark"},fe=["src"],_e={class:"nav"},ke={class:"nav-copy"},we={class:"nav-label"},ge={class:"nav-hint"},be={class:"side-foot"},xe={class:"server-line"},ye={key:0,class:"mono ver"},Ce={class:"user-card"},Me={class:"avatar"},Oe={class:"user-meta"},Se={class:"user-name"},je={class:"user-role"},Le={class:"main"},Ne={class:"topbar"},Ve={class:"crumb"},Ae={class:"crumb-current"},ze={class:"top-actions"},Be={class:"tab-bar","aria-label":"主导航"},Ee={key:0,class:"offline-banner",role:"alert"},Re=b({__name:"AppShell",setup(x){const m=Q(),a=Y(),{me:y,loadMe:T,signOut:D}=K(),C=z(""),u=z(!0),M=[{name:"live",label:"直播监控",icon:oe,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:ne,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:se,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ae,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:ue,hint:"保存、画质与抖音参数"}],F=w(()=>M.find(o=>o.name===m.name)?.label??"直播监控"),O=w(()=>y.value?.auth_enabled===!1),L=w(()=>O.value?"本机用户":y.value?.username??"未登录"),H=w(()=>{if(O.value)return"本机模式";const o=y.value?.role;return o==="admin"?"管理员":o==="operator"?"协作者":o==="viewer"?"只读":o??""});async function I(){try{await T()}catch{u.value=!1}try{const o=await Z();C.value=o.version??"",u.value=!0}catch{u.value=!1}}N(I);function P(){if(!j()||!window.miniapp?.window?.update)return;const t=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(t)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(v=>{if(t&&v.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(v=>{a.error(ee(v))})}let h=null;function $(){if(!(!j()||typeof EventSource>"u"))try{h=new EventSource("/_miniapp/events"),h.onmessage=o=>{try{const t=JSON.parse(o.data);if(t.type&&t.type!=="activity")return;const c=t.kind??"";if(c!=="start"&&c!=="end"&&c!=="file"&&c!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const v=c==="start"?"直播已开播":c==="render"?"压制完成":"录制完成";new Notification(v,{body:t.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}N($),q(()=>{h?.close(),h=null});async function G(){await D(),a.success("已退出登录")}return(o,t)=>{const c=B("router-link"),v=B("router-view");return s(),p("div",pe,[e("aside",ve,[e("div",me,[e("div",he,[e("img",{src:i(te),alt:"Live Stream Recorder"},null,8,fe)]),t[0]||(t[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",_e,[(s(),p(V,null,A(M,r=>l(c,{key:r.name,to:{name:r.name},class:"nav-item","active-class":"active"},{default:n(()=>[l(i(g),{size:19,class:"nav-icon"},{default:n(()=>[(s(),_(E(r.icon)))]),_:2},1024),e("span",ke,[e("span",we,d(r.label),1),e("span",ge,d(r.hint),1)])]),_:2},1032,["to"])),64))]),e("div",be,[e("div",xe,[e("span",{class:S(["dot",{off:!u.value}])},null,2),e("span",null,d(u.value?"录制服务已连接":"录制服务未连接"),1),C.value?(s(),p("span",ye,"v"+d(C.value),1)):f("",!0)]),e("div",Ce,[e("div",Me,d(L.value.slice(0,1).toUpperCase()),1),e("div",Oe,[e("div",Se,d(L.value),1),e("div",je,d(H.value),1)]),O.value?f("",!0):(s(),_(i(R),{key:0,trigger:"hover"},{trigger:n(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:G},[l(i(g),{size:18},{default:n(()=>[l(i(ce))]),_:1})])]),default:n(()=>[t[1]||(t[1]=k(" 退出登录 ",-1))]),_:1}))])])]),e("main",Le,[e("header",Ne,[e("div",Ve,[l(i(g),{size:15,class:"crumb-icon"},{default:n(()=>[l(i(W))]),_:1}),t[2]||(t[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),t[3]||(t[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",Ae,d(F.value),1)]),e("div",ze,[i(j)()?(s(),_(i(R),{key:0,trigger:"hover"},{trigger:n(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:P},[l(i(g),{size:18},{default:n(()=>[l(i(ie))]),_:1})])]),default:n(()=>[t[4]||(t[4]=k(" 弹出独立窗口 ",-1))]),_:1})):f("",!0),e("span",{class:S(["top-status",{off:!u.value}])},[e("span",{class:S(["dot",{off:!u.value}])},null,2),k(" "+d(u.value?"服务在线":"服务离线"),1)],2)])]),e("nav",Be,[(s(),p(V,null,A(M,r=>l(c,{key:"tab-"+r.name,to:{name:r.name},class:"tab-item","active-class":"active"},{default:n(()=>[k(d(r.label),1)]),_:2},1032,["to"])),64))]),u.value?f("",!0):(s(),p("div",Ee," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),l(v,null,{default:n(({Component:r})=>[l(J,{name:"page-fade",mode:"out-in"},{default:n(()=>[(s(),_(E(r)))]),_:2},1024)]),_:1})])])}}}),Qe=X(Re,[["__scopeId","data-v-2f266e9b"]]);export{Qe as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-dzC4MVjs.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-dzC4MVjs.css new file mode 100644 index 00000000..3a5630b5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-dzC4MVjs.css @@ -0,0 +1 @@ +.shell[data-v-2f266e9b]{display:flex;min-height:100vh;position:relative;z-index:1}.sidebar[data-v-2f266e9b]{width:238px;flex:none;display:flex;flex-direction:column;gap:18px;padding:22px 16px 18px;background:linear-gradient(180deg,#0c131aeb,#080d12f5);border-right:1px solid var(--line);position:sticky;top:0;height:100vh;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand[data-v-2f266e9b]{display:flex;align-items:center;gap:11px;padding:2px 6px 6px}.brand-mark[data-v-2f266e9b]{width:42px;height:42px;border-radius:12px;overflow:hidden;border:1px solid rgba(45,212,191,.28);box-shadow:0 6px 22px #2dd4bf2e;background:#070b0f}.brand-mark img[data-v-2f266e9b]{width:100%;height:100%;object-fit:cover;display:block}.brand-text[data-v-2f266e9b]{line-height:1.2}.brand-name[data-v-2f266e9b]{font-size:17px;font-weight:700;letter-spacing:.5px}.brand-sub[data-v-2f266e9b]{font-size:11px;color:var(--muted);letter-spacing:1.6px;margin-top:3px}.nav[data-v-2f266e9b]{display:flex;flex-direction:column;gap:6px;margin-top:4px}.nav-item[data-v-2f266e9b]{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;color:var(--muted);border:1px solid transparent;transition:all .18s ease}.nav-item[data-v-2f266e9b]:hover{color:var(--text);background:#94c5d60f}.nav-item.active[data-v-2f266e9b]{color:var(--text);background:linear-gradient(90deg,#2dd4bf24,#2dd4bf08);border-color:#2dd4bf38}.nav-item.active .nav-icon[data-v-2f266e9b]{color:var(--accent)}.nav-copy[data-v-2f266e9b]{display:flex;flex-direction:column;gap:2px}.nav-label[data-v-2f266e9b]{font-size:13.5px;font-weight:600}.nav-hint[data-v-2f266e9b]{font-size:10.5px;color:var(--muted-2);letter-spacing:.2px}.nav-item.active .nav-hint[data-v-2f266e9b]{color:#2dd4bf9e}.side-foot[data-v-2f266e9b]{margin-top:auto;display:flex;flex-direction:column;gap:12px}.server-line[data-v-2f266e9b]{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:9px 11px;border-radius:9px;background:#94c5d60d;border:1px solid var(--line)}.dot[data-v-2f266e9b]{width:6px;height:6px;border-radius:50%;background:var(--ok);box-shadow:0 0 8px #34d399cc}.dot.off[data-v-2f266e9b]{background:var(--danger);box-shadow:0 0 8px #f87171b3}.ver[data-v-2f266e9b]{margin-left:auto;color:var(--muted-2);font-size:10px}.user-card[data-v-2f266e9b]{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:#14202b99;border:1px solid var(--line)}.avatar[data-v-2f266e9b]{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:13px;font-weight:700;color:#052e2b;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.user-meta[data-v-2f266e9b]{min-width:0;flex:1}.user-name[data-v-2f266e9b]{font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-role[data-v-2f266e9b]{font-size:10.5px;color:var(--muted-2);margin-top:1px}.icon-btn[data-v-2f266e9b]{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;transition:all .16s ease}.icon-btn[data-v-2f266e9b]:hover{color:var(--text);background:#94c5d617;border-color:var(--line)}.tab-bar[data-v-2f266e9b]{display:none}.top-popout[data-v-2f266e9b]{border:1px solid var(--line)}.main[data-v-2f266e9b]{flex:1;min-width:0;display:flex;flex-direction:column}.topbar[data-v-2f266e9b]{height:58px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line);background:var(--overlay-soft);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);position:sticky;top:0;z-index:10}.crumb[data-v-2f266e9b]{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.crumb-icon[data-v-2f266e9b]{color:var(--accent)}.crumb-root[data-v-2f266e9b],.crumb-sep[data-v-2f266e9b]{color:var(--muted-2)}.crumb-current[data-v-2f266e9b]{color:var(--text);font-weight:600}.top-status[data-v-2f266e9b]{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:6px 10px;border-radius:99px;border:1px solid var(--line);background:#94c5d60a}.top-status.off[data-v-2f266e9b]{color:var(--danger-text);border-color:#f8717140}.offline-banner[data-v-2f266e9b]{margin:16px 30px 0;padding:10px 14px;border-radius:9px;border:1px solid rgba(248,113,113,.35);background:#f871711f;color:var(--danger-text);font-size:12.5px}.page-fade-enter-active[data-v-2f266e9b],.page-fade-leave-active[data-v-2f266e9b]{transition:opacity .16s ease,transform .16s ease}.page-fade-enter-from[data-v-2f266e9b]{opacity:0;transform:translateY(4px)}.page-fade-leave-to[data-v-2f266e9b]{opacity:0;transform:translateY(-3px)}@media(max-width:640px){.shell[data-v-2f266e9b]{display:block}.sidebar[data-v-2f266e9b]{display:none}.tab-bar[data-v-2f266e9b]{display:flex;gap:4px;overflow-x:auto;padding:8px 12px;border-bottom:1px solid var(--line);background:var(--overlay-strong);scrollbar-width:none}.tab-bar[data-v-2f266e9b]::-webkit-scrollbar{display:none}.tab-item[data-v-2f266e9b]{flex:none;padding:7px 12px;border-radius:99px;font-size:12px;color:var(--muted);white-space:nowrap;border:1px solid transparent}.tab-item.active[data-v-2f266e9b]{color:var(--accent);background:#2dd4bf1a;border-color:#2dd4bf40}.topbar[data-v-2f266e9b]{padding:0 12px;height:52px}.crumb-root[data-v-2f266e9b],.crumb-sep[data-v-2f266e9b],.top-status[data-v-2f266e9b]{display:none}.offline-banner[data-v-2f266e9b]{margin:10px 12px 0}}@media(max-width:900px){.sidebar[data-v-2f266e9b]{width:74px;padding:18px 10px}.brand-text[data-v-2f266e9b],.nav-copy[data-v-2f266e9b],.side-foot .server-line span[data-v-2f266e9b]:not(.dot),.user-meta[data-v-2f266e9b],.icon-btn[data-v-2f266e9b]{display:none}.nav-item[data-v-2f266e9b],.user-card[data-v-2f266e9b]{justify-content:center}.topbar[data-v-2f266e9b]{padding:0 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CVNCmOpb.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CVNCmOpb.js new file mode 100644 index 00000000..9c2701e1 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CVNCmOpb.js @@ -0,0 +1,105 @@ +import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,bb as se,bc as be,bd as he,d as ue,a8 as E,b2 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,be as pe,aj as Ce,ac as ye,b3 as we,j as P,ad as T,W as ze,bf as Re,bg as Se,af as j,ae as _e,O as De}from"./index-Ch4EWX-G.js";import{u as Be}from"./use-compitable-CjxNERC_.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` + font-size: var(--n-font-size); + outline: none; + cursor: pointer; + display: inline-flex; + flex-wrap: nowrap; + align-items: flex-start; + word-break: break-word; + line-height: var(--n-size); + --n-merged-color-table: var(--n-color-table); + `,[h("show-label","line-height: var(--n-label-line-height);"),l("&:hover",[r("checkbox-box",[s("border","border: var(--n-border-checked);")])]),l("&:focus:not(:active)",[r("checkbox-box",[s("border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),h("inside-table",[r("checkbox-box",` + background-color: var(--n-merged-color-table); + `)]),h("checked",[r("checkbox-box",` + background-color: var(--n-color-checked); + `,[r("checkbox-icon",[l(".check-icon",` + opacity: 1; + transform: scale(1); + `)])])]),h("indeterminate",[r("checkbox-box",[r("checkbox-icon",[l(".check-icon",` + opacity: 0; + transform: scale(.5); + `),l(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),h("checked, indeterminate",[l("&:focus:not(:active)",[r("checkbox-box",[s("border",` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),r("checkbox-box",` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[s("border",{border:"var(--n-border-checked)"})])]),h("disabled",{cursor:"not-allowed"},[h("checked",[r("checkbox-box",` + background-color: var(--n-color-disabled-checked); + `,[s("border",{border:"var(--n-border-disabled-checked)"}),r("checkbox-icon",[l(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),r("checkbox-box",` + background-color: var(--n-color-disabled); + `,[s("border",` + border: var(--n-border-disabled); + `),r("checkbox-icon",[l(".check-icon, .line-icon",` + fill: var(--n-check-mark-color-disabled); + `)])]),s("label",` + color: var(--n-text-color-disabled); + `)]),r("checkbox-box-wrapper",` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + -webkit-user-select: none; + `),r("checkbox-box",` + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + height: var(--n-size); + width: var(--n-size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color 0.3s var(--n-bezier); + `,[s("border",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--n-border); + `),r("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[l(".check-icon, .line-icon",` + width: 100%; + fill: var(--n-check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--n-bezier), + transform 0.3s var(--n-bezier), + opacity 0.3s var(--n-bezier), + border-color 0.3s var(--n-bezier); + `),se({left:"1px",top:"1px"})])]),s("label",` + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + `,[l("&:empty",{display:"none"})])]),be(r("checkbox",` + --n-merged-color-table: var(--n-color-table-modal); + `)),he(r("checkbox",` + --n-merged-color-table: var(--n-color-table-popover); + `))]);const Ve=["id"],Ke=["tabindex","aria-checked","aria-labelledby","onKeyup","onKeydown","onClick"],Ie={...E.props,size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]};var Ee=ue({name:"Checkbox",props:Ie,setup(e){const a=ze(Ne,null),f=N(null),{mergedClsPrefixRef:v,inlineThemeDisabled:z,mergedRtlRef:B,mergedComponentPropsRef:R}=me(e),g=N(e.defaultChecked),c=_e(e,"checked"),$=Be(c,g),b=ge(()=>{if(a){const o=a.valueSetRef.value;return o&&e.value!==void 0?o.has(e.value):!1}else return $.value===e.checkedValue}),p=pe(e,{mergedSize(o){const{size:t}=e;if(t!==void 0)return t;if(a){const{value:n}=a.mergedSizeRef;if(n!==void 0)return n}if(o){const{mergedSize:n}=o;if(n!==void 0)return n.value}const i=R?.value?.Checkbox?.size;return i||"medium"},mergedDisabled(o){const{disabled:t}=e;if(t!==void 0)return t;if(a){if(a.disabledRef.value)return!0;const{maxRef:{value:i},checkedCountRef:n}=a;if(i!==void 0&&n.value>=i&&!b.value)return!0;const{minRef:{value:x}}=a;if(x!==void 0&&n.value<=x&&b.value)return!0}return o?o.disabled.value:!1}}),{mergedDisabledRef:C,mergedSizeRef:y}=p,d=E("Checkbox","-checkbox",Te,Se,e,v);function S(o){if(a&&e.value!==void 0)a.toggleCheckbox(!b.value,e.value);else{const{onChange:t,"onUpdate:checked":i,onUpdateChecked:n}=e,{nTriggerFormInput:x,nTriggerFormChange:M}=p,m=b.value?e.uncheckedValue:e.checkedValue;i&&T(i,m,o),n&&T(n,m,o),t&&T(t,m,o),x(),M(),g.value=m}}function F(o){C.value||S(o)}function U(o){if(!C.value)switch(o.key){case" ":case"Enter":S(o)}}function H(o){o.key===" "&&o.preventDefault()}const L={focus:()=>{f.value?.focus()},blur:()=>{f.value?.blur()}},A=Ce("Checkbox",B,v),K=P(()=>{const{value:o}=y,{common:{cubicBezierEaseInOut:t},self:{borderRadius:i,color:n,colorChecked:x,colorDisabled:M,colorTableHeader:m,colorTableHeaderModal:O,colorTableHeaderPopover:W,checkMarkColor:G,checkMarkColorDisabled:Y,border:q,borderFocus:J,borderDisabled:Q,borderChecked:X,boxShadowFocus:Z,textColor:ee,textColorDisabled:oe,checkMarkColorDisabledChecked:re,colorDisabledChecked:ce,borderDisabledChecked:ae,labelPadding:ne,labelLineHeight:le,labelFontWeight:de,[j("fontSize",o)]:te,[j("size",o)]:ie}}=d.value;return{"--n-label-line-height":le,"--n-label-font-weight":de,"--n-size":ie,"--n-bezier":t,"--n-border-radius":i,"--n-border":q,"--n-border-checked":X,"--n-border-focus":J,"--n-border-disabled":Q,"--n-border-disabled-checked":ae,"--n-box-shadow-focus":Z,"--n-color":n,"--n-color-checked":x,"--n-color-table":m,"--n-color-table-modal":O,"--n-color-table-popover":W,"--n-color-disabled":M,"--n-color-disabled-checked":ce,"--n-text-color":ee,"--n-text-color-disabled":oe,"--n-check-mark-color":G,"--n-check-mark-color-disabled":Y,"--n-check-mark-color-disabled-checked":re,"--n-font-size":te,"--n-label-padding":ne}}),I=z?ye("checkbox",P(()=>y.value[0]),K,e):void 0;return Object.assign(p,L,{rtlEnabled:A,selfRef:f,mergedClsPrefix:v,mergedDisabled:C,renderedChecked:b,mergedTheme:d,labelId:we(),handleClick:F,handleKeyUp:U,handleKeyDown:H,cssVars:z?void 0:K,themeClass:I?.themeClass,onRender:I?.onRender})},render(){const{$slots:e,renderedChecked:a,mergedDisabled:f,indeterminate:v,privateInsideTable:z,cssVars:B,labelId:R,label:g,mergedClsPrefix:c,focusable:$,handleKeyUp:b,handleKeyDown:p,handleClick:C}=this;this.onRender?.();const y=ke(e.default,d=>g||d?(_(),D("span",{key:1,class:u(`${c}-checkbox__label`),id:R},[w(()=>g||d)],10,Ve)):null);return(()=>{const d=V("70be6e74cd27cb50");return _(),D("div",{ref:"selfRef",class:u([`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,a&&`${c}-checkbox--checked`,f&&`${c}-checkbox--disabled`,v&&`${c}-checkbox--indeterminate`,z&&`${c}-checkbox--inside-table`,y&&`${c}-checkbox--show-label`]),tabindex:f||!$?void 0:0,role:"checkbox","aria-checked":v?"mixed":a,"aria-labelledby":R,style:xe(B),onKeyup:b,onKeydown:p,onClick:C,onMousedown:d[0]||(d[0]=()=>{ve("selectstart",window,S=>{S.preventDefault()},{once:!0})})},[k("div",{class:u(`${c}-checkbox-box-wrapper`)},[d[1]||(d[1]=w(" ",-1)),k("div",{class:u(`${c}-checkbox-box`)},[fe(Re,null,{default:()=>this.indeterminate?(_(),D("div",{key:"indeterminate",class:u(`${c}-checkbox-icon`)},[w(()=>Me())],2)):(_(),D("div",{key:"check",class:u(`${c}-checkbox-icon`)},[w(()=>$e())],2))},1024),k("div",{class:u(`${c}-checkbox-box__border`)},null,2)],2)],2),w(()=>y)],46,Ke)})()}});const Ne=De("n-checkbox-group");export{Ee as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Bwk608FY.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Bwk608FY.js new file mode 100644 index 00000000..f703dce8 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Bwk608FY.js @@ -0,0 +1 @@ +import{d as e,o as r,c as t,a as o}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BdYVNaS7.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BdYVNaS7.js new file mode 100644 index 00000000..fff0c74b --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BdYVNaS7.js @@ -0,0 +1,13 @@ +import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,be as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b2 as te,R as ne,bj as Ee,bk as je,ay as re,az as le,bl as ie,ae as He}from"./index-Ch4EWX-G.js";import{I as Le,u as Ke}from"./Input-DOY9MBk2.js";import{u as Ge}from"./use-compitable-CjxNERC_.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `})],-1))})()}}),Ye=Oe([Z("input-number-suffix",` + display: inline-block; + margin-right: 10px; + `),Z("input-number-prefix",` + display: inline-block; + margin-left: 10px; + `)]);function qe(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Je(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function K(e){return e==null?!0:!Number.isNaN(e)}function oe(e,l){return typeof e!="number"?"":l===void 0?String(e):e.toFixed(l)}function G(e){if(e===null)return null;if(typeof e=="number")return e;{const l=Number(e);return Number.isNaN(l)?null:l}}const ue=800,ae=100,Qe={...de.props,autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]};var rt=T({name:"InputNumber",props:Qe,slots:Object,setup(e){const{mergedBorderedRef:l,mergedClsPrefixRef:s,mergedRtlRef:P,mergedComponentPropsRef:h}=Fe(e),W=de("InputNumber","-input-number",Ye,Ee,e,s),{localeRef:fe}=Ke("InputNumber"),B=Ae(e,{mergedSize:t=>{const{size:n}=e;if(n)return n;const{mergedSize:r}=t||{};if(r?.value)return r.value;const i=h?.value?.InputNumber?.size;return i||"medium"}}),{mergedSizeRef:ce,mergedDisabledRef:me,mergedStatusRef:he}=B,d=k(null),X=k(null),Y=k(null),S=k(e.defaultValue),pe=He(e,"value"),f=Ge(pe,S),p=k(""),D=t=>{const n=String(t).split(".")[1];return n?n.length:0},ge=t=>{const n=[e.min,e.max,e.step,t].map(r=>r===void 0?0:D(r));return Math.max(...n)},ve=b(()=>{const{placeholder:t}=e;return t!==void 0?t:fe.value.placeholder}),M=b(()=>{const t=G(e.step);return t!==null?t===0?1:Math.abs(t):1}),q=b(()=>{const t=G(e.min);return t!==null?t:null}),J=b(()=>{const t=G(e.max);return t!==null?t:null}),w=()=>{const{value:t}=f;if(K(t)){const{format:n,precision:r}=e;n?p.value=n(t):t===null||r===void 0||D(t)>r?p.value=oe(t,void 0):p.value=oe(t,r)}else p.value=String(t)};w();const y=t=>{const{value:n}=f;if(t===n){w();return}const{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormInput:g,nTriggerFormChange:$}=B;a&&x(a,t),i&&x(i,t),r&&x(r,t),S.value=t,g(),$()},u=({offset:t,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{const{value:a}=p;if(i&&Je(a))return!1;const g=(e.parse||qe)(a);if(g===null)return n&&y(null),null;if(K(g)){const $=D(g),{precision:E}=e;if(E!==void 0&&E<$&&!r)return!1;let c=Number.parseFloat((g+t).toFixed(E??ge(g)));if(K(c)){const{value:j}=J,{value:H}=q;if(j!==null&&c>j){if(!n||i)return!1;c=j}if(H!==null&&cu({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),O=b(()=>{const{value:t}=f;if(e.validator&&t===null)return!1;const{value:n}=M;return u({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),F=b(()=>{const{value:t}=f;if(e.validator&&t===null)return!1;const{value:n}=M;return u({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function we(t){const{onFocus:n}=e,{nTriggerFormFocus:r}=B;n&&x(n,t),r()}function xe(t){if(t.target===d.value?.wrapperElRef)return;const n=u({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){const a=d.value?.inputElRef;a&&(a.value=String(n||"")),f.value===n&&w()}else w();const{onBlur:r}=e,{nTriggerFormBlur:i}=B;r&&x(r,t),i(),$e(()=>{w()})}function ye(t){const{onClear:n}=e;n&&x(n,t)}function A(){const{value:t}=F;if(!t){z();return}const{value:n}=f;if(n===null)e.validator||y(Q());else{const{value:r}=M;u({offset:r,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:t}=O;if(!t){_();return}const{value:n}=f;if(n===null)e.validator||y(Q());else{const{value:r}=M;u({offset:-r,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const Ie=we,Ve=xe;function Q(){if(e.validator)return null;const{value:t}=q,{value:n}=J;return t!==null?Math.max(0,t):n!==null?Math.min(0,n):0}function ke(t){ye(t),y(null)}function Be(t){Y.value?.$el.contains(t.target)&&t.preventDefault(),X.value?.$el.contains(t.target)&&t.preventDefault(),d.value?.activate()}let I=null,V=null,R=null;function _(){R&&(window.clearTimeout(R),R=null),I&&(window.clearInterval(I),I=null)}let N=null;function z(){N&&(window.clearTimeout(N),N=null),V&&(window.clearInterval(V),V=null)}function Me(){_(),R=window.setTimeout(()=>{I=window.setInterval(()=>{U()},ae)},ue),ee("mouseup",document,_,{once:!0})}function Re(){z(),N=window.setTimeout(()=>{V=window.setInterval(()=>{A()},ae)},ue),ee("mouseup",document,z,{once:!0})}const Ne=()=>{V||A()},Ce=()=>{I||U()};function Te(t){if(t.key==="Enter"){if(t.target===d.value?.wrapperElRef)return;u({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&d.value?.deactivate()}else if(t.key==="ArrowUp"){if(!F.value||e.keyboard.ArrowUp===!1)return;t.preventDefault(),u({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&A()}else if(t.key==="ArrowDown"){if(!O.value||e.keyboard.ArrowDown===!1)return;t.preventDefault(),u({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Pe(t){p.value=t,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&u({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}Ue(f,()=>{w()});const Se={focus:()=>d.value?.focus(),blur:()=>d.value?.blur(),select:()=>d.value?.select()},De=_e("InputNumber",P,s);return{...Se,rtlEnabled:De,inputInstRef:d,minusButtonInstRef:X,addButtonInstRef:Y,mergedClsPrefix:s,mergedBordered:l,uncontrolledValue:S,mergedValue:f,mergedPlaceholder:ve,displayedValueInvalid:be,mergedSize:ce,mergedDisabled:me,displayedValue:p,addable:F,minusable:O,mergedStatus:he,handleFocus:Ie,handleBlur:Ve,handleClear:ke,handleMouseDown:Be,handleAddClick:Ne,handleMinusClick:Ce,handleAddMousedown:Re,handleMinusMousedown:Me,handleKeyDown:Te,handleUpdateDisplayedValue:Pe,mergedTheme:W,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:ze(()=>{const{self:{iconColorDisabled:t}}=W.value,[n,r,i,a]=je(t);return{textColorTextDisabled:`rgb(${n}, ${r}, ${i})`,opacityDisabled:`${a}`}})}},render(){const{mergedClsPrefix:e,$slots:l}=this,s=()=>(o(),v(ie,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>re(l["minus-icon"],()=>[(o(),v(le,{clsPrefix:e},{default:()=>(o(),v(Xe))},1032,["clsPrefix"]))])},1032,["disabled","theme","themeOverrides","builtinThemeOverrides","onClick","onMousedown"])),P=()=>(o(),v(ie,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>re(l["add-icon"],()=>[(o(),v(le,{clsPrefix:e},{default:()=>(o(),v(We))},1032,["clsPrefix"]))])},1032,["disabled","theme","themeOverrides","builtinThemeOverrides","onClick","onMousedown"]));return o(),C("div",{class:L([`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`])},[(o(),v(Le,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>this.showButton&&this.buttonPlacement==="both"?[s(),te(l.prefix,h=>h?(o(),C("span",{key:1,class:L(`${e}-input-number-prefix`)},[ne(()=>h)],2)):null)]:l.prefix?.(),suffix:()=>this.showButton?[te(l.suffix,h=>h?(o(),C("span",{key:2,class:L(`${e}-input-number-suffix`)},[ne(()=>h)],2)):null),this.buttonPlacement==="right"?s():null,P()]:l.suffix?.()},1032,["autofocus","status","bordered","loading","value","onUpdateValue","theme","themeOverrides","builtinThemeOverrides","size","placeholder","disabled","readonly","round","textDecoration","onFocus","onBlur","onKeydown","onMousedown","onClear","clearable","inputProps"]))],2)}});const Ze={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},lt=T({name:"DocumentTextOutline",render:function(l,s){return o(),C("svg",Ze,s[0]||(s[0]=[m("path",{d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),m("path",{d:"M256 56v120a32 32 0 0 0 32 32h120",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),m("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 288h160"},null,-1),m("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 368h160"},null,-1)]))}});export{lt as D,rt as I}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-CvleeChj.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-CvleeChj.js new file mode 100644 index 00000000..b684f28d --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-CvleeChj.js @@ -0,0 +1 @@ +import{d as e,c as r,a as o,o as t}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-BJiq6Btv.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-BJiq6Btv.css new file mode 100644 index 00000000..c38cde5d --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-BJiq6Btv.css @@ -0,0 +1 @@ +.tile[data-v-f06fd78c]{padding:16px 17px;border-radius:var(--radius);border:1px solid var(--line);background:linear-gradient(180deg,#14202ba8,#0d131acc);position:relative;overflow:hidden}.tile[data-v-f06fd78c]:after{content:"";position:absolute;inset:auto -30% -70% auto;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,rgba(45,212,191,.1),transparent 65%);pointer-events:none}.tile.live[data-v-f06fd78c]:after{background:radial-gradient(circle,rgba(255,77,109,.14),transparent 65%)}.tile.warn[data-v-f06fd78c]:after{background:radial-gradient(circle,rgba(251,191,36,.12),transparent 65%)}.tile-top[data-v-f06fd78c]{display:flex;align-items:center;justify-content:space-between}.tile-label[data-v-f06fd78c]{font-size:11.5px;color:var(--muted);letter-spacing:.4px}.tile-icon[data-v-f06fd78c]{color:var(--muted-2)}.tile.live .tile-icon[data-v-f06fd78c]{color:#ff8095}.tile.accent .tile-icon[data-v-f06fd78c]{color:var(--accent)}.tile-value[data-v-f06fd78c]{margin-top:8px;font-size:30px;line-height:1;font-weight:650;letter-spacing:-.5px}.tile.live .tile-value[data-v-f06fd78c]{color:#ff8095}.tile.accent .tile-value[data-v-f06fd78c]{color:var(--accent)}.tile.warn .tile-value[data-v-f06fd78c]{color:#fcd34d}.tile-hint[data-v-f06fd78c]{margin-top:7px;font-size:10.5px;color:var(--muted-2)}.empty[data-v-6c717026]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:44px 20px 52px;border:1px dashed var(--line-strong);border-radius:18px;background:radial-gradient(600px 200px at 50% 0%,rgba(45,212,191,.05),transparent 70%),#0d131a80}.empty.compact[data-v-6c717026]{padding:28px 20px 32px}.art[data-v-6c717026]{width:min(420px,78%);border-radius:14px;opacity:.92;filter:saturate(.95);-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 72%,transparent 100%)}.compact .art[data-v-6c717026]{width:min(260px,62%)}.copy h3[data-v-6c717026]{margin:0;font-size:16px;font-weight:650}.copy p[data-v-6c717026]{margin:6px auto 0;max-width:420px;color:var(--muted);font-size:12.5px;line-height:1.65}.actions[data-v-6c717026]{margin-top:14px;display:flex;justify-content:center;gap:10px} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-fy8GfigG.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-fy8GfigG.js new file mode 100644 index 00000000..e11bbeff --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-fy8GfigG.js @@ -0,0 +1 @@ +import{N as m,_ as l}from"./_plugin-vue_export-helper-DQkFygL-.js";import{d as i,c,C as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-Ch4EWX-G.js";function z(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},C={key:0,class:"tile-hint"},B=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",C,o(t.hint),1)):n("",!0)],2))}}),D=l(B,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,D as S,z as c}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BX3jJC51.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BX3jJC51.js new file mode 100644 index 00000000..c474634b --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BX3jJC51.js @@ -0,0 +1 @@ +import{d as e,c as t,y as o,o as n}from"./index-Ch4EWX-G.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-DCA6_Iop.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-DCA6_Iop.js new file mode 100644 index 00000000..b7427fda --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-DCA6_Iop.js @@ -0,0 +1 @@ +import{d as e,o as r,c as n,y as t}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DOY9MBk2.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DOY9MBk2.js new file mode 100644 index 00000000..3e8707a8 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DOY9MBk2.js @@ -0,0 +1,259 @@ +import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,bb as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,bf as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,be as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b2 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-Ch4EWX-G.js";import{u as Or}from"./use-compitable-CjxNERC_.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[S(">",[a("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[S("&:hover",` + color: var(--n-clear-color-hover)!important; + `),S("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),a("placeholder",` + display: flex; + `),a("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[zr({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]);const Gr=["onClick","onMousedown"];var ge=V({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(o){return Ie("-base-clear",jr,pe(o,"clsPrefix")),{handleMouseDown(f){f.preventDefault()}}},render(){const{clsPrefix:o}=this;return l(),v("div",{class:h(`${o}-base-clear`)},[Sr(kr,null,{default:()=>this.show?(l(),v("div",{key:"dismiss",class:h(`${o}-base-clear__clear`),onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},[d(()=>G(this.$slots.icon,()=>[(l(),y(re,{clsPrefix:o},{default:()=>(l(),y(Ur))},1032,["clsPrefix"]))]))],42,Gr)):(l(),v("div",{key:"icon",class:h(`${o}-base-clear__placeholder`)},[d(()=>this.$slots.placeholder?.())],2))},1024)],2)}}),Yr=V({name:"ChevronDown",render(){return(()=>{const o=te("ae90ecf811a811ac");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"})],-1))})()}}),Xr=V({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:Boolean,onClear:Function},setup(o,{slots:f}){return()=>{const{clsPrefix:m}=o;return l(),y(_r,{clsPrefix:m,class:h(`${m}-base-suffix`),strokeWidth:24,scale:.85,show:o.loading},{default:()=>o.showArrow?(l(),y(ge,{key:1,clsPrefix:m,show:o.showClear,onClear:o.onClear},{placeholder:()=>(l(),y(re,{clsPrefix:m,class:h(`${m}-base-suffix__arrow`)},{default:()=>G(f.default,()=>[(l(),y(Yr))])},1032,["clsPrefix","class"]))},1032,["clsPrefix","show","onClear"])):null},1032,["clsPrefix","class","show"])}}});const Te=Rr("n-input");var Zr=b("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color .3s var(--n-bezier); + font-size: var(--n-font-size); + font-weight: var(--n-font-weight); + --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); +`,[a("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),a("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),a("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[S("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),S("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),S("&:-webkit-autofill ~",[a("placeholder","display: none;")])]),A("round",[j("textarea","border-radius: calc(var(--n-height) / 2);")]),a("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[S("span",` + width: 100%; + display: inline-block; + `)]),A("textarea",[a("placeholder","overflow: visible;")]),j("autosize","width: 100%;"),A("autosize",[a("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),b("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),a("input-mirror",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),a("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[S("&[type=password]::-ms-reveal","display: none;"),S("+",[a("placeholder",` + display: flex; + align-items: center; + `)])]),j("textarea",[a("placeholder","white-space: nowrap;")]),a("eye",` + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `),A("textarea","width: 100%;",[b("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),A("resizable",[b("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),a("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + scroll-padding-block-end: var(--n-padding-vertical); + `),a("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),A("pair",[a("input-el, placeholder","text-align: center;"),a("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[b("icon",` + color: var(--n-icon-color); + `),b("base-icon",` + color: var(--n-icon-color); + `)])]),A("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[a("border","border: var(--n-border-disabled);"),a("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),a("placeholder","color: var(--n-placeholder-color-disabled);"),a("separator","color: var(--n-text-color-disabled);",[b("icon",` + color: var(--n-icon-color-disabled); + `),b("base-icon",` + color: var(--n-icon-color-disabled); + `)]),b("input-word-count",` + color: var(--n-count-text-color-disabled); + `),a("suffix, prefix","color: var(--n-text-color-disabled);",[b("icon",` + color: var(--n-icon-color-disabled); + `),b("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),j("disabled",[a("eye",` + color: var(--n-icon-color); + cursor: pointer; + `,[S("&:hover",` + color: var(--n-icon-color-hover); + `),S("&:active",` + color: var(--n-icon-color-pressed); + `)]),S("&:hover","background-color: var(--n-color-hover);",[a("state-border","border: var(--n-border-hover);")]),A("focus","background-color: var(--n-color-focus);",[a("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),a("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),a("state-border",` + border-color: #0000; + z-index: 1; + `),a("prefix","margin-right: 4px;"),a("suffix",` + margin-left: 4px; + `),a("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[b("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),b("base-clear",` + font-size: var(--n-icon-size); + `,[a("placeholder",[b("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),S(">",[b("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),b("base-icon",` + font-size: var(--n-icon-size); + `)]),b("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(o=>A(`${o}-status`,[j("disabled",[b("base-loading",` + color: var(--n-loading-color-${o}) + `),a("input-el, textarea-el",` + caret-color: var(--n-caret-color-${o}); + `),a("state-border",` + border: var(--n-border-${o}); + `),S("&:hover",[a("state-border",` + border: var(--n-border-hover-${o}); + `)]),S("&:focus",` + background-color: var(--n-color-focus-${o}); + `,[a("state-border",` + box-shadow: var(--n-box-shadow-focus-${o}); + border: var(--n-border-focus-${o}); + `)]),A("focus",` + background-color: var(--n-color-focus-${o}); + `,[a("state-border",` + box-shadow: var(--n-box-shadow-focus-${o}); + border: var(--n-border-focus-${o}); + `)])])]))]);const qr=b("input",[A("disabled",[a("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]);function Jr(o){let f=0;for(const m of o)f++;return f}function oe(o){return o===""||o==null}function Qr(o){const f=w(null);function m(){const{value:R}=o;if(!R?.focus){k();return}const{selectionStart:u,selectionEnd:t,value:i}=R;if(u==null||t==null){k();return}f.value={start:u,end:t,beforeText:i.slice(0,u),afterText:i.slice(t)}}function z(){const{value:R}=f,{value:u}=o;if(!R||!u)return;const{value:t}=u,{start:i,beforeText:_,afterText:O}=R;let x=t.length;if(t.endsWith(O))x=t.length-O.length;else if(t.startsWith(_))x=_.length;else{const M=_[i-1],B=t.indexOf(M,i-1);B!==-1&&(x=B+1)}u.setSelectionRange?.(x,x)}function k(){f.value=null}return ve(o,k),{recordCursor:m,restoreCursor:z}}var $e=V({name:"InputWordCount",setup(o,{slots:f}){const{mergedValueRef:m,maxlengthRef:z,mergedClsPrefixRef:k,countGraphemesRef:R}=Ee(Te),u=P(()=>{const{value:t}=m;return t===null||Array.isArray(t)?0:(R.value||Jr)(t)});return()=>{const{value:t}=z,{value:i}=m;return l(),v("span",{class:h(`${k.value}-input-word-count`)},[d(()=>Ar(f.default,{value:i===null||Array.isArray(i)?"":i},()=>[t===void 0?u.value:`${u.value} / ${t}`]))],2)}}});const et=["autofocus","rows","placeholder","value","disabled","maxlength","minlength","readonly","tabindex","onBlur","onFocus","onInput","onChange","onScroll"],ot=["type","tabindex","placeholder","disabled","maxlength","minlength","value","readonly","autofocus","size","onBlur","onFocus","onInput","onChange"],rt=["onMousedown","onClick"],tt=["type","tabindex","placeholder","disabled","maxlength","minlength","value","readonly","onBlur","onFocus","onInput","onChange"],nt=["tabindex","onFocus","onBlur","onClick","onMousedown","onMouseenter","onMouseleave","onCompositionstart","onCompositionend","onKeyup","onKeydown"],at={...Me.props,bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean};var st=V({name:"Input",props:at,slots:Object,setup(o){const{mergedClsPrefixRef:f,mergedBorderedRef:m,inlineThemeDisabled:z,mergedRtlRef:k,mergedComponentPropsRef:R}=Fr(o),u=Me("Input","-input",Zr,Vr,o,f);Br&&Ie("-input-safari",qr,f);const t=w(null),i=w(null),_=w(null),O=w(null),x=w(null),M=w(null),B=w(null),be=Qr(B),T=w(null),{localeRef:Le}=Kr("Input"),Y=w(o.defaultValue),Ve=pe(o,"value"),F=Or(Ve,Y),K=$r(o,{mergedSize:e=>{const{size:r}=o;if(r)return r;const{mergedSize:n}=e||{};if(n?.value)return n.value;const c=R?.value?.Input?.size;return c||"medium"}}),{mergedSizeRef:ne,mergedDisabledRef:D,mergedStatusRef:De}=K,W=w(!1),N=w(!1),$=w(!1),H=w(!1);let ae=null;const le=P(()=>{const{placeholder:e,pair:r}=o;return r?Array.isArray(e)?e:e===void 0?["",""]:[e,e]:e===void 0?[Le.value.placeholder]:[e]}),We=P(()=>{const{value:e}=$,{value:r}=F,{value:n}=le;return!e&&(oe(r)||Array.isArray(r)&&oe(r[0]))&&n[0]}),Oe=P(()=>{const{value:e}=$,{value:r}=F,{value:n}=le;return!e&&n[1]&&(oe(r)||Array.isArray(r)&&oe(r[1]))}),ie=Re(()=>o.internalForceFocus||W.value),Ke=Re(()=>{if(D.value||o.readonly||!o.clearable||!ie.value&&!N.value)return!1;const{value:e}=F,{value:r}=ie;return o.pair?!!(Array.isArray(e)&&(e[0]||e[1]))&&(N.value||r):!!e&&(N.value||r)}),se=P(()=>{const{showPasswordOn:e}=o;if(e)return e;if(o.showPasswordToggle)return"click"}),U=w(!1),Ne=P(()=>{const{textDecoration:e}=o;return e?Array.isArray(e)?e.map(r=>({textDecoration:r})):[{textDecoration:e}]:["",""]}),me=w(void 0),He=()=>{if(o.type==="textarea"){const{autosize:e}=o;if(e&&(me.value=T.value?.$el?.offsetWidth),!i.value||typeof e=="boolean")return;const{paddingTop:r,paddingBottom:n,lineHeight:c}=window.getComputedStyle(i.value),p=Number(r.slice(0,-2)),s=Number(n.slice(0,-2)),L=Number(c.slice(0,-2)),{value:E}=_;if(!E)return;if(e.minRows){const I=Math.max(e.minRows,1),de=`${p+s+L*I}px`;E.style.minHeight=de}if(e.maxRows){const I=`${p+s+L*e.maxRows}px`;E.style.maxHeight=I}}},Ue=P(()=>{const{maxlength:e}=o;return e===void 0?void 0:Number(e)});Er(()=>{const{value:e}=F;Array.isArray(e)||ue(e)});const je=Ir().proxy;function X(e,r){const{onUpdateValue:n,"onUpdate:value":c,onInput:p}=o,{nTriggerFormInput:s}=K;n&&C(n,e,r),c&&C(c,e,r),p&&C(p,e,r),Y.value=e,s()}function Z(e,r){const{onChange:n}=o,{nTriggerFormChange:c}=K;n&&C(n,e,r),Y.value=e,c()}function Ge(e){const{onBlur:r}=o,{nTriggerFormBlur:n}=K;r&&C(r,e),n()}function Ye(e){const{onFocus:r}=o,{nTriggerFormFocus:n}=K;r&&C(r,e),n()}function Xe(e){const{onClear:r}=o;r&&C(r,e)}function Ze(e){const{onInputBlur:r}=o;r&&C(r,e)}function qe(e){const{onInputFocus:r}=o;r&&C(r,e)}function Je(){const{onDeactivate:e}=o;e&&C(e)}function Qe(){const{onActivate:e}=o;e&&C(e)}function eo(e){const{onClick:r}=o;r&&C(r,e)}function oo(e){const{onWrapperFocus:r}=o;r&&C(r,e)}function ro(e){const{onWrapperBlur:r}=o;r&&C(r,e)}function to(){$.value=!0}function no(e){$.value=!1,e.target===M.value?q(e,1):q(e,0)}function q(e,r=0,n="input"){const c=e.target.value;if(ue(c),e instanceof InputEvent&&!e.isComposing&&($.value=!1),o.type==="textarea"){const{value:s}=T;s&&s.syncUnifiedContainer()}if(ae=c,$.value)return;be.recordCursor();const p=ao(c);if(p)if(!o.pair)n==="input"?X(c,{source:r}):Z(c,{source:r});else{let{value:s}=F;Array.isArray(s)?s=[s[0],s[1]]:s=["",""],s[r]=c,n==="input"?X(s,{source:r}):Z(s,{source:r})}je.$forceUpdate(),p||Pe(be.restoreCursor)}function ao(e){const{countGraphemes:r,maxlength:n,minlength:c}=o;if(r){let s;if(n!==void 0&&(s===void 0&&(s=r(e)),s>Number(n))||c!==void 0&&(s===void 0&&(s=r(e)),s{c.preventDefault(),Be("mouseup",document,r)};if(Fe("mouseup",document,r),se.value!=="mousedown")return;U.value=!0;const n=()=>{U.value=!1,Be("mouseup",document,n)};Fe("mouseup",document,n)}function xo(e){o.onKeyup&&C(o.onKeyup,e)}function wo(e){switch(o.onKeydown&&C(o.onKeydown,e),e.key){case"Escape":ce();break;case"Enter":yo(e)}}function yo(e){if(o.passivelyActivated){const{value:r}=H;if(r){o.internalDeactivateOnEnter&&ce();return}e.preventDefault(),o.type==="textarea"?i.value?.focus():x.value?.focus()}}function ce(){o.passivelyActivated&&(H.value=!1,Pe(()=>{t.value?.focus()}))}function we(){D.value||(o.passivelyActivated?t.value?.focus():(i.value?.focus(),x.value?.focus()))}function Co(){t.value?.contains(document.activeElement)&&document.activeElement.blur()}function zo(){i.value?.select(),x.value?.select()}function So(){D.value||(i.value?i.value.focus():x.value&&x.value.focus())}function ko(){const{value:e}=t;e?.contains(document.activeElement)&&e!==document.activeElement&&ce()}function _o(e){if(o.type==="textarea"){const{value:r}=i;r?.scrollTo(e)}else{const{value:r}=x;r?.scrollTo(e)}}function ue(e){const{type:r,pair:n,autosize:c}=o;if(!n&&c)if(r==="textarea"){const{value:p}=_;p&&(p.textContent=`${e??""}\r +`)}else{const{value:p}=O;p&&(e?p.textContent=e:p.innerHTML=" ")}}function Ro(){He()}const ye=w({top:"0"});function Ao(e){const{scrollTop:r}=e.target;ye.value.top=`${-r}px`,T.value?.syncUnifiedContainer()}let Ce=null;Ae(()=>{const{autosize:e,type:r}=o;e&&r==="textarea"?Ce=ve(F,n=>{!Array.isArray(n)&&n!==ae&&ue(n)}):Ce?.()});let ze=null;Ae(()=>{o.type==="textarea"?ze=ve(F,e=>{!Array.isArray(e)&&e!==ae&&T.value?.syncUnifiedContainer()}):ze?.()}),Wr(Te,{mergedValueRef:F,maxlengthRef:Ue,mergedClsPrefixRef:f,countGraphemesRef:pe(o,"countGraphemes")});const Po={wrapperElRef:t,inputElRef:x,textareaElRef:i,isCompositing:$,clear:xe,focus:we,blur:Co,select:zo,deactivate:ko,activate:So,scrollTo:_o},Fo=Mr("Input",k,f),Se=P(()=>{const{value:e}=ne,{common:{cubicBezierEaseInOut:r},self:{color:n,colorHover:c,borderRadius:p,textColor:s,caretColor:L,caretColorError:E,caretColorWarning:I,textDecorationColor:de,border:Bo,borderDisabled:$o,borderHover:Eo,borderFocus:Io,placeholderColor:Mo,placeholderColorDisabled:To,lineHeightTextarea:Lo,colorDisabled:Vo,colorFocus:Do,textColorDisabled:Wo,boxShadowFocus:Oo,iconSize:Ko,colorFocusWarning:No,boxShadowFocusWarning:Ho,borderWarning:Uo,borderFocusWarning:jo,borderHoverWarning:Go,colorFocusError:Yo,boxShadowFocusError:Xo,borderError:Zo,borderFocusError:qo,borderHoverError:Jo,clearSize:Qo,clearColor:er,clearColorHover:or,clearColorPressed:rr,iconColor:tr,iconColorDisabled:nr,suffixTextColor:ar,countTextColor:lr,countTextColorDisabled:ir,iconColorHover:sr,iconColorPressed:cr,loadingColor:ur,loadingColorError:dr,loadingColorWarning:hr,fontWeight:fr,[fe("padding",e)]:pr,[fe("fontSize",e)]:vr,[fe("height",e)]:gr}}=u.value,{left:br,right:mr}=Dr(pr);return{"--n-bezier":r,"--n-count-text-color":lr,"--n-count-text-color-disabled":ir,"--n-color":n,"--n-color-hover":c,"--n-font-size":vr,"--n-font-weight":fr,"--n-border-radius":p,"--n-height":gr,"--n-padding-left":br,"--n-padding-right":mr,"--n-text-color":s,"--n-caret-color":L,"--n-text-decoration-color":de,"--n-border":Bo,"--n-border-disabled":$o,"--n-border-hover":Eo,"--n-border-focus":Io,"--n-placeholder-color":Mo,"--n-placeholder-color-disabled":To,"--n-icon-size":Ko,"--n-line-height-textarea":Lo,"--n-color-disabled":Vo,"--n-color-focus":Do,"--n-text-color-disabled":Wo,"--n-box-shadow-focus":Oo,"--n-loading-color":ur,"--n-caret-color-warning":I,"--n-color-focus-warning":No,"--n-box-shadow-focus-warning":Ho,"--n-border-warning":Uo,"--n-border-focus-warning":jo,"--n-border-hover-warning":Go,"--n-loading-color-warning":hr,"--n-caret-color-error":E,"--n-color-focus-error":Yo,"--n-box-shadow-focus-error":Xo,"--n-border-error":Zo,"--n-border-focus-error":qo,"--n-border-hover-error":Jo,"--n-loading-color-error":dr,"--n-clear-color":er,"--n-clear-size":Qo,"--n-clear-color-hover":or,"--n-clear-color-pressed":rr,"--n-icon-color":tr,"--n-icon-color-hover":sr,"--n-icon-color-pressed":cr,"--n-icon-color-disabled":nr,"--n-suffix-text-color":ar}}),ke=z?Tr("input",P(()=>{const{value:e}=ne;return e[0]}),Se,o):void 0;return{...Po,wrapperElRef:t,inputElRef:x,inputMirrorElRef:O,inputEl2Ref:M,textareaElRef:i,textareaMirrorElRef:_,textareaScrollbarInstRef:T,rtlEnabled:Fo,uncontrolledValue:Y,mergedValue:F,passwordVisible:U,mergedPlaceholder:le,showPlaceholder1:We,showPlaceholder2:Oe,mergedFocus:ie,isComposing:$,activated:H,showClearButton:Ke,mergedSize:ne,mergedDisabled:D,textDecorationStyle:Ne,mergedClsPrefix:f,mergedBordered:m,mergedShowPasswordOn:se,placeholderStyle:ye,mergedStatus:De,textAreaScrollContainerWidth:me,handleTextAreaScroll:Ao,handleCompositionStart:to,handleCompositionEnd:no,handleInput:q,handleInputBlur:lo,handleInputFocus:io,handleWrapperBlur:so,handleWrapperFocus:co,handleMouseEnter:vo,handleMouseLeave:go,handleMouseDown:po,handleChange:uo,handleClick:ho,handleClear:fo,handlePasswordToggleClick:bo,handlePasswordToggleMousedown:mo,handleWrapperKeydown:wo,handleWrapperKeyup:xo,handleTextAreaMirrorResize:Ro,getTextareaScrollContainer:()=>i.value,mergedTheme:u,cssVars:z?void 0:Se,themeClass:ke?.themeClass,onRender:ke?.onRender}},render(){const{mergedClsPrefix:o,mergedStatus:f,themeClass:m,type:z,countGraphemes:k,onRender:R}=this,u=this.$slots;return R?.(),l(),v("div",{ref:"wrapperElRef",class:h([`${o}-input`,`${o}-input--${this.mergedSize}-size`,m,f&&`${o}-input--${f}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:z==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&z!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}]),style:Q(this.cssVars),tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},[g("div",{class:h(`${o}-input-wrapper`)},[d(()=>ee(u.prefix,t=>t&&(l(),v("div",{class:h(`${o}-input__prefix`)},[d(()=>t)],2)))),z==="textarea"?(l(),y(Pr,{key:0,ref:"textareaScrollbarInstRef",class:h(`${o}-input__textarea`),container:this.getTextareaScrollContainer,theme:this.theme?.peers?.Scrollbar,themeOverrides:this.themeOverrides?.peers?.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{const{textAreaScrollContainerWidth:t}=this,i={width:this.autosize&&t&&`${t}px`};return l(),v(he,null,[g("textarea",_e(this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,this.inputProps?.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:k?void 0:this.maxlength,minlength:k?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],this.inputProps?.style,i],onBlur:this.handleInputBlur,onFocus:_=>{this.handleInputFocus(_,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll}),null,16,et),this.showPlaceholder1?(l(),v("div",{class:h(`${o}-input__placeholder`),style:Q([this.placeholderStyle,i]),key:"placeholder"},[d(()=>this.mergedPlaceholder[0])],6)):d(()=>null),this.autosize?(l(),y(Lr,{key:2,onResize:this.handleTextAreaMirrorResize},{default:()=>(l(),v("div",{ref:"textareaMirrorElRef",class:h(`${o}-input__textarea-mirror`),key:"mirror"},null,2))},1032,["onResize"])):d(()=>null)],64)}},1032,["class","container","theme","themeOverrides"])):(l(),v("div",{key:1,class:h(`${o}-input__input`)},[g("input",_e({type:z==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":z},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,this.inputProps?.class],style:[this.textDecorationStyle[0],this.inputProps?.style],tabindex:this.passivelyActivated&&!this.activated?-1:this.inputProps?.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:k?void 0:this.maxlength,minlength:k?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:t=>{this.handleInputFocus(t,0)},onInput:t=>{this.handleInput(t,0)},onChange:t=>{this.handleChange(t,0)}}),null,16,ot),this.showPlaceholder1?(l(),v("div",{key:0,class:h(`${o}-input__placeholder`)},[g("span",null,[d(()=>this.mergedPlaceholder[0])])],2)):d(()=>null),this.autosize?(l(),v("div",{class:h(`${o}-input__input-mirror`),key:"mirror",ref:"inputMirrorElRef"}," ",2)):d(()=>null)],2)),d(()=>!this.pair&&ee(u.suffix,t=>t||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?(l(),v("div",{key:1,class:h(`${o}-input__suffix`)},[d(()=>[ee(u["clear-icon-placeholder"],i=>(this.clearable||i)&&(l(),y(ge,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>i,icon:()=>this.$slots["clear-icon"]?.()},1032,["clsPrefix","show","onClear"]))),this.internalLoadingBeforeSuffix?null:t,this.loading!==void 0?(l(),y(Xr,{key:2,clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:Q(this.cssVars)},null,8,["clsPrefix","loading","style"])):null,this.internalLoadingBeforeSuffix?t:null,this.showCount&&this.type!=="textarea"?(l(),y($e,{key:3},{default:i=>{const{renderCount:_}=this;return _?_(i):u.count?.(i)}},1024)):null,this.mergedShowPasswordOn&&this.type==="password"?(l(),v("div",{key:4,class:h(`${o}-input__eye`),onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},[this.passwordVisible?(l(),v(he,{key:0},[d(()=>G(u["password-visible-icon"],()=>[(l(),y(re,{clsPrefix:o},{default:()=>(l(),y(Nr))},1032,["clsPrefix"]))]))],64)):(l(),v(he,{key:1},[d(()=>G(u["password-invisible-icon"],()=>[(l(),y(re,{clsPrefix:o},{default:()=>(l(),y(Hr))},1032,["clsPrefix"]))]))],64))],42,rt)):null])],2)):null))],2),this.pair?(l(),v("span",{key:0,class:h(`${o}-input__separator`)},[d(()=>G(u.separator,()=>[this.separator]))],2)):d(()=>null),this.pair?(l(),v("div",{key:2,class:h(`${o}-input-wrapper`)},[g("div",{class:h(`${o}-input__input`)},[g("input",{ref:"inputEl2Ref",type:this.type,class:h(`${o}-input__input-el`),tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:k?void 0:this.maxlength,minlength:k?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:Q(this.textDecorationStyle[1]),onBlur:this.handleInputBlur,onFocus:t=>{this.handleInputFocus(t,1)},onInput:t=>{this.handleInput(t,1)},onChange:t=>{this.handleChange(t,1)}},null,46,tt),this.showPlaceholder2?(l(),v("div",{key:0,class:h(`${o}-input__placeholder`)},[g("span",null,[d(()=>this.mergedPlaceholder[1])])],2)):d(()=>null)],2),d(()=>ee(u.suffix,t=>(this.clearable||t)&&(l(),v("div",{class:h(`${o}-input__suffix`)},[d(()=>[this.clearable&&(l(),y(ge,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>u["clear-icon"]?.(),placeholder:()=>u["clear-icon-placeholder"]?.()},1032,["clsPrefix","show","onClear"])),t])],2))))],2)):d(()=>null),this.mergedBordered?(l(),v("div",{key:4,class:h(`${o}-input__border`)},null,2)):d(()=>null),this.mergedBordered?(l(),v("div",{key:6,class:h(`${o}-input__state-border`)},null,2)):d(()=>null),this.showCount&&z==="textarea"?(l(),y($e,{key:8},{default:t=>{const{renderCount:i}=this;return i?i(t):u.count?.(t)}},1024)):d(()=>null)],46,nt)}});export{st as I,Xr as S,Kr as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BgEHpUPB.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BgEHpUPB.css new file mode 100644 index 00000000..c347b440 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BgEHpUPB.css @@ -0,0 +1 @@ +.login[data-v-18fa6f23]{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;position:relative;z-index:1}.hero[data-v-18fa6f23]{position:relative;background-size:cover;background-position:center;border-right:1px solid var(--line);overflow:hidden}.hero-shade[data-v-18fa6f23]{position:absolute;inset:0;background:linear-gradient(180deg,#05090c3d,#05090cd1),linear-gradient(90deg,#05090c1a,#05090c8c)}.hero-content[data-v-18fa6f23]{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:40px 46px}.brand[data-v-18fa6f23]{display:flex;align-items:center;gap:12px}.brand-logo[data-v-18fa6f23]{width:44px;height:44px;border-radius:12px;border:1px solid rgba(45,212,191,.3)}.brand-name[data-v-18fa6f23]{font-size:16px;font-weight:700;letter-spacing:.4px}.brand-en[data-v-18fa6f23]{margin-top:3px;font-size:9px;letter-spacing:3px;color:#e8f2f673;font-family:var(--mono)}.hero-copy h1[data-v-18fa6f23]{margin:0;font-size:42px;line-height:1.15;letter-spacing:-.5px;font-weight:700}.hero-copy p[data-v-18fa6f23]{margin:16px 0 0;max-width:440px;color:#e8f2f6b3;font-size:13.5px;line-height:1.8}.hero-points[data-v-18fa6f23]{display:flex;gap:8px;margin-top:22px;flex-wrap:wrap}.hero-points span[data-v-18fa6f23]{font-size:11px;color:#e8f2f6cc;border:1px solid rgba(232,242,246,.16);background:#070b0f6b;padding:5px 11px;border-radius:99px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.hero-foot[data-v-18fa6f23]{font-size:9.5px;letter-spacing:2px;color:#e8f2f652}.form-side[data-v-18fa6f23]{display:grid;place-items:center;padding:40px 24px;background:#070b0f99}.form-card[data-v-18fa6f23]{width:min(380px,100%)}.checking[data-v-18fa6f23]{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.kicker[data-v-18fa6f23]{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;letter-spacing:1px;color:var(--accent);text-transform:uppercase}.form-head h2[data-v-18fa6f23]{margin:10px 0 0;font-size:26px;font-weight:680;letter-spacing:-.3px}.form-head p[data-v-18fa6f23]{margin:9px 0 0;font-size:12.5px;line-height:1.7;color:var(--muted)}.form[data-v-18fa6f23]{margin-top:28px;display:flex;flex-direction:column;gap:15px}.field[data-v-18fa6f23]{display:flex;flex-direction:column;gap:7px}.field>span[data-v-18fa6f23]{font-size:11.5px;color:var(--muted)}.error[data-v-18fa6f23]{padding:9px 12px;border-radius:9px;font-size:12px;color:#fca5a5;background:#f8717114;border:1px solid rgba(248,113,113,.22)}.init-error[data-v-18fa6f23]{margin-top:16px;padding:10px 12px;border-radius:9px;font-size:12px;line-height:1.65;color:#fcd34d;background:#fbbf2414;border:1px solid rgba(251,191,36,.24)}.init-error-title[data-v-18fa6f23]{font-weight:600;margin-bottom:2px}.init-error-hint[data-v-18fa6f23]{margin-top:4px;font-size:11px;color:var(--muted)}.tip[data-v-18fa6f23]{margin-top:22px;font-size:10.5px;line-height:1.7;color:var(--muted-2);text-align:center}@media(max-width:980px){.login[data-v-18fa6f23]{grid-template-columns:1fr}.hero[data-v-18fa6f23]{display:none}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DDTKasOc.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DDTKasOc.js new file mode 100644 index 00000000..665b3779 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DDTKasOc.js @@ -0,0 +1 @@ +import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-Ch4EWX-G.js";import{I as L}from"./Input-DOY9MBk2.js";import{C as G}from"./CheckboxGroup-CVNCmOpb.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-DQkFygL-.js";import{S as Q}from"./Spin-BbwWICDg.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-CjxNERC_.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-DBaBm7B1.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-DBaBm7B1.js new file mode 100644 index 00000000..0eae3400 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-DBaBm7B1.js @@ -0,0 +1 @@ +import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-Ch4EWX-G.js";import{p as v,P as f}from"./use-message-sIwnQEJL.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-g6Rw4_09.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-g6Rw4_09.css new file mode 100644 index 00000000..340df1cb --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-g6Rw4_09.css @@ -0,0 +1 @@ +.list-bar[data-v-09b435c0]{display:flex;gap:10px;justify-content:flex-end;margin-bottom:14px}.filter[data-v-09b435c0]{width:200px}.search[data-v-09b435c0]{width:260px}.loading[data-v-09b435c0]{display:grid;place-items:center;padding:70px 0}.table[data-v-09b435c0]{overflow:hidden}.row[data-v-09b435c0]{display:grid;grid-template-columns:minmax(220px,2.2fr) 1.1fr 1.3fr .8fr .8fr .5fr .8fr;gap:12px;align-items:center;padding:11px 16px;text-align:left}.thead[data-v-09b435c0]{font-size:10.5px;letter-spacing:.6px;color:var(--muted-2);text-transform:uppercase;border-bottom:1px solid var(--line);background:#94c5d608}.body-row[data-v-09b435c0]{width:100%;border:0;border-bottom:1px solid rgba(148,197,214,.07);background:transparent;color:var(--text);font-family:inherit;font-size:12.5px;cursor:pointer;transition:background .14s ease}.body-row[data-v-09b435c0]:last-child{border-bottom:0}.body-row[data-v-09b435c0]:hover{background:#2dd4bf0b}.cell-title[data-v-09b435c0]{display:flex;align-items:baseline;gap:8px;min-width:0}.title-text[data-v-09b435c0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}.title-sub[data-v-09b435c0]{font-size:10px;color:var(--muted-2)}.cell-muted[data-v-09b435c0]{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rec-tag[data-v-09b435c0]{display:inline-flex;align-items:center;gap:5px}.pager[data-v-09b435c0]{display:flex;justify-content:flex-end;margin-top:16px}.drawer-title[data-v-09b435c0]{font-size:15px;font-weight:650}.detail-title[data-v-09b435c0]{margin:0 0 8px;font-size:17px}.detail-meta[data-v-09b435c0]{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.detail-label[data-v-09b435c0]{margin:18px 0 10px;font-size:11px;letter-spacing:.6px;color:var(--muted-2);text-transform:uppercase}.segments[data-v-09b435c0]{display:flex;flex-direction:column;gap:8px}.segment[data-v-09b435c0]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:#94c5d608}.seg-main[data-v-09b435c0]{min-width:0}.seg-name[data-v-09b435c0]{font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seg-sub[data-v-09b435c0]{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:10.5px;color:var(--muted)}.seg-actions[data-v-09b435c0]{display:flex;gap:6px;flex:none}.no-seg[data-v-09b435c0],.gap[data-v-09b435c0]{font-size:12px;color:var(--muted)}.gap[data-v-09b435c0]{padding:6px 0}.error-panel[data-v-09b435c0]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-09b435c0]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-09b435c0]{margin:7px 0 14px;font-size:12px;color:var(--muted)}@media(max-width:1080px){.row[data-v-09b435c0]{grid-template-columns:minmax(180px,2fr) 1fr 1.2fr .8fr .8fr}.row[data-v-09b435c0]>:nth-child(6),.row[data-v-09b435c0]>:nth-child(7){display:none}}@media(max-width:720px){.filter[data-v-09b435c0],.search[data-v-09b435c0]{width:100%}.list-bar[data-v-09b435c0]{flex-direction:column}}.compact-summary[data-v-09b435c0]{display:flex;gap:12px;margin-bottom:14px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}.compact-summary b[data-v-09b435c0]{margin-left:3px;color:var(--text);font-family:var(--mono);font-weight:600}.agent-row[data-v-09b435c0]{display:flex;justify-content:flex-end;margin-top:16px}@media(max-width:639px){.thead[data-v-09b435c0]{display:none}.row.body-row[data-v-09b435c0]{grid-template-columns:1fr;gap:6px;margin-bottom:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#94c5d608}.body-row[data-v-09b435c0]>:nth-child(6),.body-row[data-v-09b435c0]>:nth-child(7){display:none}.body-row[data-v-09b435c0]>:nth-child(2):before{content:"主播:";color:var(--muted-2)}.body-row[data-v-09b435c0]>:nth-child(3):before{content:"时间:";color:var(--muted-2)}.body-row[data-v-09b435c0]>:nth-child(4):before{content:"时长:";color:var(--muted-2)}.body-row[data-v-09b435c0]>:nth-child(5):before{content:"大小:";color:var(--muted-2)}.cell-title[data-v-09b435c0]{flex-direction:column;align-items:flex-start;gap:2px}.pager[data-v-09b435c0]{justify-content:center}.detail-meta[data-v-09b435c0]{gap:8px}.segment[data-v-09b435c0]{flex-direction:column;align-items:stretch}.seg-actions[data-v-09b435c0]{justify-content:flex-end}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-jJfZw4rU.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-jJfZw4rU.js new file mode 100644 index 00000000..bdd315fd --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-jJfZw4rU.js @@ -0,0 +1,235 @@ +import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-DlP0Rw4u.js";import{u as mr,I as je}from"./Input-DOY9MBk2.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,z as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,A as Ne,aT as Er}from"./index-Ch4EWX-G.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-sIwnQEJL.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-fy8GfigG.js";import{u as Ie}from"./use-compitable-CjxNERC_.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-DQkFygL-.js";import{S as Ge}from"./Spin-BbwWICDg.js";import{d as Hr}from"./streamers-Bl5LBoP5.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-BX3jJC51.js";import{D as rt}from"./DownloadOutline-CvleeChj.js";import{R as Wr}from"./RefreshOutline-DsgjGZK9.js";import{S as qr}from"./SearchOutline--3GBf81B.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` + box-shadow: var(--n-menu-box-shadow); +`);const Ye={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:String,scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},at=hr(Ye);var Yr=re({name:"PopselectPanel",props:Ye,setup(e){const t=Ve(Ct),{mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedComponentPropsRef:m}=Be(e),v=A(()=>e.size||m?.value?.Popselect?.size||"medium"),C=be("Popselect","-pop-select",Xr,pt,t.props,r),F=A(()=>cr(e.options,ur("value","children")));function P(l,p){const{onUpdateValue:w,"onUpdate:value":k,onChange:N}=e;w&&X(w,l,p),k&&X(k,l,p),N&&X(N,l,p)}function f(l){b(l.key)}function M(l){!Ue(l,"action")&&!Ue(l,"empty")&&!Ue(l,"header")&&l.preventDefault()}function b(l){const{value:{getNode:p}}=F;if(e.multiple)if(Array.isArray(e.value)){const w=[],k=[];let N=!0;e.value.forEach(J=>{if(J===l){N=!1;return}const V=p(J);V&&(w.push(V.key),k.push(V.rawNode))}),N&&(w.push(l),k.push(p(l).rawNode)),P(w,k)}else{const w=p(l);w&&P([l],[w.rawNode])}else if(e.value===l&&e.cancelable)P(null,null);else{const w=p(l);w&&P(l,w.rawNode);const{"onUpdate:show":k,onUpdateShow:N}=t.props;k&&X(k,!1),N&&X(N,!1),t.setShow(!1)}De(()=>{t.syncPosition()})}Fe(Me(e,"options"),()=>{De(()=>{t.syncPosition()})});const R=A(()=>{const{self:{menuBoxShadow:l}}=C.value;return{"--n-menu-box-shadow":l}}),z=g?We("select",void 0,R,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:F,handleToggle:f,handleMenuMousedown:M,cssVars:g?void 0:R,themeClass:z?.themeClass,onRender:z?.onRender,mergedSize:v,scrollbarProps:t.props.scrollbarProps}},render(){return this.onRender?.(),n(),y(dr,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:H([`${this.mergedClsPrefix}-popselect-menu`,this.themeClass]),style:ce(this.cssVars),theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.mergedSize,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,scrollbarProps:this.scrollbarProps,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{_:1,header:Re(()=>this.$slots.header?.()||[]),action:Re(()=>this.$slots.action?.()||[]),empty:Re(()=>this.$slots.empty?.()||[])},8,["clsPrefix","nodeProps","class","style","theme","themeOverrides","multiple","treeMate","size","value","virtualScroll","scrollable","scrollbarProps","renderLabel","onToggle","onMouseenter","onMouseleave","onMousedown","showCheckmark"])}});const Kr={...be.props,...vt(Qe,["showArrow","arrow"]),placement:{...Qe.placement,default:"bottom"},trigger:{type:String,default:"hover"},...Ye,scrollbarProps:Object};var Jr=re({name:"Popselect",props:Kr,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Be(e),r=be("Popselect","-popselect",void 0,pt,e,t),g=B(null);function m(){g.value?.syncPosition()}function v(C){g.value?.setShow(C)}return Pe(Ct,{props:e,mergedThemeRef:r,syncPosition:m,setShow:v}),{syncPosition:m,setShow:v,popoverInstRef:g,mergedTheme:r}},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,g,m,v,C)=>{const{$attrs:F}=this;return n(),y(Yr,ge(F,{class:[F.class,r],style:[F.style,...m]},pr(this.$props,at),{ref:Nr(g),onMouseenter:Ke([v,F.onMouseenter]),onMouseleave:Ke([C,F.onMouseleave])}),{header:()=>this.$slots.header?.(),action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,["class","style","onMouseenter","onMouseleave"])}};return n(),y(Ar,ge(vt(this.$props,at),t,{internalDeactivateImmediately:!0}),{_:1,trigger:Re(()=>this.$slots.default?.())},16)}});const Qr={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function nt(e){const t=Qr[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}var ot=re({name:"Backward",render(){return(()=>{const e=xe("20cdf29399dd0749");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"})],-1))})()}}),st=re({name:"FastBackward",render(){return(()=>{const e=xe("9d0d04cc580afefa");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"})])])],-1))})()}}),it=re({name:"FastForward",render(){return(()=>{const e=xe("c2e477dd1211740a");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})])])],-1))})()}}),lt=re({name:"Forward",render(){return(()=>{const e=xe("6fb2c33c1e576c93");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"})],-1))})()}}),dt=re({name:"More",render(){return(()=>{const e=xe("e4a3e3d3803c676d");return e[0]||(e[0]=a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"})])])],-1))})()}});const ct=` + background: var(--n-item-color-hover); + color: var(--n-item-text-color-hover); + border: var(--n-item-border-hover); +`,ut=[q("button",` + background: var(--n-button-color-hover); + border: var(--n-button-border-hover); + color: var(--n-button-icon-color-hover); + `)];var Zr=U("pagination",` + display: flex; + vertical-align: middle; + font-size: var(--n-item-font-size); + flex-wrap: nowrap; +`,[U("pagination-prefix",` + display: flex; + align-items: center; + margin: var(--n-prefix-margin); + `),U("pagination-suffix",` + display: flex; + align-items: center; + margin: var(--n-suffix-margin); + `),S("> *:not(:first-child)",` + margin: var(--n-item-margin); + `),U("select",` + width: var(--n-select-width); + `),S("&.transition-disabled",[U("pagination-item","transition: none!important;")]),U("pagination-quick-jumper",` + white-space: nowrap; + display: flex; + color: var(--n-jumper-text-color); + transition: color .3s var(--n-bezier); + align-items: center; + font-size: var(--n-jumper-font-size); + `,[U("input",` + margin: var(--n-input-margin); + width: var(--n-input-width); + `)]),U("pagination-item",` + position: relative; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + min-width: var(--n-item-size); + height: var(--n-item-size); + padding: var(--n-item-padding); + background-color: var(--n-item-color); + color: var(--n-item-text-color); + border-radius: var(--n-item-border-radius); + border: var(--n-item-border); + fill: var(--n-button-icon-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + fill .3s var(--n-bezier); + `,[q("button",` + background: var(--n-button-color); + color: var(--n-button-icon-color); + border: var(--n-button-border); + padding: 0; + `,[U("base-icon",` + font-size: var(--n-button-icon-size); + `)]),vr("disabled",[q("hover",ct,ut),S("&:hover",ct,ut),S("&:active",` + background: var(--n-item-color-pressed); + color: var(--n-item-text-color-pressed); + border: var(--n-item-border-pressed); + `,[q("button",` + background: var(--n-button-color-pressed); + border: var(--n-button-border-pressed); + color: var(--n-button-icon-color-pressed); + `)]),q("active",` + background: var(--n-item-color-active); + color: var(--n-item-text-color-active); + border: var(--n-item-border-active); + `,[S("&:hover",` + background: var(--n-item-color-active-hover); + `)])]),q("disabled",` + cursor: not-allowed; + color: var(--n-item-text-color-disabled); + `,[q("active, button",` + background-color: var(--n-item-color-disabled); + border: var(--n-item-border-disabled); + `)])]),q("disabled",` + cursor: not-allowed; + `,[U("pagination-quick-jumper",` + color: var(--n-jumper-text-color-disabled); + `)]),q("simple",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[U("pagination-quick-jumper",[U("input",` + margin: 0; + `)])])]);function Gr(e){if(!e)return 10;const{defaultPageSize:t}=e;if(t!==void 0)return t;const r=e.pageSizes?.[0];return typeof r=="number"?r:r?.value||10}function ea(e,t,r,g){let m=!1,v=!1,C=1,F=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:F,fastBackwardTo:C,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:F,fastBackwardTo:C,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const P=1,f=t;let M=e,b=e;const R=(r-5)/2;b+=Math.ceil(R),b=Math.min(Math.max(b,P+r-3),f-2),M-=Math.floor(R),M=Math.max(Math.min(M,f-r+3),3);let z=!1,l=!1;M>3&&(z=!0),b=2&&p.push({type:"page",label:2,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===2});for(let w=M;w<=b;++w)p.push({type:"page",label:w,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===w});return l?(v=!0,F=b+1,p.push({type:"fast-forward",active:!1,label:void 0,options:g?mt(b+1,f-1):null})):b===f-2&&p[p.length-1].label!==f-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:f-1,active:e===f-1}),p[p.length-1].label!==f&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:f,active:e===f}),{hasFastBackward:m,hasFastForward:v,fastBackwardTo:C,fastForwardTo:F,items:p}}function mt(e,t){const r=[];for(let g=e;g<=t;++g)r.push({label:`${g}`,value:g});return r}const ta=["onClick","onMouseenter","onMouseleave"],ra=["onClick"],aa=["onClick"],na={...be.props,simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:String,disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ur.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},scrollbarProps:Object,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]};var oa=re({name:"Pagination",props:na,slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedRtlRef:m}=Be(e),v=A(()=>e.size||t?.value?.Pagination?.size||"medium"),C=be("Pagination","-pagination",Zr,br,e,r),{localeRef:F}=mr("Pagination"),P=B(null),f=B(e.defaultPage),M=B(Gr(e)),b=Ie(Me(e,"page"),f),R=Ie(Me(e,"pageSize"),M),z=A(()=>{const{itemCount:s}=e;if(s!==void 0)return Math.max(1,Math.ceil(s/R.value));const{pageCount:W}=e;return W!==void 0?Math.max(W,1):1}),l=B("");Te(()=>{e.simple,l.value=String(b.value)});const p=B(!1),w=B(!1),k=B(!1),N=B(!1),J=()=>{e.disabled||(p.value=!0,i())},V=()=>{e.disabled||(p.value=!1,i())},Q=()=>{w.value=!0,i()},c=()=>{w.value=!1,i()},T=s=>{h(s)},I=A(()=>ea(b.value,z.value,e.pageSlot,e.showQuickJumpDropdown));Te(()=>{I.value.hasFastBackward?I.value.hasFastForward||(p.value=!1,k.value=!1):(w.value=!1,N.value=!1)});const x=A(()=>{const s=F.value.selectionSuffix;return e.pageSizes.map(W=>typeof W=="number"?{label:`${W} / ${s}`,value:W}:W)}),$=A(()=>t?.value?.Pagination?.inputSize||nt(v.value)),j=A(()=>t?.value?.Pagination?.selectSize||nt(v.value)),le=A(()=>(b.value-1)*R.value),de=A(()=>{const s=b.value*R.value-1,{itemCount:W}=e;return W!==void 0&&s>W-1?W-1:s}),_=A(()=>{const{itemCount:s}=e;return s!==void 0?s:(e.pageCount||1)*R.value}),o=gt("Pagination",m,r);function i(){De(()=>{const{value:s}=P;s&&(s.classList.add("transition-disabled"),P.value?.offsetWidth,s.classList.remove("transition-disabled"))})}function h(s){if(s===b.value)return;const{"onUpdate:page":W,onUpdatePage:he,onChange:pe,simple:Ae}=e;W&&X(W,s),he&&X(he,s),pe&&X(pe,s),f.value=s,Ae&&(l.value=String(s))}function Y(s){if(s===R.value)return;const{"onUpdate:pageSize":W,onUpdatePageSize:he,onPageSizeChange:pe}=e;W&&X(W,s),he&&X(he,s),pe&&X(pe,s),M.value=s,z.value{b.value,R.value,i()});const oe=A(()=>{const s=v.value,{self:{buttonBorder:W,buttonBorderHover:he,buttonBorderPressed:pe,buttonIconColor:Ae,buttonIconColorHover:St,buttonIconColorPressed:zt,itemTextColor:_t,itemTextColorHover:Ft,itemTextColorPressed:Pt,itemTextColorActive:Mt,itemTextColorDisabled:Bt,itemColor:$t,itemColorHover:Rt,itemColorPressed:Tt,itemColorActive:It,itemColorActiveHover:Ot,itemColorDisabled:Et,itemBorder:At,itemBorderHover:Ut,itemBorderPressed:Lt,itemBorderActive:Nt,itemBorderDisabled:jt,itemBorderRadius:Dt,jumperTextColor:Ht,jumperTextColorDisabled:Vt,buttonColor:Wt,buttonColorHover:qt,buttonColorPressed:Xt,[ee("itemPadding",s)]:Yt,[ee("itemMargin",s)]:Kt,[ee("inputWidth",s)]:Jt,[ee("selectWidth",s)]:Qt,[ee("inputMargin",s)]:Zt,[ee("selectMargin",s)]:Gt,[ee("jumperFontSize",s)]:er,[ee("prefixMargin",s)]:tr,[ee("suffixMargin",s)]:rr,[ee("itemSize",s)]:ar,[ee("buttonIconSize",s)]:nr,[ee("itemFontSize",s)]:or,[`${ee("itemMargin",s)}Rtl`]:sr,[`${ee("inputMargin",s)}Rtl`]:ir},common:{cubicBezierEaseInOut:lr}}=C.value;return{"--n-prefix-margin":tr,"--n-suffix-margin":rr,"--n-item-font-size":or,"--n-select-width":Qt,"--n-select-margin":Gt,"--n-input-width":Jt,"--n-input-margin":Zt,"--n-input-margin-rtl":ir,"--n-item-size":ar,"--n-item-text-color":_t,"--n-item-text-color-disabled":Bt,"--n-item-text-color-hover":Ft,"--n-item-text-color-active":Mt,"--n-item-text-color-pressed":Pt,"--n-item-color":$t,"--n-item-color-hover":Rt,"--n-item-color-disabled":Et,"--n-item-color-active":It,"--n-item-color-active-hover":Ot,"--n-item-color-pressed":Tt,"--n-item-border":At,"--n-item-border-hover":Ut,"--n-item-border-disabled":jt,"--n-item-border-active":Nt,"--n-item-border-pressed":Lt,"--n-item-padding":Yt,"--n-item-border-radius":Dt,"--n-bezier":lr,"--n-jumper-font-size":er,"--n-jumper-text-color":Ht,"--n-jumper-text-color-disabled":Vt,"--n-item-margin":Kt,"--n-item-margin-rtl":sr,"--n-button-icon-size":nr,"--n-button-icon-color":Ae,"--n-button-icon-color-hover":St,"--n-button-icon-color-pressed":zt,"--n-button-color-hover":qt,"--n-button-color":Wt,"--n-button-color-pressed":Xt,"--n-button-border":W,"--n-button-border-hover":he,"--n-button-border-pressed":pe}}),fe=g?We("pagination",A(()=>{let s="";return s+=v.value[0],s}),oe,e):void 0;return{rtlEnabled:o,mergedClsPrefix:r,locale:F,selfRef:P,mergedPage:b,pageItems:A(()=>I.value.items),mergedItemCount:_,jumperValue:l,pageSizeOptions:x,mergedPageSize:R,inputSize:$,selectSize:j,mergedTheme:C,mergedPageCount:z,startIndex:le,endIndex:de,showFastForwardMenu:k,showFastBackwardMenu:N,fastForwardActive:p,fastBackwardActive:w,handleMenuSelect:T,handleFastForwardMouseenter:J,handleFastForwardMouseleave:V,handleFastBackwardMouseenter:Q,handleFastBackwardMouseleave:c,handleJumperInput:ye,handleBackwardClick:K,handleForwardClick:ae,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:G,cssVars:g?void 0:oe,themeClass:fe?.themeClass,onRender:fe?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:r,cssVars:g,mergedPage:m,mergedPageCount:v,pageItems:C,showSizePicker:F,showQuickJumper:P,mergedTheme:f,locale:M,inputSize:b,selectSize:R,mergedPageSize:z,pageSizeOptions:l,jumperValue:p,simple:w,prev:k,next:N,prefix:J,suffix:V,label:Q,goto:c,handleJumperInput:T,handleSizePickerChange:I,handleBackwardClick:x,handlePageItemClick:$,handleForwardClick:j,handleQuickJumperChange:le,onRender:de}=this;de?.();const _=J||e.prefix,o=V||e.suffix,i=k||e.prev,h=N||e.next,Y=Q||e.label;return n(),u("div",{ref:"selfRef",class:H([`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,r&&`${t}-pagination--disabled`,w&&`${t}-pagination--simple`]),style:ce(g)},[_?(n(),u("div",{key:0,class:H(`${t}-pagination-prefix`)},[L(()=>_({page:m,pageSize:z,pageCount:v,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],2)):L(()=>null),L(()=>this.displayOrder.map(ae=>{switch(ae){case"pages":return(()=>{const K=xe("9d36e2972681a71c");return n(),u(te,{key:"pages"},[a("div",{class:H([`${t}-pagination-item`,!i&&`${t}-pagination-item--button`,(m<=1||m>v||r)&&`${t}-pagination-item--disabled`]),onClick:x},[i?(n(),u(te,{key:0},[L(()=>i({page:m,pageSize:z,pageCount:v,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],64)):(n(),y(ke,{key:1,clsPrefix:t},{default:()=>this.rtlEnabled?(n(),y(lt,{key:2})):(n(),y(ot,{key:3}))},1032,["clsPrefix"]))],10,ra),w?(n(),u(te,{key:0},[a("div",{class:H(`${t}-pagination-quick-jumper`)},[(n(),y(je,{value:p,onUpdateValue:T,size:b,placeholder:"",disabled:r,theme:f.peers.Input,themeOverrides:f.peerOverrides.Input,onChange:le},null,8,["value","onUpdateValue","size","disabled","theme","themeOverrides","onChange"]))],2),K[0]||(K[0]=L(" /",-1)),K[1]||(K[1]=L(" ",-1)),L(()=>v)],64)):(n(),u(te,{key:1},[L(()=>C.map(Z=>{let ne,ue,me;const{type:G}=Z,we=G==="page"?`page-${Z.label}`:G;switch(G){case"page":const oe=Z.label;Y?ne=Y({type:"page",node:oe,active:Z.active}):ne=oe;break;case"fast-forward":const fe=this.fastForwardActive?(n(),y(ke,{key:6,clsPrefix:t},{default:()=>this.rtlEnabled?(n(),y(st,{key:7})):(n(),y(it,{key:8}))},1032,["clsPrefix"])):(n(),y(ke,{key:9,clsPrefix:t},{default:()=>(n(),y(dt))},1032,["clsPrefix"]));Y?ne=Y({type:"fast-forward",node:fe,active:this.fastForwardActive||this.showFastForwardMenu}):ne=fe,ue=this.handleFastForwardMouseenter,me=this.handleFastForwardMouseleave;break;case"fast-backward":const s=this.fastBackwardActive?(n(),y(ke,{key:10,clsPrefix:t},{default:()=>this.rtlEnabled?(n(),y(it,{key:11})):(n(),y(st,{key:12}))},1032,["clsPrefix"])):(n(),y(ke,{key:13,clsPrefix:t},{default:()=>(n(),y(dt))},1032,["clsPrefix"]));Y?ne=Y({type:"fast-backward",node:s,active:this.fastBackwardActive||this.showFastBackwardMenu}):ne=s,ue=this.handleFastBackwardMouseenter,me=this.handleFastBackwardMouseleave}const ye=(n(),u("div",{key:we,class:H([`${t}-pagination-item`,Z.active&&`${t}-pagination-item--active`,G!=="page"&&(G==="fast-backward"&&this.showFastBackwardMenu||G==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,r&&`${t}-pagination-item--disabled`,G==="page"&&`${t}-pagination-item--clickable`]),onClick:()=>{$(Z)},onMouseenter:ue,onMouseleave:me},[L(()=>ne)],42,ta));return G==="page"||!Z.options?ye:(n(),y(Jr,{to:this.to,key:we,disabled:r,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:f.peers.Popselect,themeOverrides:f.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:G==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:oe=>{oe?G==="fast-backward"?this.showFastBackwardMenu=oe:this.showFastForwardMenu=oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1)},options:Z.options,onUpdateValue:this.handleMenuSelect,scrollable:!0,scrollbarProps:this.scrollbarProps,showCheckmark:!1},{default:()=>ye},1032,["to","disabled","theme","themeOverrides","show","onUpdateShow","options","onUpdateValue","scrollbarProps"]))}))],64)),a("div",{class:H([`${t}-pagination-item`,!h&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:m<1||m>=v||r}]),onClick:j},[h?(n(),u(te,{key:0},[L(()=>h({page:m,pageSize:z,pageCount:v,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}))],64)):(n(),y(ke,{key:1,clsPrefix:t},{default:()=>this.rtlEnabled?(n(),y(ot,{key:4})):(n(),y(lt,{key:5}))},1032,["clsPrefix"]))],10,aa)],64)})();case"size-picker":return!w&&F?(n(),y(ht,ge({key:14,consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:R,options:l,value:z,disabled:r,scrollbarProps:this.scrollbarProps,theme:f.peers.Select,themeOverrides:f.peerOverrides.Select,onUpdateValue:I}),null,16,["to","size","options","value","disabled","scrollbarProps","theme","themeOverrides","onUpdateValue"])):null;case"quick-jumper":return!w&&P?(n(),u("div",{key:15,class:H(`${t}-pagination-quick-jumper`)},[c?(n(),u(te,{key:0},[L(()=>c())],64)):(n(),u(te,{key:1},[L(()=>gr(this.$slots.goto,()=>[M.goto]))],64)),(n(),y(je,{value:p,onUpdateValue:T,size:b,placeholder:"",disabled:r,theme:f.peers.Input,themeOverrides:f.peerOverrides.Input,onChange:le},null,8,["value","onUpdateValue","size","disabled","theme","themeOverrides","onChange"]))],2)):null;default:return null}})),o?(n(),u("div",{key:2,class:H(`${t}-pagination-suffix`)},[L(()=>o({page:m,pageSize:z,pageCount:v,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],2)):L(()=>null)],6)}});const sa=["onMouseenter","onMouseleave","onMousedown"],ia={key:1,role:"none"};var la=re({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=B(!!e.show),r=B(null),g=Ve(Xe);let m=0,v="",C=null;const F=B(!1),P=B(!1),f=A(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:M,mergedRtlRef:b}=Be(e),R=gt("Drawer",b,M),z=c,l=x=>{P.value=!0,m=f.value?x.clientY:x.clientX,v=document.body.style.cursor,document.body.style.cursor=f.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",Q),document.body.addEventListener("mouseleave",z),document.body.addEventListener("mouseup",c)},p=()=>{C!==null&&(window.clearTimeout(C),C=null),P.value?F.value=!0:C=window.setTimeout(()=>{F.value=!0},300)},w=()=>{C!==null&&(window.clearTimeout(C),C=null),F.value=!1},{doUpdateHeight:k,doUpdateWidth:N}=g,J=x=>{const{maxWidth:$}=e;if($&&x>$)return $;const{minWidth:j}=e;return j&&x{const{maxHeight:$}=e;if($&&x>$)return $;const{minHeight:j}=e;return j&&x{e.show&&(t.value=!0)}),Fe(()=>e.show,x=>{x||c()}),yt(()=>{c()});const T=A(()=>{const{show:x}=e,$=[[Je,x]];return e.showMask||$.push([Cr,e.onClickoutside,void 0,{capture:!0}]),$});function I(){t.value=!1,e.onAfterLeave?.()}return kr(A(()=>e.blockScroll&&t.value)),Pe(xr,r),Pe(Sr,null),Pe(zr,null),{bodyRef:r,rtlEnabled:R,mergedClsPrefix:g.mergedClsPrefixRef,isMounted:g.isMountedRef,mergedTheme:g.mergedThemeRef,displayed:t,transitionName:A(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:I,bodyDirectives:T,handleMousedownResizeTrigger:l,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:w,isDragging:P,isHoverOnResizeTrigger:F}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?He((n(),u("div",ia,[(n(),y(yr,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>(n(),y(bt,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>He(wr("div",ge(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?(n(),u("div",{key:2,class:H([`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`]),onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger},null,42,sa)):null,this.nativeScrollbar?(n(),u("div",{key:3,class:H([`${t}-drawer-content-wrapper`,this.contentClass]),style:ce(this.contentStyle),role:"none"},[L(()=>e.default?.())],6)):(n(),y(wt,ge({key:4},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),qe(e),1040,["contentStyle","contentClass","theme","themeOverrides"]))]),this.bodyDirectives)},1032,["name","appear","onAfterEnter","onAfterLeave"]))},1032,["disabled","active","autoFocus","onEsc"]))])),[[Je,this.displayDirective==="if"||this.displayed||this.show]]):null}});const{cubicBezierEaseIn:da,cubicBezierEaseOut:ca}=Oe;function ua({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-bottom"}={}){return[S(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${da}`}),S(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${ca}`}),S(`&.${r}-transition-enter-to`,{transform:"translateY(0)"}),S(`&.${r}-transition-enter-from`,{transform:"translateY(100%)"}),S(`&.${r}-transition-leave-from`,{transform:"translateY(0)"}),S(`&.${r}-transition-leave-to`,{transform:"translateY(100%)"})]}const{cubicBezierEaseIn:ma,cubicBezierEaseOut:fa}=Oe;function ha({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-left"}={}){return[S(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${ma}`}),S(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${fa}`}),S(`&.${r}-transition-enter-to`,{transform:"translateX(0)"}),S(`&.${r}-transition-enter-from`,{transform:"translateX(-100%)"}),S(`&.${r}-transition-leave-from`,{transform:"translateX(0)"}),S(`&.${r}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:pa,cubicBezierEaseOut:va}=Oe;function ga({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-right"}={}){return[S(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${pa}`}),S(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${va}`}),S(`&.${r}-transition-enter-to`,{transform:"translateX(0)"}),S(`&.${r}-transition-enter-from`,{transform:"translateX(100%)"}),S(`&.${r}-transition-leave-from`,{transform:"translateX(0)"}),S(`&.${r}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:ba,cubicBezierEaseOut:wa}=Oe;function ya({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-top"}={}){return[S(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${ba}`}),S(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${wa}`}),S(`&.${r}-transition-enter-to`,{transform:"translateY(0)"}),S(`&.${r}-transition-enter-from`,{transform:"translateY(-100%)"}),S(`&.${r}-transition-leave-from`,{transform:"translateY(0)"}),S(`&.${r}-transition-leave-to`,{transform:"translateY(-100%)"})]}var ka=S([U("drawer",` + word-break: break-word; + line-height: var(--n-line-height); + position: absolute; + pointer-events: all; + box-shadow: var(--n-box-shadow); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background-color: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + `,[ga(),ha(),ya(),ua(),q("unselectable",` + user-select: none; + -webkit-user-select: none; + `),q("native-scrollbar",[U("drawer-content-wrapper",` + overflow: auto; + height: 100%; + `)]),ve("resize-trigger",` + position: absolute; + background-color: #0000; + transition: background-color .3s var(--n-bezier); + `,[q("hover",` + background-color: var(--n-resize-trigger-color-hover); + `)]),U("drawer-content-wrapper",` + box-sizing: border-box; + `),U("drawer-content",` + height: 100%; + display: flex; + flex-direction: column; + `,[q("native-scrollbar",[U("drawer-body-content-wrapper",` + height: 100%; + overflow: auto; + `)]),U("drawer-body",` + flex: 1 0 0; + overflow: hidden; + `),U("drawer-body-content-wrapper",` + box-sizing: border-box; + padding: var(--n-body-padding); + `),U("drawer-header",` + font-weight: var(--n-title-font-weight); + line-height: 1; + font-size: var(--n-title-font-size); + color: var(--n-title-text-color); + padding: var(--n-header-padding); + transition: border .3s var(--n-bezier); + border-bottom: 1px solid var(--n-divider-color); + border-bottom: var(--n-header-border-bottom); + display: flex; + justify-content: space-between; + align-items: center; + `,[ve("main",` + flex: 1; + `),ve("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),U("drawer-footer",` + display: flex; + justify-content: flex-end; + border-top: var(--n-footer-border-top); + transition: border .3s var(--n-bezier); + padding: var(--n-footer-padding); + `)]),q("right-placement",` + top: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-bottom-left-radius: var(--n-border-radius); + `,[ve("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + left: 0; + transform: translateX(-1.5px); + cursor: ew-resize; + `)]),q("left-placement",` + top: 0; + bottom: 0; + left: 0; + border-top-right-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[ve("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + right: 0; + transform: translateX(1.5px); + cursor: ew-resize; + `)]),q("top-placement",` + top: 0; + left: 0; + right: 0; + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[ve("resize-trigger",` + width: 100%; + height: 3px; + bottom: 0; + left: 0; + transform: translateY(1.5px); + cursor: ns-resize; + `)]),q("bottom-placement",` + left: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + `,[ve("resize-trigger",` + width: 100%; + height: 3px; + top: 0; + left: 0; + transform: translateY(-1.5px); + cursor: ns-resize; + `)])]),S("body",[S(">",[U("drawer-container",` + position: fixed; + `)])]),U("drawer-container",` + position: relative; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + `,[S("> *",` + pointer-events: all; + `)]),U("drawer-mask",` + background-color: rgba(0, 0, 0, .3); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[q("invisible",` + background-color: rgba(0, 0, 0, 0) + `),_r({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]);const Ca=["onClick"],xa={...be.props,show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function};var Sa=re({name:"Drawer",inheritAttrs:!1,props:xa,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:g}=Be(e),m=Pr(),v=be("Drawer","-drawer",ka,Rr,e,t),C=B(e.defaultWidth),F=B(e.defaultHeight),P=Ie(Me(e,"width"),C),f=Ie(Me(e,"height"),F),M=A(()=>{const{placement:c}=e;return c==="top"||c==="bottom"?"":Ze(P.value)}),b=A(()=>{const{placement:c}=e;return c==="left"||c==="right"?"":Ze(f.value)}),R=c=>{const{onUpdateWidth:T,"onUpdate:width":I}=e;T&&X(T,c),I&&X(I,c),C.value=c},z=c=>{const{onUpdateHeight:T,"onUpdate:width":I}=e;T&&X(T,c),I&&X(I,c),F.value=c},l=A(()=>[{width:M.value,height:b.value},e.drawerStyle||""]);function p(c){const{onMaskClick:T,maskClosable:I}=e;I&&J(!1),T&&T(c)}function w(c){p(c)}const k=Mr();function N(c){e.onEsc?.(),e.show&&e.closeOnEsc&&Br(c)&&(k.value||J(!1))}function J(c){const{onHide:T,onUpdateShow:I,"onUpdate:show":x}=e;I&&X(I,c),x&&X(x,c),T&&!c&&X(T,c)}Pe(Xe,{isMountedRef:m,mergedThemeRef:v,mergedClsPrefixRef:t,doUpdateShow:J,doUpdateHeight:z,doUpdateWidth:R});const V=A(()=>{const{common:{cubicBezierEaseInOut:c,cubicBezierEaseIn:T,cubicBezierEaseOut:I},self:{color:x,textColor:$,boxShadow:j,lineHeight:le,headerPadding:de,footerPadding:_,borderRadius:o,bodyPadding:i,titleFontSize:h,titleTextColor:Y,titleFontWeight:ae,headerBorderBottom:K,footerBorderTop:Z,closeIconColor:ne,closeIconColorHover:ue,closeIconColorPressed:me,closeColorHover:G,closeColorPressed:we,closeIconSize:ye,closeSize:oe,closeBorderRadius:fe,resizableTriggerColorHover:s}}=v.value;return{"--n-line-height":le,"--n-color":x,"--n-border-radius":o,"--n-text-color":$,"--n-box-shadow":j,"--n-bezier":c,"--n-bezier-out":I,"--n-bezier-in":T,"--n-header-padding":de,"--n-body-padding":i,"--n-footer-padding":_,"--n-title-text-color":Y,"--n-title-font-size":h,"--n-title-font-weight":ae,"--n-header-border-bottom":K,"--n-footer-border-top":Z,"--n-close-icon-color":ne,"--n-close-icon-color-hover":ue,"--n-close-icon-color-pressed":me,"--n-close-size":oe,"--n-close-color-hover":G,"--n-close-color-pressed":we,"--n-close-icon-size":ye,"--n-close-border-radius":fe,"--n-resize-trigger-color-hover":s}}),Q=g?We("drawer",void 0,V,e):void 0;return{mergedClsPrefix:t,namespace:r,mergedBodyStyle:l,handleOutsideClick:w,handleMaskClick:p,handleEsc:N,mergedTheme:v,cssVars:g?void 0:V,themeClass:Q?.themeClass,onRender:Q?.onRender,isMounted:m}},render(){const{mergedClsPrefix:e}=this;return n(),y(Fr,{to:this.to,show:this.show},{default:()=>(this.onRender?.(),He((n(),u("div",{class:H([`${e}-drawer-container`,this.namespace,this.themeClass]),style:ce(this.cssVars),role:"none"},[this.showMask?(n(),y(bt,{key:0,name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?(n(),u("div",{key:1,"aria-hidden":!0,class:H([`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`]),onClick:this.handleMaskClick},null,10,Ca)):null},1032,["appear"])):L(()=>null),(n(),y(la,ge(this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),qe(this.$slots),1040,["class","style","blockScroll","contentStyle","contentClass","placement","scrollbarProps","show","displayDirective","nativeScrollbar","onAfterEnter","onAfterLeave","trapFocus","autoFocus","resizable","maxHeight","minHeight","maxWidth","minWidth","showMask","onEsc","onClickoutside"]))],6)),[[$r,{zIndex:this.zIndex,enabled:this.show}]]))},1032,["to","show"])}});const za={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean};var _a=re({name:"DrawerContent",props:za,slots:Object,setup(){const e=Ve(Xe,null);e||Ir("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function r(){t(!1)}return{handleCloseClick:r,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:r,mergedTheme:g,bodyClass:m,bodyStyle:v,bodyContentClass:C,bodyContentStyle:F,headerClass:P,headerStyle:f,footerClass:M,footerStyle:b,scrollbarProps:R,closable:z,$slots:l}=this;return n(),u("div",{role:"none",class:H([`${t}-drawer-content`,r&&`${t}-drawer-content--native-scrollbar`])},[l.header||e||z?(n(),u("div",{key:0,class:H([`${t}-drawer-header`,P]),style:ce(f),role:"none"},[a("div",{class:H(`${t}-drawer-header__main`),role:"heading","aria-level":"1"},[l.header!==void 0?(n(),u(te,{key:0},[L(()=>l.header())],64)):(n(),u(te,{key:1},[L(()=>e)],64))],2),L(()=>z&&(n(),y(Tr,{onClick:this.handleCloseClick,clsPrefix:t,class:H(`${t}-drawer-header__close`),absolute:!0},null,8,["onClick","clsPrefix","class"])))],6)):L(()=>null),r?(n(),u("div",{key:2,class:H([`${t}-drawer-body`,m]),style:ce(v),role:"none"},[a("div",{class:H([`${t}-drawer-body-content-wrapper`,C]),style:ce(F),role:"none"},[L(()=>l.default?.())],6)],6)):(n(),y(wt,ge({key:3,themeOverrides:g.peerOverrides.Scrollbar,theme:g.peers.Scrollbar},R,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,C],contentStyle:F}),qe(l),1040,["themeOverrides","theme","class","contentClass","contentStyle"])),l.footer?(n(),u("div",{key:4,class:H([`${t}-drawer-footer`,M]),style:ce(b),role:"none"},[L(()=>l.footer())],6)):L(()=>null)],2)}});const Fa={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Pa=re({name:"FolderOpenOutline",render:function(t,r){return n(),u("svg",Fa,r[0]||(r[0]=[a("path",{d:"M64 192v-72a40 40 0 0 1 40-40h75.89a40 40 0 0 1 22.19 6.72l27.84 18.56a40 40 0 0 0 22.19 6.72H408a40 40 0 0 1 40 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),a("path",{d:"M479.9 226.55L463.68 392a40 40 0 0 1-39.93 40H88.25a40 40 0 0 1-39.93-40L32.1 226.55A32 32 0 0 1 64 192h384.1a32 32 0 0 1 31.8 34.55z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ma={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ba=re({name:"TimeOutline",render:function(t,r){return n(),u("svg",Ma,r[0]||(r[0]=[a("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192s192-86 192-192S362 64 256 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 128v144h96"},null,-1)]))}});function $a(e={}){const t=new URLSearchParams;e.page&&t.set("page",String(e.page)),e.page_size&&t.set("page_size",String(e.page_size)),e.streamer_id&&t.set("streamer_id",String(e.streamer_id)),e.q?.trim()&&t.set("q",e.q.trim());const r=t.toString();return Ee(`/v1/sessions${r?`?${r}`:""}`)}const Ra=e=>Ee(`/v1/sessions/${e}`),Ta=e=>kt("/v1/files/reveal",{kind:"recording",file_name:e}),xt=e=>`/static/${encodeURIComponent(e)}`;async function Ia(e){const t=xt(e),r=new URLSearchParams({method:"GET",path:t}),m=(await kt(`/v1/desktop-ticket?${r.toString()}`))?.ticket;if(!m)throw new Error("换票失败:服务未返回票据");return`${t}?desktop_ticket=${encodeURIComponent(m)}`}function Oa(e){return Ee(`/v1/sessions/${e}/danmaku-density`)}const Ea={class:"page"},Aa={class:"page-head"},Ua={class:"toolbar"},La={key:0,class:"stat-grid"},Na={key:1,class:"compact-summary"},ja={class:"list-bar"},Da={key:2,class:"loading"},Ha={key:3,class:"error-panel"},Va={class:"error-msg"},Wa={class:"table panel"},qa=["onClick"],Xa={class:"cell-title"},Ya={class:"title-text"},Ka={class:"title-sub mono"},Ja={class:"cell-muted"},Qa={class:"cell-muted mono"},Za={class:"mono"},Ga={class:"mono"},en={class:"mono"},tn={class:"pager"},rn={key:0,class:"loading"},an={key:1,class:"detail"},nn={class:"detail-title"},on={class:"detail-meta"},sn={class:"mono"},ln={class:"detail-label"},dn={key:0,class:"segments"},cn={class:"seg-main"},un={class:"seg-name mono"},mn={class:"seg-sub"},fn={class:"mono"},hn={class:"seg-actions"},pn={key:1,class:"no-seg"},vn={key:2,class:"agent-row"},ft=20,gn=re({__name:"RecordingsView",setup(e){const t=Lr(),r=Vr();async function g(_,o){if(Er()){o.preventDefault();try{const i=await Ia(_.file_name),h=document.createElement("a");h.href=i,h.download=_.file_name,h.rel="noopener",document.body.appendChild(h),h.click(),h.remove()}catch(i){const h=i instanceof Error?i.message:"获取下载票据失败";t.error(h)}}}const m=B(!1),v=B(!1),C=B(!1),F=A(()=>v.value?"100%":600),P=B([]),f=B(0),M=B(1),b=B(!0),R=B(""),z=B(""),l=B(null),p=B([]),w=B(!1),k=B(null),N=B(!1),J=A(()=>[{label:"全部主播",value:0},...p.value.map(_=>({label:_.remark||_.url,value:_.id}))]),V=A(()=>{const _=P.value.reduce((h,Y)=>h+(Y.duration_ms||0),0),o=P.value.reduce((h,Y)=>h+(Y.bytes||0),0),i=P.value.filter(h=>h.recording).length;return{duration:_,bytes:o,recording:i}});let Q=0;async function c(){const _=++Q;b.value=!0,R.value="";try{const o=await $a({page:M.value,page_size:ft,streamer_id:l.value||void 0,q:z.value||void 0});if(_!==Q)return;P.value=o.items,f.value=o.total}catch(o){if(_!==Q)return;R.value=o instanceof Error?o.message:"加载失败"}finally{_===Q&&(b.value=!1)}}let T;Fe(z,()=>{T&&window.clearTimeout(T),T=window.setTimeout(()=>{M.value!==1?M.value=1:c()},380)});function I(){v.value=window.innerWidth<640}yt(()=>{T&&window.clearTimeout(T),window.removeEventListener("resize",I)}),Fe(l,()=>{M.value!==1?M.value=1:c()}),Fe(M,()=>c());let x=0;async function $(_){const o=++x;w.value=!0,N.value=!0,k.value=null;try{const i=await Ra(_.id);if(o!==x)return;k.value=i}catch(i){if(o!==x)return;t.error(i instanceof Error?i.message:"读取场次详情失败")}finally{o===x&&(N.value=!1)}}async function j(){if(!r||!k.value)return;const _=window.miniapp?.host?.composer;if(!_?.append){t.error("当前宿主不支持输入框协同");return}C.value=!0;try{const o=k.value,h=(await Oa(o.id).catch(()=>null))?.density??null,Y=[...h?.peaks??[]].sort((K,Z)=>Z.count-K.count).slice(0,5),ae=["请根据以下直播场次生成切片方案(仅处理本人或已授权内容):","标题:"+(o.title||"未命名直播"),"时长:"+ie(o.duration_ms),"弹幕总数:"+String(h?.total??0)];if(Y.length){ae.push("弹幕密度 Top-5 高能区间:");for(const K of Y)ae.push("- "+ie(K.from_ms)+"–"+ie(K.to_ms)+":"+K.count+" 条(基线 "+K.ratio.toFixed(1)+" 倍)")}else ae.push("弹幕密度:暂无可用数据");ae.push("请先复核弹幕密度,再创建切片草稿。"),await _.append(ae.join(` +`)),t.success("已送入输入框,确认后由 Agent 生成切片方案")}catch(o){t.error("送入输入框失败:"+(o instanceof Error?o.message:"未知错误"))}finally{C.value=!1}}async function le(_){try{await Ta(_.file_name),t.success("已在文件管理器中定位")}catch(o){t.error(o instanceof Error?o.message:"定位失败")}}function de(_){switch(_){case"recording":return{label:"录制中",type:"error"};case"finished":return{label:"已完成",type:"success"};case"missing":return{label:"文件缺失",type:"warning"};case"deleted":return{label:"已删除",type:"default"};case"pending_delete":return{label:"待清理",type:"warning"};default:return{label:_,type:"default"}}}return Or(async()=>{if(I(),window.addEventListener("resize",I),r)try{const _=await Ee("/_miniapp/runtime-status");m.value=_.mode==="remote"}catch{m.value=!1}p.value=await Hr().catch(()=>[]),await c()}),(_,o)=>(n(),u("div",Ea,[a("div",Aa,[o[4]||(o[4]=a("div",null,[a("h1",{class:"page-title"},"录像库"),a("p",{class:"page-sub"},"按场次归档的录制文件,可直接下载或在文件夹中定位")],-1)),a("div",Ua,[O(d(Se),{quaternary:"",circle:"",loading:b.value,"aria-label":"刷新",onClick:c},{icon:D(()=>[O(d(ze),null,{default:D(()=>[O(d(Wr))]),_:1})]),_:1},8,["loading"])])]),v.value?Ce("",!0):(n(),u("div",La,[O($e,{label:"场次总数",value:f.value,hint:"所有已归档的直播场次",icon:d(tt),tone:"accent"},null,8,["value","icon"]),O($e,{label:"本页录制中",value:V.value.recording,hint:"仍在写入的场次",tone:"live"},null,8,["value"]),O($e,{label:"本页时长",value:d(ie)(V.value.duration),hint:"当前页 20 场累计",icon:d(Ba)},null,8,["value","icon"]),O($e,{label:"本页大小",value:d(_e)(V.value.bytes),hint:"当前页 20 场累计",icon:d(rt)},null,8,["value","icon"])])),v.value?(n(),u("div",Na,[a("span",null,[o[5]||(o[5]=se("场次 ",-1)),a("b",null,E(f.value),1)]),a("span",null,[o[6]||(o[6]=se("录制中 ",-1)),a("b",null,E(V.value.recording),1)]),a("span",null,[o[7]||(o[7]=se("时长 ",-1)),a("b",null,E(d(ie)(V.value.duration)),1)]),a("span",null,[o[8]||(o[8]=se("大小 ",-1)),a("b",null,E(d(_e)(V.value.bytes)),1)])])):Ce("",!0),a("div",ja,[O(d(ht),{value:l.value,"onUpdate:value":o[0]||(o[0]=i=>l.value=i),class:"filter",options:J.value,placeholder:"全部主播"},null,8,["value","options"]),O(d(je),{value:z.value,"onUpdate:value":o[1]||(o[1]=i=>z.value=i),class:"search",placeholder:"搜索场次标题或主播",clearable:""},{prefix:D(()=>[O(d(ze),{size:16},{default:D(()=>[O(d(qr))]),_:1})]),_:1},8,["value"])]),b.value?(n(),u("div",Da,[O(d(Ge),{size:"large"})])):R.value?(n(),u("div",Ha,[o[10]||(o[10]=a("div",{class:"error-title"},"录像列表加载失败",-1)),a("div",Va,E(R.value),1),O(d(Se),{size:"small",onClick:c},{default:D(()=>[...o[9]||(o[9]=[se("重试",-1)])]),_:1})])):P.value.length===0?(n(),y(jr,{key:4,title:"还没有录像",description:"当监控中的主播开播并完成录制后,这里会按场次出现录像记录。",compact:""})):(n(),u(te,{key:5},[a("div",Wa,[o[13]||(o[13]=a("div",{class:"thead row"},[a("span",null,"场次"),a("span",null,"主播"),a("span",null,"开始时间"),a("span",null,"时长"),a("span",null,"大小"),a("span",null,"分段"),a("span",null,"状态")],-1)),(n(!0),u(te,null,Ne(P.value,i=>(n(),u("button",{key:i.id,class:"row body-row",onClick:h=>$(i)},[a("span",Xa,[a("span",Ya,E(i.title||"未命名直播"),1),a("span",Ka,"#"+E(i.id),1)]),a("span",Ja,E(i.streamer_name||"—"),1),a("span",Qa,E(d(et)(i.started_at)),1),a("span",Za,E(d(ie)(i.duration_ms)),1),a("span",Ga,E(d(_e)(i.bytes)),1),a("span",en,E(i.segment_count),1),a("span",null,[i.recording?(n(),y(d(Le),{key:0,size:"small",type:"error",bordered:!1,round:""},{default:D(()=>[...o[11]||(o[11]=[a("span",{class:"rec-tag"},[a("span",{class:"live-dot"}),se("录制中")],-1)])]),_:1})):(n(),y(d(Le),{key:1,size:"small",bordered:!1,round:""},{default:D(()=>[...o[12]||(o[12]=[se("已结束",-1)])]),_:1}))])],8,qa))),128))]),a("div",tn,[O(d(oa),{page:M.value,"onUpdate:page":o[2]||(o[2]=i=>M.value=i),"page-size":ft,"item-count":f.value,"page-slot":7},null,8,["page","item-count"])])],64)),O(d(Sa),{show:w.value,"onUpdate:show":o[3]||(o[3]=i=>w.value=i),width:F.value,placement:"right"},{default:D(()=>[O(d(_a),{closable:""},{header:D(()=>[...o[14]||(o[14]=[a("div",{class:"drawer-title"},"场次详情",-1)])]),default:D(()=>[N.value?(n(),u("div",rn,[O(d(Ge))])):k.value?(n(),u("div",an,[a("h3",nn,E(k.value.title||"未命名直播"),1),a("div",on,[a("span",null,E(k.value.streamer_name||"未知主播"),1),a("span",sn,E(d(et)(k.value.started_at)),1),a("span",null,E(d(ie)(k.value.duration_ms)),1),a("span",null,E(d(_e)(k.value.bytes)),1)]),a("div",ln,"分段文件("+E(k.value.segments.length)+")",1),k.value.segments.length?(n(),u("div",dn,[(n(!0),u(te,null,Ne(k.value.segments,i=>(n(),u("div",{key:i.id,class:"segment"},[a("div",cn,[a("div",un,E(i.file_name),1),a("div",mn,[O(d(Le),{size:"tiny",type:de(i.state).type,bordered:!1},{default:D(()=>[se(E(de(i.state).label),1)]),_:2},1032,["type"]),a("span",null,E(d(ie)((i.end_ms??i.start_ms)-i.start_ms)),1),a("span",null,E(d(_e)(i.bytes)),1),a("span",fn,E(i.container),1)])]),a("div",hn,[m.value?Ce("",!0):(n(),y(d(Se),{key:0,size:"tiny",secondary:"",onClick:h=>le(i)},{icon:D(()=>[O(d(ze),null,{default:D(()=>[O(d(Pa))]),_:1})]),default:D(()=>[o[15]||(o[15]=se(" 定位 ",-1))]),_:1},8,["onClick"])),O(d(Se),{size:"tiny",secondary:"",tag:"a",href:d(xt)(i.file_name),target:d(r)?void 0:"_blank",download:d(r)?i.file_name:void 0,rel:"noopener",onClick:h=>g(i,h)},{icon:D(()=>[O(d(ze),null,{default:D(()=>[O(d(rt))]),_:1})]),default:D(()=>[o[16]||(o[16]=se(" 下载 ",-1))]),_:1},8,["href","target","download","onClick"])])]))),128))])):(n(),u("div",pn,"这一场还没有可读的分段文件。")),d(r)?(n(),u("div",vn,[O(d(Se),{size:"small",secondary:"",type:"primary",loading:C.value,onClick:j},{icon:D(()=>[O(d(ze),null,{default:D(()=>[O(d(tt))]),_:1})]),default:D(()=>[o[17]||(o[17]=se(" 交给 Agent 生成切片方案 ",-1))]),_:1},8,["loading"])])):Ce("",!0),k.value.gaps.length?(n(),u(te,{key:3},[o[18]||(o[18]=a("div",{class:"detail-label"},"断流缺口",-1)),(n(!0),u(te,null,Ne(k.value.gaps,(i,h)=>(n(),u("div",{key:h,class:"gap"},E(d(ie)(i.from_ms))+" → "+E(d(ie)(i.to_ms))+" ("+E(d(ie)(i.to_ms-i.from_ms))+") ",1))),128))],64)):Ce("",!0)])):Ce("",!0)]),_:1})]),_:1},8,["show","width"])]))}}),Tn=Dr(gn,[["__scopeId","data-v-09b435c0"]]);export{Tn as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-DsgjGZK9.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-DsgjGZK9.js new file mode 100644 index 00000000..ad6098fb --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-DsgjGZK9.js @@ -0,0 +1 @@ +import{d as n,c as t,a as o,o as r}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-D751WEBC.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-D751WEBC.css new file mode 100644 index 00000000..91e1bc57 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-D751WEBC.css @@ -0,0 +1 @@ +.notice[data-v-a2d58258]{display:flex;align-items:center;gap:8px;margin-bottom:16px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#ffb0880d;color:var(--muted);font-size:12px;line-height:1.6}.relay-list[data-v-a2d58258]{display:flex;flex-direction:column;gap:10px}.relay-card[data-v-a2d58258]{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#1a1d27b8,#12141cdb)}.relay-card.active[data-v-a2d58258]{border-color:#34d39952;box-shadow:0 0 0 1px #34d3990d}.relay-main[data-v-a2d58258]{min-width:0;flex:1 1 340px;display:flex;flex-direction:column;gap:6px}.relay-title-row[data-v-a2d58258]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.relay-title[data-v-a2d58258]{font-size:14px;font-weight:650}.relay-since[data-v-a2d58258]{font-size:11px;color:var(--muted)}.relay-meta[data-v-a2d58258]{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:var(--muted)}.relay-created[data-v-a2d58258]{font-size:11.5px;color:var(--muted-2)}.target-list[data-v-a2d58258]{margin:2px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}.target-row[data-v-a2d58258]{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:12px}.target-host[data-v-a2d58258]{max-width:460px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.target-message[data-v-a2d58258]{color:#fcd34d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.target-stats[data-v-a2d58258]{flex:1 1 100%;padding-left:16px;font-size:11px;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.target-empty[data-v-a2d58258]{color:var(--muted-2)}.relay-message[data-v-a2d58258]{font-size:12px;color:#fcd34d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.relay-stats[data-v-a2d58258]{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;font-size:11.5px;color:var(--muted)}.stats-label[data-v-a2d58258]{flex:none;padding:1px 6px;border:1px solid var(--line);border-radius:5px;font-size:10px;color:var(--muted-2)}.relay-actions[data-v-a2d58258]{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex-shrink:0}.empty[data-v-a2d58258]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:60px 20px;border:1px dashed var(--line);border-radius:16px;text-align:center}.empty-title[data-v-a2d58258]{font-size:15px;font-weight:650}.empty-sub[data-v-a2d58258]{max-width:460px;font-size:12.5px;color:var(--muted);line-height:1.7}.modal-title[data-v-a2d58258]{font-size:16px;font-weight:700}.modal-sub[data-v-a2d58258]{margin-top:4px;font-size:12px;color:var(--muted)}.log-head[data-v-a2d58258]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.log-view[data-v-a2d58258]{margin:0;max-height:60vh;overflow:auto;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#08090db3;font-family:var(--mono);font-size:12px;line-height:1.6;color:var(--text);white-space:pre-wrap;word-break:break-all}.modal-foot[data-v-a2d58258]{display:flex;justify-content:flex-end;gap:10px}.target-editor[data-v-a2d58258]{display:flex;flex-direction:column;gap:8px;width:100%}.target-edit-row[data-v-a2d58258]{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.target-input[data-v-a2d58258]{flex:1 1 auto;min-width:0}.target-limit[data-v-a2d58258]{color:var(--warn)}.transcode-grid[data-v-a2d58258]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}.transcode-cell[data-v-a2d58258]{display:flex;flex-direction:column;gap:4px}.transcode-label[data-v-a2d58258]{font-size:11.5px;color:var(--muted)}.hint[data-v-a2d58258]{font-size:11.5px;color:var(--muted);line-height:1.6}@media(max-width:720px){.relay-card[data-v-a2d58258]{flex-direction:column;align-items:stretch}.relay-actions[data-v-a2d58258]{justify-content:flex-start}.target-host[data-v-a2d58258]{max-width:100%}.transcode-grid[data-v-a2d58258]{grid-template-columns:1fr}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-FDkwT__U.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-FDkwT__U.js new file mode 100644 index 00000000..00cb01f7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-FDkwT__U.js @@ -0,0 +1 @@ +import{T as R,S as M}from"./Select-DlP0Rw4u.js";import{I as re}from"./Input-DOY9MBk2.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as Ve,b as De,z as He,e as o,w as n,u as a,B as _,F as H,A as G,aq as de,r as g,f as p,C as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-Ch4EWX-G.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as Ye,A as ue,F as Ze,a as w}from"./AddOutline-C9wx-dLG.js";import{u as Ke}from"./use-message-sIwnQEJL.js";import{D as Qe,I as et}from"./DocumentTextOutline-BdYVNaS7.js";import{S as W}from"./Switch-4rsLpKoT.js";import{d as tt}from"./streamers-Bl5LBoP5.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-DsgjGZK9.js";import{G as nt}from"./GitCompareOutline-DCA6_Iop.js";import"./use-compitable-CjxNERC_.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>Ve(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Vt={class:"target-editor"},Dt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ke(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const V=g(new Set);async function ze(t){if(!V.value.has(t.id)){V.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{V.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let D;function se(){document.visibilityState==="visible"&&h(!0)}return De(async()=>{await Promise.all([h(),Ce()]),!N&&(D=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,D&&window.clearInterval(D),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ze),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Vt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Dt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline--3GBf81B.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline--3GBf81B.js new file mode 100644 index 00000000..e5778217 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline--3GBf81B.js @@ -0,0 +1 @@ +import{d as o,o as r,c as n,a as t}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-DlP0Rw4u.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-DlP0Rw4u.js new file mode 100644 index 00000000..ab0cd84e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-DlP0Rw4u.js @@ -0,0 +1,410 @@ +import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-sIwnQEJL.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b2 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,z as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,be as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-Ch4EWX-G.js";import{u as Xt,S as ro}from"./Input-DOY9MBk2.js";import{u as At,a as lo}from"./use-compitable-CjxNERC_.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--n-font-size); +`,[D("icon",` + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + line-height: var(--n-icon-size); + color: var(--n-icon-color); + transition: + color .3s var(--n-bezier); + `,[fe("+",[D("description",` + margin-top: 8px; + `)])]),D("description",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),D("extra",` + text-align: center; + transition: color .3s var(--n-bezier); + margin-top: 12px; + color: var(--n-extra-text-color); + `)]);const so={...Ce.props,description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function};var co=ve({name:"Empty",props:so,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:o}=Ge(e),r=Ce("Empty","-empty",ao,En,e,t),{localeRef:a}=Xt("Empty"),i=E(()=>e.description??o?.value?.Empty?.description),l=E(()=>o?.value?.Empty?.renderIcon||(()=>(u(),Z(io)))),f=E(()=>{const{size:v}=e,{common:{cubicBezierEaseInOut:h},self:{[re("iconSize",v)]:F,[re("fontSize",v)]:z,textColor:C,iconColor:w,extraTextColor:I}}=r.value;return{"--n-icon-size":F,"--n-font-size":z,"--n-bezier":h,"--n-text-color":C,"--n-icon-color":w,"--n-extra-text-color":I}}),c=n?qe("empty",E(()=>{let v="";const{size:h}=e;return v+=h[0],v}),f,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:E(()=>i.value||a.value.description),cssVars:n?void 0:f,themeClass:c?.themeClass,onRender:c?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n?.(),u(),k("div",{class:M([`${t}-empty`,this.themeClass]),style:Ne(this.cssVars)},[this.showIcon?(u(),k("div",{key:0,class:M(`${t}-empty__icon`)},[e.icon?(u(),k(ae,{key:0},[T(()=>e.icon())],64)):(u(),Z(Ut,{key:1,clsPrefix:t},{default:this.mergedRenderIcon},1032,["clsPrefix"]))],2)):T(()=>null),this.showDescription?(u(),k("div",{key:2,class:M(`${t}-empty__description`)},[e.default?(u(),k(ae,{key:0},[T(()=>e.default())],64)):(u(),k(ae,{key:1},[T(()=>this.localizedDescription)],64))],2)):T(()=>null),e.extra?(u(),k("div",{key:4,class:M(`${t}-empty__extra`)},[T(()=>e.extra())],2)):T(()=>null)],6)}});function Et(e){return e&-e}class Qt{constructor(t,n){this.l=t,this.min=n;const o=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let a=t*o;for(;t>0;)a+=n[t],t-=Et(t);return a}getBound(t){let n=0,o=this.l;for(;o>n;){const r=Math.floor((n+o)/2),a=this.sum(r);if(a>t){o=r;continue}else if(a"u"?!1:(ot===void 0&&("matchMedia"in window?ot=window.matchMedia("(pointer:coarse)").matches:ot=!1),ot)}let pt;function $t(){return typeof document>"u"?1:(pt===void 0&&(pt="chrome"in window?window.devicePixelRatio:1),pt)}const Jt="VVirtualListXScroll";function fo({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){const o=A(0),r=A(0),a=E(()=>{const c=e.value;if(c.length===0)return null;const v=new Qt(c.length,0);return c.forEach((h,F)=>{v.add(F,h.width)}),v}),i=Be(()=>{const c=a.value;return c!==null?Math.max(c.getBound(r.value)-1,0):0}),l=c=>{const v=a.value;return v!==null?v.sum(c):0},f=Be(()=>{const c=a.value;return c!==null?Math.min(c.getBound(r.value+o.value)+1,e.value.length-1):0});return lt(Jt,{startIndexRef:i,endIndexRef:f,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:l}),{listWidthRef:o,scrollLeftRef:r}}const Lt=ve({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:o,renderColRef:r,renderItemWithColsRef:a}=Ft(Jt);return{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:a,getLeft:o}},render(){const{startIndex:e,endIndex:t,columns:n,renderCol:o,renderItemWithCols:r,getLeft:a,item:i}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:i,getLeft:a});if(o!=null){const l=[];for(let f=e;f<=t;++f){const c=n[f];l.push(o({column:c,left:a(f),item:i}))}return l}return null}}),ho=rt(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[rt("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[rt("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),vo=ve({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Gt();ho.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:jt,ssr:t}),Ye(()=>{const{defaultScrollIndex:p,defaultScrollKey:x}=e;p!=null?I({index:p}):x!=null&&I({key:x})});let n=!1,o=!1;$n(()=>{if(n=!1,!o){o=!0;return}I({top:z.value,left:i.value})}),Ln(()=>{n=!0,o||(o=!0)});const r=Be(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let p=0;return e.columns.forEach(x=>{p+=x.width}),p}),a=E(()=>{const p=new Map,{keyField:x}=e;return e.items.forEach((K,L)=>{p.set(K[x],L)}),p}),{scrollLeftRef:i,listWidthRef:l}=fo({columnsRef:ie(e,"columns"),renderColRef:ie(e,"renderCol"),renderItemWithColsRef:ie(e,"renderItemWithCols")}),f=A(null),c=A(void 0),v=new Map,h=E(()=>{const{items:p,itemSize:x,keyField:K}=e,L=new Qt(p.length,x);return p.forEach((ee,Q)=>{const U=ee[K],ne=v.get(U);ne!==void 0&&L.add(Q,ne)}),L}),F=A(0),z=A(0),C=Be(()=>Math.max(h.value.getBound(z.value-St(e.paddingTop))-1,0)),w=E(()=>{const{value:p}=c;if(p===void 0)return[];const{items:x,itemSize:K}=e,L=C.value,ee=Math.min(L+Math.ceil(p/K+1),x.length-1),Q=[];for(let U=L;U<=ee;++U)Q.push(x[U]);return Q}),I=(p,x)=>{if(typeof p=="number"){b(p,x,"auto");return}const{left:K,top:L,index:ee,key:Q,position:U,behavior:ne,debounce:Y=!0}=p;if(K!==void 0||L!==void 0)b(K,L,ne);else if(ee!==void 0)P(ee,ne,Y);else if(Q!==void 0){const he=a.value.get(Q);he!==void 0&&P(he,ne,Y)}else U==="bottom"?b(0,Number.MAX_SAFE_INTEGER,ne):U==="top"&&b(0,0,ne)};let S,R=null;function P(p,x,K){const L=f.value;if(L==null)return;const{value:ee}=h,Q=ee.sum(p)+St(e.paddingTop);if(!K)L.scrollTo({left:0,top:Q,behavior:x});else{S=p,R!==null&&window.clearTimeout(R),R=window.setTimeout(()=>{S=void 0,R=null},16);const{scrollTop:U,offsetHeight:ne}=L;if(Q>U){const Y=ee.get(p);Q+Y<=U+ne||L.scrollTo({left:0,top:Q+Y-ne,behavior:x})}else L.scrollTo({left:0,top:Q,behavior:x})}}function b(p,x,K){const L=f.value;L?.scrollTo({left:p,top:x,behavior:K})}function m(p,x){var K,L,ee;if(n||e.ignoreItemResize||X(x.target))return;const{value:Q}=h,U=a.value.get(p),ne=Q.get(U),Y=(ee=(L=(K=x.borderBoxSize)===null||K===void 0?void 0:K[0])===null||L===void 0?void 0:L.blockSize)!==null&&ee!==void 0?ee:x.contentRect.height;if(Y===ne)return;Y-e.itemSize===0?v.delete(p):v.set(p,Y-e.itemSize);const de=Y-ne;if(de===0)return;Q.add(U,de);const g=f.value;if(g!=null){if(S===void 0){const $=Q.sum(U);g.scrollTop>$&&g.scrollBy(0,de)}else if(Ug.scrollTop+g.offsetHeight&&g.scrollBy(0,de)}oe()}F.value++}const O=!uo();let W=!1;function j(p){var x;(x=e.onScroll)===null||x===void 0||x.call(e,p),(!O||!W)&&oe()}function te(p){var x;if((x=e.onWheel)===null||x===void 0||x.call(e,p),O){const K=f.value;if(K!=null){if(p.deltaX===0&&(K.scrollTop===0&&p.deltaY<=0||K.scrollTop+K.offsetHeight>=K.scrollHeight&&p.deltaY>=0))return;p.preventDefault(),K.scrollTop+=p.deltaY/$t(),K.scrollLeft+=p.deltaX/$t(),oe(),W=!0,On(()=>{W=!1})}}}function H(p){if(n||X(p.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(p.contentRect.height===c.value)return}else if(p.contentRect.height===c.value&&p.contentRect.width===l.value)return;c.value=p.contentRect.height,l.value=p.contentRect.width;const{onResize:x}=e;x!==void 0&&x(p)}function oe(){const{value:p}=f;p!=null&&(z.value=p.scrollTop,i.value=p.scrollLeft)}function X(p){let x=p;for(;x!==null;){if(x.style.display==="none")return!0;x=x.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:a,itemsStyle:E(()=>{const{itemResizable:p}=e,x=je(h.value.sum());return F.value,[e.itemsStyle,{boxSizing:"content-box",width:je(r.value),height:p?"":x,minHeight:p?x:"",paddingTop:je(e.paddingTop),paddingBottom:je(e.paddingBottom)}]}),visibleItemsStyle:E(()=>(F.value,{transform:`translateY(${je(h.value.sum(C.value))})`})),viewportItems:w,listElRef:f,itemsElRef:A(null),scrollTo:I,handleListResize:H,handleListScroll:j,handleListWheel:te,handleItemResize:m}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return we(It,{onResize:this.handleListResize},{default:()=>{var r,a;return we("div",ze(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?we("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[we(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:i,renderItemWithCols:l}=this;return this.viewportItems.map(f=>{const c=f[t],v=n.get(c),h=i!=null?we(Lt,{index:v,item:f}):void 0,F=l!=null?we(Lt,{index:v,item:f}):void 0,z=this.$slots.default({item:f,renderedCols:h,renderedItemWithCols:F,index:v})[0];return e?we(It,{key:c,onResize:C=>this.handleItemResize(c,C)},{default:()=>z}):(z.key=c,z)})}})]):(a=(r=this.$slots).empty)===null||a===void 0?void 0:a.call(r)])}})}}),ke="v-hidden",go=rt("[v-hidden]",{display:"none!important"}),Nt=ve({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=A(null),o=A(null);function r(i){const{value:l}=n,{getCounter:f,getTail:c}=e;let v;if(f!==void 0?v=f():v=o.value,!l||!v)return;v.hasAttribute(ke)&&v.removeAttribute(ke);const{children:h}=l;if(i.showAllItemsBeforeCalculate)for(const P of h)P.hasAttribute(ke)&&P.removeAttribute(ke);const F=l.offsetWidth,z=[],C=t.tail?c?.():null;let w=C?C.offsetWidth:0,I=!1;const S=l.children.length-(t.tail?1:0);for(let P=0;PF){const{updateCounter:O}=e;for(let W=P;W>=0;--W){const j=S-1-W;O!==void 0?O(j):v.textContent=`${j}`;const te=v.offsetWidth;if(w-=z[W],w+te<=F||W===0){I=!0,P=W-1,C&&(P===-1?(C.style.maxWidth=`${F-te}px`,C.style.boxSizing="border-box"):C.style.maxWidth="");const{onUpdateCount:H}=e;H&&H(j);break}}}}const{onUpdateOverflow:R}=e;I?R!==void 0&&R(!0):(R!==void 0&&R(!1),v.setAttribute(ke,""))}const a=Gt();return go.mount({id:"vueuc/overflow",head:!0,anchorMetaName:jt,ssr:a}),Ye(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:o,sync:r}},render(){const{$slots:e}=this;return Pt(()=>this.sync({showAllItemsBeforeCalculate:!1})),we("div",{class:"v-overflow",ref:"selfRef"},[Nn(e,"default"),e.counter?e.counter():we("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});var bo={color:Object,type:{type:String,default:"default"},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},po=V("tag",` + --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[le("strong",` + font-weight: var(--n-font-weight-strong); + `),D("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),D("icon",` + display: flex; + margin: 0 4px 0 0; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + font-size: var(--n-avatar-size-override); + `),D("avatar",` + display: flex; + margin: 0 6px 0 0; + `),D("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),le("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[D("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),D("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),le("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),le("icon, avatar",[le("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),le("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),le("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[Ie("disabled",[fe("&:hover","background-color: var(--n-color-hover-checkable);",[Ie("checked","color: var(--n-text-color-hover-checkable);")]),fe("&:active","background-color: var(--n-color-pressed-checkable);",[Ie("checked","color: var(--n-text-color-pressed-checkable);")])]),le("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[Ie("disabled",[fe("&:hover","background-color: var(--n-color-checked-hover);"),fe("&:active","background-color: var(--n-color-checked-pressed);")])])])]);const mo=["onClick","onMouseenter","onMouseleave"],yo={...Ce.props,...bo,bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function},wo=Vn("n-tag");var mt=ve({name:"Tag",props:yo,slots:Object,setup(e){const t=A(null),{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:a,mergedComponentPropsRef:i}=Ge(e),l=E(()=>e.size||i?.value?.Tag?.size||"medium"),f=Ce("Tag","-tag",po,Kn,e,o);lt(wo,{roundRef:ie(e,"round")});function c(){if(!e.disabled&&e.checkable){const{checked:w,onCheckedChange:I,onUpdateChecked:S,"onUpdate:checked":R}=e;S&&S(!w),R&&R(!w),I&&I(!w)}}function v(w){if(e.triggerClickOnClose||w.stopPropagation(),!e.disabled){const{onClose:I}=e;I&&pe(I,w)}}const h={setTextContent(w){const{value:I}=t;I&&(I.textContent=w)}},F=Ot("Tag",a,o),z=E(()=>{const{type:w,color:{color:I,textColor:S}={}}=e,R=l.value,{common:{cubicBezierEaseInOut:P},self:{padding:b,closeMargin:m,borderRadius:O,opacityDisabled:W,textColorCheckable:j,textColorHoverCheckable:te,textColorPressedCheckable:H,textColorChecked:oe,colorCheckable:X,colorHoverCheckable:p,colorPressedCheckable:x,colorChecked:K,colorCheckedHover:L,colorCheckedPressed:ee,closeBorderRadius:Q,fontWeightStrong:U,[re("colorBordered",w)]:ne,[re("closeSize",R)]:Y,[re("closeIconSize",R)]:he,[re("fontSize",R)]:de,[re("height",R)]:g,[re("color",w)]:$,[re("textColor",w)]:ge,[re("border",w)]:Se,[re("closeIconColor",w)]:xe,[re("closeIconColorHover",w)]:be,[re("closeIconColorPressed",w)]:ue,[re("closeColorHover",w)]:Re,[re("closeColorPressed",w)]:me}}=f.value,ye=Le(m);return{"--n-font-weight-strong":U,"--n-avatar-size-override":`calc(${g} - 8px)`,"--n-bezier":P,"--n-border-radius":O,"--n-border":Se,"--n-close-icon-size":he,"--n-close-color-pressed":me,"--n-close-color-hover":Re,"--n-close-border-radius":Q,"--n-close-icon-color":xe,"--n-close-icon-color-hover":be,"--n-close-icon-color-pressed":ue,"--n-close-icon-color-disabled":xe,"--n-close-margin-top":ye.top,"--n-close-margin-right":ye.right,"--n-close-margin-bottom":ye.bottom,"--n-close-margin-left":ye.left,"--n-close-size":Y,"--n-color":I||(n.value?ne:$),"--n-color-checkable":X,"--n-color-checked":K,"--n-color-checked-hover":L,"--n-color-checked-pressed":ee,"--n-color-hover-checkable":p,"--n-color-pressed-checkable":x,"--n-font-size":de,"--n-height":g,"--n-opacity-disabled":W,"--n-padding":b,"--n-text-color":S||ge,"--n-text-color-checkable":j,"--n-text-color-checked":oe,"--n-text-color-hover-checkable":te,"--n-text-color-pressed-checkable":H}}),C=r?qe("tag",E(()=>{let w="";const{type:I,color:{color:S,textColor:R}={}}=e;return w+=I[0],w+=l.value[0],S&&(w+=`a${Bt(S)}`),R&&(w+=`b${Bt(R)}`),n.value&&(w+="c"),w}),z,e):void 0;return{...h,rtlEnabled:F,mergedClsPrefix:o,contentRef:t,mergedBordered:n,handleClick:c,handleCloseClick:v,cssVars:r?void 0:z,themeClass:C?.themeClass,onRender:C?.onRender}},render(){const{mergedClsPrefix:e,rtlEnabled:t,closable:n,color:{borderColor:o}={},round:r,onRender:a,$slots:i}=this;a?.();const l=it(i.avatar,c=>c&&(u(),k("div",{class:M(`${e}-tag__avatar`)},[T(()=>c)],2))),f=it(i.icon,c=>c&&(u(),k("div",{class:M(`${e}-tag__icon`)},[T(()=>c)],2)));return u(),k("div",{class:M([`${e}-tag`,this.themeClass,{[`${e}-tag--rtl`]:t,[`${e}-tag--strong`]:this.strong,[`${e}-tag--disabled`]:this.disabled,[`${e}-tag--checkable`]:this.checkable,[`${e}-tag--checked`]:this.checkable&&this.checked,[`${e}-tag--round`]:r,[`${e}-tag--avatar`]:l,[`${e}-tag--icon`]:f,[`${e}-tag--closable`]:n}]),style:Ne(this.cssVars),onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},[T(()=>f||l),ce("span",{class:M(`${e}-tag__content`),ref:"contentRef"},[T(()=>this.$slots.default?.())],2),!this.checkable&&n?(u(),Z(Dn,{key:0,clsPrefix:e,class:M(`${e}-tag__close`),disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:r,isButtonTag:this.internalCloseIsButtonTag,absolute:!0},null,8,["clsPrefix","class","disabled","onClick","focusable","round","isButtonTag"])):T(()=>null),!this.checkable&&this.mergedBordered?(u(),k("div",{key:2,class:M(`${e}-tag__border`),style:Ne({borderColor:o})},null,6)):T(()=>null)],46,mo)}});function Dt(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function en(e,t){t&&(Ye(()=>{const{value:n}=e;n&>.registerHandler(n,t)}),_e(e,(n,o)=>{o&>.unregisterHandler(o)},{deep:!1}),qt(()=>{const{value:n}=e;n&>.unregisterHandler(n)}))}var Co=ve({props:{onFocus:Function,onBlur:Function},setup(e){return()=>(()=>{const t=zt("d16ead82505dc285");return u(),k("div",{style:"width: 0; height: 0",tabindex:0,onFocus:t[0]||(t[0]=n=>e.onFocus?.(n)),onBlur:t[1]||(t[1]=n=>e.onBlur?.(n))},null,32)})()}}),xo=Co,Kt=ve({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:o}=Ft(Tt);return{labelField:n,nodeProps:o,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:o,tmNode:{rawNode:r}}=this,a=o?.(r),i=t?t(r,!1):$e(r[this.labelField],r,!1),l=(u(),k("div",ze(a,{class:[`${e}-base-select-group-header`,a?.class]}),[T(()=>i)],16));return r.render?r.render({node:l,option:r}):n?n({node:l,option:r,selected:!1}):l}}),ko=ve({name:"Checkmark",render(){return(()=>{const e=zt("3c84eac8ae4e1f96");return e[0]||(e[0]=ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},[ce("g",{fill:"none"},[ce("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})])],-1))})()}});const So=["onClick","onMouseenter","onMousemove"];function Ro(e,t){return u(),Z(Yt,{name:"fade-in-scale-up-transition"},{default:()=>e?(u(),Z(Ut,{key:1,clsPrefix:t,class:M(`${t}-base-select-option__check`)},{default:()=>we(ko)},1032,["clsPrefix","class"])):null},1024)}var Vt=ve({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:o,valueSetRef:r,renderLabelRef:a,renderOptionRef:i,labelFieldRef:l,valueFieldRef:f,showCheckmarkRef:c,nodePropsRef:v,handleOptionClick:h,handleOptionMouseEnter:F}=Ft(Tt),z=Be(()=>{const{value:S}=n;return S?e.tmNode.key===S.key:!1});function C(S){const{tmNode:R}=e;R.disabled||h(S,R)}function w(S){const{tmNode:R}=e;R.disabled||F(S,R)}function I(S){const{tmNode:R}=e,{value:P}=z;R.disabled||P||F(S,R)}return{multiple:o,isGrouped:Be(()=>{const{tmNode:S}=e,{parent:R}=S;return R&&R.rawNode.type==="group"}),showCheckmark:c,nodeProps:v,isPending:z,isSelected:Be(()=>{const{value:S}=t,{value:R}=o;if(S===null)return!1;const P=e.tmNode.rawNode[f.value];if(R){const{value:b}=r;return b.has(P)}else return S===P}),labelField:l,renderLabel:a,renderOption:i,handleMouseMove:I,handleMouseEnter:w,handleClick:C}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:o,isGrouped:r,showCheckmark:a,nodeProps:i,renderOption:l,renderLabel:f,handleClick:c,handleMouseEnter:v,handleMouseMove:h}=this,F=Ro(n,e),z=f?[f(t,n),a&&F]:[$e(t[this.labelField],t,n),a&&F],C=i?.(t),w=(u(),k("div",ze(C,{class:[`${e}-base-select-option`,t.class,C?.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:a}],style:[C?.style||"",t.style||""],onClick:bt([c,C?.onClick]),onMouseenter:bt([v,C?.onMouseenter]),onMousemove:bt([h,C?.onMousemove])}),[ce("div",{class:M(`${e}-base-select-option__content`)},[T(()=>z)],2)],16,So));return t.render?t.render({node:w,option:t,selected:n}):l?l({node:w,option:t,selected:n}):w}}),To=V("base-select-menu",` + line-height: 1.5; + outline: none; + z-index: 0; + position: relative; + border-radius: var(--n-border-radius); + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-color); +`,[V("scrollbar",` + max-height: var(--n-height); + `),V("virtual-list",` + max-height: var(--n-height); + `),V("base-select-option",` + min-height: var(--n-option-height); + font-size: var(--n-option-font-size); + display: flex; + align-items: center; + `,[D("content",` + z-index: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + `)]),V("base-select-group-header",` + min-height: var(--n-option-height); + font-size: .93em; + display: flex; + align-items: center; + `),V("base-select-menu-option-wrapper",` + position: relative; + width: 100%; + `),D("loading, empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),D("loading",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + `),D("header",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),D("action",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-top: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),V("base-select-group-header",` + position: relative; + cursor: default; + padding: var(--n-option-padding); + color: var(--n-group-header-text-color); + `),V("base-select-option",` + cursor: pointer; + position: relative; + padding: var(--n-option-padding); + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + box-sizing: border-box; + color: var(--n-option-text-color); + opacity: 1; + `,[le("show-checkmark",` + padding-right: calc(var(--n-option-padding-right) + 20px); + `),fe("&::before",` + content: ""; + position: absolute; + left: 4px; + right: 4px; + top: 0; + bottom: 0; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),fe("&:active",` + color: var(--n-option-text-color-pressed); + `),le("grouped",` + padding-left: calc(var(--n-option-padding-left) * 1.5); + `),le("pending",[fe("&::before",` + background-color: var(--n-option-color-pending); + `)]),le("selected",` + color: var(--n-option-text-color-active); + `,[fe("&::before",` + background-color: var(--n-option-color-active); + `),le("pending",[fe("&::before",` + background-color: var(--n-option-color-active-pending); + `)])]),le("disabled",` + cursor: not-allowed; + `,[Ie("selected",` + color: var(--n-option-text-color-disabled); + `),le("selected",` + opacity: var(--n-option-opacity-disabled); + `)]),D("check",` + font-size: 16px; + position: absolute; + right: calc(var(--n-option-padding-right) - 4px); + top: calc(50% - 7px); + color: var(--n-option-check-color); + transition: color .3s var(--n-bezier); + `,[Zt({enterScale:"0.5"})])])]);function Wt(e){return Array.isArray(e)?e:[e]}const Rt={STOP:"STOP"};function tn(e,t){const n=t(e);e.children!==void 0&&n!==Rt.STOP&&e.children.forEach(o=>tn(o,t))}function zo(e,t={}){const{preserveGroup:n=!1}=t,o=[],r=n?i=>{i.isLeaf||(o.push(i.key),a(i.children))}:i=>{i.isLeaf||(i.isGroup||o.push(i.key),a(i.children))};function a(i){i.forEach(r)}return a(e),o}function Fo(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function Po(e){return e.children}function Oo(e){return e.key}function Mo(){return!1}function Io(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function Bo(e){return e.disabled===!0}function _o(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function yt(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function wt(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Ao(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)||n.add(o)}),Array.from(n)}function Eo(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)&&n.delete(o)}),Array.from(n)}function $o(e){return e?.type==="group"}function Lo(e){const t=new Map;return e.forEach((n,o)=>{t.set(n.key,o)}),n=>{var o;return(o=t.get(n))!==null&&o!==void 0?o:null}}class No extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Do(e,t,n,o){return at(t.concat(e),n,o,!1)}function Ko(e,t){const n=new Set;return e.forEach(o=>{const r=t.treeNodeMap.get(o);if(r!==void 0){let a=r.parent;for(;a!==null&&!(a.disabled||n.has(a.key));)n.add(a.key),a=a.parent}}),n}function Vo(e,t,n,o){const r=at(t,n,o,!1),a=at(e,n,o,!0),i=Ko(e,n),l=[];return r.forEach(f=>{(a.has(f)||i.has(f))&&l.push(f)}),l.forEach(f=>r.delete(f)),r}function Ct(e,t){const{checkedKeys:n,keysToCheck:o,keysToUncheck:r,indeterminateKeys:a,cascade:i,leafOnly:l,checkStrategy:f,allowNotLoaded:c}=e;if(!i)return o!==void 0?{checkedKeys:Ao(n,o),indeterminateKeys:Array.from(a)}:r!==void 0?{checkedKeys:Eo(n,r),indeterminateKeys:Array.from(a)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)};const{levelTreeNodeMap:v}=t;let h;r!==void 0?h=Vo(r,n,t,c):o!==void 0?h=Do(o,n,t,c):h=at(n,t,c,!1);const F=f==="parent",z=f==="child"||l,C=h,w=new Set,I=Math.max.apply(null,Array.from(v.keys()));for(let S=I;S>=0;S-=1){const R=S===0,P=v.get(S);for(const b of P){if(b.isLeaf)continue;const{key:m,shallowLoaded:O}=b;if(z&&O&&b.children.forEach(H=>{!H.disabled&&!H.isLeaf&&H.shallowLoaded&&C.has(H.key)&&C.delete(H.key)}),b.disabled||!O)continue;let W=!0,j=!1,te=!0;for(const H of b.children){const oe=H.key;if(!H.disabled){if(te&&(te=!1),C.has(oe))j=!0;else if(w.has(oe)){j=!0,W=!1;break}else if(W=!1,j)break}}W&&!te?(F&&b.children.forEach(H=>{!H.disabled&&C.has(H.key)&&C.delete(H.key)}),C.add(m)):j&&w.add(m),R&&z&&C.has(m)&&C.delete(m)}}return{checkedKeys:Array.from(C),indeterminateKeys:Array.from(w)}}function at(e,t,n,o){const{treeNodeMap:r,getChildren:a}=t,i=new Set,l=new Set(e);return e.forEach(f=>{const c=r.get(f);c!==void 0&&tn(c,v=>{if(v.disabled)return Rt.STOP;const{key:h}=v;if(!i.has(h)&&(i.add(h),l.add(h),_o(v.rawNode,a))){if(o)return Rt.STOP;if(!n)throw new No}})}),l}function Wo(e,{includeGroup:t=!1,includeSelf:n=!0},o){var r;const a=o.treeNodeMap;let i=e==null?null:(r=a.get(e))!==null&&r!==void 0?r:null;const l={keyPath:[],treeNodePath:[],treeNode:i};if(i?.ignored)return l.treeNode=null,l;for(;i;)!i.ignored&&(t||!i.isGroup)&&l.treeNodePath.push(i),i=i.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(f=>f.key),l}function Ho(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function jo(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r+1)%o]:r===n.length-1?null:n[r+1]}function Ht(e,t,{loop:n=!1,includeDisabled:o=!1}={}){const r=t==="prev"?Uo:jo,a={reverse:t==="prev"};let i=!1,l=null;function f(c){if(c!==null){if(c===e){if(!i)i=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const v=Mt(c,a);v!==null?l=v:f(r(c,n))}else{const v=r(c,!1);if(v!==null)f(v);else{const h=Go(c);h?.isGroup?f(r(h,n)):n&&f(r(c,!0))}}}}return f(e),l}function Uo(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r-1+o)%o]:r===0?null:n[r-1]}function Go(e){return e.parent}function Mt(e,t={}){const{reverse:n=!1}=t,{children:o}=e;if(o){const{length:r}=o,a=n?r-1:0,i=n?-1:r,l=n?-1:1;for(let f=a;f!==i;f+=l){const c=o[f];if(!c.disabled&&!c.ignored)if(c.isGroup){const v=Mt(c,t);if(v!==null)return v}else return c}}return null}const qo={getChild(){return this.ignored?null:Mt(this)},getParent(){const{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Ht(this,"next",e)},getPrev(e={}){return Ht(this,"prev",e)}};function Yo(e,t){const n=t?new Set(t):void 0,o=[];function r(a){a.forEach(i=>{o.push(i),!(i.isLeaf||!i.children||i.ignored)&&(i.isGroup||n===void 0||n.has(i.key))&&r(i.children)})}return r(e),o}function Zo(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function nn(e,t,n,o,r,a=null,i=0){const l=[];return e.forEach((f,c)=>{var v;const h=Object.create(o);if(h.rawNode=f,h.siblings=l,h.level=i,h.index=c,h.isFirstChild=c===0,h.isLastChild=c+1===e.length,h.parent=a,!h.ignored){const F=r(f);Array.isArray(F)&&(h.children=nn(F,t,n,o,r,h,i+1))}l.push(h),t.set(h.key,h),n.has(i)||n.set(i,[]),(v=n.get(i))===null||v===void 0||v.push(h)}),l}function Xo(e,t={}){var n;const o=new Map,r=new Map,{getDisabled:a=Bo,getIgnored:i=Mo,getIsGroup:l=$o,getKey:f=Oo}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:Po,v=t.ignoreEmptyChildren?b=>{const m=c(b);return Array.isArray(m)?m.length?m:null:m}:c,h=Object.assign({get key(){return f(this.rawNode)},get disabled(){return a(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return Fo(this.rawNode,v)},get shallowLoaded(){return Io(this.rawNode,v)},get ignored(){return i(this.rawNode)},contains(b){return Zo(this,b)}},qo),F=nn(e,o,r,h,v);function z(b){if(b==null)return null;const m=o.get(b);return m&&!m.isGroup&&!m.ignored?m:null}function C(b){if(b==null)return null;const m=o.get(b);return m&&!m.ignored?m:null}function w(b,m){const O=C(b);return O?O.getPrev(m):null}function I(b,m){const O=C(b);return O?O.getNext(m):null}function S(b){const m=C(b);return m?m.getParent():null}function R(b){const m=C(b);return m?m.getChild():null}const P={treeNodes:F,treeNodeMap:o,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:v,getFlattenedNodes(b){return Yo(F,b)},getNode:z,getPrev:w,getNext:I,getParent:S,getChild:R,getFirstAvailableNode(){return Ho(F)},getPath(b,m={}){return Wo(b,m,P)},getCheckedKeys(b,m={}){const{cascade:O=!0,leafOnly:W=!1,checkStrategy:j="all",allowNotLoaded:te=!1}=m;return Ct({checkedKeys:yt(b),indeterminateKeys:wt(b),cascade:O,leafOnly:W,checkStrategy:j,allowNotLoaded:te},P)},check(b,m,O={}){const{cascade:W=!0,leafOnly:j=!1,checkStrategy:te="all",allowNotLoaded:H=!1}=O;return Ct({checkedKeys:yt(m),indeterminateKeys:wt(m),keysToCheck:b==null?[]:Wt(b),cascade:W,leafOnly:j,checkStrategy:te,allowNotLoaded:H},P)},uncheck(b,m,O={}){const{cascade:W=!0,leafOnly:j=!1,checkStrategy:te="all",allowNotLoaded:H=!1}=O;return Ct({checkedKeys:yt(m),indeterminateKeys:wt(m),keysToUncheck:b==null?[]:Wt(b),cascade:W,leafOnly:j,checkStrategy:te,allowNotLoaded:H},P)},getNonLeafKeys(b={}){return zo(F,b)}};return P}const Qo=["tabindex","onFocusin","onFocusout","onKeyup","onKeydown","onMousedown","onMouseenter","onMouseleave"];var Jo=ve({name:"InternalSelectMenu",props:{...Ce.props,clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,scrollbarProps:Object,onToggle:Function},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:o}=Ge(e),r=Ot("InternalSelectMenu",n,t),a=Ce("InternalSelectMenu","-internal-select-menu",To,Un,e,ie(e,"clsPrefix")),i=A(null),l=A(null),f=A(null),c=E(()=>e.treeMate.getFlattenedNodes()),v=E(()=>Lo(c.value)),h=A(null);function F(){const{treeMate:g}=e;let $=null;const{value:ge}=e;ge===null?$=g.getFirstAvailableNode():(e.multiple?$=g.getNode((ge||[])[(ge||[]).length-1]):$=g.getNode(ge),(!$||$.disabled)&&($=g.getFirstAvailableNode())),L($||null)}function z(){const{value:g}=h;g&&!e.treeMate.getNode(g.key)&&(h.value=null)}let C;_e(()=>e.show,g=>{g?C=_e(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?F():z(),Pt(ee)):z()},{immediate:!0}):C?.()},{immediate:!0}),qt(()=>{C?.()});const w=E(()=>St(a.value.self[re("optionHeight",e.size)])),I=E(()=>Le(a.value.self[re("padding",e.size)])),S=E(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),R=E(()=>{const g=c.value;return g&&g.length===0}),P=E(()=>o?.value?.Select?.renderEmpty);function b(g){const{onToggle:$}=e;$&&$(g)}function m(g){const{onScroll:$}=e;$&&$(g)}function O(g){f.value?.sync(),m(g)}function W(){f.value?.sync()}function j(){const{value:g}=h;return g||null}function te(g,$){$.disabled||L($,!1)}function H(g,$){$.disabled||b($)}function oe(g){Ue(g,"action")||e.onKeyup?.(g)}function X(g){Ue(g,"action")||e.onKeydown?.(g)}function p(g){e.onMousedown?.(g),!e.focusable&&g.preventDefault()}function x(){const{value:g}=h;g&&L(g.getNext({loop:!0}),!0)}function K(){const{value:g}=h;g&&L(g.getPrev({loop:!0}),!0)}function L(g,$=!1){h.value=g,$&&ee()}function ee(){const g=h.value;if(!g)return;const $=v.value(g.key);$!==null&&(e.virtualScroll?l.value?.scrollTo({index:$}):f.value?.scrollTo({index:$,elSize:w.value}))}function Q(g){i.value?.contains(g.target)&&e.onFocus?.(g)}function U(g){i.value?.contains(g.relatedTarget)||e.onBlur?.(g)}lt(Tt,{handleOptionMouseEnter:te,handleOptionClick:H,valueSetRef:S,pendingTmNodeRef:h,nodePropsRef:ie(e,"nodeProps"),showCheckmarkRef:ie(e,"showCheckmark"),multipleRef:ie(e,"multiple"),valueRef:ie(e,"value"),renderLabelRef:ie(e,"renderLabel"),renderOptionRef:ie(e,"renderOption"),labelFieldRef:ie(e,"labelField"),valueFieldRef:ie(e,"valueField")}),lt(Mn,i),Ye(()=>{const{value:g}=f;g&&g.sync()});const ne=E(()=>{const{size:g}=e,{common:{cubicBezierEaseInOut:$},self:{height:ge,borderRadius:Se,color:xe,groupHeaderTextColor:be,actionDividerColor:ue,optionTextColorPressed:Re,optionTextColor:me,optionTextColorDisabled:ye,optionTextColorActive:De,optionOpacityDisabled:Ke,optionCheckColor:Fe,actionTextColor:Pe,optionColorPending:Ve,optionColorActive:We,loadingColor:He,loadingSize:Ae,optionColorActivePending:Ee,[re("optionFontSize",g)]:Oe,[re("optionHeight",g)]:d,[re("optionPadding",g)]:N}}=a.value;return{"--n-height":ge,"--n-action-divider-color":ue,"--n-action-text-color":Pe,"--n-bezier":$,"--n-border-radius":Se,"--n-color":xe,"--n-option-font-size":Oe,"--n-group-header-text-color":be,"--n-option-check-color":Fe,"--n-option-color-pending":Ve,"--n-option-color-active":We,"--n-option-color-active-pending":Ee,"--n-option-height":d,"--n-option-opacity-disabled":Ke,"--n-option-text-color":me,"--n-option-text-color-active":De,"--n-option-text-color-disabled":ye,"--n-option-text-color-pressed":Re,"--n-option-padding":N,"--n-option-padding-left":Le(N,"left"),"--n-option-padding-right":Le(N,"right"),"--n-loading-color":He,"--n-loading-size":Ae}}),{inlineThemeDisabled:Y}=e,he=Y?qe("internal-select-menu",E(()=>e.size[0]),ne,e):void 0,de={selfRef:i,next:x,prev:K,getPendingTmNode:j};return en(i,e.onResize),{mergedTheme:a,mergedClsPrefix:t,rtlEnabled:r,virtualListRef:l,scrollbarRef:f,itemSize:w,padding:I,flattenedNodes:c,empty:R,mergedRenderEmpty:P,virtualListContainer(){const{value:g}=l;return g?.listElRef},virtualListContent(){const{value:g}=l;return g?.itemsElRef},doScroll:m,handleFocusin:Q,handleFocusout:U,handleKeyUp:oe,handleKeyDown:X,handleMouseDown:p,handleVirtualListResize:W,handleVirtualListScroll:O,cssVars:Y?void 0:ne,themeClass:he?.themeClass,onRender:he?.onRender,...de}},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:o,themeClass:r,onRender:a}=this;return a?.(),u(),k("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:M([`${n}-base-select-menu`,`${n}-base-select-menu--${this.size}-size`,this.rtlEnabled&&`${n}-base-select-menu--rtl`,r,this.multiple&&`${n}-base-select-menu--multiple`]),style:Ne(this.cssVars),onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},[T(()=>it(e.header,i=>i&&(u(),k("div",{class:M(`${n}-base-select-menu__header`),"data-header":!0,key:"header"},[T(()=>i)],2)))),this.loading?(u(),k("div",{key:0,class:M(`${n}-base-select-menu__loading`)},[(u(),Z(Wn,{clsPrefix:n,strokeWidth:20},null,8,["clsPrefix"]))],2)):(u(),k(ae,{key:1},[this.empty?(u(),k("div",{key:1,class:M(`${n}-base-select-menu__empty`),"data-empty":!0},[T(()=>jn(e.empty,()=>[this.mergedRenderEmpty?.()||(u(),Z(co,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty,size:this.size},null,8,["theme","themeOverrides","size"]))]))],2)):(u(),Z(Hn,ze({key:0,ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},this.scrollbarProps),{default:()=>t?(u(),Z(vo,{key:1,ref:"virtualListRef",class:M(`${n}-virtual-list`),items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:i})=>i.isGroup?(u(),Z(Kt,{key:i.key,clsPrefix:n,tmNode:i},null,8,["clsPrefix","tmNode"])):i.ignored?null:(u(),Z(Vt,{clsPrefix:n,key:i.key,tmNode:i},null,8,["clsPrefix","tmNode"]))},1032,["class","items","itemSize","paddingTop","paddingBottom","onResize","onScroll"])):(u(),k("div",{key:4,class:M(`${n}-base-select-menu-option-wrapper`),style:Ne({paddingTop:this.padding.top,paddingBottom:this.padding.bottom})},[T(()=>this.flattenedNodes.map(i=>i.isGroup?(u(),Z(Kt,{key:i.key,clsPrefix:n,tmNode:i},null,8,["clsPrefix","tmNode"])):(u(),Z(Vt,{clsPrefix:n,key:i.key,tmNode:i},null,8,["clsPrefix","tmNode"]))))],6))},1040,["theme","themeOverrides","scrollable","container","content","onScroll"]))],64)),T(()=>it(e.action,i=>i&&[(u(),k("div",{class:M(`${n}-base-select-menu__action`),"data-action":!0,key:"action"},[T(()=>i)],2)),(u(),Z(xo,{onFocus:this.onTabOut,key:"focus-detector"},null,8,["onFocus"]))]))],46,Qo)}});function st(e){return e.type==="group"}function on(e){return e.type==="ignored"}function xt(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function er(e,t){return{getIsGroup:st,getIgnored:on,getKey(n){return st(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function tr(e,t,n,o){if(!t)return e;function r(a){if(!Array.isArray(a))return[];const i=[];for(const l of a)if(st(l)){const f=r(l[o]);f.length&&i.push(Object.assign({},l,{[o]:f}))}else{if(on(l))continue;t(n,l)&&i.push(l)}return i}return r(e)}function nr(e,t,n){const o=new Map;return e.forEach(r=>{st(r)?r[n].forEach(a=>{o.set(a[t],a)}):o.set(r[t],r)}),o}var or=fe([V("base-selection",` + --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); + --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); + position: relative; + z-index: auto; + box-shadow: none; + width: 100%; + max-width: 100%; + display: inline-block; + vertical-align: bottom; + border-radius: var(--n-border-radius); + min-height: var(--n-height); + line-height: 1.5; + font-size: var(--n-font-size); + `,[V("base-loading",` + color: var(--n-loading-color); + `),V("base-selection-tags","min-height: var(--n-height);"),D("border, state-border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border: var(--n-border); + border-radius: inherit; + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),D("state-border",` + z-index: 1; + border-color: #0000; + `),V("base-suffix",` + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 10px; + `,[D("arrow",` + font-size: var(--n-arrow-size); + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + `)]),V("base-selection-overlay",` + display: flex; + align-items: center; + white-space: nowrap; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + padding: var(--n-padding-single); + transition: color .3s var(--n-bezier); + `,[D("wrapper",` + flex-basis: 0; + flex-grow: 1; + overflow: hidden; + text-overflow: ellipsis; + `)]),V("base-selection-placeholder",` + color: var(--n-placeholder-color); + `,[D("inner",` + max-width: 100%; + overflow: hidden; + `)]),V("base-selection-tags",` + cursor: pointer; + outline: none; + box-sizing: border-box; + position: relative; + z-index: auto; + display: flex; + padding: var(--n-padding-multiple); + flex-wrap: wrap; + align-items: center; + width: 100%; + vertical-align: bottom; + background-color: var(--n-color); + border-radius: inherit; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `),V("base-selection-label",` + height: var(--n-height); + display: inline-flex; + width: 100%; + vertical-align: bottom; + cursor: pointer; + outline: none; + z-index: auto; + box-sizing: border-box; + position: relative; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: inherit; + background-color: var(--n-color); + align-items: center; + `,[V("base-selection-input",` + font-size: inherit; + line-height: inherit; + outline: none; + cursor: pointer; + box-sizing: border-box; + border:none; + width: 100%; + padding: var(--n-padding-single); + background-color: #0000; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + caret-color: var(--n-caret-color); + `,[D("content",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `)]),D("render-label",` + color: var(--n-text-color); + `)]),Ie("disabled",[fe("&:hover",[D("state-border",` + box-shadow: var(--n-box-shadow-hover); + border: var(--n-border-hover); + `)]),le("focus",[D("state-border",` + box-shadow: var(--n-box-shadow-focus); + border: var(--n-border-focus); + `)]),le("active",[D("state-border",` + box-shadow: var(--n-box-shadow-active); + border: var(--n-border-active); + `),V("base-selection-label","background-color: var(--n-color-active);"),V("base-selection-tags","background-color: var(--n-color-active);")])]),le("disabled","cursor: not-allowed;",[D("arrow",` + color: var(--n-arrow-color-disabled); + `),V("base-selection-label",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[V("base-selection-input",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + `),D("render-label",` + color: var(--n-text-color-disabled); + `)]),V("base-selection-tags",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `),V("base-selection-placeholder",` + cursor: not-allowed; + color: var(--n-placeholder-color-disabled); + `)]),V("base-selection-input-tag",` + height: calc(var(--n-height) - 6px); + line-height: calc(var(--n-height) - 6px); + outline: none; + display: none; + position: relative; + margin-bottom: 3px; + max-width: 100%; + vertical-align: bottom; + `,[D("input",` + font-size: inherit; + font-family: inherit; + min-width: 1px; + padding: 0; + background-color: #0000; + outline: none; + border: none; + max-width: 100%; + overflow: hidden; + width: 1em; + line-height: inherit; + cursor: pointer; + color: var(--n-text-color); + caret-color: var(--n-caret-color); + `),D("mirror",` + position: absolute; + left: 0; + top: 0; + white-space: pre; + visibility: hidden; + user-select: none; + -webkit-user-select: none; + opacity: 0; + `)]),["warning","error"].map(e=>le(`${e}-status`,[D("state-border",`border: var(--n-border-${e});`),Ie("disabled",[fe("&:hover",[D("state-border",` + box-shadow: var(--n-box-shadow-hover-${e}); + border: var(--n-border-hover-${e}); + `)]),le("active",[D("state-border",` + box-shadow: var(--n-box-shadow-active-${e}); + border: var(--n-border-active-${e}); + `),V("base-selection-label",`background-color: var(--n-color-active-${e});`),V("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),le("focus",[D("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),V("base-selection-popover",` + margin-bottom: -3px; + display: flex; + flex-wrap: wrap; + margin-right: -8px; + `),V("base-selection-tag-wrapper",` + max-width: 100%; + display: inline-flex; + padding: 0 7px 3px 0; + `,[fe("&:last-child","padding-right: 0;"),V("tag",` + font-size: 14px; + max-width: 100%; + `,[D("content",` + line-height: 1.25; + text-overflow: ellipsis; + overflow: hidden; + `)])])]);const rr=["disabled","value","autofocus","onBlur","onFocus","onKeydown","onInput","onCompositionstart","onCompositionend"],lr=["tabindex"],ir=["title"],ar=["value","readonly","disabled","autofocus","onFocus","onBlur","onInput","onCompositionstart","onCompositionend"],sr=["tabindex"],cr=["onClick","onMouseenter","onMouseleave","onKeydown","onFocusin","onFocusout","onMousedown"];var dr=ve({name:"InternalSelection",props:{...Ce.props,clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ge(e),o=Ot("InternalSelection",n,t),r=A(null),a=A(null),i=A(null),l=A(null),f=A(null),c=A(null),v=A(null),h=A(null),F=A(null),z=A(null),C=A(!1),w=A(!1),I=A(!1),S=Ce("InternalSelection","-internal-selection",or,qn,e,ie(e,"clsPrefix")),R=E(()=>e.clearable&&!e.disabled&&(I.value||e.active)),P=E(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):$e(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),b=E(()=>{const d=e.selectedOption;if(d)return d[e.labelField]}),m=E(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function O(){const{value:d}=r;if(d){const{value:N}=a;N&&(N.style.width=`${d.offsetWidth}px`,e.maxTagCount!=="responsive"&&F.value?.sync({showAllItemsBeforeCalculate:!1}))}}function W(){const{value:d}=z;d&&(d.style.display="none")}function j(){const{value:d}=z;d&&(d.style.display="inline-block")}_e(ie(e,"active"),d=>{d||W()}),_e(ie(e,"pattern"),()=>{e.multiple&&Pt(O)});function te(d){const{onFocus:N}=e;N&&N(d)}function H(d){const{onBlur:N}=e;N&&N(d)}function oe(d){const{onDeleteOption:N}=e;N&&N(d)}function X(d){const{onClear:N}=e;N&&N(d)}function p(d){const{onPatternInput:N}=e;N&&N(d)}function x(d){(!d.relatedTarget||!i.value?.contains(d.relatedTarget))&&te(d)}function K(d){i.value?.contains(d.relatedTarget)||H(d)}function L(d){X(d)}function ee(){I.value=!0}function Q(){I.value=!1}function U(d){!e.active||!e.filterable||d.target!==a.value&&d.preventDefault()}function ne(d){oe(d)}const Y=A(!1);function he(d){if(d.key==="Backspace"&&!Y.value&&!e.pattern.length){const{selectedOptions:N}=e;N?.length&&ne(N[N.length-1])}}let de=null;function g(d){const{value:N}=r;N&&(N.textContent=d.target.value,O()),e.ignoreComposition&&Y.value?de=d:p(d)}function $(){Y.value=!0}function ge(){Y.value=!1,e.ignoreComposition&&p(de),de=null}function Se(d){w.value=!0,e.onPatternFocus?.(d)}function xe(d){w.value=!1,e.onPatternBlur?.(d)}function be(){if(e.filterable)w.value=!1,c.value?.blur(),a.value?.blur();else if(e.multiple){const{value:d}=l;d?.blur()}else{const{value:d}=f;d?.blur()}}function ue(){e.filterable?(w.value=!1,c.value?.focus()):e.multiple?l.value?.focus():f.value?.focus()}function Re(){const{value:d}=a;d&&(j(),d.focus())}function me(){const{value:d}=a;d&&d.blur()}function ye(d){const{value:N}=v;N&&N.setTextContent(`+${d}`)}function De(){const{value:d}=h;return d}function Ke(){return a.value}let Fe=null;function Pe(){Fe!==null&&window.clearTimeout(Fe)}function Ve(){e.active||(Pe(),Fe=window.setTimeout(()=>{m.value&&(C.value=!0)},100))}function We(){Pe()}function He(d){d||(Pe(),C.value=!1)}_e(m,d=>{d||(C.value=!1)}),Ye(()=>{Yn(()=>{const d=c.value;d&&(e.disabled?d.removeAttribute("tabindex"):d.tabIndex=w.value?-1:0)})}),en(i,e.onResize);const{inlineThemeDisabled:Ae}=e,Ee=E(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:N},self:{fontWeight:ct,borderRadius:dt,color:ut,placeholderColor:ft,textColor:Ze,paddingSingle:Xe,paddingMultiple:Qe,caretColor:ht,colorDisabled:vt,textColorDisabled:Je,placeholderColorDisabled:et,colorActive:s,boxShadowFocus:y,boxShadowActive:B,boxShadowHover:_,border:G,borderFocus:q,borderHover:J,borderActive:se,arrowColor:Me,arrowColorDisabled:rn,loadingColor:ln,colorActiveWarning:an,boxShadowFocusWarning:sn,boxShadowActiveWarning:cn,boxShadowHoverWarning:dn,borderWarning:un,borderFocusWarning:fn,borderHoverWarning:hn,borderActiveWarning:vn,colorActiveError:gn,boxShadowFocusError:bn,boxShadowActiveError:pn,boxShadowHoverError:mn,borderError:yn,borderFocusError:wn,borderHoverError:Cn,borderActiveError:xn,clearColor:kn,clearColorHover:Sn,clearColorPressed:Rn,clearSize:Tn,arrowSize:zn,[re("height",d)]:Fn,[re("fontSize",d)]:Pn}}=S.value,tt=Le(Xe),nt=Le(Qe);return{"--n-bezier":N,"--n-border":G,"--n-border-active":se,"--n-border-focus":q,"--n-border-hover":J,"--n-border-radius":dt,"--n-box-shadow-active":B,"--n-box-shadow-focus":y,"--n-box-shadow-hover":_,"--n-caret-color":ht,"--n-color":ut,"--n-color-active":s,"--n-color-disabled":vt,"--n-font-size":Pn,"--n-height":Fn,"--n-padding-single-top":tt.top,"--n-padding-multiple-top":nt.top,"--n-padding-single-right":tt.right,"--n-padding-multiple-right":nt.right,"--n-padding-single-left":tt.left,"--n-padding-multiple-left":nt.left,"--n-padding-single-bottom":tt.bottom,"--n-padding-multiple-bottom":nt.bottom,"--n-placeholder-color":ft,"--n-placeholder-color-disabled":et,"--n-text-color":Ze,"--n-text-color-disabled":Je,"--n-arrow-color":Me,"--n-arrow-color-disabled":rn,"--n-loading-color":ln,"--n-color-active-warning":an,"--n-box-shadow-focus-warning":sn,"--n-box-shadow-active-warning":cn,"--n-box-shadow-hover-warning":dn,"--n-border-warning":un,"--n-border-focus-warning":fn,"--n-border-hover-warning":hn,"--n-border-active-warning":vn,"--n-color-active-error":gn,"--n-box-shadow-focus-error":bn,"--n-box-shadow-active-error":pn,"--n-box-shadow-hover-error":mn,"--n-border-error":yn,"--n-border-focus-error":wn,"--n-border-hover-error":Cn,"--n-border-active-error":xn,"--n-clear-size":Tn,"--n-clear-color":kn,"--n-clear-color-hover":Sn,"--n-clear-color-pressed":Rn,"--n-arrow-size":zn,"--n-font-weight":ct}}),Oe=Ae?qe("internal-selection",E(()=>e.size[0]),Ee,e):void 0;return{mergedTheme:S,mergedClearable:R,mergedClsPrefix:t,rtlEnabled:o,patternInputFocused:w,filterablePlaceholder:P,label:b,selected:m,showTagsPanel:C,isComposing:Y,counterRef:v,counterWrapperRef:h,patternInputMirrorRef:r,patternInputRef:a,selfRef:i,multipleElRef:l,singleElRef:f,patternInputWrapperRef:c,overflowRef:F,inputTagElRef:z,handleMouseDown:U,handleFocusin:x,handleClear:L,handleMouseEnter:ee,handleMouseLeave:Q,handleDeleteOption:ne,handlePatternKeyDown:he,handlePatternInputInput:g,handlePatternInputBlur:xe,handlePatternInputFocus:Se,handleMouseEnterCounter:Ve,handleMouseLeaveCounter:We,handleFocusout:K,handleCompositionEnd:ge,handleCompositionStart:$,onPopoverUpdateShow:He,focus:ue,focusInput:Re,blur:be,blurInput:me,updateCounter:ye,getCounter:De,getTail:Ke,renderLabel:e.renderLabel,cssVars:Ae?void 0:Ee,themeClass:Oe?.themeClass,onRender:Oe?.onRender}},render(){const{status:e,multiple:t,size:n,disabled:o,filterable:r,maxTagCount:a,bordered:i,clsPrefix:l,ellipsisTagPopoverProps:f,onRender:c,renderTag:v,renderLabel:h}=this;c?.();const F=a==="responsive",z=typeof a=="number",C=F||z,w=(u(),Z(Gn,null,{default:()=>(u(),Z(ro,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>this.$slots.arrow?.()},1032,["clsPrefix","loading","showArrow","showClear","onClear"]))},1024));let I;if(t){const{labelField:S}=this,R=X=>(u(),k("div",{class:M(`${l}-base-selection-tag-wrapper`),key:X.value},[v?(u(),k(ae,{key:0},[T(()=>v({option:X,handleClose:()=>{this.handleDeleteOption(X)}}))],64)):(u(),Z(mt,{key:1,size:n,closable:!X.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(X)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>h?h(X,!0):$e(X[S],X,!0)},1032,["size","closable","disabled","onClose"]))],2)),P=()=>(z?this.selectedOptions.slice(0,a):this.selectedOptions).map(R),b=r?(u(),k("div",{class:M(`${l}-base-selection-input-tag`),ref:"inputTagElRef",key:"__input-tag__"},[ce("input",ze(this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd}),null,16,rr),ce("span",{ref:"patternInputMirrorRef",class:M(`${l}-base-selection-input-tag__mirror`)},[T(()=>this.pattern)],2)],2)):null,m=F?()=>(u(),k("div",{class:M(`${l}-base-selection-tag-wrapper`),ref:"counterWrapperRef"},[(u(),Z(mt,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o},null,8,["size","onMouseenter","onMouseleave","disabled"]))],2)):void 0;let O;if(z){const X=this.selectedOptions.length-a;X>0&&(O=(p=>(u(),k("div",{class:M(`${l}-base-selection-tag-wrapper`),key:"__counter__"},[(u(),Z(mt,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${X}`},1032,["size","onMouseenter","disabled"]))],2)))())}const W=F?r?(u(),Z(Nt,{key:3,ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:P,counter:m,tail:()=>b},1032,["updateCounter","getCounter","getTail"])):(u(),Z(Nt,{key:4,ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:P,counter:m},1032,["updateCounter","getCounter"])):z&&O?P().concat(O):P(),j=C?()=>(u(),k("div",{class:M(`${l}-base-selection-popover`)},[F?(u(),k(ae,{key:0},[T(()=>P())],64)):(u(),k(ae,{key:1},[T(()=>this.selectedOptions.map(R))],64))],2)):void 0,te=C?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover,...f}:null,H=!this.selected&&(!this.active||!this.pattern&&!this.isComposing)?(u(),k("div",{key:5,class:M(`${l}-base-selection-placeholder ${l}-base-selection-overlay`)},[ce("div",{class:M(`${l}-base-selection-placeholder__inner`)},[T(()=>this.placeholder)],2)],2)):null,oe=r?(u(),k("div",{key:6,ref:"patternInputWrapperRef",class:M(`${l}-base-selection-tags`)},[T(()=>W),F?T(()=>null):(u(),k(ae,{key:1},[T(()=>b)],64)),T(()=>w)],2)):(u(),k("div",{key:7,ref:"multipleElRef",class:M(`${l}-base-selection-tags`),tabindex:o?void 0:0},[T(()=>W),T(()=>w)],10,lr));I=(X=>(u(),k(ae,{key:8},[C?(u(),Z(In,ze({key:0},te,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>oe,default:j},1040)):(u(),k(ae,{key:1},[T(()=>oe)],64)),T(()=>H)],64)))()}else if(r){const S=this.pattern||this.isComposing,R=this.active?!S:!this.selected,P=this.active?!1:this.selected;I=(b=>(u(),k("div",{key:9,ref:"patternInputWrapperRef",class:M(`${l}-base-selection-label`),title:this.patternInputFocused?void 0:Dt(this.label)},[ce("input",ze(this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd}),null,16,ar),P?(u(),k("div",{class:M(`${l}-base-selection-label__render-label ${l}-base-selection-overlay`),key:"input"},[ce("div",{class:M(`${l}-base-selection-overlay__wrapper`)},[v?(u(),k(ae,{key:0},[T(()=>v({option:this.selectedOption,handleClose:()=>{}}))],64)):(u(),k(ae,{key:1},[h?(u(),k(ae,{key:0},[T(()=>h(this.selectedOption,!0))],64)):(u(),k(ae,{key:1},[T(()=>$e(this.label,this.selectedOption,!0))],64))],64))],2)],2)):T(()=>null),R?(u(),k("div",{class:M(`${l}-base-selection-placeholder ${l}-base-selection-overlay`),key:"placeholder"},[ce("div",{class:M(`${l}-base-selection-overlay__wrapper`)},[T(()=>this.filterablePlaceholder)],2)],2)):T(()=>null),T(()=>w)],10,ir)))()}else I=(S=>(u(),k("div",{key:10,ref:"singleElRef",class:M(`${l}-base-selection-label`),tabindex:this.disabled?void 0:0},[this.label!==void 0?(u(),k("div",{class:M(`${l}-base-selection-input`),title:Dt(this.label),key:"input"},[ce("div",{class:M(`${l}-base-selection-input__content`)},[v?(u(),k(ae,{key:0},[T(()=>v({option:this.selectedOption,handleClose:()=>{}}))],64)):(u(),k(ae,{key:1},[h?(u(),k(ae,{key:0},[T(()=>h(this.selectedOption,!0))],64)):(u(),k(ae,{key:1},[T(()=>$e(this.label,this.selectedOption,!0))],64))],64))],2)],10,["title"])):(u(),k("div",{class:M(`${l}-base-selection-placeholder ${l}-base-selection-overlay`),key:"placeholder"},[ce("div",{class:M(`${l}-base-selection-placeholder__inner`)},[T(()=>this.placeholder)],2)],2)),T(()=>w)],10,sr)))();return u(),k("div",{ref:"selfRef",class:M([`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}]),style:Ne(this.cssVars),onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},[T(()=>I),i?(u(),k("div",{key:0,class:M(`${l}-base-selection__border`)},null,2)):T(()=>null),i?(u(),k("div",{key:2,class:M(`${l}-base-selection__state-border`)},null,2)):T(()=>null)],46,cr)}}),ur=fe([V("select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + font-weight: var(--n-font-weight); + `),V("select-menu",` + margin: 4px 0; + box-shadow: var(--n-menu-box-shadow); + `,[Zt({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]);const fr={...Ce.props,to:kt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearCreatedOptionsOnClear:{type:Boolean,default:!0},clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},scrollbarProps:Object,onChange:[Function,Array],items:Array};var pr=ve({name:"Select",props:fr,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:o,inlineThemeDisabled:r,mergedComponentPropsRef:a}=Ge(e),i=Ce("Select","-select",ur,oo,e,t),l=A(e.defaultValue),f=ie(e,"value"),c=At(f,l),v=A(!1),h=A(""),F=lo(e,["items","options"]),z=A([]),C=A([]),w=E(()=>C.value.concat(z.value).concat(F.value)),I=E(()=>{const{filter:s}=e;if(s)return s;const{labelField:y,valueField:B}=e;return(_,G)=>{if(!G)return!1;const q=G[y];if(typeof q=="string")return xt(_,q);const J=G[B];return typeof J=="string"?xt(_,J):typeof J=="number"?xt(_,String(J)):!1}}),S=E(()=>{if(e.remote)return F.value;{const{value:s}=w,{value:y}=h;return!y.length||!e.filterable?s:tr(s,I.value,y,e.childrenField)}}),R=E(()=>{const{valueField:s,childrenField:y}=e,B=er(s,y);return Xo(S.value,B)}),P=E(()=>nr(w.value,e.valueField,e.childrenField)),b=A(!1),m=At(ie(e,"show"),b),O=A(null),W=A(null),j=A(null),{localeRef:te}=Xt("Select"),H=E(()=>e.placeholder??te.value.placeholder),oe=[],X=A(new Map),p=E(()=>{const{fallbackOption:s}=e;if(s===void 0){const{labelField:y,valueField:B}=e;return _=>({[y]:String(_),[B]:_})}return s===!1?!1:y=>Object.assign(s(y),{value:y})});function x(s){const y=e.remote,{value:B}=X,{value:_}=P,{value:G}=p,q=[];return s.forEach(J=>{if(_.has(J))q.push(_.get(J));else if(y&&B.has(J))q.push(B.get(J));else if(G){const se=G(J);se&&q.push(se)}}),q}const K=E(()=>{if(e.multiple){const{value:s}=c;return Array.isArray(s)?x(s):[]}return null}),L=E(()=>{const{value:s}=c;return!e.multiple&&!Array.isArray(s)?s===null?null:x([s])[0]||null:null}),ee=Xn(e,{mergedSize:s=>{const{size:y}=e;if(y)return y;const{mergedSize:B}=s||{};if(B?.value)return B.value;const _=a?.value?.Select?.size;return _||"medium"}}),{mergedSizeRef:Q,mergedDisabledRef:U,mergedStatusRef:ne}=ee;function Y(s,y){const{onChange:B,"onUpdate:value":_,onUpdateValue:G}=e,{nTriggerFormChange:q,nTriggerFormInput:J}=ee;B&&pe(B,s,y),G&&pe(G,s,y),_&&pe(_,s,y),l.value=s,q(),J()}function he(s){const{onBlur:y}=e,{nTriggerFormBlur:B}=ee;y&&pe(y,s),B()}function de(){const{onClear:s}=e;s&&pe(s)}function g(s){const{onFocus:y,showOnFocus:B}=e,{nTriggerFormFocus:_}=ee;y&&pe(y,s),_(),B&&be()}function $(s){const{onSearch:y}=e;y&&pe(y,s)}function ge(s){const{onScroll:y}=e;y&&pe(y,s)}function Se(){const{remote:s,multiple:y}=e;if(s){const{value:B}=X;if(y){const{valueField:_}=e;K.value?.forEach(G=>{B.set(G[_],G)})}else{const _=L.value;_&&B.set(_[e.valueField],_)}}}function xe(s){const{onUpdateShow:y,"onUpdate:show":B}=e;y&&pe(y,s),B&&pe(B,s),b.value=s}function be(){U.value||(xe(!0),b.value=!0,e.filterable&&Qe())}function ue(){xe(!1)}function Re(){h.value="",C.value=oe}const me=A(!1);function ye(){e.filterable&&(me.value=!0)}function De(){e.filterable&&(me.value=!1,m.value||Re())}function Ke(){U.value||(m.value?e.filterable?Qe():ue():be())}function Fe(s){j.value?.selfRef?.contains(s.relatedTarget)||(v.value=!1,he(s),ue())}function Pe(s){g(s),v.value=!0}function Ve(){v.value=!0}function We(s){O.value?.$el.contains(s.relatedTarget)||(v.value=!1,he(s),ue())}function He(){O.value?.focus(),ue()}function Ae(s){m.value&&(O.value?.$el.contains(Jn(s))||ue())}function Ee(s){if(!Array.isArray(s))return[];if(p.value)return Array.from(s);{const{remote:y}=e,{value:B}=P;if(y){const{value:_}=X;return s.filter(G=>B.has(G)||_.has(G))}else return s.filter(_=>B.has(_))}}function Oe(s){d(s.rawNode)}function d(s){if(U.value)return;const{tag:y,remote:B,clearFilterAfterSelect:_,valueField:G}=e;if(y&&!B){const{value:q}=C,J=q[0]||null;if(J){const se=z.value;se.length?se.push(J):z.value=[J],C.value=oe}}if(B&&X.value.set(s[G],s),e.multiple){const q=Ee(c.value),J=q.findIndex(se=>se===s[G]);if(~J){if(q.splice(J,1),y&&!B){const se=N(s[G]);~se&&(z.value.splice(se,1),_&&(h.value=""))}}else q.push(s[G]),_&&(h.value="");Y(q,x(q))}else{if(y&&!B){const q=N(s[G]);~q?z.value=[z.value[q]]:z.value=oe}Xe(),ue(),Y(s[G],s)}}function N(s){return z.value.findIndex(y=>y[e.valueField]===s)}function ct(s){m.value||be();const{value:y}=s.target;h.value=y;const{tag:B,remote:_}=e;if($(y),B&&!_){if(!y){C.value=oe;return}const{onCreate:G}=e,q=G?G(y):{[e.labelField]:y,[e.valueField]:y},{valueField:J,labelField:se}=e;F.value.some(Me=>Me[J]===q[J]||Me[se]===q[se])||z.value.some(Me=>Me[J]===q[J]||Me[se]===q[se])?C.value=oe:C.value=[q]}}function dt(s){s.stopPropagation();const{multiple:y,tag:B,remote:_,clearCreatedOptionsOnClear:G}=e;!y&&e.filterable&&ue(),B&&!_&&G&&(z.value=oe),de(),y?Y([],[]):Y(null,null)}function ut(s){!Ue(s,"action")&&!Ue(s,"empty")&&!Ue(s,"header")&&s.preventDefault()}function ft(s){ge(s)}function Ze(s){if(!e.keyboard){s.preventDefault();return}switch(s.key){case" ":if(e.filterable)break;s.preventDefault();case"Enter":if(!O.value?.isComposing){if(m.value){const y=j.value?.getPendingTmNode();y?Oe(y):e.filterable||(ue(),Xe())}else if(be(),e.tag&&me.value){const y=C.value[0];if(y){const B=y[e.valueField],{value:_}=c;e.multiple&&Array.isArray(_)&&_.includes(B)||d(y)}}}s.preventDefault();break;case"ArrowUp":if(s.preventDefault(),e.loading)return;m.value&&j.value?.prev();break;case"ArrowDown":if(s.preventDefault(),e.loading)return;m.value?j.value?.next():be();break;case"Escape":m.value&&(eo(s),ue()),O.value?.focus()}}function Xe(){O.value?.focus()}function Qe(){O.value?.focusInput()}function ht(){m.value&&W.value?.syncPosition()}Se(),_e(ie(e,"options"),Se);const vt={focus:()=>{O.value?.focus()},focusInput:()=>{O.value?.focusInput()},blur:()=>{O.value?.blur()},blurInput:()=>{O.value?.blurInput()}},Je=E(()=>{const{self:{menuBoxShadow:s}}=i.value;return{"--n-menu-box-shadow":s}}),et=r?qe("select",void 0,Je,e):void 0;return{...vt,mergedStatus:ne,mergedClsPrefix:t,mergedBordered:n,namespace:o,treeMate:R,isMounted:Qn(),triggerRef:O,menuRef:j,pattern:h,uncontrolledShow:b,mergedShow:m,adjustedTo:kt(e),uncontrolledValue:l,mergedValue:c,followerRef:W,localizedPlaceholder:H,selectedOption:L,selectedOptions:K,mergedSize:Q,mergedDisabled:U,focused:v,activeWithoutMenuOpen:me,inlineThemeDisabled:r,onTriggerInputFocus:ye,onTriggerInputBlur:De,handleTriggerOrMenuResize:ht,handleMenuFocus:Ve,handleMenuBlur:We,handleMenuTabOut:He,handleTriggerClick:Ke,handleToggle:Oe,handleDeleteOption:d,handlePatternInput:ct,handleClear:dt,handleTriggerBlur:Fe,handleTriggerFocus:Pe,handleKeydown:Ze,handleMenuAfterLeave:Re,handleMenuClickOutside:Ae,handleMenuScroll:ft,handleMenuKeydown:Ze,handleMenuMousedown:ut,mergedTheme:i,cssVars:r?void 0:Je,themeClass:et?.themeClass,onRender:et?.onRender}},render(){return u(),k("div",{class:M(`${this.mergedClsPrefix}-select`)},[Zn(Bn,null,{_:1,default:Te(()=>[(u(),Z(_n,null,{_:1,default:Te(()=>(u(),Z(dr,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{_:1,arrow:Te(()=>[this.$slots.arrow?.()])},8,["inlineThemeDisabled","status","inputProps","clsPrefix","showArrow","maxTagCount","ellipsisTagPopoverProps","bordered","active","pattern","placeholder","selectedOption","selectedOptions","multiple","renderTag","renderLabel","filterable","clearable","disabled","size","theme","labelField","valueField","themeOverrides","loading","focused","onClick","onDeleteOption","onPatternInput","onClear","onBlur","onFocus","onKeydown","onPatternBlur","onPatternFocus","onResize","ignoreComposition"])))})),(u(),Z(An,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===kt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{_:1,default:Te(()=>(u(),Z(Yt,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{_:1,default:Te(()=>this.mergedShow||this.displayDirective==="show"?(this.onRender?.(),to((u(),Z(Jo,ze(this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,this.menuProps?.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[this.menuProps?.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange,scrollbarProps:this.scrollbarProps}),{_:1,empty:Te(()=>[this.$slots.empty?.()]),header:Te(()=>[this.$slots.header?.()]),action:Te(()=>[this.$slots.action?.()])},16,["onResize","inlineThemeDisabled","virtualScroll","class","clsPrefix","labelField","valueField","nodeProps","theme","themeOverrides","treeMate","multiple","size","renderOption","renderLabel","value","style","onToggle","onScroll","onFocus","onBlur","onKeydown","onTabOut","onMousedown","show","showCheckmark","resetMenuOnOptionsChange","scrollbarProps"])),this.displayDirective==="show"?[[no,this.mergedShow],[_t,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[_t,this.handleMenuClickOutside,void 0,{capture:!0}]])):null)},8,["appear","onAfterLeave"])))},8,["show","to","teleportDisabled","containerClass","width","placement"]))])})],2)}});export{pr as S,mt as T,Jo as a,er as b,Xo as c,Ue as h}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-3yOnzd5g.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-3yOnzd5g.css new file mode 100644 index 00000000..4cf3b9f9 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-3yOnzd5g.css @@ -0,0 +1 @@ +.service-error[data-v-123136ea]{min-height:100vh;display:grid;place-items:center;padding:24px;position:relative;z-index:1;background:#070b0f99}.card[data-v-123136ea]{width:min(460px,100%);padding:28px 30px 24px;border-radius:var(--radius);border:1px solid var(--line);background:var(--panel);box-shadow:0 24px 60px #00000073}.kicker[data-v-123136ea]{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;letter-spacing:1px;color:var(--warn);text-transform:uppercase}.card h1[data-v-123136ea]{margin:10px 0 0;font-size:24px;font-weight:680;letter-spacing:-.3px}.card p[data-v-123136ea]{margin:12px 0 0;font-size:12.5px;line-height:1.75;color:var(--muted)}.result[data-v-123136ea]{margin-top:16px;padding:9px 12px;border-radius:9px;font-size:12px;line-height:1.6;color:#fcd34d;background:#fbbf2414;border:1px solid rgba(251,191,36,.24)}.actions[data-v-123136ea]{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.foot[data-v-123136ea]{margin-top:26px;font-size:9.5px;letter-spacing:2px;color:var(--muted-2)} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-DxAvLK-K.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-DxAvLK-K.js new file mode 100644 index 00000000..adc8c6b8 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-DxAvLK-K.js @@ -0,0 +1 @@ +import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-Ch4EWX-G.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-DQkFygL-.js";import{R as y}from"./RefreshOutline-DsgjGZK9.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-C7TOuPQQ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-C7TOuPQQ.js new file mode 100644 index 00000000..22162d74 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-C7TOuPQQ.js @@ -0,0 +1,3 @@ +import{I as b}from"./Input-DOY9MBk2.js";import{d as O,o as d,c as p,y as re,a as l,ao as A,aV as Y,b as de,e as i,w as a,u as n,B as g,t as m,f as u,g as E,F as T,i as pe,bh as ve,r as v,J as fe,ap as me,bi as ce}from"./index-Ch4EWX-G.js";import{S as U}from"./Select-DlP0Rw4u.js";import{N as _,_ as _e}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as ge}from"./use-message-sIwnQEJL.js";import{I as R,D as ye}from"./DocumentTextOutline-BdYVNaS7.js";import{S as ke}from"./Spin-BbwWICDg.js";import{S as I}from"./Switch-4rsLpKoT.js";import{v as be}from"./filename-template-DBJXvN0y.js";import{e as h,i as D}from"./runtime-bridge-DmDzFGpU.js";import{V as K}from"./VideocamOutline-Dxd9Z4sO.js";import{R as we}from"./RefreshOutline-DsgjGZK9.js";import"./use-compitable-CjxNERC_.js";const xe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},he=O({name:"ColorPaletteOutline",render:function(f,r){return d(),p("svg",xe,r[0]||(r[0]=[re('',6)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ze=O({name:"KeyOutline",render:function(f,r){return d(),p("svg",Ce,r[0]||(r[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},J=O({name:"SaveOutline",render:function(f,r){return d(),p("svg",Se,r[0]||(r[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},j=O({name:"ServerOutline",render:function(f,r){return d(),p("svg",Me,r[0]||(r[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Ue=()=>A("/v1/configuration"),Ae=w=>Y("/v1/configuration",w),Oe=[{label:"FFmpeg",value:"ffmpeg"},{label:"Stream Gears(推荐,边录边传)",value:"stream-gears"},{label:"Streamlink",value:"streamlink"},{label:"同步下载器 sync-downloader",value:"sync-downloader"},{label:"Mesio",value:"mesio"}],Be=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Ne=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Pe=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],Ve={class:"page"},Fe={class:"page-head"},qe={class:"toolbar"},Ee={key:0,class:"loading"},Re={key:1,class:"error-panel"},De={class:"error-msg"},Le={key:2,class:"sections"},He={class:"section panel"},Te={class:"sec-head"},Ie={class:"sec-icon accent"},je={class:"fields"},$e={class:"field wide"},Ge={class:"field wide"},Ke={class:"field"},Je={class:"field"},Ye={class:"field"},Qe={class:"field"},We={class:"section panel"},Xe={class:"sec-head"},Ze={class:"sec-icon cyan"},el={class:"fields"},ll={class:"field"},sl={class:"field"},nl={class:"field wide"},tl={class:"section panel"},il={class:"sec-head"},ol={class:"sec-icon live"},al={class:"fields"},ul={class:"field"},rl={class:"field"},dl={class:"field switch-field"},pl={class:"field switch-field"},vl={class:"field switch-field"},fl={class:"section panel"},ml={class:"sec-head"},cl={class:"sec-icon live"},_l={class:"fields"},gl={class:"field wide"},yl={class:"section panel"},kl={class:"sec-head"},bl={class:"sec-icon muted"},wl={class:"readonly"},xl={class:"mono"},hl={class:"mono"},Cl={class:"mono"},zl={class:"mono"},Sl={class:"section panel"},Ml={class:"sec-head"},Ul={class:"sec-icon accent"},Al={class:"fields"},Ol={class:"field wide"},Bl={class:"field wide"},Nl={class:"field wide"},Pl={class:"support-actions"},Vl={key:0,class:"inline-hint"},Fl={key:1,class:"readonly engine-status"},ql={class:"mono"},El={class:"mono"},Rl={key:2,class:"diagnostic-block"},Dl={key:0,class:"inline-error"},Ll={key:1,class:"inline-hint"},Hl={key:2,class:"diag-preview"},Tl={class:"support-actions"},Il={class:"support-note"},jl={class:"section panel"},$l={class:"sec-head"},Gl={class:"sec-icon cyan"},Kl={class:"fields"},Jl={class:"field wide"},Yl=O({__name:"SettingsView",setup(w){const f=ge(),r=v(null),C=v(!0),B=v(!1),N=v(""),s=fe({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"ffmpeg",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function $(t){s.sync_save_dir=t.sync_save_dir??"",s.filename_prefix=t.filename_prefix??"",s.file_size_gb=Number(((t.file_size??262144e4)/1024/1024/1024).toFixed(3)),s.segment_time=t.segment_time??"",s.filtering_threshold=t.filtering_threshold??1,s.min_free_space_gb=Number(((t.min_free_space??0)/1024/1024/1024).toFixed(2)),s.checker_sleep=t.checker_sleep??10,s.downloader=t.downloader??"ffmpeg",s.ffmpeg_path=t.ffmpeg_path??"",s.douyin_quality=t.douyin_quality??"origin",s.douyin_protocol=t.douyin_protocol??"flv",s.douyin_true_origin=t.douyin_true_origin??!0,s.douyin_double_screen=t.douyin_double_screen??!1,s.douyin_danmaku=t.douyin_danmaku??!1,s.kuaishou_cookie=t.kuaishou_cookie??""}async function L(){C.value=!0,N.value="";try{r.value=await Ue(),$(r.value)}catch(t){N.value=t instanceof Error?t.message:"读取配置失败"}finally{C.value=!1}}async function Q(){if(!r.value)return;const t=be(s.filename_prefix);if(t){f.error(t);return}B.value=!0;try{const e={...r.value,sync_save_dir:s.sync_save_dir.trim()||null,filename_prefix:s.filename_prefix.trim()||null,file_size:Math.round(s.file_size_gb*1024*1024*1024),segment_time:s.segment_time.trim()||null,filtering_threshold:s.filtering_threshold??1,min_free_space:Math.round((s.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:s.checker_sleep||10,downloader:s.downloader,ffmpeg_path:s.ffmpeg_path.trim()||null,douyin_quality:s.douyin_quality,douyin_protocol:s.douyin_protocol,douyin_true_origin:s.douyin_true_origin,douyin_double_screen:s.douyin_double_screen,douyin_danmaku:s.douyin_danmaku,kuaishou_cookie:s.kuaishou_cookie.trim()||null},o=await Ae(e);r.value=o,$(o),f.success("设置已保存并生效")}catch(e){f.error(h(e))}finally{B.value=!1}}const x=v(null),P=v("sidecar"),G=v(""),V=v(""),y=v(!1),z=v(""),k=v(!0);async function F(){if(!D()){k.value=!1,z.value="引擎连接模式仅在 MiniApp 中可用";return}y.value=!0,z.value="";try{const[t,e]=await Promise.all([A("/_miniapp/runtime-status"),A("/_miniapp/connection-config")]);x.value=t,P.value=e.mode==="remote"?"remote":"sidecar",G.value=e.binaryPath??"",V.value=e.ffmpegPath??"",k.value=!0}catch(t){x.value=null,k.value=!1,z.value=h(t)||"读取引擎状态失败(接口尚未就绪)"}finally{y.value=!1}}async function W(){if(D()){y.value=!0;try{await Y("/_miniapp/connection-config",{mode:P.value,ffmpegPath:V.value}),f.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await F()}catch(t){f.error(h(t))}finally{y.value=!1}}}async function X(){if(D()){y.value=!0;try{await me("/_miniapp/engine/restart"),f.success("引擎重启指令已发送"),await F()}catch(t){f.error(h(t))}finally{y.value=!1}}}const c=v(""),H=v(!1),S=v(""),q=v(!1);function Z(t){const e=typeof t?.ts=="string"?t.ts:"",o=typeof t?.level=="string"?t.level:"info",ae=typeof t?.message=="string"?t.message:"",ue=typeof t?.fields=="string"&&t.fields?" "+t.fields:"";return(e?e+" ":"")+"["+o+"] "+ae+ue}async function ee(){if(S.value="",!D()){c.value="",S.value="诊断日志仅在 MiniApp 中可用";return}H.value=!0;try{const[t,e]=await Promise.all([A("/_miniapp/diagnostics"),A("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(t?.lines)?t.lines:[];o.length?c.value=o.map(Z).join(` +`):e?.lastError?c.value="最近错误:"+e.lastError:c.value="暂无最近错误记录"}catch(t){S.value=h(t),c.value=""}finally{H.value=!1}}function le(){if(!c.value)return;const t=new Blob([c.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(t),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function se(){const t=c.value.trim();if(!t)return;const e=window.miniapp;if(!e?.host?.composer?.append){f.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: +`+t),f.success("已送入输入框,请确认后发送")}catch(o){f.error(h(o))}}const ne=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function te(t){ce(t),f.success(t==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const M=v("default");function ie(){M.value=typeof Notification>"u"?"unsupported":Notification.permission}async function oe(){if(!(typeof Notification>"u"))try{M.value=await Notification.requestPermission()}catch{}}return de(()=>{L(),F(),ee(),ie()}),(t,e)=>(d(),p("div",Ve,[l("div",Fe,[e[20]||(e[20]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",qe,[i(n(g),{disabled:C.value||B.value,onClick:L},{default:a(()=>[...e[18]||(e[18]=[u("重新读取",-1)])]),_:1},8,["disabled"]),i(n(g),{type:"primary",loading:B.value,disabled:C.value||!r.value,onClick:Q},{icon:a(()=>[i(n(_),null,{default:a(()=>[i(n(J))]),_:1})]),default:a(()=>[e[19]||(e[19]=u(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),C.value?(d(),p("div",Ee,[i(n(ke),{size:"large"})])):N.value?(d(),p("div",Re,[e[22]||(e[22]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",De,m(N.value),1),i(n(g),{size:"small",onClick:L},{default:a(()=>[...e[21]||(e[21]=[u("重试",-1)])]),_:1})])):(d(),p("div",Le,[l("section",He,[l("header",Te,[l("span",Ie,[i(n(_),{size:17},{default:a(()=>[i(n(j))]),_:1})]),e[23]||(e[23]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",je,[l("label",$e,[e[24]||(e[24]=l("span",null,[u("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(n(b),{value:s.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>s.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",Ge,[e[25]||(e[25]=l("span",null,[u("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(n(b),{value:s.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>s.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[26]||(e[26]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",Ke,[e[28]||(e[28]=l("span",null,"分段大小(GB)",-1)),i(n(R),{value:s.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>s.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:a(()=>[...e[27]||(e[27]=[u("GB",-1)])]),_:1},8,["value"])]),l("label",Je,[e[29]||(e[29]=l("span",null,[u("分段时间 "),l("em",null,"segment_time")],-1)),i(n(b),{value:s.segment_time,"onUpdate:value":e[3]||(e[3]=o=>s.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[30]||(e[30]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",Ye,[e[32]||(e[32]=l("span",null,"碎片过滤阈值(MB)",-1)),i(n(R),{value:s.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>s.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:a(()=>[...e[31]||(e[31]=[u("MB",-1)])]),_:1},8,["value"]),e[33]||(e[33]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",Qe,[e[35]||(e[35]=l("span",null,[u("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(n(R),{value:s.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>s.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:a(()=>[...e[34]||(e[34]=[u("GB",-1)])]),_:1},8,["value"]),e[36]||(e[36]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",We,[l("header",Xe,[l("span",Ze,[i(n(_),{size:17},{default:a(()=>[i(n(K))]),_:1})]),e[37]||(e[37]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",el,[l("label",ll,[e[39]||(e[39]=l("span",null,"检测间隔(秒)",-1)),i(n(R),{value:s.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>s.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:a(()=>[...e[38]||(e[38]=[u("秒",-1)])]),_:1},8,["value"]),e[40]||(e[40]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",sl,[e[41]||(e[41]=l("span",null,"下载器",-1)),i(n(U),{value:s.downloader,"onUpdate:value":e[7]||(e[7]=o=>s.downloader=o),options:n(Oe)},null,8,["value","options"])]),l("label",nl,[e[42]||(e[42]=l("span",null,[u("FFmpeg 路径(录制引擎) "),l("em",null,"ffmpeg_path")],-1)),i(n(b),{value:s.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>s.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",tl,[l("header",il,[l("span",ol,[i(n(_),{size:17},{default:a(()=>[i(n(K))]),_:1})]),e[43]||(e[43]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",al,[l("label",ul,[e[44]||(e[44]=l("span",null,"录制画质",-1)),i(n(U),{value:s.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>s.douyin_quality=o),options:n(Be)},null,8,["value","options"])]),l("label",rl,[e[45]||(e[45]=l("span",null,"直播协议",-1)),i(n(U),{value:s.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>s.douyin_protocol=o),options:n(Ne)},null,8,["value","options"])]),l("div",dl,[e[46]||(e[46]=l("span",null,[u("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(n(I),{value:s.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>s.douyin_true_origin=o)},null,8,["value"]),e[47]||(e[47]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",pl,[e[48]||(e[48]=l("span",null,"双屏 / 连屏直播",-1)),i(n(I),{value:s.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>s.douyin_double_screen=o)},null,8,["value"]),e[49]||(e[49]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",vl,[e[50]||(e[50]=l("span",null,[u("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(n(I),{value:s.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>s.douyin_danmaku=o)},null,8,["value"]),e[51]||(e[51]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",fl,[l("header",ml,[l("span",cl,[i(n(_),{size:17},{default:a(()=>[i(n(ze))]),_:1})]),e[52]||(e[52]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",_l,[l("label",gl,[e[53]||(e[53]=l("span",null,[u("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(n(b),{value:s.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>s.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[54]||(e[54]=l("small",null,"只在本机保存。",-1))])])]),l("section",yl,[l("header",kl,[l("span",bl,[i(n(_),{size:17},{default:a(()=>[i(n(j))]),_:1})]),e[55]||(e[55]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",wl,[l("div",null,[e[56]||(e[56]=l("span",null,"并发录制池",-1)),l("b",xl,m(r.value?.pool1_size??"—")+" / "+m(r.value?.pool2_size??"—"),1)]),l("div",null,[e[57]||(e[57]=l("span",null,"线程数",-1)),l("b",hl,m(r.value?.threads??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"投稿后保留",-1)),l("b",Cl,m(r.value?.retention_hours?r.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"合并阈值",-1)),l("b",zl,m(r.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Sl,[l("header",Ml,[l("span",Ul,[i(n(_),{size:17},{default:a(()=>[i(n(j))]),_:1})]),e[60]||(e[60]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",Al,[l("label",Ol,[e[61]||(e[61]=l("span",null,"运行模式",-1)),i(n(U),{value:P.value,"onUpdate:value":e[15]||(e[15]=o=>P.value=o),options:n(Pe),disabled:!k.value},null,8,["value","options","disabled"])]),l("label",Bl,[e[62]||(e[62]=l("span",null,"biliup-cli 路径(只读)",-1)),i(n(b),{value:G.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!k.value},null,8,["value","disabled"]),e[63]||(e[63]=l("small",{class:"inline-hint"},[u(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),u(" 的 "),l("code",null,"binaryPath"),u(" 字段。 ")],-1))]),l("label",Nl,[e[64]||(e[64]=l("span",null,"FFmpeg 路径(Sidecar)",-1)),i(n(b),{value:V.value,"onUpdate:value":e[16]||(e[16]=o=>V.value=o),placeholder:"留空使用系统 PATH",disabled:!k.value},null,8,["value","disabled"])])]),l("div",Pl,[i(n(g),{loading:y.value,onClick:F},{icon:a(()=>[i(n(_),null,{default:a(()=>[i(n(we))]),_:1})]),default:a(()=>[e[65]||(e[65]=u(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(n(g),{type:"primary",loading:y.value,disabled:!k.value,onClick:W},{icon:a(()=>[i(n(_),null,{default:a(()=>[i(n(J))]),_:1})]),default:a(()=>[e[66]||(e[66]=u(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(n(g),{loading:y.value,disabled:!k.value,onClick:X},{default:a(()=>[...e[67]||(e[67]=[u(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(n(g),{quaternary:"",onClick:e[17]||(e[17]=o=>q.value=!q.value)},{icon:a(()=>[i(n(_),null,{default:a(()=>[i(n(ye))]),_:1})]),default:a(()=>[u(" "+m(q.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),z.value?(d(),p("div",Vl,m(z.value),1)):E("",!0),x.value?(d(),p("div",Fl,[l("div",null,[e[68]||(e[68]=l("span",null,"引擎模式",-1)),l("b",ql,m(x.value.mode??"—"),1)]),l("div",null,[e[69]||(e[69]=l("span",null,"就绪状态",-1)),l("b",null,m(x.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[70]||(e[70]=l("span",null,"进程 PID",-1)),l("b",El,m(x.value.pid??"—"),1)])])):E("",!0),q.value?(d(),p("div",Rl,[e[73]||(e[73]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),S.value?(d(),p("div",Dl,m(S.value),1)):E("",!0),H.value?(d(),p("div",Ll,"读取中…")):(d(),p("pre",Hl,m(c.value||"暂无诊断信息"),1)),l("div",Tl,[i(n(g),{size:"small",disabled:!c.value,onClick:le},{default:a(()=>[...e[71]||(e[71]=[u("本地导出",-1)])]),_:1},8,["disabled"]),i(n(g),{size:"small",disabled:!c.value,onClick:se},{default:a(()=>[...e[72]||(e[72]=[u("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):E("",!0),l("p",Il,[e[75]||(e[75]=u(" 通知权限: ",-1)),M.value==="granted"?(d(),p(T,{key:0},[u("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):M.value==="denied"?(d(),p(T,{key:1},[u("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):M.value==="unsupported"?(d(),p(T,{key:2},[u("当前环境不支持系统通知。")],64)):(d(),pe(n(g),{key:3,size:"tiny",quaternary:"",onClick:oe},{default:a(()=>[...e[74]||(e[74]=[u("开启系统通知",-1)])]),_:1}))])]),l("section",jl,[l("header",$l,[l("span",Gl,[i(n(_),{size:17},{default:a(()=>[i(n(he))]),_:1})]),e[76]||(e[76]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",Kl,[l("label",Jl,[e[77]||(e[77]=l("span",null,"主题模式",-1)),i(n(U),{value:n(ve),options:ne,"onUpdate:value":te},null,8,["value"]),e[78]||(e[78]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),rs=_e(Yl,[["__scopeId","data-v-40ed5347"]]);export{rs as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-ogFFTr5l.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-ogFFTr5l.css new file mode 100644 index 00000000..ec200033 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-ogFFTr5l.css @@ -0,0 +1 @@ +.loading[data-v-40ed5347]{display:grid;place-items:center;padding:90px 0}.sections[data-v-40ed5347]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-40ed5347]{padding:20px 22px 22px}.sec-head[data-v-40ed5347]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-40ed5347]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-40ed5347]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-40ed5347]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-40ed5347]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-40ed5347]{color:var(--muted)}.sec-head h2[data-v-40ed5347]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-40ed5347]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-40ed5347]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-40ed5347]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-40ed5347]{grid-column:1 / -1}.field>span[data-v-40ed5347]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-40ed5347]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-40ed5347]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-40ed5347]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-40ed5347]{grid-column:1 / -1}.readonly[data-v-40ed5347]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-40ed5347]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-40ed5347]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-40ed5347]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-40ed5347]{font-size:13px;font-weight:600}.error-panel[data-v-40ed5347]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-40ed5347]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-40ed5347]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-40ed5347]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-40ed5347]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-40ed5347]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-40ed5347]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-40ed5347]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-40ed5347]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}@media(max-width:640px){.fields[data-v-40ed5347],.readonly[data-v-40ed5347],.engine-status[data-v-40ed5347]{grid-template-columns:1fr}.section[data-v-40ed5347]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-9SicR-7j.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-9SicR-7j.js new file mode 100644 index 00000000..c2737658 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-9SicR-7j.js @@ -0,0 +1,167 @@ +import{T as ee,S as pe}from"./Select-DlP0Rw4u.js";import{I as te}from"./Input-DOY9MBk2.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b5 as ke,b6 as _e,b7 as xe,b8 as $e,b9 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,ba as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,z as Fe,e as d,w as v,u as l,B as T,t as b,g as R,A as de,aq as Ye,f as $,C as He}from"./index-Ch4EWX-G.js";import{C as ve}from"./CheckboxGroup-CVNCmOpb.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as Je}from"./use-message-sIwnQEJL.js";import{S as Ke}from"./Spin-BbwWICDg.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-Bwk608FY.js";import{S as et}from"./SearchOutline--3GBf81B.js";import{V as tt}from"./VideocamOutline-Dxd9Z4sO.js";import{D as me}from"./DownloadOutline-CvleeChj.js";import{R as rt}from"./RefreshOutline-DsgjGZK9.js";import"./use-compitable-CjxNERC_.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function D(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,I=`M ${V},${V} m ${B},${g} + a ${h},${h} 0 1 1 ${f},-100 + a ${h},${h} 0 1 1 0,${O}`,M=Math.PI*2*h;return{pathString:I,pathStyle:{stroke:u==="rail"?y:typeof t.fillColor=="object"?`url(#${k.value})`:y,strokeDasharray:`${Math.min(n,100)/100*(M-z)}px ${C*8}px`,strokeDashoffset:`-${z/2}px`,transformOrigin:p?"center":void 0,transform:p?`rotate(${p}deg)`:void 0}}}const x=()=>{const n=typeof t.fillColor=="object",p=n?t.fillColor.stops[0]:"",y=n?t.fillColor.stops[1]:"";return n&&(o(),s("defs",null,[r("linearGradient",{id:k.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[r("stop",{offset:"0%","stop-color":p},null,8,it),r("stop",{offset:"100%","stop-color":y},null,8,at)],8,ot)]))};return()=>{const{fillColor:n,railColor:p,strokeWidth:y,offsetDegree:u,status:z,percentage:C,showIndicator:q,indicatorTextColor:h,unit:B,gapOffsetDegree:g,clsPrefix:f}=t,{pathString:O,pathStyle:V}=D(100,0,p,"rail"),{pathString:I,pathStyle:M}=D(C,u,n,"fill"),A=100+y;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${f}-progress-graph-circle`),style:j({transform:g?`rotate(${g}deg)`:void 0})},[(o(),s("svg",{viewBox:`0 0 ${A} ${A}`},[N(()=>x()),r("g",null,[r("path",{class:w(`${f}-progress-graph-circle-rail`),d:O,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(V)},null,14,lt)]),r("g",null,[r("path",{class:w([`${f}-progress-graph-circle-fill`,C===0&&`${f}-progress-graph-circle-fill--empty`]),d:I,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(M)},null,14,nt)])],8,st))],6)],2),q?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),role:"none"},[N(()=>c.default())],2)):(o(),s(E,{key:1},[z!=="default"?(o(),s("div",{key:0,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>ct[z]},1032,["clsPrefix"]))],2)):(o(),s("div",{key:1,class:w(`${f}-progress-text`),style:j({color:h}),role:"none"},[r("span",{class:w(`${f}-progress-text__percentage`)},[N(()=>C)],2),r("span",{class:w(`${f}-progress-text__unit`)},[N(()=>B)],2)],6))],64))])):N(()=>null)],2)}}});const dt={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ft=H({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(t,{slots:c}){const k=W(()=>K(t.height)),D=W(()=>typeof t.fillColor=="object"?`linear-gradient(to right, ${t.fillColor?.stops[0]} , ${t.fillColor?.stops[1]})`:t.fillColor),x=W(()=>t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):""),n=W(()=>t.fillBorderRadius!==void 0?K(t.fillBorderRadius):t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:p,railColor:y,railStyle:u,percentage:z,unit:C,indicatorTextColor:q,status:h,showIndicator:B,processing:g,clsPrefix:f}=t;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w([`${f}-progress-graph-line`,{[`${f}-progress-graph-line--indicator-${p}`]:!0}])},[r("div",{class:w(`${f}-progress-graph-line-rail`),style:j([{backgroundColor:y,height:k.value,borderRadius:x.value},u])},[r("div",{class:w([`${f}-progress-graph-line-fill`,g&&`${f}-progress-graph-line-fill--processing`]),style:j({maxWidth:`${t.percentage}%`,background:D.value,height:k.value,lineHeight:k.value,borderRadius:n.value})},[p==="inside"?(o(),s("div",{key:0,class:w(`${f}-progress-graph-line-indicator`),style:j({color:q})},[c.default?(o(),s(E,{key:0},[N(()=>c.default())],64)):(o(),s(E,{key:1},[N(()=>`${z}${C}`)],64))],6)):N(()=>null)],6)],6)],2)],2),B&&p==="outside"?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),style:j({color:q}),role:"none"},[N(()=>c.default())],6)):(o(),s(E,{key:1},[h==="default"?(o(),s("div",{key:0,role:"none",class:w(`${f}-progress-icon ${f}-progress-icon--as-text`),style:j({color:q})},[N(()=>z),N(()=>C)],6)):(o(),s("div",{key:1,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>dt[h]},1032,["clsPrefix"]))],2))],64))])):N(()=>null)],2)}}});const pt=["id"],gt=["stop-color"],vt=["stop-color"],ht=["d","stroke-width"],yt=["d","stroke-width"],mt=["viewBox"];function be(t,c,k=100){return`m ${k/2} ${k/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var bt=H({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(t,{slots:c}){const k=W(()=>t.percentage.map((x,n)=>`${Math.PI*x/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*n)-t.circleGap*n)*2}, ${t.viewBoxWidth*8}`)),D=(x,n)=>{const p=t.fillColor[n],y=typeof p=="object"?p.stops[0]:"",u=typeof p=="object"?p.stops[1]:"";return typeof t.fillColor[n]=="object"&&(o(),s("linearGradient",{id:`gradient-${n}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},[r("stop",{offset:"0%","stop-color":y},null,8,gt),r("stop",{offset:"100%","stop-color":u},null,8,vt)],8,pt))};return()=>{const{viewBoxWidth:x,strokeWidth:n,circleGap:p,showIndicator:y,fillColor:u,railColor:z,railStyle:C,percentage:q,clsPrefix:h}=t;return o(),s("div",{class:w(`${h}-progress-content`),role:"none"},[r("div",{class:w(`${h}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${h}-progress-graph-circle`)},[(o(),s("svg",{viewBox:`0 0 ${x} ${x}`},[r("defs",null,[N(()=>q.map((B,g)=>D(B,g)))]),N(()=>q.map((B,g)=>(o(),s("g",{key:g},[r("path",{class:w(`${h}-progress-graph-circle-rail`),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j([{strokeDashoffset:0,stroke:z[g]},C[g]])},null,14,ht),r("path",{class:w([`${h}-progress-graph-circle-fill`,B===0&&`${h}-progress-graph-circle-fill--empty`]),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j({strokeDasharray:k.value[g],strokeDashoffset:0,stroke:typeof u[g]=="object"?`url(#gradient-${g})`:u[g]})},null,14,yt)]))))],8,mt))],2)],2),y&&c.default?(o(),s("div",{key:0},[r("div",{class:w(`${h}-progress-text`)},[N(()=>c.default())],2)])):N(()=>null)],2)}}}),wt=re([_("progress",{display:"inline-block"},[_("progress-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),X("line",` + width: 100%; + display: block; + `,[_("progress-content",` + display: flex; + align-items: center; + `,[_("progress-graph",{flex:1})]),_("progress-custom-content",{marginLeft:"14px"}),_("progress-icon",` + width: 30px; + padding-left: 14px; + height: var(--n-icon-size-line); + line-height: var(--n-icon-size-line); + font-size: var(--n-icon-size-line); + `,[X("as-text",` + color: var(--n-text-color-line-outer); + text-align: center; + width: 40px; + font-size: var(--n-font-size); + padding-left: 4px; + transition: color .3s var(--n-bezier); + `)])]),X("circle, dashboard",{width:"120px"},[_("progress-custom-content",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `),_("progress-text",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: inherit; + font-size: var(--n-font-size-circle); + color: var(--n-text-color-circle); + font-weight: var(--n-font-weight-circle); + transition: color .3s var(--n-bezier); + white-space: nowrap; + `),_("progress-icon",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: var(--n-icon-color); + font-size: var(--n-icon-size-circle); + `)]),X("multiple-circle",` + width: 200px; + color: inherit; + `,[_("progress-text",` + font-weight: var(--n-font-weight-circle); + color: var(--n-text-color-circle); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `)]),_("progress-content",{position:"relative"}),_("progress-graph",{position:"relative"},[_("progress-graph-circle",[re("svg",{verticalAlign:"bottom"}),_("progress-graph-circle-fill",` + stroke: var(--n-fill-color); + transition: + opacity .3s var(--n-bezier), + stroke .3s var(--n-bezier), + stroke-dasharray .3s var(--n-bezier); + `,[X("empty",{opacity:0})]),_("progress-graph-circle-rail",` + transition: stroke .3s var(--n-bezier); + overflow: hidden; + stroke: var(--n-rail-color); + `)]),_("progress-graph-line",[X("indicator-inside",[_("progress-graph-line-rail",` + height: 16px; + line-height: 16px; + border-radius: 10px; + `,[_("progress-graph-line-fill",` + height: inherit; + border-radius: 10px; + `),_("progress-graph-line-indicator",` + background: #0000; + white-space: nowrap; + text-align: right; + margin-left: 14px; + margin-right: 14px; + height: inherit; + font-size: 12px; + color: var(--n-text-color-line-inner); + transition: color .3s var(--n-bezier); + `)])]),X("indicator-inside-label",` + height: 16px; + display: flex; + align-items: center; + `,[_("progress-graph-line-rail",` + flex: 1; + transition: background-color .3s var(--n-bezier); + `),_("progress-graph-line-indicator",` + background: var(--n-fill-color); + font-size: 12px; + transform: translateZ(0); + display: flex; + vertical-align: middle; + height: 16px; + line-height: 16px; + padding: 0 10px; + border-radius: 10px; + position: absolute; + white-space: nowrap; + color: var(--n-text-color-line-inner); + transition: + right .2s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `)]),_("progress-graph-line-rail",` + position: relative; + overflow: hidden; + height: var(--n-rail-height); + border-radius: 5px; + background-color: var(--n-rail-color); + transition: background-color .3s var(--n-bezier); + `,[_("progress-graph-line-fill",` + background: var(--n-fill-color); + position: relative; + border-radius: 5px; + height: inherit; + width: 100%; + max-width: 0%; + transition: + background-color .3s var(--n-bezier), + max-width .2s var(--n-bezier); + `,[X("processing",[re("&::after",` + content: ""; + background-image: var(--n-line-bg-processing); + animation: progress-processing-animation 2s var(--n-bezier) infinite; + `)])])])])])]),re("@keyframes progress-processing-animation",` + 0% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 100%; + opacity: 1; + } + 66% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + 100% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + `)]);const kt=["aria-valuenow","role"],_t={...Se.props,processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number};var xt=H({name:"Progress",props:_t,setup(t){const c=W(()=>t.indicatorPlacement||t.indicatorPosition),k=W(()=>{if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),{mergedClsPrefixRef:D,inlineThemeDisabled:x}=Ee(t),n=Se("Progress","-progress",wt,Ge,t,D),p=W(()=>{const{status:u}=t,{common:{cubicBezierEaseInOut:z},self:{fontSize:C,fontSizeCircle:q,railColor:h,railHeight:B,iconSizeCircle:g,iconSizeLine:f,textColorCircle:O,textColorLineInner:V,textColorLineOuter:I,lineBgProcessing:M,fontWeightCircle:A,[ge("iconColor",u)]:Y,[ge("fillColor",u)]:U}}=n.value;return{"--n-bezier":z,"--n-fill-color":U,"--n-font-size":C,"--n-font-size-circle":q,"--n-font-weight-circle":A,"--n-icon-color":Y,"--n-icon-size-circle":g,"--n-icon-size-line":f,"--n-line-bg-processing":M,"--n-rail-color":h,"--n-rail-height":B,"--n-text-color-circle":O,"--n-text-color-line-inner":V,"--n-text-color-line-outer":I}}),y=x?Ue("progress",W(()=>t.status[0]),p,t):void 0;return{mergedClsPrefix:D,mergedIndicatorPlacement:c,gapDeg:k,cssVars:x?void 0:p,themeClass:y?.themeClass,onRender:y?.onRender}},render(){const{type:t,cssVars:c,indicatorTextColor:k,showIndicator:D,status:x,railColor:n,railStyle:p,color:y,percentage:u,viewBoxWidth:z,strokeWidth:C,mergedIndicatorPlacement:q,unit:h,borderRadius:B,fillBorderRadius:g,height:f,processing:O,circleGap:V,mergedClsPrefix:I,gapDeg:M,gapOffsetDegree:A,themeClass:Y,$slots:U,onRender:oe}=this;return oe?.(),o(),s("div",{class:w([Y,`${I}-progress`,`${I}-progress--${t}`,`${I}-progress--${x}`]),style:j(c),"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":u,role:t==="circle"||t==="line"||t==="dashboard"?"progressbar":"none"},[t==="circle"||t==="dashboard"?(o(),S(ut,{key:0,clsPrefix:I,status:x,showIndicator:D,indicatorTextColor:k,railColor:n,fillColor:y,railStyle:p,offsetDegree:this.offsetDegree,percentage:u,viewBoxWidth:z,strokeWidth:C,gapDegree:M===void 0?t==="dashboard"?75:0:M,gapOffsetDegree:A,unit:h},ue(U),1032,["clsPrefix","status","showIndicator","indicatorTextColor","railColor","fillColor","railStyle","offsetDegree","percentage","viewBoxWidth","strokeWidth","gapDegree","gapOffsetDegree","unit"])):(o(),s(E,{key:1},[t==="line"?(o(),S(ft,{key:0,clsPrefix:I,status:x,showIndicator:D,indicatorTextColor:k,railColor:n,fillColor:y,railStyle:p,percentage:u,processing:O,indicatorPlacement:q,unit:h,fillBorderRadius:g,railBorderRadius:B,height:f},ue(U),1032,["clsPrefix","status","showIndicator","indicatorTextColor","railColor","fillColor","railStyle","percentage","processing","indicatorPlacement","unit","fillBorderRadius","railBorderRadius","height"])):(o(),s(E,{key:1},[t==="multiple-circle"?(o(),S(bt,{key:0,clsPrefix:I,strokeWidth:C,railColor:n,fillColor:y,railStyle:p,viewBoxWidth:z,percentage:u,showIndicator:D,circleGap:V},ue(U),1032,["clsPrefix","strokeWidth","railColor","fillColor","railStyle","viewBoxWidth","percentage","showIndicator","circleGap"])):N(()=>null)],64))],64))],14,kt)}});const $t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ct=H({name:"CopyOutline",render:function(c,k){return o(),s("svg",$t,k[0]||(k[0]=[r("rect",{x:"128",y:"128",width:"336",height:"336",rx:"57",ry:"57",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),r("path",{d:"M383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},zt=H({name:"MusicalNotesOutline",render:function(c,k){return o(),s("svg",St,k[0]||(k[0]=[r("path",{d:"M192 218v-6c0-14.84 10-27 24.24-30.59l174.59-46.68A20 20 0 0 1 416 154v22",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),r("path",{d:"M416 295.94v80c0 13.91-8.93 25.59-22 30l-22 8c-25.9 8.72-52-10.42-52-38h0a33.37 33.37 0 0 1 23-32l51-18.15c13.07-4.4 22-15.94 22-29.85V58a10 10 0 0 0-12.6-9.61L204 102a16.48 16.48 0 0 0-12 16v226c0 13.91-8.93 25.6-22 30l-52 18c-13.88 4.68-22 17.22-22 32h0c0 27.58 26.52 46.55 52 38l22-8c13.07-4.4 22-16.08 22-30v-80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),we=t=>Q("/v1/shortvideo/parse",{text:t}),Pt=t=>Q("/v1/shortvideo/download",t),Bt=t=>Q("/v1/shortvideo/enumerate",{url:t}),Rt=t=>Q("/v1/shortvideo/batch",t),qt=()=>ze("/v1/shortvideo/tasks"),Nt=t=>Q(`/v1/shortvideo/tasks/${t}/cancel`),It=t=>Q(`/v1/shortvideo/tasks/${t}/retry`),Dt=()=>ze("/v1/shortvideo/cookie"),Ot=t=>Q("/v1/shortvideo/cookie",{cookie:t}),Tt=()=>Le("/v1/shortvideo/cookie"),Mt={class:"page"},Wt={class:"page-head"},Vt={class:"toolbar"},jt={class:"hero panel"},At={class:"hero-line"},Et={class:"hero-foot"},Ut={key:1,class:"result panel fade-up"},Gt={class:"result-main"},Lt=["src"],Xt={key:1,class:"cover placeholder"},Ft={class:"meta"},Yt={class:"title-row"},Ht={class:"sub"},Qt={class:"mono"},Jt={key:0},Kt={key:1},Zt={class:"actions"},er={class:"batch panel"},tr={class:"batch-source"},rr={class:"batch-actions"},or={key:0,class:"batch-list"},ir=["src"],ar={class:"batch-meta"},sr={class:"batch-title"},lr={class:"batch-sub"},nr={key:0},cr={key:1,class:"batch-error"},ur={class:"tasks"},dr={class:"section-head"},fr={key:0,class:"empty"},pr={class:"task-head"},gr={class:"task-title"},vr={class:"mono task-id"},hr={class:"task-actions"},yr={class:"task-progress"},mr={class:"task-numbers"},br={key:0,class:"task-error"},wr={class:"items"},kr={class:"item-label"},_r={key:0,class:"item-path mono"},xr={key:2,class:"item-error"},$r={class:"cookie-status"},Cr={key:0},Sr={class:"cookie-actions"},zr=H({__name:"ShortVideoView",setup(t){const c=Je(),k={value:!1};function D(){try{return window.sessionStorage.getItem("shortvideo_authorized")==="1"}catch{return k.value}}function x(a){k.value=a;try{a?window.sessionStorage.setItem("shortvideo_authorized","1"):window.sessionStorage.removeItem("shortvideo_authorized")}catch{}}const n=P(D()),p=P(""),y=P(!1),u=P(null),z=P(""),C=P([]),q=P(!1),h=P(!1),B=P(""),g=P(null),f=P(""),O=P([]),V=P(!1),I=P(!1),M=P(""),A=P(""),Y=P(!1);let U;const oe=W(()=>(u.value?.qualities??[]).map(a=>({label:a.bitrate>0?`${a.label} · ${Math.round(a.bitrate/1e3)} kbps`:a.label,value:a.label}))),Pe=W(()=>C.value.filter(a=>a.status==="running"||a.status==="pending")),fe=W(()=>(O.value.find(e=>e.view?.qualities.length)?.view?.qualities??[]).map(e=>({label:e.bitrate>0?`${e.label} · ${Math.round(e.bitrate/1e3)} kbps`:e.label,value:e.label})));function Be(a){n.value=a,x(a)}async function Re(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}if(!p.value.trim()){c.warning("请粘贴抖音分享链接或分享文案");return}y.value=!0,u.value=null;try{const a=await we(p.value.trim());u.value=a,z.value=a.qualities[0]?.label??""}catch(a){c.error(a instanceof Error?a.message:"解析失败")}finally{y.value=!1}}async function ie(a){if(u.value){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}try{const e=await Pt({aweme_id:u.value.aweme_id,quality:z.value,parts:a});c.success(`已创建下载任务 #${e.task_id}`),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"创建任务失败")}}}async function qe(){const a=f.value.split(/\r?\n/).map(m=>m.trim()).filter(Boolean).slice(0,20);if(!a.length){c.warning("请每行粘贴一条抖音作品链接");return}V.value=!0;const e=[];for(const m of a)try{const G=await we(m);e.push({link:m,view:G,selected:!0})}catch(G){e.push({link:m,error:G instanceof Error?G.message:"解析失败",selected:!1})}O.value=e;const i=e.find(m=>m.view?.qualities.length)?.view;i?.qualities[0]&&(M.value=i.qualities[0].label),V.value=!1}async function Ne(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}if(!A.value.trim()){c.warning("请粘贴抖音主页或合集链接");return}Y.value=!0;try{const a=await Bt(A.value.trim());if(!a.items.length){c.warning("没有抓到作品,可能需要先在抖音完成登录/验证,或页面尚未加载完");return}const e=20;O.value=a.items.map((i,m)=>{const G=i.kind==="note"?"images":"video";return{link:`https://www.douyin.com/${i.kind==="note"?"note":"video"}/${i.aweme_id}`,selected:me?`已枚举 ${a.items.length} 条作品,只默认勾选前 ${e} 条(后端一次最多 20 条),其余请分批提交`:`已枚举 ${a.items.length} 条作品,请勾选后开始批量下载`)}catch(a){c.error(a instanceof Error?a.message:"自动枚举失败")}finally{Y.value=!1}}async function Ie(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}const a=O.value.filter(e=>e.selected&&e.view).map(e=>e.link);if(!a.length){c.warning("请至少选择一条可下载的作品");return}I.value=!0;try{const e=await Rt({links:a,quality:M.value||"highest"});c.success(`已创建批量任务,共 ${e.task_ids.length} 条`),e.errors.length&&c.warning(`${e.errors.length} 条失败,见任务列表`),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"批量下载失败")}finally{I.value=!1}}let ae=!1,se=!1,Z=!1;async function L(a=!1){if(!Z){if(ae){a&&(se=!0);return}ae=!0,q.value=!0;try{C.value=await qt()}catch{}finally{ae=!1,q.value=!1,se&&!Z&&(se=!1,L(!0))}}}const le=P(new Set),ne=P(new Set);async function De(a){if(!le.value.has(a.id)){le.value.add(a.id);try{await Nt(a.id),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"取消失败")}finally{le.value.delete(a.id)}}}async function Oe(a){if(!ne.value.has(a.id)){ne.value.add(a.id);try{await It(a.id),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"重试失败")}finally{ne.value.delete(a.id)}}}async function Te(a){if(a)try{await navigator.clipboard.writeText(a),c.success("路径已复制")}catch{c.error("复制失败,请手动选择路径")}}async function Me(){try{g.value=await Dt()}catch{g.value=null}}const J=P(!1);async function We(){if(!J.value){if(!B.value.trim()){c.warning("请粘贴 Cookie");return}J.value=!0;try{g.value=await Ot(B.value.trim()),B.value="",c.success("Cookie 已保存")}catch(a){c.error(a instanceof Error?a.message:"保存失败")}finally{J.value=!1}}}async function Ve(){if(!J.value){J.value=!0;try{g.value=await Tt(),c.success("Cookie 已清除")}catch(a){c.error(a instanceof Error?a.message:"清除失败")}finally{J.value=!1}}}function ce(a){switch(a){case"running":return{label:"下载中",type:"info"};case"pending":return{label:"排队中",type:"default"};case"done":return{label:"已完成",type:"success"};case"failed":return{label:"失败",type:"error"};case"cancelled":return{label:"已取消",type:"warning"};default:return{label:a,type:"default"}}}function je(a){if(!a)return"—";const e=Math.floor(a/1e3);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}return Xe(async()=>{await Promise.all([L(),Me()]),!Z&&(U=window.setInterval(()=>{document.visibilityState==="visible"&&(Pe.value.length>0||C.value.some(a=>a.status==="pending"))&&L()},2e3))}),Fe(()=>{Z=!0,U&&window.clearInterval(U)}),(a,e)=>(o(),s("div",Mt,[r("div",Wt,[e[13]||(e[13]=r("div",null,[r("h1",{class:"page-title"},"作品备份"),r("p",{class:"page-sub"},"抖音单条视频、图集、原声下载 · 仅限本人作品或已获授权的内容")],-1)),r("div",Vt,[d(l(ee),{size:"small",round:"",bordered:!1,type:g.value?.has_cookie?"success":"default"},{default:v(()=>[$(b(g.value?.has_cookie?"Cookie 已导入":"自动签名"),1)]),_:1},8,["type"]),d(l(T),{quaternary:"",size:"small",onClick:e[0]||(e[0]=i=>h.value=!0)},{default:v(()=>[...e[12]||(e[12]=[$("Cookie 设置",-1)])]),_:1})])]),r("section",jt,[r("div",At,[d(l(F),{size:18,class:"hero-icon"},{default:v(()=>[d(l(Ze))]),_:1}),e[14]||(e[14]=r("span",null,"粘贴抖音分享链接或整段分享文案",-1))]),d(l(te),{value:p.value,"onUpdate:value":e[1]||(e[1]=i=>p.value=i),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"例如:7.43 复制打开抖音,看看【...】 https://v.douyin.com/xxxxxx/",disabled:!n.value},null,8,["value","disabled"]),r("div",Et,[d(l(ve),{checked:n.value,"onUpdate:checked":Be},{default:v(()=>[...e[15]||(e[15]=[$(" 我确认这是本人作品,或已取得权利人授权,仅用于个人备份 ",-1)])]),_:1},8,["checked"]),d(l(T),{type:"primary",loading:y.value,disabled:!n.value,onClick:Re},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(et))]),_:1})]),default:v(()=>[e[16]||(e[16]=$(" 解析 ",-1))]),_:1},8,["loading","disabled"])])]),y.value?(o(),S(l(Ke),{key:0,size:"large",class:"loading"})):u.value?(o(),s("section",Ut,[r("div",Gt,[u.value.cover?(o(),s("img",{key:0,class:"cover",src:u.value.cover,alt:"",referrerpolicy:"no-referrer"},null,8,Lt)):(o(),s("div",Xt,[d(l(F),{size:30},{default:v(()=>[d(l(tt))]),_:1})])),r("div",Ft,[r("div",Yt,[r("h2",null,b(u.value.title),1),d(l(ee),{size:"small",bordered:!1,type:u.value.kind==="images"?"warning":"info"},{default:v(()=>[$(b(u.value.kind==="images"?`图集 ${u.value.image_count} 张`:"视频"),1)]),_:1},8,["type"])]),r("div",Ht,[r("span",null,b(u.value.author),1),r("span",Qt,b(u.value.aweme_id),1),u.value.duration_ms?(o(),s("span",Jt,"时长 "+b(je(u.value.duration_ms)),1)):R("",!0),u.value.create_time?(o(),s("span",Kt,b(l(he)(u.value.create_time*1e3)),1)):R("",!0)]),r("div",Zt,[u.value.kind==="video"?(o(),s(E,{key:0},[d(l(pe),{value:z.value,"onUpdate:value":e[2]||(e[2]=i=>z.value=i),class:"quality",options:oe.value,placeholder:"选择画质"},null,8,["value","options"]),d(l(T),{type:"primary",onClick:e[3]||(e[3]=i=>ie(["video"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(me))]),_:1})]),default:v(()=>[e[17]||(e[17]=$(" 下载视频 ",-1))]),_:1})],64)):(o(),S(l(T),{key:1,type:"primary",onClick:e[4]||(e[4]=i=>ie(["images"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(me))]),_:1})]),default:v(()=>[e[18]||(e[18]=$(" 下载全部图片 ",-1))]),_:1})),u.value.has_audio?(o(),S(l(T),{key:2,secondary:"",onClick:e[5]||(e[5]=i=>ie(["audio"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(zt))]),_:1})]),default:v(()=>[e[19]||(e[19]=$(" 下载音频 ",-1))]),_:1})):R("",!0)])])])])):R("",!0),r("section",er,[e[23]||(e[23]=r("div",{class:"section-head"},[r("h2",null,"批量链接"),r("span",{class:"batch-hint"},"一行一条,最多 20 条;主页/合集请先展开成作品链接")],-1)),r("div",tr,[d(l(te),{value:A.value,"onUpdate:value":e[6]||(e[6]=i=>A.value=i),placeholder:"粘贴抖音主页或合集链接,桌面版自动枚举",clearable:""},null,8,["value"]),d(l(T),{loading:Y.value,disabled:!n.value,onClick:Ne},{default:v(()=>[...e[20]||(e[20]=[$(" 自动枚举 ",-1)])]),_:1},8,["loading","disabled"])]),e[24]||(e[24]=r("p",{class:"batch-tip"}," 桌面版会用隐藏浏览器抓取作品;服务器部署不支持自动枚举,请直接粘贴作品链接。 ",-1)),d(l(te),{value:f.value,"onUpdate:value":e[7]||(e[7]=i=>f.value=i),type:"textarea",autosize:{minRows:3,maxRows:8},placeholder:`https://www.douyin.com/video/... +https://www.douyin.com/video/...`,disabled:!n.value},null,8,["value","disabled"]),r("div",rr,[d(l(T),{loading:V.value,disabled:!n.value,onClick:qe},{default:v(()=>[...e[21]||(e[21]=[$(" 解析链接 ",-1)])]),_:1},8,["loading","disabled"]),fe.value.length?(o(),S(l(pe),{key:0,value:M.value,"onUpdate:value":e[8]||(e[8]=i=>M.value=i),class:"quality",options:fe.value},null,8,["value","options"])):R("",!0),d(l(T),{type:"primary",loading:I.value,disabled:!n.value||!O.value.some(i=>i.selected&&i.view),onClick:Ie},{default:v(()=>[...e[22]||(e[22]=[$(" 开始批量下载 ",-1)])]),_:1},8,["loading","disabled"])]),O.value.length?(o(),s("div",or,[(o(!0),s(E,null,de(O.value,(i,m)=>(o(),s("label",{key:m,class:"batch-entry"},[d(l(ve),{checked:i.selected,"onUpdate:checked":G=>i.selected=G,disabled:!i.view},null,8,["checked","onUpdate:checked","disabled"]),i.view?.cover?(o(),s("img",{key:0,src:i.view.cover,alt:"",referrerpolicy:"no-referrer"},null,8,ir)):R("",!0),r("span",ar,[r("span",sr,b(i.view?.title||i.link),1),r("span",lr,[$(b(i.view?.author||"")+" ",1),i.view?.kind==="images"?(o(),s("span",nr," · 图集 "+b(i.view.image_count)+" 张 ",1)):R("",!0),i.error?(o(),s("span",cr,"· "+b(i.error),1)):R("",!0)])])]))),128))])):R("",!0)]),r("section",ur,[r("div",dr,[e[25]||(e[25]=r("h2",null,"下载任务",-1)),d(l(T),{quaternary:"",circle:"",loading:q.value,"aria-label":"刷新",onClick:e[9]||(e[9]=i=>L(!0))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(rt))]),_:1})]),_:1},8,["loading"])]),C.value.length===0?(o(),s("div",fr,"还没有下载任务。解析作品后点击下载即可。")):R("",!0),(o(!0),s(E,null,de(C.value,i=>(o(),s("article",{key:i.id,class:"task panel"},[r("div",pr,[r("div",gr,[r("span",vr,"#"+b(i.id),1),r("span",null,b(i.title),1),d(l(ee),{size:"tiny",type:ce(i.status).type,bordered:!1},{default:v(()=>[$(b(ce(i.status).label),1)]),_:2},1032,["type"]),i.batch_id?(o(),S(l(ee),{key:0,size:"tiny",bordered:!1},{default:v(()=>[$(b(i.batch_title||"批量"),1)]),_:2},1024)):R("",!0)]),r("div",hr,[i.status==="running"||i.status==="pending"?(o(),S(l(T),{key:0,size:"tiny",quaternary:"",onClick:m=>De(i)},{default:v(()=>[...e[26]||(e[26]=[$(" 取消 ",-1)])]),_:1},8,["onClick"])):R("",!0),i.status==="failed"||i.status==="cancelled"?(o(),S(l(T),{key:1,size:"tiny",quaternary:"",onClick:m=>Oe(i)},{default:v(()=>[...e[27]||(e[27]=[$(" 重试 ",-1)])]),_:1},8,["onClick"])):R("",!0)])]),r("div",yr,[d(l(xt),{type:"line",percentage:i.total?Math.round(i.done/i.total*100):0,status:i.status==="failed"?"error":i.status==="done"?"success":"default","show-indicator":!1},null,8,["percentage","status"]),r("span",mr,b(i.done)+"/"+b(i.total)+" · "+b(l(ye)(i.bytes)),1)]),i.error?(o(),s("div",br,b(i.error),1)):R("",!0),r("div",wr,[(o(!0),s(E,null,de(i.items,m=>(o(),s("div",{key:m.seq,class:"item"},[r("span",kr,b(m.label),1),r("span",{class:He(["item-status",m.status])},[$(b(ce(m.status).label)+" ",1),m.bytes?(o(),s(E,{key:0},[$(" · "+b(l(ye)(m.bytes)),1)],64)):R("",!0)],2),m.file_path?(o(),s("span",_r,b(m.file_path),1)):R("",!0),m.file_path?(o(),S(l(T),{key:1,size:"tiny",quaternary:"",onClick:G=>Te(m.file_path)},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(Ct))]),_:1})]),default:v(()=>[e[28]||(e[28]=$(" 复制路径 ",-1))]),_:1},8,["onClick"])):R("",!0),m.error?(o(),s("span",xr,b(m.error),1)):R("",!0)]))),128))])]))),128))]),d(l(Ye),{show:h.value,"onUpdate:show":e[11]||(e[11]=i=>h.value=i),preset:"card",style:{width:"560px",maxWidth:"92vw"}},{header:v(()=>[...e[29]||(e[29]=[$("抖音 Cookie(可选)",-1)])]),default:v(()=>[e[32]||(e[32]=r("p",{class:"cookie-hint"}," 通常不需要手动导入。遇到 403、需要登录态或批量受限时,可从浏览器开发者工具复制 `www.douyin.com` 的 Cookie 粘贴到这里。Cookie 只保存在本机,不会回显。 ",-1)),r("div",$r,[r("span",null,"状态:"+b(g.value?.has_cookie?"已导入":"未导入"),1),g.value?.updated_at?(o(),s("span",Cr,"更新于 "+b(l(he)(g.value.updated_at*1e3)),1)):R("",!0)]),d(l(te),{value:B.value,"onUpdate:value":e[10]||(e[10]=i=>B.value=i),type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"ttwid=...; UIFID=..."},null,8,["value"]),r("div",Sr,[d(l(T),{quaternary:"",onClick:Ve},{default:v(()=>[...e[30]||(e[30]=[$("清除 Cookie",-1)])]),_:1}),d(l(T),{type:"primary",onClick:We},{default:v(()=>[...e[31]||(e[31]=[$("保存 Cookie",-1)])]),_:1})])]),_:1},8,["show"])]))}}),Er=Qe(zr,[["__scopeId","data-v-1e0a3edb"]]);export{Er as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-cKyh5vit.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-cKyh5vit.css new file mode 100644 index 00000000..c8aa7538 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-cKyh5vit.css @@ -0,0 +1 @@ +.hero[data-v-1e0a3edb]{padding:18px;margin-bottom:18px}.hero-line[data-v-1e0a3edb]{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);margin-bottom:10px}.hero-icon[data-v-1e0a3edb]{color:var(--accent)}.hero-foot[data-v-1e0a3edb]{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;flex-wrap:wrap}.hero-foot[data-v-1e0a3edb] .n-checkbox__label{font-size:11.5px;color:var(--muted)}.loading[data-v-1e0a3edb]{display:grid;place-items:center;padding:60px 0}.result[data-v-1e0a3edb]{padding:18px;margin-bottom:22px}.result-main[data-v-1e0a3edb]{display:flex;gap:18px}.cover[data-v-1e0a3edb]{width:168px;aspect-ratio:9 / 16;object-fit:cover;border-radius:12px;background:#0a1118;flex:none}.cover.placeholder[data-v-1e0a3edb]{display:grid;place-items:center;color:var(--muted-2)}.meta[data-v-1e0a3edb]{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:10px}.title-row[data-v-1e0a3edb]{display:flex;align-items:flex-start;gap:10px}.title-row h2[data-v-1e0a3edb]{margin:0;font-size:17px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.sub[data-v-1e0a3edb]{display:flex;flex-wrap:wrap;gap:12px;font-size:11.5px;color:var(--muted)}.actions[data-v-1e0a3edb]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px}.quality[data-v-1e0a3edb]{width:210px}.tasks[data-v-1e0a3edb]{margin-top:8px}.section-head[data-v-1e0a3edb]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-head h2[data-v-1e0a3edb]{margin:0;font-size:15px;font-weight:650}.empty[data-v-1e0a3edb]{padding:34px 0;text-align:center;color:var(--muted);font-size:12.5px}.task[data-v-1e0a3edb]{padding:14px 16px;margin-bottom:10px}.task-head[data-v-1e0a3edb]{display:flex;align-items:center;justify-content:space-between;gap:12px}.task-title[data-v-1e0a3edb]{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;font-weight:550}.task-id[data-v-1e0a3edb]{color:var(--muted-2);font-size:11px}.task-actions[data-v-1e0a3edb]{display:flex;gap:4px;flex:none}.task-progress[data-v-1e0a3edb]{display:flex;align-items:center;gap:12px;margin-top:10px}.task-progress[data-v-1e0a3edb] .n-progress{flex:1}.task-numbers[data-v-1e0a3edb]{font-size:11px;color:var(--muted);font-family:var(--mono);flex:none}.task-error[data-v-1e0a3edb]{margin-top:8px;font-size:11.5px;color:var(--danger-text)}.items[data-v-1e0a3edb]{margin-top:10px;display:flex;flex-direction:column;gap:6px}.item[data-v-1e0a3edb]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:var(--muted);padding:5px 8px;border-radius:7px;background:#94c5d608}.item-label[data-v-1e0a3edb]{color:var(--text);min-width:60px}.item-status.done[data-v-1e0a3edb]{color:var(--ok)}.item-status.failed[data-v-1e0a3edb]{color:var(--danger)}.item-path[data-v-1e0a3edb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:52%}.item-error[data-v-1e0a3edb]{color:var(--danger-text)}.cookie-hint[data-v-1e0a3edb]{margin:0 0 12px;font-size:11.5px;line-height:1.7;color:var(--muted)}.cookie-status[data-v-1e0a3edb]{display:flex;gap:14px;font-size:11.5px;color:var(--muted);margin-bottom:10px}.cookie-actions[data-v-1e0a3edb]{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.batch[data-v-1e0a3edb]{padding:18px;margin-bottom:22px}.batch-hint[data-v-1e0a3edb]{font-size:11px;color:var(--muted-2)}.batch-source[data-v-1e0a3edb]{display:flex;gap:10px;margin-bottom:8px}.batch-tip[data-v-1e0a3edb]{margin:0 0 10px;font-size:10.5px;color:var(--muted-2);line-height:1.6}.batch-actions[data-v-1e0a3edb]{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}.batch-list[data-v-1e0a3edb]{margin-top:12px;display:flex;flex-direction:column;gap:6px;max-height:320px;overflow:auto}.batch-entry[data-v-1e0a3edb]{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;background:#94c5d608;cursor:pointer}.batch-entry img[data-v-1e0a3edb]{width:38px;height:50px;object-fit:cover;border-radius:6px;background:#0a1118;flex:none}.batch-meta[data-v-1e0a3edb]{display:flex;flex-direction:column;gap:3px;min-width:0}.batch-title[data-v-1e0a3edb]{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-sub[data-v-1e0a3edb]{font-size:10.5px;color:var(--muted)}.batch-error[data-v-1e0a3edb]{color:var(--danger-text)}@media(max-width:720px){.result-main[data-v-1e0a3edb]{flex-direction:column}.cover[data-v-1e0a3edb]{width:130px}.item-path[data-v-1e0a3edb]{max-width:100%}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbwWICDg.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbwWICDg.js new file mode 100644 index 00000000..85e60868 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbwWICDg.js @@ -0,0 +1,43 @@ +import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-Ch4EWX-G.js";import{a as K}from"./use-compitable-CjxNERC_.js";var L=b([b("@keyframes spin-rotate",` + from { + transform: rotate(0); + } + to { + transform: rotate(360deg); + } + `),a("spin-container",` + position: relative; + `,[a("spin-body",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + `,[$()])]),a("spin-body",` + display: inline-flex; + align-items: center; + justify-content: center; + flex-direction: column; + `),a("spin",` + display: inline-flex; + height: var(--n-size); + width: var(--n-size); + font-size: var(--n-size); + color: var(--n-color); + `,[g("rotate",` + animation: spin-rotate 2s linear infinite; + `)]),a("spin-description",` + display: inline-block; + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + margin-top: 8px; + `),a("spin-content",` + opacity: 1; + transition: opacity .3s var(--n-bezier); + pointer-events: all; + `,[g("spinning",` + user-select: none; + -webkit-user-select: none; + pointer-events: none; + opacity: var(--n-opacity-spinning); + `)])]);const D={small:20,medium:18,large:16},H={...k.props,contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number,...T,strokeWidth:Number};var X=w({name:"Spin",props:H,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=V(e),f=k("Spin","-spin",L,E,e,t),r=y(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:n},self:c}=f.value,{opacitySpinning:S,color:x,textColor:C}=c;return{"--n-bezier":n,"--n-opacity-spinning":S,"--n-size":typeof s=="number"?I(s):c[O("size",s)],"--n-color":x,"--n-text-color":C}}),l=o?N("spin",y(()=>{const{size:s}=e;return typeof s=="number"?String(s):s[0]}),r,e):void 0,v=K(e,["spinning","show"]),h=_(!1);return W(s=>{let n;if(v.value){const{delay:c}=e;if(c){n=window.setTimeout(()=>{h.value=!0},c),s(()=>{clearTimeout(n)});return}}h.value=v.value}),{mergedClsPrefix:t,active:h,mergedStrokeWidth:y(()=>{const{strokeWidth:s}=e;if(s!==void 0)return s;const{size:n}=e;return D[typeof n=="number"?"medium":n]}),cssVars:o?void 0:r,themeClass:l?.themeClass,onRender:l?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,description:o}=this,f=e.icon&&this.rotate,r=(o||e.description)&&(d(),u("div",{class:i(`${t}-spin-description`)},[p(()=>o||e.description?.())],2)),l=e.icon?(d(),u("div",{key:1,class:i([`${t}-spin-body`,this.themeClass])},[z("div",{class:i([`${t}-spin`,f&&`${t}-spin--rotate`]),style:m(e.default?"":this.cssVars)},[p(()=>e.icon())],6),p(()=>r)],2)):(d(),u("div",{key:2,class:i([`${t}-spin-body`,this.themeClass])},[(d(),B(R,{clsPrefix:t,style:m(e.default?"":this.cssVars),stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:i(`${t}-spin`)},null,8,["clsPrefix","style","stroke","stroke-width","radius","scale","class"])),p(()=>r)],2));return this.onRender?.(),e.default?(d(),u("div",{key:3,class:i([`${t}-spin-container`,this.themeClass]),style:m(this.cssVars)},[z("div",{class:i([`${t}-spin-content`,this.active&&`${t}-spin-content--spinning`,this.contentClass]),style:m(this.contentStyle)},[p(()=>e.default?.())],6),P(j,{name:"fade-in-transition"},{default:()=>this.active?l:null},1024)],6)):l}});export{X as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Bg-GMiEY.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Bg-GMiEY.css new file mode 100644 index 00000000..310f7720 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Bg-GMiEY.css @@ -0,0 +1 @@ +.badge[data-v-7e3eb802]{display:inline-flex;align-items:center;gap:6px;border-radius:99px;font-weight:600;letter-spacing:.2px;white-space:nowrap;border:1px solid transparent}.badge.md[data-v-7e3eb802]{font-size:11.5px;padding:4px 9px}.badge.sm[data-v-7e3eb802]{font-size:10.5px;padding:3px 7px}.badge.live[data-v-7e3eb802]{color:#ff8095;background:#ff4d6d1a;border-color:#ff4d6d42}.badge.info[data-v-7e3eb802]{color:#93dcff;background:#7dd3fc17;border-color:#7dd3fc38}.badge.warn[data-v-7e3eb802]{color:#fcd34d;background:#fbbf2417;border-color:#fbbf2438}.badge.muted[data-v-7e3eb802]{color:var(--muted);background:#94c5d60f;border-color:var(--line)}.plain-dot[data-v-7e3eb802]{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}.probe-badge[data-v-9ae28998]{display:inline-flex;align-items:center;gap:5px;border-radius:99px;font-size:10.5px;font-weight:600;padding:3px 8px;color:#fcd34d;background:#fbbf241f;border:1px solid rgba(251,191,36,.28);white-space:nowrap}.probe-note[data-v-9ae28998]{display:flex;align-items:flex-start;gap:6px;margin:0 16px 8px;padding:8px 10px;border-radius:9px;border:1px solid rgba(251,191,36,.22);background:#fbbf240f;font-size:11.5px;line-height:1.55;color:#fcd34d}.probe-text[data-v-9ae28998]{word-break:break-word}.probe-advice[data-v-9ae28998]{margin:-2px 16px 10px;font-size:11px;line-height:1.5;color:var(--muted)}.probe-dot[data-v-9ae28998]{width:6px;height:6px;border-radius:50%;background:#fbbf24;margin-top:5px;flex:none}.card[data-v-9ae28998]{border-radius:16px;overflow:hidden;border:1px solid var(--line);background:linear-gradient(180deg,#14202bc7,#0c1219eb);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.card[data-v-9ae28998]:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:0 16px 38px #00000052}.card.live[data-v-9ae28998]{border-color:#ff4d6d3d;box-shadow:0 0 0 1px #ff4d6d0d,0 18px 40px #ff4d6d12}.cover[data-v-9ae28998]{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#0a1118}.cover-img[data-v-9ae28998]{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01)}.cover-fallback[data-v-9ae28998]{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(400px 160px at 20% 0%,rgba(45,212,191,.22),transparent 65%),radial-gradient(360px 200px at 100% 100%,rgba(125,211,252,.12),transparent 60%),linear-gradient(135deg,#0d1b22,#0a1017)}.cover-fallback.douyin[data-v-9ae28998],.cover-fallback.kuaishou[data-v-9ae28998],.cover-fallback.bilibili[data-v-9ae28998],.cover-fallback.huya[data-v-9ae28998],.cover-fallback.douyu[data-v-9ae28998]{background:radial-gradient(420px 180px at 18% 0%,rgba(45,212,191,.2),transparent 65%),radial-gradient(360px 220px at 100% 100%,rgba(125,211,252,.1),transparent 60%),linear-gradient(135deg,#0d1b22,#0a1017)}.platform-glyph[data-v-9ae28998]{font-size:30px;font-weight:800;letter-spacing:2px;color:#e8f2f624;transform:rotate(-6deg);-webkit-user-select:none;user-select:none}.cover-shade[data-v-9ae28998]{position:absolute;inset:0;background:linear-gradient(180deg,#05080b1a,#05080b00 38%,#05080bdb)}.cover-top[data-v-9ae28998]{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between}.platform-chip[data-v-9ae28998]{font-size:10.5px;color:#e8f2f6db;padding:3px 8px;border-radius:99px;background:#070b0f9e;border:1px solid rgba(232,242,246,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.cover-bottom[data-v-9ae28998]{position:absolute;left:12px;right:12px;bottom:10px}.cover-title[data-v-9ae28998]{font-size:15px;font-weight:650;text-shadow:0 2px 12px rgba(0,0,0,.55);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cover-sub[data-v-9ae28998]{margin-top:2px;font-size:10.5px;color:#e8f2f69e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body[data-v-9ae28998]{padding:13px 14px 14px}.meta-row[data-v-9ae28998]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-bottom:12px;border-bottom:1px solid var(--line)}.meta[data-v-9ae28998]{display:flex;flex-direction:column;gap:3px;min-width:0}.meta-label[data-v-9ae28998]{font-size:10px;color:var(--muted-2);letter-spacing:.3px}.meta-value[data-v-9ae28998]{font-size:12px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-value.hot[data-v-9ae28998]{color:#ff9db0}.actions[data-v-9ae28998]{display:flex;align-items:center;gap:8px;margin-top:12px}.main-action[data-v-9ae28998]{flex:1}.ghost-btn[data-v-9ae28998]{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;border:1px solid var(--line);background:#94c5d60a;color:var(--muted);cursor:pointer;transition:all .16s ease}.ghost-btn[data-v-9ae28998]:hover{color:var(--text);border-color:var(--line-strong);background:#94c5d617}.capture-panel[data-v-f2517c38]{display:flex;flex-direction:column;gap:12px}.status-bar[data-v-f2517c38]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0f172099}.status-left[data-v-f2517c38]{display:flex;flex-direction:column;gap:8px;min-width:0}.status-row[data-v-f2517c38]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status-label[data-v-f2517c38]{min-width:52px;font-size:11px;color:var(--muted)}.proxy[data-v-f2517c38]{font-size:12px;color:var(--accent)}.status-hint[data-v-f2517c38]{font-size:11px;color:var(--muted-2)}.last-error[data-v-f2517c38]{padding:8px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:#fca5a5;font-size:11.5px;word-break:break-all}.compliance[data-v-f2517c38]{padding:14px;border:1px solid var(--line-strong);border-radius:12px;background:#14202b8c}.compliance-title[data-v-f2517c38]{margin-bottom:8px;font-size:13px;font-weight:650}.compliance-list[data-v-f2517c38]{margin:0 0 10px;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}.compliance-actions[data-v-f2517c38]{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.list-bar[data-v-f2517c38]{display:flex;align-items:center;justify-content:space-between}.list-title[data-v-f2517c38]{font-size:12px;font-weight:650}.empty[data-v-f2517c38]{padding:28px 18px;text-align:center;font-size:11.5px;line-height:1.7;color:var(--muted);border:1px dashed var(--line-strong);border-radius:12px}.stream-list[data-v-f2517c38]{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow-y:auto}.stream-item[data-v-f2517c38]{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0f172099}.stream-head[data-v-f2517c38]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.time[data-v-f2517c38]{font-size:11px;color:var(--muted-2)}.host[data-v-f2517c38]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}.remark-row[data-v-f2517c38]{margin-top:10px}.url[data-v-f2517c38]{margin-top:8px;font-family:var(--mono);font-size:11px;color:var(--muted-2);word-break:break-all}.capability-note[data-v-0fb63d84]{margin:4px 0 14px;padding:11px 13px;border-radius:10px;border:1px solid rgba(251,191,36,.26);background:#fbbf2412;font-size:12px;line-height:1.65}.capability-title[data-v-0fb63d84]{font-weight:650;color:#fcd34d;margin-bottom:4px}.capability-list[data-v-0fb63d84]{margin:0;padding-left:16px;color:var(--muted)}.capability-hint[data-v-0fb63d84]{margin-top:6px;color:var(--muted-2)}.modal-head[data-v-0fb63d84]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-title[data-v-0fb63d84]{font-size:17px;font-weight:650}.modal-sub[data-v-0fb63d84]{margin-top:4px;font-size:11.5px;color:var(--muted)}.hint[data-v-0fb63d84]{font-size:11px;color:var(--muted-2)}.desktop-hint[data-v-0fb63d84]{margin-bottom:10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fbbf240f;font-size:11.5px;color:var(--muted)}.mode-switch[data-v-0fb63d84]{display:inline-flex;gap:4px;padding:4px;margin-bottom:14px;border:1px solid var(--line);border-radius:11px;background:#0d131a99}.mode-pill[data-v-0fb63d84]{border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;cursor:pointer;transition:all .16s ease}.mode-pill[data-v-0fb63d84]:hover{color:var(--text)}.mode-pill.active[data-v-0fb63d84]{color:#042f2c;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.modal-foot[data-v-0fb63d84]{display:flex;justify-content:flex-end;gap:10px}@media(max-width:639px){.form-row[data-v-0fb63d84]{display:flex;flex-direction:column;gap:14px}.form-row[data-v-0fb63d84]>*{width:100%!important}}.version[data-v-cdfe01c6]{color:var(--muted-2);font-size:11px;margin-left:4px}.list-bar[data-v-cdfe01c6]{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 16px;flex-wrap:wrap}.filters[data-v-cdfe01c6]{display:inline-flex;gap:4px;padding:4px;border-radius:11px;border:1px solid var(--line);background:var(--chip-bg)}.pill[data-v-cdfe01c6]{border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;cursor:pointer;transition:all .16s ease}.pill[data-v-cdfe01c6]:hover{color:var(--text)}.pill.active[data-v-cdfe01c6]{color:#042f2c;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.search[data-v-cdfe01c6]{width:260px}.loading[data-v-cdfe01c6]{display:flex;align-items:center;justify-content:center;gap:12px;padding:90px 0;color:var(--muted);font-size:13px}.error-panel[data-v-cdfe01c6]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-cdfe01c6]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-cdfe01c6]{margin:7px 0 14px;font-size:12px;color:var(--muted);word-break:break-all}.no-match[data-v-cdfe01c6]{padding:44px 0;text-align:center;color:var(--muted);font-size:13px}.compact-summary[data-v-cdfe01c6]{display:flex;gap:12px;margin-bottom:14px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}.compact-summary b[data-v-cdfe01c6]{margin-left:3px;color:var(--text);font-family:var(--mono);font-weight:600}.compact-summary span[data-v-cdfe01c6]:not(:last-child):after{content:"·";margin-left:12px;color:var(--muted-2)}@media(max-width:720px){.search[data-v-cdfe01c6]{width:100%}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-CmWF_crB.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-CmWF_crB.js new file mode 100644 index 00000000..5d4ba6e0 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-CmWF_crB.js @@ -0,0 +1,117 @@ +import{I as ce}from"./Input-DOY9MBk2.js";import{G as ft,H as mt,z as Ie,I as ht,J as wt,K as _e,L as Be,M as Se,d as V,N as yt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Ze,T as bt,W as pe,X as Qe,Y as $e,j as x,Z as he,_ as gt,$ as kt,a0 as xt,a1 as _t,a2 as ne,a3 as St,a4 as fe,a5 as We,a6 as ae,a7 as se,a8 as Oe,a9 as Ct,aa as et,ab as $t,ac as Pt,ad as Ke,ae as le,af as ie,ag as Rt,ah as zt,ai as Nt,n as He,aj as It,ak as Bt,al as Mt,am as Ve,C as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as qe,ao as tt,ap as ge,A as ze,aq as Ot}from"./index-Ch4EWX-G.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-DQkFygL-.js";import{F as Et,a as me,u as Kt,A as Ge}from"./AddOutline-C9wx-dLG.js";import{V as At,a as Lt,B as Tt,r as Ft,p as nt,P as Dt,u as Ue}from"./use-message-sIwnQEJL.js";import{S as Ut}from"./Spin-BbwWICDg.js";import{c as jt,S as we,E as Wt}from"./EmptyState-fy8GfigG.js";import{T as Ht,P as Vt}from"./PulseOutline-DBaBm7B1.js";import{h as Je,c as qt,T as Pe,S as Gt}from"./Select-DlP0Rw4u.js";import{u as Jt}from"./use-compitable-CjxNERC_.js";import{p as Xt,a as Yt,c as Zt,u as Qt,b as en,l as tn,d as nn,g as on,t as rn,e as an}from"./streamers-Bl5LBoP5.js";import{p as Ne,a as ln,f as sn,b as un,c as ot,r as dn}from"./format-B8CnorUZ.js";import{v as cn}from"./filename-template-DBJXvN0y.js";import{C as pn}from"./CheckboxGroup-CVNCmOpb.js";import{S as vn}from"./Switch-4rsLpKoT.js";import{i as fn}from"./runtime-bridge-DmDzFGpU.js";import{V as mn}from"./VideocamOutline-Dxd9Z4sO.js";import{R as Xe}from"./RefreshOutline-DsgjGZK9.js";import{S as hn}from"./SearchOutline--3GBf81B.js";function wn(e={},s){const t=wt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return ft()?(mt(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),ht(t)}var yn=V({name:"ChevronRight",render(){return(()=>{const e=yt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function bn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const je=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ye=Fe("n-dropdown-option");var rt=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function gn(e){return e.type==="group"}function at(e){return e.type==="divider"}function kn(e){return e.type==="render"}function xn(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var lt=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ye,null),D=pe(je),K=pe(Qe),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=xn(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ye,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Je({target:B},"dropdownOption")&&!Je({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(st,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Ze(()=>(l(),E(yn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Tt,{key:0},{default:()=>[(l(),E(At,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Lt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(bt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),_n=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(je),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Sn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(_n,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:at(d)?Me(rt,{clsPrefix:t,key:r.key}):r.isGroup?(gt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(lt,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),Cn=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),st=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(je,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(xt,null),he(_t,null),he(Qe,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:kn(d)?(l(),E(Cn,{tmNode:r,key:r.key},null,8,["tmNode"])):at(d)?(l(),E(rt,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):gn(d)?(l(),E(Sn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(lt,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(kt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Ft({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),$n=ne("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[St(),ne("dropdown-option",` + position: relative; + `,[fe("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[fe("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),ne("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[fe("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),We("disabled",[ae("pending",` + color: var(--n-option-text-color-hover); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),fe("&::before","background-color: var(--n-option-color-hover);")]),ae("active",` + color: var(--n-option-text-color-active); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-active); + `),fe("&::before","background-color: var(--n-option-color-active);")]),ae("child-active",` + color: var(--n-option-text-color-child-active); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),ae("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),ae("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[se("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[ae("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),se("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[ae("show-icon",` + width: var(--n-option-icon-prefix-width); + `),ne("icon",` + font-size: var(--n-option-icon-size); + `)]),se("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),se("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[ae("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),ne("icon",` + font-size: var(--n-option-icon-size); + `)]),ne("dropdown-menu","pointer-events: all;")]),ne("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),ne("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),ne("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),fe(">",[ne("scrollbar",` + height: inherit; + max-height: inherit; + `)]),We("scrollable",` + padding: var(--n-padding); + `),ae("scrollable",[se("content",` + padding: var(--n-padding); + `)])]);const Pn={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:String,inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},Rn=Object.keys(nt),zn={...nt,...Pn,...Oe.props};var Nn=V({name:"Dropdown",inheritAttrs:!1,props:zn,setup(e){const s=_(!1),t=Jt(le(e,"show"),s),i=x(()=>{const{keyField:w,childrenField:I}=e;return qt(e.options,{getKey(A){return A[w]},getDisabled(A){return A.disabled===!0},getIgnored(A){return A.type==="divider"||A.type==="render"},getChildren(A){return A[I]}})}),r=x(()=>i.value.treeNodes),d=_(null),b=_(null),p=_(null),v=x(()=>d.value??b.value??p.value??null),$=x(()=>i.value.getPath(v.value).keyPath),k=x(()=>i.value.getPath(e.value).keyPath),z=$e(()=>e.keyboard&&t.value);wn({keydown:{ArrowUp:{prevent:!0,handler:Z},ArrowRight:{prevent:!0,handler:H},ArrowDown:{prevent:!0,handler:te},ArrowLeft:{prevent:!0,handler:R},Enter:{prevent:!0,handler:oe},Escape:N}},z);const{mergedClsPrefixRef:f,inlineThemeDisabled:T,mergedComponentPropsRef:M}=et(e),O=x(()=>e.size||M?.value?.Dropdown?.size||"medium"),F=Oe("Dropdown","-dropdown",$n,$t,e,f);he(Ee,{labelFieldRef:le(e,"labelField"),childrenFieldRef:le(e,"childrenField"),renderLabelRef:le(e,"renderLabel"),renderIconRef:le(e,"renderIcon"),hoverKeyRef:d,keyboardKeyRef:b,lastToggledSubmenuKeyRef:p,pendingKeyPathRef:$,activeKeyPathRef:k,animatedRef:le(e,"animated"),mergedShowRef:t,nodePropsRef:le(e,"nodeProps"),renderOptionRef:le(e,"renderOption"),menuPropsRef:le(e,"menuProps"),doSelect:D,doUpdateShow:K}),Be(t,w=>{!e.animated&&!w&&W()});function D(w,I){const{onSelect:A}=e;A&&Ke(A,w,I)}function K(w){const{"onUpdate:show":I,onUpdateShow:A}=e;I&&Ke(I,w),A&&Ke(A,w),s.value=w}function W(){d.value=null,b.value=null,p.value=null}function N(){K(!1)}function R(){P("left")}function H(){P("right")}function Z(){P("up")}function te(){P("down")}function oe(){const w=Y();w?.isLeaf&&t.value&&(D(w.key,w.rawNode),K(!1))}function Y(){const{value:w}=i,{value:I}=v;return!w||I===null?null:w.getNode(I)??null}function P(w){const{value:I}=v,{value:{getFirstAvailableNode:A}}=i;let h=null;if(I===null){const B=A();B!==null&&(h=B.key)}else{const B=Y();if(B){let q;switch(w){case"down":q=B.getNext();break;case"up":q=B.getPrev();break;case"right":q=B.getChild();break;case"left":q=B.getParent()}q&&(h=q.key)}}h!==null&&(d.value=null,b.value=h)}const a=x(()=>{const{inverted:w}=e,I=O.value,{common:{cubicBezierEaseInOut:A},self:h}=F.value,{padding:B,dividerColor:q,borderRadius:re,optionOpacityDisabled:C,[ie("optionIconSuffixWidth",I)]:m,[ie("optionSuffixWidth",I)]:U,[ie("optionIconPrefixWidth",I)]:xe,[ie("optionPrefixWidth",I)]:dt,[ie("fontSize",I)]:ct,[ie("optionHeight",I)]:pt,[ie("optionIconSize",I)]:vt}=h,j={"--n-bezier":A,"--n-font-size":ct,"--n-padding":B,"--n-border-radius":re,"--n-option-height":pt,"--n-option-prefix-width":dt,"--n-option-icon-prefix-width":xe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":m,"--n-option-icon-size":vt,"--n-divider-color":q,"--n-option-opacity-disabled":C};return w?(j["--n-color"]=h.colorInverted,j["--n-option-color-hover"]=h.optionColorHoverInverted,j["--n-option-color-active"]=h.optionColorActiveInverted,j["--n-option-text-color"]=h.optionTextColorInverted,j["--n-option-text-color-hover"]=h.optionTextColorHoverInverted,j["--n-option-text-color-active"]=h.optionTextColorActiveInverted,j["--n-option-text-color-child-active"]=h.optionTextColorChildActiveInverted,j["--n-prefix-color"]=h.prefixColorInverted,j["--n-suffix-color"]=h.suffixColorInverted,j["--n-group-header-text-color"]=h.groupHeaderTextColorInverted):(j["--n-color"]=h.color,j["--n-option-color-hover"]=h.optionColorHover,j["--n-option-color-active"]=h.optionColorActive,j["--n-option-text-color"]=h.optionTextColor,j["--n-option-text-color-hover"]=h.optionTextColorHover,j["--n-option-text-color-active"]=h.optionTextColorActive,j["--n-option-text-color-child-active"]=h.optionTextColorChildActive,j["--n-prefix-color"]=h.prefixColor,j["--n-suffix-color"]=h.suffixColor,j["--n-group-header-text-color"]=h.groupHeaderTextColor),j}),n=T?Pt("dropdown",x(()=>`${O.value[0]}${e.inverted?"i":""}`),a,e):void 0;return{mergedClsPrefix:f,mergedTheme:F,mergedSize:O,tmNodes:r,mergedShow:t,handleAfterLeave:()=>{e.animated&&W()},doUpdateShow:K,cssVars:T?void 0:a,themeClass:n?.themeClass,onRender:n?.onRender}},render(){const e=(i,r,d,b,p)=>{const{mergedClsPrefix:v,menuProps:$}=this;this.onRender?.();const k=$?.(void 0,this.tmNodes.map(f=>f.rawNode))||{},z={ref:jt(r),class:[i,`${v}-dropdown`,`${v}-dropdown--${this.mergedSize}-size`,this.themeClass],clsPrefix:v,tmNodes:this.tmNodes,style:[...d,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:b,onMouseleave:p};return Me(st,be(this.$attrs,z,k))},{mergedTheme:s}=this,t={show:this.mergedShow,theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return l(),E(Dt,Ct(this.$props,Rn,t),{_:1,trigger:Ze(()=>this.$slots.default?.())},16)}});let Ae;function In(){if(!Rt)return!0;if(Ae===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const s=e.scrollHeight===1;return document.body.removeChild(e),Ae=s}return Ae}const Bn={...Oe.props,align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}};var Mn=V({name:"Space",props:Bn,setup(e){const{mergedClsPrefixRef:s,mergedRtlRef:t,mergedComponentPropsRef:i}=et(e),r=x(()=>e.size??i?.value?.Space?.size??"medium"),d=Oe("Space","-space",void 0,Bt,e,s),b=It("Space",t,s);return{useGap:In(),rtlEnabled:b,mergedClsPrefix:s,margin:x(()=>{const p=r.value;if(Array.isArray(p))return{horizontal:p[0],vertical:p[1]};if(typeof p=="number")return{horizontal:p,vertical:p};const{self:{[ie("gap",p)]:v}}=d.value,{row:$,col:k}=Mt(v);return{horizontal:Ve(k),vertical:Ve($)}})}},render(){const{vertical:e,reverse:s,align:t,inline:i,justify:r,itemClass:d,itemStyle:b,margin:p,wrap:v,mergedClsPrefix:$,rtlEnabled:k,useGap:z,wrapItem:f,internalUseGap:T}=this,M=zt(bn(this),!1);if(!M.length)return null;const O=`${p.horizontal}px`,F=`${p.horizontal/2}px`,D=`${p.vertical}px`,K=`${p.vertical/2}px`,W=M.length-1,N=r.startsWith("space-");return l(),c("div",{role:"none",class:ee([`${$}-space`,k&&`${$}-space--rtl`]),style:He({display:i?"inline-flex":"flex",flexDirection:e&&!s?"column":e&&s?"column-reverse":!e&&s?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!v||e?"nowrap":"wrap",marginTop:z||e?"":`-${K}`,marginBottom:z||e?"":`-${K}`,alignItems:t,gap:z?`${p.vertical}px ${p.horizontal}px`:""})},[!f&&(z||T)?(l(),c(X,{key:0},[J(()=>M)],64)):(l(),c(X,{key:1},[J(()=>M.map((R,H)=>R.type===Nt?R:(l(),c("div",{key:1,role:"none",class:ee(d),style:He([b,{maxWidth:"100%"},z?"":e?{marginBottom:H!==W?D:""}:k?{marginLeft:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginRight:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}:{marginRight:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginLeft:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}])},[J(()=>R)],6))))],64))],6)}});const On={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},En=V({name:"AlertCircleOutline",render:function(s,t){return l(),c("svg",On,t[0]||(t[0]=[o("path",{d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{d:"M250.26 166.05L256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 367.91a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),Kn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},An=V({name:"CloudUploadOutline",render:function(s,t){return l(),c("svg",Kn,t[0]||(t[0]=[o("path",{d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 255.79l-64-64l-64 64"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 448.21V207.79"},null,-1)]))}}),Ln={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Tn=V({name:"EllipsisHorizontal",render:function(s,t){return l(),c("svg",Ln,t[0]||(t[0]=[o("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"416",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"96",cy:"256",r:"48",fill:"currentColor"},null,-1)]))}}),Fn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Dn=V({name:"OpenOutline",render:function(s,t){return l(),c("svg",Fn,t[0]||(t[0]=[o("path",{d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 64h112v112"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M224 288L440 72"},null,-1)]))}}),Un={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},jn=V({name:"PauseOutline",render:function(s,t){return l(),c("svg",Un,t[0]||(t[0]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 96h16v320h-16z"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 96h16v320h-16z"},null,-1)]))}}),Wn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Hn=V({name:"PlayOutline",render:function(s,t){return l(),c("svg",Wn,t[0]||(t[0]=[o("path",{d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Vn={key:0,class:"live-dot"},qn={key:1,class:"plain-dot"},Gn=V({__name:"StatusBadge",props:{status:{default:""},size:{default:"md"}},setup(e){const s=e,t=x(()=>{switch(s.status){case"Working":return{label:"直播中",tone:"live",dot:!0};case"Pending":return{label:"检测中",tone:"info",dot:!1};case"Pause":return{label:"已暂停",tone:"warn",dot:!1};case"OutOfSchedule":return{label:"非录播时间",tone:"muted",dot:!1};case"TitleExcluded":return{label:"标题已排除",tone:"warn",dot:!1};case"StreamExpired":return{label:"流已过期",tone:"warn",dot:!1};default:return{label:"未开播",tone:"muted",dot:!1}}});return(i,r)=>(l(),c("span",{class:ue(["badge",[t.value.tone,e.size]])},[t.value.dot?(l(),c("span",Vn)):(l(),c("span",qn)),L(" "+S(t.value.label),1)],2))}}),Jn=ke(Gn,[["__scopeId","data-v-7e3eb802"]]);function Xn(e,s=!1){if(typeof e!="string")return!1;const t=e.trim();if(!t||t!==e||/[\u0000-\u0020\u007f]/.test(t))return!1;const i=/^([a-z][a-z0-9+.-]*):\/\//i.exec(t);if(!i)return!1;const r=i[1].toLowerCase();if(r!=="http"&&r!=="https"&&!(s&&r==="wxchannel-stream"))return!1;try{return new URL(t).protocol===r+":"}catch{return!1}}const Le=_(Date.now());let ye,Ce=0;function Yn(){return De(()=>{Ce+=1,ye===void 0&&(Le.value=Date.now(),ye=window.setInterval(()=>{Le.value=Date.now()},1e3))}),Ie(()=>{Ce-=1,Ce<=0&&ye!==void 0&&(window.clearInterval(ye),ye=void 0,Ce=0)}),Le}const Zn=["src"],Qn={key:1,class:"cover-fallback"},eo={class:"platform-glyph"},to={class:"cover-top"},no=["title"],oo={class:"platform-chip"},ro={class:"cover-bottom"},ao={class:"cover-title"},lo={class:"cover-sub"},so={class:"body"},io={class:"meta-row"},uo={class:"meta"},co={class:"meta-value mono"},po={class:"meta"},vo=["title"],fo={class:"meta-value mono"},mo={class:"meta"},ho={class:"meta-value mono"},wo={class:"meta",title:"开播检查间隔(秒)。连续查询失败会在此基础上按 1x→2x→4x→8x 退避"},yo=["title"],bo={class:"probe-text"},go={key:1,class:"probe-advice"},ko={class:"actions"},xo={class:"ghost-btn","aria-label":"更多操作"},_o=V({__name:"StreamerCard",props:{streamer:{}},emits:["toggle","edit","delete"],setup(e,{emit:s}){const t=e,i=s,r=_(!1),d=x(()=>t.streamer.status==="Working"),b=x(()=>t.streamer.status==="Pause"||t.streamer.status==="StreamExpired"),p=x(()=>t.streamer.probe??null),v=x(()=>!!p.value&&!d.value),$=x(()=>p.value?Xt(p.value):""),k=x(()=>p.value?Yt(p.value):""),z=x(()=>d.value&&t.streamer.live_cover_url&&!r.value?Zt(t.streamer.id):""),f=x(()=>t.streamer.remark||t.streamer.live_streamer_name||"未命名直播间"),T=x(()=>t.streamer.live_streamer_name||t.streamer.url),M=Yn(),O=x(()=>{const N=t.streamer.session_started_at;return!d.value||!N?null:Math.max(0,M.value-N)}),F=x(()=>t.streamer.session_started_at?`本场开录于 ${ot(t.streamer.session_started_at)}`:""),D=[{label:"编辑直播间",key:"edit"},{label:"删除",key:"delete"}];function K(N){N==="edit"&&i("edit",t.streamer),N==="delete"&&i("delete",t.streamer)}function W(){Xn(t.streamer.url,!0)&&window.open(t.streamer.url,"_blank","noopener")}return(N,R)=>(l(),c("article",{class:ue(["card fade-up",{live:d.value}])},[o("div",{class:ue(["cover",u(ln)(e.streamer.url)])},[z.value?(l(),c("img",{key:0,class:"cover-img",src:z.value,alt:"",onError:R[0]||(R[0]=H=>r.value=!0)},null,40,Zn)):(l(),c("div",Qn,[o("span",eo,S(u(Ne)(e.streamer.url)),1)])),R[2]||(R[2]=o("div",{class:"cover-shade"},null,-1)),o("div",to,[v.value?(l(),c("span",{key:1,class:"probe-badge",title:k.value},S($.value)+" ×"+S(p.value.failures),9,no)):(l(),E(Jn,{key:0,status:e.streamer.status,size:"sm"},null,8,["status"])),o("span",oo,S(u(Ne)(e.streamer.url)),1)]),o("div",ro,[o("div",ao,S(f.value),1),o("div",lo,S(T.value),1)])],2),o("div",so,[o("div",io,[o("div",uo,[R[3]||(R[3]=o("span",{class:"meta-label"},"格式",-1)),o("span",co,S(e.streamer.format||"ts"),1)]),o("div",po,[R[4]||(R[4]=o("span",{class:"meta-label"},"实时码率",-1)),o("span",{class:ue(["meta-value mono",{hot:d.value}])},S(d.value?u(sn)(e.streamer.live_bytes_per_sec):"—"),3)]),o("div",{class:"meta",title:F.value},[R[5]||(R[5]=o("span",{class:"meta-label"},"已录制",-1)),o("span",fo,S(O.value!=null?u(un)(Math.max(O.value,1e3)):"—"),1)],8,vo),o("div",mo,[R[6]||(R[6]=o("span",{class:"meta-label"},"场次",-1)),o("span",ho,S(e.streamer.session_id??"—"),1)]),o("div",wo,[R[7]||(R[7]=o("span",{class:"meta-label"},"间隔",-1)),o("span",{class:ue(["meta-value mono",{hot:v.value}])},S(e.streamer.check_interval_secs?`${e.streamer.check_interval_secs}s`:"—"),3)])]),v.value?(l(),c("div",{key:0,class:"probe-note",title:k.value},[R[8]||(R[8]=o("span",{class:"probe-dot"},null,-1)),o("span",bo,S($.value)+":"+S(p.value.message),1)],8,yo)):G("",!0),v.value&&p.value.hint?(l(),c("div",go,S(p.value.hint),1)):G("",!0),o("div",ko,[y(u(Q),{size:"small",type:b.value?"primary":"default",secondary:"",class:"main-action",onClick:R[1]||(R[1]=H=>i("toggle",e.streamer))},{icon:g(()=>[y(u(de),null,{default:g(()=>[b.value?(l(),E(u(Hn),{key:0})):(l(),E(u(jn),{key:1}))]),_:1})]),default:g(()=>[L(" "+S(b.value?"恢复监控":"暂停监控"),1)]),_:1},8,["type"]),y(u(Ht),{trigger:"hover"},{trigger:g(()=>[o("button",{class:"ghost-btn","aria-label":"打开直播间",onClick:W},[y(u(de),{size:17},{default:g(()=>[y(u(Dn))]),_:1})])]),default:g(()=>[R[9]||(R[9]=L(" 在浏览器打开直播间 ",-1))]),_:1}),y(u(Nn),{options:D,trigger:"click",onSelect:K},{default:g(()=>[o("button",xo,[y(u(de),{size:18},{default:g(()=>[y(u(Tn))]),_:1})])]),_:1})])])],2))}}),So=ke(_o,[["__scopeId","data-v-9ae28998"]]);function Co(e){const s=e.trim();if(!s.startsWith("{"))return null;try{const t=JSON.parse(s);if(!t||typeof t!="object")return null;const i=t,r=i.detail??i.error??i.message;return typeof r=="string"&&r.trim()?r:null}catch{return null}}async function ve(e){try{return await e()}catch(s){if(s instanceof qe){const t=Co(s.message);if(t)throw new qe(s.status,t,s.authSource)}throw s}}const it=()=>ve(()=>tt("/v1/wechat-capture/status")),$o=()=>ve(()=>tt("/v1/wechat-capture/streams")),Po=()=>ve(()=>ge("/v1/wechat-capture/cert/install")),Ro=()=>ve(()=>ge("/v1/wechat-capture/cert/uninstall")),zo=()=>ve(()=>ge("/v1/wechat-capture/start")),No=()=>ve(()=>ge("/v1/wechat-capture/stop")),ut=e=>ve(()=>ge("/v1/wechat-capture/record",e)),Io={class:"capture-panel"},Bo={class:"status-bar"},Mo={class:"status-left"},Oo={class:"status-row"},Eo={class:"status-row"},Ko={key:0,class:"proxy mono"},Ao={key:1,class:"status-hint"},Lo={key:0,class:"last-error"},To={key:1,class:"compliance"},Fo={class:"compliance-actions"},Do={class:"list-bar"},Uo={key:2,class:"empty"},jo={key:3,class:"stream-list"},Wo={class:"stream-head"},Ho=["title"],Vo=["title"],qo={class:"remark-row"},Go={class:"url mono"},Jo=V({__name:"WechatCapturePanel",emits:["recorded"],setup(e,{emit:s}){const t=s,i=Ue(),r=_(null),d=_([]),b=_(!1),p=_(!1),v=_(!1),$=_(!1),k=_(!1),z=_(!1),f=_(null),T=_(!1),M=_(!1),O=_({}),F=new Set;let D,K=!1;const W=x(()=>r.value?.cert_installed?"已安装":"未安装"),N=x(()=>!!r.value?.proxy_running),R=x(()=>r.value?.proxy_port?`127.0.0.1:${r.value.proxy_port}`:""),H=x(()=>d.value.length>0);function Z(C){return C instanceof Error?C.message:"操作失败"}function te(C){const m=O.value[C.id];return m!==void 0?m:[C.author,C.title].filter(Boolean).join(" / ")}function oe(C,m){O.value[C.id]=m,F.add(C.id)}let Y=!1;function P(){Y||D===void 0&&(D=window.setInterval(()=>{document.visibilityState==="visible"&&r.value?.proxy_running&&w()},3e3))}function a(){D!==void 0&&(window.clearInterval(D),D=void 0)}async function n(C=!1){p.value=!0;try{const m=await it();if(Y)return;r.value=m,b.value=!!m?.available,b.value?P():a()}catch(m){C||i.error(Z(m))}finally{p.value=!1}}async function w(C=!1){if(!K){K=!0,C&&(k.value=!0);try{const m=await $o();d.value=Array.isArray(m)?m:[]}catch(m){C&&i.error(Z(m))}finally{K=!1,C&&(k.value=!1)}}}function I(){document.visibilityState==="visible"&&(n(!0),r.value?.proxy_running&&w())}function A(C){if(!C){B();return}if(!M.value){T.value=!0;return}h()}async function h(){v.value=!0;try{r.value?.cert_installed||(r.value=await Po());const C=await zo();r.value=C,b.value=!!C?.available,T.value=!1,i.success("嗅探已启动,打开视频号直播间播放后即可看到捕获的流"),await w()}catch(C){i.error(Z(C))}finally{v.value=!1}}async function B(){$.value=!0;try{r.value=await No(),d.value=[],i.success("已停止嗅探,系统代理已还原")}catch(C){i.error(Z(C))}finally{$.value=!1}}async function q(){z.value=!0;try{r.value=await Ro(),i.success("临时根证书已卸载")}catch(C){i.error(Z(C))}finally{z.value=!1}}async function re(C){f.value=C.id;try{const m=F.has(C.id)?{stream_id:C.id,name:O.value[C.id]?.trim()||null}:{stream_id:C.id},U=await ut(m);t("recorded",U),i.success("已加入监控,正在检测开播")}catch(m){i.error(Z(m))}finally{f.value=null}}return De(()=>{document.addEventListener("visibilitychange",I),n()}),Ie(()=>{Y=!0,a(),document.removeEventListener("visibilitychange",I)}),(C,m)=>(l(),c("div",Io,[o("div",Bo,[o("div",Mo,[o("div",Oo,[m[4]||(m[4]=o("span",{class:"status-label"},"证书状态",-1)),y(u(Pe),{size:"small",round:"",bordered:!1,type:r.value?.cert_installed?"success":"warning"},{default:g(()=>[L(S(W.value),1)]),_:1},8,["type"]),r.value?.cert_installed?(l(),E(u(Q),{key:0,quaternary:"",size:"tiny",loading:z.value,onClick:q},{default:g(()=>[...m[3]||(m[3]=[L(" 卸载证书 ",-1)])]),_:1},8,["loading"])):G("",!0)]),o("div",Eo,[m[5]||(m[5]=o("span",{class:"status-label"},"自动嗅探",-1)),y(u(vn),{size:"small",value:N.value,loading:v.value||$.value||p.value,disabled:!b.value,"onUpdate:value":A},null,8,["value","loading","disabled"]),N.value&&R.value?(l(),c("span",Ko,S(R.value),1)):(l(),c("span",Ao,S(b.value?"未运行":"仅桌面端可用"),1))])]),N.value?(l(),E(u(Q),{key:0,type:"error",secondary:"",size:"small",loading:$.value,onClick:B},{default:g(()=>[...m[6]||(m[6]=[L(" 停止并还原网络 ",-1)])]),_:1},8,["loading"])):G("",!0)]),r.value?.last_error?(l(),c("div",Lo,S(r.value.last_error),1)):G("",!0),T.value?(l(),c("div",To,[m[10]||(m[10]=o("div",{class:"compliance-title"},"开启自动嗅探前请确认",-1)),m[11]||(m[11]=o("ol",{class:"compliance-list"},[o("li",null,"仅用于录制本人或已获授权的内容"),o("li",null,"会在本机安装临时自签根证书"),o("li",null,"仅解密视频号相关域名,其余流量透传,关闭即自动还原系统代理")],-1)),y(u(pn),{checked:M.value,"onUpdate:checked":m[0]||(m[0]=U=>M.value=U),size:"small"},{default:g(()=>[...m[7]||(m[7]=[L("我已阅读并确认以上说明",-1)])]),_:1},8,["checked"]),o("div",Fo,[y(u(Q),{size:"small",quaternary:"",disabled:v.value,onClick:m[1]||(m[1]=U=>T.value=!1)},{default:g(()=>[...m[8]||(m[8]=[L(" 取消 ",-1)])]),_:1},8,["disabled"]),y(u(Q),{size:"small",type:"primary",disabled:!M.value,loading:v.value,onClick:h},{default:g(()=>[...m[9]||(m[9]=[L(" 确认并启动 ",-1)])]),_:1},8,["disabled","loading"])])])):G("",!0),o("div",Do,[m[13]||(m[13]=o("span",{class:"list-title"},"捕获到的流",-1)),y(u(Q),{size:"tiny",quaternary:"",loading:k.value,onClick:m[2]||(m[2]=U=>w(!0))},{default:g(()=>[...m[12]||(m[12]=[L(" 刷新 ",-1)])]),_:1},8,["loading"])]),H.value?(l(),c("div",jo,[(l(!0),c(X,null,ze(d.value,U=>(l(),c("div",{key:U.id,class:"stream-item"},[o("div",Wo,[o("span",{class:"time",title:u(ot)(U.captured_at)},S(u(dn)(U.captured_at)),9,Ho),y(u(Pe),{size:"small",round:"",bordered:!1,type:U.protocol==="flv"?"success":"info"},{default:g(()=>[L(S(U.protocol.toUpperCase()),1)]),_:2},1032,["type"]),U.quality_hint?(l(),E(u(Pe),{key:0,size:"small",bordered:!1},{default:g(()=>[L(S(U.quality_hint),1)]),_:2},1024)):G("",!0),o("span",{class:"host",title:U.host},S(U.host),9,Vo),y(u(Q),{size:"small",type:"primary",secondary:"",loading:f.value===U.id,onClick:xe=>re(U)},{default:g(()=>[...m[14]||(m[14]=[L(" 一键录制 ",-1)])]),_:1},8,["loading","onClick"])]),o("div",qo,[y(u(ce),{size:"small",value:te(U),placeholder:"备注(主播 / 标题)",clearable:"","onUpdate:value":xe=>oe(U,xe)},null,8,["value","onUpdate:value"])]),o("div",Go,S(U.url_preview),1)]))),128))])):(l(),c("div",Uo," 进入视频号直播间并播放后回到本页,捕获到的流会出现在这里 "))]))}}),Xo=ke(Jo,[["__scopeId","data-v-f2517c38"]]),Yo={class:"modal-head"},Zo={class:"modal-title"},Qo={class:"modal-sub"},er={key:0,class:"desktop-hint"},tr={key:1,class:"desktop-hint"},nr={key:2,class:"mode-switch"},or={key:0,class:"capability-note"},rr={class:"capability-list"},ar={class:"modal-foot"},lr=V({__name:"AddStreamerModal",props:{show:{type:Boolean},entity:{}},emits:["update:show","saved"],setup(e,{emit:s}){const t=e,i=s,r=Ue(),d=fn(),b=_(null),p=_(!1),v=_("manual"),$=_(!1),k=_([]),z=_(!1),f=_({url:"",remark:"",filename_prefix:"",format:"ts",time_range:"",check_interval:""}),T=_([]),M=x(()=>T.value.filter(P=>P.blocks_probe)),O=x(()=>!!t.entity),F=x(()=>f.value.url.trim()?Ne(f.value.url.trim()):""),D=[{label:"TS(推荐,抗断流)",value:"ts"},{label:"FLV",value:"flv"},{label:"MP4",value:"mp4"},{label:"MKV",value:"mkv"}],K={url:[{required:!0,message:"请填写直播间地址",trigger:["blur","input"]},{validator:(P,a)=>{if(!a)return!0;const n=a.trim();if(!/^(https?|wxchannel-stream):\/\//i.test(n))return new Error("地址格式不正确,需要以 http://、https:// 或 wxchannel-stream:// 开头");try{return new URL(n),!0}catch{return new Error("地址格式不正确,请检查地址是否完整")}},trigger:["blur"]}],filename_prefix:[{validator:(P,a)=>{const n=cn(a);return n?new Error(n):!0},trigger:["blur","input"]}]};Be(()=>t.show,P=>{if(!P)return;const a=t.entity;f.value.url=a?.url??"",f.value.remark=a?.remark??"",f.value.filename_prefix=a?.filename_prefix??"",f.value.format=a?.format??"ts",f.value.time_range=a?.time_range??"",f.value.check_interval=String(a?.override?.event_loop_interval??""),v.value="manual",W(),!a&&!d&&R()});async function W(){if(!(T.value.length>0))try{T.value=await tn()}catch{T.value=[]}}function N(P){const a={...P??{}},n=f.value.check_interval.trim(),w=Number(n);return n&&Number.isFinite(w)&&w>0?a.event_loop_interval=Math.round(w):delete a.event_loop_interval,Object.keys(a).length>0?a:null}async function R(){z.value=!0;try{const P=await it();k.value=Array.isArray(P?.whitelist)?P.whitelist:[],$.value=!!P?.available}catch{k.value=[],$.value=!1}finally{z.value=!1}}function H(P,a){const n=P.toLowerCase();return a.some(w=>{const I=w.trim().toLowerCase();return I?n===I||n.endsWith(`.${I}`):!1})}function Z(P){const a=P.trim().toLowerCase();if(a.startsWith("wxchannel-stream://"))return!0;if(d||!/^https?:\/\//.test(a)||!/\.flv(?:[?#]|$)/.test(a)&&!/\.m3u8(?:[?#]|$)/.test(a)||k.value.length===0)return!1;try{return H(new URL(a).hostname,k.value)}catch{return!1}}function te(){i("update:show",!1)}async function oe(){try{await b.value?.validate()}catch{return}p.value=!0;try{const P=f.value.url.trim(),a=f.value.remark.trim();t.entity?(await Qt({...t.entity,url:P,remark:a,filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(t.entity.override)}),r.success("直播间已更新")):Z(P)?(await ut({url:P,name:a||null}),r.success("已加入监控,正在检测开播")):(await en({url:P,remark:a||Ne(P)+"直播间",filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(null)}),r.success("直播间已添加,正在检测开播状态")),i("saved"),te()}catch(P){r.error(P instanceof Error?P.message:"保存失败")}finally{p.value=!1}}function Y(){i("saved"),te()}return(P,a)=>(l(),E(u(Ot),{show:e.show,preset:"card",style:{width:"580px",maxWidth:"92vw"},bordered:!1,"mask-closable":!p.value,"onUpdate:show":a[8]||(a[8]=n=>i("update:show",n))},{header:g(()=>[o("div",Yo,[o("div",null,[o("div",Zo,S(O.value?"编辑直播间":"添加直播间"),1),o("div",Qo,S(O.value?"修改后会在下一次检测周期生效":"支持抖音、快手、B站、虎牙、斗鱼等平台的直播间地址"),1)]),F.value?(l(),E(u(Pe),{key:0,size:"small",round:"",bordered:!1,type:"success"},{default:g(()=>[L(" 已识别 "+S(F.value),1)]),_:1})):G("",!0)])]),footer:g(()=>[o("div",ar,[y(u(Q),{quaternary:"",disabled:p.value,onClick:te},{default:g(()=>[...a[13]||(a[13]=[L("取消",-1)])]),_:1},8,["disabled"]),O.value||v.value==="manual"?(l(),E(u(Q),{key:0,type:"primary",loading:p.value,onClick:oe},{default:g(()=>[L(S(O.value?"保存修改":"开始监控"),1)]),_:1},8,["loading"])):G("",!0)])]),default:g(()=>[O.value?G("",!0):(l(),c(X,{key:0},[u(d)?(l(),c("div",er," 视频号请直接粘贴直播流地址;自动嗅探请改用桌面客户端。 ")):G("",!0),!u(d)&&!z.value&&!$.value?(l(),c("div",tr," 自动嗅探仅支持桌面端,服务端部署请直接粘贴流地址 ")):G("",!0),u(d)?G("",!0):(l(),c("div",nr,[o("button",{class:ue(["mode-pill",{active:v.value==="manual"}]),onClick:a[0]||(a[0]=n=>v.value="manual")}," 手动粘贴流地址 ",2),$.value?(l(),c("button",{key:0,class:ue(["mode-pill",{active:v.value==="capture"}]),onClick:a[1]||(a[1]=n=>v.value="capture")}," 自动嗅探(桌面端) ",2)):G("",!0)]))],64)),!u(d)&&!O.value&&v.value==="capture"&&$.value?(l(),E(Xo,{key:1,onRecorded:Y})):(l(),E(u(Et),{key:2,ref_key:"formRef",ref:b,model:f.value,rules:K,"label-placement":"top","require-mark-placement":"right-hanging"},{default:g(()=>[y(u(me),{label:"直播间地址",path:"url"},{feedback:g(()=>[...a[9]||(a[9]=[o("div",{class:"hint"}," 抖音/快手/B站/虎牙/斗鱼/六间房可直接粘贴直播间地址;抖音分享短链会自动换成长期房间地址。 在场的分享链接只对应这一场直播,链接失效后需要粘贴主播当前开播时的新链接 ",-1),o("div",{class:"hint"}," 视频号请粘贴 *.flv / *.m3u8 流地址(可从视频号助手或抓包工具获取);视频号直链必须是视频号 CDN 域名,其他平台的 .flv/.m3u8 直链照旧直接添加 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.url,placeholder:"https://live.douyin.com/123456789",clearable:"","onUpdate:value":a[2]||(a[2]=n=>f.value.url=n)},null,8,["value"])]),_:1}),y(u(Mn),{size:14,class:"form-row",style:{width:"100%"}},{default:g(()=>[y(u(me),{label:"备注名称",path:"remark",style:{flex:"1"}},{default:g(()=>[y(u(ce),{value:f.value.remark,placeholder:"例如:某某主播",clearable:"","onUpdate:value":a[3]||(a[3]=n=>f.value.remark=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制格式",path:"format",style:{width:"190px"}},{default:g(()=>[y(u(Gt),{value:f.value.format,options:D,"onUpdate:value":a[4]||(a[4]=n=>f.value.format=n??"")},null,8,["value"])]),_:1})]),_:1}),y(u(me),{label:"文件名前缀",path:"filename_prefix"},{default:g(()=>[y(u(ce),{value:f.value.filename_prefix,placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S;留空使用全局设置",clearable:"","onUpdate:value":a[5]||(a[5]=n=>f.value.filename_prefix=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制时间段",path:"time_range"},{default:g(()=>[y(u(ce),{value:f.value.time_range,placeholder:"可选,例如 20:00:00-23:59:59;留空表示全天监控",clearable:"","onUpdate:value":a[6]||(a[6]=n=>f.value.time_range=n)},null,8,["value"])]),_:1}),y(u(me),{label:"检查间隔(秒)",path:"check_interval"},{feedback:g(()=>[...a[10]||(a[10]=[o("div",{class:"hint"}," 多久查一次这个房间有没有开播(默认沿用全局设置)。查询连续失败时监控会在此基础上 自动退避(1x→2x→4x→8x 封顶),不会把失败当成下播。 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.check_interval,placeholder:"可选,例如 30;留空沿用全局设置",clearable:"","onUpdate:value":a[7]||(a[7]=n=>f.value.check_interval=n)},null,8,["value"])]),_:1}),M.value.length?(l(),c("div",or,[a[11]||(a[11]=o("div",{class:"capability-title"},"这些平台当前无法检测开播(合规限制)",-1)),o("ul",rr,[(l(!0),c(X,null,ze(M.value,n=>(l(),c("li",{key:n.platform},[o("strong",null,S(n.platform),1),L(":"+S(n.detail),1)]))),128))]),a[12]||(a[12]=o("div",{class:"capability-hint"}," 仍可添加,但房间会显示「查询失败」并给出原因;要真正录制请改用受支持平台, 或按平台官方授权链路接入。 ",-1))])):G("",!0)]),_:1},8,["model"]))]),_:1},8,["show","mask-closable"]))}}),sr=ke(lr,[["__scopeId","data-v-0fb63d84"]]),ir={class:"page"},ur={class:"page-head"},dr={class:"page-sub"},cr={key:0,class:"mono version"},pr={class:"toolbar"},vr={key:0,class:"stat-grid"},fr={key:1,class:"compact-summary"},mr={class:"list-bar"},hr={class:"filters"},wr=["onClick"],yr={key:2,class:"loading"},br={key:3,class:"error-panel"},gr={class:"error-msg"},kr={key:0,class:"card-grid"},xr={key:1,class:"no-match"},_r=V({__name:"StreamersView",setup(e){const s=Ue(),t=Kt(),i=_([]),r=_(null),d=_(!0),b=_(!1),p=_(!1),v=_(""),$=_(""),k=_("all"),z=_(!1),f=_(null);let T;const M=x(()=>{const a=i.value;return{total:a.length,live:a.filter(n=>n.status==="Working").length,pending:a.filter(n=>n.status==="Pending").length,paused:a.filter(n=>n.status==="Pause"||n.status==="StreamExpired").length,probeFailed:a.filter(n=>n.status==="ProbeFailed").length}}),O=x(()=>{const a=$.value.trim().toLowerCase();return i.value.filter(n=>k.value==="live"&&n.status!=="Working"||k.value==="paused"&&n.status!=="Pause"&&n.status!=="StreamExpired"||k.value==="failed"&&n.status!=="ProbeFailed"||k.value==="idle"&&(n.status==="Working"||n.status==="Pause"||n.status==="StreamExpired"||n.status==="ProbeFailed")?!1:a?n.remark.toLowerCase().includes(a)||n.url.toLowerCase().includes(a)||(n.live_streamer_name??"").toLowerCase().includes(a):!0).sort((n,w)=>{const I=A=>A.status==="Working"?0:A.status==="Pending"?1:A.status==="ProbeFailed"?2:3;return I(n)-I(w)||w.id-n.id})});function F(){p.value=window.innerWidth<640}let D=!1,K=!1,W=!1;async function N(a=!1){if(!K){if(D){a||(W=!0);return}D=!0,a?b.value=!0:d.value=i.value.length===0;try{const[n,w]=await Promise.all([nn(),on().catch(()=>null)]);i.value=n,w&&(r.value=w),v.value=""}catch(n){v.value=n instanceof Error?n.message:"加载失败"}finally{D=!1,d.value=!1,b.value=!1,W&&!K&&(W=!1,N(!0))}}}function R(a){k.value=a}function H(){f.value=null,z.value=!0}function Z(a){f.value=a,z.value=!0}async function te(a){try{await rn(a.id);const n=a.status==="Pause"||a.status==="StreamExpired";s.success(n?"已恢复监控":"已暂停监控"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"操作失败")}}function oe(a){t.warning({title:"删除直播间",content:`确定删除「${a.remark||a.url}」?已录制的文件不会被删除。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await an(a.id),s.success("已删除"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"删除失败")}}})}function Y(){document.visibilityState==="visible"&&N(!0)}De(async()=>{F(),window.addEventListener("resize",F),await N(),!K&&(T=window.setInterval(()=>{document.visibilityState==="visible"&&N(!0)},1e4),document.addEventListener("visibilitychange",Y))}),Ie(()=>{K=!0,T&&window.clearInterval(T),document.removeEventListener("visibilitychange",Y),window.removeEventListener("resize",F)});const P=[{label:"全部",value:"all"},{label:"录制中",value:"live"},{label:"查询失败",value:"failed"},{label:"已暂停",value:"paused"},{label:"未开播",value:"idle"}];return(a,n)=>(l(),c("div",ir,[o("div",ur,[o("div",null,[n[6]||(n[6]=o("h1",{class:"page-title"},"直播监控",-1)),o("p",dr,[n[5]||(n[5]=L(" 添加直播间后自动检测开播并录制,下播自动收尾 ",-1)),r.value?.version?(l(),c("span",cr,"· 服务 v"+S(r.value.version),1)):G("",!0)])]),o("div",pr,[y(u(Q),{quaternary:"",circle:"",loading:b.value,"aria-label":"刷新",onClick:n[0]||(n[0]=w=>N(!0))},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Xe))]),_:1})]),_:1},8,["loading"]),y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Ge))]),_:1})]),default:g(()=>[n[7]||(n[7]=L(" 添加直播间 ",-1))]),_:1})])]),p.value?G("",!0):(l(),c("div",vr,[y(we,{label:"监控直播间",value:M.value.total,hint:"正在值守的直播间总数",icon:u(mn),tone:"accent"},null,8,["value","icon"]),y(we,{label:"正在录制",value:M.value.live,hint:"当前有直播流正在写盘",icon:u(Vt),tone:"live"},null,8,["value","icon"]),y(we,{label:"检测中",value:M.value.pending,hint:"等待平台返回开播状态",icon:u(Xe)},null,8,["value","icon"]),y(we,{label:"查询失败",value:M.value.probeFailed,hint:"平台没返回开播状态(不等于下播),卡片上带原因与建议",icon:u(En),tone:M.value.probeFailed>0?"warn":"default"},null,8,["value","icon","tone"]),y(we,{label:"上传任务",value:r.value?.uploading??0,hint:"已配置自动上传时显示",icon:u(An)},null,8,["value","icon"])])),p.value?(l(),c("div",fr,[o("span",null,[n[8]||(n[8]=L("监控 ",-1)),o("b",null,S(M.value.total),1)]),o("span",null,[n[9]||(n[9]=L("录制中 ",-1)),o("b",null,S(M.value.live),1)]),o("span",null,[n[10]||(n[10]=L("检测中 ",-1)),o("b",null,S(M.value.pending),1)]),o("span",null,[n[11]||(n[11]=L("异常 ",-1)),o("b",null,S(M.value.probeFailed),1)])])):G("",!0),o("div",mr,[o("div",hr,[(l(),c(X,null,ze(P,w=>o("button",{key:w.value,class:ue(["pill",{active:k.value===w.value}]),onClick:I=>R(w.value)},S(w.label),11,wr)),64))]),y(u(ce),{value:$.value,"onUpdate:value":n[1]||(n[1]=w=>$.value=w),class:"search",placeholder:"搜索备注、主播名或地址",clearable:""},{prefix:g(()=>[y(u(de),{size:16},{default:g(()=>[y(u(hn))]),_:1})]),_:1},8,["value"])]),d.value?(l(),c("div",yr,[y(u(Ut),{size:"large"}),n[12]||(n[12]=o("span",null,"正在连接录制服务…",-1))])):v.value?(l(),c("div",br,[n[14]||(n[14]=o("div",{class:"error-title"},"无法连接录制服务",-1)),o("div",gr,S(v.value),1),y(u(Q),{size:"small",onClick:n[2]||(n[2]=w=>N())},{default:g(()=>[...n[13]||(n[13]=[L("重试",-1)])]),_:1})])):i.value.length===0?(l(),E(Wt,{key:4,title:"还没有添加直播间",description:"粘贴抖音直播间地址即可开始监控。主播开播后会自动录制,下播后按场次归档。"},{default:g(()=>[y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Ge))]),_:1})]),default:g(()=>[n[15]||(n[15]=L(" 添加第一个直播间 ",-1))]),_:1})]),_:1})):(l(),c(X,{key:5},[O.value.length?(l(),c("div",kr,[(l(!0),c(X,null,ze(O.value,w=>(l(),E(So,{key:w.id,streamer:w,onToggle:te,onEdit:Z,onDelete:oe},null,8,["streamer"]))),128))])):(l(),c("div",xr," 没有匹配的直播间,换个关键词或筛选条件试试。 "))],64)),y(sr,{show:z.value,"onUpdate:show":n[3]||(n[3]=w=>z.value=w),entity:f.value,onSaved:n[4]||(n[4]=w=>N(!0))},null,8,["show","entity"])]))}}),jr=ke(_r,[["__scopeId","data-v-cdfe01c6"]]);export{jr as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-4rsLpKoT.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-4rsLpKoT.js new file mode 100644 index 00000000..704baa33 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-4rsLpKoT.js @@ -0,0 +1,102 @@ +import{a2 as X,a7 as a,bb as Y,a4 as H,a6 as l,a5 as Q,d as ve,a8 as J,bm as M,o as u,c as m,a as p,R as r,P as n,n as q,aa as ge,be as we,r as A,ac as me,j as P,ad as E,b2 as v,i as G,bn as pe,Q as ye,bf as ke,bo as xe,af as g,bp as I,am as s,ae as Se}from"./index-Ch4EWX-G.js";import{u as _e}from"./use-compitable-CjxNERC_.js";var ze=X("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[a("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),a("rail-placeholder",` + display: flex; + flex-wrap: none; + `),a("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),X("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[Y({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),a("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),a("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),a("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),H("&:focus",[a("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),l("round",[a("rail","border-radius: calc(var(--n-rail-height) / 2);",[a("button","border-radius: calc(var(--n-button-height) / 2);")])]),Q("disabled",[Q("icon",[l("rubber-band",[l("pressed",[a("rail",[a("button","max-width: var(--n-button-width-pressed);")])]),a("rail",[H("&:active",[a("button","max-width: var(--n-button-width-pressed);")])]),l("active",[l("pressed",[a("rail",[a("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),a("rail",[H("&:active",[a("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),l("active",[a("rail",[a("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),a("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[a("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[Y()]),a("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),l("active",[a("rail","background-color: var(--n-rail-color-active);")]),l("loading",[a("rail",` + cursor: wait; + `)]),l("disabled",[a("rail",` + cursor: not-allowed; + opacity: .5; + `)])]);const $e=["aria-checked","tabindex","onClick","onFocus","onBlur","onKeyup","onKeydown"],Be={...J.props,size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]};let z;var Ve=ve({name:"Switch",props:Be,slots:Object,setup(e){z===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?z=CSS.supports("width","max(1px)"):z=!1:z=!0);const{mergedClsPrefixRef:$,inlineThemeDisabled:y,mergedComponentPropsRef:T}=ge(e),K=J("Switch","-switch",ze,xe,e,$),w=we(e,{mergedSize(t){if(e.size!==void 0)return e.size;if(t)return t.mergedSize.value;const b=T?.value?.Switch?.size;return b||"medium"}}),{mergedSizeRef:k,mergedDisabledRef:h}=w,x=A(e.defaultValue),B=Se(e,"value"),f=_e(B,x),C=P(()=>f.value===e.checkedValue),i=A(!1),o=A(!1),S=P(()=>{const{railStyle:t}=e;if(t)return t({focused:o.value,checked:C.value})});function R(t){const{"onUpdate:value":b,onChange:V,onUpdateValue:F}=e,{nTriggerFormInput:W,nTriggerFormChange:D}=w;b&&E(b,t),F&&E(F,t),V&&E(V,t),x.value=t,W(),D()}function Z(){const{nTriggerFormFocus:t}=w;t()}function ee(){const{nTriggerFormBlur:t}=w;t()}function te(){e.loading||h.value||(f.value!==e.checkedValue?R(e.checkedValue):R(e.uncheckedValue))}function ae(){o.value=!0,Z()}function ie(){o.value=!1,ee(),i.value=!1}function ne(t){e.loading||h.value||t.key===" "&&(f.value!==e.checkedValue?R(e.checkedValue):R(e.uncheckedValue),i.value=!1)}function oe(t){e.loading||h.value||t.key===" "&&(t.preventDefault(),i.value=!0)}const O=P(()=>{const{value:t}=k,{self:{opacityDisabled:b,railColor:V,railColorActive:F,buttonBoxShadow:W,buttonColor:D,boxShadowFocus:re,loadingColor:le,textColor:se,iconColor:ce,[g("buttonHeight",t)]:c,[g("buttonWidth",t)]:de,[g("buttonWidthPressed",t)]:ue,[g("railHeight",t)]:d,[g("railWidth",t)]:_,[g("railBorderRadius",t)]:he,[g("buttonBorderRadius",t)]:fe},common:{cubicBezierEaseInOut:be}}=K.value;let j,N,U;return z?(j=`calc((${d} - ${c}) / 2)`,N=`max(${d}, ${c})`,U=`max(${_}, calc(${_} + ${c} - ${d}))`):(j=I((s(d)-s(c))/2),N=I(Math.max(s(d),s(c))),U=s(d)>s(c)?_:I(s(_)+s(c)-s(d))),{"--n-bezier":be,"--n-button-border-radius":fe,"--n-button-box-shadow":W,"--n-button-color":D,"--n-button-width":de,"--n-button-width-pressed":ue,"--n-button-height":c,"--n-height":N,"--n-offset":j,"--n-opacity-disabled":b,"--n-rail-border-radius":he,"--n-rail-color":V,"--n-rail-color-active":F,"--n-rail-height":d,"--n-rail-width":_,"--n-width":U,"--n-box-shadow-focus":re,"--n-loading-color":le,"--n-text-color":se,"--n-icon-color":ce}}),L=y?me("switch",P(()=>k.value[0]),O,e):void 0;return{handleClick:te,handleBlur:ie,handleFocus:ae,handleKeyup:ne,handleKeydown:oe,mergedRailStyle:S,pressed:i,mergedClsPrefix:$,mergedValue:f,checked:C,mergedDisabled:h,cssVars:y?void 0:O,themeClass:L?.themeClass,onRender:L?.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:$,checked:y,mergedRailStyle:T,onRender:K,$slots:w}=this;K?.();const{checked:k,unchecked:h,icon:x,"checked-icon":B,"unchecked-icon":f}=w,C=!(M(x)&&M(B)&&M(f));return u(),m("div",{role:"switch","aria-checked":y,class:n([`${e}-switch`,this.themeClass,C&&`${e}-switch--icon`,y&&`${e}-switch--active`,$&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`]),tabindex:this.mergedDisabled?void 0:0,style:q(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[p("div",{class:n(`${e}-switch__rail`),"aria-hidden":"true",style:q(T)},[r(()=>v(k,i=>v(h,o=>i||o?(u(),m("div",{key:4,"aria-hidden":!0,class:n(`${e}-switch__children-placeholder`)},[p("div",{class:n(`${e}-switch__rail-placeholder`)},[p("div",{class:n(`${e}-switch__button-placeholder`)},null,2),r(()=>i)],2),p("div",{class:n(`${e}-switch__rail-placeholder`)},[p("div",{class:n(`${e}-switch__button-placeholder`)},null,2),r(()=>o)],2)],2)):null))),p("div",{class:n(`${e}-switch__button`)},[r(()=>v(x,i=>v(B,o=>v(f,S=>(u(),G(ke,null,{default:()=>this.loading?(u(),G(pe,ye({key:"loading",clsPrefix:e,strokeWidth:20},this.spinProps),null,16,["clsPrefix"])):this.checked&&(o||i)?(u(),m("div",{class:n(`${e}-switch__button-icon`),key:o?"checked-icon":"icon"},[r(()=>o||i)],2)):!this.checked&&(S||i)?(u(),m("div",{class:n(`${e}-switch__button-icon`),key:S?"unchecked-icon":"icon"},[r(()=>S||i)],2)):null},1024)))))),r(()=>v(k,i=>i&&(u(),m("div",{key:"checked",class:n(`${e}-switch__checked`)},[r(()=>i)],2)))),r(()=>v(h,i=>i&&(u(),m("div",{key:"unchecked",class:n(`${e}-switch__unchecked`)},[r(()=>i)],2))))],2)],6)],46,$e)}});export{Ve as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Dxd9Z4sO.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Dxd9Z4sO.js new file mode 100644 index 00000000..3163dedd --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Dxd9Z4sO.js @@ -0,0 +1 @@ +import{d as t,c as n,a as o,o as r}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DQkFygL-.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DQkFygL-.js new file mode 100644 index 00000000..0ad77746 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DQkFygL-.js @@ -0,0 +1,9 @@ +import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-Ch4EWX-G.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[l("color-transition",{transition:"color .3s var(--n-bezier)"}),l("depth",{color:"var(--n-color)"},[u("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),u("svg",{height:"1em",width:"1em"})]);const N={...p.props,depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]},w=b({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:N,setup(e){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=$(e),o=p("Icon","-icon",S,C,e,r),t=a(()=>{const{depth:i}=e,{common:{cubicBezierEaseInOut:c},self:f}=o.value;if(i!==void 0){const{color:h,[`opacity${i}Depth`]:g}=f;return{"--n-bezier":c,"--n-color":h,"--n-opacity":g}}return{"--n-bezier":c,"--n-color":"","--n-opacity":""}}),s=n?x("icon",a(()=>`${e.depth||"d"}`),t,e):void 0;return{mergedClsPrefix:r,mergedStyle:a(()=>{const{size:i,color:c}=e;return{fontSize:R(i),color:c}}),cssVars:n?void 0:t,themeClass:s?.themeClass,onRender:s?.onRender}},render(){const{$parent:e,depth:r,mergedClsPrefix:n,component:o,onRender:t,themeClass:s}=this;return e?.$options?._n_icon__&&v("icon","don't wrap `n-icon` inside `n-icon`"),t?.(),m("i",y(this.$attrs,{role:"img",class:[`${n}-icon`,s,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?m(o):this.$slots.default?.())}}),I=(e,r)=>{const n=e.__vccOpts||e;for(const[o,t]of r)n[o]=t;return n};export{w as N,I as _,R as f}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/empty-live-dVnauh0o.jpg b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/empty-live-dVnauh0o.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a53c4226e7e911eaa6b036ab8f6e9d4c32c0b72e GIT binary patch literal 27265 zcmb5WbzD@z*FV0LEG0_|D6qhiOM?p1C0!!0bazQehje#$mo$PPDcvn03eqjz^}YD{ zJkRTS{r>wM?%sQMX6~6YGiS~@^Pamr%su=8L1ZMQB|%6?AP^Gp2YOfliGiM=qN1Uq zK0!l6d-CK7I>u8B3@{i29|s5XDG@#~F%do?Aqg4uImt6hQbNKP^e-r>X<#rI@pDEv z11&R@7DoHX1POQ)1B`)(fq_T+jPM!l|8IKe1mS^^g;7B$NYo%?JR}r6q=#-0IUwqP z2=qUMgp7iU_5>ZsB>n$p0gZaheE12%MnM80Lr@?<%DsU?i!Z2vFfd0Llouu~tcl9N zB$cBXCL&eFB2^F;qNOjaECm9|MEuMFAuA!XPPSBGM+MA|_IK z?@LNy3{*@>oiParCC2wax{cIi|D@cPa_%H~W)@L~!NM>q>Okxt)E#*$VbmcLoIltn z+2=NXX)`($#;YKha*|{;s>Qg$AnFQVFfv>TzaK=1pAe2@j;EiOqzVEN*3K&-i726| zzOS`Fuo(ZYdm6B@&7AI_{e^wPkvn2UB3@!JqHH_{x$HglbhuP0tf9_Eu0g@ET=!j( zX7_Y5mvSkiLydkC!zbesKNV%B9O{a2Dk=#kDk>xq28JAA%n6eiDn@Y`VolT>gt7^- z7Lm$)gGqgAVbfxjj>Fo%t*gS7F2R?yb-tc;KIuxwf@Ba5tn4_(u=S|ZNPau|wL{e{2d{N!!fzk#ux$_w|x1H?`_o}bO z;X!RxWu+aeZM!eqUqVxpIimvVV|^0Qi7Mmt?CGqp;X zvf9Ru?Z)YtjzeqRk|&$T?reItUG9F%14v-~j(%8>Eq%xJWasME%iC6W5wXa%z+3lb zxXBWuyu1O!xX=&3gNO&U#4j%q3`+3RKzeUd4H7X25v!UWkNTM-DP;1xzZxUfN+d0; z-Q|-l)mS`gjyzvo^7Nt@W2>u*o;_=``#l@I3ZRc6mtSFtc%~LN*^oiNzzjt=YXP!&yJ%>ILhu3ax=>A)md{?&=cIxTT z6U$L4efb$Pj#HQxQ7uWbba_3W^nIzcK;T*=eGtC?OC1m_2g7x%B(kd2@Sn zb#uRWNr>XsaeH~_E8LwIXx40&3)d88^3t_X-`V#1U6o$X*;4Y^?E{E~;PjUe?}+zU zN6Xa>hq_=;QQT>tyyL8`7f;{U{IMl(AH}Mktv0)gy-Sbe9nVo+_su_NuABJ-UBwi- zdqx_4o|`I8z0P#CWO4nnWU^pFY9hdFP=N_i3w`~FRl<-A2#J*-Pno&KktA!H1*7c* z`L5hZ1kh?qRpt>5sMH9C61jn+l%a95SyQ zx5r*wtrqj2bx)`F6n;xq&)Cf=N6z`1bk#s2>zekoBuJnn>1j;nTi6;x9Qt~Y| z2}{64%}YXnP+sqnWN=l3oHqD&gX*&-Yn&tJi+PeZ=2b41w`K)SM=$!m+LF)WzEuRO znrIiSA8U>@(@0Iv_)D*S0*r5#OX?JXiXD@diL3$l09?W}EiTtI?tpy8c`EBbu=Vxn zEbGrzTfWTIYOS zX_O(UAS|S?km1$KQ{WA?$zg^9e2T3Ri56F%L~QH?whuJiyv1DH?0?t2VkZf7U^^a zHTo7NNW{u;4N$nF%I?dNUkjPql`fo-rY6>@X-(3l=}8-Q+Pf1M#p&%M$G4+xth#%L zi@Y~nJgMJ&!LURmRWJjmEHMbRMp%}*urL7?AzYRS0=HaCtk89UkrP00G~_~wq@ktJ zrfcu2;A`D11+q<-jcvDu%vzolRuv1l1~HzRhK39(gS4fxN$s!c9|PPYpJ~HsE!R`6 z<1Fw>&jj^;%~GlloZVI&oqXVb0Lk*s=sd~KSR^h~tp&*_Nf9PNG(f0I_&I*_!i51j zm?bh;nWnlrxA#9zHfuNiD;+B>%|T3fCQ8CA0eM5`-miWvQG6vSj&@Dyb5I zAq|+mASITO+JF)!{B<&^MB21k3GvaY`O9osPj}A)m$=Oyg5+k-wDi#_{%^;L2A{#8 zKuoYKlnF54gs8Q|N(>rUz)6c3@obT<$z^#_M`MXYP6y$6bS5igu z%VRlRbpQa8MLIHglYwWOP4epeN3##!(_qeSBSQIySG`ZWTSOcKi+xr4WBg~J6^jb zZ+h64{}`ENE|1rCpNh`^{x^N{RqwCqYOo5Sif$__|CqKS_3)`iS(1!j4pf;4Pbvvt z6=phABJG@M+@BVrTK%ciOe}2;4GaOJ`68i#q|lH|kO*@m5->IDl%fQqh1|+`d}T&S zsa%YX@qP~@?GX(UTV_YGjRS5V%GZImZ_!F{z5ApZAGL2~?MCD^OGsX;>(?S(tV* zaxx~ned450Vdhz;n$ybrcT=iSL(70ApaI9NmBON3;lz0~H%&CJoQjChX_KIhtZ9vI z2VN2mse#E7;S~^L7}wZ(`Iu?@aLzbxEjp*-5hK(!nqY~R?`V^TK%l@RKmcJ`P(nhI z5?UfiqYQ$UfRe1MquIa{ZX*0zHp98$-4s{FF+vIdfV^pvlsK8YR3&FN{VV)n%F%i7 z*K`RJLlSaPoh+QE&7-NiDXm1)FAt9}P{aUM3(~WjyWO<8YME2;Zgwn`#n3m?NILD) z;^2wrLX4Kz1|W%opu&)9)C9ByBp@gW49f+TDtPgpYO<;^hw+|OEThZJ991|ruv%Bo z)HFDS$1q_z${LR9@ZXpJottHLU>PYJiAvwBFsf1@Yy8_=#qT&nFIy>X_hQAy(6S$n zN`xkgN1VC0Dsa3yuz%vD`1E66{;Nt`w@np0zGem2{T{8}8Hg+_9B{YzN+1Y^u&Cer zkh~61sWp-b297qyR5C(M$H15i`=FRScKhVVcFV5zj8+U_^DW?Cxl5I>#Arjo#OE_V3RH^a!rY54SiD}er=0i2{(@f91v$SLlSsW`O?ruI_*douj zK9R)mw1g7wfLstvy=v(6tWQu#J!!L8kFwM=_0;WT8dja7fBRYbNis zx!rhTRLp0)Yp)8>OQdXvbCh4hPJjqZhkFS=Vq#mDYh%hS zw_rUa#`2EjJ?EFfDHdiH?9;K*sC&J)@!Cy187}ffTPJ6YV{GbV8iDdK0TrBqo`eAdZ~p5W1p7@lQY|9bJus)yF=R^rVuFET~uS?eQ3`y)LYMXV)Ul6+bIdmqUU3$M>i$6yC7 zyF+c~!(S^Lj~CCaM$atx6?I8Q1UU8hPf3PPrCs0jtU9NsQTKRhBiY@jy>q)B_3w*H9H;lT2xT0y~OZYn$CZMb2eyesBDF`&$ zy;sv*#c*ls{>vi$5>n6XS25QHJ#|GHk~Zyr&j>2txGr+zq(g6b-TVdQ&g*2$nttK z%SNBya28?ZqV0NoYHBwYZCcc(mp@^$o^3rVgncgEPT^Inhkc%Q)SAD3b>E(z?UU_( z(&w?WI;(yA(MTZUj9#uD7T4pak$2W-V>HH-+G-am?=WNP&yC}}+G^&=oGDG52P{hR zKmImii6>F*`62h)g2UN*q{whX55BwESLAU^DYNQLX*b+>aLTdd*>s>e`~2$8+xbe! zW!c;R#qAQ!-fd}x*8^zeKHjtPYvqzq=Kkks!DeQ1i;#(w#qyrtW~@n@;jOQ&8s<+H z*H)v&tK#=gPcvUzwH;8hHg~V{b!F_T51-<`X|Wn}PtMp;09NHEt5Zq0CxDS5XfSOu zE4LarxnJUUxzzFE=e=(6Y~H1arYWMAD_1Qw&Ixt@xICqOxrrDPCBhH|B2)-N9uo{y zC6TO6JU!AdU?aCMsGE9hCg7EJgzJLK>wYMAx>VQoS>UNO|1Pj!_Uw4T8jE`_s+vw?aH?+$5X@}FZesZ71HG9&Qo!^yQH@0%k zZ>E?opv`;zfyq{ecKUscEKG*Fa4?A>0fhOL_V;LNoqN-|JJSMSx>*v_3_KS-c-{9$ z5*Z3UBgZrl=v;cS7)>no>>r#|Wq&2R%+9~vT-w~;Xqu&r+#X}qJ(yk;Xw@UojC8ak zli!WoY|fgedX&u+{oRDRwoL7Nc=gqBlY3ke+!qVUa!`6H+A2GD_t^c8l6S0_IXn2G4R>*K zcTBLwxhvRz$FtJAy>7I(RenZPCHGE`EEkDmhSlf9$VH{SHNM8k zQPVTGDQl^%HQm%<9aCvUO(_puGVK(nj$F^8BXMn7Em1lwKyx_x9c-EgTFNlkBMUQ4 zW+qXmQRhihjd#$?s>?1(f=ZjHs>F4$=?YYO{l5ITzg(>tc`hh4(^o9e()RmsY3MqO z`%2Gl`A*K=>s2%a7Ly?_jKOCo1UTn~?FuAoK3<p1@aa=W{` z;~1*W$nXgz2mrzlW2nsEoe&ib$uoQ%7qY_5a{#aZp8H8JhaICWcKbA?&GKe_GC^-NGvxZmya;^GncOTKpe$b(w+a-+qTLqjvXi-wMZIQ zzM^JurKKgoM~(<1N+F!GFN@iPr5})IDZU9B3#bZ0Y1Bg{3+ezy0pkA95*9=E-h#b! zx&e-xJ06GCn#*fhV`^G(Z0rlMbr?rYgweBW@VnUK;j1FgI*NjzxofZ}B%p_eW7vUq zAj13VIk&C0aiy24ct}c0YOIk5M}#+!Pdx;;wziIC*yI*wj8;hh z270mk8%rsuT%+DrcQ$Cb?X91zmNKxH@A3I^X-RqC8BO=m9_ zb5d3$8``|8Ct7*?+{-(oE!#_CIMjXKhT>O(!LpcI;O^=Am$revI5J!D+)y?xmSkHq z@8=LFzr6(++B{;V0TWG@8 zr-Ni=KDN)Pdj~Yf{M6}La?+Sagy~?E)BjLrC&Uo;P72;P_|hEi#F{aqJn`|Hxm-)sx%H)+<0dvqNio=Gf}XN~oG(eIJiTG)}?E4Bx+ zwJIXv_AH;aA$IJQI%Trkz0P%RUwe&}1+UqE%YJ_Lx^bD_x-BeZwnF=$ZTG9+Zx+@H zMshOOI*RxHvh<4-FaOrUdC;f3plQ6snkH@cw@CI;H0Btqm+*=N6+DYch|M zpq4{yO8itJM*!d66y6gXdK4{nsTguO7SYlD0iT^+kP8KcQgE#9z+}i&uK72K!|qp6 zgpjPMXzB|CE1I>pgTZB?(v(`po*`FwXS?`2yYi}NgW44=cV%Blnz#v zEhYmdsa$l%|4YLW5fQ-DxWn9UUK|eJ)G=dX?BD-mr1d_EXF2yo$l~1VctQflk$$?r zp@$M(hFFF>1Yb{HJs|iSv)O^3=5R!qwen$X@oBwD{gg_rRj1hAxy}P9_a<;myLEQn zy1^^kln%y5BL5=Z$B24#E!i)6*JSD1d)+}`0%}LGXqv`DIpNV0>B>QA_Qm4?q_~h9 z9=jiD1I4kSNsqEgLjfQ0=~E~`k}yKGG1m*P1}~Gk)9AMG z{ko5*E6NgNpKp~VYp=Q6eh?}@77P9KNWdlZ@lgpvsdz5xA#zA;=%@J?G1wA)Oo(#Eh+N&Kp+{$Y*x?mil zv$&`G++^OnK2UW%o;=gO%bh9npRW7H4OBq~!+-8G2w`Vu=K$!R`u+28d0`wt|8l^J zjZaH-mP`dR-YyJP7To6-v}OIY%%_i#XP7q6YnZ(=_MxCTlUHiqZpl%WAQ}Q3>!Z+i zp-1_TZZeQ)Ou})HSXRoiq2ohkg5({YG-*DqaU?=B;3)coi)R0i%ougpP}OzFJ-_14 zkLbe;nnn*Z0yPx**PP073H&>N4BN8G(2>^i+P(p;UIn_WA}cSSX|clrut9B!m|x zL)FvkbA;!#p`ug<^GNN`mg3Pa{ac(~%Pq1O=QDSb*~?Yejdnk}nSMmO^5>5j0#3rv zB$bq8%p^$~N_nT+e*D(A^}t_2iL>sl-2Cz@6v0Ua(1W|HMCK0#peYp8x8A7N7;{ z3VPA<4i*=ae-UL5poqyk_ob@fJ5SNZ=d?|1y?}fBzeijBb*i_3m*BO>*dcd2j@hj{ zWu@hc{ondm+DR-2`9Nj=bLjCT*FS#K^Y;$YiO&e%?KAc0Rr7vVvWv=~adJ^cA#6tR%{lDJ)Mv%5r6wHpJEe3{N3Y zmv`*>F2MSrCja^}YvMYzhxt?I(C*}8#lb+^GJ)uh3GXqwLqS17MF9f0{}bIk26w0g zP-;#QWkN0`G5dd^9Z*IH=>gR9IR2fr51>Jy$~K@SK5GJi+v0@RUVqeBGiJm{zGsPy zj1u4Q@JlIT#5mF}w|02mS0bkLj(}j^P5N0BzecZge5`e>edNTHT-C0jZ20 z;-L@R8xr9rYlWTK8Uthj-o_T@eFW1z61Naz1fE^R4&e*RQJ(-GKD~UcAA@EEKL+0Y zj-%`Qbvn1=UeNv|wg_t7GBC6w8&7Kqz2y`vEfn93#itc#ssBQFuei!HA3Zg2FR?9T zJu#`Y-%KkN`$969o<k8&&VNol!X zr-WjFb?7+qA|&vjV7)(If{VB(1k%XJ7;>RbbA!Mc3LaoxnNh6HyuvDE;U1Bv9ABAr z2xF*14r4afVW#J`l$s3wPPE3FFP-+&f*CL|x;R8%OMIkrk(hqF_Q%G0vDkg7qSSpE z$rd@+Vl3+!aE&j0L0>ST%bl1gPG=gCkpiTKJ27hgys!nfYI-7~&{`YPvnr_QGN^~ySW~1L zkSZse^P6Iu$+`|oOeaJZ+}{MgO~OBLx+K?+uLoqoUSoZ&*TW z1e+Jb{#;L>XI%J!M-yJ%icORpdqLeVInPZFfH}O+>j}}zT$2FGBsc%`>RGQjhez-AhhNe4 z90xsm-H3?cG5ZT#rwc_Vhg#M^q1X}9d>XD_TwFlNu&8sc&FuI4w8{!zljjw9Y{@4n z4m%^;h;K|AO-)TrIm5NTKritKl9V(Rr%nE_({Vv9`<@i@ZPT%UIKULG#3Q&->^+Hb za{?>N?Y`*m#KFheI`2Z_s9uxTPFKF4WYJ!7MqhlRsMby=DfuX5DrqXFczp$FYVB}p zIxtWARRB4-&(a8|1DOa`ZZ3&oW(^+ZQJEO{VJ0dCmfJih4cWh<-_MgNIs!%Vnem4xy+}2)J~WHULYbi?s1w931VuK05K$4X1`benLyy3X?P<=9uXIQBjBH4 z&mNay693NH3{ri@#=|KE!{Lu}-eax#6gHRbATXwUo_!*~bxTnu6c-fsTuz4B9T?JX zATD?$8DMl90V~`Ywp|&}jQ^K)qy4As^+e8&SxIDH`p+h1ZRS9tRUg3o&;sTM39voD zn>qjc4h|kNgbJTsSP2EnK_IFx^3U)fKN_C>)hmhHTjv;&=U}R+QYbZ;#v4p!9_19L z(24)$_aWT~juRF)G*NXecT*nUo9ieq4WB<8m06uW!e|TsERE<36uw=CBb8vqRQ5s5 zT*_#Re#Troc)Y(_4bg_RwU!R2_p<(8oGbz+M&9^@)swyFroqlz_BIF-h-*bwaHflzS&vVLHroTTtO7!CQ zaf_7Bd(z0!80Jmn$#1sjX}HPF=NLuJNZHlv-Qy!eS?LF+i3#BJzvB;%T;<33l_f(| zLNeJN99{JvXaETr6$KsjzqkPK@)8IS0_6bq^Mq0Gm6Q$aKTxxCiV*n5YnJx_+4$hMFI7A3J*9uTdWK#Y zJMfCwQHs5mwy3~0olYxnxGW?72>r`T14Z!iw~Rv#fUJNuJ$J~<_D z$1~R^g?K{bo|y22ZER$AYUFi3F;EzU`kEaA@wO*{PN72lk3SI~0Da5=0il49P#>|E z$5+xGX9*G>gbE6{XJrv3gAbo#bMf|bOQ8KH zfQ~L9sD4=9QTsamV#_W2v^t<0%8%jSy`CBX6#pD zVJNo(S`T;UV_ND1h@3Mf7Ayw^%MEzQC9=#z*KdU`V&urA3*p4_}%!#YSrvr@M-{$nZ=?Y@PkODP=zt0 zd^ZUS3aUN4KQkA_r%F;G_LoJ$<{ZN2<`!A8w5CUEOAUB@{g0}#WLh#Ps1Cj2&S^zn zKvo8l;-}r!jQ1ocC^$3^CpYKobU*+ttc0yyyp1~>`Xo3=s4ir|9Xj`QS=59WpG0Ds z{E%WXS}H0kMkF^HS9<%KbRk%Sswo`^YLLxDH#NEF;6`1P^Rjxy$b-Z(bj*pE<^h2c zxX2+?fV`(1On=T3JYJ_!rg#hcWyE}ux?YjD@WY3QNc4PUiOC;VEs1o6XlwKZ$&6;} zPguQGioHKAhuUWbDM9x;qlO{MsNW;pg;b;RqJ2Y8A#HdRG10P^^z(3r_R zaU!}@SALGyz43dL-l(~YS(j?W3hY;u-A0;hF08X%6cna>Tsh`qSE7>W{+^)BbGSJa z!;%{#T_9axr$eJJ`JAl{qu(iA=U%tIp!!45vyf@^nrMQZu4gBxK~_busqo(&w-eDZ zvo?Q@1E3bKdY<3tZwX=pO-8xq8D7%+ekpYS++1|!W4@6&wh;vsHGli-hS_?!B?)G1YbY{p@UUqhslq@J!1CPX-VOD9kX|w~}iL zT<0YR0cei&$k9rgHVD_r(eC^mzglAM)&uBmwE$tB38RckGEQ_aq7b+N>Y#uHRAA|5 z8{&N!Uz+p0=d(VSxO&-*F|Cj-_gGesGoi4DQMO3R`FD%t*WlDst0eKGA0y0yKDVxg zjLv%0D+zXlg{0_)~+8w{Ijp(wp*-2MJH%bbN6iT9JjVsyh8n#qxv;is_GAU zKYps65@N>C)9n(f^lr;rZpB0k4WgW_%a<9COwsyjkZDx%%ZYScOK3xKE6K&&BA3a# zOKp71PB)E>*4SHsA~?Um9|O7*@`F>5DhrQ zkmau`fK?)1ve8V>OBi9DYxB3XVvAiD&Xn!Rr2d@PZ^bBU(%TUl$lKUf6i+|Wr7!sM zD)$SAm-@hz+>^hX)(;?kSry{?!V57=RvDFH<_~5uZ#xc8lV?2-31&w%)3?KkuBHPA zYBkyL#UOnOW|frPh2#bAPKkqa?>zQ&tPaLRekvZ7+UvY&2SF)OjtE?Iz+XH%vukF+ zZepDbZ*d27vG%sBnwe`JKr{7y2BCGHF}ZXhaMt=Nfx{G6u`bB5s8&MPbrGL=4NgkB z4#&5@>SjYKB$UUfiJg8J;(jcUX$Rq$ES%b)t@*~Km{@LFo^z;k?pd}GqjTmNq!B=j zLJ9Mf*=kT?rp*<24j~CzObyhBV>aD+Sc$S49EO~nkce!>IUNhLj!z9-A2eUKX}@Gv zA!b8WJ(tk)9I9LGk(_)Hh8;n37@>zkRk!8se~5c(*Ev^X$^)tX))Str@?ii=pB>xqzdrYH#e%Y?ficU8ASV*K_9PJy5D<-c&_m)FASKOJTpt_`8BG3_W7q|^;KVio@PEaG;9lqvl&e!ux0H%Jiyx$fNTFI z2}>wEDU!@mDS$}hC{ubMjtVW!qr={|KNTZ=g<2!Y=D)@NkASVo}N$p-Ip*za|z^z|KsgBu(xNsaz!vx#<|e8Z@|;oI{1lfH!5 z`bf6$TBJPh(YpgN!M_vTYv^Yf?f9zdr~f7yVmgs>aP|gQSZTN?2l8523y!7)%VgGy zLga&uMU0?l;1&(NjJ%pp>Bu82{l)wp7%wpVo=zMl1@W^YADTUf&J!4%vvyNW8JR=D z(7h0;^H=$u1R=;ZaAvj7C~w|Ym$rNy)c;H-YRpfL8jaqGWm1|*ju!7Pqb$H!UW3sG zmJ>C7lugVb8)Z)!qf9^e_ze`N`7C(tvU33OS(X^RF5iHkfh7f2BPxoXQO^?jH^_%> zdA$W^2yV(N!-{qATGUEYz`qOQWGV=fmW$#4ji@1y+lHbsxrUQ+07Feu9RIt|#5_6p zm%+E29*bIV#j`MGfjc!h@$OpWXn0&<+Ac_HzU#hG5a)-g8=Wd84 zJt1NM7RA6IV45PFt3<_+I#tXA(^~e^25?hp=z9F98%X&^``)<4E+GAn({3%w^j*c0Zw^#D_SU6 zq`U$LVjci_RSG?}6{~jNT1ZDZ1mZshz&Ep1`+0<>A7{scMddWJX`B($9<;288Ueu& zFAPYEvQGHj+xy@vWs*BT(avEyVr8@dWzGaYVl`F+j68^WlRFt18I-e#ry?qb+Lj77 zi#ccay)i|%G8Q8=v(R=do@5g|Rs4eT@I`oTqG^CnJ~(B!Mcro~PrdL1n{oi1N{Cbd z-8{cxhHd##NlgWrN`j5Uu9(NNb@ZC>`8Lf1DBp-;KcV;%ZEk7Oj(GmYY`-}geO;Uy z;>Ri%Cn-7-^d68+6FK3VPI`C&g|9&xM?&Gu5m|lW+ZBd#Vr2LzgeY*?bzUPi zMM~~nWc-V$6^PyriP>fMecb~{%_saNr_3E{k6$vAno0;9myCghOJgQRTl-hSH&U6G zDhY1+SR&FE{(#&7|LP(@X7>h>q1B&qoe&I1*41*1woS2m(0NE<7^rq zUEHd3Z#l8~?3O)c0cL+fJ4}^?Mmafcc33$Yqx~Yb@-BGZeqNHF#RV%lZzUNw%w8n| zHH2(5qp*j7VP57?K2g7r(H?m4lanX` z*owP3ndZA}X|fWl9Sf_4?9jczVWD$o&C{iclaK|Uc=KDr(7k?ER@>0f08xuHy5=

+`(OUU(b5xWt27IZbt}l?qEXeO zsC_9QAI|y=UX1FEMv*k!2#~+d-vyA~RangH;q^gAPQr_#!4mbPrjb$Jzp5>{m5QDk z=pFZNKj0_jLQjA3*P1=OY1oR(_%rI*CP6Udn5+;f{QU~a<_6HEwAR{cG>+B1)eY3x z(o)@o`j ztL3|7#rq#Xi+A=U4@ zsty?M%OTvuIFXz!$rp|lzL3F<2p+9>PKk?s?J0mhb<~2JDG0DDp=@BUWqS*WP z0NRN`+oNu6{`39$@BE)CIR-}k-<;eY8o ztM3Yr!FM?@PvONV?OaFic*$={ZXL~wG(<7$V(`u9=BIj#Sb7x^?rhdL!5=DO3Y1T% zVZyE{{C{^fvC@6VM^gwp_>tg@17a4Iuf@dIyNHQ6L41O1xLUd~j7l7r!m{5faz5#P zzcrOG&s(3G4G}0*6cRM9x3HKRFC&|HzkRL?%He1`Q*<%&-xJ0Y1i!;2rTPSVQo^$k zEq(DNsDBeDHJtY7(i?5m9|a3!Ca09}3Ea?jJ4WuAgBEJ$X%TPqhXp6+MX-xrz3sO+ zgR{+D_Bi$zbt0c5LjDeR$y>Vz7t^V|#Q z8GgeOjrWPgR$yJ2;sNA&+)j=2Ug&8wrPe4CyvOLJ{K2*C?qPs>TZ!;TcB15hbp{WS zy6blhf7(W!(O=U6zw>$Kr?B3J)p3l`CQNB*X(gbJV0UZP5t=iGYVSCJUvwwD7N@4RRS-_v}w&>3+*nGa>S zDpLCBVz_W{dK2B1@nsWv~cnFPVLNTv%?jxoUG+mgQxG@bUaB z#Gg3dUPSi({?C~?Wbcxjj?~s4*hz8cDq+xg6?nVi_9eyIMLe`evs@dM?39;ajHQ&G zI1QAvW|@bVBjz8+R^0hvDN7pOKVoTzM^)_H>ROK)aVQ zlN!GaBCI=4#yv>VUKoB-`0J48&+w!WWdw7cK1BiHmG;hqMWz^bk51&|(t<2D*tPIe z(w)d=>1Gl}5H%!MVX@9NR(9Yl|9fR%tms<7jQ;S*)~~3a0vaN8Txid%$g+Dkkzz2`~(yz9GYK??3lSoZ4fZd-fzM*)?%2as`0Gh4S~s-!^}y}GXM z*}F>2)U@)v82`2^*}uY1y}nNQ(&T$w6C^J^fPV6OkJg{m`HsW%<6h;DFp{p?8*ugp zKCOr~e`^BPjeP27&DS^Zi|NPe$dBaRxm#+XYimnRJSkJZQ?+pRSIh1{R`roz@T-3> zAPC9q%Xuq0MRy=do`~K0HHHhne9yO!`gwu){2nhof7>>OZ0P4dAq$at;`S9j9XVROtrYO!9aYb`|$hZ}E5Z>wrA&UyCg&!+H_j{OSh_3r{7i?v^qZ5tS zZz|&FaX8g4+l0Pa{dli4*Dp-fGWBX}WbkzQ%PBkh5R0rc^wROHDwmS!vna7guGSYj z*V<(q%Zc+6sjWpx&8V(nj#DDb8!c=TjHD3Zyw1gU#po#ggewxH2k>ltRy0HfZ}_h z7aOKWW7y(+yl18`4#Yx0+aS{eD6^e;yK2_{BV|XVgm{Nc6EV*ILjC(pa8{mX&oa*> zn^KMiUdP40F>4SIQJf>YzFMQ)1t7HI9m2lr zT1A=~!Al}KM5lS7l316eF_=Fu|C-k%qv`45bGr|HJ>Ms~&RqUzNxKf8?7C^ny+&95 z8q^Sp<`FSpP1ZBlE&tFsox>Z^0hc$bRlM*{J; zm$j`+gXe+U^xcSl{pcW(*-!im;|{^>-pLKnqf&{A zGSj)&ks1(tBQ19w!9Bed!5N2rpO9%vyUGWQA>ve0`Zx84&%~QpZqYZ+<4h%~+CQy& zVx*eHASki@2L2*|eF3yjFYtO+&X%vUE~*4HKV9*o(8meL4Z;67!Y@rS`X9FiYE0@^ z4p*rp8F!v}e}nch zI6-y`PCaA2N&K6>ZPY0Zn+xtMtsNz{S8}0Q!2<-eZxMN}9X&0uq#Jnx{mbOqqQ`l8 zGGT^4H0H=T1P=~ZAIS`k0+^%4AegjbLtFWFgw&^2sV?|z#p7wrwAkc4%j=rDdNJU& zqo{Z$0XTIuOUQI=?LSVpx?n|JW}C9meYZFCoTE95SthZl5Ck6fg;-IHo4=pCcX9a% z&FmAQCywyiV>N^^qL1@Bz#o6P1D&ztTV&zmH2 zolL!C`cuEQAHMYg#XaoY=Fa+^m^#cIemq7?Wh^Ttc&_7 z+Lx+0<^p7lW6^s>Cx44GRv&W@h^NKHRjr=(bsEc+So!9{t3&q{U{l?3~#yr3sN@+{&};G{cRy!-^=HGw=+vgOX`KyGXtF$ zwPvfIwrfvK7kcO9Q(ks?E-A`6k=vPjDt7se?n%_lHsiVg6MVtCg(Mmm<=tmxlei4+ zul!kXLpE}J_%X;2(~7*H526u_AJtHI7<3xNZ(>yuE}aXoM;XU!0MqW z@y5G;2}{M-m-BwA$FTOgu%Bwxn~OFp|JwdOM5RJB5OW&NQle#iP$tMcW`;{Z2?nHg z3CuF&dGnN&PImNg??@1-65EqQ>iHIp*XC(6 zj*vwql8AMwyPa@KHpDqhVnj$uNjv-bM2ztc0TWM&_qbX5Z!_qB_Duh62yw8B02cnA zeSh37g=j-j6$pI53IqY`FCF~`da(oOQTr8>3j_vuEPFbQuN4b=L$v*7J6Wyp$0piq zjW31jX9OuCqXSvX{l?JGr2?RWkc>DwGRjxqInEUmNzD8>h_?zC(e3;m`s_?`va( z_)9gb;wnZPk=db!@2_?2!tiJx!6i9XIAXmvnwdJ-*W>W!6-En*d88jif@p7h)_Yar*Ts8#2j4A=gOS_uZJ^_N@{)My{Axd zAW<9;OvTx9q7;WTVsJJUv!ZfHXwcLgG9$+$B7%yBsi;{7W_8L_Vpdv~AviaHP1uO3 zMJGFa~6^pqJam}&&DX0p|8bW>> zup0*5WmPUZF}8#A-G;gfK6%U65SM<1UaQn{2k<=zrcfs`jcb|sb6xbitJlJ`i zb-xWAcwSx+3M?h*9$yi3CSNlvqa!NT4A3w5W<(0rJ!Sar3OkKwcos?@a_^ml(&xP! zyACc+rukfXkPt6!p!9MK=c%IM7XAfJ{QN2_sCfB>d(Y4P9DCtM^?#i`^S*sobOQ4j zr1^)yr2W0OVg+cL50LU)FKPOEk@4tzN<9Qi*#x)yu#@U=sbYi#r6C~`MOW|pO?AG6 zl~F`#C zD4K>)QH@p>U@SEt@7q6{&;q!Ajv>EVo+7X{j1Ja=(lH9$#6k=HrTolC;#dr3-I&%u zR4y-h>|cx;CEE8>edozio7D@n;t{aITJnwd@`?ICi6Eo#@xmNv?GOPRY^#(aHAp^3 zj{<1&U42+BtSqsZ7u5eERMcO-<@eU6KFMSs^Yyx%T?i!eLjQ>2JzUdv+I2fFfO#6b zAy2c;Ev{nS$zj&AW%O1-0QOi0Qte*vCND2j3kc1u@T->eBQ2a-G#lE#3|1>$ppdsG1lb9jBUiD%qg-@=Op+I5zg!oGZ?9IMk>wAoUt=cyX(P)u=R5m7q*lr zeYoEL+^;01TXt|%sRpsCQtaN_^+J0$bZklM=pTMQDobgSyq8wFrxH6H?q_m}#)7u{ zoIiU|ED26m`2Rm2{J*|dMF|@ytKa{8a0C)#{$F3qbz$=b62|*wb9(s2YD1nAdg0{MIr=SpY9=_6GhCIN+HKM>NpNn%>H=Rs_&25NJV8 z46()#U1p(sPNeGt`TA)36|6}Eb1goo3@3yMKg11!e@*0hFJKfQ?<}d2m~GYNE=3d7 zdWv8HX^V+T!(oyJ(BZzQ7cyoHv~snU*?d4#9RptgY1d_w@wT*F9sCpHF3T>&d?n9jujwwVhayxTZ(hEI)}}P=t?{WCiwJO4 zA$}1HZVU)%$K1rvxjN6b3ZMm_J)z|4>y zNDnf;V~Q&K*0Yfka+bn6V%IB3C`V zpOH#ue&ToAmrneYs1`AKr4>5AWi+O@(YjZLU>c2Peug>^Aupgk{J);v;4e!Y10sQL z3fhy3Ln8AtY(Ogu0uFJ8vd)0Y?C^*d&^5%b5U-YQr#6 zse{8{l7oG%Pw7Ynaest%(_`_g*h16To}(3jtDQf;SQX3Ih(5z`+N@QG;~0XVADY9$)-cp9S3*s2}lV1=>U1jfYq>KkMrmis3!12J0MU9Y@kM_br(v0*WZvIoth?FXteyCQ-sST&|oGYV>9O^=$W&V#kvw$dXg3t|u&ds-etKLGN6Hlq zmvYoDtf`0}JRXBVI}`y*k3nUBT_cx7&xy^10u536+P`@c`J~4Z?{;T$n>PY*=L8%W3oO z`lg=;4C^a(_jTH9>{ptUaG=+)*mYF9vgHQ8wWDVO^A(5^-9mv=<8NEhw4}AiwM?1O zFr8vrkh!=JzhXX!xGpkh#|QH7CoAg#0sz5gBn?IARlzN*x@ClJh5I$jjC3}H;vs}4 zpR-f+DSr0T%sdYxypJ1iX>F|RHKJ0+oPtx?F2y(H)Gt~M0syVAH8N5eASk_Y>#$H>MNF7!5-OcC~aqZ@=^2ql&ggTSMZz5%Dq%v8>Z$RwprFMqg| z&hIRpCmra~n<8QdMNcwPA@MPc_Q-0<<&n@A3_D`RyZz=}%mE(5)z%Wf@nqXbdM^6X zpTRY?#i1`co~$nD zf`G5X9%F47i~Foy+xRIjn0okde8A~1pna1jOfZhnN&IEp@)ycVxid=~8N>-kU`Sj$ zN)coN@JFum*tcOfr^Dl5*C%R;`5=9~(P$?B%RsC9DY)l`fKJuLCpUUO0?etJb`6I} z&Q$NM@0_K5o$fT(x$S+QUFOXt122-}Ds({IK;QBl?tGZ1thBm+K3a!po6sqJXeSV z+;|w#gfXX1ePd6D{3-!YO*&Sj9!tut7HkN5sNQmZkbgwS#*Lun5Ivt(vOoGW<8+Re z*0M<{`1IKubVeGDpnXnO-+cI?L7vTzY0U%4(eA@bRaQ>vG|MyXfma^Qi7qh?t@e7W z=4ktEG8an#G@~v^(IN_2hPi}sWTbmlJX(TR{9#9VcVEzgX~lQCrKfvnf3KPLjzTNE z@3y${ILSbW=_}s*xYcllNcPg1h;0wU&ZLN6zNkEwg#xYCqG zKWXA3V%0{B#bSYJ8)b=wDeUs~*`}1C!=C1|u>i!u0c8%&5|>YYL1{6QOxd|Cd1}9C zl!~_Pp1r8s1MDhGuKDbwo8xrE5;pzNnKU$RqNNdmp&-d@#UW1f=;9w&8rLcIog{W| zFg?3uwkf92$2BcGcNvNSK`DUz(^AR?H>q?UI#UlfycH&?Xav|6Bap~==a!1!MIY3l z@pSl+#{^uospte?N8Ks0RQh2GQ`M3A!(_|Cnu@9RWP^8zH(Ir>dVsH5O+#LODeiPG z>LJ-I-=v~kvaG)R{JNqyl2=dCbaB{h;gYf*#GgU(XHfBBLY&=nD$OZ1l*zCYtbphT zki~cCDA0g(!X#59(erh{Kc91$>)$$>hT+PmLXLkreWG++W9)TN&rI;49;0&xp{j$P ziaKn}^1u3q9^kP`y?GSQjqrQOUGRfme=DYU)|^16X)7&kHDpb@6Jy-_L=k{9xL%GPwO9KQ8Hu zhJeJ8OaEI!vW_x|^3Hz-+V_S8s<>6@>NHJh`jAp=s-LHw=a9j>sa0@0G_~}1&pAUf zf3&C4cD_=0)Gm>3-P1&vDr5BqRVp3z>+2h^G=e*P48DAMRn6oqXxxJec~TRZ47WG%(cOe9G%58fobsdBPl=FDMtmK@ z!WI$&8Bfun!_AujpKI*skt~A}Q{ki*z*n|Ng|%zU7^&dhPRi zqw$|#)%jZtd|0*!v@mYDd57@)LZEm2*JX}itfkAX_G$4`!nbWhx`8x@^vsc@KOda+ ze5Oi6P-i+!Yde^o@}ON6+)LkSPjd{xRS{Xf@HxjTw{|Zzlm~Bme`49>qGL`T^Y`;r z(JVm=c+cLsP`@R7Peco0Th;Wz)sje*d+PrXPB>Kh)=U|H1dwE2?lTvQkLnPwIU=3} z5})RfX9`hKZD_R-r%p5L9?v1P3oRC43pjDJcuq@p!O)3yY5)Go65EJi#h7;re6zf2 z-mm`on`jpNSF+HIzPoX6*mqbVyIPrD10v#Y~IbN_mY z?__FQog`RGu6!tml^^n9=q0tMpn7H1#!mxC({J^f(`1j62}G-BW$0Tv3Z$X zi0&-!=a7W`ptc{YXCxe~bOfGkqv-yDedqdiWXz;cS+6w?`Y7k=CnncS2CWacvXbxE z>__mgWIA;q`VzIw%F7C?Af8qHL6-}iyOM;^H5BIJ!y!G59M`Kg- z?UIP8W<^(-^0A~Gfa9_XDRE;D#tYI4BV|76J1Vu2Oul1E$e~j2m~CK*Hzf~lR&jJ) z&l89{Qo2XWL>ZZ8u6< zb$JgnaV-mo;+Qp<56hGt?^AV7m5uGhtwn^Fk3?1S=vK!$dGed^gU-Z$d2>{8I zzJ8~#QUz2lcb=fFda1{5SXR$VKw!@~wfZsMcUg1g$)zMXb~no}iqLiE>(W?X!n4Z9 zJwIa{xe7&C0MFE{n6lBaA^q~*jMlhzuVnT5<> z8xmPpJ3jbn{=s~vv*IMJcbsHqBOh!zP@b@C$TNI1_PPF5G{N@j(g?V+dC=&R6(@K_ zW0BE3`Zx|GKj5$l%un-ILaF()ngnnA^rYi8ThIc}PdIJy9yHofV(29tb(h*2`N& z)Ap5y(uN3~bay|L@}1|WP}E8%5Cfqg?t`%e6NP-g=^~t(l(WzJ?ZY0v0NLFbZ^jNa3Fe#q5mo$0PYAB{GieA$g8 z3pF6sR5dqAOHe5KO*Lx9iOo(SO1^FQKBhxb>d`$792O_pVN ze7@Y5eJp)Uk+Cjmwkh2N%#I?63T^48%eDkWF1? zL`mFM+2Glf2O3PySEU^1KW4`J2s}CNzXL_V5cjp!d=}9A=1|-H6n&_O29W$R6Sy1m zCRI=G;FAj6pM4f~u_hK&_)MODXNr-tcLPLg&^b>_qv5Ro21soNI^gsHaxht;2V=j#njuL)NE=eq>J21vzlij!ZMoe z!$%2zt4At8-ym3-#RK>qx^kf7KHvPpz-9%OltPY2&SZMd`hZM|A9Z?6P_n-0^t_9O zx>psKj-{54hl+;B1OsVgV$eXm?>nnooAwxhbd7`Id-jg+NwQ6ogX`N{1cxrts3#$ zX8)LWCF&jzrRnzEa1N0)mz3i~H}cr|xzz8W(o|CW@oZT?gh%P%Wjh`0QuhK)DFXmI zmlVyyVIh3`Ub3%0gzH+&5a%myEa? z723$42xe8Y;oPbbf4Jz`YFq93o@&r%j{dtHLP~S5(*Y;AX=%+$YQE*1jkZqm*7Ba- zL%B~a#kr{)?}k60)OgTT8jov7lkDz!!pvHa@}rT@=v!0RTQ8%MnbC~%+F9_|cG(3< zhayq2(*)AOWl7t+h@5~x9fqIrMLuQs`{SyJJoEeci+a~9 zQm_V(N^H9>M_d{A6N#FOQ4qTe8M_qZ)Q%KTh4TJ-<3c$W-tLO*v?c#{=(z3Dl`@@< z7|Cxl+?vWQQ@ur2X0Gw<_QL$b+3;+s^kex0&QmhiXpl^;yj)_o3Jm*ZV)~%oVf)Bb z(8;#-SoSUdqu8E_m{?Q&)zldMjuB^pp^m(ECyB}IX`sBz_sA<{zXV~kfGNagh=7ExDUoz1P^h8<(#?m#heR<52!|d&$`YsL`u${;3Md(W-a3P!dHfU+peD?hvb* z^lMQsxQwukHe_?4B!c-vf1=%y^*7><U;OethV6Wl(BiT_3iNoZCa4oXmoI!Y3)*?W+71Ct(sRvvP+=C#}6}yee3nji{c_9 zd+naU`yUq2%-P5U-jC-$tVz?}Xy8d21?im_qw&{MCqRYKSWvW%egi_S$#iEtVbX*C zgG#|_7k*G$Z6>lBGGhA~n#hC8oo*-mFZ z0Fmamue1B{de*tXxyfIBq5|h<2$InUE*ITh=Qq1!FER`O^ulE zkguI@`DjgLX#*}k8Hw*>;C7u;eD1x-u1ay&)apO@9^MhOrRj@1obPyu5uf-Op{vF$ zDgay#R8%~2&@!c7`j=jPS3X*IU`}-MfFy2qA8Hx9&};0FPq`LL%WYTAdWQiEq2J`S zyGytp=VxtmHNLD%c=QlIzM>_IwH3v#D`z0h3l|J#D(ZX?8M=`;_K?pV+ME^mBUC+n zO@&t)us>Sk1$Y4p)A_4>3ohC{)u(Tjo(0eHL1fYXrMo@)CVmnrdSXCe#`6`sRc|^h z!3v2-f0h8H=Ztl?l3$?#>3XlNh=l=+QVnken5}6DWb!REG-;ISLX+2Hq5}6P-%A6X zIJep&nF)8_>R#k{A%=r*1$}p9M8;Yj%P?E%-8c=rdAV^e)Ar}><-eJ&n&s5OLjLx~?fb?%glj%zByaeS8E!=gJytm`~w+%%YH3UtWgF0*RSHzM^r{)rwj?!X4`#-MrI z&|K$>XV+8|Xyut2KXp@)3suA{fQRn41xpF$N_^rst#|qAx_w6S_ysIm0>I(sFr>+q=#W`@SD1M9nj87j@1M1o}2AvUpM?3AAB=3X=hJM zea`uUAZN*~b2%JVCO;ON1RVTOZ-&{~Xr|b=rZRdfT9JQbTcFKgv3>XTN)J6Nv>H!9 z2ZDE;!4T;d^#}l5;S%N7>wvXm?-0iquMeNvse8y3RuTx)_OjasWmMoEZ>JjF@U_Kz z{>3705@$aW)669Xa(^j z`@2C;@|sG;yz9~1-?sb62v*`^T;yA>mtKaS6JX8_1&*qpvD35O7}o?#w{utHQBbZZ zC^xYImsSfy-g8S2D9RFEq?lJ@UvtN}-TRI4wQhgYFTPT|6e83N!jJPmfxxG0$0&#l zh#r!7Pp#Li!EeS@&yY3>X5P+^fTBKRMQL9x8o_tq<^zs=TG*%2L3i}@8#wUq&3X68 zz|9=~aftkSJ6p*XaS27(o62C=^FQBC=L<5k9DQ$JQ9L!?JHE6_-`EUuFvuF7qZ?4d z_GRu1mdY{~pf(8pF8=UUU|913G<~2OdhR%DTQqyl<{E49 z$SCwmSVA%@bKrQxx*u7PbdTSFzb#m0(v`@!#{*w96|dr*Sly~?DuhS**Ykxb#Ve{l zZ<2&Dvv1rVR$iH(wRnt+A>I*Pyjc4;3uzqr7Po)kHV98T04Jr!Vozz;l7APTYCE5z zW+vI*PuAXZ9;Q@hJb#$iAH%eUDqL^2BWCD}Mya&RmBv0G|5~>~yfp&o#$;ekPU8x^ ztfiN5BrG*PJfJ$s_eH2jCh7x(YA1QftjH}5WhAZC+=^3nxrI+R!<)EoR3poY3W9uA!SSePBm4nYmVp(XxnCXiX9dsc=24v%baw8NAIi9mPo5oF?rX9pc>wuiAdj39E;4#e;f=DX+W~ zZme9Lmj#PzTH<47SLZ=7K(MP-J;K|L;NkLZenSkTckER3(X)%|jOVS*u`wUj7m34b zDp$yBDtB@%8dm|yPJmdd-Cy84wtOo@8{(==maYcDCS>l$gF;Jmx&EY005kFIL`Fj0 zFEg=FM~=~)vnGN0b$N7N{Bt)Lv5BbDmfb&F?@W*`ms&;>b<0?NDEn)5*QQpy#w#^|(P}M>e^#*m z>ueYX^8q3E(M0oJiyP0bekj2kXS<3o);pMVog&>B9u=z3B}yNPV*JjsZ%?HnV5YS{ zO6E2;&`)o8f;UeRKj&YuD!Zr0fa4M%Q|!x5&!ocN=C{*b3NhU94}E#{c?jhpJ5?k*p;LcoVYC;qd3AbT>68c+-~+tg#2xAl5_* zE?*5QO|B_Rlo-35#mb@@n3|1K5VDhN{12T)c00!OfrfBin~d z&dy$6Gyq#G3u^-s#JO#<+C6Ip@lhjy2pBh@1xy!~W#E*?)R_(Y3UM6;S}6)~D^F@| z+b;RzTef$AcMNIsCUOprc6mpzv@^~eD=#iFbZI)O+TD?S?r{?kmF|tXK8RFf(x-LS GM*k0z*tlr` literal 0 HcmV?d00001 diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/filename-template-DBJXvN0y.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/filename-template-DBJXvN0y.js new file mode 100644 index 00000000..c6fe854c --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/filename-template-DBJXvN0y.js @@ -0,0 +1 @@ +const d=new Set("YCymdeHkIlPpMSfRTXxcDFvhbBaAwujUWGgVstnzrZq+".split("")),m=new Set(["streamer","title","url"]);function S(e){if(e==null||e==="")return null;const l=[...e.matchAll(/\{([^}]*)\}/g)];let r="",s=0,o=!1;for(const n of l){const i=n.index??0;r+=e.slice(s,i),s=i+n[0].length,n[1].includes("{")&&(o=!0)}if(r+=e.slice(s),o||r.includes("{"))return"文件名模板里的花括号未闭合:检查 {streamer} / {title} 是否少了 }";for(const n of l)if(!m.has(n[1]))return`不支持的占位符 {${n[1]}}:只支持 {streamer} / {title} / {url}`;for(let n=0;n=e.length)return"行尾单个 % 无效:要输出字面量 % 请写 %%";const c=()=>`不支持的时间占位符 ${e.slice(i,t+1)}:可用写法如 %Y-%m-%dT%H_%M_%S,字面量 % 请写 %%`;if(e[t]==="%"){n=t;continue}if("-_0^#".includes(e[t])&&t++,e[t]===".")for(t++;t="0"&&e[t]<="9";)t++;if("369".includes(e[t])){if(e[t+1]!=="f")return c();t++}if(e[t]===":"){const f=e.slice(t+1);if(f.startsWith("::z"))t+=3;else if(f.startsWith(":z"))t+=2;else if(f.startsWith("z"))t+=1;else return c();n=t;continue}if(t>=e.length)return"行尾单个 % 无效:要输出字面量 % 请写 %%";const h=e[t];if(!d.has(h))return c();n=t}return null}export{S as v}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/format-B8CnorUZ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/format-B8CnorUZ.js new file mode 100644 index 00000000..ee67e2c6 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/format-B8CnorUZ.js @@ -0,0 +1 @@ +function i(r,t=1){if(!r||r<=0)return"0 B";const n=["B","KB","MB","GB","TB"];let e=r,u=0;for(;e>=1024&&u0?`${n}:${String(e).padStart(2,"0")}:${String(u).padStart(2,"0")}`:`${e}:${String(u).padStart(2,"0")}`}function c(r){if(!r)return"—";const t=new Date(r),n=e=>String(e).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function s(r){if(!r)return"";const t=Date.now()-r;return t<6e4?"刚刚":t<36e5?`${Math.floor(t/6e4)} 分钟前`:t<864e5?`${Math.floor(t/36e5)} 小时前`:`${Math.floor(t/864e5)} 天前`}function o(r){if(!r)return"直播源";const t=r.toLowerCase();if(t.startsWith("wxchannel-stream://"))return"视频号";if(t.includes("douyin.com"))return"抖音";if(t.includes("kuaishou.com"))return"快手";if(t.includes("bilibili.com")||t.includes("b23.tv"))return"哔哩哔哩";if(t.includes("huya.com"))return"虎牙";if(t.includes("douyu.com"))return"斗鱼";if(t.includes("youtube.com")||t.includes("youtu.be"))return"YouTube";if(t.includes("twitch.tv"))return"Twitch";if(t.includes("cc.163.com"))return"网易 CC";if(t.includes("6.cn"))return"六间房";if(t.includes("shanxuanwenhua.com"))return"在场";try{return new URL(r).hostname.replace(/^www\./,"")}catch{return"直播源"}}function l(r){const t=o(r);return t==="视频号"?"wechat":t==="抖音"?"douyin":t==="快手"?"kuaishou":t==="哔哩哔哩"?"bilibili":t==="虎牙"?"huya":t==="斗鱼"?"douyu":t==="六间房"?"sixroom":t==="在场"?"zaichang":"other"}export{l as a,f as b,c,i as d,a as f,o as p,s as r}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-CTfv2gCy.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-CTfv2gCy.css new file mode 100644 index 00000000..fcc309b3 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-CTfv2gCy.css @@ -0,0 +1 @@ +:root{--bg: #070b0f;--bg-elev: #0b1118;--panel: #0f1720;--panel-2: #14202b;--line: rgba(148, 197, 214, .12);--line-strong: rgba(148, 197, 214, .22);--text: #e8f2f6;--muted: #8ba3b0;--muted-2: #5f7481;--accent: #2dd4bf;--accent-soft: rgba(45, 212, 191, .12);--accent-2: #7dd3fc;--live: #ff4d6d;--ok: #34d399;--warn: #fbbf24;--danger: #f87171;--radius: 14px;--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--overlay-strong: rgba(7, 11, 15, .7);--overlay-soft: rgba(7, 11, 15, .55);--chip-bg: rgba(13, 19, 26, .6);--danger-text: #fca5a5}:root[data-theme=light]{--bg: #f4f7fa;--bg-elev: #ffffff;--panel: #ffffff;--panel-2: #eef3f7;--line: rgba(15, 23, 42, .13);--line-strong: rgba(15, 23, 42, .24);--text: #16212b;--muted: #516779;--muted-2: #7b8d9c;--accent: #0d9488;--accent-soft: rgba(13, 148, 136, .12);--accent-2: #0284c7;--live: #e11d48;--ok: #059669;--warn: #b45309;--danger: #dc2626;--overlay-strong: rgba(255, 255, 255, .94);--overlay-soft: rgba(255, 255, 255, .88);--chip-bg: #eef3f7;--danger-text: #b91c1c}:root[data-theme=light] body:before{background:radial-gradient(900px 520px at 8% -10%,rgba(13,148,136,.07),transparent 60%),radial-gradient(800px 500px at 100% 0%,rgba(2,132,199,.05),transparent 55%)}:root[data-theme=light] .panel{background:#fff}:root[data-theme=light] .stat-grid .tile{background:linear-gradient(180deg,var(--bg-elev),var(--bg))}:root[data-theme=light] .stat-grid .tile-hint{color:var(--muted)}*{box-sizing:border-box}html,body,#app{height:100%}body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background:radial-gradient(900px 520px at 8% -10%,rgba(45,212,191,.1),transparent 60%),radial-gradient(800px 500px at 100% 0%,rgba(125,211,252,.07),transparent 55%),radial-gradient(700px 700px at 50% 120%,rgba(45,212,191,.05),transparent 60%)}a{color:inherit;text-decoration:none}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#94c5d62e;border-radius:99px;border:3px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:#94c5d64d;background-clip:content-box}::-webkit-scrollbar-track{background:transparent}.panel{background:linear-gradient(180deg,#14202bb8,#0f1720db);border:1px solid var(--line);border-radius:var(--radius)}.muted{color:var(--muted)}.mono{font-family:var(--mono)}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--live);box-shadow:0 0 #ff4d6db3;animation:live-pulse 1.8s infinite;flex:none}@keyframes live-pulse{0%{box-shadow:0 0 #ff4d6d8c}70%{box-shadow:0 0 0 8px #ff4d6d00}to{box-shadow:0 0 #ff4d6d00}}.fade-up{animation:fade-up .35s ease both}@keyframes fade-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.page{position:relative;z-index:1;padding:26px 30px 40px;max-width:1480px;margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}.page-title{margin:0;font-size:24px;font-weight:650;letter-spacing:.2px}.page-sub{margin:6px 0 0;color:var(--muted);font-size:13px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}@media(max-width:720px){.page{padding:18px 16px 28px}.stat-grid{grid-template-columns:1fr 1fr}}@media(max-width:639px){html,body,#app{overflow-x:hidden}.page{padding:12px 12px 24px}.card-grid{grid-template-columns:1fr}.stat-grid{gap:8px}.stat-grid .tile{padding:10px 11px}.stat-grid .tile-hint{display:none}.stat-grid .tile-value{font-size:20px}.panel{border-radius:10px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Ch4EWX-G.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Ch4EWX-G.js new file mode 100644 index 00000000..fc87350b --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Ch4EWX-G.js @@ -0,0 +1,816 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-DDTKasOc.js","assets/Input-DOY9MBk2.js","assets/use-compitable-CjxNERC_.js","assets/CheckboxGroup-CVNCmOpb.js","assets/_plugin-vue_export-helper-DQkFygL-.js","assets/Spin-BbwWICDg.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-DxAvLK-K.js","assets/RefreshOutline-DsgjGZK9.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-DmAH_wjP.js","assets/PulseOutline-DBaBm7B1.js","assets/use-message-sIwnQEJL.js","assets/streamers-Bl5LBoP5.js","assets/runtime-bridge-DmDzFGpU.js","assets/VideocamOutline-Dxd9Z4sO.js","assets/FilmOutline-BX3jJC51.js","assets/GitCompareOutline-DCA6_Iop.js","assets/CloudDownloadOutline-Bwk608FY.js","assets/AppShell-dzC4MVjs.css","assets/StreamersView-CmWF_crB.js","assets/AddOutline-C9wx-dLG.js","assets/EmptyState-fy8GfigG.js","assets/EmptyState-BJiq6Btv.css","assets/Select-DlP0Rw4u.js","assets/format-B8CnorUZ.js","assets/filename-template-DBJXvN0y.js","assets/Switch-4rsLpKoT.js","assets/SearchOutline--3GBf81B.js","assets/StreamersView-Bg-GMiEY.css","assets/RecordingsView-jJfZw4rU.js","assets/DownloadOutline-CvleeChj.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-FDkwT__U.js","assets/DocumentTextOutline-BdYVNaS7.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-9SicR-7j.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-C7TOuPQQ.js","assets/SettingsView-ogFFTr5l.css"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function va(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Oe={},lr=[],co=()=>{},Cd=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),qe=Object.assign,Ca=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Em=Object.prototype.hasOwnProperty,Re=(e,t)=>Em.call(e,t),ge=Array.isArray,Uo=e=>On(e)==="[object Map]",mi=e=>On(e)==="[object Set]",ss=e=>On(e)==="[object Date]",ye=e=>typeof e=="function",Ve=e=>typeof e=="string",kt=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",xd=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),yd=Object.prototype.toString,On=e=>yd.call(e),_m=e=>On(e).slice(8,-1),Sd=e=>On(e)==="[object Object]",Bi=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ki=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},$m=/-\w/g,wt=ki(e=>e.replace($m,t=>t.slice(1).toUpperCase())),Rm=/\B([A-Z])/g,Cr=ki(e=>e.replace(Rm,"-$1").toLowerCase()),Di=ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),ml=ki(e=>e?`on${Di(e)}`:""),io=(e,t)=>!Object.is(e,t),gl=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},Im=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Am=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let cs;const Li=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ge(e)){const t={};for(let o=0;oo.startsWith("/*")?"":o).split(Hm).forEach(o=>{if(o){const r=o.split(Mm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function mr(e){let t="";if(Ve(e))t=e;else if(ge(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Om=e=>Ve(e)?e:e==null?"":ge(e)||Ie(e)&&(e.toString===yd||!ye(e.toString))?Td(e)?Om(e.value):JSON.stringify(e,Ed,2):String(e),Ed=(e,t)=>Td(t)?Ed(e,t.value):Uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[bl(r,i)+" =>"]=n,o),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bl(o))}:kt(t)?bl(t):Ie(t)&&!ge(t)&&!Sd(t)?String(t):t,bl=(e,t="")=>{var o;return kt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let it;class Wm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&it&&(it.active?(this.parent=it,this.index=(it.scopes||(it.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(it===this)it=this.prevScope;else{let t=it;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(pn){let t=pn;for(pn=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;hn;){let t=hn;for(hn=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Id(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ad(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Sa(r),jm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function Wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wl(e))))return;e.flags|=2;const t=e.dep,o=We,r=Xt;We=e,Xt=!0;try{Id(e);const n=e.fn(e._value);(t.version===0||io(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{We=o,Xt=r,Ad(e),e.flags&=-3}}function Sa(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Sa(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function jm(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Xt=!0;const Md=[];function fo(){Md.push(Xt),Xt=!1}function ho(){const e=Md.pop();Xt=e===void 0?!0:e}function fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=We;We=void 0;try{t()}finally{We=o}}}let yn=0;class Vm{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!Xt||We===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==We)o=this.activeLink=new Vm(We,this),We.deps?(o.prevDep=We.depsTail,We.depsTail.nextDep=o,We.depsTail=o):We.deps=We.depsTail=o,zd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=We.depsTail,o.nextDep=void 0,We.depsTail.nextDep=o,We.depsTail=o,We.deps===o&&(We.deps=r)}return o}trigger(t){this.version++,yn++,this.notify(t)}notify(t){xa();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ya()}}}function zd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zd(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const gi=new WeakMap,ur=Symbol(""),Nl=Symbol(""),Sn=Symbol("");function ht(e,t,o){if(Xt&&We){let r=gi.get(e);r||gi.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new wa),n.map=r,n.key=o),n.track()}}function To(e,t,o,r,n,i){const l=gi.get(e);if(!l){yn++;return}const a=s=>{s&&s.trigger()};if(xa(),t==="clear")l.forEach(a);else{const s=ge(e),d=s&&Bi(o);if(s&&o==="length"){const c=Number(r);l.forEach((u,f)=>{(f==="length"||f===Sn||!kt(f)&&f>=c)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),d&&a(l.get(Sn)),t){case"add":s?d&&a(l.get("length")):(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"delete":s||(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"set":Uo(e)&&a(l.get(ur));break}}ya()}function Gm(e,t){const o=gi.get(e);return o&&o.get(t)}function _r(e){const t=_e(e);return t===e||(ht(t,"iterate",Sn),Ft(e))?t:mo(e)?qo(e)?t.map(o=>Ko(jt(o))):t.map(Ko):t.map(jt)}function Wi(e){return ht(e=_e(e),"iterate",Sn),e}function oo(e,t){return mo(e)?Ko(qo(e)?jt(t):t):jt(t)}const Um={__proto__:null,[Symbol.iterator](){return Cl(this,Symbol.iterator,e=>oo(this,e))},concat(...e){return _r(this).concat(...e.map(t=>ge(t)?_r(t):t))},entries(){return Cl(this,"entries",e=>(e[1]=oo(this,e[1]),e))},every(e,t){return yo(this,"every",e,t,void 0,arguments)},filter(e,t){return yo(this,"filter",e,t,o=>o.map(r=>oo(this,r)),arguments)},find(e,t){return yo(this,"find",e,t,o=>oo(this,o),arguments)},findIndex(e,t){return yo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yo(this,"findLast",e,t,o=>oo(this,o),arguments)},findLastIndex(e,t){return yo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yo(this,"forEach",e,t,void 0,arguments)},includes(...e){return xl(this,"includes",e)},indexOf(...e){return xl(this,"indexOf",e)},join(e){return _r(this).join(e)},lastIndexOf(...e){return xl(this,"lastIndexOf",e)},map(e,t){return yo(this,"map",e,t,void 0,arguments)},pop(){return Jr(this,"pop")},push(...e){return Jr(this,"push",e)},reduce(e,...t){return ps(this,"reduce",e,t)},reduceRight(e,...t){return ps(this,"reduceRight",e,t)},shift(){return Jr(this,"shift")},some(e,t){return yo(this,"some",e,t,void 0,arguments)},splice(...e){return Jr(this,"splice",e)},toReversed(){return _r(this).toReversed()},toSorted(e){return _r(this).toSorted(e)},toSpliced(...e){return _r(this).toSpliced(...e)},unshift(...e){return Jr(this,"unshift",e)},values(){return Cl(this,"values",e=>oo(this,e))}};function Cl(e,t,o){const r=Wi(e),n=r[t],i=n.call(r);if(r!==e&&!Ft(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const l=Object.create(Object.getPrototypeOf(i));return l.next=()=>hs(i.next(),o),n!==Fd[t]&&Object.defineProperties(l,{return:{get(){const a=i.return;return typeof a=="function"?a.bind(i):a}},throw:{get(){const a=i.throw;return typeof a=="function"?a.bind(i):a}}}),l}i._next=i.next,i.next=()=>hs(i._next(),o)}return i}function hs(e,t){return e.done||(e.value=t(e.value)),e}const Fd=Array.prototype;function yo(e,t,o,r,n,i){const l=Wi(e),a=l!==e&&!Ft(e),s=l[t];if(s!==Fd[t]){const u=s.apply(e,i);return a?jt(u):u}let d=o;l!==e&&(a?d=function(u,f){return o.call(this,oo(e,u),f,e)}:o.length>2&&(d=function(u,f){return o.call(this,u,f,e)}));const c=s.call(l,d,r);return a&&n?n(c):c}function ps(e,t,o,r){const n=Wi(e),i=n!==e&&!Ft(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(d,c,u){return a&&(a=!1,d=oo(e,d)),o.call(this,d,oo(e,c),u,e)}):o.length>3&&(l=function(d,c,u){return o.call(this,d,c,u,e)}));const s=n[t](l,...r);return a?oo(e,s):s}function xl(e,t,o){const r=_e(e);ht(r,"iterate",Sn);const n=r[t](...o);return(n===-1||n===!1)&&Ni(o[0])?(o[0]=_e(o[0]),r[t](...o)):n}function Jr(e,t,o=[]){fo(),xa();const r=_e(e)[t].apply(e,o);return ya(),ho(),r}const qm=va("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function Km(e){kt(e)||(e=String(e));const t=_e(this);return ht(t,"has",e),t.hasOwnProperty(e)}class kd{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?ng:Wd:i?Od:Ld).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=ge(t);if(!n){let s;if(l&&(s=Um[o]))return s;if(o==="hasOwnProperty")return Km}const a=Reflect.get(t,o,ot(t)?t:r);if((kt(o)?Bd.has(o):qm(o))||(n||ht(t,"get",o),i))return a;if(ot(a)){const s=l&&Bi(o)?a:a.value;return n&&Ie(s)?po(s):s}return Ie(a)?n?po(a):xr(a):a}}class Dd extends kd{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=ge(t)&&Bi(o);if(!this._isShallow){const d=mo(i);if(!Ft(r)&&!mo(r)&&(i=_e(i),r=_e(r)),!l&&ot(i)&&!ot(r))return d||(i.value=r),!0}const a=l?Number(o)e,Yn=e=>Reflect.getPrototypeOf(e);function Qm(e,t,o){return function(...r){const n=this.__v_raw,i=_e(n),l=Uo(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,d=n[e](...r),c=o?jl:t?Ko:jt;return!t&&ht(i,"iterate",s?Nl:ur),qe(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:a?[c(u[0]),c(u[1])]:c(u),done:f}}})}}function Xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eg(e,t){const o={get(n){const i=this.__v_raw,l=_e(i),a=_e(n);e||(io(n,a)&&ht(l,"get",n),ht(l,"get",a));const{has:s}=Yn(l),d=t?jl:e?Ko:jt;if(s.call(l,n))return d(i.get(n));if(s.call(l,a))return d(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&ht(_e(n),"iterate",ur),n.size},has(n){const i=this.__v_raw,l=_e(i),a=_e(n);return e||(io(n,a)&&ht(l,"has",n),ht(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=_e(a),d=t?jl:e?Ko:jt;return!e&&ht(s,"iterate",ur),a.forEach((c,u)=>n.call(i,d(c),d(u),l))}};return qe(o,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(n){const i=_e(this),l=Yn(i),a=_e(n),s=!t&&!Ft(n)&&!mo(n)?a:n;return l.has.call(i,s)||io(n,s)&&l.has.call(i,n)||io(a,s)&&l.has.call(i,a)||(i.add(s),To(i,"add",s,s)),this},set(n,i){!t&&!Ft(i)&&!mo(i)&&(i=_e(i));const l=_e(this),{has:a,get:s}=Yn(l);let d=a.call(l,n);d||(n=_e(n),d=a.call(l,n));const c=s.call(l,n);return l.set(n,i),d?io(i,c)&&To(l,"set",n,i):To(l,"add",n,i),this},delete(n){const i=_e(this),{has:l,get:a}=Yn(i);let s=l.call(i,n);s||(n=_e(n),s=l.call(i,n)),a&&a.call(i,n);const d=i.delete(n);return s&&To(i,"delete",n,void 0),d},clear(){const n=_e(this),i=n.size!==0,l=n.clear();return i&&To(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Qm(n,e,t)}),o}function Pa(e,t){const o=eg(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_isShallow"?t:n==="__v_raw"?r:Reflect.get(Re(o,n)&&n in r?o:r,n,i)}const tg={get:Pa(!1,!1)},og={get:Pa(!1,!0)},rg={get:Pa(!0,!1)};const Ld=new WeakMap,Od=new WeakMap,Wd=new WeakMap,ng=new WeakMap;function ig(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xr(e){return mo(e)?e:Ta(e,!1,Xm,tg,Ld)}function Nd(e){return Ta(e,!1,Jm,og,Od)}function po(e){return Ta(e,!0,Zm,rg,Wd)}function Ta(e,t,o,r,n){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=ig(_m(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function qo(e){return mo(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Ni(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Vl(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&wd(e,"__v_skip",!0),e}const jt=e=>Ie(e)?xr(e):e,Ko=e=>Ie(e)?po(e):e;function ot(e){return e?e.__v_isRef===!0:!1}function se(e){return Vd(e,!1)}function jd(e){return Vd(e,!0)}function Vd(e,t){return ot(e)?e:new lg(e,t)}class lg{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:_e(t),this._value=o?t:jt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||Ft(t)||mo(t);t=r?t:_e(t),io(t,o)&&(this._rawValue=t,this._value=r?t:jt(t),this.dep.trigger())}}function Yt(e){return ot(e)?e.value:e}const ag={get:(e,t,o)=>t==="__v_raw"?e:Yt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return ot(n)&&!ot(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function Gd(e){return qo(e)?e:new Proxy(e,ag)}class sg{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=kt(o)?o:String(o),this._raw=_e(t);let n=!0,i=t;if(!ge(t)||kt(this._key)||!Bi(this._key))do n=!Ni(i)||Ft(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Yt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ot(this._raw[this._key])){const o=this._object[this._key];if(ot(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Gm(this._raw,this._key)}}class cg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function uo(e,t,o){return ot(e)?e:ye(e)?new cg(e):Ie(e)&&arguments.length>1?dg(e,t,o):se(e)}function dg(e,t,o){return new sg(e,t,o)}class ug{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Rd(this,!0),!0}get value(){const t=this.dep.track();return Hd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,o=!1){let r,n;return ye(e)?r=e:(r=e.get,n=e.set),new ug(r,n,o)}const Zn={},bi=new WeakMap;let or;function hg(e,t=!1,o=or){if(o){let r=bi.get(o);r||bi.set(o,r=[]),r.push(e)}}function pg(e,t,o=Oe){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,d=P=>n?P:Ft(P)||n===!1||n===0?Eo(P,1):Eo(P);let c,u,f,h,p=!1,g=!1;if(ot(e)?(u=()=>e.value,p=Ft(e)):qo(e)?(u=()=>d(e),p=!0):ge(e)?(g=!0,p=e.some(P=>qo(P)||Ft(P)),u=()=>e.map(P=>{if(ot(P))return P.value;if(qo(P))return d(P);if(ye(P))return s?s(P,2):P()})):ye(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){fo();try{f()}finally{ho()}}const P=or;or=c;try{return s?s(e,3,[h]):e(h)}finally{or=P}}:u=co,t&&n){const P=u,A=n===!0?1/0:n;u=()=>Eo(P(),A)}const b=Nm(),C=()=>{c.stop(),b&&b.active&&Ca(b.effects,c)};if(i&&t){const P=t;t=(...A)=>{try{return P(...A)}finally{C()}}}let y=g?new Array(e.length).fill(Zn):Zn;const T=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const A=c.run();if(P||n||p||(g?A.some((M,v)=>io(M,y[v])):io(A,y))){const M=or;fo();try{f&&f(),or=c;const v=[A,y===Zn?void 0:g&&y[0]===Zn?[]:y,h];y=A,s?s(t,3,v):t(...v)}finally{or=M,ho()}}}else c.run()};return a&&a(T),c=new _d(u),c.scheduler=l?()=>l(T,!1):T,h=P=>hg(P,!1,c),f=c.onStop=()=>{const P=bi.get(c);if(P){if(s)s(P,4);else for(const A of P)A();bi.delete(c)}},t?r?T(!0):y=c.run():l?l(T.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function Eo(e,t=1/0,o){if(t<=0||!Ie(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,ot(e))Eo(e.value,t,o);else if(ge(e))for(let r=0;r{Eo(r,t,o)});else if(Sd(e)){for(const r in e)Eo(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Eo(e[r],t,o)}return e}function Wn(e,t,o,r){try{return r?e(...r):e()}catch(n){ji(n,t,o)}}function Vt(e,t,o,r){if(ye(e)){const n=Wn(e,t,o,r);return n&&xd(n)&&n.catch(i=>{ji(i,t,o,void 0,!0)}),n}if(ge(e)){const n=[];for(let i=0;i>>1,n=yt[r],i=wn(n);i=wn(o)?yt.push(e):yt.splice(gg(t),0,e),e.flags|=1,qd()}}function qd(){vi||(vi=Ud.then(Xd))}function bg(e){if(!ge(e))Wo&&e.id===-1?Wo.splice(Ar+1,0,e):e.flags&1||(ro.push(e),e.flags|=1);else for(let t=0;t=t))continue;yt.splice(r,1),r=e?r-1:Ut,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Yd(e,t,o=0){if(ro.length){let r=ro,n=0;if(t){r=[];for(let l=0;lwn(l)-wn(a));if(ro.length=n,Wo){for(let l=0;le.id==null?e.flags&2?-1:1/0:e.id;function Xd(e){try{for(Ut=0;Ut{r._d&&wi(-1);const i=Ci(t),l=$o.length;let a;try{a=e(...n)}finally{for(let s=$o.length;s>l;s--)Ha();Ci(i),r._d&&wi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Gl(e,t){if(lt===null)return e;const o=Yi(lt),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ye(t)?t.call(r&&r.proxy):t}}const Cg=Symbol.for("v-scx"),xg=()=>De(Cg);function Gi(e,t){return Ea(e,null,t)}function Nt(e,t,o){return Ea(e,t,o)}function Ea(e,t,o=Oe){const{immediate:r,deep:n,flush:i,once:l}=o,a=qe({},o),s=t&&r||!t&&i!=="post";let d;if(In){if(i==="sync"){const h=xg();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=co,h.resume=co,h.pause=co,h}}const c=mt;a.call=(h,p,g)=>Vt(h,c,p,g);let u=!1;i==="post"?a.scheduler=h=>{h.i=c,ft(h,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Vi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=pg(e,t,a);return In&&(d?d.push(f):s&&f()),f}function yg(e,t,o){const r=this.proxy,n=Ve(e)?e.includes(".")?Jd(r,e):()=>r[e]:e.bind(r,r);let i;ye(t)?i=t:(i=t.handler,o=t);const l=jn(this),a=Ea(n,i.bind(r),o);return l(),a}function Jd(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,nr=e=>e&&(e.disabled||e.disabled===""),Sg=e=>e&&(e.defer||e.defer===""),ms=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ul=(e,t)=>{const o=e&&e.to;return Ve(o)?t?t(o):null:o},wg={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,d){const{mc:c,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b,parentNode:C}}=d,y=nr(t.props);let{dynamicChildren:T}=t;const P=(v,w,_)=>{v.shapeFlag&16&&c(v.children,w,_,n,i,l,a,s)},A=(v=t)=>{const w=nr(v.props),_=v.target=Ul(v.props,p),H=ql(_,v,g,h);_&&(l!=="svg"&&ms(_)?l="svg":l!=="mathml"&&gs(_)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(_),w||(P(v,_,H),an(v,!1)))},M=v=>{const w=()=>{if(Lo.get(v)===w){if(Lo.delete(v),nr(v.props)){const _=C(v.el)||o;P(v,_,v.anchor),an(v,!0)}A(v)}};Lo.set(v,w),ft(w,i)};if(e==null){const v=t.el=g(""),w=t.anchor=g("");if(h(v,o,r),h(w,o,r),Sg(t.props)||i&&i.pendingBranch){M(t);return}y&&(P(t,o,w),an(t,!0)),A()}else{t.el=e.el;const v=t.anchor=e.anchor,w=Lo.get(e);if(w){w.flags|=8,Lo.delete(e),M(t);return}t.targetStart=e.targetStart;const _=t.target=e.target,H=t.targetAnchor=e.targetAnchor,O=nr(e.props),$=O?o:_,K=O?v:H;if(l==="svg"||ms(_)?l="svg":(l==="mathml"||gs(_))&&(l="mathml"),T?(f(e.dynamicChildren,T,$,n,i,l,a),Aa(e,t,!0)):s||u(e,t,$,K,n,i,l,a,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jn(t,o,v,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=Ul(t.props,p);ie&&(t.target=ie,Jn(t,ie,null,d,0))}else O&&Jn(t,_,H,d,1);an(t,y)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:d,targetAnchor:c,target:u,props:f}=e,h=nr(f),p=i||!h,g=Lo.get(e);if(g&&(g.flags|=8,Lo.delete(e)),u&&(n(d),n(c)),i&&n(s),!g&&(h||u)&&l&16)for(let b=0;b{e.isMounted=!0}),Gt(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],tu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},Tg={name:"BaseTransition",props:tu,setup(e,{slots:t}){const o=Wr(),r=eu();return()=>{const n=t.default&&$a(t.default(),!0),i=n&&n.length?ou(n):o.subTree?db():void 0;if(!i)return;const l=_e(e),{mode:a}=l;if(r.isLeaving)return Sl(i);const s=xi(i);if(!s)return Sl(i);const d=Pn(s,l,r,o);s.type!==Ze&&_o(s,d);let c=o.subTree&&xi(o.subTree);if(c&&c.type!==Ze&&!ir(c,s)&&Tn(o.subTree)){let u=Pn(c,l,r,o);if(_o(c,u),a==="out-in"&&s.type!==Ze)return r.isLeaving=!0,u.afterLeave=()=>{if(r.isLeaving=!1,!(o.job.flags&8))if(o.effect.flags&2){const f=()=>{o.job.flags&8||o.update()};f.i=o,Vi(f)}else o.update();delete u.afterLeave,c=void 0},Sl(i);a==="in-out"&&s.type!==Ze?u.delayLeave=(f,h,p)=>{const g=ru(r,c);g[String(c.key)]=c,f[Wt]=()=>{h(),f[Wt]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function ou(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Ze){t=o;break}}return t}const Eg=Tg;function ru(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Pn(e,t,o,r){const{appear:n,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:u,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:y}=t,T=String(e.key),P=ru(o,e),A=(w,_)=>{w&&Vt(w,r,9,_)},M=(w,_)=>{const H=_[1];A(w,_),ge(w)?w.every(O=>O.length<=1)&&H():w.length<=1&&H()},v={mode:i,persisted:l,beforeEnter(w){let _=a;if(!o.isMounted)if(n)_=g||a;else return;w[Wt]&&w[Wt](!0);const H=P[T];if(H&&ir(e,H)){let O=H.el[Wt];if(!O){const $=Tn(H);O=$&&$.el[Wt]}O&&O()}A(_,[w])},enter(w){if(P[T]===e)return;let _=s,H=d,O=c;if(!o.isMounted)if(n)_=b||s,H=C||d,O=y||c;else return;let $=!1;w[Qr]=ie=>{$||($=!0,ie?A(O,[w]):A(H,[w]),v.delayedLeave&&v.delayedLeave(),w[Qr]=void 0)};const K=w[Qr].bind(null,!1);_?M(_,[w,K]):K()},leave(w,_){const H=String(e.key);if(w[Qr]&&w[Qr](!0),o.isUnmounting)return _();A(u,[w]);let O=!1;w[Wt]=K=>{O||(O=!0,_(),K?A(p,[w]):A(h,[w]),w[Wt]=void 0,P[H]===e&&delete P[H])};const $=w[Wt].bind(null,!1);P[H]=e,f?M(f,[w,$]):$()},clone(w){const _=Pn(w,t,o,r);return _.afterLeave=()=>{v.afterLeave&&v.afterLeave()},_.delayLeave=(H,O,$)=>{v.delayLeave?v.delayLeave(H,O,$):$()},_.delayedLeave=()=>{v.delayedLeave&&v.delayedLeave()},_}};return v}function Sl(e){if(qi(e))return e=go(e),e.children=null,e}function xi(e){if(!qi(e))return Ui(e.type)&&e.children?ou(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ye(o.default))return o.default()}}function _o(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;_o(Ui(o.type)&&xi(o)||o,t)}else if(e.shapeFlag&128){const o=e.suspense;if(o){const r=o.isHydrating?o.pendingBranch:o.activeBranch;r&&_o(r,t.clone(r))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===Te&&ge(e.children)){const o=vu(e.children,!1);o&&_o(o,t)}}function $a(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;imn(g,t&&(ge(t)?t[b]:t),o,r,n));return}if(Mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?Yi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,d=t&&t.r,c=a.refs===Oe?a.refs={}:a.refs,u=a.setupState,f=_e(u),h=u===Oe?Cd:g=>bs(c,g)?!1:Re(f,g),p=(g,b)=>!(b&&bs(c,b));if(d!=null&&d!==s){if(vs(t),Ve(d))c[d]=null,h(d)&&(u[d]=null);else if(ot(d)){const g=t;p(d,g.k)&&(d.value=null),g.k&&(c[g.k]=null)}}if(ye(s))Wn(s,a,12,[l,c]);else{const g=Ve(s),b=ot(s);if(g||b){const C=()=>{if(e.f){const y=g?h(s)?u[s]:c[s]:p()||!e.k?s.value:c[e.k];if(n)ge(y)&&Ca(y,i);else if(ge(y))y.includes(i)||y.push(i);else if(g)c[s]=[i],h(s)&&(u[s]=c[s]);else{const T=[i];p(s,e.k)&&(s.value=T),e.k&&(c[e.k]=T)}}else g?(c[s]=l,h(s)&&(u[s]=l)):b&&(p(s,e.k)&&(s.value=l),e.k&&(c[e.k]=l))};if(l){const y=()=>{C(),yi.delete(e)};y.id=-1,yi.set(e,y),ft(y,o)}else vs(e),C()}}}function vs(e){const t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}Li().requestIdleCallback;Li().cancelIdleCallback;const Mr=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function iu(e,t){au(e,"a",t)}function lu(e,t){au(e,"da",t)}function au(e,t,o=mt){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,r,o),o){let n=o.parent;for(;n&&n.parent;)qi(n.parent.vnode)&&_g(r,t,o,n),n=n.parent}}function _g(e,t,o,r){const n=En(t,e,r,!0),i=En("um",()=>Ca(r[t],n),o);i.flags=16}function En(e,t,o=mt,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{fo();const a=jn(o),s=Vt(t,o,e,l);return a(),ho(),s});return r?n.unshift(i):n.push(i),i}}const Ao=e=>(t,o=mt)=>{(!In||e==="sp")&&En(e,(...r)=>t(...r),o)},yr=Ao("bm"),bo=Ao("m"),$g=Ao("bu"),su=Ao("u"),Gt=Ao("bum"),cu=Ao("um"),Rg=Ao("sp"),Ig=Ao("rtg"),Ag=Ao("rtc");function Hg(e,t=mt){En("ec",e,t)}const du="components";function Mg(e,t){return fu(du,e,!0,t)||e}const uu=Symbol.for("v-ndc");function k_(e){return Ve(e)?fu(du,e,!1)||e:e||uu}function fu(e,t,o=!0,r=!1){const n=lt||mt;if(n){const i=n.type;{const a=vb(i,!1);if(a&&(a===t||a===wt(t)||a===Di(wt(t))))return i}const l=Cs(n[e]||i[e],t)||Cs(n.appContext[e],t);return!l&&r?i:l}}function Cs(e,t){return e&&(e[t]||e[wt(t)]||e[Di(wt(t))])}function D_(e,t,o,r){let n;const i=o,l=ge(e);if(l||Ve(e)){const a=l&&qo(e);let s=!1,d=!1;a&&(s=!Ft(e),d=mo(e),e=Wi(e)),n=new Array(e.length);for(let c=0,u=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,d=a.length;s0;return k(),ae(Te,null,[je("slot",d,r)],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=$o.length;k();let s;try{const d=l&&hu(l(o)),c=o.key||i||d&&d.key;s=ae(Te,{key:(c&&!kt(c)?c:`_${t}`)+(!d&&r?"_fb":"")},d||(r?r():[]),d&&e._===1?64:-2)}catch(d){for(let c=$o.length;c>a;c--)Ha();throw d}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function hu(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!hu(t.children)):!0)?e:null}const Kl=e=>e?Mu(e)?Yi(e):Kl(e.parent):null,gn=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kl(e.parent),$root:e=>Kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mu(e),$forceUpdate:e=>e.f||(e.f=()=>{Vi(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>yg.bind(e)}),wl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Re(e,t),Fg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(wl(r,t))return l[t]=1,r[t];if(n!==Oe&&Re(n,t))return l[t]=2,n[t];if(Re(i,t))return l[t]=3,i[t];if(o!==Oe&&Re(o,t))return l[t]=4,o[t];Yl&&(l[t]=0)}}const d=gn[t];let c,u;if(d)return t==="$attrs"&&ht(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(o!==Oe&&Re(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Re(u,t))return u[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return wl(n,t)?(n[t]=o,!0):r!==Oe&&Re(r,t)?(r[t]=o,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Oe&&a[0]!=="$"&&Re(e,a)||wl(t,a)||Re(i,a)||Re(r,a)||Re(gn,a)||Re(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Re(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function xs(e){return ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Yl=!0;function Bg(e){const t=mu(e),o=e.proxy,r=e.ctx;Yl=!1,t.beforeCreate&&ys(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:C,beforeUnmount:y,destroyed:T,unmounted:P,render:A,renderTracked:M,renderTriggered:v,errorCaptured:w,serverPrefetch:_,expose:H,inheritAttrs:O,components:$,directives:K,filters:ie}=t;if(d&&kg(d,r,null),l)for(const J in l){const ue=l[J];ye(ue)&&(r[J]=ue.bind(o))}if(n){const J=n.call(o,o);Ie(J)&&(e.data=xr(J))}if(Yl=!0,i)for(const J in i){const ue=i[J],He=ye(ue)?ue.bind(o,o):ye(ue.get)?ue.get.bind(o,o):co,$e=!ye(ue)&&ye(ue.set)?ue.set.bind(o):co,Le=X({get:He,set:$e});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Le.value,set:ke=>Le.value=ke})}if(a)for(const J in a)pu(a[J],r,o,J);if(s){const J=ye(s)?s.call(o):s;Reflect.ownKeys(J).forEach(ue=>{at(ue,J[ue])})}c&&ys(c,e,"c");function ce(J,ue){ge(ue)?ue.forEach(He=>J(He.bind(o))):ue&&J(ue.bind(o))}if(ce(yr,u),ce(bo,f),ce($g,h),ce(su,p),ce(iu,g),ce(lu,b),ce(Hg,w),ce(Ag,M),ce(Ig,v),ce(Gt,y),ce(cu,P),ce(Rg,_),ge(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(ue=>{Object.defineProperty(J,ue,{get:()=>o[ue],set:He=>o[ue]=He,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===co&&(e.render=A),O!=null&&(e.inheritAttrs=O),$&&(e.components=$),K&&(e.directives=K),_&&nu(e)}function kg(e,t,o=co){ge(e)&&(e=Xl(e));for(const r in e){const n=e[r];let i;Ie(n)?"default"in n?i=De(n.from||r,n.default,!0):i=De(n.from||r):i=De(n),ot(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ys(e,t,o){Vt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function pu(e,t,o,r){let n=r.includes(".")?Jd(o,r):()=>o[r];if(Ve(e)){const i=t[e];ye(i)&&Nt(n,i)}else if(ye(e))Nt(n,e.bind(o));else if(Ie(e))if(ge(e))e.forEach(i=>pu(i,t,o,r));else{const i=ye(e.handler)?e.handler.bind(o):t[e.handler];ye(i)&&Nt(n,i,e)}}function mu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(d=>Si(s,d,l,!0)),Si(s,t,l)),Ie(t)&&i.set(t,s),s}function Si(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Si(e,i,o,!0),n&&n.forEach(l=>Si(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=Dg[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Dg={data:Ss,props:ws,emits:ws,methods:sn,computed:sn,beforeCreate:Ct,created:Ct,beforeMount:Ct,mounted:Ct,beforeUpdate:Ct,updated:Ct,beforeDestroy:Ct,beforeUnmount:Ct,destroyed:Ct,unmounted:Ct,activated:Ct,deactivated:Ct,errorCaptured:Ct,serverPrefetch:Ct,components:sn,directives:sn,watch:Og,provide:Ss,inject:Lg};function Ss(e,t){return t?e?function(){return qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Lg(e,t){return sn(Xl(e),Xl(t))}function Xl(e){if(ge(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${Cr(t)}Modifiers`];function Vg(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Oe;let n=o;const i=t.startsWith("update:"),l=i&&jg(r,t.slice(7));l&&(l.trim&&(n=o.map(c=>Ve(c)?c.trim():c)),l.number&&(n=n.map(Im)));let a,s=r[a=ml(t)]||r[a=ml(wt(t))];!s&&i&&(s=r[a=ml(Cr(t))]),s&&Vt(s,e,6,n);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Vt(d,e,6,n)}}const Gg=new WeakMap;function bu(e,t,o=!1){const r=o?Gg:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!ye(e)){const s=d=>{const c=bu(d,t,!0);c&&(a=!0,qe(l,c))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(Ie(e)&&r.set(e,null),null):(ge(i)?i.forEach(s=>l[s]=null):qe(l,i),Ie(e)&&r.set(e,l),l)}function Ki(e,t){return!e||!zi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Cr(t))||Re(e,t))}function Ps(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:d,renderCache:c,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ci(e);let C,y;try{if(o.shapeFlag&4){const P=n||r,A=P;C=no(d.call(A,P,c,u,h,f,p)),y=a}else{const P=t;C=no(P.length>1?P(u,{attrs:a,slots:l,emit:s}):P(u,null)),y=t.props?a:Ug(a)}}catch(P){$o.length=0,ji(P,e,1),C=je(Ze)}let T=C;if(y&&g!==!1){const P=Object.keys(y),{shapeFlag:A}=T;P.length&&A&7&&(i&&P.some(Fi)&&(y=qg(y,i)),T=go(T,y,!1,!0))}if(o.dirs&&(T=go(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(o.dirs):o.dirs),o.transition){const P=Ui(T.type)&&xi(T)||T;_o(P,o.transition)}return C=T,Ci(b),C}function vu(e,t=!0){let o;for(let r=0;r{let t;for(const o in e)(o==="class"||o==="style"||zi(o))&&((t||(t={}))[o]=e[o]);return t},qg=(e,t)=>{const o={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Kg(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Ts(r,l,d):!!l;if(s&8){const c=t.dynamicProps;for(let u=0;uObject.create(xu),Su=e=>Object.getPrototypeOf(e)===xu;function Xg(e,t,o,r=!1){const n={},i=yu();e.propsDefaults=Object.create(null),wu(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:Nd(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Zg(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=_e(n),[s]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,h]=Pu(u,t,!0);qe(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Ie(e)&&r.set(e,lr),lr;if(ge(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Ia=e=>ge(e)?e.map(no):[no(e)],Qg=(e,t,o)=>{if(t._n)return t;const r=so((...n)=>Ia(t(...n)),o);return r._c=!1,r},Tu=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Ra(n))continue;const i=e[n];if(ye(i))t[n]=Qg(n,i,r);else if(i!=null){const l=Ia(i);t[n]=()=>l}}},Eu=(e,t)=>{const o=Ia(t);e.slots.default=()=>o},_u=(e,t,o)=>{for(const r in t)(o||!Ra(r))&&(e[r]=t[r])},eb=(e,t,o)=>{const r=e.slots=yu();if(e.vnode.shapeFlag&32){const n=t._;n?(_u(r,t,o),o&&wd(r,"_",n,!0)):Tu(t,r)}else t&&Eu(e,t)},tb=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Oe;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:_u(n,t,o):(i=!t.$stable,Tu(t,n)),l=t}else t&&(Eu(e,t),l={default:1});if(i)for(const a in n)!Ra(a)&&l[a]==null&&delete n[a]},ft=ab;function ob(e){return rb(e)}function rb(e,t){const o=Li();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=co,insertStaticContent:p}=e,g=(m,x,S,E=null,R=null,B=null,W=void 0,U=null,G=!!x.dynamicChildren)=>{if(m===x)return;m&&!ir(m,x)&&(E=z(m),ke(m,R,B,!0),m=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null),x.dynamicChildren&&m&&m.dynamicChildren&&m.dynamicChildren.hasOnce&&(x.dynamicChildren===lr&&(x.dynamicChildren=[]),x.dynamicChildren.hasOnce=!0);const{type:I,ref:Z,shapeFlag:q}=x;switch(I){case Nn:b(m,x,S,E);break;case Ze:C(m,x,S,E);break;case ci:m==null&&y(x,S,E,W);break;case Te:$(m,x,S,E,R,B,W,U,G);break;default:q&1?A(m,x,S,E,R,B,W,U,G):q&6?K(m,x,S,E,R,B,W,U,G):(q&64||q&128)&&I.process(m,x,S,E,R,B,W,U,G,L)}Z!=null&&R?mn(Z,m&&m.ref,B,x||m,!x):Z==null&&m&&m.ref!=null&&mn(m.ref,null,B,m,!0)},b=(m,x,S,E)=>{if(m==null)r(x.el=a(x.children),S,E);else{const R=x.el=m.el;x.children!==m.children&&d(R,x.children)}},C=(m,x,S,E)=>{m==null?r(x.el=s(x.children||""),S,E):x.el=m.el},y=(m,x,S,E)=>{[m.el,m.anchor]=p(m.children,x,S,E,m.el,m.anchor)},T=({el:m,anchor:x},S,E)=>{let R;for(;m&&m!==x;)R=f(m),r(m,S,E),m=R;r(x,S,E)},P=({el:m,anchor:x})=>{let S;for(;m&&m!==x;)S=f(m),n(m),m=S;n(x)},A=(m,x,S,E,R,B,W,U,G)=>{if(x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),m==null)M(x,S,E,R,B,W,U,G);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),_(m,x,R,B,W,U,G)}finally{I&&I._endPatch()}}},M=(m,x,S,E,R,B,W,U)=>{let G,I;const{props:Z,shapeFlag:q,transition:de,dirs:ve}=m;if(G=m.el=l(m.type,B,Z&&Z.is,Z),q&8?c(G,m.children):q&16&&w(m.children,G,null,E,R,Pl(m,B),W,U),ve&&Jo(m,null,E,"created"),v(G,m,m.scopeId,W,E),Z){for(const Me in Z)Me!=="value"&&!fn(Me)&&i(G,Me,null,Z[Me],B,E);"value"in Z&&i(G,"value",null,Z.value,B),(I=Z.onVnodeBeforeMount)&&Jt(I,E,m)}ve&&Jo(m,null,E,"beforeMount");const we=nb(R,de);we?de.beforeEnter(G):de&&!de.persisted&&(G[lb]=!0),r(G,x,S),((I=Z&&Z.onVnodeMounted)||we||ve)&&ft(()=>{I&&Jt(I,E,m),we&&de.enter(G),ve&&Jo(m,null,E,"mounted")},R)},v=(m,x,S,E,R)=>{if(S&&h(m,S),E)for(let B=0;B{for(let I=G;I{const U=x.el=m.el;let{patchFlag:G,dynamicChildren:I,dirs:Z}=x;G|=m.patchFlag&16;const q=m.props||Oe,de=x.props||Oe;let ve;if(S&&Qo(S,!1),(ve=de.onVnodeBeforeUpdate)&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"beforeUpdate"),S&&Qo(S,!0),I&&(!m.dynamicChildren||m.dynamicChildren.length!==I.length)&&(G=0,W=!1,I=null),(q.innerHTML&&de.innerHTML==null||q.textContent&&de.textContent==null)&&c(U,""),I?H(m.dynamicChildren,I,U,S,E,Pl(x,R),B):W||ue(m,x,U,null,S,E,Pl(x,R),B,!1),G>0){if(G&16)O(U,q,de,S,R);else if(G&2&&q.class!==de.class&&i(U,"class",null,de.class,R),G&4&&i(U,"style",q.style,de.style,R),G&8){const we=x.dynamicProps;for(let Me=0;Me{ve&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"updated")},E)},H=(m,x,S,E,R,B,W)=>{for(let U=0;U{if(x!==S){if(x!==Oe)for(const B in x)!fn(B)&&!(B in S)&&i(m,B,x[B],null,R,E);for(const B in S){if(fn(B))continue;const W=S[B],U=x[B];W!==U&&B!=="value"&&i(m,B,U,W,R,E)}"value"in S&&i(m,"value",x.value,S.value,R)}},$=(m,x,S,E,R,B,W,U,G)=>{const I=x.el=m?m.el:a(""),Z=x.anchor=m?m.anchor:a("");let{patchFlag:q,dynamicChildren:de,slotScopeIds:ve}=x;ve&&(U=U?U.concat(ve):ve),m==null?(r(I,S,E),r(Z,S,E),w(x.children||[],S,Z,R,B,W,U,G)):q>0&&q&64&&de&&m.dynamicChildren&&m.dynamicChildren.length===de.length?(H(m.dynamicChildren,de,S,R,B,W,U),(x.key!=null||R&&x===R.subTree)&&Aa(m,x,!0)):ue(m,x,S,Z,R,B,W,U,G)},K=(m,x,S,E,R,B,W,U,G)=>{x.slotScopeIds=U,m==null?x.shapeFlag&512?R.ctx.activate(x,S,E,W,G):ie(x,S,E,R,B,W,G):be(m,x,G)},ie=(m,x,S,E,R,B,W)=>{const U=m.component=hb(m,E,R);if(qi(m)&&(U.ctx.renderer=L),pb(U,!1,W),U.asyncDep){if(R&&R.registerDep(U,ce,W,B),!m.el){const G=U.subTree=je(Ze);C(null,G,x,S),m.placeholder=G.el}}else ce(U,m,x,S,R,B,W)},be=(m,x,S)=>{const E=x.component=m.component;if(Kg(m,x,S))if(E.asyncDep&&!E.asyncResolved){x.el=m.el,x.placeholder=m.placeholder,J(E,x,S);return}else E.next=x,E.update();else x.el=m.el,x.placeholder=m.placeholder,E.vnode=x},ce=(m,x,S,E,R,B,W)=>{const U=()=>{if(m.isMounted){let{next:q,bu:de,u:ve,parent:we,vnode:Me}=m;{const Et=$u(m);if(Et){q&&(q.el=Me.el,J(m,q,W)),Et.asyncDep.then(()=>{const At=()=>{m.job.flags&8||(R&&R.pendingBranch?ft(At,R):I())};At.flags=48,ft(At,R)});return}}let ze=q,Ge;Qo(m,!1),q?(q.el=Me.el,J(m,q,W)):q=Me,de&&gl(de),(Ge=q.props&&q.props.onVnodeBeforeUpdate)&&Jt(Ge,we,q,Me),Qo(m,!0);const Qe=Ps(m),It=m.subTree;m.subTree=Qe,g(It,Qe,u(It.el||bn(It)),z(It),m,R,B),q.el=Qe.el,ze===null&&Yg(m,Qe.el),ve&&ft(ve,R),(Ge=q.props&&q.props.onVnodeUpdated)&&ft(()=>Jt(Ge,we,q,Me),R)}else{let q;const{el:de,props:ve}=x,{bm:we,m:Me,parent:ze,root:Ge,type:Qe}=m,It=Mr(x);Qo(m,!1),we&&gl(we),!It&&(q=ve&&ve.onVnodeBeforeMount)&&Jt(q,ze,x),Qo(m,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(Qe,m.parent?m.parent.type:void 0);const Et=m.subTree=Ps(m);g(null,Et,S,E,m,R,B),x.el=Et.el}if(Me&&ft(Me,R),!It&&(q=ve&&ve.onVnodeMounted)){const Et=x;ft(()=>Jt(q,ze,Et),R)}(x.shapeFlag&256||ze&&Mr(ze.vnode)&&ze.vnode.shapeFlag&256)&&m.a&&ft(m.a,R),m.isMounted=!0,x=S=E=null}};m.scope.on();const G=m.effect=new _d(U);m.scope.off();const I=m.update=G.run.bind(G),Z=m.job=G.runIfDirty.bind(G);Z.i=m,Z.id=m.uid,G.scheduler=()=>Vi(Z),Qo(m,!0),I()},J=(m,x,S)=>{x.component=m;const E=m.vnode.props;m.vnode=x,m.next=null,Zg(m,x.props,E,S),tb(m,x.children,S),fo(),Kd(m),ho()},ue=(m,x,S,E,R,B,W,U,G=!1)=>{const I=m&&m.children,Z=m?m.shapeFlag:0,q=x.children,{patchFlag:de,shapeFlag:ve}=x;if(de>0){if(de&128){$e(I,q,S,E,R,B,W,U,G);return}else if(de&256){He(I,q,S,E,R,B,W,U,G);return}}ve&8?(Z&16&&Se(I,R,B),q!==I&&c(S,q)):Z&16?ve&16?$e(I,q,S,E,R,B,W,U,G):Se(I,R,B,!0):(Z&8&&c(S,""),ve&16&&w(q,S,E,R,B,W,U,G))},He=(m,x,S,E,R,B,W,U,G)=>{m=m||lr,x=x||lr;const I=m.length,Z=x.length,q=Math.min(I,Z);let de;for(de=0;deZ?Se(m,R,B,!0,!1,q):w(x,S,E,R,B,W,U,G,q)},$e=(m,x,S,E,R,B,W,U,G)=>{let I=0;const Z=x.length;let q=m.length-1,de=Z-1;for(;I<=q&&I<=de;){const ve=m[I],we=x[I]=G?Po(x[I]):no(x[I]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;I++}for(;I<=q&&I<=de;){const ve=m[q],we=x[de]=G?Po(x[de]):no(x[de]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;q--,de--}if(I>q){if(I<=de){const ve=de+1,we=vede)for(;I<=q;)ke(m[I],R,B,!0),I++;else{const ve=I,we=I,Me=new Map;for(I=we;I<=de;I++){const ct=x[I]=G?Po(x[I]):no(x[I]);ct.key!=null&&Me.set(ct.key,I)}let ze,Ge=0;const Qe=de-we+1;let It=!1,Et=0;const At=new Array(Qe);for(I=0;I=Qe){ke(ct,R,B,!0);continue}let N;if(ct.key!=null)N=Me.get(ct.key);else for(ze=we;ze<=de;ze++)if(At[ze-we]===0&&ir(ct,x[ze])){N=ze;break}N===void 0?ke(ct,R,B,!0):(At[N-we]=I+1,N>=Et?Et=N:It=!0,g(ct,x[N],S,null,R,B,W,U,G),Ge++)}const Xr=It?ib(At):lr;for(ze=Xr.length-1,I=Qe-1;I>=0;I--){const ct=we+I,N=x[ct],he=x[ct+1],xe=ct+1{const{el:B,type:W,transition:U,children:G,shapeFlag:I}=m;if(I&6){Le(m.component.subTree,x,S,E);return}if(I&128){m.suspense.move(x,S,E);return}if(I&64){W.move(m,x,S,L);return}if(W===Te){r(B,x,S);for(let q=0;qU.enter(B),R));else{const{leave:q,delayLeave:de,afterLeave:ve}=U,we=()=>{m.ctx.isUnmounted?n(B):r(B,x,S)},Me=()=>{const ze=B._isLeaving||!!B[Wt];B._isLeaving&&B[Wt](!0),U.persisted&&!ze?we():q(B,()=>{we(),ve&&ve()})};de?de(B,we,Me):Me()}else r(B,x,S)},ke=(m,x,S,E=!1,R=!1)=>{const{type:B,props:W,ref:U,children:G,dynamicChildren:I,shapeFlag:Z,patchFlag:q,dirs:de,cacheIndex:ve,memo:we}=m;if((q===-2||I&&I.hasOnce)&&(R=!1),U!=null&&(fo(),mn(U,null,S,m,!0),ho()),ve!=null&&(!m.ctx||m.ctx===x)&&(x.renderCache[ve]=void 0),Z&256&&x.ctx.deactivate(m))return;const Me=Z&1&&de,ze=!Mr(m);let Ge;if(ze&&(Ge=W&&W.onVnodeBeforeUnmount)&&Jt(Ge,x,m),Z&6)vt(m.component,S,E);else{if(Z&128){m.suspense.unmount(S,E);return}Me&&Jo(m,null,x,"beforeUnmount"),Z&64?m.type.remove(m,x,S,L,E):I&&!I.hasOnce&&(B!==Te||q>0&&q&64)?Se(I,x,S,!1,!0):(B===Te&&q&384||!R&&Z&16)&&Se(G,x,S),E&&nt(m)}const Qe=we!=null&&ve==null;(ze&&(Ge=W&&W.onVnodeUnmounted)||Me||Qe)&&ft(()=>{Ge&&Jt(Ge,x,m),Me&&Jo(m,null,x,"unmounted"),Qe&&(m.el=null)},S)},nt=m=>{const{type:x,el:S,anchor:E,transition:R}=m,B=x===Te;if(B&&!R){Je(S,E);return}if(x===ci){P(m),R&&!R.persisted&&R.afterLeave&&R.afterLeave();return}const W=B?Tn(m):m,U=()=>{B?u(S)&&Je(S,E):n(S),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(W&&W.shapeFlag&1&&R&&!R.persisted){const{leave:G,delayLeave:I}=R,Z=W.el,q=()=>G(Z,U);I?I(Z,U,q):q()}else U()},Je=(m,x)=>{let S;for(;m!==x;)S=f(m),n(m),m=S;n(x)},vt=(m,x,S)=>{const{bum:E,scope:R,job:B,subTree:W,um:U,m:G,a:I}=m;_s(G),_s(I),E&&gl(E),R.stop(),B?(B.flags|=8,ke(W,m,x,S)):W&&(W.transition=m.vnode.transition,ke(W,m,x,S)),U&&ft(U,x);const Z=()=>{m.isUnmounted=!0};Z.flags=16,ft(Z,x)},Se=(m,x,S,E=!1,R=!1,B=0)=>{for(let W=B;W{if(m.shapeFlag&6)return z(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=f(m.anchor||m.el),S=x&&x[Qd];return S?f(S):x},ee=(m,x,S)=>{const E=m&&x._vnode?void 0:m&&m.component?m.component.uid:fb();vg(()=>{m==null?x._vnode&&ke(x._vnode,null,null,!0):g(x._vnode||null,m,x,null,null,null,S),x._vnode=m},E)},L={p:g,um:ke,m:Le,r:nt,mt:ie,mc:w,pc:ue,pbc:H,n:z,o:e};return{render:ee,hydrate:void 0,createApp:Ng(ee)}}function Pl({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Qo({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Aa(e,t,o=!1){const r=e.children,n=t.children;if(ge(r)&&ge(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function $u(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$u(t)}function _s(e){if(e)for(let t=0;te.__isSuspense,lb=Symbol("_deferredEnter");function ab(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):bg(e)}const Te=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),ci=Symbol.for("v-stc"),$o=[];let Mt=null;function k(e=!1){$o.push(Mt=e?null:[])}function Ha(){$o.pop(),Mt=$o[$o.length-1]||null}let _n=1;function wi(e,t=!1){_n+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function Iu(e){return e.dynamicChildren=_n>0?Mt||lr:null,Ha(),_n>0&&Mt&&Mt.push(e),e}function pe(e,t,o,r,n,i){return Iu(Pe(e,t,o,r,n,i,!0))}function ae(e,t,o,r,n){return Iu(je(e,t,o,r,n,!0))}function Ro(e){return e?e.__v_isVNode===!0:!1}function ir(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,di=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||ot(e)||ye(e)?{i:lt,r:e,k:t,f:!!o}:e:null);function Pe(e,t=null,o=null,r=0,n=null,i=e===Te?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&di(t),scopeId:Zd,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:lt};return a?(Pi(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ve(o)?8:16),_n>0&&!l&&Mt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Mt.push(s),s}const je=sb;function sb(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===uu)&&(e=Ze),Ro(e)){const a=go(e,t,!0);return o&&Pi(a,o),_n>0&&!i&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(e)]=a:Mt.push(a)),a.patchFlag=-2,a}if(Cb(e)&&(e=e.__vccOpts),t){t=cb(t);let{class:a,style:s}=t;a&&!Ve(a)&&(t.class=mr(a)),Ie(s)&&(Ni(s)&&!ge(s)&&(s=qe({},s)),t.style=Be(s))}const l=Ve(e)?1:Ru(e)?128:Ui(e)?64:Ie(e)?4:ye(e)?2:0;return Pe(e,t,o,r,n,l,i,!0)}function cb(e){return e?Ni(e)?qe({},e):Su(e)?qe({},e[Fu]||e):e:null}function go(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,d=t?Bt(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Au(d),ref:t&&t.ref?o&&i?ge(i)?i.concat(di(t)):[i,di(t)]:di(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return s&&r&&_o(c,s.clone(c)),c}function $n(e=" ",t=0){return je(Nn,null,e,t)}function L_(e,t){const o=je(ci,null,e);return o.staticCount=t,o}function db(e="",t=!1){return t?(k(),ae(Ze,null,e)):je(Ze,null,e)}function no(e){return e==null||typeof e=="boolean"?je(Ze):ge(e)?je(Te,null,e.slice()):Ro(e)?Po(e):je(Nn,null,String(e))}function Po(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}function Pi(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Su(t)?t._ctx=lt:n===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ye(t)){if(r&65){Pi(e,{default:t});return}t={default:t,_ctx:lt},o=32}else t=String(t),r&64?(o=16,t=[$n(t)]):o=8;e.children=t,e.shapeFlag|=o}function Bt(...e){const t={};for(let o=0;omt||lt;let Ti,Rn;{const e=Li(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Ti=t("__VUE_INSTANCE_SETTERS__",o=>mt=o),Rn=t("__VUE_SSR_SETTERS__",o=>In=o)}const jn=e=>{const t=mt;return Ti(e),e.scope.on(),()=>{e.scope.off(),Ti(t)}},$s=()=>{mt&&mt.scope.off(),Ti(null)};function Mu(e){return e.vnode.shapeFlag&4}let In=!1;function pb(e,t=!1,o=!1){t&&Rn(t);const{props:r,children:n}=e.vnode,i=Mu(e);Xg(e,r,i,t),eb(e,n,o||t);const l=i?mb(e,t):void 0;return t&&Rn(!1),l}function mb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fg);const{setup:r}=o;if(r){fo();const n=e.setupContext=r.length>1?bb(e):null,i=jn(e),l=Wn(r,e,0,[e.props,n]),a=xd(l);if(ho(),i(),(a||e.sp)&&!Mr(e)&&nu(e),a){if(l.then($s,$s),t)return l.then(s=>{Rn(!0);try{Rs(e,s,t)}finally{Rn(!1)}}).catch(s=>{ji(s,e,0,void 0,!0),e.ssrRender=(d,c)=>c("")});e.asyncDep=l}else Rs(e,l)}else zu(e)}function Rs(e,t,o){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Gd(t)),zu(e)}function zu(e,t,o){const r=e.type;e.render||(e.render=r.render||co);{const n=jn(e);fo();try{Bg(e)}finally{ho(),n()}}}const Fu=Symbol(),gb={get(e,t){return ht(e,"get",""),t===Fu?e:e[t]}};function bb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,gb),slots:e.slots,emit:e.emit,expose:t}}function Yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gd(Vl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in gn)return gn[o](e)},has(t,o){return o in t||o in gn}})):e.proxy}function vb(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Cb(e){return ye(e)&&"__vccOpts"in e}const X=(e,t)=>fg(e,t,In);function Rt(e,t,o){try{wi(-1);const r=arguments.length;return r===2?Ie(t)&&!ge(t)?Ro(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Ro(o)&&(o=[o]),je(e,t,o))}finally{wi(1)}}const xb="3.5.45";let Jl;const Is=typeof window<"u"&&window.trustedTypes;if(Is)try{Jl=Is.createPolicy("vue",{createHTML:e=>e})}catch{}const Bu=Jl?e=>Jl.createHTML(e):e=>e,yb="http://www.w3.org/2000/svg",Sb="http://www.w3.org/1998/Math/MathML",wo=typeof document<"u"?document:null,As=wo&&wo.createElement("template"),wb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?wo.createElementNS(yb,e):t==="mathml"?wo.createElementNS(Sb,e):o?wo.createElement(e,{is:o}):wo.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{As.innerHTML=Bu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=As.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Fo="transition",en="animation",kr=Symbol("_vtc"),ku={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Du=qe({},tu,ku),Pb=e=>(e.displayName="Transition",e.props=Du,e),br=Pb((e,{slots:t})=>Rt(Eg,Lu(e),t)),er=(e,t=[])=>{ge(e)?e.forEach(o=>o(...t)):e&&e(...t)},Hs=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Lu(e){const t={};for(const $ in e)$ in ku||(t[$]=e[$]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:d=l,appearToClass:c=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(n),g=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:y,onEnterCancelled:T,onLeave:P,onLeaveCancelled:A,onBeforeAppear:M=C,onAppear:v=y,onAppearCancelled:w=T}=t,_=($,K,ie,be)=>{$._enterCancelled=be,Oo($,K?c:a),Oo($,K?d:l),ie&&ie()},H=($,K)=>{$._isLeaving=!1,Oo($,u),Oo($,h),Oo($,f),K&&K()},O=$=>(K,ie)=>{const be=$?v:y,ce=()=>_(K,$,ie);er(be,[K,ce]),Ms(()=>{Oo(K,$?s:i),to(K,$?c:a),Hs(be)||zs(K,r,g,ce)})};return qe(t,{onBeforeEnter($){er(C,[$]),to($,i),to($,l)},onBeforeAppear($){er(M,[$]),to($,s),to($,d)},onEnter:O(!1),onAppear:O(!0),onLeave($,K){$._isLeaving=!0;const ie=()=>H($,K);to($,u),$._enterCancelled?(to($,f),Ql($)):(Ql($),to($,f)),Ms(()=>{$._isLeaving&&(Oo($,u),to($,h),Hs(P)||zs($,r,b,ie))}),er(P,[$,ie])},onEnterCancelled($){_($,!1,void 0,!0),er(T,[$])},onAppearCancelled($){_($,!0,void 0,!0),er(w,[$])},onLeaveCancelled($){H($),er(A,[$])}})}function Tb(e){if(e==null)return null;if(Ie(e))return[Tl(e.enter),Tl(e.leave)];{const t=Tl(e);return[t,t]}}function Tl(e){return Am(e)}function to(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[kr]||(e[kr]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[kr];o&&(o.delete(t),o.size||(e[kr]=void 0))}function Ms(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eb=0;function zs(e,t,o,r){const n=e._endId=++Eb,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Ou(e,t);if(!l)return r();const d=l+"end";let c=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++c>=s&&u()};setTimeout(()=>{c(o[p]||"").split(", "),n=r(`${Fo}Delay`),i=r(`${Fo}Duration`),l=Fs(n,i),a=r(`${en}Delay`),s=r(`${en}Duration`),d=Fs(a,s);let c=null,u=0,f=0;t===Fo?l>0&&(c=Fo,u=l,f=i.length):t===en?d>0&&(c=en,u=d,f=s.length):(u=Math.max(l,d),c=u>0?l>d?Fo:en:null,f=c?c===Fo?i.length:s.length:0);const h=c===Fo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Fo}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:h}}function Fs(e,t){for(;e.lengthBs(o)+Bs(e[r])))}function Bs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ql(e){return(e?e.ownerDocument:document).body.offsetHeight}function _b(e,t,o){const r=e[kr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ei=Symbol("_vod"),Ma=Symbol("_vsh"),ks={name:"show",beforeMount(e,{value:t},{transition:o}){e[Ei]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),tn(e,!0),r.enter(e)):r.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[Ei]:"none",e[Ma]=!t}const $b=Symbol(""),Rb=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const r=e.style,n=Ve(o);let i=!1;if(o&&!n){if(t)if(Ve(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&cn(r,a,"")}else for(const l in t)o[l]==null&&cn(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?Hb(e,l,!Ve(t)&&t?t[l]:void 0,a)||cn(r,l,a):cn(r,l,"")}}else if(n){if(t!==o){const l=r[$b];l&&(o+=";"+l),r.cssText=o,i=Rb.test(o)}}else t&&e.removeAttribute("style");Ei in e&&((!n||t!==o)&&(e[Ei]=i?r.display:""),e[Ma]&&(r.display="none"))}const Qn=/\s*!important$/;function cn(e,t,o){if(ge(o))o.forEach(r=>cn(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Qn.test(o)?e.setProperty(t,o.replace(Qn,""),"important"):e.setProperty(t,o);else{const r=Ab(e,t);Qn.test(o)?e.setProperty(Cr(r),o.replace(Qn,""),"important"):e[r]=o}}const Ds=["Webkit","Moz","ms"],El={};function Ab(e,t){const o=El[t];if(o)return o;let r=wt(t);if(r!=="filter"&&r in e)return El[t]=r;r=Di(r);for(let n=0;n_l||(Lb.then(()=>_l=0),_l=Date.now());function Wb(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(ge(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nb=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?_b(e,r,l):t==="style"?Ib(e,o,r):zi(t)?Fi(t)||Fb(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jb(e,t,r,l))?(Ws(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Os(e,t,r,l,i,t!=="value")):e._isVueCE&&(Vb(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ve(r)))?Ws(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Os(e,t,r,l))};function jb(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&js(t)&&ye(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return js(t)&&Ve(o)?!1:t in e}function Vb(e,t){const o=e._def.props;if(!o)return!1;const r=wt(t);return Array.isArray(o)?o.some(n=>wt(n)===r):Object.keys(o).some(n=>wt(n)===r)}const Wu=new WeakMap,Nu=new WeakMap,_i=Symbol("_moveCb"),Vs=Symbol("_enterCb"),ea=new WeakMap,Gb=e=>(delete e.props.mode,e),Ub=Gb({name:"TransitionGroup",props:qe({},Du,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Wr(),r=eu();let n,i,l,a;const s=()=>(a===void 0&&(a=n.length>0&&ev(n[0].el,o.vnode.el,Gs(e))),a);return su(()=>{if(ea.delete(o),!s()){n=[],l=void 0;return}const d=Gs(e);n.forEach(Kb);const c=l&&Qb(l,o.vnode.el);l=void 0,n.forEach(f=>Yb(f,c));const u=n.filter(Xb);Ql(o.vnode.el),u.forEach(f=>{const h=f.el,p=h.style;to(h,d),p.transform=p.webkitTransform=p.transitionDuration="";const g=h[_i]=b=>{b&&b.target!==h||(!b||b.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",g),h[_i]=null,Oo(h,d))};h.addEventListener("transitionend",g)}),n=[]}),()=>{const d=_e(e),c=Lu(d);let u=d.tag||Te;if(n=[],a=void 0,i)for(let f=0;fr.willMove()&&r.item.contains(t));return o&&Xi(o.item,o)}function ev(e,t,o){const r=e.cloneNode(),n=e[kr];n&&n.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=Ou(r);return i.removeChild(r),l}const tv=["ctrl","shift","alt","meta"],ov={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tv.some(o=>e[`${o}Key`]&&!t.includes(o))},O_=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const t=nv().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=av(r);if(!n)return;const i=t._component;!ye(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,lv(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function lv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function av(e){return Ve(e)?document.querySelector(e):e}function sv(e){let t=".",o="__",r="--",n;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){n=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(C){g=C.bem.b,b=C.bem.els,C.bem.els=null},after(C){C.bem.b=g,C.bem.els=b},$({context:C,props:y}){return p=typeof p=="string"?p:p({context:C,props:y}),C.bem.b=p,`${y?.bPrefix||t}${C.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:C}){return p=typeof p=="string"?p:p({context:b,props:C}),b.bem.els=p.split(",").map(y=>y.trim()),b.bem.els.map(y=>`${C?.bPrefix||t}${b.bem.b}${o}${y}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=p.split(",").map(P=>P.trim());function y(P){return C.map(A=>`&${b?.bPrefix||t}${g.bem.b}${P!==void 0?`${o}${P}`:""}${r}${A}`).join(", ")}const T=g.bem.els;return T!==null?y(T[0]):y()}}}function d(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=g.bem.els;return`&:not(${b?.bPrefix||t}${g.bem.b}${C!==null&&C.length>0?`${o}${C[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>n(l(p[0]),p[1],p[2])),cE:((...p)=>n(a(p[0]),p[1],p[2])),cM:((...p)=>n(s(p[0]),p[1],p[2])),cNotM:((...p)=>n(d(p[0]),p[1],p[2]))}),i}function cv(e){let t=0;for(let o=0;o{let n=cv(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function fv(e,t){const o=[];return t.split(ju).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function hv(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=uv(t,o):t=fv(t,o))}),t.join(", ").replace(dv," ")}function qs(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function pv(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ei(e){return e?/^\s*@(s|m)/.test(e):!1}const mv=/[A-Z]/g;function Vu(e){return e.replace(mv,t=>"-"+t.toLowerCase())}function gv(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(o=>t+` ${Vu(o[0])}: ${o[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function bv(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function Ks(e,t,o,r){if(!t)return"";const n=bv(t,o,r);if(!n)return"";if(typeof n=="string")return`${e} { +${n} +}`;const i=Object.keys(n);if(i.length===0)return o.config.keepEmptyBlock?e+` { +}`:"";const l=e?[e+" {"]:[];return i.forEach(a=>{const s=n[a];if(a==="raw"){l.push(` +`+s+` +`);return}a=Vu(a),s!=null&&l.push(` ${a}${gv(s)}`)}),e&&l.push("}"),l.join(` +`)}function ta(e,t,o){e&&e.forEach(r=>{if(Array.isArray(r))ta(r,t,o);else if(typeof r=="function"){const n=r(t);Array.isArray(n)?ta(n,t,o):n&&o(n)}else r&&o(r)})}function Gu(e,t,o,r,n){const i=e.$;let l="";if(!i||typeof i=="string")ei(i)?l=i:t.push(i);else if(typeof i=="function"){const d=i({context:r.context,props:n});ei(d)?l=d:t.push(d)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")ei(i.$)?l=i.$:t.push(i.$);else if(i.$){const d=i.$({context:r.context,props:n});ei(d)?l=d:t.push(d)}const a=hv(t),s=Ks(a,e.props,r,n);l?o.push(`${l} {`):s.length&&o.push(s),e.children&&ta(e.children,{context:r.context,props:n},d=>{if(typeof d=="string"){const c=Ks(a,{raw:d},r,n);o.push(c)}else Gu(d,t,o,r,n)}),t.pop(),l&&o.push("}"),i&&i.after&&i.after(r.context)}function vv(e,t,o){const r=[];return Gu(e,[],r,t,o),r.join(` + +`)}function An(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Cv(e,t,o,r){const{els:n}=t;if(o===void 0)n.forEach(qs),t.els=[];else{const i=Zi(o,r);i&&n.includes(i)&&(qs(i),t.els=n.filter(l=>l!==i))}}function Ys(e,t){e.push(t)}function xv(e,t,o,r,n,i,l,a,s){let d;if(o===void 0&&(d=t.render(r),o=An(d)),s){s.adapter(o,d??t.render(r));return}a===void 0&&(a=document.head);const c=Zi(o,a);if(c!==null&&!i)return c;const u=c??pv(o);if(d===void 0&&(d=t.render(r)),u.textContent=d,c!==null)return c;if(l){const f=a.querySelector(`meta[name="${l}"]`);if(f)return a.insertBefore(u,f),Ys(t.els,u),u}return n?a.insertBefore(u,a.querySelector("style, link")):a.appendChild(u),Ys(t.els,u),u}function yv(e){return vv(this,this.instance,e)}function Sv(e={}){const{id:t,ssr:o,props:r,head:n=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return xv(this.instance,this,t,r,n,i,l,a,o)}function wv(e={}){const{id:t,parent:o}=e;Cv(this.instance,this,t,o)}const ti=function(e,t,o,r){return{instance:e,$:t,props:o,children:r,els:[],render:yv,mount:Sv,unmount:wv}},Pv=function(e,t,o,r){return Array.isArray(t)?ti(e,{$:null},null,t):Array.isArray(o)?ti(e,t,null,o):Array.isArray(r)?ti(e,t,o,r):ti(e,t,o,null)};function Tv(e={}){const t={c:((...o)=>Pv(t,...o)),use:(o,...r)=>o.install(t,...r),find:Zi,context:{},config:e};return t}function Ev(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return Zi(e)!==null}const Hn=".n-",_v="__",$v="--",Uu=Tv(),qu=sv({blockPrefix:Hn,elementPrefix:_v,modifierPrefix:$v});Uu.use(qu);const{c:D,find:W_}=Uu,{cB:oe,cE:re,cM:ne,cNotM:oa}=qu;function Ku(e){return D(({props:{bPrefix:t}})=>`${t||Hn}modal, ${t||Hn}drawer`,[e])}function Rv(e){return D(({props:{bPrefix:t}})=>`${t||Hn}popover`,[e])}function Yu(e){return D(({props:{bPrefix:t}})=>`&${t||Hn}modal`,e)}const N_=(...e)=>D(">",[oe(...e)]);function Ce(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}const Iv={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"},Heatmap:{less:"less",more:"more",monthFormat:"MMM",weekdayFormat:"eee"}},Xs={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"},Heatmap:{less:"少",more:"多",monthFormat:"MMM",weekdayFormat:"eeeeee"}};function Fr(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function lo(e){return(t,o)=>{const r=o?.context?String(o.context):"standalone";let n;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,a=o?.width?String(o.width):l;n=e.formattingValues[a]||e.formattingValues[l]}else{const l=e.defaultWidth,a=o?.width?String(o.width):e.defaultWidth;n=e.values[a]||e.values[l]}const i=e.argumentCallback?e.argumentCallback(t):t;return n[i]}}function ao(e){return(t,o={})=>{const r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;const l=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?Hv(a,u=>u.test(l)):Av(a,u=>u.test(l));let d;d=e.valueCallback?e.valueCallback(s):s,d=o.valueCallback?o.valueCallback(d):d;const c=t.slice(l.length);return{value:d,rest:c}}}function Av(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function Hv(e,t){for(let o=0;o{const r=t.match(e.matchPattern);if(!r)return null;const n=r[0],i=t.match(e.parsePattern);if(!i)return null;let l=e.valueCallback?e.valueCallback(i[0]):i[0];l=o.valueCallback?o.valueCallback(l):l;const a=t.slice(n.length);return{value:l,rest:a}}}const Zs=Symbol.for("constructDateFrom");function Zu(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Zs in e?e[Zs](t):e instanceof Date?new e.constructor(t):new Date(t)}function Mv(e,...t){const o=Zu.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}let zv={};function Fv(){return zv}function Bv(e,t){return Zu(t||e,e)}function Js(e,t){const o=Fv(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=Bv(e,t?.in),i=n.getDay(),l=(i{let r;const n=Dv[e];return typeof n=="string"?r=n:t===1?r=n.one:r=n.other.replace("{{count}}",t.toString()),o?.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r},Ov={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wv=(e,t,o,r)=>Ov[e],Nv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Gv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Uv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},qv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Kv=(e,t)=>{const o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Yv={ordinalNumber:Kv,era:lo({values:Nv,defaultWidth:"wide"}),quarter:lo({values:jv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lo({values:Vv,defaultWidth:"wide"}),day:lo({values:Gv,defaultWidth:"wide"}),dayPeriod:lo({values:Uv,defaultWidth:"wide",formattingValues:qv,defaultFormattingWidth:"wide"})},Xv=/^(\d+)(th|st|nd|rd)?/i,Zv=/\d+/i,Jv={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Qv={any:[/^b/i,/^(a|c)/i]},eC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tC={any:[/1/i,/2/i,/3/i,/4/i]},oC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},iC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},aC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},sC={ordinalNumber:Xu({matchPattern:Xv,parsePattern:Zv,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:Jv,defaultMatchWidth:"wide",parsePatterns:Qv,defaultParseWidth:"any"}),quarter:ao({matchPatterns:eC,defaultMatchWidth:"wide",parsePatterns:tC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:oC,defaultMatchWidth:"wide",parsePatterns:rC,defaultParseWidth:"any"}),day:ao({matchPatterns:nC,defaultMatchWidth:"wide",parsePatterns:iC,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:lC,defaultMatchWidth:"any",parsePatterns:aC,defaultParseWidth:"any"})},cC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fC={date:Fr({formats:cC,defaultWidth:"full"}),time:Fr({formats:dC,defaultWidth:"full"}),dateTime:Fr({formats:uC,defaultWidth:"full"})},hC={code:"en-US",formatDistance:Lv,formatLong:fC,formatRelative:Wv,localize:Yv,match:sC,options:{weekStartsOn:0,firstWeekContainsDate:1}},pC={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},mC=(e,t,o)=>{let r;const n=pC[e];return typeof n=="string"?r=n:t===1?r=n.one:r=n.other.replace("{{count}}",String(t)),o?.addSuffix?o.comparison&&o.comparison>0?r+"内":r+"前":r},gC={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},bC={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vC={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},CC={date:Fr({formats:gC,defaultWidth:"full"}),time:Fr({formats:bC,defaultWidth:"full"}),dateTime:Fr({formats:vC,defaultWidth:"full"})};function Qs(e,t,o){const r="eeee p";return kv(e,t,o)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}const xC={lastWeek:Qs,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Qs,other:"PP p"},yC=(e,t,o,r)=>{const n=xC[e];return typeof n=="function"?n(t,o,r):n},SC={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wC={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},PC={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},TC={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},EC={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},_C={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},$C=(e,t)=>{const o=Number(e);switch(t?.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},RC={ordinalNumber:$C,era:lo({values:SC,defaultWidth:"wide"}),quarter:lo({values:wC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lo({values:PC,defaultWidth:"wide"}),day:lo({values:TC,defaultWidth:"wide"}),dayPeriod:lo({values:EC,defaultWidth:"wide",formattingValues:_C,defaultFormattingWidth:"wide"})},IC=/^(第\s*)?\d+(日|时|分|秒)?/i,AC=/\d+/i,HC={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},MC={any:[/^(前)/i,/^(公元)/i]},zC={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},FC={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},BC={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i},kC={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^(一|1(?!\d))/i,/^(二|2)/i,/^(三|3)/i,/^(四|4)/i,/^(五|5)/i,/^(六|6)/i,/^(七|7)/i,/^(八|8)/i,/^(九|9)/i,/^(十(?!(一|二))|10)/i,/^(十一|11)/i,/^(十二|12)/i]},DC={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},LC={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},OC={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},WC={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},NC={ordinalNumber:Xu({matchPattern:IC,parsePattern:AC,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:HC,defaultMatchWidth:"wide",parsePatterns:MC,defaultParseWidth:"any"}),quarter:ao({matchPatterns:zC,defaultMatchWidth:"wide",parsePatterns:FC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:BC,defaultMatchWidth:"wide",parsePatterns:kC,defaultParseWidth:"any"}),day:ao({matchPatterns:DC,defaultMatchWidth:"wide",parsePatterns:LC,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:OC,defaultMatchWidth:"any",parsePatterns:WC,defaultParseWidth:"any"})},jC={code:"zh-CN",formatDistance:mC,formatLong:CC,formatRelative:yC,localize:RC,match:NC,options:{weekStartsOn:1,firstWeekContainsDate:4}},VC={name:"en-US",locale:hC},ec={name:"zh-CN",locale:jC};var Ju=typeof global=="object"&&global&&global.Object===Object&&global,GC=typeof self=="object"&&self&&self.Object===Object&&self,Nr=Ju||GC||Function("return this")(),Dr=Nr.Symbol,Qu=Object.prototype,UC=Qu.hasOwnProperty,qC=Qu.toString,on=Dr?Dr.toStringTag:void 0;function KC(e){var t=UC.call(e,on),o=e[on];try{e[on]=void 0;var r=!0}catch{}var n=qC.call(e);return r&&(t?e[on]=o:delete e[on]),n}var YC=Object.prototype,XC=YC.toString;function ZC(e){return XC.call(e)}var JC="[object Null]",QC="[object Undefined]",tc=Dr?Dr.toStringTag:void 0;function Vn(e){return e==null?e===void 0?QC:JC:tc&&tc in Object(e)?KC(e):ZC(e)}function jr(e){return e!=null&&typeof e=="object"}var ex="[object Symbol]";function tx(e){return typeof e=="symbol"||jr(e)&&Vn(e)==ex}function ox(e,t){for(var o=-1,r=e==null?0:e.length,n=Array(r);++o0){if(++t>=wx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _x(e){return function(){return e}}var Ri=(function(){try{var e=Fa(Object,"defineProperty");return e({},"",{}),e}catch{}})(),$x=Ri?function(e,t){return Ri(e,"toString",{configurable:!0,enumerable:!1,value:_x(t),writable:!0})}:tf,Rx=Ex($x),Ix=9007199254740991,Ax=/^(?:0|[1-9]\d*)$/;function of(e,t){var o=typeof e;return t=t??Ix,!!t&&(o=="number"||o!="symbol"&&Ax.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Dx}function ka(e){return e!=null&&rf(e.length)&&!za(e)}function Lx(e,t,o){if(!Sr(o))return!1;var r=typeof t;return(r=="number"?ka(o)&&of(t,o.length):r=="string"&&t in o)?Ji(o[t],e):!1}function Ox(e){return kx(function(t,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,l=n>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,l&&Lx(o[0],o[1],l)&&(i=n<3?void 0:i,n=1),t=Object(t);++r-1}function q0(e,t){var o=this.__data__,r=Qi(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function Ho(e){var t=-1,o=e==null?0:e.length;for(this.clear();++tn?0:n+t),o=o>n?n:o,o<0&&(o+=n),n=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(n);++r=r?e:ay(e,t,o)}var cy="\\ud800-\\udfff",dy="\\u0300-\\u036f",uy="\\ufe20-\\ufe2f",fy="\\u20d0-\\u20ff",hy=dy+uy+fy,py="\\ufe0e\\ufe0f",my="\\u200d",gy=RegExp("["+my+cy+hy+py+"]");function mf(e){return gy.test(e)}function by(e){return e.split("")}var gf="\\ud800-\\udfff",vy="\\u0300-\\u036f",Cy="\\ufe20-\\ufe2f",xy="\\u20d0-\\u20ff",yy=vy+Cy+xy,Sy="\\ufe0e\\ufe0f",wy="["+gf+"]",na="["+yy+"]",ia="\\ud83c[\\udffb-\\udfff]",Py="(?:"+na+"|"+ia+")",bf="[^"+gf+"]",vf="(?:\\ud83c[\\udde6-\\uddff]){2}",Cf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ty="\\u200d",xf=Py+"?",yf="["+Sy+"]?",Ey="(?:"+Ty+"(?:"+[bf,vf,Cf].join("|")+")"+yf+xf+")*",_y=yf+xf+Ey,$y="(?:"+[bf+na+"?",na,vf,Cf,wy].join("|")+")",Ry=RegExp(ia+"(?="+ia+")|"+$y+_y,"g");function Iy(e){return e.match(Ry)||[]}function Ay(e){return mf(e)?Iy(e):by(e)}function Hy(e){return function(t){t=ey(t);var o=mf(t)?Ay(t):void 0,r=o?o[0]:t.charAt(0),n=o?sy(o,1).join(""):t.slice(1);return r[e]()+n}}var My=Hy("toUpperCase");function zy(){this.__data__=new Ho,this.size=0}function Fy(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function By(e){return this.__data__.get(e)}function ky(e){return this.__data__.has(e)}var Dy=200;function Ly(e,t){var o=this.__data__;if(o instanceof Ho){var r=o.__data__;if(!ff||r.length{const{bordered:r}=e;return r!==void 0?r:o?.mergedBorderedRef.value??t.defaultBordered??!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:jd("n"),namespaceRef:X(()=>o?.mergedNamespaceRef.value)}}const Fn="naive-ui-style";var Zo={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"};const{fontSize:Zy,fontFamily:Jy,lineHeight:Qy}=Zo;var Pf=D("body",` + margin: 0; + font-size: ${Zy}; + font-family: ${Jy}; + line-height: ${Qy}; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +`,[D("input",` + font-family: inherit; + font-size: inherit; + `)]);const e1="@css-render/vue3-ssr";function t1(e,t){return``}function o1(e,t,o){const{styles:r,ids:n}=o;n.has(e)||r!==null&&(n.add(e),r.push(t1(e,t)))}const r1=typeof document<"u";function ol(){if(r1)return;const e=De(e1,null);if(e!==null)return{adapter:(t,o)=>o1(t,o,e),context:e}}function rl(e,t,o){if(!t)return;const r=ol(),n=De(Yo,null),i=()=>{const l=o.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:Fn,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:n?.styleMountTarget}),n?.preflightStyleDisabled||Pf.mount({id:"n-global",head:!0,anchorMetaName:Fn,ssr:r,parent:n?.styleMountTarget})};r?i():yr(i)}const Il=new WeakMap;function Ur(e){const t=Wr();if(t){Il.has(t)||Il.set(t,{});const o=Il.get(t);return o[e]||(o[e]=[])}else return[]}function te(e,t=1){let o=je,r=!1;return typeof e=="function"&&(r=!0,k(),o=ae,e=e()),Ro(e)?r?ae(mc(e)):mc(e):Array.isArray(e)?r?pe(Te,null,e.map(n=>te(()=>n)),-2):Pe(Te,null,e.slice()):e==null||typeof e=="boolean"?o(Ze):o(Nn,null,String(e),t)}function mc(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}const n1=e=>Array.isArray(e)?e.map(t=>te(t)):[te(e)],Tf=e=>e._n?e:so((...t)=>n1(e(...t))),Bn=e=>typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ro(e)?e:{default:so(()=>[te(()=>e)])},le=e=>mr(e)||null;function Da(e){return e.composedPath()[0]||null}function gc(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function i1(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function jo(e,t){const o=e.trim().split(/\s+/g),r={top:o[0]};switch(o.length){case 1:r.right=o[0],r.bottom=o[0],r.left=o[0];break;case 2:r.right=o[1],r.left=o[1],r.bottom=o[0];break;case 3:r.right=o[1],r.bottom=o[2],r.left=o[1];break;case 4:r.right=o[1],r.bottom=o[2],r.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function V_(e,t){const[o,r]=e.split(" ");return{row:o,col:r||o}}const bc={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function l1(e,t,o){t/=100,o/=100;let r=(n,i=(n+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function a1(e,t,o){t/=100,o/=100;let r=t*Math.min(o,1-o),n=(i,l=(i+e/30)%12)=>o-r*Math.max(Math.min(l-3,9-l,1),-1);return[n(0)*255,n(8)*255,n(4)*255]}const vo="^\\s*",Co="\\s*$",Xo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",zt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ar="([0-9A-Fa-f])",sr="([0-9A-Fa-f]{2})",Ef=new RegExp(`${vo}hsl\\s*\\(${zt},${Xo},${Xo}\\)${Co}`),_f=new RegExp(`${vo}hsv\\s*\\(${zt},${Xo},${Xo}\\)${Co}`),$f=new RegExp(`${vo}hsla\\s*\\(${zt},${Xo},${Xo},${zt}\\)${Co}`),Rf=new RegExp(`${vo}hsva\\s*\\(${zt},${Xo},${Xo},${zt}\\)${Co}`),s1=new RegExp(`${vo}rgb\\s*\\(${zt},${zt},${zt}\\)${Co}`),c1=new RegExp(`${vo}rgba\\s*\\(${zt},${zt},${zt},${zt}\\)${Co}`),d1=new RegExp(`${vo}#${ar}${ar}${ar}${Co}`),u1=new RegExp(`${vo}#${sr}${sr}${sr}${Co}`),f1=new RegExp(`${vo}#${ar}${ar}${ar}${ar}${Co}`),h1=new RegExp(`${vo}#${sr}${sr}${sr}${sr}${Co}`);function $t(e){return parseInt(e,16)}function p1(e){try{let t;if(t=$f.exec(e))return[Ii(t[1]),Vo(t[5]),Vo(t[9]),fr(t[13])];if(t=Ef.exec(e))return[Ii(t[1]),Vo(t[5]),Vo(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function m1(e){try{let t;if(t=Rf.exec(e))return[Ii(t[1]),Vo(t[5]),Vo(t[9]),fr(t[13])];if(t=_f.exec(e))return[Ii(t[1]),Vo(t[5]),Vo(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Io(e){try{let t;if(t=u1.exec(e))return[$t(t[1]),$t(t[2]),$t(t[3]),1];if(t=s1.exec(e))return[pt(t[1]),pt(t[5]),pt(t[9]),1];if(t=c1.exec(e))return[pt(t[1]),pt(t[5]),pt(t[9]),fr(t[13])];if(t=d1.exec(e))return[$t(t[1]+t[1]),$t(t[2]+t[2]),$t(t[3]+t[3]),1];if(t=h1.exec(e))return[$t(t[1]),$t(t[2]),$t(t[3]),fr($t(t[4])/255)];if(t=f1.exec(e))return[$t(t[1]+t[1]),$t(t[2]+t[2]),$t(t[3]+t[3]),fr($t(t[4]+t[4])/255)];if(e in bc)return Io(bc[e]);if(Ef.test(e)||$f.test(e)){const[o,r,n,i]=p1(e);return[...a1(o,r,n),i]}else if(_f.test(e)||Rf.test(e)){const[o,r,n,i]=m1(e);return[...l1(o,r,n),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function g1(e){return e>1?1:e<0?0:e}function sa(e,t,o,r){return`rgba(${pt(e)}, ${pt(t)}, ${pt(o)}, ${g1(r)})`}function Al(e,t,o,r,n){return pt((e*t*(1-r)+o*r)/n)}function Y(e,t){Array.isArray(e)||(e=Io(e)),Array.isArray(t)||(t=Io(t));const o=e[3],r=t[3],n=fr(o+r-o*r);return sa(Al(e[0],o,t[0],r,n),Al(e[1],o,t[1],r,n),Al(e[2],o,t[2],r,n),n)}function F(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:Io(e);return typeof t.alpha=="number"?sa(o,r,n,t.alpha):sa(o,r,n,i)}function Xe(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:Io(e),{lightness:l=1,alpha:a=1}=t;return b1([o*l,r*l,n*l,i*a])}function fr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ii(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Vo(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function b1(e){const[t,o,r]=e;return 3 in e?`rgba(${pt(t)}, ${pt(o)}, ${pt(r)}, ${fr(e[3])})`:`rgba(${pt(t)}, ${pt(o)}, ${pt(r)}, 1)`}function nl(e=8){return Math.random().toString(16).slice(2,2+e)}const Q={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},v1=Io(Q.neutralBase),If=Io(Q.neutralInvertBase),C1=`rgba(${If.slice(0,3).join(", ")}, `;function Ee(e){return`${C1+String(e)})`}function x1(e){const t=Array.from(If);return t[3]=Number(e),Y(v1,t)}const j={name:"common",...Zo,baseColor:Q.neutralBase,primaryColor:Q.primaryDefault,primaryColorHover:Q.primaryHover,primaryColorPressed:Q.primaryActive,primaryColorSuppl:Q.primarySuppl,infoColor:Q.infoDefault,infoColorHover:Q.infoHover,infoColorPressed:Q.infoActive,infoColorSuppl:Q.infoSuppl,successColor:Q.successDefault,successColorHover:Q.successHover,successColorPressed:Q.successActive,successColorSuppl:Q.successSuppl,warningColor:Q.warningDefault,warningColorHover:Q.warningHover,warningColorPressed:Q.warningActive,warningColorSuppl:Q.warningSuppl,errorColor:Q.errorDefault,errorColorHover:Q.errorHover,errorColorPressed:Q.errorActive,errorColorSuppl:Q.errorSuppl,textColorBase:Q.neutralTextBase,textColor1:Ee(Q.alpha1),textColor2:Ee(Q.alpha2),textColor3:Ee(Q.alpha3),textColorDisabled:Ee(Q.alpha4),placeholderColor:Ee(Q.alpha4),placeholderColorDisabled:Ee(Q.alpha5),iconColor:Ee(Q.alpha4),iconColorDisabled:Ee(Q.alpha5),iconColorHover:Ee(Number(Q.alpha4)*1.25),iconColorPressed:Ee(Number(Q.alpha4)*.8),opacity1:Q.alpha1,opacity2:Q.alpha2,opacity3:Q.alpha3,opacity4:Q.alpha4,opacity5:Q.alpha5,dividerColor:Ee(Q.alphaDivider),borderColor:Ee(Q.alphaBorder),closeIconColorHover:Ee(Number(Q.alphaClose)),closeIconColor:Ee(Number(Q.alphaClose)),closeIconColorPressed:Ee(Number(Q.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Ee(Q.alpha4),clearColorHover:Xe(Ee(Q.alpha4),{alpha:1.25}),clearColorPressed:Xe(Ee(Q.alpha4),{alpha:.8}),scrollbarColor:Ee(Q.alphaScrollbar),scrollbarColorHover:Ee(Q.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ee(Q.alphaProgressRail),railColor:Ee(Q.alphaRail),popoverColor:Q.neutralPopover,tableColor:Q.neutralCard,cardColor:Q.neutralCard,modalColor:Q.neutralModal,bodyColor:Q.neutralBody,tagColor:x1(Q.alphaTag),avatarColor:Ee(Q.alphaAvatar),invertedColor:Q.neutralBase,inputColor:Ee(Q.alphaInput),codeColor:Ee(Q.alphaCode),tabColor:Ee(Q.alphaTab),actionColor:Ee(Q.alphaAction),tableHeaderColor:Ee(Q.alphaAction),hoverColor:Ee(Q.alphaPending),tableColorHover:Ee(Q.alphaTablePending),tableColorStriped:Ee(Q.alphaTableStriped),pressedColor:Ee(Q.alphaPressed),opacityDisabled:Q.alphaDisabled,inputColorDisabled:Ee(Q.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"},me={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},y1=Io(me.neutralBase),Af=Io(me.neutralInvertBase),S1=`rgba(${Af.slice(0,3).join(", ")}, `;function vc(e){return`${S1+String(e)})`}function ut(e){const t=Array.from(Af);return t[3]=Number(e),Y(y1,t)}const V={name:"common",...Zo,baseColor:me.neutralBase,primaryColor:me.primaryDefault,primaryColorHover:me.primaryHover,primaryColorPressed:me.primaryActive,primaryColorSuppl:me.primarySuppl,infoColor:me.infoDefault,infoColorHover:me.infoHover,infoColorPressed:me.infoActive,infoColorSuppl:me.infoSuppl,successColor:me.successDefault,successColorHover:me.successHover,successColorPressed:me.successActive,successColorSuppl:me.successSuppl,warningColor:me.warningDefault,warningColorHover:me.warningHover,warningColorPressed:me.warningActive,warningColorSuppl:me.warningSuppl,errorColor:me.errorDefault,errorColorHover:me.errorHover,errorColorPressed:me.errorActive,errorColorSuppl:me.errorSuppl,textColorBase:me.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:ut(me.alpha4),placeholderColor:ut(me.alpha4),placeholderColorDisabled:ut(me.alpha5),iconColor:ut(me.alpha4),iconColorHover:Xe(ut(me.alpha4),{lightness:.75}),iconColorPressed:Xe(ut(me.alpha4),{lightness:.9}),iconColorDisabled:ut(me.alpha5),opacity1:me.alpha1,opacity2:me.alpha2,opacity3:me.alpha3,opacity4:me.alpha4,opacity5:me.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:ut(Number(me.alphaClose)),closeIconColorHover:ut(Number(me.alphaClose)),closeIconColorPressed:ut(Number(me.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:ut(me.alpha4),clearColorHover:Xe(ut(me.alpha4),{lightness:.75}),clearColorPressed:Xe(ut(me.alpha4),{lightness:.9}),scrollbarColor:vc(me.alphaScrollbar),scrollbarColorHover:vc(me.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ut(me.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:me.neutralPopover,tableColor:me.neutralCard,cardColor:me.neutralCard,modalColor:me.neutralModal,bodyColor:me.neutralBody,tagColor:"#eee",avatarColor:ut(me.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:ut(me.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:me.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"},w1={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function Hf(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return{...w1,height:r,width:n,borderRadius:i,color:t,colorHover:o}}const st={name:"Scrollbar",common:V,self:Hf},gt={name:"Scrollbar",common:j,self:Hf};var P1={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Mf(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s}=e;return{...P1,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:r}}const zo={name:"Empty",common:V,self:Mf},wr={name:"Empty",common:j,self:Mf};function Pr(e,t,o,r){o||Xy("useThemeClass","cssVarsRef is not passed");const n=De(Yo,null),i=n?.mergedThemeHashRef,l=n?.styleMountTarget,a=se(""),s=ol();let d;const c=`__${e}`,u=()=>{let f=c;const h=t?t.value:void 0,p=i?.value;p&&(f+=`-${p}`),h&&(f+=`-${h}`);const{themeOverrides:g,builtinThemeOverrides:b}=r;g&&(f+=`-${An(JSON.stringify(g))}`),b&&(f+=`-${An(JSON.stringify(b))}`),a.value=f,d=()=>{const C=o.value;let y="";for(const T in C)y+=`${T}: ${C[T]};`;D(`.${f}`,y).mount({id:f,ssr:s,parent:l}),d=void 0}};return Gi(()=>{u()}),{themeClass:a,onRender:()=>{d?.()}}}function Pt(e,t,o,r,n,i){const l=ol(),a=De(Yo,null);if(o){const s=()=>{const d=i?.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Fn,ssr:l,parent:a?.styleMountTarget}),a?.preflightStyleDisabled||Pf.mount({id:"n-global",head:!0,anchorMetaName:Fn,ssr:l,parent:a?.styleMountTarget})};l?s():yr(s)}return X(()=>{const{theme:{common:s,self:d,peers:c={}}={},themeOverrides:u={},builtinThemeOverrides:f={}}=n,{common:h,peers:p}=u,{common:g=void 0,[e]:{common:b=void 0,self:C=void 0,peers:y={}}={}}=a?.mergedThemeRef.value||{},{common:T=void 0,[e]:P={}}=a?.mergedThemeOverridesRef.value||{},{common:A,peers:M={}}=P,v=dn({},s||b||g||r.common,T,A,h);return{common:v,self:dn((d||C||r.self)?.(v),f,P,u),peers:dn({},r.peers,y,c),peerOverrides:dn({},f.peers,M,p)}})}Pt.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var T1=oe("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[D("svg",` + height: 1em; + width: 1em; + `)]);const E1=["onClick","onMousedown","onMouseup","role","aria-label","aria-hidden","aria-disabled"];var il=Ae({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){rl("-base-icon",T1,uo(e,"clsPrefix"))},render(){return k(),pe("i",{class:le(`${this.clsPrefix}-base-icon`),onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},[te(()=>this.$slots.default?.())],42,E1)}}),_1={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function zf(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:l,textColorDisabled:a,primaryColor:s,opacityDisabled:d,hoverColor:c,fontSizeTiny:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:g,heightTiny:b,heightSmall:C,heightMedium:y,heightLarge:T,heightHuge:P}=e;return{..._1,optionFontSizeTiny:u,optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:b,optionHeightSmall:C,optionHeightMedium:y,optionHeightLarge:T,optionHeightHuge:P,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:l,optionTextColorDisabled:a,optionTextColorActive:s,optionOpacityDisabled:d,optionCheckColor:s,optionColorPending:c,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:c,actionTextColor:i,loadingColor:s}}const Gn={name:"InternalSelectMenu",common:V,peers:{Scrollbar:st,Empty:zo},self:zf},Un={name:"InternalSelectMenu",common:j,peers:{Scrollbar:gt,Empty:wr},self:zf};var $1={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Ff(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:l}=e;return{...$1,fontSize:i,borderRadius:n,color:o,dividerColor:l,textColor:r,boxShadow:t}}const Tr={name:"Popover",common:V,peers:{Scrollbar:st},self:Ff},Er={name:"Popover",common:j,peers:{Scrollbar:gt},self:Ff},R1="n-drawer-body",G_="n-drawer",I1="n-modal-body",A1="n-modal-provider",Bf="n-modal",H1="n-popover-body";function ui(e){return e.composedPath()[0]}const M1={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function z1(e,t,o){if(e==="mousemoveoutside"){const r=n=>{t.contains(ui(n))||o(n)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const n=l=>{r=!t.contains(ui(l))},i=l=>{r&&(t.contains(ui(l))||o(l))};return{mousedown:n,mouseup:i,touchstart:n,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function kf(e,t,o){const r=M1[e];let n=r.get(t);n===void 0&&r.set(t,n=new WeakMap);let i=n.get(o);return i===void 0&&n.set(o,i=z1(e,t,o)),i}function F1(e,t,o,r){if(e==="mousemoveoutside"||e==="clickoutside"){const n=kf(e,t,o);return Object.keys(n).forEach(i=>{St(i,document,n[i],r)}),!0}return!1}function B1(e,t,o,r){if(e==="mousemoveoutside"||e==="clickoutside"){const n=kf(e,t,o);return Object.keys(n).forEach(i=>{rt(i,document,n[i],r)}),!0}return!1}function k1(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function n(v,w,_){const H=v[w];return v[w]=function(){return _.apply(v,arguments),H.apply(v,arguments)},v}function i(v,w){v[w]=Event.prototype[w]}const l=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var v;return(v=l.get(this))!==null&&v!==void 0?v:null}function d(v,w){a!==void 0&&Object.defineProperty(v,"currentTarget",{configurable:!0,enumerable:!0,get:w??a.get})}const c={bubble:{},capture:{}},u={};function f(){const v=function(w){const{type:_,eventPhase:H,bubbles:O}=w,$=ui(w);if(H===2)return;const K=H===1?"capture":"bubble";let ie=$;const be=[];for(;ie===null&&(ie=window),be.push(ie),ie!==window;)ie=ie.parentNode||null;const ce=c.capture[_],J=c.bubble[_];if(n(w,"stopPropagation",o),n(w,"stopImmediatePropagation",r),d(w,s),K==="capture"){if(ce===void 0)return;for(let ue=be.length-1;ue>=0&&!e.has(w);--ue){const He=be[ue],$e=ce.get(He);if($e!==void 0){l.set(w,He);for(const Le of $e){if(t.has(w))break;Le(w)}}if(ue===0&&!O&&J!==void 0){const Le=J.get(He);if(Le!==void 0)for(const ke of Le){if(t.has(w))break;ke(w)}}}}else if(K==="bubble"){if(J===void 0)return;for(let ue=0;ue$(w))};return v.displayName="evtdUnifiedWindowEventHandler",v}const p=f(),g=h();function b(v,w){const _=c[v];return _[w]===void 0&&(_[w]=new Map,window.addEventListener(w,p,v==="capture")),_[w]}function C(v){return u[v]===void 0&&(u[v]=new Set,window.addEventListener(v,g)),u[v]}function y(v,w){let _=v.get(w);return _===void 0&&v.set(w,_=new Set),_}function T(v,w,_,H){const O=c[w][_];if(O!==void 0){const $=O.get(v);if($!==void 0&&$.has(H))return!0}return!1}function P(v,w){const _=u[v];return!!(_!==void 0&&_.has(w))}function A(v,w,_,H){let O;if(typeof H=="object"&&H.once===!0?O=ce=>{M(v,w,O,H),_(ce)}:O=_,F1(v,w,O,H))return;const K=H===!0||typeof H=="object"&&H.capture===!0?"capture":"bubble",ie=b(K,v),be=y(ie,w);if(be.has(O)||be.add(O),w===window){const ce=C(v);ce.has(O)||ce.add(O)}}function M(v,w,_,H){if(B1(v,w,_,H))return;const $=H===!0||typeof H=="object"&&H.capture===!0,K=$?"capture":"bubble",ie=b(K,v),be=y(ie,w);if(w===window&&!T(w,$?"bubble":"capture",v,_)&&P(v,_)){const J=u[v];J.delete(_),J.size===0&&(window.removeEventListener(v,g),u[v]=void 0)}be.has(_)&&be.delete(_),be.size===0&&ie.delete(w),ie.size===0&&(window.removeEventListener(v,p,K==="capture"),c[K][v]=void 0)}return{on:A,off:M}}const{on:St,off:rt}=k1();function D1(e){const t=se(!!e.value);if(t.value)return po(t);const o=Nt(e,r=>{r&&(t.value=!0,o())});return po(t)}function ca(e){const t=X(e),o=se(t.value);return Nt(t,r=>{o.value=r}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(r){e.set(r)}}}function Df(){return Wr()!==null}const Lf=typeof window<"u",un=se(null);function Cc(e){if(e.clientX>0||e.clientY>0)un.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:r,width:n,height:i}=t.getBoundingClientRect();o>0||r>0?un.value={x:o+n/2,y:r+i/2}:un.value={x:0,y:0}}else un.value=null}}let oi=0,xc=!0;function Of(){if(!Lf)return po(se(null));oi===0&&St("click",document,Cc,!0);const e=()=>{oi+=1};return xc&&(xc=Df())?(yr(e),Gt(()=>{oi-=1,oi===0&&rt("click",document,Cc,!0)})):e(),po(un)}const L1=se(void 0);let ri=0;function yc(){L1.value=Date.now()}let Sc=!0;function Wf(e){if(!Lf)return po(se(!1));const t=se(!1);let o=null;function r(){o!==null&&window.clearTimeout(o)}function n(){r(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}ri===0&&St("click",window,yc,!0);const i=()=>{ri+=1,St("click",window,n,!0)};return Sc&&(Sc=Df())?(yr(i),Gt(()=>{ri-=1,ri===0&&rt("click",window,yc,!0),rt("click",window,n,!0),r()})):i(),po(t)}function Nf(){const e=se(!1);return bo(()=>{e.value=!0}),po(e)}const O1=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function W1(){return O1}function cr(e,...t){if(Array.isArray(e))e.forEach(o=>cr(o,...t));else return e(...t)}function Ai(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push($n(String(r)));return}if(Array.isArray(r)){Ai(r,t,o);return}if(r.type===Te){if(r.children===null)return;Array.isArray(r.children)&&Ai(r.children,t,o)}else{if(r.type===Ze&&t)return;o.push(r)}}}),o}function U_(e,t="default",o=void 0){const r=e[t];if(!r)return zn("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=Ai(r(o));return n.length===1?n[0]:(zn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function N1(e,t,o){if(!t)return null;const r=Ai(t(o));return r.length===1?r[0]:(zn("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function kn(e,t=[],o){const r={};return t.forEach(n=>{r[n]=e[n]}),Object.assign(r,o)}function qt(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!qt(t.children)):!0)?e:null}function wc(e,t){return e&&qt(e())||t()}function q_(e,t,o){return e&&qt(e(t))||o(t)}function Kt(e,t){return t(e&&qt(e())||null)}function j1(e){return!(e&&qt(e()))}function qr(e,t,o){if(!t)return;const r=ol(),n=X(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=De(Yo,null),l=()=>{Gi(()=>{const{value:a}=o,s=`${a}${e}Rtl`;if(Ev(s,r))return;const{value:d}=n;d&&d.style.mount({id:s,head:!0,anchorMetaName:Fn,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:i?.styleMountTarget})})};return r?l():yr(l),n}function V1(e){const t={isDeactivated:!1};let o=!1;return iu(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),lu(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function Pc(e){const{left:t,right:o,top:r,bottom:n}=jo(e);return`${r} ${t} ${n} ${o}`}const Tc=Ae({render(){return this.$slots.default?.()}}),{cubicBezierEaseInOut:Ec}=Zo;function jf({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:r=Ec,leaveCubicBezier:n=Ec}={}){return[D(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),D(`&.${e}-transition-leave-active`,{transition:`all ${o} ${n}!important`}),D(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),D(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var G1=oe("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[D(">",[oe("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[D("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),D(">",[oe("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),D(">, +",[oe("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + background: var(--n-scrollbar-rail-color); + -webkit-user-select: none; + `,[ne("horizontal",` + height: var(--n-scrollbar-height); + `,[D(">",[re("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),ne("horizontal--top",` + top: var(--n-scrollbar-rail-top-horizontal-top); + right: var(--n-scrollbar-rail-right-horizontal-top); + bottom: var(--n-scrollbar-rail-bottom-horizontal-top); + left: var(--n-scrollbar-rail-left-horizontal-top); + `),ne("horizontal--bottom",` + top: var(--n-scrollbar-rail-top-horizontal-bottom); + right: var(--n-scrollbar-rail-right-horizontal-bottom); + bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom); + left: var(--n-scrollbar-rail-left-horizontal-bottom); + `),ne("vertical",` + width: var(--n-scrollbar-width); + `,[D(">",[re("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),ne("vertical--left",` + top: var(--n-scrollbar-rail-top-vertical-left); + right: var(--n-scrollbar-rail-right-vertical-left); + bottom: var(--n-scrollbar-rail-bottom-vertical-left); + left: var(--n-scrollbar-rail-left-vertical-left); + `),ne("vertical--right",` + top: var(--n-scrollbar-rail-top-vertical-right); + right: var(--n-scrollbar-rail-right-vertical-right); + bottom: var(--n-scrollbar-rail-bottom-vertical-right); + left: var(--n-scrollbar-rail-left-vertical-right); + `),ne("disabled",[D(">",[re("scrollbar","pointer-events: none;")])]),D(">",[re("scrollbar",` + z-index: 1; + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[jf(),D("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]);function _c(e,t,o="default"){const r=t[o];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return r()}function da(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push($n(String(r)));return}if(Array.isArray(r)){da(r,t,o);return}if(r.type===Te){if(r.children===null)return;Array.isArray(r.children)&&da(r.children,t,o)}else(r.type!==Ze||!t)&&o.push(r)}}),o}function K_(e,t,o="default"){const r=t[o];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const n=da(r());if(n.length===1)return n[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}const $r="@@coContext",U1={mounted(e,{value:t,modifiers:o}){e[$r]={handler:void 0},typeof t=="function"&&(e[$r].handler=t,St("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const r=e[$r];typeof t=="function"?r.handler?r.handler!==t&&(rt("clickoutside",e,r.handler,{capture:o.capture}),r.handler=t,St("clickoutside",e,t,{capture:o.capture})):(e[$r].handler=t,St("clickoutside",e,t,{capture:o.capture})):r.handler&&(rt("clickoutside",e,r.handler,{capture:o.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[$r];o&&rt("clickoutside",e,o,{capture:t.capture}),e[$r].handler=void 0}};function q1(e,t){console.error(`[vdirs/${e}]: ${t}`)}class K1{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:r}=this;if(o!==void 0){t.style.zIndex=`${o}`,r.delete(t);return}const{nextZIndex:n}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${n}`,r.set(t,n),this.nextZIndex=n+1,this.squashState())}unregister(t,o){const{elementZIndex:r}=this;r.has(t)?r.delete(t):o===void 0&&q1("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,r)=>o[1]-r[1]),this.nextZIndex=2e3,t.forEach(o=>{const r=o[0],n=this.nextZIndex++;`${n}`!==r.style.zIndex&&(r.style.zIndex=`${n}`)})}}const Hl=new K1,Rr="@@ziContext",Y1={mounted(e,t){const{value:o={}}=t,{zIndex:r,enabled:n}=o;e[Rr]={enabled:!!n,initialized:!1},n&&(Hl.ensureZIndex(e,r),e[Rr].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:r,enabled:n}=o,i=e[Rr].enabled;n&&!i&&(Hl.ensureZIndex(e,r),e[Rr].initialized=!0),e[Rr].enabled=!!n},unmounted(e,t){if(!e[Rr].initialized)return;const{value:o={}}=t,{zIndex:r}=o;Hl.unregister(e,r)}};function $c(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Rc(e){var t;return typeof e=="string"?document.querySelector(e):(t=e())!==null&&t!==void 0?t:null}const X1=Ae({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:D1(uo(e,"show")),mergedTo:X(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?_c("lazy-teleport",this.$slots):Rt(_a,{disabled:this.disabled,to:this.mergedTo},_c("lazy-teleport",this.$slots)):null}});var hr=[],Z1=function(){return hr.some(function(e){return e.activeTargets.length>0})},J1=function(){return hr.some(function(e){return e.skippedTargets.length>0})},Ic="ResizeObserver loop completed with undelivered notifications.",Q1=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ic}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ic),window.dispatchEvent(e)},Dn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Dn||(Dn={}));var pr=function(e){return Object.freeze(e)},eS=(function(){function e(t,o){this.inlineSize=t,this.blockSize=o,pr(this)}return e})(),Vf=(function(){function e(t,o,r,n){return this.x=t,this.y=o,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pr(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,r=t.y,n=t.top,i=t.right,l=t.bottom,a=t.left,s=t.width,d=t.height;return{x:o,y:r,top:n,right:i,bottom:l,left:a,width:s,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),La=function(e){return e instanceof SVGElement&&"getBBox"in e},Gf=function(e){if(La(e)){var t=e.getBBox(),o=t.width,r=t.height;return!o&&!r}var n=e,i=n.offsetWidth,l=n.offsetHeight;return!(i||l||e.getClientRects().length)},Ac=function(e){var t;if(e instanceof Element)return!0;var o=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},tS=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Cn=typeof window<"u"?window:{},ni=new WeakMap,Hc=/auto|scroll/,oS=/^tb|vertical/,rS=/msie|trident/i.test(Cn.navigator&&Cn.navigator.userAgent),Qt=function(e){return parseFloat(e||"0")},Br=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new eS((o?t:e)||0,(o?e:t)||0)},Mc=pr({devicePixelContentBoxSize:Br(),borderBoxSize:Br(),contentBoxSize:Br(),contentRect:new Vf(0,0,0,0)}),Uf=function(e,t){if(t===void 0&&(t=!1),ni.has(e)&&!t)return ni.get(e);if(Gf(e))return ni.set(e,Mc),Mc;var o=getComputedStyle(e),r=La(e)&&e.ownerSVGElement&&e.getBBox(),n=!rS&&o.boxSizing==="border-box",i=oS.test(o.writingMode||""),l=!r&&Hc.test(o.overflowY||""),a=!r&&Hc.test(o.overflowX||""),s=r?0:Qt(o.paddingTop),d=r?0:Qt(o.paddingRight),c=r?0:Qt(o.paddingBottom),u=r?0:Qt(o.paddingLeft),f=r?0:Qt(o.borderTopWidth),h=r?0:Qt(o.borderRightWidth),p=r?0:Qt(o.borderBottomWidth),g=r?0:Qt(o.borderLeftWidth),b=u+d,C=s+c,y=g+h,T=f+p,P=a?e.offsetHeight-T-e.clientHeight:0,A=l?e.offsetWidth-y-e.clientWidth:0,M=n?b+y:0,v=n?C+T:0,w=r?r.width:Qt(o.width)-M-A,_=r?r.height:Qt(o.height)-v-P,H=w+b+A+y,O=_+C+P+T,$=pr({devicePixelContentBoxSize:Br(Math.round(w*devicePixelRatio),Math.round(_*devicePixelRatio),i),borderBoxSize:Br(H,O,i),contentBoxSize:Br(w,_,i),contentRect:new Vf(u,s,w,_)});return ni.set(e,$),$},qf=function(e,t,o){var r=Uf(e,o),n=r.borderBoxSize,i=r.contentBoxSize,l=r.devicePixelContentBoxSize;switch(t){case Dn.DEVICE_PIXEL_CONTENT_BOX:return l;case Dn.BORDER_BOX:return n;default:return i}},nS=(function(){function e(t){var o=Uf(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=pr([o.borderBoxSize]),this.contentBoxSize=pr([o.contentBoxSize]),this.devicePixelContentBoxSize=pr([o.devicePixelContentBoxSize])}return e})(),Kf=function(e){if(Gf(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},iS=function(){var e=1/0,t=[];hr.forEach(function(l){if(l.activeTargets.length!==0){var a=[];l.activeTargets.forEach(function(d){var c=new nS(d.target),u=Kf(d.target);a.push(c),d.lastReportedSize=qf(d.target,d.observedBox),ue?o.activeTargets.push(n):o.skippedTargets.push(n))})})},lS=function(){var e=0;for(zc(e);Z1();)e=iS(),zc(e);return J1()&&Q1(),e>0},Ml,Yf=[],aS=function(){return Yf.splice(0).forEach(function(e){return e()})},sS=function(e){if(!Ml){var t=0,o=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return aS()}).observe(o,r),Ml=function(){o.textContent="".concat(t?t--:t++)}}Yf.push(e),Ml()},cS=function(e){sS(function(){requestAnimationFrame(e)})},fi=0,dS=function(){return!!fi},uS=250,fS={attributes:!0,characterData:!0,childList:!0,subtree:!0},Fc=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bc=function(e){return e===void 0&&(e=0),Date.now()+e},zl=!1,hS=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=uS),!zl){zl=!0;var r=Bc(t);cS(function(){var n=!1;try{n=lS()}finally{if(zl=!1,t=r-Bc(),!dS())return;n?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,fS)};document.body?o():Cn.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Fc.forEach(function(o){return Cn.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Fc.forEach(function(o){return Cn.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e})(),ua=new hS,kc=function(e){!fi&&e>0&&ua.start(),fi+=e,!fi&&ua.stop()},pS=function(e){return!La(e)&&!tS(e)&&getComputedStyle(e).display==="inline"},mS=(function(){function e(t,o){this.target=t,this.observedBox=o||Dn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=qf(this.target,this.observedBox,!0);return pS(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),gS=(function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e})(),ii=new WeakMap,Dc=function(e,t){for(var o=0;o=0&&(i&&hr.splice(hr.indexOf(r),1),r.observationTargets.splice(n,1),kc(-1))},e.disconnect=function(t){var o=this,r=ii.get(t);r.observationTargets.slice().forEach(function(n){return o.unobserve(t,n.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),bS=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");li.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ac(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");li.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ac(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");li.unobserve(this,t)},e.prototype.disconnect=function(){li.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();class vS{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||bS)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const r=this.elHandlersMap.get(o.target);r!==void 0&&r(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Lc=new vS,Oc=Ae({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=Wr().proxy;function r(n){const{onResize:i}=e;i!==void 0&&i(n)}bo(()=>{const n=o.$el;if(n===void 0){$c("resize-observer","$el does not exist.");return}if(n.nextElementSibling!==n.nextSibling&&n.nodeType===3&&n.nodeValue!==""){$c("resize-observer","$el can not be observed (it may be a text node).");return}n.nextElementSibling!==null&&(Lc.registerHandler(n.nextElementSibling,r),t=!0)}),Gt(()=>{t&&Lc.unregisterHandler(o.$el.nextElementSibling)})},render(){return zg(this.$slots,"default")}});function Xf(e){return e instanceof HTMLElement}function Zf(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(Xf(o)&&(Qf(o)||Jf(o)))return!0}return!1}function Qf(e){if(!CS(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function CS(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"SELECT":case"TEXTAREA":return!0;default:return!1}}let rn=[];const xS=Ae({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=nl(),o=se(null),r=se(null);let n=!1,i=!1;const l=typeof document>"u"?null:document.activeElement;function a(){return rn[rn.length-1]===t}function s(b){var C;b.code==="Escape"&&a()&&((C=e.onEsc)===null||C===void 0||C.call(e,b))}bo(()=>{Nt(()=>e.active,b=>{b?(u(),St("keydown",document,s)):(rt("keydown",document,s),n&&f())},{immediate:!0})}),Gt(()=>{rt("keydown",document,s),n&&f()});function d(b){if(!i&&a()){const C=c();if(C===null||C.contains(Da(b)))return;h("first")}}function c(){const b=o.value;if(b===null)return null;let C=b;for(;C=C.nextSibling,!(C===null||C instanceof Element&&C.tagName==="DIV"););return C}function u(){var b;if(!e.disabled){if(rn.push(t),e.autoFocus){const{initialFocusTo:C}=e;C===void 0?h("first"):(b=Rc(C))===null||b===void 0||b.focus({preventScroll:!0})}n=!0,document.addEventListener("focus",d,!0)}}function f(){var b;if(e.disabled||(document.removeEventListener("focus",d,!0),rn=rn.filter(y=>y!==t),a()))return;const{finalFocusTo:C}=e;C!==void 0?(b=Rc(C))===null||b===void 0||b.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(i=!0,l.focus({preventScroll:!0}),i=!1)}function h(b){if(a()&&e.active){const C=o.value,y=r.value;if(C!==null&&y!==null){const T=c();if(T==null||T===y){i=!0,C.focus({preventScroll:!0}),i=!1;return}i=!0;const P=b==="first"?Zf(T):Jf(T);i=!1,P||(i=!0,C.focus({preventScroll:!0}),i=!1)}}}function p(b){if(i)return;const C=c();C!==null&&(b.relatedTarget!==null&&C.contains(b.relatedTarget)?h("last"):h("first"))}function g(b){i||(b.relatedTarget!==null&&b.relatedTarget===o.value?h("last"):h("first"))}return{focusableStartRef:o,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return Rt(Te,null,[Rt("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),Rt("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}}),yS=["onMousedown"],SS=["onScroll","onWheel"],wS=["onMousedown"],PS={...Pt.props,duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,internalExposeWidthCssVar:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}},ll=Ae({name:"Scrollbar",props:PS,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Mo(e),n=qr("Scrollbar",r,t),i=se(null),l=se(null),a=se(null),s=se(null),d=se(null),c=se(null),u=se(null),f=se(null),h=se(null),p=se(null),g=se(null),b=se(0),C=se(0),y=se(!1),T=se(!1);let P=!1,A=!1,M,v,w=0,_=0,H=0,O=0;const $=W1(),K=Pt("Scrollbar","-scrollbar",G1,st,e,t),ie=X(()=>{const{value:N}=f,{value:he}=c,{value:xe}=p;return N===null||he===null||xe===null?0:Math.min(N,xe*N/he+gc(K.value.self.width)*1.5)}),be=X(()=>`${ie.value}px`),ce=X(()=>{const{value:N}=h,{value:he}=u,{value:xe}=g;return N===null||he===null||xe===null?0:xe*N/he+gc(K.value.self.height)*1.5}),J=X(()=>`${ce.value}px`),ue=X(()=>{const{value:N}=f,{value:he}=b,{value:xe}=c,{value:Ue}=p;if(N===null||xe===null||Ue===null)return 0;{const Ye=xe-N;return Ye?he/Ye*(Ue-ie.value):0}}),He=X(()=>`${ue.value}px`),$e=X(()=>{const{value:N}=h,{value:he}=C,{value:xe}=u,{value:Ue}=g;if(N===null||xe===null||Ue===null)return 0;{const Ye=xe-N;return Ye?he/Ye*(Ue-ce.value):0}}),Le=X(()=>`${$e.value}px`),ke=X(()=>{const{value:N}=f,{value:he}=c;return N!==null&&he!==null&&he>N}),nt=X(()=>{const{value:N}=h,{value:he}=u;return N!==null&&he!==null&&he>N}),Je=X(()=>{const{trigger:N}=e;return N==="none"||y.value}),vt=X(()=>{const{trigger:N}=e;return N==="none"||T.value}),Se=X(()=>{const{container:N}=e;return N?N():l.value}),z=X(()=>{const{content:N}=e;return N?N():a.value}),ee=(N,he)=>{if(!e.scrollable)return;if(typeof N=="number"){S(N,he??0,0,!1,"auto");return}const{left:xe,top:Ue,index:Ye,elSize:_t,position:et,behavior:dt,el:xo,debounce:Zr=!0}=N;(xe!==void 0||Ue!==void 0)&&S(xe??0,Ue??0,0,!1,dt),xo!==void 0?S(0,xo.offsetTop,xo.offsetHeight,Zr,dt):Ye!==void 0&&_t!==void 0?S(0,Ye*_t,_t,Zr,dt):et==="bottom"?S(0,Number.MAX_SAFE_INTEGER,0,!1,dt):et==="top"&&S(0,0,0,!1,dt)},L=V1(()=>{e.container||ee({top:b.value,left:C.value})}),fe=()=>{L.isDeactivated||we()},m=N=>{if(L.isDeactivated)return;const{onResize:he}=e;he&&he(N),we()},x=(N,he)=>{if(!e.scrollable)return;const{value:xe}=Se;xe&&(typeof N=="object"?xe.scrollBy(N):xe.scrollBy(N,he||0))};function S(N,he,xe,Ue,Ye){const{value:_t}=Se;if(_t){if(Ue){const{scrollTop:et,offsetHeight:dt}=_t;if(he>et){he+xe<=et+dt||_t.scrollTo({left:N,top:he+xe-dt,behavior:Ye});return}}_t.scrollTo({left:N,top:he,behavior:Ye})}}function E(){G(),I(),we()}function R(){B()}function B(){W(),U()}function W(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{T.value=!1},e.duration)}function U(){M!==void 0&&window.clearTimeout(M),M=window.setTimeout(()=>{y.value=!1},e.duration)}function G(){M!==void 0&&window.clearTimeout(M),y.value=!0}function I(){v!==void 0&&window.clearTimeout(v),T.value=!0}function Z(N){const{onScroll:he}=e;he&&he(N),q()}function q(){const{value:N}=Se;N&&(b.value=N.scrollTop,C.value=N.scrollLeft*(n?.value?-1:1))}function de(){const{value:N}=z;N&&(c.value=N.offsetHeight,u.value=N.offsetWidth);const{value:he}=Se;he&&(f.value=he.offsetHeight,h.value=he.offsetWidth);const{value:xe}=d,{value:Ue}=s;xe&&(g.value=xe.offsetWidth),Ue&&(p.value=Ue.offsetHeight)}function ve(){const{value:N}=Se;N&&(b.value=N.scrollTop,C.value=N.scrollLeft*(n?.value?-1:1),f.value=N.offsetHeight,h.value=N.offsetWidth,c.value=N.scrollHeight,u.value=N.scrollWidth);const{value:he}=d,{value:xe}=s;he&&(g.value=he.offsetWidth),xe&&(p.value=xe.offsetHeight)}function we(){e.scrollable&&(e.useUnifiedContainer?ve():(de(),q()))}function Me(N){return!i.value?.contains(Da(N))}function ze(N){N.preventDefault(),N.stopPropagation(),A=!0,St("mousemove",window,Ge,!0),St("mouseup",window,Qe,!0),_=C.value,H=n?.value?window.innerWidth-N.clientX:N.clientX}function Ge(N){if(!A)return;M!==void 0&&window.clearTimeout(M),v!==void 0&&window.clearTimeout(v);const{value:he}=h,{value:xe}=u,{value:Ue}=ce;if(he===null||xe===null)return;const Ye=(n?.value?window.innerWidth-N.clientX-H:N.clientX-H)*(xe-he)/(he-Ue),_t=xe-he;let et=_+Ye;et=Math.min(_t,et),et=Math.max(et,0);const{value:dt}=Se;if(dt){dt.scrollLeft=et*(n?.value?-1:1);const{internalOnUpdateScrollLeft:xo}=e;xo&&xo(et)}}function Qe(N){N.preventDefault(),N.stopPropagation(),rt("mousemove",window,Ge,!0),rt("mouseup",window,Qe,!0),A=!1,we(),Me(N)&&B()}function It(N){N.preventDefault(),N.stopPropagation(),P=!0,St("mousemove",window,Et,!0),St("mouseup",window,At,!0),w=b.value,O=N.clientY}function Et(N){if(!P)return;M!==void 0&&window.clearTimeout(M),v!==void 0&&window.clearTimeout(v);const{value:he}=f,{value:xe}=c,{value:Ue}=ie;if(he===null||xe===null)return;const Ye=(N.clientY-O)*(xe-he)/(he-Ue),_t=xe-he;let et=w+Ye;et=Math.min(_t,et),et=Math.max(et,0);const{value:dt}=Se;dt&&(dt.scrollTop=et)}function At(N){N.preventDefault(),N.stopPropagation(),rt("mousemove",window,Et,!0),rt("mouseup",window,At,!0),P=!1,we(),Me(N)&&B()}Gi(()=>{const{value:N}=nt,{value:he}=ke,{value:xe}=t,{value:Ue}=d,{value:Ye}=s;Ue&&(N?Ue.classList.remove(`${xe}-scrollbar-rail--disabled`):Ue.classList.add(`${xe}-scrollbar-rail--disabled`)),Ye&&(he?Ye.classList.remove(`${xe}-scrollbar-rail--disabled`):Ye.classList.add(`${xe}-scrollbar-rail--disabled`))}),bo(()=>{e.container||we()}),Gt(()=>{M!==void 0&&window.clearTimeout(M),v!==void 0&&window.clearTimeout(v),rt("mousemove",window,Et,!0),rt("mouseup",window,At,!0)});const Xr=X(()=>{const{common:{cubicBezierEaseInOut:N},self:{color:he,colorHover:xe,height:Ue,width:Ye,borderRadius:_t,railInsetHorizontalTop:et,railInsetHorizontalBottom:dt,railInsetVerticalRight:xo,railInsetVerticalLeft:Zr,railColor:cm}}=K.value,{top:dm,right:um,bottom:fm,left:hm}=jo(et),{top:pm,right:mm,bottom:gm,left:bm}=jo(dt),{top:vm,right:Cm,bottom:xm,left:ym}=jo(n?.value?Pc(xo):xo),{top:Sm,right:wm,bottom:Pm,left:Tm}=jo(n?.value?Pc(Zr):Zr);return{"--n-scrollbar-bezier":N,"--n-scrollbar-color":he,"--n-scrollbar-color-hover":xe,"--n-scrollbar-border-radius":_t,"--n-scrollbar-width":Ye,"--n-scrollbar-height":Ue,"--n-scrollbar-rail-top-horizontal-top":dm,"--n-scrollbar-rail-right-horizontal-top":um,"--n-scrollbar-rail-bottom-horizontal-top":fm,"--n-scrollbar-rail-left-horizontal-top":hm,"--n-scrollbar-rail-top-horizontal-bottom":pm,"--n-scrollbar-rail-right-horizontal-bottom":mm,"--n-scrollbar-rail-bottom-horizontal-bottom":gm,"--n-scrollbar-rail-left-horizontal-bottom":bm,"--n-scrollbar-rail-top-vertical-right":vm,"--n-scrollbar-rail-right-vertical-right":Cm,"--n-scrollbar-rail-bottom-vertical-right":xm,"--n-scrollbar-rail-left-vertical-right":ym,"--n-scrollbar-rail-top-vertical-left":Sm,"--n-scrollbar-rail-right-vertical-left":wm,"--n-scrollbar-rail-bottom-vertical-left":Pm,"--n-scrollbar-rail-left-vertical-left":Tm,"--n-scrollbar-rail-color":cm}}),ct=o?Pr("scrollbar",void 0,Xr,e):void 0;return{scrollTo:ee,scrollBy:x,sync:we,syncUnifiedContainer:ve,handleMouseEnterWrapper:E,handleMouseLeaveWrapper:R,mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:b,wrapperRef:i,containerRef:l,contentRef:a,yRailRef:s,xRailRef:d,needYBar:ke,needXBar:nt,yBarSizePx:be,xBarSizePx:J,yBarTopPx:He,xBarLeftPx:Le,isShowXBar:Je,isShowYBar:vt,isIos:$,handleScroll:Z,handleContentResize:fe,handleContainerResize:m,handleYScrollMouseDown:It,handleXScrollMouseDown:ze,containerWidth:h,cssVars:o?void 0:Xr,themeClass:ct?.themeClass,onRender:ct?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,triggerDisplayManually:o,rtlEnabled:r,internalHoistYRail:n,yPlacement:i,xPlacement:l,xScrollable:a}=this;if(!this.scrollable)return e.default?.();const s=this.trigger==="none",d=(f,h)=>(k(),pe("div",{ref:"yRailRef",class:le([`${t}-scrollbar-rail`,`${t}-scrollbar-rail--vertical`,`${t}-scrollbar-rail--vertical--${i}`,f]),"data-scrollbar-rail":!0,style:Be([h||"",this.verticalRailStyle]),"aria-hidden":!0},[te(()=>Rt(s?Tc:br,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?(k(),pe("div",{key:1,class:le(`${t}-scrollbar-rail__scrollbar`),style:Be({height:this.yBarSizePx,top:this.yBarTopPx}),onMousedown:this.handleYScrollMouseDown},null,46,yS)):null}))],6)),c=()=>(this.onRender?.(),Rt("div",Bt(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${t}-scrollbar`,this.themeClass,r&&`${t}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?e.default?.():(k(),pe("div",{key:2,role:"none",ref:"containerRef",class:le([`${t}-scrollbar-container`,this.containerClass]),style:Be([this.containerStyle,this.internalExposeWidthCssVar?{"--n-scrollbar-current-width":i1(this.containerWidth)}:void 0]),onScroll:this.handleScroll,onWheel:this.onWheel},[(k(),ae(Oc,{onResize:this.handleContentResize},{default:()=>(k(),pe("div",{ref:"contentRef",role:"none",style:Be([{width:this.xScrollable?"fit-content":null},this.contentStyle]),class:le([`${t}-scrollbar-content`,this.contentClass])},[te(()=>e.default?.())],6))},1032,["onResize"]))],46,SS)),n?null:d(void 0,void 0),a&&(k(),pe("div",{ref:"xRailRef",class:le([`${t}-scrollbar-rail`,`${t}-scrollbar-rail--horizontal`,`${t}-scrollbar-rail--horizontal--${l}`]),style:Be(this.horizontalRailStyle),"data-scrollbar-rail":!0,"aria-hidden":!0},[te(()=>Rt(s?Tc:br,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?(k(),pe("div",{key:3,class:le(`${t}-scrollbar-rail__scrollbar`),style:Be({width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx}),onMousedown:this.handleXScrollMouseDown},null,46,wS)):null}))],6))])),u=this.container?c():(k(),ae(Oc,{key:4,onResize:this.handleContainerResize},{default:c},1032,["onResize"]));return n?(k(),pe(Te,{key:5},[te(()=>u),te(()=>d(this.themeClass,this.cssVars))],64)):u}}),Y_=ll;var eh={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};const th={name:"Tag",common:j,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:d,borderColor:c,tagColor:u,opacityDisabled:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:b,closeColorPressed:C,borderRadiusSmall:y,fontSizeMini:T,fontSizeTiny:P,fontSizeSmall:A,fontSizeMedium:M,heightMini:v,heightTiny:w,heightSmall:_,heightMedium:H,buttonColor2Hover:O,buttonColor2Pressed:$,fontWeightStrong:K}=e;return{...eh,closeBorderRadius:y,heightTiny:v,heightSmall:w,heightMedium:_,heightLarge:H,borderRadius:y,opacityDisabled:f,fontSizeTiny:T,fontSizeSmall:P,fontSizeMedium:A,fontSizeLarge:M,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:O,colorPressedCheckable:$,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${c}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:b,closeColorPressed:C,borderPrimary:`1px solid ${F(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:F(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Xe(n,{lightness:.7}),closeIconColorHoverPrimary:Xe(n,{lightness:.7}),closeIconColorPressedPrimary:Xe(n,{lightness:.7}),closeColorHoverPrimary:F(n,{alpha:.16}),closeColorPressedPrimary:F(n,{alpha:.12}),borderInfo:`1px solid ${F(i,{alpha:.3})}`,textColorInfo:i,colorInfo:F(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Xe(i,{alpha:.7}),closeIconColorHoverInfo:Xe(i,{alpha:.7}),closeIconColorPressedInfo:Xe(i,{alpha:.7}),closeColorHoverInfo:F(i,{alpha:.16}),closeColorPressedInfo:F(i,{alpha:.12}),borderSuccess:`1px solid ${F(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:F(l,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Xe(l,{alpha:.7}),closeIconColorHoverSuccess:Xe(l,{alpha:.7}),closeIconColorPressedSuccess:Xe(l,{alpha:.7}),closeColorHoverSuccess:F(l,{alpha:.16}),closeColorPressedSuccess:F(l,{alpha:.12}),borderWarning:`1px solid ${F(a,{alpha:.3})}`,textColorWarning:a,colorWarning:F(a,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Xe(a,{alpha:.7}),closeIconColorHoverWarning:Xe(a,{alpha:.7}),closeIconColorPressedWarning:Xe(a,{alpha:.7}),closeColorHoverWarning:F(a,{alpha:.16}),closeColorPressedWarning:F(a,{alpha:.11}),borderError:`1px solid ${F(s,{alpha:.3})}`,textColorError:s,colorError:F(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Xe(s,{alpha:.7}),closeIconColorHoverError:Xe(s,{alpha:.7}),closeIconColorPressedError:Xe(s,{alpha:.7}),closeColorHoverError:F(s,{alpha:.16}),closeColorPressedError:F(s,{alpha:.12})}}};function Wc(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function qn(e,t){const o=Ae({render(){return t()}});return Ae({name:My(e),setup(){const r=De(Yo,null)?.mergedIconsRef;return()=>{const n=r?.value?.[e];return n?n():(k(),ae(o,{key:1}))}}})}var TS=qn("close",()=>(()=>{const e=Ur("6b30a2290cd08d4");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},[Pe("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[Pe("g",{fill:"currentColor","fill-rule":"nonzero"},[Pe("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"})])])],-1))})()),ES=oe("base-close",` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + background-color: transparent; + color: var(--n-close-icon-color); + border-radius: var(--n-close-border-radius); + height: var(--n-close-size); + width: var(--n-close-size); + font-size: var(--n-close-icon-size); + outline: none; + border: none; + position: relative; + padding: 0; +`,[ne("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),D("&::before",` + content: ""; + position: absolute; + width: var(--n-close-size); + height: var(--n-close-size); + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + transition: inherit; + border-radius: inherit; + `),oa("disabled",[D("&:hover",` + color: var(--n-close-icon-color-hover); + `),D("&:hover::before",` + background-color: var(--n-close-color-hover); + `),D("&:focus::before",` + background-color: var(--n-close-color-hover); + `),D("&:active",` + color: var(--n-close-icon-color-pressed); + `),D("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),ne("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),ne("round",[D("&::before",` + border-radius: 50%; + `)])]),al=Ae({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return rl("-base-close",ES,uo(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:r,round:n,isButtonTag:i}=e,l=i?"button":"div";return(()=>{const a=Ur("b5bdc9fe09f5ae00");return k(),ae(l,{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:le([`${t}-base-close`,r&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`]),onMousedown:a[0]||(a[0]=s=>{e.focusable||s.preventDefault()}),onClick:e.onClick},{default:so(()=>[(k(),ae(il,{clsPrefix:t},{default:()=>(k(),ae(TS))},1032,["clsPrefix"]))]),_:2},1032,["type","tabindex","aria-disabled","role","disabled","class","onClick"])})()}}});function _S(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:d,borderColor:c,opacityDisabled:u,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:b,fontSizeMini:C,fontSizeTiny:y,fontSizeSmall:T,fontSizeMedium:P,heightMini:A,heightTiny:M,heightSmall:v,heightMedium:w,closeColorHover:_,closeColorPressed:H,buttonColor2Hover:O,buttonColor2Pressed:$,fontWeightStrong:K}=e;return{...eh,closeBorderRadius:b,heightTiny:A,heightSmall:M,heightMedium:v,heightLarge:w,borderRadius:b,opacityDisabled:u,fontSizeTiny:C,fontSizeSmall:y,fontSizeMedium:T,fontSizeLarge:P,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:O,colorPressedCheckable:$,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${c}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:_,closeColorPressed:H,borderPrimary:`1px solid ${F(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:F(n,{alpha:.12}),colorBorderedPrimary:F(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:F(n,{alpha:.12}),closeColorPressedPrimary:F(n,{alpha:.18}),borderInfo:`1px solid ${F(i,{alpha:.3})}`,textColorInfo:i,colorInfo:F(i,{alpha:.12}),colorBorderedInfo:F(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:F(i,{alpha:.12}),closeColorPressedInfo:F(i,{alpha:.18}),borderSuccess:`1px solid ${F(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:F(l,{alpha:.12}),colorBorderedSuccess:F(l,{alpha:.1}),closeIconColorSuccess:l,closeIconColorHoverSuccess:l,closeIconColorPressedSuccess:l,closeColorHoverSuccess:F(l,{alpha:.12}),closeColorPressedSuccess:F(l,{alpha:.18}),borderWarning:`1px solid ${F(a,{alpha:.35})}`,textColorWarning:a,colorWarning:F(a,{alpha:.15}),colorBorderedWarning:F(a,{alpha:.12}),closeIconColorWarning:a,closeIconColorHoverWarning:a,closeIconColorPressedWarning:a,closeColorHoverWarning:F(a,{alpha:.12}),closeColorPressedWarning:F(a,{alpha:.18}),borderError:`1px solid ${F(s,{alpha:.23})}`,textColorError:s,colorError:F(s,{alpha:.1}),colorBorderedError:F(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:F(s,{alpha:.12}),closeColorPressedError:F(s,{alpha:.18})}}const oh={name:"Tag",common:V,self:_S};var rh={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const Oa={name:"InternalSelection",common:j,peers:{Popover:Er},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:d,errorColor:c,errorColorHover:u,iconColor:f,iconColorDisabled:h,clearColor:p,clearColorHover:g,clearColorPressed:b,placeholderColor:C,placeholderColorDisabled:y,fontSizeTiny:T,fontSizeSmall:P,fontSizeMedium:A,fontSizeLarge:M,heightTiny:v,heightSmall:w,heightMedium:_,heightLarge:H,fontWeight:O}=e;return{...rh,fontWeight:O,fontSizeTiny:T,fontSizeSmall:P,fontSizeMedium:A,fontSizeLarge:M,heightTiny:v,heightSmall:w,heightMedium:_,heightLarge:H,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:C,placeholderColorDisabled:y,color:n,colorDisabled:i,colorActive:F(l,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${F(l,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${F(l,{alpha:.4})}`,caretColor:l,arrowColor:f,arrowColorDisabled:h,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${d}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${F(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${F(s,{alpha:.4})}`,colorActiveWarning:F(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${F(c,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${F(c,{alpha:.4})}`,colorActiveError:F(c,{alpha:.1}),caretColorError:c,clearColor:p,clearColorHover:g,clearColorPressed:b}}};var nh={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"};const $S={name:"Alert",common:j,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:l,textColor2:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:b,fontSize:C}=e;return{...nh,fontSize:C,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:l,iconColor:a,contentTextColor:a,closeBorderRadius:o,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${F(h,{alpha:.35})}`,colorInfo:F(h,{alpha:.25}),titleTextColorInfo:l,iconColorInfo:h,contentTextColorInfo:a,closeColorHoverInfo:s,closeColorPressedInfo:d,closeIconColorInfo:c,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${F(p,{alpha:.35})}`,colorSuccess:F(p,{alpha:.25}),titleTextColorSuccess:l,iconColorSuccess:p,contentTextColorSuccess:a,closeColorHoverSuccess:s,closeColorPressedSuccess:d,closeIconColorSuccess:c,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${F(g,{alpha:.35})}`,colorWarning:F(g,{alpha:.25}),titleTextColorWarning:l,iconColorWarning:g,contentTextColorWarning:a,closeColorHoverWarning:s,closeColorPressedWarning:d,closeIconColorWarning:c,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${F(b,{alpha:.35})}`,colorError:F(b,{alpha:.25}),titleTextColorError:l,iconColorError:b,contentTextColorError:a,closeColorHoverError:s,closeColorPressedError:d,closeIconColorError:c,closeIconColorHoverError:u,closeIconColorPressedError:f}}};var Wa=qn("error",()=>(()=>{const e=Ur("550229f72e94547c");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Pe("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Pe("g",{"fill-rule":"nonzero"},[Pe("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"})])])],-1))})()),Hi=qn("info",()=>(()=>{const e=Ur("1d7d3032c5ab60");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Pe("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Pe("g",{"fill-rule":"nonzero"},[Pe("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"})])])],-1))})()),Na=qn("success",()=>(()=>{const e=Ur("2d4548faff86b4af");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Pe("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Pe("g",{"fill-rule":"nonzero"},[Pe("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"})])])],-1))})()),ja=qn("warning",()=>(()=>{const e=Ur("eb9505c3181fdf04");return e[0]||(e[0]=Pe("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Pe("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Pe("g",{"fill-rule":"nonzero"},[Pe("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"})])])],-1))})()),ih=Ae({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(a){e.width?a.style.maxWidth=`${a.offsetWidth}px`:a.style.maxHeight=`${a.offsetHeight}px`,a.offsetWidth}function r(a){e.width?a.style.maxWidth="0":a.style.maxHeight="0",a.offsetWidth;const{onLeave:s}=e;s&&s()}function n(a){e.width?a.style.maxWidth="":a.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(a){if(a.style.transition="none",e.width){const s=a.offsetWidth;a.style.maxWidth="0",a.offsetWidth,a.style.transition="",a.style.maxWidth=`${s}px`}else if(e.reverse)a.style.maxHeight=`${a.offsetHeight}px`,a.offsetHeight,a.style.transition="",a.style.maxHeight="0";else{const s=a.offsetHeight;a.style.maxHeight="0",a.offsetWidth,a.style.transition="",a.style.maxHeight=`${s}px`}a.offsetWidth}function l(a){e.width?a.style.maxWidth="":e.reverse||(a.style.maxHeight=""),e.onAfterEnter?.()}return()=>{const{group:a,width:s,appear:d,mode:c}=e,u=a?qb:br,f={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:d,onEnter:i,onAfterEnter:l,onBeforeLeave:o,onLeave:r,onAfterLeave:n};return a||(f.mode=c),Rt(u,f,t)}}});function RS(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,baseColor:n,dividerColor:i,actionColor:l,textColor1:a,textColor2:s,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:h,infoColor:p,successColor:g,warningColor:b,errorColor:C,fontSize:y}=e;return{...nh,fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${i}`,color:l,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:o,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:h,borderInfo:`1px solid ${Y(n,F(p,{alpha:.25}))}`,colorInfo:Y(n,F(p,{alpha:.08})),titleTextColorInfo:a,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:d,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Y(n,F(g,{alpha:.25}))}`,colorSuccess:Y(n,F(g,{alpha:.08})),titleTextColorSuccess:a,iconColorSuccess:g,contentTextColorSuccess:s,closeColorHoverSuccess:d,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Y(n,F(b,{alpha:.33}))}`,colorWarning:Y(n,F(b,{alpha:.08})),titleTextColorWarning:a,iconColorWarning:b,contentTextColorWarning:s,closeColorHoverWarning:d,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:h,borderError:`1px solid ${Y(n,F(C,{alpha:.25}))}`,colorError:Y(n,F(C,{alpha:.08})),titleTextColorError:a,iconColorError:C,contentTextColorError:s,closeColorHoverError:d,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:h}}const IS={name:"Alert",common:V,self:RS},{cubicBezierEaseInOut:eo,cubicBezierEaseOut:AS,cubicBezierEaseIn:HS}=Zo;function MS({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:r="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:l=void 0,reverse:a=!1}={}){const s=a?"leave":"enter",d=a?"enter":"leave";return[D(`&.fade-in-height-expand-transition-${d}-from, + &.fade-in-height-expand-transition-${s}-to`,{...i,opacity:1}),D(`&.fade-in-height-expand-transition-${d}-to, + &.fade-in-height-expand-transition-${s}-from`,{...l,opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0}),D(`&.fade-in-height-expand-transition-${d}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${eo} ${r}, + opacity ${t} ${AS} ${r}, + margin-top ${t} ${eo} ${r}, + margin-bottom ${t} ${eo} ${r}, + padding-top ${t} ${eo} ${r}, + padding-bottom ${t} ${eo} ${r} + ${o?`,${o}`:""} + `),D(`&.fade-in-height-expand-transition-${s}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${eo}, + opacity ${t} ${HS}, + margin-top ${t} ${eo}, + margin-bottom ${t} ${eo}, + padding-top ${t} ${eo}, + padding-bottom ${t} ${eo} + ${o?`,${o}`:""} + `)]}var zS={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function lh(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:l}=e;return{...zS,borderRadius:t,railColor:o,railColorActive:r,linkColor:F(r,{alpha:.15}),linkTextColor:l,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r}}const FS={name:"Anchor",common:V,self:lh},BS={name:"Anchor",common:j,self:lh};var ah={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function kS(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,warningColor:s,warningColorHover:d,errorColor:c,errorColorHover:u,borderRadius:f,lineHeight:h,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:C,heightTiny:y,heightSmall:T,heightMedium:P,heightLarge:A,clearColor:M,clearColorHover:v,clearColorPressed:w,placeholderColor:_,placeholderColorDisabled:H,iconColor:O,iconColorDisabled:$,iconColorHover:K,iconColorPressed:ie,fontWeight:be}=e;return{...ah,fontWeight:be,countTextColorDisabled:r,countTextColor:o,heightTiny:y,heightSmall:T,heightMedium:P,heightLarge:A,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:C,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:l,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:_,placeholderColorDisabled:H,color:l,colorHover:l,colorDisabled:a,colorFocus:F(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:F(s,{alpha:.1}),borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 8px 0 ${F(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${u}`,colorFocusError:F(c,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${F(c,{alpha:.3})}`,caretColorError:c,clearColor:M,clearColorHover:v,clearColorPressed:w,iconColor:O,iconColorDisabled:$,iconColorHover:K,iconColorPressed:ie,suffixTextColor:t}}const Dt={name:"Input",common:j,peers:{Scrollbar:gt},self:kS},Nc="n-form-item";function DS(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=De(Nc,null);at(Nc,null);const i=X(o?()=>o(n):()=>{const{size:s}=e;if(s)return s;if(n){const{mergedSize:d}=n;if(d.value!==void 0)return d.value}return t}),l=X(r?()=>r(n):()=>{const{disabled:s}=e;return s!==void 0?s:n?n.disabled.value:!1}),a=X(()=>{const{status:s}=e;return s||n?.mergedValidationStatus.value});return Gt(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:l,mergedStatusRef:a,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var Va=Ae({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Nf();return()=>(k(),ae(br,{name:"icon-switch-transition",appear:o.value},Bn(t),1032,["appear"]))}});const{cubicBezierEaseInOut:LS}=Zo;function Mi({originalTransform:e="",left:t=0,top:o=0,transition:r=`all .3s ${LS} !important`}={}){return[D("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),D("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),D("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:r})]}var OS=D([D("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),oe("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[re("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[Mi()]),re("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Mi({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),re("container",` + animation: rotator 3s linear infinite both; + `,[re("icon",` + height: 1em; + width: 1em; + `)])])]);const WS=["viewBox"],NS=["values","dur"],jS=["stroke-width","cx","cy","r","stroke-dasharray","stroke-dashoffset"],VS=["values","dur"],GS=["values","dur"],Fl="1.6s",US={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}};var sh=Ae({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},...US},setup(e){rl("-base-loading",OS,uo(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:r,scale:n}=this,i=t/n;return k(),pe("div",{class:le(`${e}-base-loading`),role:"img","aria-label":"loading"},[je(Va,null,{default:()=>this.show?(k(),pe("div",{key:"icon",class:le(`${e}-base-loading__transition-wrapper`)},[Pe("div",{class:le(`${e}-base-loading__container`)},[(k(),pe("svg",{class:le(`${e}-base-loading__icon`),viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:Be({color:r})},[Pe("g",null,[Pe("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Fl,fill:"freeze",repeatCount:"indefinite"},null,8,NS),Pe("circle",{class:le(`${e}-base-loading__icon`),fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},[Pe("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Fl,fill:"freeze",repeatCount:"indefinite"},null,8,VS),Pe("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Fl,fill:"freeze",repeatCount:"indefinite"},null,8,GS)],10,jS)])],14,WS))],2)],2)):(k(),pe("div",{key:"placeholder",class:le(`${e}-base-loading__placeholder`)},[te(()=>this.$slots.default?.())],2))},1024)],2)}});const Kn=typeof document<"u"&&typeof window<"u",qS=Kn&&"chrome"in window;Kn&&navigator.userAgent.includes("Firefox");const KS=Kn&&navigator.userAgent.includes("Safari")&&!qS;function YS(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:l,inputColorDisabled:a,borderColor:s,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:C,fontSizeLarge:y,heightTiny:T,heightSmall:P,heightMedium:A,heightLarge:M,actionColor:v,clearColor:w,clearColorHover:_,clearColorPressed:H,placeholderColor:O,placeholderColorDisabled:$,iconColor:K,iconColorDisabled:ie,iconColorHover:be,iconColorPressed:ce,fontWeight:J}=e;return{...ah,fontWeight:J,countTextColorDisabled:r,countTextColor:o,heightTiny:T,heightSmall:P,heightMedium:A,heightLarge:M,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:C,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:v,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:n,placeholderColor:O,placeholderColorDisabled:$,color:l,colorHover:l,colorDisabled:a,colorFocus:l,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${F(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 0 2px ${F(d,{alpha:.2})}`,caretColorWarning:d,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:l,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${F(u,{alpha:.2})}`,caretColorError:u,clearColor:w,clearColorHover:_,clearColorPressed:H,iconColor:K,iconColorDisabled:ie,iconColorHover:be,iconColorPressed:ce,suffixTextColor:t}}const Lt={name:"Input",common:V,peers:{Scrollbar:st},self:YS};function ch(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const XS={name:"AutoComplete",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:ch},ZS={name:"AutoComplete",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self:ch};function Ht(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?$n(e):typeof e=="number"?$n(String(e)):null}function jc(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}const{cubicBezierEaseIn:Vc,cubicBezierEaseOut:Gc}=Zo;function JS({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:r="",originalTransition:n=""}={}){return[D("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Vc}, transform ${t} ${Vc} ${n&&`,${n}`}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Gc}, transform ${t} ${Gc} ${n&&`,${n}`}`}),D("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${o})`}),D("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}function dh(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:d,modalColor:c,popoverColor:u}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:d,color:Y(r,o),colorModal:Y(c,o),colorPopover:Y(u,o)}}const uh={name:"Avatar",common:V,self:dh},fh={name:"Avatar",common:j,self:dh};function hh(){return{gap:"-12px"}}const QS={name:"AvatarGroup",common:V,peers:{Avatar:uh},self:hh};var ph={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};const ew={name:"BackTop",common:j,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return{...ph,color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"}}};let Ir=0,Uc="",qc="",Kc="",Yc="";const Xc=se("0px");function tw(e){if(typeof document>"u")return;const t=document.documentElement;let o,r=!1;const n=()=>{t.style.marginRight=Uc,t.style.overflow=qc,t.style.overflowX=Kc,t.style.overflowY=Yc,Xc.value="0px"};bo(()=>{o=Nt(e,i=>{if(i){if(!Ir){const l=window.innerWidth-t.offsetWidth;l>0&&(Uc=t.style.marginRight,t.style.marginRight=`${l}px`,Xc.value=`${l}px`),qc=t.style.overflow,Kc=t.style.overflowX,Yc=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Ir++}else Ir--,Ir||n(),r=!1},{immediate:!0})}),Gt(()=>{o?.(),r&&(Ir--,Ir||n(),r=!1)})}function ow(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return{...ph,color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"}}const rw={name:"BackTop",common:V,self:ow},nw={name:"Badge",common:j,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},{cubicBezierEaseInOut:Bo}=Zo;function iw({duration:e=".2s",delay:t=".1s"}={}){return[D("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),D("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + opacity: 0!important; + margin-left: 0!important; + margin-right: 0!important; + `),D("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${Bo}, + max-width ${e} ${Bo} ${t}, + margin-left ${e} ${Bo} ${t}, + margin-right ${e} ${Bo} ${t}; + `),D("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${Bo} ${t}, + max-width ${e} ${Bo}, + margin-left ${e} ${Bo}, + margin-right ${e} ${Bo}; + `)]}var lw=oe("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),aw=Ae({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){rl("-base-wave",lw,uo(e,"clsPrefix"));const t=se(null),o=se(!1);let r=null;return Gt(()=>{r!==null&&window.clearTimeout(r)}),{active:o,selfRef:t,play(){r!==null&&(window.clearTimeout(r),o.value=!1,r=null),gr(()=>{t.value?.offsetHeight,o.value=!0,r=window.setTimeout(()=>{o.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return k(),pe("div",{ref:"selfRef","aria-hidden":!0,class:le([`${e}-base-wave`,this.active&&`${e}-base-wave--active`])},null,2)}});function sw(e){const{errorColor:t,infoColor:o,successColor:r,warningColor:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}const cw={name:"Badge",common:V,self:sw};var dw={fontWeightActive:"400"};function mh(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:l}=e;return{...dw,fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:l,separatorColor:o}}const uw={name:"Breadcrumb",common:V,self:mh},fw={name:"Breadcrumb",common:j,self:mh};var hw={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function gh(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:d,opacityDisabled:c,textColor2:u,textColor3:f,primaryColorHover:h,primaryColorPressed:p,borderColor:g,primaryColor:b,baseColor:C,infoColor:y,infoColorHover:T,infoColorPressed:P,successColor:A,successColorHover:M,successColorPressed:v,warningColor:w,warningColorHover:_,warningColorPressed:H,errorColor:O,errorColorHover:$,errorColorPressed:K,fontWeight:ie,buttonColor2:be,buttonColor2Hover:ce,buttonColor2Pressed:J,fontWeightStrong:ue}=e;return{...hw,heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:d,opacityDisabled:c,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:be,colorSecondaryHover:ce,colorSecondaryPressed:J,colorTertiary:be,colorTertiaryHover:ce,colorTertiaryPressed:J,colorQuaternary:"#0000",colorQuaternaryHover:ce,colorQuaternaryPressed:J,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:f,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:u,textColorText:u,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:u,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:b,colorPrimary:b,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:b,textColorPrimary:C,textColorHoverPrimary:C,textColorPressedPrimary:C,textColorFocusPrimary:C,textColorDisabledPrimary:C,textColorTextPrimary:b,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:u,textColorGhostPrimary:b,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:b,borderPrimary:`1px solid ${b}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${b}`,rippleColorPrimary:b,colorInfo:y,colorHoverInfo:T,colorPressedInfo:P,colorFocusInfo:T,colorDisabledInfo:y,textColorInfo:C,textColorHoverInfo:C,textColorPressedInfo:C,textColorFocusInfo:C,textColorDisabledInfo:C,textColorTextInfo:y,textColorTextHoverInfo:T,textColorTextPressedInfo:P,textColorTextFocusInfo:T,textColorTextDisabledInfo:u,textColorGhostInfo:y,textColorGhostHoverInfo:T,textColorGhostPressedInfo:P,textColorGhostFocusInfo:T,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${T}`,borderPressedInfo:`1px solid ${P}`,borderFocusInfo:`1px solid ${T}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:A,colorHoverSuccess:M,colorPressedSuccess:v,colorFocusSuccess:M,colorDisabledSuccess:A,textColorSuccess:C,textColorHoverSuccess:C,textColorPressedSuccess:C,textColorFocusSuccess:C,textColorDisabledSuccess:C,textColorTextSuccess:A,textColorTextHoverSuccess:M,textColorTextPressedSuccess:v,textColorTextFocusSuccess:M,textColorTextDisabledSuccess:u,textColorGhostSuccess:A,textColorGhostHoverSuccess:M,textColorGhostPressedSuccess:v,textColorGhostFocusSuccess:M,textColorGhostDisabledSuccess:A,borderSuccess:`1px solid ${A}`,borderHoverSuccess:`1px solid ${M}`,borderPressedSuccess:`1px solid ${v}`,borderFocusSuccess:`1px solid ${M}`,borderDisabledSuccess:`1px solid ${A}`,rippleColorSuccess:A,colorWarning:w,colorHoverWarning:_,colorPressedWarning:H,colorFocusWarning:_,colorDisabledWarning:w,textColorWarning:C,textColorHoverWarning:C,textColorPressedWarning:C,textColorFocusWarning:C,textColorDisabledWarning:C,textColorTextWarning:w,textColorTextHoverWarning:_,textColorTextPressedWarning:H,textColorTextFocusWarning:_,textColorTextDisabledWarning:u,textColorGhostWarning:w,textColorGhostHoverWarning:_,textColorGhostPressedWarning:H,textColorGhostFocusWarning:_,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${_}`,borderPressedWarning:`1px solid ${H}`,borderFocusWarning:`1px solid ${_}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:O,colorHoverError:$,colorPressedError:K,colorFocusError:$,colorDisabledError:O,textColorError:C,textColorHoverError:C,textColorPressedError:C,textColorFocusError:C,textColorDisabledError:C,textColorTextError:O,textColorTextHoverError:$,textColorTextPressedError:K,textColorTextFocusError:$,textColorTextDisabledError:u,textColorGhostError:O,textColorGhostHoverError:$,textColorGhostPressedError:K,textColorGhostFocusError:$,textColorGhostDisabledError:O,borderError:`1px solid ${O}`,borderHoverError:`1px solid ${$}`,borderPressedError:`1px solid ${K}`,borderFocusError:`1px solid ${$}`,borderDisabledError:`1px solid ${O}`,rippleColorError:O,waveOpacity:"0.6",fontWeight:ie,fontWeightStrong:ue}}const bt={name:"Button",common:V,self:gh},Tt={name:"Button",common:j,self(e){const t=gh(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}};function tr(e){return Y(e,[255,255,255,.16])}function ai(e){return Y(e,[0,0,0,.12])}const pw="n-button-group";var mw=D([oe("button",` + margin: 0; + font-weight: var(--n-font-weight); + line-height: 1; + font-family: inherit; + padding: var(--n-padding); + height: var(--n-height); + font-size: var(--n-font-size); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + width: var(--n-width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + flex-shrink: 0; + align-items: center; + justify-content: center; + user-select: none; + -webkit-user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[ne("color",[re("border",{borderColor:"var(--n-border-color)"}),ne("disabled",[re("border",{borderColor:"var(--n-border-color-disabled)"})]),oa("disabled",[D("&:focus",[re("state-border",{borderColor:"var(--n-border-color-focus)"})]),D("&:hover",[re("state-border",{borderColor:"var(--n-border-color-hover)"})]),D("&:active",[re("state-border",{borderColor:"var(--n-border-color-pressed)"})]),ne("pressed",[re("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),ne("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[re("border",{border:"var(--n-border-disabled)"})]),oa("disabled",[D("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[re("state-border",{border:"var(--n-border-focus)"})]),D("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[re("state-border",{border:"var(--n-border-hover)"})]),D("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[re("state-border",{border:"var(--n-border-pressed)"})]),ne("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[re("state-border",{border:"var(--n-border-pressed)"})])]),ne("loading","cursor: wait;"),oe("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--n-ripple-duration); + animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); + `,[ne("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Kn&&"MozBoxSizing"in document.createElement("div").style?D("&::moz-focus-inner",{border:0}):null,re("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--n-bezier); + pointer-events: none; + `),re("border",` + border: var(--n-border); + `),re("state-border",` + border: var(--n-border); + border-color: #0000; + z-index: 1; + `),re("icon",` + margin: var(--n-icon-margin); + margin-left: 0; + height: var(--n-icon-size); + width: var(--n-icon-size); + max-width: var(--n-icon-size); + font-size: var(--n-icon-size); + position: relative; + flex-shrink: 0; + `,[oe("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `,[Mi({top:"50%",originalTransform:"translateY(-50%)"})]),iw()]),re("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[D("~",[re("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),ne("block",` + display: flex; + width: 100%; + `),ne("dashed",[re("border, state-border",{borderStyle:"dashed !important"})]),ne("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),D("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),D("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]);const gw={...Pt.props,color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!KS},spinProps:Object},fa=Ae({name:"Button",props:gw,slots:Object,setup(e){const t=se(null),o=se(null),r=se(!1),n=ca(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=De(pw,{}),{inlineThemeDisabled:l,mergedClsPrefixRef:a,mergedRtlRef:s,mergedComponentPropsRef:d}=Mo(e),{mergedSizeRef:c}=DS({},{defaultSize:"medium",mergedSize:A=>{const{size:M}=e;if(M)return M;const{size:v}=i;if(v)return v;const{mergedSize:w}=A||{};if(w)return w.value;const _=d?.value?.Button?.size;return _||"medium"}}),u=X(()=>e.focusable&&!e.disabled),f=A=>{u.value||A.preventDefault(),!e.nativeFocusBehavior&&(A.preventDefault(),!e.disabled&&u.value&&t.value?.focus({preventScroll:!0}))},h=A=>{if(!e.disabled&&!e.loading){const{onClick:M}=e;M&&cr(M,A),e.text||o.value?.play()}},p=A=>{switch(A.key){case"Enter":if(!e.keyboard)return;r.value=!1}},g=A=>{switch(A.key){case"Enter":if(!e.keyboard||e.loading){A.preventDefault();return}r.value=!0}},b=()=>{r.value=!1},C=Pt("Button","-button",mw,bt,e,a),y=qr("Button",s,a),T=X(()=>{const{common:{cubicBezierEaseInOut:A,cubicBezierEaseOut:M},self:v}=C.value,{rippleDuration:w,opacityDisabled:_,fontWeight:H,fontWeightStrong:O}=v,$=c.value,{dashed:K,type:ie,ghost:be,text:ce,color:J,round:ue,circle:He,textColor:$e,secondary:Le,tertiary:ke,quaternary:nt,strong:Je}=e,vt={"--n-font-weight":Je?O:H};let Se={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const z=ie==="tertiary",ee=ie==="default",L=z?"default":ie;if(ce){const I=$e||J;Se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":I||v[Ce("textColorText",L)],"--n-text-color-hover":I?tr(I):v[Ce("textColorTextHover",L)],"--n-text-color-pressed":I?ai(I):v[Ce("textColorTextPressed",L)],"--n-text-color-focus":I?tr(I):v[Ce("textColorTextHover",L)],"--n-text-color-disabled":I||v[Ce("textColorTextDisabled",L)]}}else if(be||K){const I=$e||J;Se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":J||v[Ce("rippleColor",L)],"--n-text-color":I||v[Ce("textColorGhost",L)],"--n-text-color-hover":I?tr(I):v[Ce("textColorGhostHover",L)],"--n-text-color-pressed":I?ai(I):v[Ce("textColorGhostPressed",L)],"--n-text-color-focus":I?tr(I):v[Ce("textColorGhostHover",L)],"--n-text-color-disabled":I||v[Ce("textColorGhostDisabled",L)]}}else if(Le){const I=ee?v.textColor:z?v.textColorTertiary:v[Ce("color",L)],Z=J||I,q=ie!=="default"&&ie!=="tertiary";Se={"--n-color":q?F(Z,{alpha:Number(v.colorOpacitySecondary)}):v.colorSecondary,"--n-color-hover":q?F(Z,{alpha:Number(v.colorOpacitySecondaryHover)}):v.colorSecondaryHover,"--n-color-pressed":q?F(Z,{alpha:Number(v.colorOpacitySecondaryPressed)}):v.colorSecondaryPressed,"--n-color-focus":q?F(Z,{alpha:Number(v.colorOpacitySecondaryHover)}):v.colorSecondaryHover,"--n-color-disabled":v.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ke||nt){const I=ee?v.textColor:z?v.textColorTertiary:v[Ce("color",L)],Z=J||I;ke?(Se["--n-color"]=v.colorTertiary,Se["--n-color-hover"]=v.colorTertiaryHover,Se["--n-color-pressed"]=v.colorTertiaryPressed,Se["--n-color-focus"]=v.colorSecondaryHover,Se["--n-color-disabled"]=v.colorTertiary):(Se["--n-color"]=v.colorQuaternary,Se["--n-color-hover"]=v.colorQuaternaryHover,Se["--n-color-pressed"]=v.colorQuaternaryPressed,Se["--n-color-focus"]=v.colorQuaternaryHover,Se["--n-color-disabled"]=v.colorQuaternary),Se["--n-ripple-color"]="#0000",Se["--n-text-color"]=Z,Se["--n-text-color-hover"]=Z,Se["--n-text-color-pressed"]=Z,Se["--n-text-color-focus"]=Z,Se["--n-text-color-disabled"]=Z}else Se={"--n-color":J||v[Ce("color",L)],"--n-color-hover":J?tr(J):v[Ce("colorHover",L)],"--n-color-pressed":J?ai(J):v[Ce("colorPressed",L)],"--n-color-focus":J?tr(J):v[Ce("colorFocus",L)],"--n-color-disabled":J||v[Ce("colorDisabled",L)],"--n-ripple-color":J||v[Ce("rippleColor",L)],"--n-text-color":$e||(J?v.textColorPrimary:z?v.textColorTertiary:v[Ce("textColor",L)]),"--n-text-color-hover":$e||(J?v.textColorHoverPrimary:v[Ce("textColorHover",L)]),"--n-text-color-pressed":$e||(J?v.textColorPressedPrimary:v[Ce("textColorPressed",L)]),"--n-text-color-focus":$e||(J?v.textColorFocusPrimary:v[Ce("textColorFocus",L)]),"--n-text-color-disabled":$e||(J?v.textColorDisabledPrimary:v[Ce("textColorDisabled",L)])};let fe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};ce?fe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:fe={"--n-border":v[Ce("border",L)],"--n-border-hover":v[Ce("borderHover",L)],"--n-border-pressed":v[Ce("borderPressed",L)],"--n-border-focus":v[Ce("borderFocus",L)],"--n-border-disabled":v[Ce("borderDisabled",L)]};const{[Ce("height",$)]:m,[Ce("fontSize",$)]:x,[Ce("padding",$)]:S,[Ce("paddingRound",$)]:E,[Ce("iconSize",$)]:R,[Ce("borderRadius",$)]:B,[Ce("iconMargin",$)]:W,waveOpacity:U}=v;return{"--n-bezier":A,"--n-bezier-ease-out":M,"--n-ripple-duration":w,"--n-opacity-disabled":_,"--n-wave-opacity":U,...vt,...Se,...fe,...{"--n-width":He&&!ce?m:"initial","--n-height":ce?"initial":m,"--n-font-size":x,"--n-padding":He||ce?"initial":ue?E:S,"--n-icon-size":R,"--n-icon-margin":W,"--n-border-radius":ce?"initial":He||ue?m:B}}}),P=l?Pr("button",X(()=>{let A="";const{dashed:M,type:v,ghost:w,text:_,color:H,round:O,circle:$,textColor:K,secondary:ie,tertiary:be,quaternary:ce,strong:J}=e;M&&(A+="a"),w&&(A+="b"),_&&(A+="c"),O&&(A+="d"),$&&(A+="e"),ie&&(A+="f"),be&&(A+="g"),ce&&(A+="h"),J&&(A+="i"),H&&(A+=`j${Wc(H)}`),K&&(A+=`k${Wc(K)}`);const{value:ue}=c;return A+=`l${ue[0]}`,A+=`m${v[0]}`,A}),T,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:a,mergedFocusable:u,mergedSize:c,showBorder:n,enterPressed:r,rtlEnabled:y,handleMousedown:f,handleKeydown:g,handleBlur:b,handleKeyup:p,handleClick:h,customColorCssVars:X(()=>{const{color:A}=e;if(!A)return null;const M=tr(A);return{"--n-border-color":A,"--n-border-color-hover":M,"--n-border-color-pressed":ai(A),"--n-border-color-focus":M,"--n-border-color-disabled":A}}),cssVars:l?void 0:T,themeClass:P?.themeClass,onRender:P?.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o?.();const r=Kt(this.$slots.default,n=>n&&(k(),pe("span",{class:le(`${e}-button__content`)},[te(()=>n)],2)));return k(),ae(t,{ref:"selfElRef",class:le([this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`]),tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:Be(this.cssVars),disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},{default:so(()=>[te(()=>this.iconPlacement==="right"&&r),je(ih,{width:!0},{default:()=>Kt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&(k(),pe("span",{class:le(`${e}-button__icon`),style:Be({margin:j1(this.$slots.default)?"0":""})},[je(Va,null,{default:()=>this.loading?(k(),ae(sh,Bt({clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20},this.spinProps),null,16,["clsPrefix","class"])):(k(),pe("div",{key:"icon",class:le(`${e}-icon-slot`),role:"none"},[this.renderIcon?(k(),pe(Te,{key:0},[te(()=>this.renderIcon())],64)):(k(),pe(Te,{key:1},[te(()=>n)],64))],2))},1024)],6)))},1024),te(()=>this.iconPlacement==="left"&&r),this.text?te(()=>null):(k(),ae(aw,{key:0,ref:"waveElRef",clsPrefix:e},null,8,["clsPrefix"])),this.showBorder?(k(),pe("div",{key:2,"aria-hidden":!0,class:le(`${e}-button__border`),style:Be(this.customColorCssVars)},null,6)):te(()=>null),this.showBorder?(k(),pe("div",{key:4,"aria-hidden":!0,class:le(`${e}-button__state-border`),style:Be(this.customColorCssVars)},null,6)):te(()=>null)]),_:2},1032,["class","tabindex","type","style","disabled","onClick","onBlur","onMousedown","onKeyup","onKeydown"])}}),X_=fa;var bw={titleFontSize:"22px"};function bh(e){const{borderRadius:t,fontSize:o,lineHeight:r,textColor2:n,textColor1:i,textColorDisabled:l,dividerColor:a,fontWeightStrong:s,primaryColor:d,baseColor:c,hoverColor:u,cardColor:f,modalColor:h,popoverColor:p}=e;return{...bw,borderRadius:t,borderColor:Y(f,a),borderColorModal:Y(h,a),borderColorPopover:Y(p,a),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:l,fontSize:o,lineHeight:r,dateColorCurrent:d,dateTextColorCurrent:c,cellColorHover:Y(f,u),cellColorHoverModal:Y(h,u),cellColorHoverPopover:Y(p,u),cellColor:f,cellColorModal:h,cellColorPopover:p,barColor:d}}const vw={name:"Calendar",common:V,peers:{Button:bt},self:bh};var Cw={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function vh(e){const{primaryColor:t,borderRadius:o,lineHeight:r,fontSize:n,cardColor:i,textColor2:l,textColor1:a,dividerColor:s,fontWeightStrong:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:h,closeColorPressed:p,modalColor:g,boxShadow1:b,popoverColor:C,actionColor:y}=e;return{...Cw,lineHeight:r,color:i,colorModal:g,colorPopover:C,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:l,titleTextColor:a,borderColor:s,actionColor:y,titleFontWeight:d,closeColorHover:h,closeColorPressed:p,closeBorderRadius:o,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:b,borderRadius:o}}const Ga={name:"Card",common:V,self:vh},Ch={name:"Card",common:j,self(e){const t=vh(e),{cardColor:o,modalColor:r,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=n,t}},Zc=oe("card-content",` + flex: 1; + min-width: 0; + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); +`);var xw=D([oe("card",` + font-size: var(--n-font-size); + line-height: var(--n-line-height); + display: flex; + flex-direction: column; + width: 100%; + box-sizing: border-box; + position: relative; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + color: var(--n-text-color); + word-break: break-word; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[Yu({background:"var(--n-color-modal)"}),ne("hoverable",[D("&:hover","box-shadow: var(--n-box-shadow);")]),ne("content-segmented",[D(">",[oe("card-content",` + padding-top: var(--n-padding-bottom); + `),re("content-scrollbar",[D(">",[oe("scrollbar-container",[D(">",[oe("card-content",` + padding-top: var(--n-padding-bottom); + `)])])])])])]),ne("content-soft-segmented",[D(">",[oe("card-content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `),re("content-scrollbar",[D(">",[oe("scrollbar-container",[D(">",[oe("card-content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])])])])])]),ne("footer-segmented",[D(">",[re("footer",` + padding-top: var(--n-padding-bottom); + `)])]),ne("footer-soft-segmented",[D(">",[re("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),D(">",[oe("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + padding: + var(--n-padding-top) + var(--n-padding-left) + var(--n-padding-bottom) + var(--n-padding-left); + `,[re("main",` + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + min-width: 0; + color: var(--n-title-text-color); + `),re("extra",` + display: flex; + align-items: center; + font-size: var(--n-font-size); + font-weight: 400; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),re("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),re("action",` + box-sizing: border-box; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + background-clip: padding-box; + background-color: var(--n-action-color); + `),Zc,oe("card-content",[D("&:first-child",` + padding-top: var(--n-padding-bottom); + `)]),re("content-scrollbar",` + display: flex; + flex-direction: column; + `,[D(">",[oe("scrollbar-container",[D(">",[Zc])])]),D("&:first-child >",[oe("scrollbar-container",[D(">",[oe("card-content",` + padding-top: var(--n-padding-bottom); + `)])])])]),re("footer",` + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); + `,[D("&:first-child",` + padding-top: var(--n-padding-bottom); + `)]),re("action",` + background-color: var(--n-action-color); + padding: var(--n-padding-bottom) var(--n-padding-left); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `)]),oe("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[D("img",` + display: block; + width: 100%; + `)]),ne("bordered",` + border: 1px solid var(--n-border-color); + `,[D("&:target","border-color: var(--n-color-target);")]),ne("action-segmented",[D(">",[re("action",[D("&:not(:first-child)",` + border-top: 1px solid var(--n-border-color); + `)])])]),ne("content-segmented, content-soft-segmented",[D(">",[oe("card-content",` + transition: border-color 0.3s var(--n-bezier); + `,[D("&:not(:first-child)",` + border-top: 1px solid var(--n-border-color); + `)]),re("content-scrollbar",` + transition: border-color 0.3s var(--n-bezier); + `,[D("&:not(:first-child)",` + border-top: 1px solid var(--n-border-color); + `)])])]),ne("footer-segmented, footer-soft-segmented",[D(">",[re("footer",` + transition: border-color 0.3s var(--n-bezier); + `,[D("&:not(:first-child)",` + border-top: 1px solid var(--n-border-color); + `)])])]),ne("embedded",` + background-color: var(--n-color-embedded); + `)]),Ku(oe("card",` + background: var(--n-color-modal); + `,[ne("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),Rv(oe("card",` + background: var(--n-color-popover); + `,[ne("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]);const Ua={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},yw=tl(Ua),Sw={...Pt.props,...Ua};var ww=Ae({name:"Card",props:Sw,slots:Object,setup(e){const t=()=>{const{onClose:u}=e;u&&cr(u)},{inlineThemeDisabled:o,mergedClsPrefixRef:r,mergedRtlRef:n,mergedComponentPropsRef:i}=Mo(e),l=Pt("Card","-card",xw,Ga,e,r),a=qr("Card",n,r),s=X(()=>e.size||i?.value?.Card?.size||"medium"),d=X(()=>{const u=s.value,{self:{color:f,colorModal:h,colorTarget:p,textColor:g,titleTextColor:b,titleFontWeight:C,borderColor:y,actionColor:T,borderRadius:P,lineHeight:A,closeIconColor:M,closeIconColorHover:v,closeIconColorPressed:w,closeColorHover:_,closeColorPressed:H,closeBorderRadius:O,closeIconSize:$,closeSize:K,boxShadow:ie,colorPopover:be,colorEmbedded:ce,colorEmbeddedModal:J,colorEmbeddedPopover:ue,[Ce("padding",u)]:He,[Ce("fontSize",u)]:$e,[Ce("titleFontSize",u)]:Le},common:{cubicBezierEaseInOut:ke}}=l.value,{top:nt,left:Je,bottom:vt}=jo(He);return{"--n-bezier":ke,"--n-border-radius":P,"--n-color":f,"--n-color-modal":h,"--n-color-popover":be,"--n-color-embedded":ce,"--n-color-embedded-modal":J,"--n-color-embedded-popover":ue,"--n-color-target":p,"--n-text-color":g,"--n-line-height":A,"--n-action-color":T,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-close-icon-color":M,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":w,"--n-close-color-hover":_,"--n-close-color-pressed":H,"--n-border-color":y,"--n-box-shadow":ie,"--n-padding-top":nt,"--n-padding-bottom":vt,"--n-padding-left":Je,"--n-font-size":$e,"--n-title-font-size":Le,"--n-close-size":K,"--n-close-icon-size":$,"--n-close-border-radius":O}}),c=o?Pr("card",X(()=>s.value[0]),d,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:l,handleCloseClick:t,cssVars:o?void 0:d,themeClass:c?.themeClass,onRender:c?.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:r,rtlEnabled:n,onRender:i,embedded:l,tag:a,$slots:s}=this;return i?.(),k(),ae(a,{class:le([`${r}-card`,this.themeClass,l&&`${r}-card--embedded`,{[`${r}-card--rtl`]:n,[`${r}-card--content-scrollable`]:this.contentScrollable,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:o}]),style:Be(this.cssVars),role:this.role},{default:so(()=>[te(()=>Kt(s.cover,d=>{const c=this.cover?qt([this.cover()]):d;return c&&(k(),pe("div",{class:le(`${r}-card-cover`),role:"none"},[te(()=>c)],2))})),te(()=>Kt(s.header,d=>{const{title:c}=this,u=c?qt(typeof c=="function"?[c()]:[c]):d;return u||this.closable?(k(),pe("div",{key:1,class:le([`${r}-card-header`,this.headerClass]),style:Be(this.headerStyle),role:"heading"},[Pe("div",{class:le(`${r}-card-header__main`),role:"heading"},[te(()=>u)],2),te(()=>Kt(s["header-extra"],f=>{const h=this.headerExtra?qt([this.headerExtra()]):f;return h&&(k(),pe("div",{class:le([`${r}-card-header__extra`,this.headerExtraClass]),style:Be(this.headerExtraStyle)},[te(()=>h)],6))})),te(()=>this.closable&&(k(),ae(al,{clsPrefix:r,class:le(`${r}-card-header__close`),onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0},null,8,["clsPrefix","class","onClick","focusable"])))],6)):null})),te(()=>Kt(s.default,d=>{const{content:c}=this,u=c?qt(typeof c=="function"?[c()]:[c]):d;return u?this.contentScrollable?(k(),ae(ll,{key:2,class:le(`${r}-card__content-scrollbar`),contentClass:[`${r}-card-content`,this.contentClass],contentStyle:this.contentStyle},{default:()=>u},1032,["class","contentClass","contentStyle"])):(k(),pe("div",{key:3,class:le([`${r}-card-content`,this.contentClass]),style:Be(this.contentStyle),role:"none"},[te(()=>u)],6)):null})),te(()=>Kt(s.footer,d=>{const c=this.footer?qt([this.footer()]):d;return c&&(k(),pe("div",{class:le([`${r}-card__footer`,this.footerClass]),style:Be(this.footerStyle),role:"none"},[te(()=>c)],6))})),te(()=>Kt(s.action,d=>{const c=this.action?qt([this.action()]):d;return c&&(k(),pe("div",{class:le(`${r}-card__action`),role:"none"},[te(()=>c)],2))}))]),_:2},1032,["class","style","role"])}});function xh(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const Pw={name:"Carousel",common:V,self:xh};var Tw={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function yh(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:l,borderColor:a,primaryColor:s,textColor2:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:p}=e;return{...Tw,labelLineHeight:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:l,checkMarkColorDisabledChecked:l,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${F(s,{alpha:.3})}`,textColor:d,textColorDisabled:l}}const Kr={name:"Checkbox",common:V,self:yh},Yr={name:"Checkbox",common:j,self(e){const{cardColor:t}=e,o=yh(e);return o.color="#0000",o.checkMarkColor=t,o}};function Ew(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:d,errorColor:c,errorColorHover:u,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:g,clearColorHover:b,clearColorPressed:C,placeholderColor:y,placeholderColorDisabled:T,fontSizeTiny:P,fontSizeSmall:A,fontSizeMedium:M,fontSizeLarge:v,heightTiny:w,heightSmall:_,heightMedium:H,heightLarge:O,fontWeight:$}=e;return{...rh,fontSizeTiny:P,fontSizeSmall:A,fontSizeMedium:M,fontSizeLarge:v,heightTiny:w,heightSmall:_,heightMedium:H,heightLarge:O,borderRadius:t,fontWeight:$,textColor:o,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:T,color:n,colorDisabled:i,colorActive:n,border:`1px solid ${f}`,borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${F(l,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${F(l,{alpha:.2})}`,caretColor:l,arrowColor:h,arrowColorDisabled:p,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${d}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${F(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${F(s,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:s,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${F(c,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${F(c,{alpha:.2})}`,colorActiveError:n,caretColorError:c,clearColor:g,clearColorHover:b,clearColorPressed:C}}const qa={name:"InternalSelection",common:V,peers:{Popover:Tr},self:Ew};function Sh(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:l,textColorDisabled:a,dividerColor:s,hoverColor:d,fontSizeMedium:c,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:c,optionColorHover:d,optionTextColor:n,optionTextColorActive:l,optionTextColorDisabled:a,optionCheckMarkColor:l,loadingColor:l,columnWidth:"180px"}}const _w={name:"Cascader",common:V,peers:{InternalSelectMenu:Gn,InternalSelection:qa,Scrollbar:st,Checkbox:Kr,Empty:zo},self:Sh},$w={name:"Cascader",common:j,peers:{InternalSelectMenu:Un,InternalSelection:Oa,Scrollbar:gt,Checkbox:Yr,Empty:zo},self:Sh},wh=new WeakSet;function Z_(e){wh.add(e)}function Rw(e){return!wh.has(e)}const Ph={name:"Code",common:j,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function Iw(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:n}}const Th={name:"Code",common:V,self:Iw};function Eh(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:l}=e;return{titleFontSize:l,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:l,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const Aw={name:"Collapse",common:V,self:Eh},Hw={name:"Collapse",common:j,self:Eh};function _h(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const Mw={name:"CollapseTransition",common:V,self:_h};function $h(e){const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:l,heightSmall:a,heightMedium:s,heightLarge:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${l}`,heightSmall:a,heightMedium:s,heightLarge:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}}const zw={name:"ColorPicker",common:V,peers:{Input:Lt,Button:bt},self:$h},Fw={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(zn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var Bw=Ae({name:"ConfigProvider",alias:["App"],props:Fw,setup(e){const t=De(Yo,null),o=X(()=>{const{theme:g}=e;if(g===null)return;const b=t?.mergedThemeRef.value;return g===void 0?b:b===void 0?g:Object.assign({},b,g)}),r=X(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t?.mergedThemeOverridesRef.value;{const b=t?.mergedThemeOverridesRef.value;return b===void 0?g:dn({},b,g)}}}),n=ca(()=>{const{namespace:g}=e;return g===void 0?t?.mergedNamespaceRef.value:g}),i=ca(()=>{const{bordered:g}=e;return g===void 0?t?.mergedBorderedRef.value:g}),l=X(()=>{const{icons:g}=e;return g===void 0?t?.mergedIconsRef.value:g}),a=X(()=>{const{componentOptions:g}=e;return g!==void 0?g:t?.mergedComponentPropsRef.value}),s=X(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:"n"}),d=X(()=>{const{rtl:g}=e;if(g===void 0)return t?.mergedRtlRef.value;const b={};for(const C of g)b[C.name]=Vl(C),C.peers?.forEach(y=>{y.name in b||(b[y.name]=Vl(y))});return b}),c=X(()=>e.breakpoints||t?.mergedBreakpointsRef.value),u=e.inlineThemeDisabled||t?.inlineThemeDisabled,f=e.preflightStyleDisabled||t?.preflightStyleDisabled,h=e.styleMountTarget||t?.styleMountTarget,p=X(()=>{const{value:g}=o,{value:b}=r,C=b&&Object.keys(b).length!==0,y=g?.name;return y?C?`${y}-${An(JSON.stringify(r.value))}`:y:C?An(JSON.stringify(r.value)):""});return at(Yo,{mergedThemeHashRef:p,mergedBreakpointsRef:c,mergedRtlRef:d,mergedIconsRef:l,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:X(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t?.mergedLocaleRef.value:g}),mergedDateLocaleRef:X(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t?.mergedDateLocaleRef.value:g}),mergedHljsRef:X(()=>{const{hljs:g}=e;return g===void 0?t?.mergedHljsRef.value:g}),mergedKatexRef:X(()=>{const{katex:g}=e;return g===void 0?t?.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1,styleMountTarget:h}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){return this.abstract?this.$slots.default?.():Rt(this.as||this.tag,{class:`${this.mergedClsPrefix||"n"}-config-provider`},this.$slots.default?.())}});const Rh={name:"Popselect",common:j,peers:{Popover:Er,InternalSelectMenu:Un}};function Ka(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,o)}function kw(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Ih={name:"Popselect",common:V,peers:{Popover:Tr,InternalSelectMenu:Gn},self:kw};function Ah(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Hh={name:"Select",common:V,peers:{InternalSelection:qa,InternalSelectMenu:Gn},self:Ah},Mh={name:"Select",common:j,peers:{InternalSelection:Oa,InternalSelectMenu:Un},self:Ah};var Dw={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function zh(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:l,borderColor:a,borderRadius:s,fontSizeTiny:d,fontSizeSmall:c,fontSizeMedium:u,heightTiny:f,heightSmall:h,heightMedium:p}=e;return{...Dw,buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:l,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:s,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:d,itemFontSizeMedium:c,itemFontSizeLarge:u,jumperFontSizeSmall:d,jumperFontSizeMedium:c,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:l}}const Fh={name:"Pagination",common:V,peers:{Select:Hh,Input:Lt,Popselect:Ih},self:zh},Bh={name:"Pagination",common:j,peers:{Select:Mh,Input:Dt,Popselect:Rh},self(e){const{primaryColor:t,opacity3:o}=e,r=F(t,{alpha:Number(o)}),n=zh(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}};var Lw={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function kh(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:l,borderRadius:a,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:u,heightSmall:f,heightMedium:h,heightLarge:p,heightHuge:g,textColor3:b,opacityDisabled:C}=e;return{...Lw,optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:g,borderRadius:a,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:F(t,{alpha:.1}),groupHeaderTextColor:b,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:C}}const Ya={name:"Dropdown",common:V,peers:{Popover:Tr},self:kh},Xa={name:"Dropdown",common:j,peers:{Popover:Er},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=kh(e);return n.colorInverted=r,n.optionColorActive=F(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}};var Dh={padding:"8px 14px"};const sl={name:"Tooltip",common:j,peers:{Popover:Er},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return{...Dh,borderRadius:t,boxShadow:o,color:r,textColor:n}}};var Lh={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};const Oh={name:"Radio",common:j,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return{...Lh,labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${F(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:l,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${F(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s}}},Wh={name:"Ellipsis",common:j,peers:{Tooltip:sl}};function Ow(e){const{borderRadius:t,boxShadow2:o,baseColor:r}=e;return{...Dh,borderRadius:t,boxShadow:o,color:Y(r,"rgba(0, 0, 0, .85)"),textColor:r}}const cl={name:"Tooltip",common:V,peers:{Popover:Tr},self:Ow},Nh={name:"Ellipsis",common:V,peers:{Tooltip:cl}};function Ww(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return{...Lh,labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${F(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:l,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${F(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s}}const jh={name:"Radio",common:V,self:Ww};var Nw={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function Vh(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:l,tableColorHover:a,iconColor:s,primaryColor:d,fontWeightStrong:c,borderRadius:u,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,dividerColor:b,heightSmall:C,opacityDisabled:y,tableColorStriped:T}=e;return{...Nw,actionDividerColor:b,lineHeight:f,borderRadius:u,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,borderColor:Y(t,b),tdColorHover:Y(t,a),tdColorSorting:Y(t,a),tdColorStriped:Y(t,T),thColor:Y(t,l),thColorHover:Y(Y(t,l),a),thColorSorting:Y(Y(t,l),a),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:c,thButtonColorHover:a,thIconColor:s,thIconColorActive:d,borderColorModal:Y(o,b),tdColorHoverModal:Y(o,a),tdColorSortingModal:Y(o,a),tdColorStripedModal:Y(o,T),thColorModal:Y(o,l),thColorHoverModal:Y(Y(o,l),a),thColorSortingModal:Y(Y(o,l),a),tdColorModal:o,borderColorPopover:Y(r,b),tdColorHoverPopover:Y(r,a),tdColorSortingPopover:Y(r,a),tdColorStripedPopover:Y(r,T),thColorPopover:Y(r,l),thColorHoverPopover:Y(Y(r,l),a),thColorSortingPopover:Y(Y(r,l),a),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:d,loadingSize:C,opacityLoading:y}}const jw={name:"DataTable",common:V,peers:{Button:bt,Checkbox:Kr,Radio:jh,Pagination:Fh,Scrollbar:st,Empty:zo,Popover:Tr,Ellipsis:Nh,Dropdown:Ya},self:Vh},Vw={name:"DataTable",common:j,peers:{Button:Tt,Checkbox:Yr,Radio:Oh,Pagination:Bh,Scrollbar:gt,Empty:wr,Popover:Er,Ellipsis:Wh,Dropdown:Xa},self(e){const t=Vh(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}};function Gh(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:l}}const Gw={name:"Icon",common:V,self:Gh},Uw={name:"Icon",common:j,self:Gh};var qw={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Uh(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:l,boxShadow2:a,borderRadius:s,iconColor:d,iconColorDisabled:c}=e;return{...qw,panelColor:t,panelBoxShadow:a,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:l,itemBorderRadius:s,borderRadius:s,iconColor:d,iconColorDisabled:c}}const qh={name:"TimePicker",common:V,peers:{Scrollbar:st,Button:bt,Input:Lt},self:Uh},Kh={name:"TimePicker",common:j,peers:{Scrollbar:gt,Button:Tt,Input:Dt},self:Uh};var Kw={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function Yh(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:l,borderRadiusSmall:a,iconColor:s,iconColorDisabled:d,textColor1:c,dividerColor:u,boxShadow2:f,borderRadius:h,fontWeightStrong:p}=e;return{...Kw,itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:l,itemColorIncluded:F(l,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:l,itemBorderRadius:a,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:c,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:p,scrollItemBorderRadius:h,iconColor:s,iconColorDisabled:d}}const Yw={name:"DatePicker",common:V,peers:{Input:Lt,Button:bt,TimePicker:qh,Scrollbar:st},self:Yh},Xw={name:"DatePicker",common:j,peers:{Input:Dt,Button:Tt,TimePicker:Kh,Scrollbar:gt},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=Yh(e);return n.itemColorDisabled=Y(t,o),n.itemColorIncluded=F(r,{alpha:.15}),n.itemColorHover=Y(t,o),n}};var Zw={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function Xh(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:l,dividerColor:a,borderRadius:s,fontWeightStrong:d,lineHeight:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h}=e;return{...Zw,lineHeight:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:r,thColor:Y(n,t),thColorModal:Y(i,t),thColorPopover:Y(l,t),thTextColor:r,thFontWeight:d,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:l,borderColor:Y(n,a),borderColorModal:Y(i,a),borderColorPopover:Y(l,a),borderRadius:s}}const Jw={name:"Descriptions",common:V,self:Xh},Qw={name:"Descriptions",common:j,self:Xh},Zh="n-dialog-provider",eP="n-dialog-api",tP="n-dialog-reactive-list";var oP={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function Jh(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,infoColor:d,successColor:c,warningColor:u,errorColor:f,primaryColor:h,dividerColor:p,borderRadius:g,fontWeightStrong:b,lineHeight:C,fontSize:y}=e;return{...oP,fontSize:y,lineHeight:C,border:`1px solid ${p}`,titleTextColor:t,textColor:o,color:r,closeColorHover:a,closeColorPressed:s,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeBorderRadius:g,iconColor:h,iconColorInfo:d,iconColorSuccess:c,iconColorWarning:u,iconColorError:f,borderRadius:g,titleFontWeight:b}}const Za={name:"Dialog",common:V,peers:{Button:bt},self:Jh},Qh={name:"Dialog",common:j,peers:{Button:Tt},self:Jh},dl={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},ep=tl(dl);var rP=D([oe("dialog",` + --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); + word-break: break-word; + line-height: var(--n-line-height); + position: relative; + background: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + margin: auto; + border-radius: var(--n-border-radius); + padding: var(--n-padding); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[re("icon",` + color: var(--n-icon-color); + `),ne("bordered",` + border: var(--n-border); + `),ne("icon-top",[re("close",` + margin: var(--n-close-margin); + `),re("icon",` + margin: var(--n-icon-margin); + `),re("content",` + text-align: center; + `),re("title",` + justify-content: center; + `),re("action",` + justify-content: center; + `)]),ne("icon-left",[re("icon",` + margin: var(--n-icon-margin); + `),ne("closable",[re("title",` + padding-right: calc(var(--n-close-size) + 6px); + `)])]),re("close",` + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + z-index: 1; + `),re("content",` + font-size: var(--n-font-size); + margin: var(--n-content-margin); + position: relative; + word-break: break-word; + `,[ne("last","margin-bottom: 0;")]),re("action",` + display: flex; + justify-content: flex-end; + `,[D("> *:not(:last-child)",` + margin-right: var(--n-action-space); + `)]),re("icon",` + font-size: var(--n-icon-size); + transition: color .3s var(--n-bezier); + `),re("title",` + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),oe("dialog-icon-container",` + display: flex; + justify-content: center; + `)]),Ku(oe("dialog",` + width: 446px; + max-width: calc(100vw - 32px); + `)),oe("dialog",[Yu(` + width: 446px; + max-width: calc(100vw - 32px); + `)])]);const nP={default:()=>(k(),ae(Hi)),info:()=>(k(),ae(Hi)),success:()=>(k(),ae(Na)),warning:()=>(k(),ae(ja)),error:()=>(k(),ae(Wa))},tp=Ae({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:{...Pt.props,...dl},slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Mo(e),i=qr("Dialog",n,o),l=X(()=>{const{iconPlacement:h}=e;return h||t?.value?.Dialog?.iconPlacement||"left"});function a(h){const{onPositiveClick:p}=e;p&&p(h)}function s(h){const{onNegativeClick:p}=e;p&&p(h)}function d(){const{onClose:h}=e;h&&h()}const c=Pt("Dialog","-dialog",rP,Za,e,o),u=X(()=>{const{type:h}=e,p=l.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:b,lineHeight:C,border:y,titleTextColor:T,textColor:P,color:A,closeBorderRadius:M,closeColorHover:v,closeColorPressed:w,closeIconColor:_,closeIconColorHover:H,closeIconColorPressed:O,closeIconSize:$,borderRadius:K,titleFontWeight:ie,titleFontSize:be,padding:ce,iconSize:J,actionSpace:ue,contentMargin:He,closeSize:$e,[p==="top"?"iconMarginIconTop":"iconMargin"]:Le,[p==="top"?"closeMarginIconTop":"closeMargin"]:ke,[Ce("iconColor",h)]:nt}}=c.value,Je=jo(Le);return{"--n-font-size":b,"--n-icon-color":nt,"--n-bezier":g,"--n-close-margin":ke,"--n-icon-margin-top":Je.top,"--n-icon-margin-right":Je.right,"--n-icon-margin-bottom":Je.bottom,"--n-icon-margin-left":Je.left,"--n-icon-size":J,"--n-close-size":$e,"--n-close-icon-size":$,"--n-close-border-radius":M,"--n-close-color-hover":v,"--n-close-color-pressed":w,"--n-close-icon-color":_,"--n-close-icon-color-hover":H,"--n-close-icon-color-pressed":O,"--n-color":A,"--n-text-color":P,"--n-border-radius":K,"--n-padding":ce,"--n-line-height":C,"--n-border":y,"--n-content-margin":He,"--n-title-font-size":be,"--n-title-font-weight":ie,"--n-title-text-color":T,"--n-action-space":ue}}),f=r?Pr("dialog",X(()=>`${e.type[0]}${l.value[0]}`),u,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:l,mergedTheme:c,handlePositiveClick:a,handleNegativeClick:s,handleCloseClick:d,cssVars:r?void 0:u,themeClass:f?.themeClass,onRender:f?.onRender}},render(){const{bordered:e,mergedIconPlacement:t,cssVars:o,closable:r,showIcon:n,title:i,content:l,action:a,negativeText:s,positiveText:d,positiveButtonProps:c,negativeButtonProps:u,handlePositiveClick:f,handleNegativeClick:h,mergedTheme:p,loading:g,type:b,mergedClsPrefix:C}=this;this.onRender?.();const y=n?(k(),ae(il,{key:1,clsPrefix:C,class:le(`${C}-dialog__icon`)},{default:()=>Kt(this.$slots.icon,P=>P||(this.icon?Ht(this.icon):nP[this.type]()))},1032,["clsPrefix","class"])):null,T=Kt(this.$slots.action,P=>P||d||s||a?(k(),pe("div",{key:2,class:le([`${C}-dialog__action`,this.actionClass]),style:Be(this.actionStyle)},[te(()=>P||(a?[Ht(a)]:[this.negativeText&&(k(),ae(fa,Bt({key:3,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,ghost:!0,size:"small",onClick:h},u),{default:()=>Ht(this.negativeText)},1040,["theme","themeOverrides","onClick"])),this.positiveText&&(k(),ae(fa,Bt({key:4,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:g,loading:g,onClick:f},c),{default:()=>Ht(this.positiveText)},1040,["theme","themeOverrides","type","disabled","loading","onClick"]))]))],6)):null);return k(),pe("div",{class:le([`${C}-dialog`,this.themeClass,this.closable&&`${C}-dialog--closable`,`${C}-dialog--icon-${t}`,e&&`${C}-dialog--bordered`,this.rtlEnabled&&`${C}-dialog--rtl`]),style:Be(o),role:"dialog"},[r?(k(),pe(Te,{key:0},[te(()=>Kt(this.$slots.close,P=>{const A=[`${C}-dialog__close`,this.rtlEnabled&&`${C}-dialog--rtl`];return P?(k(),pe("div",{key:5,class:le(A)},[te(()=>P)],2)):(k(),ae(al,{key:6,focusable:this.closeFocusable,clsPrefix:C,class:le(A),onClick:this.handleCloseClick},null,8,["focusable","clsPrefix","class","onClick"]))}))],64)):te(()=>null),n&&t==="top"?(k(),pe("div",{key:2,class:le(`${C}-dialog-icon-container`)},[te(()=>y)],2)):te(()=>null),Pe("div",{class:le([`${C}-dialog__title`,this.titleClass]),style:Be(this.titleStyle)},[n&&t==="left"?(k(),pe(Te,{key:0},[te(()=>y)],64)):te(()=>null),te(()=>wc(this.$slots.header,()=>[Ht(i)]))],6),Pe("div",{class:le([`${C}-dialog__content`,T?"":`${C}-dialog__content--last`,this.contentClass]),style:Be(this.contentStyle)},[te(()=>wc(this.$slots.default,()=>[Ht(l)]))],6),te(()=>T)],6)}});function op(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const rp={name:"Modal",common:V,peers:{Scrollbar:st,Dialog:Za,Card:Ga},self:op},iP={name:"Modal",common:j,peers:{Scrollbar:gt,Dialog:Qh,Card:Ch},self:op},ha="n-draggable";function lP(e,t){let o;const r=se(null),n=se(null),i=X(()=>e.value!==!1),l=X(()=>i.value?ha:""),a=X(()=>{const c=e.value;return c===!0||c===!1?!0:c?c.bounds!=="none":!0});function s(c){const u=c.querySelector(`.${ha}`);if(!u||!l.value)return;let f=0,h=0,p=0,g=0,b=0,C=0,y,T=null,P=null;function A(_){_.preventDefault(),y=_;const{x:H,y:O,right:$,bottom:K}=c.getBoundingClientRect();if(h=H,g=O,f=window.innerWidth-$,p=window.innerHeight-K,r.value!==null&&n.value!==null)C=r.value,b=n.value;else{const{left:ie,top:be}=c.style;b=+be.slice(0,-2),C=+ie.slice(0,-2)}}function M(){P&&(r.value=P.x,n.value=P.y,P=null),T=null}function v(_){if(!y)return;const{clientX:H,clientY:O}=y;let $=_.clientX-H,K=_.clientY-O;a.value&&($>f?$=f:-$>h&&($=-h),K>p?K=p:-K>g&&(K=-g)),P={x:$+C,y:K+b},T||(T=requestAnimationFrame(M))}function w(){y=void 0,T&&(cancelAnimationFrame(T),T=null),P&&(r.value=P.x,n.value=P.y,P=null),gr(()=>{t.onEnd(c)})}St("mousedown",u,A),St("mousemove",window,v),St("mouseup",window,w),o=()=>{T&&cancelAnimationFrame(T),rt("mousedown",u,A),rt("mousemove",window,v),rt("mouseup",window,w)}}function d(){o&&(o(),o=void 0),r.value=null,n.value=null}return cu(d),{stopDrag:d,startDrag:s,draggableRef:i,draggableClassRef:l,dragX:r,dragY:n}}const Ja=se(!1);function Jc(){Ja.value=!0}function Qc(){Ja.value=!1}let nn=0;function aP(){return Kn&&(yr(()=>{nn||(window.addEventListener("compositionstart",Jc),window.addEventListener("compositionend",Qc)),nn++}),Gt(()=>{nn<=1?(window.removeEventListener("compositionstart",Jc),window.removeEventListener("compositionend",Qc),nn=0):nn--})),Ja}const Qa={...Ua,...dl},sP=tl(Qa),cP=sP.filter(e=>e!=="onClose"&&e!=="onPositiveClick"&&e!=="onNegativeClick");var dP=Ae({name:"ModalBody",inheritAttrs:!1,slots:Object,props:{show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1},maskHidden:Boolean,...Qa,onClickoutside:{type:Function,required:!0},onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function},setup(e){const t=se(null),o=se(null),r=se(e.show),n=se(null),i=se(null),l=De(Bf);let a=null;Nt(uo(e,"show"),H=>{H&&(a=l.getMousePosition())},{immediate:!0});const{stopDrag:s,startDrag:d,draggableRef:c,draggableClassRef:u,dragX:f,dragY:h}=lP(uo(e,"draggable"),{onEnd:H=>{C(H)}}),p=X(()=>mr([e.titleClass,u.value])),g=X(()=>mr([e.headerClass,u.value]));Nt(uo(e,"show"),H=>{H&&(r.value=!0)}),tw(X(()=>e.blockScroll&&r.value));function b(){if(l.transformOriginRef.value==="center")return"";const{value:H}=n,{value:O}=i;return H===null||O===null?"":o.value?`${H}px ${O+o.value.containerScrollTop}px`:""}function C(H){if(l.transformOriginRef.value==="center"||!a||!o.value)return;const O=o.value.containerScrollTop,{offsetLeft:$,offsetTop:K}=H,ie=a.y,be=a.x;n.value=-($-be),i.value=-(K-ie-O),H.style.transformOrigin=b()}function y(H){gr(()=>{C(H)})}function T(H){H.style.transformOrigin=b(),e.onBeforeLeave()}function P(H){const O=H;c.value&&d(O),e.onAfterEnter&&e.onAfterEnter(O)}function A(){r.value=!1,n.value=null,i.value=null,s(),e.onAfterLeave()}function M(){const{onClose:H}=e;H&&H()}function v(){e.onNegativeClick()}function w(){e.onPositiveClick()}const _=se(null);return Nt(_,H=>{H&&gr(()=>{const O=H.el;O&&t.value!==O&&(t.value=O)})}),at(I1,t),at(R1,null),at(H1,null),{mergedTheme:l.mergedThemeRef,appear:l.appearRef,isMounted:l.isMountedRef,mergedClsPrefix:l.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,draggableClass:u,displayed:r,childNodeRef:_,cardHeaderClass:g,dialogTitleClass:p,handlePositiveClick:w,handleNegativeClick:v,handleCloseClick:M,handleAfterEnter:P,handleAfterLeave:A,handleBeforeLeave:T,handleEnter:y,dragX:f,dragY:h}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterEnter:r,handleAfterLeave:n,handleBeforeLeave:i,preset:l,mergedClsPrefix:a,dragX:s,dragY:d}=this,c={...t};s!==null&&d!==null&&(c.style=Be([c.style,{left:`${s}px`,top:`${d}px`}]));let u=null;if(!l){if(u=N1("default",e.default,{draggableClass:this.draggableClass}),!u){zn("modal","default slot is empty");return}u=go(u),u.props=Bt({class:`${a}-modal`},c,u.props||{})}return this.displayDirective==="show"||this.displayed||this.show?Gl((k(),pe("div",{key:1,role:"none",class:le([`${a}-modal-body-wrapper`,this.maskHidden&&`${a}-modal-body-wrapper--mask-hidden`])},[(k(),ae(ll,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>(k(),ae(xS,{disabled:!this.trapFocus||this.maskHidden,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>(k(),ae(br,{name:"fade-in-scale-up-transition",appear:this.appear??this.isMounted,onEnter:o,onAfterEnter:r,onAfterLeave:n,onBeforeLeave:i},{default:()=>{const f=[[ks,this.show]];return f.push([U1,this.onClickoutside,void 0,{capture:!0}]),Gl(this.preset==="confirm"||this.preset==="dialog"?(k(),ae(tp,Bt({key:2},c,{class:[`${a}-modal`,c.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},kn(this.$props,ep),{titleClass:this.dialogTitleClass,"aria-modal":"true"}),Bn(e),1040,["class","theme","themeOverrides","titleClass"])):this.preset==="card"?(k(),ae(ww,Bt({key:3},c,{ref:"bodyRef",class:[`${a}-modal`,c.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},kn(this.$props,yw),{headerClass:this.cardHeaderClass,"aria-modal":"true",role:"dialog"}),Bn(e),1040,["class","theme","themeOverrides","headerClass"])):this.childNodeRef=u,f)}},1032,["appear","onEnter","onAfterEnter","onAfterLeave","onBeforeLeave"]))},1032,["disabled","active","onEsc","autoFocus"]))},1032,["theme","themeOverrides","contentClass"]))],2)),[[ks,this.displayDirective==="if"||this.displayed||this.show]]):null}}),uP=D([oe("modal-container",` + position: fixed; + left: 0; + top: 0; + height: 0; + width: 0; + display: flex; + `),oe("modal-mask",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + `,[jf({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),oe("modal-body-wrapper",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: visible; + `,[oe("modal-scroll-content",` + min-height: 100%; + display: flex; + position: relative; + `),ne("mask-hidden","pointer-events: none;",[oe("modal-scroll-content",[D("> *",` + pointer-events: all; + `)])])]),oe("modal",` + position: relative; + align-self: center; + color: var(--n-text-color); + margin: auto; + box-shadow: var(--n-box-shadow); + `,[JS({duration:".25s",enterScale:".5"}),D(`.${ha}`,` + cursor: move; + user-select: none; + `)])]);const fP={...Pt.props,show:Boolean,showMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},...Qa,draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function,unstableShowMask:{type:Boolean,default:void 0}};var hP=Ae({name:"Modal",inheritAttrs:!1,props:fP,slots:Object,setup(e){const t=se(null),{mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Mo(e),i=Pt("Modal","-modal",uP,rp,e,o),l=Wf(64),a=Of(),s=Nf(),d=e.internalDialog?De(Zh,null):null,c=e.internalModal?De(A1,null):null,u=aP();function f(M){const{onUpdateShow:v,"onUpdate:show":w,onHide:_}=e;v&&cr(v,M),w&&cr(w,M),_&&!M&&_(M)}function h(){const{onClose:M}=e;M?Promise.resolve(M()).then(v=>{v!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:M}=e;M?Promise.resolve(M()).then(v=>{v!==!1&&f(!1)}):f(!1)}function g(){const{onNegativeClick:M}=e;M?Promise.resolve(M()).then(v=>{v!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:M,onBeforeHide:v}=e;M&&cr(M),v&&v()}function C(){const{onAfterLeave:M,onAfterHide:v}=e;M&&cr(M),v&&v()}function y(M){const{onMaskClick:v}=e;v&&v(M),e.maskClosable&&t.value?.contains(Da(M))&&f(!1)}function T(M){e.onEsc?.(),e.show&&e.closeOnEsc&&Rw(M)&&(u.value||f(!1))}at(Bf,{getMousePosition:()=>{const M=d||c;if(M){const{clickedRef:v,clickedPositionRef:w}=M;if(v.value&&w.value)return w.value}return l.value?a.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:s,appearRef:uo(e,"internalAppear"),transformOriginRef:uo(e,"transformOrigin")});const P=X(()=>{const{common:{cubicBezierEaseOut:M},self:{boxShadow:v,color:w,textColor:_}}=i.value;return{"--n-bezier-ease-out":M,"--n-box-shadow":v,"--n-color":w,"--n-text-color":_}}),A=n?Pr("theme-class",void 0,P,e):void 0;return{mergedClsPrefix:o,namespace:r,isMounted:s,containerRef:t,presetProps:X(()=>kn(e,cP)),handleEsc:T,handleAfterLeave:C,handleClickoutside:y,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:h,cssVars:n?void 0:P,themeClass:A?.themeClass,onRender:A?.onRender}},render(){const{mergedClsPrefix:e}=this;return k(),ae(X1,{to:this.to,show:this.show},{default:()=>{this.onRender?.();const{showMask:t}=this;return Gl((k(),pe("div",{role:"none",ref:"containerRef",class:le([`${e}-modal-container`,this.themeClass,this.namespace]),style:Be(this.cssVars)},[t?(k(),ae(br,{name:"fade-in-transition",key:"mask",appear:this.internalAppear??this.isMounted},{default:()=>this.show?(k(),pe("div",{key:1,"aria-hidden":!0,class:le(`${e}-modal-mask`)},null,2)):null},1032,["appear"])):te(()=>null),(k(),ae(dP,Bt({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll,maskHidden:!t},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:this.handleClickoutside}),Bn(this.$slots),1040,["style","displayDirective","show","preset","autoFocus","trapFocus","draggable","blockScroll","maskHidden","onEsc","onClose","onNegativeClick","onPositiveClick","onBeforeLeave","onAfterEnter","onAfterLeave","onClickoutside"]))],6)),[[Y1,{zIndex:this.zIndex,enabled:this.show}]])}},1032,["to","show"])}});const pP={...dl,onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},zIndex:Number,onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function,draggable:[Boolean,Object]},mP=Ae({name:"DialogEnvironment",props:{...pP,internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}},setup(e){const t=se(!0);function o(){const{onInternalAfterLeave:c,internalKey:u,onAfterLeave:f}=e;c&&c(u),f&&f()}function r(c){const{onPositiveClick:u}=e;u?Promise.resolve(u(c)).then(f=>{f!==!1&&s()}):s()}function n(c){const{onNegativeClick:u}=e;u?Promise.resolve(u(c)).then(f=>{f!==!1&&s()}):s()}function i(){const{onClose:c}=e;c?Promise.resolve(c()).then(u=>{u!==!1&&s()}):s()}function l(c){const{onMaskClick:u,maskClosable:f}=e;u&&(u(c),f&&s())}function a(){const{onEsc:c}=e;c&&c()}function s(){t.value=!1}function d(c){t.value=c}return{show:t,hide:s,handleUpdateShow:d,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:l,handleEsc:a}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:r,handleAfterLeave:n,handleMaskClick:i,handleEsc:l,to:a,zIndex:s,maskClosable:d,show:c}=this;return k(),ae(hP,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:l,to:a,zIndex:s,maskClosable:d,onAfterEnter:this.onAfterEnter,onAfterLeave:n,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:u})=>(k(),ae(tp,kn(this.$props,ep,{titleClass:mr([this.titleClass,u]),style:this.internalStyle,onClose:r,onNegativeClick:o,onPositiveClick:e}),null,16))},1032,["show","onUpdateShow","onMaskClick","onEsc","to","zIndex","maskClosable","onAfterEnter","onAfterLeave","closeOnEsc","blockScroll","autoFocus","transformOrigin","draggable"])}}),gP={injectionKey:String,to:[String,Object]},bP=Ae({name:"DialogProvider",props:gP,setup(){const e=se([]),t={};function o(a={}){const s=nl(),d=xr({...a,key:s,destroy:()=>{t[`n-dialog-${s}`]?.hide()}});return e.value.push(d),d}const r=["info","success","warning","error"].map(a=>s=>o({...s,type:a}));function n(a){const{value:s}=e;s.splice(s.findIndex(d=>d.key===a),1)}function i(){Object.values(t).forEach(a=>{a?.hide()})}const l={create:o,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return at(eP,l),at(Zh,{clickedRef:Wf(64),clickedPositionRef:Of()}),at(tP,e),{...l,dialogList:e,dialogInstRefs:t,handleAfterLeave:n}},render(){return Rt(Te,null,[this.dialogList.map(e=>Rt(mP,Ka(e,["destroy","style"],{internalStyle:e.style,to:this.to,ref:t=>{t===null?delete this.dialogInstRefs[`n-dialog-${e.key}`]:this.dialogInstRefs[`n-dialog-${e.key}`]=t},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave}))),this.$slots.default?.()])}}),vP={name:"LoadingBar",common:j,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function CP(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const xP={name:"LoadingBar",common:V,self:CP};var yP={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function np(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:l,errorColor:a,warningColor:s,popoverColor:d,boxShadow2:c,primaryColor:u,lineHeight:f,borderRadius:h,closeColorHover:p,closeColorPressed:g}=e;return{...yP,closeBorderRadius:h,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:d,colorInfo:d,colorSuccess:d,colorError:d,colorWarning:d,colorLoading:d,boxShadow:c,boxShadowInfo:c,boxShadowSuccess:c,boxShadowError:c,boxShadowWarning:c,boxShadowLoading:c,iconColor:t,iconColorInfo:i,iconColorSuccess:l,iconColorWarning:s,iconColorError:a,iconColorLoading:u,closeColorHover:p,closeColorPressed:g,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:u,lineHeight:f,borderRadius:h,border:"0"}}const ip={name:"Message",common:V,self:np},SP={name:"Message",common:j,self:np},wP="n-message-api",lp="n-message-provider",ap={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,spinProps:Object,onClose:Function,onMouseenter:Function,onMouseleave:Function};var PP=D([oe("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[MS({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),oe("message",` + box-sizing: border-box; + display: flex; + align-items: center; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier), + margin-bottom .3s var(--n-bezier); + padding: var(--n-padding); + border-radius: var(--n-border-radius); + border: var(--n-border); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--n-max-width); + color: var(--n-text-color); + background-color: var(--n-color); + box-shadow: var(--n-box-shadow); + `,[re("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),re("icon",` + position: relative; + margin: var(--n-icon-margin); + height: var(--n-icon-size); + width: var(--n-icon-size); + font-size: var(--n-icon-size); + flex-shrink: 0; + `,[["default","info","success","warning","error","loading"].map(e=>ne(`${e}-type`,[D("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),D("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Mi()])]),re("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[D("&:hover",` + color: var(--n-close-icon-color-hover); + `),D("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),oe("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[ne("top",` + top: 12px; + left: 0; + right: 0; + `),ne("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),ne("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),ne("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),ne("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),ne("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]);const TP=["onMouseenter","onMouseleave"],EP={info:()=>(k(),ae(Hi)),success:()=>(k(),ae(Na)),warning:()=>(k(),ae(ja)),error:()=>(k(),ae(Wa)),default:()=>null};var _P=Ae({name:"Message",props:{...ap,render:Function},setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Mo(e),{props:r,mergedClsPrefixRef:n}=De(lp),i=qr("Message",o,n),l=Pt("Message","-message",PP,ip,r,n),a=X(()=>{const{type:d}=e,{common:{cubicBezierEaseInOut:c},self:{padding:u,margin:f,maxWidth:h,iconMargin:p,closeMargin:g,closeSize:b,iconSize:C,fontSize:y,lineHeight:T,borderRadius:P,border:A,iconColorInfo:M,iconColorSuccess:v,iconColorWarning:w,iconColorError:_,iconColorLoading:H,closeIconSize:O,closeBorderRadius:$,[Ce("textColor",d)]:K,[Ce("boxShadow",d)]:ie,[Ce("color",d)]:be,[Ce("closeColorHover",d)]:ce,[Ce("closeColorPressed",d)]:J,[Ce("closeIconColor",d)]:ue,[Ce("closeIconColorPressed",d)]:He,[Ce("closeIconColorHover",d)]:$e}}=l.value;return{"--n-bezier":c,"--n-margin":f,"--n-padding":u,"--n-max-width":h,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":C,"--n-close-icon-size":O,"--n-close-border-radius":$,"--n-close-size":b,"--n-close-margin":g,"--n-text-color":K,"--n-color":be,"--n-box-shadow":ie,"--n-icon-color-info":M,"--n-icon-color-success":v,"--n-icon-color-warning":w,"--n-icon-color-error":_,"--n-icon-color-loading":H,"--n-close-color-hover":ce,"--n-close-color-pressed":J,"--n-close-icon-color":ue,"--n-close-icon-color-pressed":He,"--n-close-icon-color-hover":$e,"--n-line-height":T,"--n-border-radius":P,"--n-border":A}}),s=t?Pr("message",X(()=>e.type[0]),a,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:r,handleClose(){e.onClose?.()},cssVars:t?void 0:a,themeClass:s?.themeClass,onRender:s?.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:o,content:r,mergedClsPrefix:n,cssVars:i,themeClass:l,onRender:a,icon:s,handleClose:d,showIcon:c}=this;a?.();const u=e||$P(s,t,n,this.spinProps);return k(),pe("div",{class:le([`${n}-message-wrapper`,l]),onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:Be([{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i])},[e?(k(),pe(Te,{key:0},[te(()=>e(this.$props))],64)):(k(),pe("div",{key:1,class:le([`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`])},[u&&c?(k(),pe("div",{key:0,class:le(`${n}-message__icon ${n}-message__icon--${t}-type`)},[je(Va,null,{default:()=>u},1024)],2)):te(()=>null),Pe("div",{class:le(`${n}-message__content`)},[te(()=>Ht(r))],2),o?(k(),ae(al,{key:2,clsPrefix:n,class:le(`${n}-message__close`),onClick:d,absolute:!0},null,8,["clsPrefix","class","onClick"])):te(()=>null)],2))],46,TP)}});function $P(e,t,o,r){if(typeof e=="function")return e();{const n=t==="loading"?(k(),ae(sh,Bt({key:1,clsPrefix:o,strokeWidth:24,scale:.85},r),null,16,["clsPrefix"])):EP[t]();return n?(k(),ae(il,{clsPrefix:o,key:t},{default:()=>n},1032,["clsPrefix"])):null}}var RP=Ae({name:"MessageEnvironment",props:{...ap,duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function},setup(e){let t=null;const o=se(!0);bo(()=>{r()});function r(){const{duration:c}=e;c&&(t=window.setTimeout(l,c))}function n(c){c.currentTarget===c.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(c){c.currentTarget===c.target&&r()}function l(){const{onHide:c}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),c&&c()}function a(){const{onClose:c}=e;c&&c(),l()}function s(){const{onAfterLeave:c,onInternalAfterLeave:u,onAfterHide:f,internalKey:h}=e;c&&c(),u&&u(h),f&&f()}function d(){l()}return{show:o,hide:l,handleClose:a,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:n,deactivate:d}},render(){return k(),ae(ih,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{_:1,default:Tf(()=>[this.show?(k(),ae(_P,{key:1,content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0},null,8,["content","type","icon","showIcon","closable","spinProps","onClose","onMouseenter","onMouseleave"])):null])},8,["onAfterLeave","onLeave"])}});const IP={...Pt.props,to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]};var AP=Ae({name:"MessageProvider",props:IP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r=se({}),n={create(s,d){return i(s,{type:"default",...d})},info(s,d){return i(s,{...d,type:"info"})},success(s,d){return i(s,{...d,type:"success"})},warning(s,d){return i(s,{...d,type:"warning"})},error(s,d){return i(s,{...d,type:"error"})},loading(s,d){return i(s,{...d,type:"loading"})},destroyAll:a};at(lp,{props:e,mergedClsPrefixRef:t}),at(wP,n);function i(s,d){const c=nl(),u=xr({...d,content:s,key:c,destroy:()=>{r.value[c]?.hide()}}),{max:f}=e;return f&&o.value.length>=f&&o.value.shift(),o.value.push(u),u}function l(s){o.value.splice(o.value.findIndex(d=>d.key===s),1),delete r.value[s]}function a(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:o,handleAfterLeave:l},n)},render(){return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.messageList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[Pe("div",{class:le([`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass]),key:"message-container",style:Be(this.containerStyle)},[te(()=>this.messageList.map(e=>(k(),ae(RP,Bt({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},Ka(e,["destroy"],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}),null,16,["internalKey","onInternalAfterLeave","duration","keepAliveOnHover","closable"]))))],6)],8,["to"])):te(()=>null)],64)}}),HP={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function sp(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:l,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:d,closeColorHover:c,closeColorPressed:u,textColor1:f,textColor3:h,borderRadius:p,fontWeightStrong:g,boxShadow2:b,lineHeight:C,fontSize:y}=e;return{...HP,borderRadius:p,lineHeight:C,fontSize:y,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:l,textColor:t,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:d,closeBorderRadius:p,closeColorHover:c,closeColorPressed:u,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:b}}const cp={name:"Notification",common:V,peers:{Scrollbar:st},self:sp},MP={name:"Notification",common:j,peers:{Scrollbar:gt},self:sp},ul="n-notification-provider",zP=Ae({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=De(ul),r=se(null);return Gi(()=>{o.value>0?r?.value?.classList.add("transitioning"):r?.value?.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:r,placement:n}=this;return k(),pe("div",{ref:"selfRef",class:le([`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${n}`])},[t?(k(),ae(ll,{key:0,theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},Bn(e),1032,["theme","themeOverrides"])):(k(),pe(Te,{key:1},[te(()=>e.default?.())],64))],2)}}),FP=["onMouseenter","onMouseleave"],BP={info:()=>(k(),ae(Hi)),success:()=>(k(),ae(Na)),warning:()=>(k(),ae(ja)),error:()=>(k(),ae(Wa)),default:()=>null},es={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},kP=tl(es),DP=Ae({name:"Notification",props:es,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:r}=De(ul),{inlineThemeDisabled:n,mergedRtlRef:i}=Mo(),l=qr("Notification",i,t),a=X(()=>{const{type:d}=e,{self:{color:c,textColor:u,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:b,actionTextColor:C,borderRadius:y,headerFontWeight:T,boxShadow:P,lineHeight:A,fontSize:M,closeMargin:v,closeSize:w,width:_,padding:H,closeIconSize:O,closeBorderRadius:$,closeColorHover:K,closeColorPressed:ie,titleFontSize:be,metaFontSize:ce,descriptionFontSize:J,[Ce("iconColor",d)]:ue},common:{cubicBezierEaseOut:He,cubicBezierEaseIn:$e,cubicBezierEaseInOut:Le}}=o.value,{left:ke,right:nt,top:Je,bottom:vt}=jo(H);return{"--n-color":c,"--n-font-size":M,"--n-text-color":u,"--n-description-text-color":b,"--n-action-text-color":C,"--n-title-text-color":g,"--n-title-font-weight":T,"--n-bezier":Le,"--n-bezier-ease-out":He,"--n-bezier-ease-in":$e,"--n-border-radius":y,"--n-box-shadow":P,"--n-close-border-radius":$,"--n-close-color-hover":K,"--n-close-color-pressed":ie,"--n-close-icon-color":f,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":p,"--n-line-height":A,"--n-icon-color":ue,"--n-close-margin":v,"--n-close-size":w,"--n-close-icon-size":O,"--n-width":_,"--n-padding-left":ke,"--n-padding-right":nt,"--n-padding-top":Je,"--n-padding-bottom":vt,"--n-title-font-size":be,"--n-meta-font-size":ce,"--n-description-font-size":J}}),s=n?Pr("notification",X(()=>e.type[0]),a,r):void 0;return{mergedClsPrefix:t,showAvatar:X(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:l,cssVars:n?void 0:a,themeClass:s?.themeClass,onRender:s?.onRender}},render(){const{mergedClsPrefix:e}=this;return this.onRender?.(),k(),pe("div",{class:le([`${e}-notification-wrapper`,this.themeClass]),onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:Be(this.cssVars)},[Pe("div",{class:le([`${e}-notification`,this.rtlEnabled&&`${e}-notification--rtl`,this.themeClass,{[`${e}-notification--closable`]:this.closable,[`${e}-notification--show-avatar`]:this.showAvatar}]),style:Be(this.cssVars)},[this.showAvatar?(k(),pe("div",{key:0,class:le(`${e}-notification__avatar`)},[this.avatar?(k(),pe(Te,{key:0},[te(()=>Ht(this.avatar))],64)):(k(),pe(Te,{key:1},[this.type!=="default"?(k(),ae(il,{key:0,clsPrefix:e},{default:()=>BP[this.type]()},1032,["clsPrefix"])):te(()=>null)],64))],2)):te(()=>null),this.closable?(k(),ae(al,{key:2,clsPrefix:e,class:le(`${e}-notification__close`),onClick:this.handleCloseClick},null,8,["clsPrefix","class","onClick"])):te(()=>null),Pe("div",{ref:"bodyRef",class:le(`${e}-notification-main`)},[this.title?(k(),pe("div",{key:0,class:le(`${e}-notification-main__header`)},[te(()=>Ht(this.title))],2)):te(()=>null),this.description?(k(),pe("div",{key:2,class:le(`${e}-notification-main__description`)},[te(()=>Ht(this.description))],2)):te(()=>null),this.content?(k(),pe("pre",{key:4,class:le(`${e}-notification-main__content`)},[te(()=>Ht(this.content))],2)):te(()=>null),this.meta||this.action?(k(),pe("div",{key:6,class:le(`${e}-notification-main-footer`)},[this.meta?(k(),pe("div",{key:0,class:le(`${e}-notification-main-footer__meta`)},[te(()=>Ht(this.meta))],2)):te(()=>null),this.action?(k(),pe("div",{key:2,class:le(`${e}-notification-main-footer__action`)},[te(()=>Ht(this.action))],2)):te(()=>null)],2)):te(()=>null)],2)],6)],46,FP)}}),LP={...es,duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function},OP=Ae({name:"NotificationEnvironment",props:{...LP,internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}},setup(e){const{wipTransitionCountRef:t}=De(ul),o=se(!0);let r=null;function n(){o.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,gr(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function l(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:b}=e;g&&g(),b&&b()}function a(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function d(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:b,internalKey:C}=e;p&&p(),g(C),b&&b()}function c(){const{duration:p}=e;p&&(r=window.setTimeout(n,p))}function u(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function f(p){p.currentTarget===p.target&&c()}function h(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&n()}):n()}return bo(()=>{e.duration&&(r=window.setTimeout(n,e.duration))}),{show:o,hide:n,handleClose:h,handleAfterLeave:d,handleLeave:s,handleBeforeLeave:a,handleAfterEnter:l,handleBeforeEnter:i,handleMouseenter:u,handleMouseleave:f}},render(){return k(),ae(br,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{_:1,default:Tf(()=>this.show?(k(),ae(DP,Bt({key:1},kn(this.$props,kP,{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?jc([this.handleMouseenter,this.onMouseenter]):this.onMouseenter,onMouseleave:this.duration&&this.keepAliveOnHover?jc([this.handleMouseleave,this.onMouseleave]):this.onMouseleave})),null,16)):null)},8,["onBeforeEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}});var WP=D([oe("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[D(">",[oe("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[D(">",[oe("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[oe("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),ne("top, top-right, top-left",` + top: 12px; + `,[D("&.transitioning >",[oe("scrollbar",[D(">",[oe("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),ne("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[D(">",[oe("scrollbar",[D(">",[oe("scrollbar-container",[oe("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),oe("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),ne("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[oe("notification-wrapper",[D("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),ne("top",[oe("notification-wrapper",` + transform-origin: top center; + `)]),ne("bottom",[oe("notification-wrapper",` + transform-origin: bottom center; + `)]),ne("top-right, bottom-right",[oe("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),ne("top-left, bottom-left",[oe("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),ne("top-right",` + right: 0; + `,[si("top-right")]),ne("top-left",` + left: 0; + `,[si("top-left")]),ne("bottom-right",` + right: 0; + `,[si("bottom-right")]),ne("bottom-left",` + left: 0; + `,[si("bottom-left")]),ne("scrollable",[ne("top-right",` + top: 0; + `),ne("top-left",` + top: 0; + `),ne("bottom-right",` + bottom: 0; + `),ne("bottom-left",` + bottom: 0; + `)]),oe("notification-wrapper",` + margin-bottom: 12px; + `,[D("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),D("&.notification-transition-leave-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-in), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `),D("&.notification-transition-enter-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-out), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `)]),oe("notification",` + background-color: var(--n-color); + color: var(--n-text-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + font-family: inherit; + font-size: var(--n-font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + width: var(--n-width); + max-width: calc(100vw - 16px - 16px); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[re("avatar",[oe("icon",` + color: var(--n-icon-color); + `),oe("base-icon",` + color: var(--n-icon-color); + `)]),ne("show-avatar",[oe("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),ne("closable",[oe("notification-main",[D("> *:first-child",` + padding-right: 20px; + `)]),re("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),re("avatar",` + position: absolute; + top: var(--n-padding-top); + left: var(--n-padding-left); + width: 28px; + height: 28px; + font-size: 28px; + display: flex; + align-items: center; + justify-content: center; + `,[oe("icon","transition: color .3s var(--n-bezier);")]),oe("notification-main",` + padding-top: var(--n-padding-top); + padding-bottom: var(--n-padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[oe("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[re("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),re("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),re("header",` + font-weight: var(--n-title-font-weight); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),re("description",` + margin-top: 8px; + font-size: var(--n-description-font-size); + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),re("content",` + line-height: var(--n-line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-text-color); + `,[D("&:first-child","margin: 0;")])])])])]);function si(e){const t=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return oe("notification-wrapper",[D("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${t}, 0); + `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(0, 0); + `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-DDTKasOc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-DxAvLK-K.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-DmAH_wjP.js"),__vite__mapDeps([11,12,13,4,2,14,15,6,16,17,18,19,20])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-CmWF_crB.js"),__vite__mapDeps([21,1,2,4,22,13,5,23,24,12,25,14,26,27,3,28,15,16,9,29,30]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-jJfZw4rU.js"),__vite__mapDeps([31,25,13,4,2,1,23,24,5,14,26,15,17,32,9,29,33]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-FDkwT__U.js"),__vite__mapDeps([34,25,13,4,2,1,22,35,28,14,26,9,18,36]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-9SicR-7j.js"),__vite__mapDeps([37,25,13,4,2,1,3,5,26,19,29,16,32,9,38]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-C7TOuPQQ.js"),__vite__mapDeps([39,1,2,25,13,4,35,5,28,27,15,16,9,40]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,D_ as A,fa as B,mr as C,Mg as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,eP as b0,c2 as b1,Kt as b2,nl as b3,Nc as b4,Hi as b5,ja as b6,Wa as b7,Na as b8,An as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,wp as ba,Mi as bb,Ku as bc,Rv as bd,DS as be,Va as bf,Kr as bg,hi as bh,J_ as bi,hT as bj,Io as bk,X_ as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Gt as z}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/login-art-Ct2j8Jdv.jpg b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/login-art-Ct2j8Jdv.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6aa66a13ec4845e09645eec3a724c8d226e9b2ad GIT binary patch literal 40790 zcmb5VcT|&I&^QW5CmyTN0AnK4;=|zA|)tIib}7c zNk9-pN~lT~5OANo-}l=+d-kurJ|sE0_s-0nK6A~#>3=^!blU1#>L4;Q5Qq%;2l_V) zQUOt3qM)F-L07_`@}QPa@VGBD87($j+(S((5PmYekS%$&?DckZyW zvxAwqc(~YjSlQUwNI=MdtyeBzxj{vBgAGCtVf+6*{(S+_Q&E5}fi978fyn8}F42?y z>jK>dNd2Dy`agq={1OE~B{0eI|Cs~*&*Z;vAeu{LAac4(big?;6yA9!(0rh(d!PfM zRtCV3momhM3)pI6K<1HLF&NlY;DtYyE5-;!0r@{zKsPp8(+p#I>K>byz9i$<=6VZz z2?3?X&zMk=zkGF-98?&Trujn9?@9 zd&3g&>nAcn!S!W6vtT1PA!xceRq0C*&3kbdC^S7*Y;>4f!g7>EL^?SPgaN$-fh@@R zV>w9QfN1AdnXYqI1&2qQ=PlDubZR6SU^j1BEpt0t)+B~JeVh(db z5a=ak+*RN+1%^Dig7QDMGGvkvZu{Py=4K_Rn8S2_uJ`B3LH5-^3(`+LOA zuF2eiekHrl`~W}!E|i40S{%SIBhpdn-he1-0oWu!u^a&FDJsr;3)fB*qF3e8%3*n5_a|2UFM8w9jh_peNKkVI`W+cb?APYht%zgff2qwu_JE8Zkj5v_ z)ffaxYe1k^4*<{?(W~o&YZu1R>>47WHFERt*^t(cQz2%BdR}QNNwmPbScbw8GV z?~Y{kmS1;zB4GEaB=b{kf-=mcB9enEQ`;N_hy$RHsupBOtqHIM1Y(2%kQJX67`z}# zqj<{|vhrnyiTBqR`e)4#=6ng%`LlBKHbsMX+S%DFe=HsZ@0a;3Tty30VN5G(VKHyh zRIY2;b?a~nJVqK;YVpVER=j#ZE&wf!CGnOD1fqWcBGW8BykTJ0wHaXSZoz<-N}Nw( zFSZPtY1hJao{hBFrR}Cdie^KWG>$Hfj0Ra+paFEhttR zM;=l85@cj#!VfSUL()$YQy6JS?;ZqKqx1FA1=#uKjirYcxvj2+W?}5*<+*Rad-c*j zF0` zEdKKRI8Oncgg-bt+0Hv!U5Bo&)9CfoONdnr%~=ks<34yv#1E?tbf=c#aOSm?6o3UX z#E>KcD9-~j81RAied0fmEQY_{jBx}wRm+OUeYeDFd4-O`wFTOuYWWub>9zXL`xm{h z(Tzl6qk{FkkGC6OID(eL-2e_r=+I=Q9?dWlI3QK}7;$X-mVWI-; z=)WUv33ZG>;^>u2g@@|{iOB7Vs6+h1)=9yyc2RA&P>)a>&s!5qyGJMYLPU`BUbABT z6?Jx*+TxPXLA5~@u$PxKwC4qHorK$UH2^2|W5Ws@nXPWc%UC2J7Z4~01DL5fNTKid zex@Pa`&g(+dc8%rb7TGIwFUOdiNTHS{p`8so#5Yf`%Qmak@GS^^)OdTN^(I>j3krz zv#xoky8KnQ>+1W!$+UbVSyC}DL!Q#O{{#cX6-p{V19Tv?xcg@-={JQlQry!)h6H_! z=08F0W*s%rQ#tF)D~qQJ!AHk=ZJ{=blU?=lkKa?KYbP5Sl}w^#CM}%LM?zU15}syNw+z`l&ziX2{m_LZw!-1PKPSN*_ECXL^3B8j z*kMNg%*jmbpb-%5dR}B>osqdC?j!pmkA`rbTu+pY&_Wy(rP@GF;F&vDQhK5-UZe?49bh^19f^9GB2H&x|7nhu}u9xkw#A1csJZtu6pqZ?mG51r1lh1TQ_PTP_R(I!W%RRih>6*FegF0BcK=P(MBcp9u5`ASG|TE_&d|8qb(#;1+8pK;=@^s*lz~6i z@|))9po;MMwItf_f7y}@dVA5``yTgC_LhDhNc-V)OW?AaosOM`vC!~MsSiHLufxq> zyY+Kds*-FvRssV9I#eb;Zy%f`1cb2SGX^^flg36Q6r&ufSzM3F#rg!4s{hchVEBd4?svm%J9s-ii{_oH5-j9C;vd0&7Jcw z+KJt>H0=;sHGX#d~|%==bP8_-K3H01pN5^X`#jb zf<@!VAIBj7Uhra*gDibHsok7U`=zS`^>c{t>;p%tW&d8h2-*4jJ(z7lqu;-64!txo5#5ob zFjubIl}oPYh_&}8Nh3(K?cCUs7JP?8=F z=509j>}i##sb=D=HuLp!mp&$bTWJF{qtlI!osI(uOy01|n|e57gKTS~=C!DVkeMd!K@pWj`t zPue&QQ#}d|`n>#?P4UHQhvdQm6I)GOjpuOw{dV>t;`X^g?w+-^!tbxg9pZR&i!6&56hj*xN$e;`Y?^Sm|X ztR)B#j21@%QHg~ptA*9;28?r!_-?!4(Po={lK%OJ!9l{zI-&6M+G&_dP25rlZOuaC z$ZpWd?)u6p%ke)@kad{Zz`{?WUZ`gw{-p2&LEzpw56+bmWXLd6axNerMla%+J;l49 z?|i?<53mEkNO4c-l?=nLMpj5x``tg>J0K`J+weU-xj;`GvuiZI-th6={BdF#S`%GZ zkI#({6wmY-ck0=d7H`$-_mX4*(qtgWh--O|4o{`YE?D`jOf-gg?>|2b{Ij}q+IG`;x%`4)73WR*~Qimt+Z^akotEaL77YiNx|3C&EL#GNJ zv+K*pa|$)l=#Tw{2Cx^4vd;285|+;XK-}{bV$_2Unsm>n-I1KN++7GwIH_AFc(m(m zEKP*ksJG^Qz!Q3VeP#oDwJO(pXBW`rEf?J7ui4}AwAp{t@BNLj;J+k@d_eEWGV&|* zuc$_U9kjU_2?!qG;4bhcm@_aT(lBCXpErpHaz0_EtLB{8ZwodG)gkTpv<2(1@t`o7 z!!|{}@5_g7<>+PaQ)_GM4#p59K8!bLNj|{2%;`iw?f&YTwa4p%#wvK*uYJ6;-tK~j z1>wfu{SSi^ax?O*yUo=hCxNM_vLX8IH0P|LeC6oIpU$G$e^q6IFrOgwk844YSdrbS zr7dvBP=$$_DxgZaUGt?&K?B5hs%U8Hs^v=dIL1m`OTZf=V3$&9T+_Jv+p@#pK#}wC zoL%%+!0*rnMWXj1v~Yk`XRC8v#i@4 zWT2?kPC<>v?Dl@^U*g$Gq1lT0Nk@I^Na!0A42Yr#0@0?_d$F=b5VgJUPnT{CZnTgi z5Wx6#;(F8G-a$awZl1G3V)lq5;eK|L)<>T)8OfX2$tq)EL1E331nP-=gYu&=zO~Ke z^UQW8!ogWk=UnTBjbhPiZ*hO2z7Jtgo|ULC+}|p#|2$LD_`Yji%P(SKapUCr^6q(( zQwTd>N7r#!+WxtL^FZ^?MVXHH6e$_5c*!42t)Yj4N5@g^q4&4?vNUTvyWZa4 z4wb$0)3bk|Nd?7@#^~UXHp#)C`+qHWXMYm6yzrj+Avm`$M{7HqYtNfbP6QaD6;q7I~VrR53S72Zibnc4wS}RBFkA+h$}ZZ}%dl1??&I@$SJc59sor_~gmDpP1l=Iq@$%QZdA zhkjUB+3Sxl*XfDri3!2|#CfX`C0YpHl4c|%Jf+jD*&V`t2Mwb|mdlT<$}nAZNB8PeVTx$D2$KRjL#KvgSdxPJ3aR z54u*ach}vCFOZ$S%fG)7dpn8=maTWrSq}$cJ2~qsBR=!?C3tHejN1afT%ka#`k`lI zarbu9Qug-%uMKM%-Gj+~4=a0?fx(HyRKqlc<~7I%u5FoF>Ia~kU*QvIom__187A}5 zu6f=P-Xg}X2;3S)18`j5PRxi$$x5KBj9VFYCCFoGI3!<0&gyTq4}W<{xzmFuOZfJ|yxBORq+1;t?4mb9lgtX!@gYv)dHL-a$!Fe10$R!{EJxgQi`Z z@?`_z%F!Gd9p2?hQmdsj=gH8K9^y+1YtWjCa}EppyU3q?qQ}W1yVUxj|nK=iAF%l`6$iEoYrsU-N{iuED{?> zNj|sEh;UTPsdGvT?EqU|6xyT^EalsSKFaNn=kCew=MIfq>uJ4Bzx0S$7Q!~~?`Co!MjmW}xDMd7aiwY*!f}#5#+rJnlF#ZpY;F}k-Sss8 z9q${je=amwaE#6=E4Q{WS}H6ozvI)4^BwqQIsAB}^kHsOuZB*Zeztnx>d4d5VMh;F zFGZb)>rpDPU|OnXFC#Ge7?9z-_IGI zs&@KN75}Rm?8R+VFX^~aFk|Vnm9zBDbU_L%e2}v!yXe2aop-PztJNw^GrU4dMaBBD zgS;g;6NnO}CHjSA&am*Xq>qOmcFH$%08j)+5&?oGnO*;B1*v*EIk25jGz$)H4GC=S zWn-=X+FV)M($uRnz9a%9oWmVXe|kTM)XBAl+!49Apz+k}seN= zFWpcb9NcENA`jG2&ngl%5ZfKm5|Bxo*RJGe>76}c<0N0Qb7Kj=zEIfRxxRz9Vf$Ei7Th+SFL&#Y zv%Fl5kqx7KFrPjWsJ2!TfmZ5L0Nxs~%~qn3r#Qk(nzy!eXv{~#+D!U>k>H~Sldm~; zGgYZ3l>mRt1(mx5O_4^Mvdten^ju{&Cl362d;iE6SOX#NGht$+d$C(SYlkQ=pLd4y zJ#Y^9#IEqR$Rwsw&Rz;!F>Y@?Z9a4x{)nGg=zQmM8g%mg5Ak5cEy~GRCp)_;9%$5e zmc#z^$}ioiOZe&6Bb|3ZDp>SZ-NcRD#1TG{ytqkm2^;xg{1b*5_XgKo?8fR0lA=Kn zBdCJ7ni+W$(fn=cjyzk!&i?5)LgCkg-JSdX7fEr;`#_VXP_&@e(|xzB%|IYTdO+Ub z?!khjf!hA8JQLm{sA+QBA9!Z(Z{j^dn1&2YcWH}ivOPiz+MRU@gZC^F_fy^c)q14y z^6-2+zic2EA9eyLB6Z{>v%O1G`@QReyYYcJfK^u_KOm9r6?$TVYK@Zo0`8&@15WS% zS-24raN?=xOv~;%Q9g?wTwf&&t#_gu`r!oKcVD|D`X&0tuUi_MF%Hi?d{J#GJO7aQ zZdt$DO;%TJt_$tqRo${^Jki1XOFn4NxApvnwE2{iQyDTJhN`4?sB^%%3Gw2fsokmF z`$(Vf*mdE|)s2TwDE3Q6=$KyjMb9Bjh8$#y$S^MPAbjY2)cu(P=A#N|dYiN5AK zB+eYbYZKsLs)HE@59?php^o!u$IfkdsvEi zedokLE8Q#AG9+%j!3;VoBPcm41h0noMcky!WZb0Ktd?!wSk)uKeLn}vOcYbh@?bN& zGU%0pC-H8T$Oa33C(KK#h9`qgzpOrd+r`U#Qp?ww$qQ^gTwq(cU!LRkb(K&kZzMh) zS)tA8SmoH*+Z8@JJo zhsbe2r%cRs=xQyTQfEHKZL~EK3tmvt96$*AR=*?*S`YC9GN&^8&H3(;loWs$7tS2S zPWky5P1hrUBQRvbUVv0YARaiLcR5p0l z%Qq4U`Cq<>PrYeyy%XTujPntX!^_vha=DCzD-n*2CXKQ>Sl4{{p0$NX+kHRt9=}Hf@IT}D* z^uCng5$3`fqQ!+(mLJeL`&@n%f&fh-^&Uoc4?Ucy}gP?$?;>S%(WH5p?wbRYt z(mw`Ks8K0TYT5Fpt~?zUWO(xiq$Kbd6mD1=Ga>sxWOsck&{OWP^B!udEAvgGq$Jit zYDhKJHJ2qh9l}BJMzB;Ze7ar>@fgz`(>B7Ll{ph|_bNySA}1%ibcq7EX9XV8AS0*0 zL_x>E!TI1W-0(3aScwb5EtU-2#Zm#+&1971|3E93P&PJRtXJrZ&b?zMfC zj`63xBoJ~~pyUYlDH|0PRg5;bjahpGN;OZt{hcFva*Rix+s4$*4ZPvv0(@1;pWsnw z%!BH3+wfLRo?1s8;531+OSx3o*5gVsnt2+Bj6Luq->%a~d<53R54Yzb;3Fq%<4KAbuVd?DoK|#J!RL|9)&9AQE#tj zR6EeR#id2NNfpNgY~{8=#&L9i@OjX{zWc1fvqLlVF^;D+q!d z3emfTkvvr8^i8Vku6elU+>`b1Y5)uftoBQ`_wVkdDqAoaaPvjiBx`wp78PM) z`7yC4n)d1Qx#}9MUf7v&F-Pw`y6nq#$qh~>3OT^6P<6YIL0S6zb&1F2sdtedt|!bB zmbqZvT(rRvt+K~1-Tmtls_g1?$@>Hq-X`QS62B)Xw+_$W-;-1olX)RI8DsAnr$rxK_(V?l%avXGS zR%6xd`YBMtC=1ld0$)F58>@@S{JQ7ID*Dr&qg z9k&)PQ~fk@y(O;98xndi`yYtk=`2&-z%*4Qukf>QW?wg#sH>0|=gA~Oja8rP`*`%A{vPQ^$m1D>pfPF_x`IJl;T0}8rI!Ua(ydypu`tQ%<0 zmQUXcv9wbU&e{49aGaC38a$ziz%ldXK_EBV4Ms4jIz*YoS~j%syjrf_9GPKklVVAk+dgaHBK#Tv~iW@Q-eT7AICaUH23?A6? zw)*m_aI4ELi;=uRjsO_}IV9#5X=rdH-Ty!)#1ELOc3DbuXg zA;=%`+}$0gFrwkT6}r`y)nL{C_JGi?D`&enUDCIj%3aA_q3WZGq#xirxz~kwWhioG zD;!!Gq1$p?EWOM#l!NMT47Efg-WTWTiul^U^%49NBi-7<9%h`E!yf0D2gKxS#+*-< z!-k#D)@iM{9`)lMW#f3Tlcq)E{xx9kE2Wvd!!^P1KpNg zG~=myogA|Hg2HaAFtvpxG$~vOnY?Wsz8>0g{8s1*gzA%yQ-5DjB`X^I55#Nk(DTuk zfBKZE_3bI*>?B7h5b#uXiF>|U+iDQ=!I=?D7JC(;w$xu{m;~jCif!wUrnut_#_pIz z@x<-atc4=y{j?>inXsR*oHbLwmiq`cRt1l&HyX^vA00|naW|~vW@HuXl1|=&Uq?80 zKSMKyS#SRX6c;`fe`q!nmDh4!t zbJgg*;tmY|bZ0ERY+F82R1d2;+-hm-X$u6*oWB^=_4DD8lngD$>foXIDK{Te5?6Xn zeCb8GRo2G@Gi4@P0`Xl*BCP1tg9;#V(vcaLVC-)8*U z!4T1)29dOAK-$~yPM^a992taIrwn{x68}JNTSm{Izb`Z_y!>=LS1*3f&^<(KNiR5< zmwwZ=pXm@jb)D!f5Z0&n%CY+g8r0NrkbX+*5dA~+?DyHlQ?-ZN^i>JmnL}3Bw~p-D zGtbTSx)RNY(zzln8Mdw7wk%ZteB1EH*GuuejkX0RQwtlREk4xZa7ijsQq25sd+)AD zy4kx#o{udHjmm0wT8y@YJMu-{W@_T%a~RclCXuH>t~>U9|3DUwo*`|PcjLVpE#U3) z*Am$0d;ee>LOgwY6yx<{oXT$r(4NI|Ct+G@s|vLC?B!dSY)`i(Kc1*b!6K)NoNw%z zZrJ_<-3>Xd@+4L<84W7vo7SJWLB2so9zJK)hB8KA-O3@Bm7STWxk?S2Ll5Sb*HUHSbrQk)^PhX7vq5!aYY z!VQ769-UiVn1)oA`Ph^1Qhd^)g!ti1V}m9P5M6IvAyd_H(-6<@TShv@>c;mC{edzV z@?)YBxdA2iVmWDJ%P01uCAe{2!t^+isBcS^duD;{L zG9z@I%y2shy^b4eG}qw4mM*TVn^UtxU4?z1ME!E1?w-M!eNVd4a&!tU{~qgz26qYx zZ6?wY-3GkmMZ$HLygG`j@F{V~KnE!M;uVPfB{FM$|HGO#f%)@1Xzoi2~e(0-XC!sRYX5wiC>gJD&43D^5m-`&frG z*%7B1uNn<(Twqjq+HWtWH#~S&zS96ex9R3ldn%CdJCRXqC*iZbLF@O97y#r?28P=h zqxP7t*GsJR%VPq;PtW8GQQA?zG1uHvwdsH9)LxV`ZwvTVB&%%S`uNNQr@b(VVBVJT z<$-<}OMM>Z@Ha$_K5+uAO^0IO(%ImTaC04eN0ogZx?reD`aIThd#0m;i~e1?s2c6Y ze_xHO%$&>9nZ7UGkUnGNBhAt(L6)Bjf$a~Dnt<}`eu#D%bh+!TBEUm0_Wj7*X2ALu7*-05L*l#%FW z8YIS%GqvlYSxmf`4WU?7#rh&XK7it)inV+1-tSw8B#y$#&-C>CNiKcez_MbL@;Ah{ zKK*zf++XRFIen<71YEN_Js#Uuvkv&tnKTP^6Waj+rim~$Ant4P6kFKmGZO*1hv}$6 zB=jjVsI#2-raOv(nx)f4XZiJek&m#B;ykUlc6a-%q>w?JAz*P0ccU_;Z(B9^AnOxu z2Ve)^w9SLw51HZ;&pTxuY$oBE-ZHmtrXD*$_w4ekf1WkK6KIyb#ZF{cg2O`|T5s-~ z_h?GQt3T&Db-Z`LL*#J~xTLGXdO%G6CB5ALYjr8uHn=sIpoy=CryBIX=MnTZT} z%J8a?ZQ4=QK_FH`JjD@(LZK%dkFdD@<@lTR3hl-h_l6!hi>`>>UHSoNN9|Z9qeG+^ zI|XIS43(~~!OjPkiba(IE0c~+#(WhIK-EJ$UAYlS?qW>JbP=%(LOYTLMXZ9w%MpAP zXaVN&@Zvc(gv0je=uk>Mk89S7uC7H9l|^;;;b~H3FUuk=FSA@yUf&7=S`iC<+d<(p z!}b*-AtB-1`&W*+)FF^AvgO+!lFARlmXk~m{eN0=sEB!{_rB|h$vWREpii3E$M@4} zqqm~V)#xXbd^xFo$AGG|*vZnjPu9WefRhS$>W&-H5T9f7MQz%HrLpR~=vf3CQSvC>FVu-RZWDa9+EB88eQ$3rGssrEyv>o=qef<`ULX14oCeA}eV1x4h zcl{SE@(_vL(wPu`3uIq=BZEH{A09Ip$C=sH8s4pGGYT*8s_kyN*(yafrUK&zy zXWV76EJ0*qT`eze{v)`j#Cbe)Z2z(f2kt7#KLIY8CVl9%l>Ks&3K}V5wB!1I^fOD6 zhewM{Nl?Uc-&H8J--7y6!E7|e8(0E;pTJc>!uHPGA{h9d!=!=G(j}F(UtxHGIEdHV zq^H?sa%%w&-R?j5S#NO7T>UGBl*mrgE)4gFg6GmTH|RdlJGUeS&>|oX1U2wi$NpW4 z#|J|*`9tHUp)m4a4*9eva4t9lza}Q~D}+$c_~8c6``r{_8k=zIyni5-QAfqidNG9* z>6NT=u50~qI!Wvi&^eqB#%S5Lhlh)NhH3KD^93nOx2ggZgcY@V+Z(=g(dEUTbjmli zvQRxta;@fjJUWPTTJB`b3^T%+6QZ3tfB(h!^j|=*%igTL=>fL|brY$@?zsTDQA{-C zERR)nOKod#%lda9{|?`Tee$x8OcLkNiCxbOD_6LcOX4r;MAPMcLXb6{Sf}=MAX*|Q z#)ox8ZCm*jGxc*!_vlYTxLAX<+JTKzm-VD!&zk$w_~$@dM~zq#Dtb@0= zdmdU7KH6Jdg;MF1ovu}Py~&zP8Rni-J48BZ?W&UW&VFXwg2%A^{xwYOw)Rz(&U5yD zR-jG7zLy-?mT)kg^>GrR_PpYm?$LnD@|wYtd+HK{P-z`0Mu5RE+~16aC%s^lh`xQ; zl|9F&_CORvWkUD7fw?yHBEeY9;b%<8TD+pWdtF}u1Do+2o4Q=8##vN0&3fL5gF^tU zPE%KT=DAIvH{u~auX^Ei`s0d#-n>7z_VDiJW1qZOpb7Bqu0-Q39NYRY`s4`C=L_Eb z#CWX@d4lKXU;5UR)OEIYUC)5{t9Ij3%x-G81|v^bBm=)Plj+4J2i!l9YAG+w2QQjL zA%VI^E?*Ml^5fY()*F0aAhJJ`FP>%t&)$nsX8I|uy7v#HaZB@Pi9J*Lx2!dd`J|a0 zschk6h`pD1=~b6zO;>uwNj9tN^$Luc7~T2JISkNqVbuV~q^R9IW=Jj$RjqJG?;kVu ze&MRxXxYxd-GW-w$y<=XBA3S|gYLfhgMZ)AEy}w-4Z) zq7`{Douw(trvZKOo|T*-a``tMeF>BOC_l4FtuyKnXCO53kwO#bGC4W<{|2W2X|T~T z+&Z(GEGIz@1c2tx7E{>0Qg~@-GEMYTz}DF1yav%Y(NK#i3ECD zCOAw?x}Kk#1cE=o59kyPc(L$TyFZ(Yr0Vq&qZQx+j@~RNr9mm`p8gM{_NyBeA8L?5 zBh6JDh0@=9x27W?V$FCh`CE92&Ww7R{+^w^wE^n&>(CiK>*OW7m$f|=K`$1m9ig2y zSMMsw|FutAGgldpPM}asj!v9j{WHd>X#ZnO{go~K@sY|>H$%=VMf52&f!88f2+Y-` z<%v*Fd639lJGOppCJt57)r~uv|B6b<)O$Lnto-r~f5{_B`h>KcPIX?Pv}N<`TkQ50 z5{4KaZbTJ-PyeuOF_^x8r^-aq|*mj-LLnVh`X^ zXSB1^0QyO3e;Qi(i#UI4FvRqW#q!q(a$n=V$zIR2OsGhhUq-wc#{t$76387R!0W2= z>dm;T#5L+z`lJ~-|K7C%SZPbjVOp@CRAg+Z{l4ni7<-?}3GFExPr;tDiMC4rp#=Z( zN(Q>#a$qFka%#_B(Q=C*f3arDnvV)P4c7h?f+)e@CS{mv_jRk5flA6OGGV*pHj7Z4 zHLQ)eoX?hR@h(90_V6$3fdGUB+^j7)PO>0&|I|tko#B*G*WNJ5M6kJOe|scWBAv%b z;sz8VnGZ1&7ILmQ6{veK?m956wwnE10->H7+rO7?0g=c-xJ*6)+~B|;#^A1a|U?XljZpORge{FIWiHF6kH`suFA=8j})GV|nd++j1-2Oo+Bh zh&S-4ohal}`)$_R5ETLa7N-Lm#=uXGC@3$Hex(5nG7vpEC;TzcK~{QTh_Jl`=DI89 z^(v)^TiM9&*_%&`|JzBvtO#_H)t_rWKikP@SeX{jf0_W(y2|l=zsb<&!FxF@)SB!IF}pB%OcU)53OMjo3X6+e0h00yc(-n(#m!{5o%zIP$`SA4Lu?HZT z#y_?LCym5vrVVcN;(fl2_KG7ydyu8LY>pT1yIPivB6ZkfGpS>z5OG-PTMk?Q202)B znt!@J_w}!O3mzM><~poXU1{Ltt=DJr%5S)Xp)jrWKB1A8#F#8DF2NNOD|A%wy`LkY z9M6~d66BlrrIEqrWEZ8Us`Mwu8hcem$7bW-_)1USr)f}~)F?ee>F*n~6w=Hz^gI$Q z#qVWs9UDZ3=3EUCuVvwA6Rd(E9QofLbJ?Rx;{?pqk9c-cjDMIfEl@vpDO|`;Ci-6V zh6Rk)O~cwGCF@s<>9b{Xra_#G9|u*c8>XHT@Rz_6+<#a^RTXSE8L}IevvkXMLo|*f z(+Aj>J~V%K;)9WwI_|V_`#0(ecpw6^x{s+bV(T6avo%7W(MI_l+bxsir2(NdH2md9 z#*MdsnV}a$PRk`5Rqxga($@HWmv7>DDWga2KWu#M1-~BU3;m-_8n*9SIgqIf=bYhZ z(kF&tfIh?MK$ifIP4d^Iw@W02rl;fNfZtVmfH1Uu3}|xQ=iQ>QXNx=k=SoD8bBM1$ z>_R!LkA3G>|Kiz;v&(c5oyTmg(#H@^u^z=GVP+Q>d*%!1#npHN&e!Z+!OlC3Y$jh{ z6`e_EdyDCB*xi-=@pE6324EcF`?j z?c1-)d#w;VEul=8=N$X25N(uRx_FOEm8I8CSE(lT%wSidls~JGk6D#tDir4862VEO z?9bPgRTx#;&7YMOnURdd{YX<$<)lXKuwNmDMPPs~G%&sddto8GT`a(Ix~vF3W`j$| zv^)Jkp^*->oZX*#6K>=HQ_l)+oow*(BH%zS%lv4?s|!G|NZp?nx3AbY$IHtr6=0iF z`-bp2JFKu236Cf_C}-8CzK;} zd34ikMRtQM>WbmJcXxLFfdnHXboB+q4O_l2shaN{i(XpYIqv8!qEcq$yo`(P`s(}; z!rtZY?;p(GX~UHcls=qvS;~&JlQ2$f8q2PTL2l=df1sQGBo;*Ia`TMLy;e)18-r6X z+wUm$lfYa9UqNv$u_N^!TO|Z6@BuVyk=9C4WyxJ*CMr`GE5WaPKAG-;?}a6jz*EO_ zayfim^$)r$i6YuF@AO6=H-C9Xnt?|#D}R=brP-9IcX@4|RUieAw`XJi2jU^gi!Q5^ z=5DQhnU!kprR%idSk<9U<{tP?7|ND`Nd1{g`3v|qM<K zj51v|Qu#+#A$cRCxg&kY%bMFi=<-P5UNiTimm@mA>}wjjp=67SZ+w*c%SmOxBFfX# z{eDs^F6*_5ii)`c2kA{k<@$BH2wqO{dj^ptmN2wY>AkyZMl0j$E8k%GA4mCkM6L-W zq`vKBD3XFF(PX*Zb@`uRTZFlO9ef?Us_b9Ps>?A$5ii|B&!4i>!^3s?4c0@&XP@N_S0OgN5X<82&yLykca ztsT0^K*fYtPqpoAF7NaxNHmoSsCJP?568}$fU4HAKhmC!#{S37vA$t8pjx_o zWcD#B4qPJ*E{G;~R`7Jv<0NbPb)7@~*N{J->u17(=K*v-NVdyt3y+QCgl~;M=}~~$ z1B`ElCp`O4J0n(~QqM=VJucW%FcB=tV0fC*kfZ}{xljLHW-iik8MjB`{7O=%Y7dxM z*Nz6)MPW^1mx2K;_%4YCI&(uL?Izp#jVti)ob9jVDWG0ciVim(>A!gQs^dPuq0GT0 zU4u(BaK6ZDSTrvQJ7C{EwFHu7aD)qSoI8eG4~PECzm^N;^nBMm~mQTIMIZ%5>pW98JdOmliM=kwF@7ArX3k4xkUx(>rN` zv&FY?D|^*6z&YVbc-7;VnlY+f1^*erAUm@%of5^vr>7c<8XF8<$_!C$3DbMm44!qi z+J3wIJO3FV)E>p~tU`vw@G3@=xX*Qq`@xG85s_)3^#^tuqv^o4zsf?Z+ngEQn#y1I zx=-D89kPsUfPN+|7Aaim&xa=NezLuL3}4)f;Ap;KN+kgWv*PEG*WshGQ}-K-wm$tq zhRVd-GoKk2K#p%Sn!H)+m40=(30NPlY^iH@Sy?2c@FS&!3ce-Tyw2`!!v(`Ca1I4= zer0f17Oqe1EutdB-s!TriyJM8{~S2z=ZM{~+TFML6b;-S%3ZJ5_Ae>aFJgZ)MZtHK zsFe2dMhldSu0J=&^tE1Q0R~{c)YMcQnX1RB&PDRwqnf5Kd)1|eF7RACqGSMbd8w3b z7k5;4ir{@g&js#tu~?=H(I`CN2v??yg+=T{y}Ht(`s3u0iW2MXg&$y!`ZoiJx;os? z^j0Dx=a3(7H=mua&e}}Q;8KjT?X^!9uZ9yJCY;cIG;w8N{hIWXGgwFC7f+xSi~1AG ztmzq*FGQK&Vum#v-p%+hUK#j%9m{O%;nI?F6` z?=G69JL0$bYVs^SU1}0}L-F%YC6niz5^`|L#u?sID*fwoqO3!VA|D0H7@zY5P!5i+ zyvptAAwaBw;QV+&rBTB}^TE_&v5UAzUD6VdRf_p`U5NcCBsMAz9$OGC9qFv;v1=#) z=5JF7_}U;9=i{y*?s55AV%^IlUB!O5FQu;P9f{u#QKqa zJ26N_VKn*9@9n58%&!}n=2GDNhspmyt_NbaN8Am)CI@W$ zw-+fHlVhbn*V(zHTuT58Xd98dcIcH6I+Di%V#$}+x8N==N;FS@p1QmG)xT|1ZjrJZ z_x-)*X&+W3Nr{8!@TN_0j8}+0ytEhf) z`6!T4w4JPRY;dEDktq_LwnGZvB(nOcUt8C5(%Gq)kM1!|JNU)xg$|Bl?x8Oh->fvf zE5o!$NTL6MxK+`1+X)Y!9`T|_|FXT`9lLj5J0!+HJMSQww}A>8Y@aeX_A<`7cJZiOn+k6b+jL#TG^7 znqo&|)jxr~PfmFU_`^;Emuyl(>K5}4e7i=`6bjMAh#>$fHC+Tp{+d0VFg<50^^wA> zBwTu_z_T6uus1n@>Gh{Bi?n~05pH824+Nyv!;Z8H?W7Xe?c5qwJheGrM1H~KclheV zPVqP|t@ccYJF~f8&aYiiu*FT?vip3UM*E})U~v|8mk|#=w=PQv>UzlaBLQt|34eG- zIij*yGca~-)1F{pv!>+uTXdm}Q}WTwKTtTuH=Adp61`;ucek|=Xsh$rU1RXg@U1N_ z-uEG0wohqXRn`ts+1>O>(dz7KQ^LyjA?iiPDHIX4ma4H-JPgUrLK>5DQjWWIcLUx( zvNt`l9uE1koc^4zvDCAOwfYO*X6<6_Ad35l<=gl24KK}qAZqNp(A{?ziQhTLPWdq6 ze&NZILgFHD!2auFAkbr$iYEF`~;V--6V&B{&{)vtP-_aY`t~YlXn$ zr#~#5#}K?i*pU_Pg%_&UmABtdAIxoD6Yvg_$YE-upKPoacxzDiT(3mgQ~57qv1Inw zTG`H|!mdJ-6#NdY)s38j9^s<)sDXk4u-{rZ1AtDSE4DA9n>ip&o&EEA96LmMZeiiQ zj?1Cq|HagMM>W}O?Zcr+kq$l-K|%>28ajp+2u+Hh5%nlY69}LZq=~dZ6he~@N)aR? zsPKT&6hTUW&_fYKinP#`n$Qv;z;}DjyMF7-V&$KEGWX1^Vb8Vqb?rR|_pj2JC69Jb zKv7e?8_z!tMa5+yjMy8Dq*IfbAM)W#S{B2Tv*Vs5$=9DRdGqV-ucJ8mAK#C=9v*Q; z*+PE%Qsg;>Gz-tUcBcXBU!l3KNpT|D`^N%26&42H_mCToTGm0uj z6phA6!%LrbG@J$RNDepeT|20+{PG|B@Y7ea8$ zOA`8h{Xt{FyKnhGe%*1O`8as|;Gc8eRs1Cp^+G$Zh}W8W9yGV|+l#t1@FXQAQL=OL zFU3Z+DZr#9+`QR8+<*9>emY9Y+NlGi#34X>U%Y1#C;u@^-%#CfA zbL`^_o5R7+L$FWXd&+RrAsJ^8zaLd9@|SY<@+3MW0(7>4 zDo)-x+GRg+wdF#sQq4b_LXP);FaNfR8vFE2w(PM2d!^tNNrrEveXNBt@!BR`M}H{d z`$X}r(vl~dB`Y=xpI`IYrfDX97?;eck^43sC)u%ca8~W~d(q!8xcEOBpOjL18659g z_P@cPHm15pLSb?qk|!YIH2s3lBgx)~GjYbe-hC!3l0E1+K(vt5K4aQQFgXD=@9h}F z{$1NC#x-6P`C~HnZ9?SeZQ{yJPO}2Dj*c6@{nsvUl70AIDw>ff;(uOKIAM|QUM`)h z&_`w>4d9!nrGhup0r4q8w&;VK_+9zFSH_%HGdqy{ua*Yn_r>u|YyUYEtbcG$fnc2t zm41M{?w#}kUF#!~_W8*cyy@{fl~$7p>tL~<%CEFNm7%wfl3ay^6wRQ}%Z*Ca7JnY= zhO>VJva-U&@g`rz*Sx`7_rHpz?-*%R%D6~#-^a;Ta%(=Iem3Y}4Dh{jSBzk8?eVp0 zd_^7(3g=X`DKm=06lcfnb(*;64$gRn?pS?(>~|Y!^?m3NQ8|(+$lq>3wR&Zi!1~Y> zXD!vC&V$i<(c`S!N|ATem=>Z{esH;A5P4vJFLp<^mGesBfr5#}+ZhuFqlX_D$)ECn zP3sG>;zTV_JtUK&v7zky_k)9T@@Ad`T+utlE6QFMxsrNN@*VfPSiKGe59BTjyx6(; z``_=5YbT%>@X+wh2CCbX|`eU!%5$$F#&jmzQWki&JG+P>xC&tuhd z8}?$00pK&>n9(nCwbp6P)mon$jf;#Kuo&@KL##g+@*FD0FY)J$rAF$AUXt(O06cAt<}@4#TgdG?lJSOFKS&Xa8{@93TW)|sgt@NJSzZ@ZwDf#0;g=%RZ+=dq`L6x z&Z=p%$ItcSzM8b@uF?V(Q?~EJ*Vt^)=!Vqn3Vw&ndS}Jh)KZ@Q{T-J=JQs(yi>TBLIY=so~f0JJYOcqp*kF#?Vcshrk04Y zrR;yYc#*^T6o<(-zVKP$m*^KZ`Nv~Jdx-(ZMCS&=8aCjNA?nL2e7Bi^!Pc1B76QJO zq@*Z?(d8i0dL_~IPH;@IKAC6LVRdlm{v-?rEd$U^LL9%{nObL1XuE%jd6Xo$!`A7n zGxOD~GlCX->_bu~pg)RAhhc8{B%d!km)wCL&>xug+=zeiPKEzn7r+Ko*i<4*u>3U(P{ycic`@W z7c4?rxP_6Xn{b^4c3cxXlC)gvA3v*}Ss)H{Di!GZMU#7U^qhmR4yRG0E}2#ndPdFG!D=P`7=4#8Io`8fa zl4_+9!8-+12i@cthC5w>4nbcIkIPJ*x%7exQ`;Z$SsL7Ql{re9VJ5lpQ3l$M{V%i` z@i<2O6VszMyDzewDO?LRwC-LrY1CSX`4r7Bwq!fQNquurjlZ zOZ%T8M9*YKAmss8@Z~JI$&>L9H8BOJ8V;ZtJ0}DX>ilmdE+94v6b8}{?>}Wxcmg^c zV7zb}XgC3FHf+zp=Sk39_>;d3z<)nXj$tDz3QMa5O5-%fH=7M zpZ;H~GS0gWZ~LuvNlE(0WvaweH4;>n$PEOp)V7_shlQG=cay8uEDUyFYY29^#N9>dq5zs$YSp zJX-CVK%c5apnwod3P*||=iNZ`m|_Np%fK}yf@wu0w`wOaW*+AOcmR=46~x3T#FO33 zEOnjZe*XTONQ)1xq-|j2KY%t8=z1ia#I5mnNb(nUW6P-N4w@r2o@%g79+d%ZRiLXy zyFwXm)m3iQHz01%+^&e>`wPh|eooKWaOc__HQp<25jmv3MyX75t8Q|uNr9ME`*k0i zeP>Nn{}jJ<5IQ_@0y$Kk!mrAc76Ou30`+dDHTgoEbP=@E0uc*4k^= z^lMmeZmG!AAfm+QHV`YEHL#h5?O@|Yo_JtRqbi5Ds>RuW6iyXAVB&ulfieWN;oq_J zy+fT~!7Z-@8Z+fUTy|yO=VKsBJm;ghRZaK;7Jzx}R8e>(*I6tr9ah=d%Uy=b*>GDHNQfR1RJp0zb20Soxg(;r5tUK}@We;JnUU%^y;|IG^pzJ;nD zXw%_l)8PiE1}#maIK8VZhsU7ZZ!Z!o^!}e)9jO(NO^sF#nZEfh{bhj~Ue+7YWa3$t z%ya7P);HiDT1j`^_ha6+qL6(|CXS%%zO5pjUhS=d;&09iWu3ZRJ1M%P|2ERkw(SN@ z;Y_6C*2@idZL0$tov<8-75NXP8kI2Ae)7E+`Yf$6Y;Thf=F;N=60sWyzbGChv*{m? zkUi-u&W%K_dpv4KslAOZHw9a*7RPGiu*j4=-@~b1p^%R2JRD4I-&YOU^d+oOEDIyEFD871BuueIbFt+5?GGj0_t{ZJJa!ZQ*S;i;Ar^oQ4yEWE2qmY7+gO0rCR;vd?XaX#Sx8JgYiR zr@;d*;~DL2L+x|J?>@4;RZH>~xwDe7H*DvArZrlX%AuJ0pSU-3s0yja34TIvlS5eo zis$yDDws=gtMozThu+3dU#7%aWyvi0g&)Z%QX%bR=Fh@lC7iG_$FG2fHN$7>q*g(Y zYP7hKfam;WW1Q;3l1z>wh`+gCVdlQBi?%_4y1943-sQDVeW&NHfP(hA4MW+ud4fT% z8#+D4{2!hdSN6j?^o6tv;!0l>R|dCjT~uTrV>IjTnIw}#a;{uKZ&ids+hmFm7yo$| zKm7b!2L9`ct_l6tEkny!^dHl)sDIdS`j%FM(w8u35wSK^J`B}Vw9q{m;p5?u!U-WtfFNIn|6+AzZLczEtCYqJvbPtB6m^ous} z7qp5fSPpRgSJKt~2hZ=PX|Apn-V$N*{tW;Pr9Qbh`Kq(#6z^`*Y5RxQc-<>p;!d9} z8M?Yo+STd+*+*tj_9HA(odywe8_;z7K83tS{%Q@ z;q(jpZ>-U7k<6?bUx$eab|q8l!Yfbw&*bV}&T*WrO>2)5__u4;`_xwJTOly_bM7}l z_JLEg%Z7iqI>df6*Xa3VZYdzE=#Xo zX15^U`quU8NmO6+Ql2O$`b-P=gC15F8yzVj9Afdjd%O#$={SfpS@c$lkYkeJh5Hjq zqR$pZk)TYW#o71r$jkj_PeAcb(#0A{y>CP!{_Wj>Job$-4(9zABAev)y!hwack^fX z{r(BGMqie4`5JP|Z!ho#=t$JiAkHC5iHp-K?;-!6NP2?DW0u=Bn>-io;xXGesq zUL`K^hi}cjo=Bs%NLPTGhg7p-#U~)aLq4N7&oi0CgJXWp=SplNp#>AMymEOjRk>Ac z&KX8IqQI;Ib{_}#G}-;$fqU{y&TV4>?R9NSGAlo9DY1P@)yWW9O;0u?vQ)9DUFg5} z=G(6XpJXM(N~9<&qKCCUM*8Bty>qW!u5kWIVhf8DLB@fOrr&TjyM6m*Fm$Sg*_4UT zotUfseV264RQwtFnP5c|t11VxoBh=Dqlh=$+C+^C^IBsbFp>#LnHbq>WsVdkprWAnf3{)_t8422RAcGqhPROdlS9^EZHVi zWjjMU$DaO+pYddRy>WVz>a#7a=v`jXg&s45vrVtpOnBE2w`MYqSkw}HCqj`~36JIF zC(t$9-t(?AIY-7C?YrIwBq%gjOT1&k2R7y%GqaxEp;ap4{n$eqfU5_dt9y2P7uc$=+l{A6vT+S#kL)rkdFo?YbJ>A4hB+$ zCX)#)&tgPf==csyRX1clc)Y^CEZ0psdA+7b)Fnoe+c)L+V!9=-up--deKVtsnP$B27pMRLOh zBn1Az9k@atLfYLfI=J0F5OZoB%(cgqRO&1?=*)V2p1z7>I3vxGl6{iQ~S!I()(sr zOh9P5rQEyt^vswY0dkL+WxAy_F!R+|>gMS5eJtJ=CuwnmTc0E?_i?jGbV95dE%4n} zn}gN2W^9RJuvT?{0--&Q;)od;bBPg+tLi2Tar)7fjNqsR zky4d7e9gzWIH^bu?FiPdYBFVG)4VAct`pA(Pej~v?aeAZA8zmCrQLdT`8StB>4vTI zCjky$4yo$ca_Ouu9jdAn+15Ctn2Cr}f}9HcNL#SjhorjWX$bD9Ger0tI+7p9Z$!O( z?4aJeX?@Qyi&eEp`uk`B_~+r*D8bO_*-|k+nbU^+7$^2Nj!2SJl}Fz3tauT-bOqTZ z&O25+z*B(pP+|GvkoVm8yDkf&T^h0Nc2w4&2r>E8nrK?`oMxPA8;mjuMO_mxL!0gi zq)PGAau}d04tgw~EKki&y0l6~Iw*vax*D<***_+HFYU83t9r!v*7SZ=m(;vm?$1Q- z;Hu7C?`o#R4$7;Ye(1vtlu<)lTHPNU-OybE8>K0HSBOU?6AY=VQeBh5e72OU@tBZ0 zYJWgOXe1&x&&hZMx<%n@U*5LNl;U(D(qVQFW`&wFTc_67Qx7UKO=NJAq_I;Y;SE_O zuw`x$L7HoXabq+sqW$X+>AmT_nai7yvs5Y8OEKm|@7Q{%>o6-&*lO6lQPwtv+Y*h7{TnZMh{J7zova%ZJ`-%C2*YQU$k+pOVp zhGUHL*0|O}lfBXo9uv@d;QcM;&rY##H+uhDDSA^jPtbqp2@wzArTsy-}9bhI;9U za;5MB$)0fk2Um;7rW#PD<{~-nS(~TORX&sN>)Vnf!~2`wWjbliHj3>ka-m!eH^JXV zSByGX&(O#n{KSq4Vh-GFBDfGugn9H@8^gZcVz(TSL@Kp4M z3R=#$rFYMskqnSq+Z(-F6o|*)udF~OH%d1xeDRR0^LtMJu8WaOhe=BHJ1XHGOU#4H?m0H5J zhN}S)*2$jgmXHm*ZQ0pOJ5N9-Ulo#Rr%qZCmQWATnz#=v_najp(~hB_K9CHoKDxS8 zW7d1sJ>6Q9)FEjkFbTDNRIRN_nhck&k&+20Fq<0z#hD530u3 zS#;7Z7YwBaGT957Ax@*wDTMsg>F>@iF(U&!H+%rwhTlU$BiiIe< zFqj=mg2b0VAsN_tn#>L8SMmPUq)7|>&1wPQ!~dYh-`D}5Nt2TPKTX=R{|eFms)zXx zoi`g4S~2;(_(4v-J5*yK=j|F(Fyn%AZrNFBM8P)RRyD@lbLUbY>Oe02>>Bn5BBtfR z2oJ`SiXgv=#BO|l`kih~pybC{D=Hexn#{tm&93uyGF+&!L3MxJ!OZN9{0ztyJ0Qr( zpLh4{K`UPdowLAe{#KS-n=~h>g#jK3aO8}SyMKu!g9J!MwK9DFv8IvhwZx;2_zs^s zP8!BpCs_Kl>n*6{HNjNe*>M{Fu~CwFh6;Q8M{F~_Nky7fxu!}`J*XukYNUwjc!jGORMo^n%F&YyW3IuHpTO_1J+d9RsOYY{rNa`H{19W54A0P zyBcRA^f3`!JIdM0?bf-eeKm)(8fPll1GRQh3wm)r4j$EYxeRzP6o4x-9gZefs_C;8 zntP~lR*UYYc>Y4kmEpP|5nMNg2H(Yqy3cZ`y+w7@FqYKbo_T)bS@n7<4&K$C#h)YC zwU(S1rrD*bRxsaDC8R9Fj}zS`$9d%^8hZxs!jVF)YvX~5XtY~TsDa}-&pO)iI}lSCp=j)bAtF znAow-6gxJY(OXykXkIth>n1f3H6b6C;LjS}Bw^}{fRg5{da;F2t#OuUm-eO991gkU zxq?KWf_JXJHQK-jfc!c((M^0QyW(<^&EbMn$EA$QRGd7&arEUzK?Q6Y7s6b7_4Ujo zBGT7ZZt#a`XQG!FrzOV){!ie|r^7I`+d0#>;MOdJ8RF8y?B$qwi>pajg9j|02y>(+ zM?JYP)}eR;y7GZ)5_ET#Ra*TawC9M!+73|d33EspbKjLMv^@b0zT{g-r6w)3b@beF zh}4Il#Wm#!3W#B(S*u<+l4)zNoL(3ukfR&^aR(RiyzrUTXqmnW}L#a!kCf@wkf(p~fz^^5k^I@avX=C;F*4^eDgW%AglSaj=s{lQePS<{k9DN1-! zBKpH7nC(Y6YN1l2`791!>|CIR;HU4|?iF-c=iRs<6~W;$yK1-8dd^k8fJ-P^(Lb@l zg(Du=-nJ<7#ZSb|mSQ97`nUm?FuZV8h2tuYA173at&}+{UFK!l(IlJ#=u76+l+Rxl z>QJLvM4Gm8yccW~GGc!BPSG4kYPl%d^n0agWfdN` z>jb99m*O4sWZ>hil=#=U>qeYOMesz7Gi#SoAUW;e@##1t8NUWk6Tu!E4v48Vaf>|*T|O7HmPy`MmqjDpMnkZ7bhO7iD)CaA)tiD~{|ZRB|C2TUSLJ|8+(G7G5Gmu)MIyMuwBqSm>-Y zJ300Hpfp=d^>*T1%9E|og6j!84E{{1*9m9h3JQv=J0yjk-goaNy#1LFt?YPr0itb= zE@Ul|EeaHUFE4+IQ!^*HVnlRc@DrD!!MZMFbx>ijC@rpy-$5!eO?Ic)n@iN=2JnJc3O8j$WNCZ}BSxSOav?pCryt{k+y3a zGR}`*akxQocyt1KGc9-7f?&d3hrFC1i2#U(;2TLVzSUMfiCAL@7wo6tAVP=mqxmP4 zZRG= zoaQjvaj5rah+Jx2JU_#g5jB?_<@7Olq?P#U}oEAKYJ_FPCl5AzA#Vz;tbmlgWW_az&^2@0@a5@H~i{&k%n|2ef2uAspmp%b)7?VX2vrslnXVuBIv zHSJRk-3u6?%2zq13E93%#m-_iBAQMgb#E)Ej=2Tp!Z06REVmf2#4GzaiT{AsA3wqX z8q8q{WIKKi%adY2#;af{yqggkagy)!;L^OoFu3 z-NFrDI~M0XuBJe8bS>SR!0_o$8vV%ImigKNX$G7>++R&XE5kp;#$m~lz!e^;Tl9f# zHS&BjD(4`Lr+ZXT-*h$oz_uZub*J_526}+|*nE~@i*c}aoC+cBZ*?mmC||e27%3_d z{#J;NPAB!yj1*rAWV6|)nB8=~ZN)S_Ku=v@9v#5UyN8Zi|LLX?s^P2d~)=bdDaxsVbT`73z7HKttq-e@@%^gB?M2v_hHI2?hL!P&=*F&~{$xs+K#qcgfZbAM=MhX&x6t~T zju1w~mQZL@gy*X#pi=|lv&lfBmP)Di35dxjc`ZA1_d;FX`j-`!jUWA)g9_KTVujb@ zw7U}*a%Q(TXk_`;E(0{Qs=GS(byXJ?k4n&4A?l{j(2=nn9l`x*Lc$!}Pk|v6zeE>S zvFVhBw`_}VfC*yv9WWjkJKg%c99>lEK?Z6mh(Z&_Sgxa^wyYLCW4d#;a%GR9Cm@#5 zh4IBmSL|#Cs&OjO?=u1x-kkcUNsRle7Ift9LK*~+J5oB)`G-+c`T7xXdS6AxM(3R8 zM}~;X3`3+`vK;$tlrFS2K#3r*$@0uF3v_yOdMuVV#HMiLnm9~41r<0uA;&J0IiXd( zgcO}q0I>a;LSCP$8F2Dn?eUHua9*a(4+qTyL*bf?xQd@+8zQyW9G90)hI|DlNQ(RT zjr!Z(-E|wED!G7R6ZDLw3?vw!t2#QDtRPibR?0v*r>fI(KGYJwi~v#7J%Jd=vsK2m zAStYeD{RW1fX0-s)8vDoKDQ@~+7E+ShB=?i z%8LaALZUMRJcp0Vwliiac$h5)0O^*VvEtB!>i%QNx(Yz*$JEm8GJScJJWYV(w*^T0 zclRp|K2Fp{EGk(ilN{-pv8r=zu^rN>!#6n^tI4A=b_bDGHvlWdo$j8A90Cjt+H!FN z3(p(q(vHIOy{`Gu3QUvXOcff92~TyBI!yV}b3{jn0eO;ER$gHK1&i@~r9?S>LwL8s z&rDm4b34N>z>PXDOact&)pW4XLNGcvK5~GGVS*mGfNjIJh8T=KS`Ul%-wp>xYm?7{ zpX1K9^0m)tDs&Rh!LNMxzQmcDN5OI~Mofc`{JiFVrnKX&GlNj+d?oR-P)fQ*hG&E% zL#r6hy?Zu&kmTvB;N(m{fQ!N!?HOxd*mdhg@oxVt_ z+pOQpky5aGc>**yWh%Bk-7=#amFd=t7pbF|QnH)3=$OS!yG}+B%^-k*sCUi{IgFP5 zb3X`^)g7J>I=TX`XGif*nB-OsuyrgxQzAmmJC2zS?X&TB{wyHl5%Kz#5lPMCTBEp( zRv*GSIEprpKsayl(Gw==6W$Rny{K8Asza5}aTS=cuu58>muT&-r|`0kYp)A1BM6z>kimcYs(`=(fW_C# zU#4^&QiA^|qjk4=dF_3dFiu4iE+i%YZmLH}zQSJnVft=w?x?@qfi1myg*aPf+OlE^ zsmxez(HhQCh^2;6_Jy(SR@&Pc^xb7J(}G6J<71CMt(x7B~?DnY~1Cwj$D&!4I zUJpUbKN*l82@2y{b^5&nnV9Nh^a)4^ZV=EJq2Gou;PwAA|22`C>D*?ba@%5psp^NT zuKmXf-(`h_4|5?<2Dq*_W20lUINXvGauC~=XZZxrq)*2n5)ca<25889sdx&-GmqK? z8?oopC#L@CH*d3x7zC%e=R6*ev`=qW7J8I^m$kM|*Vqc&nXUb8zH@^!!vnd35Da}O zZvy!i-nAKt8Ba$FM({bOV^c&C?4@wrINd$VNvnfOc8S%I`SX>uvcX=zQwg!{exMjR z8K9r@;OK7lT?g|#RMmR>W@(AlBAHKm9u7o>XbL6z#uj1u%XQg)>JAZn*eK~tG;M)_ z#JA@#z$txo8*pwIX)Zk9WSj50Pf7XH{Bx1E1*m{o&Ch1G{|fWKUN)t$n^5z@NUTu5pLB;69S4=gBJ9vQEZ z9TG~}6(LZTann}dxE~Cig{lFS*9M+Mr}R zO;NE1;w~`~?kaWH!jW?h{^MP+%_Oq80F zEtU7fWm-Z~$E9Zz^F8Zz@|WkFR03e;+gdk|eafi@Fg+?BCTT&bQ>gYv=6?QGCwH#m zAYVel`RYvbLlFeqwrBg7qN68#Z_VdI=FEVO?N~)rf&T1v71~mFXMYes?`lla43OO8 zdhQ#`jB(FotVG>*UT-j#S&t%0Q*=>uGkC;Z`He6M))?YaoXkz=gtabR`^4*FzR|98 zZ!8FMByTd;O4>0Z!%_Gr;Mu^+Y% zQb?BV2&TDsb|w<6pp=IL>`tcxf?6>9$vzM?`_JT0_wI^kiQIlIA1p6GUP^mOxDo80 z1v5H@KO%8L=s1ne6HtVHgXBR|KHtrG&sIcR4qZMoc%Y4N$3TZMfoRRNJsLY2TRW9` zIoWE~7w**K(9=z!&>pvB%v)f_P-fD)pLIWLXE0&f``Qz=(>?4^B7<&o-3o#xUHgxI z&~xzYB^#dQ1|O)H=uErW>P`ZMkb2GgqjNjHUQ`@f4OnNGhq+%+lUB!d!1m-4IQ&At zwt7Dg*cevzfxY|J{kd^>E)r}sC`x$_G5yc%Yxat$CiqVK21qssdM8nQMs|7vD7&eg|E-bMJ$QvRH5|k z^Gt!jm0hUMzq{_FmMn#v;QX)O-6ZFubKKM;I7zu*W308)1+8&3I${x0odeC^kQta` zTSlWJ&|hT8KVNIA6nAfqONzD1Ij@WoBeMP|^fAhZ3^E(kR@mp($=|>w<|JO?HaTFb zTj8+outFe4l^B;1&ptoblp?fKc>>yd)F{HsxI~3yJlPK4%!<;OiM_A-#JrhaNw210 z=IPJ4(J>(;1>pg)T@)4w2QoQ7*j!7niQ*;SIRW`g+D^A0Rf;A2VV}as7&h}om6%Gb zPO1{OxugT=zCYhAO&YLXlUd}FQ)+Y&U^q*}!OYv@kA=i3YlQmQ+QpnTAM2)f)!X>8 zx5j~OjG~PA+ja^xayo#6LP!w6%^M-XIZOApC~IGQr(TL3kc>WbYjOX0lXHfS-XFT$ zrkCP#K=9esT|NE)W~WBXtQ_-K9hLFbLk_dEv@Bx4bM})uy!%ZiyXRw?;S>5wBzg1E z*BfjWq3Prb6vU{Bl_F9lxmn(_mAc8=jAT}~`kj*=9*pGl>`h4@XxkDvs9qr%ls%wH5zrNbT~in&`nllEE#U#~BE0($q1q-Xv|;#(z!etuVaqaAYKBE*3E-jZEgtmRL(SzcMgyxijf<7!j}9Mh`#v@J!?t; zLPK5%jwEnteKBd9r+HD6>Mai`{5T^)Dro}c(L zseH+d9sF?>vQGHJ;w%95I-i-1HpVV@6shF9HxRk&yN}WNYf<4H=X)1W#Z|oAIbSH$ z$wfMKkfwmzRt%r%4F81Gp_8`f_r+!r4^T8H0hXRp^16G&nHxt59vPkLYzy}O3XrKV zf{hwCK%KN#I}4@aZ%Uf^aXtXovGqvi#HNqUX>K7(JQF z{{iOXgz%l|?+mwczZm|Gs)(L~ zgEu_scDPuz%VlW8Ey&R6`bVai#L(kYB=gAOtp-&PyR!$Wi#WoAVwND z+j(xQX~zz??Z+HIx|bxZR7zv({U^M!{6~}c8}zz&m2mW7_NmH{*yQ{!*o`VjI_66rWK2;iGF%5Z-1Bql0=rn+}A3es=`?srYg`Av`D z-h^UjDTB=ukfNXR2Q^iu3XQ$^gwe5U%J8mfoh+q^AG0e+$tL#E*bwEc`~J=H#uC8; zoC=Al{eRgRdRk@13JJn!u0t|;6@;*^aMkkO6FDxr82EL;UiHIm^%Ky?q3i~hd%9AK z86>rdqn3Gj41#`j9Di!XIp0IkE@H6;T)a1~lFmalP?+}aCRKaUD2uU$y?_nlY(R~;DAY?q`WtN=t+wrhQ*{q=P zS$)cbBm3YpA(hcl$`^0p&Iqoy=~SuYmhNE!rWhD@{`~!n6>*3@u{&J@?DctWG__47 zZt9aXTAIRdC$LsQIoQW?W|9 zxVnBc@Q{%6Xq1TIot&I1q(JMk#0)&c&pD$Af<1O^RV1291Z*rq=4cP$bjfc247mL>NWg~UQr59%O3 zD13W*I5Hh0gTMGYiy#hI(p@b9EFEf%{h3yG44o7Re^i_({l4>6K-T_*`w0lmL)f^z zI{%|ILT+iMd9~U6DgA~WJh+?|?%p@kf{nMPRC^OLCk_*X4^*D-=Nja@E4i5sTut;0 z@|BmcQ0$FSP@PYam}2N6pK<0}!mcgsr>zi)=6*X}5qxiF<_^kV)cp3=Q<6jsoq*=m z3tR$@<8H?8hQ4{(2SMzb#e8dKzvgO1s5ky~)WUvf@x|_@LJTI=T0l@Yzcwd0TraC{ zdj0XsU(Pvz2Q%cf1sK8hj~^?bkGz+bnpTy~#<)aR{h!|{M|Je};x+bm)#@zE^2Rwc z+E95&CyjZ^DbI46&)mUMxFz*MhRkDh-}k5F$~}SmvX5RRZyq&+N?AmQqmp^>d-+Rj z^{)ez>0$Wu<8DIaloYw{ka?mQK45C1ud_RI9HaKY3!vh?e4dduD{0}muJIm8_XYxYdmO8Z>^$NYXWJ}M~P|{+}@0#5Qd0{#9yYKt-5W~=Q@G$Z% zvd7V@I%Mc@{_IlMS=;V|wto_}p_|p71d9MqX%G1+lR+14A7>*GRI*8=2I_v@=H92HtNTLTpO^62~r zLRJKIgAV}-GpXlN^^G^ohb%??o=)Z7qd7bfI#qXsTLfts+KM5PTV|U`iyo}l;-_dsvzDY! z1)*^Pxv%G&GcC8dil*c{tf1eV6~p~E?+l9Y@=F#-z7^02jgti{ijs)E%P)tmKKFlU z=Jsk1@6J;t=lyBO)3_CwIf3z+J+igiKNsu|=y%qU0RypKg-@D99>`yV98gZ}dckz) zg-fnLJvARO_stfRN^b_Ae@d8tUJnPA+j3H;#3lQqv798};s``Y63G(~k}rr!P7JJT*uIf%md zvj<$;1Qk$c_aBIlSg%jnWv1zNdv5U6%C=@N`7SYysH(P%T?^R%Jgj|C_h@T$_(Q2U zkYKa??8(tgDcCxiie-;lzGtG)CR?nI98iBB7KQq%9OTCl#4IQzwEyA-uTE}9;ADHr zzE1$)9}18uMh(QbgR8BJRY&RRBq+mCUEJpc)ayB%AXy|L-0vW8Y69~y`8G13Y8U1_ z6`giyM`fp>oLbq|-<}E7Gu3%I^PoR*9+xoav!XT^qT!4?0qH5E{5h4hB^os8Yn4Ac zGWfH~T3Z?vw!$`zX&>a@F!kpZS3GBsW4uCYweE!G%+Oix4d@5+3HN<1*A4vGKCVB| zmNb-_9LTgnmeNOe+2)t|c5}5SaBlyMs@9)qN(gRU+>p4^BN`Pabx=(w+=o^#^;VAg zOC>OqFV_MkQNJNJxYDf$tIdCAek6tqek}#x;M~7U|3YmOh(y~2We<9V)@Z5aS$-${ zY`xBxJfGE)?&DVQIh?Pr@IM}p%4cHWh^Lk)fdF#c_61GaJ(xpQd*{<24YxAXvcBPh zv|6UdQ-!Wn^OCvgE{vtyP2Xi_!DU#A2p^>0MgPc|4We7)7bp=R(6a1Gf`=EW5Ad9m zxnKLGZAmBU@Tu9ZOEJ>tNZElDRdR3w3X(_N;i?Qw)va<8pxTLq&h4Hj)7<5}-+=vI zXzo|d#`c!;QVYFA_fd>rz`9P^qX{s3k7%X9xI6Ypd|9no^y>YBpwKAVZ6>ydF9myLJv*~6ltl0?b4*iaN2yFnI?{Z-sCWGNxanCnAY9UfsNP0n_r(U|96ced|^gR9$hZ> zPb)SqMrGx`wi$(GhEzU(cx$GD^H;lEw3sCk1-y=rGmJg+@qaWYX z70;MI_(nc{w5HOrFpB6Qha< zSS;N}2xh40AG22X!|Xhlb6JI~ZJr@*BF|;cAs7ma2GT~qhseAcJt0{I36qh7uhpOJ zOc}&KZoL+N(4iK0&b$hBmZc&_Z<2sm3m?~xuUbQeS`hMwXzH)bQ^6FuA z%hXIYz7OmjwUWMydpb1< zNVqXi%f;c`i=+jEk2$R9?bJ<`VhK$_eJaiO+?Zgj&dP)43AMty+vTt|c*{K;HA0 zO9c+*~x|Xj^?nAvVxVKh+ zvrUwkY1Gi)*plA$`LG&~^f#*w%orI@n(oK#vITS5!1*D80SajC6{FCo(hsG^3*!x; zGz@>ZnUBEF%&=~aF|E$Jo0Enl@u?I%-v^D9oBwgyxQ)ySDgh|a4QB`ie_J>NVKz`I z<28SD_mJ?SEK6m+nNXw>A1ZV2S9Y5OH$Mjn5w(0CJ{a;^b>{mY>Z(Ma7t&*4v8XNON_rK}46KN{z%Ls4Q9M8dR zuXLzQexJXlf4A;lUa^ZKV2o~Y=DZ!upaRb>WKunv*xz=^TB`Do47w*^PO3WwwQXvA$E? zsiE(o>RS5Q^Q@aMKTVTt;=ZKU8RMgRidNEyM0Iw1e~0G z3F^ah3jL~@x>X4T**W>|aOixqMWY|{hjP{cE=SMp3f5JpW5^Qw^6<;HX;+;9mZZcr zJpHx!=+tK2&!uH7w+Y{}_wh&cL*xE?^Eq&x_PUEJc6x1$+;CDA-5sxSkm=-Moo@D% zK`3?RcKunNu=9m%!?>(6HnBr+sB1I{=4pc1ZsmsFU>ZDs&B=Q@_;XmD{KYw@L~ZOO zr9P@tA8Ews`%@d0G%ZZ!`F1H^$>n1Co%w6adYb!BnYSp0OXAhFyZ2ze00N$hEL$ES z7QC`d`>cIl27L8 z-!!1aCLiaZfpZ!=W);)(#yV2Va$QFxsQY?<4NJeHwRWt$`mBbBN@J#T%qYfh!!81& zAJVtMQVLFhhR^iOl=C_2yq*=F^*dW=bSSmN#`ck{4bDvo4IN0xyM~;3 zB*n55TGwt;m^of%sFi!|%}&V6uwA#x@ohXP~S0!>SXMf?b-(TSowa-Sp_lNacfUVnh?dCVTEYnm53?cJun9 z0$rEAc7Md}gWLPCCU5KxzRCIa5k@Plk%0)Yo~gXwcyxD3B2-|_gVlEnb9A)}#3TFK zEswE84HSv-)$8o)y6o#x`+@ZbPr>+#%YgUITE~shsaJUcwu7{zZV4BYtgi^cdyn%b z%GLd%bMUm#ENfy3Z^p+xcBSqW%}%LlM6Hfa+O2>r4xI^ec5>8p56XDSXppePkpQt% z!miW*5p`ph;b5ubNNPNGp?H&LE`QsctRvm!ZyX4Y(QF*p!0355SQ#Meb*h^WjS>cG z>G@~(qfZ-z@XZB%QmX$d;q-P^nIU&e@mZE?z(0G}0216g}fy9KbW3Z}3TK{#o!r z#9Fpi6ATfP#8lX1ppd1htnt@+ug;R&8?k+|nPnV2@Vz%&KLIPr6BIr=E^`<%Ulp)$A%$ z>!OriC#N!$!B4Lr;9=DEeGiGYywNN*8Cx<TMkZ zJtWEQAG&GvuFKCSJEHFOFnzB_`9krblsN#ovHIZv83hZo@Eql6_e1iERwri>wW_YP z?Qjp!`NaHwG$lzck0Y~eI39w3_;GCS*T77v{ru95vi$g53Vx*Rcn#?&Ldv~odH%MH z9kdY@)ZVV$oPSvHhXB@pW%iY?=~7{4W^nkcx4ei4){s8=O+;l9A2XDPEy&L6R@Nzq zUKXj+G}9Y)DI$?@-~7d39DAI!*Z9C|?*6$MbKph3EEfiQm1h4qaotnQ={ zu%zcj)IffRV^?3O3jyRPrcM(R*{>-Q4YO)m|D9OU%A4S^R;vc&nZm`iWq|hUk=FQ|K0BN6=Mq$H{Bv6_Y;AMe8Wd5Kc_r={=FaAO!)(U&*N;C~ZKa`oa z0BM*_2AL0f$l_C$ugPO}pOTT~M0n$qTTWU(2o099r=iNbh>h5Pnv=yYbA!UTJDjibMB+O@&c)@lco}_lk5RTAl{I5~{i3dlxBlNqoPKmr0B; zPpUghm6It|j@qLl=+8+P&wLQDPrrDFoEfOBKWPUj`{5}lI)NHlX53KtRkXa;_;qQA z<(WTX5$I&T*mNoH<;(bxX5nYz0m7n@DlFC%upA5%g{DGtO6=OF% z^r@mU&GI}qB?HMe*6Rz&*G2gx;C!IuBh@Ep6AyfL98sZ-p)ZCN!R-ap9=B>f`@QP| zd7qKE9YzKl{H~$Vw~Na*Eam$>zm5TFOxhZ2AIxU!I;X$SnB=^qG-+C#7z2jinFSTf zU`uG?Ux;gZh}X>yuU2FU=}%C*59JbQSc;qD;%rIKfHX$Ramxa3llmssw(eOzlz^~v_!&9jlnJ!x9_8KePE@<@@e%$IF!2ZQIjkUquRhK0|VSuW#;Vk5ZlFWJsK%SpL2nFS~YywP5l z|G4y0V+c0sfLV1i>la;YA-08{>K_~E{oe}DbuhZg@=)CZ0cUBfe)d)QvrAw<%nE`J z*XV?G1L&cC7%0L^sm@RWv7Q_jMpe7$PpdCBGTdWHzp&SUQp5rW$shYw9qmy-3<#@ zEXUcGmV7qehrU%twGX&Bfb$aox-9!00i^eFj~Ing76gk6XR)op9O>PDjSMArt1Cvb zAbq40$pPu&JwK#!T$t8ShwGYE*BK>a>UltBmz`kXsjU#lCartqt1^T+0sPZZtzkL5 z1&BCO1=iHqkiGZ`Wm4NBTfJT6=SONd++4V)T_iJ4KL}>vhY1$r`+_~LRMsHvz5KD> z=qVlu$_)qq5U{2?_cwqm4XvjT-~@Aq6h+-lxv*3Y!Y|7GFyB z?Kysz;^I`7F1L$oG6S4li-)ZHcElnRgiEp2<0oC;U{-4G{VS*B z$Kv03cp>w0dm#2qaZGB@22357zxI^P{BE~CCJRcsyfZi$V)bHsXYk~|?@BP?aUZ5chi7pYW@CH)D0%KK(hI?l(ayJ>6dc^4p=N8PvII#|?1|Nd zv4*(^XrvA-Nl_sVql~#emIhtmFCIzGq_8aBPkt z8+j>9jA6Of!MJQ;P#=;}%Ndxf3KE3YFdh0o?W!!0sB)fh;mQIv9|RQ5QEM=>WwYgQ zGIH+Bt)A}gIAyPBI7evqFwI@pk$c^jyYLu-?*)4O1+MwumCVCQuH}?FRv~R%XC~W( z@)a_Vs_fSV^leQ<5*au1itFn?W{6Nb;np8nkb*RJRvyN7Jl*^&kl!%OxJ*iTzoLCj zps)$P=HUdM^|JGR3WU1&G7RG17Hs9EA>s%|DQXl};BSksL7DZon{k9ud!4K%zq&D9 z(_}1{x9q;L(%onrnH<#`mHG-bA0SCm=jb-!{EA*-NL}hlnHe~w{3pbWaqf~p@2jb9 z+QjzV!hLOwmeU(0C$dx_8TF$DYYpFdnZe%Y7PfFLWKtSLzRy9n_q*R{SLa47PkwLHI>qzHWSh!(X((OBOD(X+-x{6F}o(#^sQ_ z8>w#tKPWr+HoP-FVb1-8n^`4Qdi=}UW2+5;vq=nt80Y2u#zR$Lj<(RhbDHGo%}jbE zoGk@MmwsFXMk~dSFU$z6h)`e{!$67Q54kDad9yq=2_8*k-F_-`XVdyt=Cn>?ZVFIn zpjLNw;lhI=hCo|VFa@}PIhYUF85okmV4p}UdDkZ&W@KMqnyW5WZy?Z~yqcxR8jNSw z-CYE27YSmjv{OubWQQ{|eb^PEK67SJih*uvNcn1qXt<=s>UE1SFy4GzuEQ=Z*n=}u z_6lw9ZkI*^bbq0yii%n8hm!+RTJpm}$OWXd*_giN*(lq(_>WiljMfmmKox#hPrY!v zSD;(3$)6Z|r#kFA%$p&D!BzfoAKZ3`_kZRhV6 z)4YUVB<6lXpM3YmmHfC}TltS9V;G>24PH}-Qzh0K7M+WKV7Ji8St1Gi?O9z(UjCCtrbB90aOqb=*4ym5u+ zBRj%qaWCo_2+X!l{WZ7Geii86OzTsWLoPG4dXrr1`t>Z%z6^}|rco0Rav3s;)R$;3fF{I8PPCUnk z*H8hk(eJT$zG*-Q>xtko;5*eP#M%6J{Am#A4w>yvCE!};4g47=j?|CYjU9n3s!pge zH!)1}2YD7%W*pF+0|lz=41290T%4w*X%y$BplxRD=rBavR%E_DF^TvWBD_i>z2rZ`M;jS5G3}D*uik*^bCbiVbnB(BD;PF8l6UY*nb067QIV1Vb~hOJ4@R z426`4*$#bS@wD-uJtYQLJhtwcvW&_uKWQg^KBrDeY#1mauPDYkihCHQAA0fZ7s`fj z8ta58Wl;VMtab+q>Y>)oq*9_)b6XwCZyH&Ybz^oBs2bhNv`m!Wlbgt^8$1%}+C1Y; z_`uK_FVkB@!;}kG)9egcCjQz+0noH_a_=pug<>_kY}s&7G^Ugg>2TtLOfye1?&~#3 zN!qpVhJSXNHH^>SGqt&MZvC4^$c70`V+|O^{MTv}9xUo4RLzW2>k6{g*%Qhx6mttR z{ga9vw@I6aP4zVmVWih#`q{@IJyPdKB*-mqHo84|Xp5w@CLEnnGl2!^qhYI_FjH+j z!PK554#}nhvPO{Rujj3>j@u+LUBzxHRDewP8P*z5Vn}Y=$TxP_O~ib^&Pl^zkzyyr z<)D9a`-!Kh`5x)_Gi10DBb+9FwCpRWr8V!m0}z{kBB&vSRx0M!I@II-S|iGp9fk?K z1U6N7??8{B;;Qd4N?;)uLFw$$)wsr=CG+}P)@DMt9Y0P3=dEy41rx@0gIn+^nppIC|8s^M1E=lySh?t}qCpOd`;tL;@~M=R^_KeF25F zcRE(Ay~B%oC+#QSezlm;`E;Sk>QzH0`}8jzevbEld{awBsIJnq!t~arVdq3cvN5=l63ve&00y=na6Q&(2zbX0nbXP8l%2LcbsgzhQQMl|vh5)nAuz zXc(9S5hE?2jcz7z@o-A1Z4ECnj-Ky9O+>RAjlC6pP7Ms^;Fjg^7}ZEJmXf9lNuM5n z!M;<5uvoB>0j;4)WZ`bSx#&%awYene&$FI{q)i9haf>$=;Pxv3atKg6@A5wj9`d94 zD^4m<#kuP?c$=ZEilzx6dx4@ZJJ^lmwnU8a;<|f<$AusqhH89&b9}pCp?$aWBr;jy zNESreHflGjw#zF)sR>21IGvOU;?9{4ztnUihEXk9t73>Z>s;+PPtZt}+W;Jb+7eTZ zTQkN(;XGz^Hx6OhOnEZ&dfsP$FOS`tvr@X4M`V+6_(0(tQp|L}q_8}ug;r3n=YQB- z*Ta-=QoD(7YU1F;T1Ch>Hc0hut-&s#C@qG40!-@0r>IMKsUhi#mz{omNsV?5ISxMdyRfzwi z>c3??j&=+wQX-v&bLoRv?%+!K)7L}=GsIlSW7#szNrzQw^!+yt;(s#N{V;Mw`?1s| ztf+bcLrBaqo|n7PC7kUr8N7*VwiJ!+FSAh4p*J~oo@$d|ToG|kwo*DW| z-=GFqX2I<8Z?%LLWbJa_kdaV|@nD&~i_i2=k$lbV`&kW<=vkV6d?3?r``0w#4Am&3 zZc*m+Ht9tY5;8D6?iXoc4Z%L?L-}At;sS7cdIo-AeC@fXIcuINb=vxk8Py8Esy-`` zs@8**)Vi(m|LSM1paW7WQBX^Vg~Ed?_2%=(7UUG<9rE}msXfr67Vll6C>k7{3Qdr6 z@tuqCIoXftewD@mMW;@zl4PA4B+Fy*E~u zg8HiXGCE1aQ0d8Es}o2A^iO`Hv_G~Sd)CL@=yEvKZ64`7(TPuj0c<6d+!4zQ01 zphf;s_lf=mLvB=ER9!xtK>MdA((6lk7;6h&mV-rsuSh0KvHkBWSdp(M*K}j-IjvX<#*~o6KLWo@c~=LMNyjChtMIyyha|a zg7|S3ULm2n;g9T^qZmsH=Ty}%U0VXEW{1tYpA*Ofi8loD|9{uhIPss+SEle$`oKhJ zjH7hx!CgM6a!YJgH0`Ef*Ji3GnsO*YeY>c|pT;E|5jxs!4dDB4Mx^ z7^VQ}>+uW};mDDza^gHwzEl>Pi@Ckk=^Bex2wReRx++F?tH@=NFuQgWWYYM6LrI{(?tTDl1Vz zFNRwJoObQM&@GsWlx(Q()z{QQ{&{uoE#IeB%ygjiKi_SOW1>7!ttmyzW?}G`T}T4W zz5vWF>o(uMwb&&?!JjdmON?M9xgU*S4;tvV0~sqKiF|k|%O4|OLL(iw>tcpvsb5%N7M|3GgFm!>z&5tD{?0Xqvm7AV8~zIU$8S-a07BIq~+rsBB7 za^F)v^1kExePV%;8>#^DDSbE%m8py553Y17ltlLHz-9Ka0b~?NZpcTW7a#LIh*7lW zbvZB$PQ^IrKvpnVco#HG?zH>20wrQWhvA)Wp*hPD__PIe6o(&8wA5)$epAXGNt=>( z%_DsRa%xaXOlP;X|H@NbQ+P*#ij*jvgj3@shBA$q@)V&LIkId!x5xBX0X=2972bZfj789kGyTHMZud^GY*=7pSCm9#sH%1iES{Tk;mBNe20Ijs(VNb}P zQyz7yLFpnA2wvUi9lVB3!3a#SMCgsY?yYVzk|chSivw;q_VY0`X~M!?UqJ|hAR&j*=EiV|YC|8M1!MC~p0}v8;*Z=?k literal 0 HcmV?d00001 diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-BjHPa6CA.png b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-BjHPa6CA.png new file mode 100644 index 0000000000000000000000000000000000000000..afed20e064af6888fb7c07cf7a86227b4800f97c GIT binary patch literal 12782 zcmVKdF&Io>gC)6T2@TzCwXB{8RaMvYUcHxj@7arwbMDQXGGkpo50D_PJh(i7& z1d!8@flz(`0Z@6Lkl)3b56>5p-$~3~PxrCn!iA9K`yoi>>j1T%CcviekjkY~(+{71 zA3@E0@ANN)>BSRbzM}F3*nQmm^J4!-h=m*O9(lg<{5b+hN&uWZ|4{xi1Lh1?>~xHm z79PRO#hvuW&OKU8*N5^G?cW!1S6*t@#Nt}xk#18n)>h=~H}$Pg&MpC|TLa!(+idrO z%1&*qP6BYLEc)4pHQhmFDXH8l2}+W+D@TwZ!1_xnzZ}YYCw~@uHUik&GUaF84KA+E z#fLukvJDnox6kI@?sE@z#j0BTGy8=F0|tNn>B z+*L7lxna(_M-t>R*J9b7wFb&7ioIvVWjl`xt5ZFzbS`L(kI_;;*DlF9$Lq7Uw9ZSn zAKpEw))ACd-W?+S&yPzCv&rTqZ2Ax>_IKRO7fc;d|GEKj=1A;ZmS*3g-s;xE(&o|? z)%zo4xCpFV24s zSNi;U*V~UBP3^~!%#Sr&)X0+!VYqtpSpTHCOM%ne%`g2T+a@gB#L{aY$Mk_{Zd)wu z3Cx~|JZ$-{i3Ygk23Q&sMf}Qm>99**8MrU3hLxGlX5Y2=@)ZH3X5$we>0`Mp-<*qp zRvK)5u5h$Wf-4RoTm2BVEMCyEPxj4L{W4o}?n`~yW8&I)J!wTMws?wj z+1)KV?YI!ut;+}J0@fqD#6vx}0AKw@T(}=CR7Z|{)*iYo7MF-`yjJ|!r*b^PdAL=U z&JDKFCVA_6pT>o6^ksiL_ZBXs3S5zmSo^Fu$ypbVw8g#1*?qj!Gug7I5x24vwbFXtL0U}ExeHy!)a}~I=J98H2WWGG6b%;fmL^|WqAoV zJ8n0x;ApMYwR#b7n*e?N#cSF3Y9VosClWPqgM(-3qSorK(Do)dewBUceJ#z6beLz- zX4%O4Wu1##Ger;roU1|}mVvLSN^tuJss%^4YO86>o7XnKx$3>PnZH?eJByVIZLlf1 zuq-y(VVie!bfk5(ZQP+_>>I8)w2pHbcVnZ^=hX7KN@MJIkk+TY{Xg3As*5(8sP-Qv zPt@>h9z8cMpm6P>=*!Z8Rc?v1IoSqp;e4gT?|upK&|=Rqx6uh^3u}@Yt!^&+iV()O z-_wVO_3J$zH%MK%Hm2VsNx0jlTDq~crOmYVA!vhgHaBRi&aDrwuXJpl5BAXjIH4>O zZ)}zMNT`ZKjCaQE^Ej-C==kQ@;AHpT;<>dxh(CTPwCVzuAOG`< zq7D2P8hKiu))BuNUQ3Wj8-(DinlIWW0^(*-cU;nhg}%eruP0nuGt&l9zSe?Jmab_o3)~jdCy6J}UOCys zcC#Enrm3%9fzCSCUFgkr3_WL7z+4-FTx_%U+FiM~zBO88I0Z^9_*KpOZBE}bJyV&% z(h%Y1qA$g09;g4OZA#>awxluN&YmKHtXJ)u+Q<*faNmHXM}aEfajGEN1vumqATQ6H zv$IYpkYgJAG3dj!w5=@$E6(Afmo;<}7# zvAt?Rm-E4KSrIs8r<#bGw zigu&0_3tDII;{I|5-qy6xIL-kz+`AAT`0)@j$nehhQ%A;|G8z;agB{5j~Zz3n2~PJ zR%&mkSj*TEmNE^3MjE98gJ$=;g45qcYbJVO$ z+@zm-A`7q_FjJCM?+JDn9;`4PGWjeA8U#cuhgGpeVZ4Bu=|#}g<6Dr+xFOlBnj@Z^ zR0w)ZH@m9h9JRU!<{KPfN6nNAfdI2u^IR3{{Groi9Vx{WthF!OWtfblXZnl*q8DO@ z;Ms~0*pdepL(zVedK@EhOE~G8au*jM7c&jaRmCxG`K{afLqSlO*22w-DY_t#G*U(x zORP(Ve83r94x=ehP}{_yL<$mI3|1Vf0MOmpU9!48PNu`slZG-IX$ ziZCNV1h|<3VFpAPVAfLjOzs37ppl}K&^R2fM3*PCQi*d3=7rKc?c@reuR7hAMkvx8 ztL+fd4SQUs&7(vvL!`~@FuoaunD#j_hlK>a5O*xlM0!O9!U7nAg#`HI0IETQ1;l98 zz?IO{IG7*-!7Nl(8J$QZ6Fev1Ioc##AmL!2Ro-K?2u=}e>6abr{Eezq&F_}Dv^uv~ z3FTV2k2b7ls14$a20%-*0!8Kx1PijzL^4>#=v8c*gZf~f_nbce-pB5H_dCzN?d_*7 zJ~TXY)=rI5Gj0whe(lEf7oNNNWRJ2$VV z{R2*FDN$0Ay98%25vaoO%sprBxo;%hc;d59|Eqs@^@-21I%R}66S%{rq#T&gWnHXM z;*yzsgS~Wqsh?PHFs?qj)?={LGg}+ZxH6}Fsln!OSaaWPTOwF`p5NOT8YF2HjerGn z1497mRX_*~Lx+_1AN{^hyzh_x;o*h1T)*<_?VGPFIVX4(ag@5+r_4VB_h~6}C(FIRvJa4aDT4uIFTi`0ekb0G~wFcYJJ@PP6 zb3f2RVZH6~+?8%-KD z36mOit)@}aplO&IrDQ2tol;6l&PHnLYLe1qeEZ7P@W2C)ec$)&KL5h)XP&juDJp-l z7nPA*%R*0d2l(43|CWz@4*;@gY`V>W+rGX>YiMh|Ecr z8O%sSh=>tYlsue0_3eM>ubuj)_rLVi7qPdm@r2`A;|7zw!y47KHw~JE#?drLj>gqE zlF%eI4Vy-CHqJVMIJkMc=HOl5|K0mHuipIpQ#Ks36o~tegq_3&jbc^>DAaXkkqcWB zH?mWKI9ZIz(vO=l*xWB|6(#Zz{haBav$;sZ48afsVq`F>`N&`R^Y{Ly54`%+7t;QL z?Kd{AeKOXh)}%($ph=z@PmR?Lo5YmRWN%q3xta#4ktZfsYSeh+NuKt1Z|*kDyFT%8 z3x4&9&msg^EMhP;cDFv=YXm8>)!u09&6qY$OShqHKXz6B4SnMph8!2@)!N)(Td~l& z+9mcCL}(z15NJd&uYy^$Dl`YX@BZN*e*5qJ!B?Mo()SN|FvfW7lZn?8)QL@ElTf>Q z+l!4Wr5v)OPDl<{a3M*_p`_$UvgDJ4y<2C)>i9Du5*dnfIh@+WHHL^nvq1Hs$iiCF?yZu{f&=( z)1Up5H(!0FxwXs51mjxciJFGBqi&d_`QEh~lfcW5f6K!k{RnE@e)VO)y(__D#VXJOX*nRu5oL)h z*`j;;QAS@-aGA|`q>Z&cCy9O_qb!ylg?rAfo~SeejR{NOR%r?klh1 zV2trZ<62%bCDf^D5*wj*Psu%@k+;ThB}h^NT=J|e=q^f9qRU{E$@9}zF5FY7_wL-f zaXs93@1^hf=;d$u@Xmz?n#T8U-_-7&>ZC{vDq27ncVx>=LzCPVFN&vJTkkmW*G2}z z_RR1_yiIO55=0;ZWwcnSY0kd$k;neXAG&tsRqpQF{)Ba{)F?S>SCh~{jl`o>xZ}Ae1ThNIf5T`@1*xuHW$C==?YRhKC>j_Ddi6@ICK* zXE=M>8`ZaO>0nLC3a-LMKWqjLYQsYx-1|IGFN(X zwp!}+G)?v&`p}0o7^K^~XlhJq)(yN-)1XeMg_Lrn4tFR66&uNOIO}tl$08|Gl`y{1aDlPQ64g8h(oDq7v*9? za9La9cG4)LpwKvE9x}!%xN>idE~}e*@AjS7U*Elb^B`*Q$fZl)_HA!}{G-EjXZBus zZF21<2Ll8Xlv}F>NJ+p9^NfBj?Y}JDRoqSswl&!Lk6x6wJ_3}3R$v++%nbP-8b_nY ze*fPa|ZuPS(>(OWLO>j!`9?b~;n-90rm z>jsUhNlFRsNC~bIog<^RnT_9eJV7vn2&U*7I3Up=GbF+Z5}8m@@WVL|$a2#rL2&mh zJxw9Fv4IZ8w{P7T55uG1`CA_P#t&Tm!k5O^uG!82BH`ACBB4`s)oj#{l?KBRn;t8| z`nlc=SBOn;%N<4#xvOHPNQUU1&Ro9yw(tM0o3CHT{yrzQQiD3Faim0Vm;}j{pe*A( z0Ha`ZGZd#)29c zNE*x-f~R!$kw-2+{%zNWQVKVBU2EuxEUJG;0l zw-ONq7$GmIRIZ6Y^vrSrB+4_0%jr37$j=+eGfU¬wDt+&jPTyKg=B?5(f7$YCXS z5R~BF!ds`P53bfhK2~*ju{5=b-0P8|j{^KG^i6(QgR$59MpHdcIB4iTmQnJ9$dWN zn_7WH=q891fM7mhHSdIcgKFU>fH+$!K)uw?JZ=%X@V@dQ&W@?syCZkS4uhSEVpFfj z?tW)w?sI}nB%q-Zl?2b9&)#=B2?SWk>9o_`lA{KaBst~E;RYO@n7C68mEg% zY#?_`8q|LC<(K@@TR!wBenjr7=+P7n7EHzrlCyk_X+sriok*pF%cL}yO5Ab-j1)^) zPjsd4T(bwAddK4*+n4IyT{a1+vDEVSvNP-lU8Ml)LPH8jV9HhA0;fkJoluUu+v=qO z#x~V{1rcspMchQ5*K7jNT0Nfl`7ihyHc)|Xp@XxAnX6RVdIshuFnMn9TVlrllz=XuW4RJ{?a8Nx!y!WG zaZTERNNrc9^A^gHEdshGF<}(wZc^{$kQEY=2rofEzjqLbimKoPAPA6LYFvp@4uUN2 zWY6KHpd@!R2~FeUNiBQy`#z395(>r;WX#o-_Ib`cYONrQFa7zfs+iRKlWB#-&7r;K zO>=e5PL?U4E#@-~i{Jy+WlI!BtW ztVPhzxu%QWR6ZsbvYPz)^ZVdvq8yiSNgW|?%;0ge_4 z4Tm0STrRHL9l&Lv6OY5mJv_=UX-!T|n2c_8iGq8IadhWvSL%Ycac;4UYqJ)Fw1QY6k*3GAMI;#W~$8b&r&?;aq|{^IsH%NZDuZ za5gfx@%Z-e!dotW;2V`D3_JfG7d)NxE$BmffCm=e4sx~=l9R7grwKii~cJl?OH#`9xWl9D=LXgLns3CN-+hJ@#1f;s*FvfJ8USK;-&=p1SG9dztrYe`Lzru`P{c@O{SNOBCctN{yesco8v3 zd7fIC<(7AwwnqeL17VbSQj!H5^Hxe_TastaEN$<~wTEITd!_SOg^DB^kgN>u%Wv=T z6v|L8fyABU54`{V7e4qt9|Xv6J@?WpKliD@L}n62M8X{2GTd{V2`@kZcTi<^D@!I{ zu>0*G)_g_@$=wiB(+nRxhtWWjqT(Xaz+!u?6X4;IT8srjy>yc~*2y~`OU{g)a0(#7 ztiHWR8Ig+@g=5(^D02Exlppejv%c(HyVL5rKKsbS4}SEUCjsMnJWhW0J@0tngYU1K zx@A7sEnvp2B-%z8Ezj(0Ywa0Zj$E^BPn;q_p>|*-1T>z8r%qcnC^<{32-9+eIz6^^ z4v<@>Vs=;2BU6qrF*kSDvLsP{3ZCFDYvZ?q)M+2qlxf#Rx4G4A&F<-cDaUo zN&#l_`e1zD!;fGzL=q{n0h?T4@2?(Bxy}+iv#eDL`Rq(qPKvC3RmvGs2)XGj&S3C+ z2)Glbirb;Ex;fECKeC!s*Nk=VqyPnjJ7a{H(4u4@Sy$)CBTQ{tK~$$0(4>&snxpz< z-wx>1F~7_Wf-=<^mSYbur&HeYi851Y5!z{*6~fiU+qv;l!cL^z5HIVjgdgG|dq%4( z={#%$*s8>vC)B@LGAFYz4cdaXI6QSKlg(Rkn?gV+HNf0AQAtNSNZ^$6nyIAJ?H6AT z7GPFWKp2ir-Fo2#j1L$xxUeHN6xUi}1Cc5Yx0gKSc562?5k0Gj!C+(v^__jyHE6Sp zN8TljTbT@Tlqs{D8C6}5)D=bw&j7NiV8NM-7s^EDTpX6QB6KFr3}9nX9mq|MP@-G` zLKwswFT8l=i7$*S?hFP)3pc*}%hx~qWHpGr8E;^hhl-F{`v`Ijsp-J=AX=+%5KKl` zus}m+*%-sYt?L*!v=RuF?~&+7S9ZhEqQsNcUn((f4#GM0890TH;^I z4$#XfuGChM34|7TTZ)BQ@&?2yhO3|X-0ll6RAB1{@%iaMFA|=}y?OcBF>fT;}0jUKwbrOjVcXmg9F}fGLRF|2y1;?ri_0`ww zSFc91VGK=?lMrd3l`fq6wNNj0VY$(BFUFaLc~IyPbeLdr6U`WmpoJKOYoC7#0F?4b zb4s4$k9MnJH7Ix!g`6$M?(!r~FO`;JzK7D9q*~#dU@0|cE?%tOa-lw$AjVQKEN+kn zqm*k=g&UiTgCr2)6=eOv@VS5yV;qbIRzg{mQY)Adm0 zgv2!Ev2!V*y*=1$nT*(m)roi)HB`IKNO#s}pJc7fUII=HPru`ldiRbg*WyCyp0u%i z*Q@lFpQW~OouLHnj_rUH?6gjmBfZkKE&`Yoz^0%*z?N1c&}1<$C9^;af;p+cKtljS z))T2@xcB0N*MH$NS3dozFg&F?<(yG+!i^c_qq%7fCl!Ol^=N%RMro0=@(7ut+8ySE zDK&%h=XNf><;L!QNq$3dBh#TgjS183t>uBn-292T zdCR_4(4iA1HnFeKWPLEK(Nj8o|GDbSnMoSAx|Rft7HFZUcc9hwm{A4K*7JUfrcz}x zAkd;L^vfBDk0|K>kj z|MX|$Xe1w7*89jv?^Xy>&?@BF`kt_FB)>OHwOAv#!>#N0Q^~DdG|1Y8M$#;~jn3VN zs!Hy;1ff=quT7klSq^Ab*1A?`+Z@VKsF68?Q?CK15?6Pn45N`InfVC{DQ|9X%Z^+k_r+uWNV zSjGx4K^gjiZk@38!_bM=BHGdRhYdwKdfegaf!$?Yk*Y_=iTUKR&;$#~XmE4TdtCN> zaJ6-W)-Xg+!N_}w=5t6{S~v1e_XKXtY(i^I1zIVASx%M%6^v#GK`~_C$ST^fVhoJ& z!sWMyTf0B|=l<&c^DkC|fgco&vWzj9QGxC&#F59D52*Euq$erCKAl`!pif0Lxxh*- zQ;+KXeWf}uxP)M2ATwh^Z3vNaovtt#xWEcgZ!v35*RUml6+=c6G6%Erme`S(gQdV| zK~+Fyv8qr7#E`1s!{Olc*$Z#IwD+NqJoHRMQLdq}yYUsA86BiE)D z$w7Td%_UQ2c~TKaFKt3@=f+av$mqcg{;hA`N@y?~VE@3_Fa%hDrGik;tKVyq-Zea@ zD7cQ$5HQ6^waX-_#T@6LBcN^BWTi$o(hS)n8WE{b9H0hKgP^M7@YK179=i9`@a6yX zUqADY|C#ohYIsWHiD&wn)N*-C39-vB3UysPkq5ajj*2VK#v@OvoY{zyj9m?>jMb1U z+Wz$$cF^@2_OWy%(Ku#{|ebf8Pm}cB|j@t^?7y#%yRr#u-h55 zYSspX#t=BDQiw2OSaGy7xaah#2kt+!GaP^UnNR=3zkl`rK4D?Nh*a-W3UW_b05F5Q zfmF`0wqI+TL>gQIYQr3CdyZBS+au-V+c)Mt!d8Z6f}W6j5$*~hOm6K?uHPCwaPQ;> ztTxdYf@LvEmEi%70Hh$gC36{rgN{HDNHbtof}S~*3Pdh3l?s(f)+(hK1hO(zfiYrG zDOeMTQ#;i?_w3wv@0m0A#DnI>=bwJ&zyFWdKJ^6lCvh-JUR#|^P;&RwR`xT&#`D(A zqTW2Q%xDQxH)?Gy(pPhv4y`oj7@?55GKQ3b<>&)+$6%nngKJ-T=D|llb~_k?mCt61S7>%rUR2jJFG=&)C3J3|wNg^tdv`iys zW)Br~p%;jZIY<*oni6PkmgP=!M}&clOoOPwKrkN-&OUhIzH<-g*536`fA-l=K5_l& zuZ*wVL^H8!5Mzabbp*03f#h;z4pR2F9p|q^r`ri`Yx^o-JakgWA<7-g6gn57q*Ilj zG75-Ml$Ee=hAe2=2k*32-Xp9cl`l^mdlv$m|m+%hk780|Z)D1R?1J z7{E{nM<7B#6@6qHRX!Y@x_I&81Lr1RdH$FG{g1!$>CcY8b_I}C!!W2=4Im+TmTQ6B z9C9y+jwzo#W8|h_-dyL>VT+uH$(37M+tWffCa%~C#7WHj>94jt&}Lfjqns0qqw$q1 zFMsk=mw(&$zI5%nc>n?!)TltNDYt>@26U9|1$dDR&gdBRpcKr1V{}?hut>;+5D-H% z8fY}E&foX&rOV^zpMCOQ{OcEg{xjO&=U@~^J8*Xj^(3eDg5+K(7@n6%!RLcTBdJKL z^lC-gp8TzOdREJfT^0z&<^8l3)>>8sS;K)YFzezv+8Jyal92>8FcTxc{GWd6(NBD0 z^uW2v)tt&CgXA6XrZ%A9q#IZ65o*ei?FPZ+J%%#3DiqzxNH>N!&~Q|b;+abiUcBet z7k~WUKK-A6QsV=TcH(G9$I>8CYGv_1(-2J4kHE?s|q{AW@mW++uw2C^_jo*_h0y#{}rl% z#fT;;C1zcuZhDJ%Iv!%N9^np0%k`Zt5%kqek0B>(^RQhmr_3%j*ebyt9;ffz)?BmL zR%vyanT6NC{7dinuJ7de`|4YF2oqF*>LH^l2(-PBXpA8rSH&t8LZ}!F5f%f2DF(*K zVWr`~hC`ehX?W`LyWcy!@%sP$OFw$+m!FNNPot4MWgbyh@5_~TW_f#MutMt`yhw%g zkOeax%5KWzDh0(2MQ_%}-Xw$VoLxE=Vv)(6R{po6xd3-wnY;wqEWdUVrDd2h`FYYD$>XhEJlklS1ULea5&&-SfAQ? z@V(!_mtXqXzxX!~UcVkjm1>6r-cUm0kQX*sCaqBDI;gJx7)CAuETE^z4N*qJv89@q zIIZ`^NZ=r=&veGdGaN z5CqFyN79PseKbTeW(DD>SSix0;DewlVi)}U_IXI4MGUF_)(*J@Zs}m4&N+MI`_ukF1Cy30f zjZ+GYLKqCM{^IA&>>ZDP$DRF&Qe(N(WtPEZFtbum3ZQv3MCLy#1jdNUR1q;ERyM3K z8t|TbF1_d7d%y6xpZ}|W&kx3|0_rA<7Qvk^%QB1Y|Jq)4fgQ9pOG#@;c;%P-USvb0 z%~ChEZq{=V2O~GvOFXo-y!@}!%~x&-LLH5{gjY0KsCHiY`A=K&M<4%|Gz^n*jfjwE zeMGYu8O#F_qs0MZg&3?Fpo)xwdFh~QA?!WNXcfIG;|MK6S_*?&g?twv# zGbMS-JlM?rk~$cv=6DQqBWb7d-Ydz(Rx2j%y;xoH1zxvkS{E?kY7boLMGN7suqs7WX#GtY& zS{1Ach-QNdgNjvT6*-6+415@PW_16fk6yh0!qY$Y6JPvC|2$d%Tq(g5l~1q2C(JG| z&#B_VWe`qdBT#9ki3eDdRkh@))ZLKJ2 zMv#FX43)tmLSSWSf4uY7%kTS zecyc#+<)%Qm!A2>fA~+Yed@DuXM_Y~$zV;CX-BDi3Ufs;hk(*1w=q906R9H#Y!$)# ziv473ksb2}Tcr=SG}q$>+W51Mp$B^kB~q6WG$$EAiwF_s7{t^hxLx?xZ+`dh`GNaC z{6Xyu_jhj{+`io$j8oIVU7nN*FDq76*clD(y>}4e!86Z2{~v$yt3UZaap#Whj8Hd7 zx!IV^J?l+P7(X`MFQN_UX^+^;e$+|AHme1(UB|yO z*dmeLXA>`-=-FZAkq(NsK%L{Qx`AXbLrtz4_&Ozoe9-I zO3nVkoma2yzx3M8mtIbns3EE0vt+}CY#^RE?(P7qF54t}3g!x6( zlpmucfA|3RDR_ikf3}S9D_!mvbj|G|?XW9QCob5gu+zF@W)q2B9k!@YwX7peI|ypa zV67yITCu@)DRmxr&f^tFccNIoP4q{(qUoruT%xuCqlF9AhTd7u@$!DA;ma`b4SxHdV%HjE~8 zlFKj^Qo3`+eB_l)MD-?kP4ir~B~Ps?wJe=lj1EnLyDR&-4%f6M8;;zP6f;*#TsjDD z+qy7?0$%IM?#)Y8X^Ro%ExB*zP@iv$EDxPe##-6{1TY8O(8BZ7`owwhz|4NePe?Lx z{ozb>obw}o(Lx*ckZCo11NPC~IPPZ$^2`dl^;)RQ)Si3F)F*VJp2#THH(+w;(Pp79 ziZpAPFbY>o%$GAvvn745o}qZC=#-AZh5rnLdgc7kHR>Nd(7W8>}R_cl0wk2b#f>&{u7xFvL0n0^#R(#4jK zt=L99tj%-$vzm8dk#e&#-HFE?t3q}jN6l?3LBGxOyI--+=Z(2k9Ts%(=v6#v=_bPp z6!GHF7oMoA@w*UK=y;+QhNFle+uA*}s+eb3K3MPY`C)6OOz`VAvN+l`J2s>i%s(#M zU|ahJ{j5V~V6HEy_(Bm(Cnw6Xlu>w6VUBNXElDSvQE)9hd+9RLibonZbgxVEI~{N6 z_eteXCw`QkRMkqygl;Z-Z`1~L2jV1@-R@d!{VT^a>qx(|1_-mPT2JcDh^$sEg0Itz zTW{3oM9k7-R!ynZn-LuU>aK3+NIS$1-G+0mHlCb}(&7p9YjYiF+r*h0_m^>k!{2@l zzjWN$E31Pd|N8O%za}i*&SU@ehxT>zGTj}q#9x2iHHg3l+|XZtoy=Uxlc=i1Lx~&n z{KExu*W!D(x{gE33MaUp7Vql~TdYU18D~(^MNb!_Gr#Ts!BppWNmS`M1NQzIt7aY5#aP3Q&CXp|F!arW%Nglic=7LM=gS^DBN{I zP3?$G3Nn@XQ{IWmbYp&dMq2OzvuN~|($YWqrvhc&kcyVrqM1USdKL@aR3-G5SpPZo zXEmz-lb*n9PhUf`Iv6c?p`9e&SLSCPspjDS2URYrqTaABT>t<807*qoM6N<$g1|fx AYXATM literal 0 HcmV?d00001 diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-X-myaeP_.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-X-myaeP_.js new file mode 100644 index 00000000..91b51b90 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/logo-X-myaeP_.js @@ -0,0 +1 @@ +const o="/app/assets/logo-BjHPa6CA.png";export{o as l}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/runtime-bridge-DmDzFGpU.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/runtime-bridge-DmDzFGpU.js new file mode 100644 index 00000000..ab37055e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/runtime-bridge-DmDzFGpU.js @@ -0,0 +1 @@ +function e(){return typeof window<"u"&&typeof window.miniapp<"u"}function i(n){return n&&typeof n=="object"&&"message"in n?String(n.message):typeof n=="string"?n:n instanceof Error?n.message:"未知错误"}export{i as e,e as i}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bl5LBoP5.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bl5LBoP5.js new file mode 100644 index 00000000..9f0c7bfa --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bl5LBoP5.js @@ -0,0 +1,2 @@ +import{ao as a,aV as t,ap as r,a_ as i}from"./index-Ch4EWX-G.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` +`)}const p=s=>r("/v1/streamers",s),u=s=>t("/v1/streamers",s),d=s=>i(`/v1/streamers/${s}`),g=s=>t(`/v1/streamers/${s}/pause`),$=s=>`/v1/streamers/${s}/cover`;export{m as a,p as b,$ as c,o as d,d as e,c as g,l,v as p,g as t,u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CjxNERC_.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CjxNERC_.js new file mode 100644 index 00000000..ac87e7d5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CjxNERC_.js @@ -0,0 +1 @@ +import{L as f,j as e}from"./index-Ch4EWX-G.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-sIwnQEJL.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-sIwnQEJL.js new file mode 100644 index 00000000..e4457c1d --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-sIwnQEJL.js @@ -0,0 +1,117 @@ +import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as ze,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,z as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b2 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-Ch4EWX-G.js";import{f as Oe}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as Mn,a as An}from"./use-compitable-CjxNERC_.js";var Ie=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var zn=500;function In(e){var t=Ye(e,function(r){return n.size===zn&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=In(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:z,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:I}=l;$==="target"?I.width=`${d.width}px`:$!==void 0?I.width=$:I.width="",T==="target"?I.minWidth=`${d.width}px`:T!==void 0?I.minWidth=T:I.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,z,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[H(">",[D("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Me("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[Me("scrollable",[Me("show-header-or-footer","padding: var(--n-padding);")])]),Ae("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),Ae("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),me("scrollable, show-header-or-footer",[Ae("content",` + padding: var(--n-padding); + `)])]),D("popover-shared",` + transform-origin: inherit; + `,[D("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[D("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${x}); + height: calc(${x}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),H("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),H("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),H("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),_("top-start",` + top: calc(${x} / -2); + left: calc(${L("top-start")} - var(--v-offset-left)); + `),_("top",` + top: calc(${x} / -2); + transform: translateX(calc(${x} / -2)) rotate(45deg); + left: 50%; + `),_("top-end",` + top: calc(${x} / -2); + right: calc(${L("top-end")} + var(--v-offset-left)); + `),_("bottom-start",` + bottom: calc(${x} / -2); + left: calc(${L("bottom-start")} - var(--v-offset-left)); + `),_("bottom",` + bottom: calc(${x} / -2); + transform: translateX(calc(${x} / -2)) rotate(45deg); + left: 50%; + `),_("bottom-end",` + bottom: calc(${x} / -2); + right: calc(${L("bottom-end")} + var(--v-offset-left)); + `),_("left-start",` + left: calc(${x} / -2); + top: calc(${L("left-start")} - var(--v-offset-top)); + `),_("left",` + left: calc(${x} / -2); + transform: translateY(calc(${x} / -2)) rotate(45deg); + top: 50%; + `),_("left-end",` + left: calc(${x} / -2); + bottom: calc(${L("left-end")} + var(--v-offset-top)); + `),_("right-start",` + right: calc(${x} / -2); + top: calc(${L("right-start")} - var(--v-offset-top)); + `),_("right",` + right: calc(${x} / -2); + transform: translateY(calc(${x} / -2)) rotate(45deg); + top: 50%; + `),_("right-end",` + right: calc(${x} / -2); + bottom: calc(${L("right-end")} + var(--v-offset-top)); + `),...Vr({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const a=o.split("-")[1]==="end",i=`calc((${`var(--v-target-${r}, 0px)`} - ${x}) / 2)`,u=L(o);return H(`[v-placement="${o}"] >`,[D("popover-shared",[me("center-arrow",[D("popover-arrow",`${t}: calc(max(${i}, ${u}) ${a?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function L(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function _(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return H(`[v-placement="${e}"] >`,[D("popover-shared",` + margin-${Te[n]}: var(--n-space); + `,[me("show-arrow",` + margin-${Te[n]}: var(--n-space-arrow); + `),me("overlap",` + margin: 0; + `),on("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${n}: 100%; + ${Te[n]}: auto; + ${r} + `,[D("popover-arrow",t)])])])}const Tt={...He.props,to:ee.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number};function go({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:o}){return B(),U("div",{key:"__popover-arrow__",style:q(r),class:Q([`${o}-popover-arrow-wrapper`,n])},[mn("div",{class:Q([`${o}-popover-arrow`,e]),style:q(t)},null,6)],6)}var mo=de({name:"PopoverBody",inheritAttrs:!1,props:Tt,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:a,mergedRtlRef:i}=ln(e),u=He("Popover","-popover",vo,un,e,o),s=dn("Popover",i,o),w=P(null),p=F("NPopover"),m=P(null),l=P(e.show),f=P(!1);xt(()=>{const{show:y}=e;y&&!Rr()&&!e.internalDeactivateImmediately&&(f.value=!0)});const v=ie(()=>{const{trigger:y,onClickoutside:S}=e,g=[],{positionManuallyRef:{value:C}}=p;return C||(y==="click"&&!S&&g.push([Je,N,void 0,{capture:!0}]),y==="hover"&&g.push([oo,z])),S&&g.push([Je,N,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&g.push([gn,e.show]),g}),c=ie(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:S,cubicBezierEaseOut:g},self:{space:C,spaceArrow:W,padding:h,fontSize:A,textColor:M,dividerColor:E,color:fe,boxShadow:zt,borderRadius:It,arrowHeight:Lt,arrowOffset:Dt,arrowOffsetVertical:Ft}}=u.value;return{"--n-box-shadow":zt,"--n-bezier":y,"--n-bezier-ease-in":S,"--n-bezier-ease-out":g,"--n-font-size":A,"--n-text-color":M,"--n-color":fe,"--n-divider-color":E,"--n-border-radius":It,"--n-arrow-height":Lt,"--n-arrow-offset":Dt,"--n-arrow-offset-vertical":Ft,"--n-padding":h,"--n-space":C,"--n-space-arrow":W}}),b=ie(()=>{const y=e.width==="trigger"?void 0:Oe(e.width),S=[];y&&S.push({width:y});const{maxWidth:g,minWidth:C}=e;return g&&S.push({maxWidth:Oe(g)}),C&&S.push({maxWidth:Oe(C)}),a||S.push(c.value),S}),d=a?fn("popover",void 0,c,e):void 0;p.setBodyInstance({syncPosition:$}),ue(()=>{p.setBodyInstance(null)}),re(j(e,"show"),y=>{e.animated||(y?l.value=!0:l.value=!1)});function $(){w.value?.syncPosition()}function T(y){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&p.handleMouseEnter(y)}function O(y){e.trigger==="hover"&&e.keepAliveOnHover&&p.handleMouseLeave(y)}function z(y){e.trigger==="hover"&&!I().contains(Re(y))&&p.handleMouseMoveOutside(y)}function N(y){(e.trigger==="click"&&!I().contains(Re(y))||e.onClickoutside)&&p.handleClickOutside(y)}function I(){return p.getTriggerElement()}ae(bt,m),ae(wt,null),ae(mt,null);function ne(){if(d?.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let y;const S=p.internalRenderBodyRef.value,{value:g}=o;if(S)y=S([`${g}-popover-shared`,s?.value&&`${g}-popover--rtl`,d?.themeClass.value,e.overlap&&`${g}-popover-shared--overlap`,e.showArrow&&`${g}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${g}-popover-shared--center-arrow`],m,b.value,T,O);else{const{value:C}=p.extraClassRef,{internalTrapFocus:W}=e,h=!Qe(t.header)||!Qe(t.footer),A=()=>{const M=h?(B(),U(pn,{key:1},[Y(()=>Ce(t.header,E=>E?(B(),U("div",{key:2,class:Q([`${g}-popover__header`,e.headerClass]),style:q(e.headerStyle)},[Y(()=>E)],6)):null)),Y(()=>Ce(t.default,E=>E?(B(),U("div",{key:3,class:Q([`${g}-popover__content`,e.contentClass]),style:q(e.contentStyle)},[Y(()=>t.default?.())],6)):null)),Y(()=>Ce(t.footer,E=>E?(B(),U("div",{key:4,class:Q([`${g}-popover__footer`,e.footerClass]),style:q(e.footerStyle)},[Y(()=>E)],6)):null))],64)):e.scrollable?t.default?.():(B(),U("div",{key:5,class:Q([`${g}-popover__content`,e.contentClass]),style:q(e.contentStyle)},[Y(()=>t.default?.())],6));return[e.scrollable?(B(),oe(vn,{key:6,themeOverrides:u.value.peerOverrides.Scrollbar,theme:u.value.peers.Scrollbar,contentClass:h?void 0:`${g}-popover__content ${e.contentClass??""}`,contentStyle:h?void 0:e.contentStyle},{default:()=>M},1032,["themeOverrides","theme","contentClass","contentStyle"])):M,e.showArrow?go({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:g}):null]};y=V("div",hn({class:[`${g}-popover`,`${g}-popover-shared`,s?.value&&`${g}-popover--rtl`,d?.themeClass.value,C.map(M=>`${g}-${M}`),{[`${g}-popover--scrollable`]:e.scrollable,[`${g}-popover--show-header-or-footer`]:h,[`${g}-popover--raw`]:e.raw,[`${g}-popover-shared--overlap`]:e.overlap,[`${g}-popover-shared--show-arrow`]:e.showArrow,[`${g}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:m,style:b.value,onKeydown:p.handleKeydown,onMouseenter:T,onMouseleave:O},n),W?(B(),oe(cn,{key:7,active:e.show,autoFocus:!0},{default:A},1032,["active"])):A())}return xe(y,v.value)}return{displayed:f,namespace:r,isMounted:p.isMountedRef,zIndex:p.zIndexRef,followerRef:w,adjustedTo:ee(e),followerEnabled:l,renderContentNode:ne}},render(){return B(),oe(po,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===ee.tdkey},{_:1,default:an(()=>this.animated?(B(),oe(sn,{key:8,name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{this.internalOnAfterLeave?.(),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode},1032,["appear","onEnter","onAfterLeave"])):this.renderContentNode())},8,["zIndex","show","enabled","to","x","y","flip","placement","containerClass","overlap","width","teleportDisabled"])}});const wo={key:1,style:{position:"fixed",top:0,right:0,bottom:0,left:0}},bo=Object.keys(Tt),yo={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function $o(e,t,n){yo[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],a=n[r];o?e.props[r]=(...i)=>{o(...i),a(...i)}:e.props[r]=a})}const xo={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:ee.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},So={...He.props,...xo,internalOnAfterLeave:Function,internalRenderBody:Function};var Eo=de({name:"Popover",inheritAttrs:!1,props:So,slots:Object,__popover__:!0,setup(e){const t=$t(),n=P(null),r=ie(()=>e.show),o=P(e.defaultShow),a=Mn(r,o),i=le(()=>e.disabled?!1:a.value),u=()=>{if(e.disabled)return!0;const{getDisabled:h}=e;return!!h?.()},s=()=>u()?!1:a.value,w=An(e,["arrow","showArrow"]),p=ie(()=>e.overlap?!1:w.value);let m=null;const l=P(null),f=P(null),v=le(()=>e.x!==void 0&&e.y!==void 0);function c(h){const{"onUpdate:show":A,onUpdateShow:M,onShow:E,onHide:fe}=e;o.value=h,A&&ce(A,h),M&&ce(M,h),h&&E&&ce(E,!0),h&&fe&&ce(fe,!1)}function b(){m&&m.syncPosition()}function d(){const{value:h}=l;h&&(window.clearTimeout(h),l.value=null)}function $(){const{value:h}=f;h&&(window.clearTimeout(h),f.value=null)}function T(){const h=u();if(e.trigger==="focus"&&!h){if(s())return;c(!0)}}function O(){const h=u();if(e.trigger==="focus"&&!h){if(!s())return;c(!1)}}function z(){const h=u();if(e.trigger==="hover"&&!h){if($(),l.value!==null||s())return;const A=()=>{c(!0),l.value=null},{delay:M}=e;M===0?A():l.value=window.setTimeout(A,M)}}function N(){const h=u();if(e.trigger==="hover"&&!h){if(d(),f.value!==null||!s())return;const A=()=>{c(!1),f.value=null},{duration:M}=e;M===0?A():f.value=window.setTimeout(A,M)}}function I(){N()}function ne(h){s()&&(e.trigger==="click"&&(d(),$(),c(!1)),e.onClickoutside?.(h))}function y(){e.trigger==="click"&&!u()&&(d(),$(),c(!s()))}function S(h){e.internalTrapFocus&&h.key==="Escape"&&(d(),$(),c(!1))}function g(h){o.value=h}function C(){return n.value?.targetRef}function W(h){m=h}return ae("NPopover",{getTriggerElement:C,handleKeydown:S,handleMouseEnter:z,handleMouseLeave:N,handleClickOutside:ne,handleMouseMoveOutside:I,setBodyInstance:W,positionManuallyRef:v,isMountedRef:t,zIndexRef:j(e,"zIndex"),extraClassRef:j(e,"internalExtraClass"),internalRenderBodyRef:j(e,"internalRenderBody")}),xt(()=>{a.value&&u()&&c(!1)}),{binderInstRef:n,positionManually:v,mergedShowConsideringDisabledProp:i,uncontrolledShow:o,mergedShowArrow:p,getMergedShow:s,setShow:g,handleClick:y,handleMouseEnter:z,handleMouseLeave:N,handleFocus:T,handleBlur:O,syncPosition:b}},render(){const{positionManually:e,$slots:t}=this;let n,r=!1;if(!e&&(n=wn(t,"trigger"),n)){n=bn(n),n=n.type===yn?V("span",[n]):n;const o={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(n.type?.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[o,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[o];else{const{internalInheritedEventHandlers:a}=this,i=[o,...a];$o(n,a?"nested":e?"manual":this.trigger,{onBlur:u=>{i.forEach(s=>{s.onBlur(u)})},onFocus:u=>{i.forEach(s=>{s.onFocus(u)})},onClick:u=>{i.forEach(s=>{s.onClick(u)})},onMouseenter:u=>{i.forEach(s=>{s.onMouseenter(u)})},onMouseleave:u=>{i.forEach(s=>{s.onMouseleave(u)})}})}}return B(),oe(no,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const o=this.getMergedShow();return[this.internalTrapFocus&&o?xe((B(),U("div",wo)),[[yt,{enabled:o,zIndex:this.zIndex}]]):null,e?null:V(ro,null,{default:()=>n}),V(mo,$n(this.$props,bo,{...this.$attrs,showArrow:this.mergedShowArrow,show:o}),{default:()=>this.$slots.default?.(),header:()=>this.$slots.header?.(),footer:()=>this.$slots.footer?.()})]}},1032,["syncTarget","syncTargetWithParent"])}});function _o(){const e=F(Sn,null);return e===null&&xn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}export{no as B,Eo as P,ro as V,po as a,ee as b,ao as c,Zr as d,pe as e,qr as f,Nn as g,Oo as i,xo as p,go as r,_o as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html new file mode 100644 index 00000000..708cc3af --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html @@ -0,0 +1,14 @@ + + + + + + + Live Stream Recorder + + + + +

+ + diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/miniapp.json b/plugins/charlesnty612/live-stream-recorder/miniapp/miniapp.json new file mode 100644 index 00000000..e39a5b8a --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/miniapp.json @@ -0,0 +1,47 @@ +{ + "schemaVersion": 1, + "artifacts": { + "client": [ + "./miniapp/client" + ], + "node": [ + "./miniapp/node" + ] + }, + "runtime": { + "kind": "process", + "entry": "./miniapp/node/server.mjs", + "lifecycle": "on-demand" + }, + "surface": { + "path": "/app", + "window": { + "width": 1200, + "height": 800, + "minWidth": 720, + "minHeight": 520, + "resizable": true + } + }, + "fileHandlers": [ + { + "id": "recording-media", + "path": "/app", + "extensions": [ + ".flv", + ".mp4", + ".mkv", + ".webm", + ".xml" + ] + } + ], + "engines": { + "mcode": ">=3.1.20" + }, + "permissions": { + "device": [ + "notifications" + ] + } +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/config.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/config.mjs new file mode 100644 index 00000000..689440bb --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/config.mjs @@ -0,0 +1,119 @@ +// context.dataDir 配置持久化(Sidecar / 外部模式切换、令牌脱敏)。 +import { readFileSync, writeFileSync, mkdirSync, chmodSync, existsSync } from 'node:fs'; +import { join, dirname } from 'node:path'; + +const DEFAULT_CONFIG = Object.freeze({ + mode: 'sidecar', + binaryPath: '', + ffmpegPath: '', + renderToolsDir: '', + desktopToken: '', + remote: { + baseUrl: '', + authMode: 'none', // none | auth | token + username: '', + appPassword: '', + token: '', + }, +}); + +const SECRET_FIELDS = ['desktopToken', 'remote.appPassword', 'remote.token']; +const FORBIDDEN_KEYS = new Set(['__proto__', 'constructor', 'prototype']); + +// remote.baseUrl 的 SSRF 拦截:链路本地(含云元数据 169.254.0.0/16)一律拒绝。 +// 127.0.0.1 是模式 B「本机常驻服务」的合法目标,不拦。 +function isForbiddenRemoteBase(base) { + if (typeof base !== 'string' || !base) return false; + try { + const u = new URL(base); + if (!['http:', 'https:'].includes(u.protocol)) return true; + const h = u.hostname.toLowerCase().replace(/^\[|\]$/g, ''); + if (/^169\.254\./.test(h)) return true; + if (/^metadata\.google\.(internal|com)$/.test(h) || h.endsWith('.metadata.google.internal')) return true; + if (/^metadata\.azure\.com$/.test(h)) return true; + return false; + } catch { + return true; + } +} + +function clone(obj) { + return JSON.parse(JSON.stringify(obj)); +} + +// 只接受 DEFAULT_CONFIG 声明过的字段;拒绝原型污染键与未知字段(BUG-03)。 +function merge(base, patch) { + const out = clone(base); + if (!patch || typeof patch !== 'object' || Array.isArray(patch)) return out; + for (const [k, v] of Object.entries(patch)) { + if (FORBIDDEN_KEYS.has(k)) continue; + if (!Object.prototype.hasOwnProperty.call(base, k)) continue; + if (v && typeof v === 'object' && !Array.isArray(v) && + out[k] && typeof out[k] === 'object' && !Array.isArray(out[k])) { + out[k] = merge(out[k], v); + } else if (v !== undefined) { + out[k] = v; + } + } + return out; +} + +export function createConfigStore(dataDir) { + const file = join(dataDir, 'miniapp-config.json'); + let cache = clone(DEFAULT_CONFIG); + try { + mkdirSync(dataDir, { recursive: true }); + if (existsSync(file)) { + const parsed = JSON.parse(readFileSync(file, 'utf8')); + cache = merge(DEFAULT_CONFIG, parsed); + } + } catch { + cache = clone(DEFAULT_CONFIG); + } + cache = merge(DEFAULT_CONFIG, cache); + + function persist() { + try { + mkdirSync(dirname(file), { recursive: true }); + writeFileSync(file, JSON.stringify(cache, null, 2), 'utf8'); + try { chmodSync(file, 0o600); } catch { /* no-op on Windows */ } + } catch { + return false; + } + return true; + } + if (!existsSync(file)) persist(); + + return { + file, + get() { + const view = clone(cache); + for (const field of SECRET_FIELDS) { + const parts = field.split('.'); + const last = parts.pop(); + const parent = parts.reduce((o, k) => (o ? o[k] : undefined), view); + if (parent && parent[last]) { + parent['has' + last[0].toUpperCase() + last.slice(1)] = true; + parent[last] = ''; + } + } + return view; + }, + secrets() { + return clone(cache); + }, + update(patch) { + if (!patch || typeof patch !== 'object' || Array.isArray(patch)) return false; + if (patch.remote && typeof patch.remote === 'object' && + isForbiddenRemoteBase(patch.remote.baseUrl)) return false; + const safe = { ...patch }; + delete safe.binaryPath; + delete safe.cliPath; + cache = merge(cache, safe); + return persist(); + }, + raw() { + return clone(cache); + }, + }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/events.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/events.mjs new file mode 100644 index 00000000..30148a89 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/events.mjs @@ -0,0 +1,137 @@ +// 自维护脱敏日志环 + /_miniapp/events SSE 广播 + /v1/activity-events 增量轮询。 +// 不依赖 context.logger(宿主桥会截断消息并丢弃 fields 值)。 +import { randomUUID } from 'node:crypto'; + +const RING_SIZE = 200; +// BUG-38:显式匹配 (?:Bearer|Basic)\s+ 前缀,避免把 authorization: Bearer +// 只脱敏到 'authorization: Bearer' 而把真令牌留在日志里。 +// 字段值分支把可选 scheme 一并吞入,整段替换。 +const SECRET_RE = /(?:authorization|x-desktop-token|x-biliup-auth|cookie|set-cookie|token|appPassword|secret)\s*[:=]?\s*(?:(?:Bearer|Basic)\s+)?[^\s,;]+|(?:Bearer|Basic)\s+[^\s,;]+/gi; + +export function redact(text) { + if (typeof text !== 'string') return String(text); + return text.replace(SECRET_RE, (m) => { + // 裸 scheme(Basic/Bearer + 凭据)分支:先判前缀,避免凭据里的 '=' / ':' 被误当分隔符。 + const scheme = m.match(/^(Bearer|Basic)\s+/i); + if (scheme) return scheme[1] + ' ***'; + const sep = m.match(/[:=]/); + if (sep) return m.slice(0, m.indexOf(sep[0]) + 1) + '***'; + return m.split(/\s+/)[0] + ' ***'; + }); +} + +// BUG-38:有界去重集合,避免重复广播历史事件且防止无界增长。 +const SEEN_IDS_LIMIT = 500; + +export function createEventHub(fetchImpl, logFn) { + const ring = []; + const clients = new Set(); + let lastEventId = null; + let pollTimer = null; + let targetResolver = null; + let stopped = false; + let polling = false; // BUG-38:同步置位,堵住 startPolling 重入窗口 + const seenIds = new Set(); + + function log(level, message, fields) { + const entry = { + ts: new Date().toISOString(), + level, + message: redact(message), + fields: fields ? redact(JSON.stringify(fields)) : '', + }; + ring.push(entry); + if (ring.length > RING_SIZE) ring.shift(); + if (logFn) logFn(level, entry.message); + return entry; + } + + function snapshot() { + return ring.slice(); + } + + function broadcast(event) { + const payload = 'data: ' + JSON.stringify({ ...event, id: event.id || randomUUID() }) + '\n\n'; + for (const res of clients) { + try { res.write(payload); } catch { clients.delete(res); } + } + } + + function subscribe(req, res) { + res.statusCode = 200; + res.setHeader('content-type', 'text/event-stream; charset=utf-8'); + res.setHeader('cache-control', 'no-cache, no-transform'); + res.setHeader('connection', 'keep-alive'); + res.setHeader('x-miniapp-proxy', '1'); + res.flushHeaders?.(); + res.write(': connected\n\n'); + clients.add(res); + const cleanup = () => clients.delete(res); + req.on('close', cleanup); + req.on('error', cleanup); + } + + async function pollOnce() { + if (stopped || !targetResolver) return; + try { + const { base, headers } = targetResolver(); + if (!base) return; + // BUG-21:后端 ListQuery 是 deny_unknown_fields,只认 limit;带 ?after= 会直接 400, + // 之后每次轮询都失败、通知永不触发。增量去重交给下面的 seenIds(有界)。 + const url = new URL('/v1/activity-events', base); + const ctl = new AbortController(); + const timer = setTimeout(() => ctl.abort(), 5000); + let data; + try { + const r = await fetchImpl(url, { headers, signal: ctl.signal }); + if (r.status === 200) data = await r.json(); + } finally { + clearTimeout(timer); + } + const items = Array.isArray(data) ? data : (data?.events || data?.items || []); + for (const ev of items) { + const id = ev?.id ?? ev?.ts ?? Date.now(); + const key = String(id); + // BUG-38:单 ID 去重 + 有界 seenIds,避免反复广播历史事件与无界增长。 + if (seenIds.has(key)) continue; + seenIds.add(key); + if (seenIds.size > SEEN_IDS_LIMIT) { + const oldest = seenIds.values().next().value; + if (oldest !== undefined) seenIds.delete(oldest); + } + broadcast({ type: 'activity', ...ev, id }); + lastEventId = id; + } + } catch (e) { + log('warn', 'activity-events poll failed: ' + (e?.message || e)); + } + } + + // BUG-38:setTimeout 尾递归替代 setInterval,保证前一拍完成后才排下一拍,防并发堆积。 + let pollIntervalMs = 3000; + async function pollLoop() { + if (stopped) return; + await pollOnce(); + if (stopped) return; + pollTimer = setTimeout(pollLoop, pollIntervalMs); + } + + function startPolling(resolver, intervalMs = 3000) { + targetResolver = resolver; + pollIntervalMs = intervalMs; + if (polling || stopped) return; // 同步标志,避免首次 pollOnce 未完成时的重入 + polling = true; + stopped = false; + pollLoop(); + } + + function stop() { + stopped = true; + polling = false; + if (pollTimer) { clearTimeout(pollTimer); pollTimer = null; } + for (const res of clients) { try { res.end(); } catch { /* ignore */ } } + clients.clear(); + } + + return { log, snapshot, broadcast, subscribe, startPolling, stop, get clients() { return clients.size; } }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs new file mode 100644 index 00000000..615e7986 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs @@ -0,0 +1,435 @@ +// Node 网关反代核心。不自行监听端口,由 server.mjs 用单一 node:http 驱动。 +// 路由优先级:/__mavis/ 放行 → 私有字面量 404 → /_miniapp 控制 → 反代 → /app 静态。 +import http from 'node:http'; +import https from 'node:https'; +import net from 'node:net'; +import tls from 'node:tls'; +import { randomBytes } from 'node:crypto'; +import { createReadStream, statSync, existsSync, realpathSync } from 'node:fs'; +import { join, extname, normalize, isAbsolute } from 'node:path'; + +// opened-file token 映射有效期:10 分钟。过期即 404;dispose() 立即清空。 +const OPENED_FILE_TTL_MS = 10 * 60 * 1000; +// 与 miniapp.json fileHandlers.extensions 对齐的白名单(BUG-02:拒绝任意扩展名)。 +const OPENED_FILE_EXTS = new Set(['.flv', '.mp4', '.mkv', '.webm', '.xml']); +// 回环 Host 白名单:控制接口只允许从本机回环访问(纵深防御,宿主守卫之上的第二道闸)。 +const LOOPBACK_HOSTS = new Set(['127.0.0.1', 'localhost', '[::1]', '::1']); + +const HOP_BY_HOP = new Set([ + 'connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', + 'te', 'trailer', 'trailers', 'transfer-encoding', 'upgrade', +]); +const FORWARDED = new Set(['forwarded', 'x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-real-ip']); +// 私有路由前缀用拼接构造,避免净版源码/产物出现完整私有字面量。 +const PRIV_MEMBER = '/v1/' + 'membership'; +const PRIV_SUPPORT = '/v1/support/' + 'logs'; + +const MIME = { + '.html': 'text/html; charset=utf-8', '.js': 'text/javascript; charset=utf-8', + '.mjs': 'text/javascript; charset=utf-8', '.css': 'text/css; charset=utf-8', + '.json': 'application/json; charset=utf-8', '.svg': 'image/svg+xml', + '.png': 'image/png', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', + '.webp': 'image/webp', '.ico': 'image/x-icon', '.woff': 'font/woff', + '.woff2': 'font/woff2', '.ttf': 'font/ttf', '.map': 'application/json', +}; + +function send(res, status, body, headers = {}) { + if (res.writableEnded || res.destroyed) return; + res.statusCode = status; + for (const [k, v] of Object.entries(headers)) res.setHeader(k, v); + res.setHeader('x-miniapp-proxy', '1'); + if (typeof body === 'string' || Buffer.isBuffer(body)) res.end(body); + else res.end(JSON.stringify(body)); +} + +function json(res, status, obj, extra = {}) { + send(res, status, JSON.stringify(obj), { 'content-type': 'application/json; charset=utf-8', ...extra }); +} + +// BUG-15:按 RFC 7230 合并同名多值头(cookie 用 '; ',其余用 ', ';set-cookie 保持数组)。 +function mergeHeader(headers, key, value) { + const k = key.toLowerCase(); + if (!(k in headers)) { headers[k] = value; return; } + const prev = headers[k]; + if (Array.isArray(prev)) headers[k] = prev.concat(value); + else headers[k] = prev + (k === 'cookie' ? '; ' : ', ') + value; +} + +// BUG-15:从上游响应头中剔除 Connection 提名头(逐跳头),set-cookie 不合并。 +function hopByHopNames(headers) { + const names = new Set(); + const conn = headers.connection || headers.Connection; + if (Array.isArray(conn)) conn.forEach((v) => String(v).split(',').forEach((n) => names.add(n.trim().toLowerCase()))); + else if (typeof conn === 'string') conn.split(',').forEach((n) => names.add(n.trim().toLowerCase())); + return names; +} + +// BUG-16:流式发送辅助函数,挂 stream.on('error') 与 res.on('close') 防连接泄漏。 +function streamFile(res, file, opts) { + const stream = createReadStream(file, opts); + stream.on('error', () => { try { if (!res.headersSent) res.statusCode = 404; res.end(); } catch { /* ignore */ } }); + res.on('close', () => { try { if (!res.writableEnded) stream.destroy(); } catch { /* ignore */ } }); + stream.pipe(res); +} + +// BUG-16:解析 Range,支持 bytes=-500(后缀)与 bytes=100-、bytes=100-200。 +function parseRange(range, size) { + const m = /^bytes=(\d*)-(\d*)$/.exec(range || ''); + if (!m || (!m[1] && !m[2])) return null; + let start, end; + if (!m[1]) { const n = parseInt(m[2], 10); start = Math.max(0, size - n); end = size - 1; } + else { start = parseInt(m[1], 10); end = m[2] ? parseInt(m[2], 10) : size - 1; } + if (isNaN(start)) start = 0; + if (isNaN(end) || end >= size) end = size - 1; + if (start > end || start >= size || size === 0) return { invalid: true, size }; + return { start, end, size }; +} + +export function createProxy(deps) { + const { getConnection, configStore, eventHub, log, clientRoot, isClosing, registerSocket, unregisterSocket, fetchImpl, now } = deps; + const clock = typeof now === 'function' ? now : Date.now; + + // ---- opened-file token 映射(纯内存,不落盘,不回显路径)---- + // 宿主 files.subscribe 投递 { handlerId, files:[{path,name,extension}] }; + // POST 把每个绝对路径登记为不透明 token,GET 只按 token 流式读取。 + const openedFiles = new Map(); // token -> { path, ext, expiresAt } + + function pruneOpenedFiles() { + const t = clock(); + for (const [token, entry] of openedFiles) { + if (entry.expiresAt <= t) openedFiles.delete(token); + } + } + + function registerOpenedFiles(body) { + const files = Array.isArray(body?.files) ? body.files : []; + pruneOpenedFiles(); + const tokens = []; + for (const f of files) { + if (!f || typeof f !== 'object') continue; + const p = f.path; + // 只接受绝对路径;相对路径/空串一律跳过(纵深防御,杜绝任意路径读取)。 + if (typeof p !== 'string' || !p || !isAbsolute(p)) continue; + // realpath + isFile:拒绝符号链接越界与非普通文件。 + let real = p; + try { + real = realpathSync(p); + if (!statSync(real).isFile()) continue; + } catch { continue; } + // 扩展名白名单必须在 realpath 之后判定,否则符号链接(clip.mp4 → secret.txt) + // 可用白名单后缀绕过,读取任意文件(BUG-02)。 + // 严格只认真实路径扩展名,避免无后缀文件(如 id_rsa)凭请求体伪造 f.extension 拿到死 token。 + const ext = extname(real).toLowerCase(); + if (!OPENED_FILE_EXTS.has(ext)) continue; + const token = randomBytes(32).toString('hex'); + openedFiles.set(token, { path: real, ext, expiresAt: clock() + OPENED_FILE_TTL_MS }); + tokens.push(token); + } + return tokens; + } + + function resolveOpenedFile(id) { + if (typeof id !== 'string' || !id) return null; + const entry = openedFiles.get(id); + if (!entry) return null; + if (entry.expiresAt <= clock()) { openedFiles.delete(id); return null; } + // 读取时复核 realpath:登记后若被替换为符号链接/非普通文件则拒绝(BUG-02)。 + try { + if (!OPENED_FILE_EXTS.has(extname(entry.path).toLowerCase())) return null; + if (realpathSync(entry.path) !== entry.path || !statSync(entry.path).isFile()) return null; + } catch { return null; } + return entry; + } + + function clearOpenedFiles() { openedFiles.clear(); } + + // ---- 静态资源(仅 /app 与 /app/*)---- + function serveStatic(req, res, pathname) { + let rel = pathname === '/app' || pathname === '/app/' ? 'index.html' : pathname.slice('/app/'.length); + // 防目录穿越:归一化后不得含 '..',不得是绝对路径。 + if (rel.includes('..') || rel.includes('\\') || rel.startsWith('/')) { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + let file; + try { file = join(clientRoot, rel); } catch { return send(res, 404, 'not found'); } + // 仅对 /app、/app/ 回退 index.html;子路径不存在直接 404。 + if (!existsSync(file) || !statSync(file).isFile()) { + if ((pathname === '/app' || pathname === '/app/') && existsSync(join(clientRoot, 'index.html'))) { + file = join(clientRoot, 'index.html'); + } else { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + } + const ct = MIME[extname(file).toLowerCase()] || 'application/octet-stream'; + res.statusCode = 200; + res.setHeader('content-type', ct); + res.setHeader('x-miniapp-proxy', '1'); + // 支持静态资源 Range(BUG-16:后缀 bytes=-500 与流式错误/关闭处理)。 + const size = statSync(file).size; + const r = parseRange(req.headers.range, size); + if (r && r.invalid) { + res.statusCode = 416; + res.setHeader('content-range', 'bytes */' + size); + return res.end(); + } + if (r) { + res.statusCode = 206; + res.setHeader('content-range', 'bytes ' + r.start + '-' + r.end + '/' + size); + res.setHeader('accept-ranges', 'bytes'); + res.setHeader('content-length', String(r.end - r.start + 1)); + return streamFile(res, file, { start: r.start, end: r.end }); + } + res.setHeader('content-length', String(size)); + return streamFile(res, file); + } + + // 控制接口纵深防御(BUG-02/03):回环 Host + 严格同源 Origin。 + // 官方文档声称宿主在所有 node:http 服务前装请求守卫(/__mavis/ 401/204 探测), + // 但本会话未探针实测(见 HANDOFF 限制 5);本层不依赖该声称,独立生效。 + // 不引入 bridge token:依据该文档声称与宿主安全模型冲突,且前端无可用令牌。 + function isLoopbackControl(req) { + const rawHost = (req.headers.host || '').toLowerCase(); + const host = rawHost.replace(/:\d+$/, ''); + if (!LOOPBACK_HOSTS.has(host)) return false; + const origin = req.headers.origin; + if (origin === undefined) return true; // 原生进程/宿主注入不带 Origin,放行 + try { + const u = new URL(origin); + // 严格同源:host(含端口)必须与请求的 Host 完全一致, + // 否则本机任意端口页面都能改写 connection-config 造成 Cookie 外泄。 + return u.host.toLowerCase() === rawHost && ['http:', 'https:'].includes(u.protocol); + } catch { return false; } + } + + // ---- 控制接口 /_miniapp/* ---- + function handleControl(req, res, pathname, url) { + // 写操作与文件登记必须过回环校验;GET 状态类保持可读(前端 loadRuntimeStatus 依赖)。 + const isWrite = req.method !== 'GET' || pathname === '/_miniapp/opened-file'; + if (isWrite && !isLoopbackControl(req)) { + return json(res, 403, { error: 'forbidden: loopback host/origin required' }); + } + if (pathname === '/_miniapp/runtime-status' && req.method === 'GET') { + return json(res, 200, getConnection()?.status || { mode: 'unknown', ready: false }); + } + if (pathname === '/_miniapp/connection-config' && req.method === 'GET') { + return json(res, 200, configStore.get()); + } + if (pathname === '/_miniapp/connection-config' && req.method === 'PUT') { + let body = ''; + req.on('data', (c) => { body += c; if (body.length > 1e6) req.destroy(); }); + req.on('end', () => { + try { + const patch = JSON.parse(body || '{}'); + const ok = configStore.update(patch); + json(res, ok ? 200 : 500, { ok }); + } catch { + json(res, 400, { ok: false, error: 'invalid json' }); + } + }); + return; + } + if (pathname === '/_miniapp/diagnostics' && req.method === 'GET') { + return json(res, 200, { lines: eventHub.snapshot() }); + } + if (pathname === '/_miniapp/events' && req.method === 'GET') { + return eventHub.subscribe(req, res); + } + if (pathname === '/_miniapp/engine/restart' && req.method === 'POST') { + deps.restartEngine?.(); + return json(res, 200, { ok: true }); + } + if (pathname === '/_miniapp/opened-file' && req.method === 'POST') { + // 登记:body { handlerId, files:[{path,name,extension}] };只回 token,绝不回显路径。 + let raw = ''; + req.on('data', (c) => { raw += c; if (raw.length > 1e6) req.destroy(); }); + req.on('end', () => { + let body; + try { body = JSON.parse(raw || '{}'); } catch { return json(res, 400, { ok: false, error: 'invalid json' }); } + if (!body || typeof body !== 'object' || Array.isArray(body)) { + return json(res, 400, { ok: false, error: 'invalid request body' }); + } + return json(res, 200, { ok: true, tokens: registerOpenedFiles(body) }); + }); + return; + } + if (pathname === '/_miniapp/opened-file' && req.method === 'GET') { + // 受控流式读取:只接受 POST 登记过的临时 token,绝不接路径参数。 + const id = url.searchParams.get('id') || ''; + const entry = resolveOpenedFile(id); + if (!entry || !existsSync(entry.path) || !statSync(entry.path).isFile()) { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + const ct = MIME[entry.ext.toLowerCase()] || 'application/octet-stream'; + const size = statSync(entry.path).size; + res.statusCode = 200; + res.setHeader('content-type', ct); + res.setHeader('x-miniapp-proxy', '1'); + const r = parseRange(req.headers.range, size); + if (r && r.invalid) { res.statusCode = 416; res.setHeader('content-range', 'bytes */' + size); return res.end(); } + if (r) { + res.statusCode = 206; + res.setHeader('content-range', 'bytes ' + r.start + '-' + r.end + '/' + size); + res.setHeader('accept-ranges', 'bytes'); + res.setHeader('content-length', String(r.end - r.start + 1)); + return streamFile(res, entry.path, { start: r.start, end: r.end }); + } + res.setHeader('content-length', String(size)); + return streamFile(res, entry.path); + } + return json(res, 404, { error: 'unknown control endpoint' }); + } + + // ---- 反向代理(HTTP / SSE)---- + function proxyHttp(req, res, conn, pathname) { + const target = new URL(conn.baseUrl); + const isHttps = target.protocol === 'https:'; + const transport = isHttps ? https : http; + const headers = {}; + // BUG-15:请求侧完整剔除逐跳头(含 Connection 提名),并按 RFC 合并同名多值头。 + const reqHop = hopByHopNames(req.headers); + for (let i = 0; i < req.rawHeaders.length; i += 2) { + const k = req.rawHeaders[i].toLowerCase(); + const v = req.rawHeaders[i + 1]; + if (HOP_BY_HOP.has(k) || reqHop.has(k)) continue; + if (k === 'accept-encoding') continue; // 让上游按自身默认压缩,避免我们要解压 + mergeHeader(headers, k, v); + } + if (conn.mode === 'sidecar') { + // 模式 A:内部令牌 + 内部 Host;严禁任何转发头(匹配 files.rs direct_local)。 + for (const k of FORWARDED) delete headers[k]; + headers['x-desktop-token'] = conn.token || ''; + headers.host = target.host; // 127.0.0.1:internal_port + } else { + // 模式 B:透传 Cookie,显式声明来自本机回环。 + for (const k of FORWARDED) delete headers[k]; + headers['x-forwarded-for'] = '127.0.0.1'; + headers.host = target.host; + if (conn.remoteHeaders) Object.assign(headers, conn.remoteHeaders); + } + const opts = { + protocol: target.protocol, + hostname: target.hostname, + port: target.port || (isHttps ? 443 : 80), + method: req.method, + path: req.url, + headers, + }; + const up = transport.request(opts, (ures) => { + res.statusCode = ures.statusCode || 502; + // BUG-15:响应侧完整剔除逐跳头(含 Connection 提名头),防止逐跳头泄漏到客户端。 + const respHop = hopByHopNames(ures.headers); + for (const [k, v] of Object.entries(ures.headers)) { + const kl = k.toLowerCase(); + if (HOP_BY_HOP.has(kl) || respHop.has(kl)) continue; + if (Array.isArray(v)) res.setHeader(k, v); // set-cookie 等保持数组,不合并 + else res.setHeader(k, v); + } + // 模式 B:剥离 Set-Cookie 的 Domain/Secure 以便 127.0.0.1 接收。 + if (conn.mode === 'remote' && ures.headers['set-cookie']) { + res.setHeader('set-cookie', ures.headers['set-cookie'].map((c) => + c.replace(/;\s*domain=[^;]+/gi, '').replace(/;\s*secure/gi, ''))); + } + res.setHeader('x-miniapp-proxy', '1'); + ures.pipe(res); // 流式:SSE 与 Range 均由上游端到端透传 + }); + up.on('error', (e) => { + log('warn', 'upstream request failed: ' + (e?.message || e)); + if (!res.headersSent) json(res, 502, { error: 'upstream unavailable' }); + else try { res.end(); } catch { /* ignore */ } + }); + req.on('error', () => { try { up.destroy(); } catch { /* ignore */ } }); + // BUG-15:客户端提前断开时销毁上游连接,避免 SSE/大文件传输后上游连接泄漏。 + res.on('close', () => { if (!res.writableEnded) { try { up.destroy(); } catch { /* ignore */ } } }); + req.pipe(up); // 请求体流式上行(POST/PUT) + } + + // ---- WS upgrade:手工重建并透传 /v1/ws/* ---- + function handleUpgrade(req, socket, head) { + let pathname; + try { pathname = new URL(req.url, 'http://localhost').pathname; } catch { socket.destroy(); return; } + if (!pathname.startsWith('/v1/ws/')) { socket.destroy(); return; } // 只透传 WS 白名单 + const conn = getConnection(); + if (!conn) { + socket.end('HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\n\r\n'); + return; + } + const target = new URL(conn.baseUrl); + const isHttps = target.protocol === 'https:'; + const port = Number(target.port || (isHttps ? 443 : 80)); + // BUG-14:https 上游改用 tls.connect(原实现用 net.connect,远端 https WS 必失败)。 + const onConnect = () => { + clearTimeout(connectTimer); + const headers = []; + const skip = new Set(['host', 'connection', 'upgrade', ...FORWARDED]); + for (let i = 0; i < req.rawHeaders.length; i += 2) { + const k = req.rawHeaders[i]; + const kl = k.toLowerCase(); + if (skip.has(kl)) continue; + headers.push(k + ': ' + req.rawHeaders[i + 1]); + } + if (conn.mode === 'sidecar') headers.push('x-desktop-token: ' + (conn.token || '')); + else { + // BUG-14:remote 模式注入完整 remoteHeaders(含 authorization),原实现只发 x-forwarded-for。 + headers.push('x-forwarded-for: 127.0.0.1'); + for (const [k, v] of Object.entries(conn.remoteHeaders || {})) headers.push(k + ': ' + v); + } + const requestLine = req.method + ' ' + req.url + ' HTTP/1.1\r\n'; + const headText = + 'Host: ' + target.host + '\r\n' + + 'Upgrade: websocket\r\n' + + 'Connection: Upgrade\r\n' + + headers.join('\r\n') + '\r\n\r\n'; + upstream.write(requestLine + headText); + if (head && head.length) upstream.write(head); // 完整写入 head + }; + const upstream = isHttps + ? tls.connect({ host: target.hostname, port, servername: target.hostname }, onConnect) + : net.connect(port, target.hostname, onConnect); + // BUG-14:连接超时兜底,避免上游不可达时半开连接永久挂起。 + const connectTimer = setTimeout(() => { try { upstream.destroy(); } catch { /* ignore */ } }, 8000); + registerSocket?.(upstream); registerSocket?.(socket); + const cleanup = () => { clearTimeout(connectTimer); unregisterSocket?.(upstream); unregisterSocket?.(socket); }; + // BUG-14:双端 close/error 均销毁对端,防止单边泄漏。 + upstream.on('error', () => { try { socket.destroy(); } catch { /* ignore */ } cleanup(); }); + socket.on('error', () => { try { upstream.destroy(); } catch { /* ignore */ } cleanup(); }); + upstream.on('close', () => { try { socket.destroy(); } catch { /* ignore */ } cleanup(); }); + socket.on('close', () => { try { upstream.destroy(); } catch { /* ignore */ } cleanup(); }); + upstream.pipe(socket); + socket.pipe(upstream); + } + + // ---- 主请求处理器 ---- + async function handle(req, res) { + if (isClosing?.()) { try { res.destroy(); } catch { /* ignore */ } return; } + let url; + try { url = new URL(req.url, 'http://localhost'); } catch { return send(res, 400, 'bad request'); } + // BUG-15/16:路由判定前安全解码,防止 %5Fminiapp / %2e%2e 等编码绕过白名单与目录穿越守卫。 + let pathname = url.pathname; + try { pathname = decodeURIComponent(pathname); } catch { /* 非法编码保留原值,最终落入 404 */ } + + // 1) /__mavis/ 前缀归宿主所有:不注册拦截、绝不 SPA 回退吞掉。 + if (pathname.startsWith('/__mavis/')) { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + // 2) 开源净版纵深防御:私有字面量直接 404,绝不明文代理。 + if (pathname.startsWith(PRIV_MEMBER + '/') || pathname === PRIV_MEMBER || + pathname.startsWith(PRIV_SUPPORT)) { + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + // 4) 控制接口 + if (pathname.startsWith('/_miniapp/')) return handleControl(req, res, pathname, url); + // 5) 业务反代 + if (pathname.startsWith('/v1/') || pathname.startsWith('/bili/') || pathname.startsWith('/static/')) { + const conn = getConnection(); + if (!conn || !conn.baseUrl) return json(res, 503, { error: 'engine not ready' }); + return proxyHttp(req, res, conn, pathname); + } + // 6) 静态前端(仅 /app 与 /app/*,只对 /app、/app/ 回退 index.html) + if (pathname === '/app' || pathname.startsWith('/app/')) return serveStatic(req, res, pathname); + if (pathname === '/') { res.statusCode = 302; res.setHeader('location', '/app'); res.setHeader('x-miniapp-proxy', '1'); return res.end(); } + // 其余一律 404,绝不做 SPA 回退。 + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + + return { handle, handleUpgrade, clearOpenedFiles }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs new file mode 100644 index 00000000..dd53e7ca --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs @@ -0,0 +1,123 @@ +// MiniApp Node 入口:单一 node:http 监听 context.listen,零 node_modules 载荷。 +// 红线:只由本进程 node:http 监听分配端口;进程内不另起第二个 HTTP 服务。 +import http from 'node:http'; +import { join, dirname } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createConfigStore } from './config.mjs'; +import { createEventHub } from './events.mjs'; +import { createEngineManager } from './sidecar.mjs'; +import { createProxy } from './proxy.mjs'; + +const HERE = dirname(fileURLToPath(import.meta.url)); +// 插件根 = miniapp/node/ 的上两级;优先用宿主提供的 pluginRoot/dataDir。 +const PLUGIN_ROOT = process.env.AMOEBA_PLUGIN_ROOT || join(HERE, '..', '..'); +const CLIENT_ROOT = join(HERE, '..', 'client'); + +function normalizeListen(listen) { + if (typeof listen === 'number') return { host: '127.0.0.1', port: listen }; + if (typeof listen === 'string') { + const i = listen.lastIndexOf(':'); + if (i > 0) return { host: listen.slice(0, i), port: Number(listen.slice(i + 1)) }; + return { host: '127.0.0.1', port: Number(listen) }; + } + if (listen && typeof listen === 'object') { + return { host: listen.host || '127.0.0.1', port: listen.port }; + } + return { host: '127.0.0.1', port: 0 }; +} + +export async function start(context) { + const dataDir = context.dataDir || join(PLUGIN_ROOT, '.data'); + const logger = context.logger; + + // 自维护脱敏日志环:宿主 logger 只传键名且截断,不作为排障依据。 + function log(level, message) { + try { logger?.[level]?.(message); } catch { /* ignore */ } + } + + const configStore = createConfigStore(dataDir); + const eventHub = createEventHub((u, o) => fetch(u, o), log); + // BUG-38:engine/proxy 日志统一走 eventHub.log,先脱敏再入环,便于 /_miniapp/diagnostics 排障。 + const sharedLog = (level, message, fields) => eventHub.log(level, message, fields); + const engine = createEngineManager({ context: { ...context, dataDir }, configStore, log: sharedLog, fetchImpl: (u, o) => fetch(u, o) }); + + const activeSockets = new Set(); + const registerSocket = (s) => { if (s && !s.destroyed) activeSockets.add(s); }; + const unregisterSocket = (s) => activeSockets.delete(s); + + let closing = false; + const proxy = createProxy({ + context, + getConnection: () => engine.getConnection(), + configStore, + eventHub, + log: sharedLog, + clientRoot: CLIENT_ROOT, + isClosing: () => closing, + registerSocket, + unregisterSocket, + restartEngine: () => engine.restart(), + fetchImpl: (u, o) => fetch(u, o), + }); + + const server = http.createServer((req, res) => { + proxy.handle(req, res).catch((e) => { + log('error', 'handler threw: ' + (e?.message || e)); + if (!res.headersSent) { res.statusCode = 500; res.setHeader('x-miniapp-proxy', '1'); } + try { res.end(); } catch { /* ignore */ } + }); + }); + server.on('upgrade', (req, socket, head) => { + try { proxy.handleUpgrade(req, socket, head); } catch { try { socket.destroy(); } catch { /* ignore */ } } + }); + // 长连接登记便于 dispose 立即断开。 + server.on('connection', (s) => { registerSocket(s); s.on('close', () => unregisterSocket(s)); }); + + const { host, port } = normalizeListen(context.listen); + // 先监听并注册完所有路由,再 resolve —— 这是就绪信号。 + await new Promise((resolve, reject) => { + server.once('error', reject); + server.listen(port, host || '127.0.0.1', () => { server.removeListener('error', reject); resolve(); }); + }); + + // start 内不做阻塞初始化:拉起子进程与事件轮询在后台状态机进行。 + engine.start(); + eventHub.startPolling(() => { + const c = engine.getConnection(); + if (!c) return { base: '', headers: {} }; + return { + base: c.baseUrl, + headers: c.mode === 'sidecar' ? { 'x-desktop-token': c.token } : (c.remoteHeaders || {}), + }; + }, 3000); + + let disposed = false; + async function dispose() { + if (disposed) return; + disposed = true; + closing = true; + log('info', 'dispose begin'); + proxy.clearOpenedFiles(); + // 1) 先销毁所有长连接/WS/SSE + closeAllConnections,避免大文件连接卡住关机。 + for (const s of activeSockets) { try { s.destroy(); } catch { /* ignore */ } } + activeSockets.clear(); + try { server.closeAllConnections?.(); } catch { /* ignore */ } + try { server.closeIdleConnections?.(); } catch { /* ignore */ } + eventHub.stop(); + // 2) 子进程回收(先 stdin EOF,再进程树强杀兜底,内部约 1.3s)。 + await engine.dispose(); + // 3) 关闭 HTTP 监听。 + await new Promise((resolve) => { + const t = setTimeout(resolve, 300); + try { server.close(() => { clearTimeout(t); resolve(); }); } catch { clearTimeout(t); resolve(); } + }); + log('info', 'dispose done'); + } + + // 生命周期信号:宿主先中止 signal 再调 dispose;这里也兜底触发一次。 + try { + context.signal?.addEventListener?.('abort', () => { dispose().catch(() => {}); }, { once: true }); + } catch { /* ignore */ } + + return { dispose }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/sidecar.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/sidecar.mjs new file mode 100644 index 00000000..bd67de5e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/sidecar.mjs @@ -0,0 +1,307 @@ +// 双模式引擎管理器:sidecar 子进程拉起 + remote 外部实例桥接。 +// 拉起采用能力探测:Phase 0 新版二进制用 --no-fleet/--shutdown-on-stdin-eof; +// master 旧版二进制降级用 --relay-listen 127.0.0.1:0(避免占用 19160 / 弹防火墙)。 +import { spawn, spawnSync } from 'node:child_process'; +import net from 'node:net'; +import { existsSync, mkdirSync } from 'node:fs'; +import { join } from 'node:path'; +import { randomBytes } from 'node:crypto'; + +const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); + +function findBinary(dataDir, configured, log) { + const exe = process.platform === 'win32' ? 'biliup.exe' : 'biliup'; + const candidates = []; + if (configured) candidates.push(configured); + candidates.push(join(dataDir, 'bin', exe)); + candidates.push(join(dataDir, 'bin', 'biliup')); + for (const c of candidates) { + if (c && existsSync(c)) return c; + } + // PATH 探测 + try { + const cmd = process.platform === 'win32' ? 'where' : 'which'; + const r = spawnSync(cmd, ['biliup'], { encoding: 'utf8', windowsHide: true }); + if (r.status === 0) { + const first = r.stdout.split(/\r?\n/).map((s) => s.trim()).find(Boolean); + if (first && existsSync(first)) return first; + } + } catch { /* ignore */ } + log('warn', 'biliup binary not found (candidates: ' + candidates.join(', ') + ')'); + return ''; +} + +function detectCapabilities(binary, log) { + let help = ''; + try { + const r = spawnSync(binary, ['server', '--help'], { encoding: 'utf8', windowsHide: true, timeout: 8000 }); + help = (r.stdout || '') + (r.stderr || ''); + } catch { /* ignore */ } + const cap = { + noFleet: help.includes('--no-fleet') || help.includes('AMOEBA_NO_FLEET'), + stdinEof: help.includes('--shutdown-on-stdin-eof') || help.includes('AMOEBA_SHUTDOWN_ON_STDIN_EOF'), + healthz: true, // /v1/healthz 只能运行时探测,先假设有,探活时降级 + }; + log('info', 'binary capabilities: ' + JSON.stringify(cap)); + return cap; +} + +function freePort() { + return new Promise((resolve, reject) => { + const srv = net.createServer(); + srv.unref(); + srv.on('error', reject); + srv.listen(0, '127.0.0.1', () => { + const port = srv.address().port; + srv.close(() => resolve(port)); + }); + }); +} + +export function createEngineManager({ context, configStore, log, fetchImpl }) { + const dataDir = context.dataDir; + let child = null; + let childPid = null; + let closing = false; + let mode = 'sidecar'; + let token = ''; + let baseUrl = ''; + let port = 0; + let status = { mode: 'sidecar', ready: false, pid: null, lastError: '', capabilities: null }; + let pollTimer = null; + let remoteHeaders = {}; + let cap = null; + + // BUG-12:start/restart/dispose 串行化,避免重叠拉起泄漏旧子进程。 + let transitionLock = Promise.resolve(); + function serializeTask(fn) { + const next = transitionLock.then(fn, fn); + transitionLock = next.catch(() => {}); + return next; + } + + // BUG-13:mode/remote 每次切换都从 configStore 重读,修复「初始化快照一次导致切换无效」。 + function refreshConfig() { + const raw = configStore.raw() || {}; + mode = raw.mode === 'remote' ? 'remote' : 'sidecar'; + remoteHeaders = {}; + if (mode === 'remote') { + const r = raw.remote || {}; + if (r.authMode === 'token' && r.token) { + remoteHeaders.authorization = 'Bearer ' + r.token; + } + // auth 模式的账号登录由前端在远端页面完成,Node 透传 Cookie;不在此处存明文口令。 + } + return raw; + } + refreshConfig(); + + function update(patch) { + status = { ...status, ...patch }; + return status; + } + + function getStatus() { return { ...status }; } + + function getConnection() { + if (mode === 'remote') { + if (!baseUrl) return null; + return { baseUrl, mode: 'remote', remoteHeaders, status: getStatus() }; + } + if (!baseUrl || !child) return null; + return { baseUrl, mode: 'sidecar', token, status: getStatus() }; + } + + async function probeReady() { + const healthCandidates = cap?.healthz === false ? [] : ['/v1/healthz', '/v1/overview', '/v1/system-stats']; + for (const p of healthCandidates) { + try { + const ctl = new AbortController(); + const t = setTimeout(() => ctl.abort(), 1500); + const r = await fetchImpl(new URL(p, baseUrl), { + headers: { 'x-desktop-token': token }, + signal: ctl.signal, + }); + clearTimeout(t); + // 200 正常;401/404 也证明 HTTP 层已就绪(不同二进制版本路由/鉴权不同)。 + if ([200, 401, 404].includes(r.status)) return true; + } catch { /* try next */ } + } + // 最终降级:TCP 可连即视为进程监听就绪。 + return new Promise((resolve) => { + const u = new URL(baseUrl); + const s = net.connect(Number(u.port) || 80, u.hostname); + const done = (v) => { try { s.destroy(); } catch { /* ignore */ } resolve(v); }; + s.setTimeout(1200, () => done(false)); + s.once('connect', () => done(true)); + s.once('error', () => done(false)); + }); + } + + function stopPolling() { + if (pollTimer) { clearTimeout(pollTimer); pollTimer = null; } + } + + // BUG-38:setTimeout 尾递归替代 setInterval,避免 probeReady(最长约 4.7s) + // 在 400ms 间隔下叠出十余个在途探测;await 后复查 closing 防止关闭窗口更新状态。 + function startPolling() { + if (pollTimer) return; + const tick = async () => { + if (closing || !baseUrl) { stopPolling(); return; } + if (status.ready) { stopPolling(); return; } + const ok = await probeReady(); + if (closing) return; + if (ok) { + update({ ready: true, lastError: '' }); + log('info', 'engine ready at ' + baseUrl); + stopPolling(); + return; + } + pollTimer = setTimeout(tick, 400); + }; + pollTimer = setTimeout(tick, 0); + } + + // 优雅停旧进程 → 等退出 → 超时强杀进程树。restart 与 dispose 共用。 + async function stopCurrentChild() { + if (!child || !childPid) return; + const proc = child; + const pid = childPid; + try { proc.stdin?.end(); } catch { /* ignore */ } + try { proc.stdin?.destroy(); } catch { /* ignore */ } + await Promise.race([ + new Promise((resolve) => proc.once('exit', resolve)), + sleep(1150), + ]); + if (proc.exitCode !== null || proc.signalCode !== null) return; + try { + if (process.platform === 'win32') { + const r = spawnSync('taskkill', ['/PID', String(pid), '/T', '/F'], { windowsHide: true, encoding: 'utf8' }); + log('info', 'taskkill result: ' + (r.stdout || r.stderr || '').trim().slice(0, 160)); + } else { + try { process.kill(-pid, 'SIGKILL'); } catch { try { process.kill(pid, 'SIGKILL'); } catch { /* gone */ } } + } + } catch (e) { + log('warn', 'force kill failed: ' + (e?.message || e)); + } + await sleep(150); + } + + async function startSidecar() { + if (closing) return; // BUG-12:入口检查 closing + const cfg = refreshConfig(); + const binary = findBinary(dataDir, cfg.binaryPath, log); + if (!binary) { update({ lastError: 'biliup binary not found' }); return; } + cap = detectCapabilities(binary, log); + port = await freePort(); + if (closing) return; // BUG-12:await freePort 后复查 closing,避免关闭后拉起孤儿进程 + token = randomBytes(32).toString('hex'); + baseUrl = 'http://127.0.0.1:' + port; + mkdirSync(dataDir, { recursive: true }); + + const args = ['server', '-b', '127.0.0.1', '-p', String(port)]; + if (cap.noFleet) args.push('--no-fleet'); + else args.push('--relay-listen', '127.0.0.1:0'); // master 降级路径 + if (cap.stdinEof) args.push('--shutdown-on-stdin-eof'); + + const env = { ...process.env }; + env.AMOEBA_DATA_DIR = dataDir; + env.AMOEBA_DESKTOP_TOKEN = token; + if (cfg.ffmpegPath) env.AMOEBA_FFMPEG_PATH = cfg.ffmpegPath; + if (cfg.renderToolsDir) env.AMOEBA_RENDER_TOOLS_DIR = cfg.renderToolsDir; + // 令牌只经 env.AMOEBA_DESKTOP_TOKEN 注入,biliup server 无 --desktop-token 参数。 + + const isWin = process.platform === 'win32'; + let proc; + try { + proc = spawn(binary, args, { + env, + windowsHide: true, + detached: !isWin, // Unix 下成为进程组 leader,便于 kill(-pid) + stdio: ['pipe', 'pipe', 'pipe'], + }); + } catch (e) { + update({ lastError: 'spawn failed: ' + (e?.message || e) }); + return; + } + child = proc; + childPid = proc.pid; + update({ pid: childPid, mode: 'sidecar', capabilities: cap }); + let stderr = ''; + proc.stderr?.on('data', (buf) => { + const s = buf.toString('utf8'); + stderr = (stderr + s).slice(-4000); + log('warn', 'engine stderr: ' + s.trim().slice(0, 300)); + }); + proc.stdout?.on('data', () => { /* drain */ }); + proc.on('error', (e) => update({ lastError: 'child error: ' + (e?.message || e) })); + proc.on('exit', (code, sig) => { + // BUG-12:旧进程 exit 回调不得误伤新拉起的进程。 + if (child !== proc) return; + if (!closing) update({ ready: false, pid: null, lastError: 'engine exited code=' + code + ' sig=' + (sig || '') }); + child = null; childPid = null; + }); + log('info', 'spawned engine pid=' + childPid + ' port=' + port + ' mode=sidecar'); + startPolling(); + } + + function startRemote() { + const r = (configStore.raw() || {}).remote || {}; + if (!r.baseUrl) { update({ lastError: 'remote baseUrl not configured' }); return; } + try { + const u = new URL(r.baseUrl); + if (!['http:', 'https:'].includes(u.protocol)) throw new Error('unsupported protocol'); + baseUrl = u.toString().replace(/\/$/, ''); + refreshConfig(); + update({ mode: 'remote', ready: true, lastError: '' }); + log('info', 'remote mode configured: ' + baseUrl + ' auth=' + (r.authMode || 'none')); + } catch (e) { + update({ lastError: 'invalid remote baseUrl: ' + (e?.message || e) }); + } + } + + // 让出一次 macrotask(check 阶段),使 poll 阶段已排队的连接先被处理; + // startSidecar 内 detectCapabilities 的 spawnSync 最多同步阻塞 8s,不能抢在就绪探测前。 + const yieldMacrotask = () => new Promise((r) => setImmediate(r)); + + // start 不阻塞 10s 门禁:仅登记状态,实际拉起/探活在串行状态机中进行。 + function start() { + return serializeTask(async () => { + if (closing) return; + if (mode === 'remote') startRemote(); + else { + update({ mode: 'sidecar', ready: false }); + await yieldMacrotask(); + if (closing) return; + await startSidecar(); + } + }).catch((e) => update({ lastError: String(e) })); + } + + // BUG-12/13:restart 先停旧进程并等退出,再重读 config(使 mode 切换与 remote.token 更新生效)。 + function restart() { + return serializeTask(async () => { + if (closing) return; + await stopCurrentChild(); + stopPolling(); + baseUrl = ''; + update({ ready: false, lastError: '' }); + const raw = refreshConfig(); + if (mode === 'remote') startRemote(); + else { await yieldMacrotask(); if (closing) return raw; await startSidecar(); } + return raw; + }).catch((e) => update({ lastError: String(e) })); + } + + // dispose 精准回收:先标记 closing → 关 stdin 优雅退出 1.1–1.2s → 超时进程树强杀。 + function dispose() { + // 必须在进入串行队列前置位 closing,才能立刻打断在途的 start()/restart()(如 freePort 等待)。 + closing = true; + stopPolling(); + return serializeTask(async () => { + await stopCurrentChild(); + }); + } + + return { start, restart, dispose, getStatus, getConnection }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/package.json b/plugins/charlesnty612/live-stream-recorder/package.json new file mode 100644 index 00000000..aab6b8dc --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/package.json @@ -0,0 +1,6 @@ +{ + "mcode": { + "schemaVersion": 2, + "miniApp": "./miniapp/miniapp.json" + } +} From ef0748bc54248c7811f513078879749d078beb9d Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 11:27:06 +0800 Subject: [PATCH 02/10] Sync live-stream-recorder Mini App with on-demand engine install Sync source worktree build output: engine download module, local install APIs, first-run dialog, engine panel, banner and disabled recording entries. Payload stays 69 files / 1,239,095 bytes (+18,664 bytes vs previous copy), no prebuilt engine. Community check: 0 errors; source build and package SHA-256 match file by file. TODO: Release URL/SHA/version remain placeholders until authorized; PR body maintained by Bunny. --- ...ine-C9wx-dLG.js => AddOutline-AWO4O9Bs.js} | 2 +- .../client/assets/AppShell-BaeOOu0H.css | 1 + .../client/assets/AppShell-BtBozJ6v.js | 1 + .../client/assets/AppShell-DmAH_wjP.js | 1 - .../client/assets/AppShell-dzC4MVjs.css | 1 - ...-CVNCmOpb.js => CheckboxGroup-CBTKxgig.js} | 2 +- ...FY.js => CloudDownloadOutline-GAucdlv-.js} | 2 +- ...aS7.js => DocumentTextOutline-BFofTbif.js} | 2 +- ...vleeChj.js => DownloadOutline-D3fGSRVg.js} | 2 +- ...ate-fy8GfigG.js => EmptyState-CALNDdv7.js} | 2 +- ...ne-BX3jJC51.js => FilmOutline-Gr2Sgzxq.js} | 2 +- ...6_Iop.js => GitCompareOutline-92xJ43m4.js} | 2 +- .../{Input-DOY9MBk2.js => Input-CQNdwpgx.js} | 2 +- ...View-DDTKasOc.js => LoginView-BXa3gqh3.js} | 2 +- ...e-DBaBm7B1.js => PulseOutline-BTyoewQd.js} | 2 +- ...jJfZw4rU.js => RecordingsView-D-5LxqQb.js} | 2 +- ...DsgjGZK9.js => RefreshOutline-C3W18lVY.js} | 2 +- ...View-FDkwT__U.js => RelayView-CiNT7cDx.js} | 2 +- ...--3GBf81B.js => SearchOutline-rYjpTFrE.js} | 2 +- ...{Select-DlP0Rw4u.js => Select-BIQZTWeg.js} | 2 +- ...AvLK-K.js => ServiceErrorView-ekQZ1QYf.js} | 2 +- .../client/assets/SettingsView-C7TOuPQQ.js | 3 - .../client/assets/SettingsView-T1R_3ITH.css | 1 + .../client/assets/SettingsView-fhfMIyM2.js | 3 + .../client/assets/SettingsView-ogFFTr5l.css | 1 - ...9SicR-7j.js => ShortVideoView-bBDSRDwN.js} | 8 +- .../{Spin-BbwWICDg.js => Spin-CYz55qnY.js} | 2 +- ...g-GMiEY.css => StreamersView-BKuNqWdg.css} | 2 +- .../client/assets/StreamersView-CmWF_crB.js | 117 ------------- .../client/assets/StreamersView-X3e6akRp.js | 117 +++++++++++++ ...{Switch-4rsLpKoT.js => Switch-zhsy3xi9.js} | 2 +- ...xd9Z4sO.js => VideocamOutline-DZpFNqp3.js} | 2 +- ... => _plugin-vue_export-helper-Cf-2z3Ev.js} | 2 +- .../miniapp/client/assets/engine-fqHnj72g.js | 1 + .../client/assets/engine-state-C1ri-urc.js | 1 + .../{index-Ch4EWX-G.js => index-FGi6cKHs.js} | 4 +- ...mers-Bl5LBoP5.js => streamers-Crtjgplw.js} | 2 +- ...CjxNERC_.js => use-compitable-Cc7HI9yh.js} | 2 +- ...ge-sIwnQEJL.js => use-message-DzcW9fCu.js} | 4 +- .../miniapp/client/index.html | 2 +- .../miniapp/node/engine.mjs | 163 ++++++++++++++++++ .../miniapp/node/proxy.mjs | 26 ++- .../miniapp/node/server.mjs | 9 + 43 files changed, 355 insertions(+), 157 deletions(-) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AddOutline-C9wx-dLG.js => AddOutline-AWO4O9Bs.js} (99%) create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BaeOOu0H.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BtBozJ6v.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DmAH_wjP.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-dzC4MVjs.css rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CheckboxGroup-CVNCmOpb.js => CheckboxGroup-CBTKxgig.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CloudDownloadOutline-Bwk608FY.js => CloudDownloadOutline-GAucdlv-.js} (92%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DocumentTextOutline-BdYVNaS7.js => DocumentTextOutline-BFofTbif.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DownloadOutline-CvleeChj.js => DownloadOutline-D3fGSRVg.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{EmptyState-fy8GfigG.js => EmptyState-CALNDdv7.js} (68%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{FilmOutline-BX3jJC51.js => FilmOutline-Gr2Sgzxq.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{GitCompareOutline-DCA6_Iop.js => GitCompareOutline-92xJ43m4.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Input-DOY9MBk2.js => Input-CQNdwpgx.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{LoginView-DDTKasOc.js => LoginView-BXa3gqh3.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{PulseOutline-DBaBm7B1.js => PulseOutline-BTyoewQd.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RecordingsView-jJfZw4rU.js => RecordingsView-D-5LxqQb.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RefreshOutline-DsgjGZK9.js => RefreshOutline-C3W18lVY.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RelayView-FDkwT__U.js => RelayView-CiNT7cDx.js} (92%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{SearchOutline--3GBf81B.js => SearchOutline-rYjpTFrE.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Select-DlP0Rw4u.js => Select-BIQZTWeg.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ServiceErrorView-DxAvLK-K.js => ServiceErrorView-ekQZ1QYf.js} (94%) delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-C7TOuPQQ.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-T1R_3ITH.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-fhfMIyM2.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-ogFFTr5l.css rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ShortVideoView-9SicR-7j.js => ShortVideoView-bBDSRDwN.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Spin-BbwWICDg.js => Spin-CYz55qnY.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{StreamersView-Bg-GMiEY.css => StreamersView-BKuNqWdg.css} (56%) delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-CmWF_crB.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-X3e6akRp.js rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Switch-4rsLpKoT.js => Switch-zhsy3xi9.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{VideocamOutline-Dxd9Z4sO.js => VideocamOutline-DZpFNqp3.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{_plugin-vue_export-helper-DQkFygL-.js => _plugin-vue_export-helper-Cf-2z3Ev.js} (96%) create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-fqHnj72g.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C1ri-urc.js rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{index-Ch4EWX-G.js => index-FGi6cKHs.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{streamers-Bl5LBoP5.js => streamers-Crtjgplw.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-compitable-CjxNERC_.js => use-compitable-Cc7HI9yh.js} (76%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-message-sIwnQEJL.js => use-message-DzcW9fCu.js} (94%) create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-C9wx-dLG.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-AWO4O9Bs.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-C9wx-dLG.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-AWO4O9Bs.js index d4ce0000..9aa83185 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-C9wx-dLG.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-AWO4O9Bs.js @@ -1,4 +1,4 @@ -import{W as se,a$ as Xe,L as Ue,z as et,aS as tt,b0 as rt,O as Ye,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b1 as Je,Z as Se,r as G,aJ as nt,a7 as ve,j as F,a as Ae,n as qe,e as it,b2 as at,T as st,b3 as ze,ae as be,b as ot,ac as lt,F as Le,Q as ft,_ as Ve,af as K,b4 as dt}from"./index-Ch4EWX-G.js";import{f as Fe}from"./_plugin-vue_export-helper-DQkFygL-.js";import{g as Ze}from"./use-message-sIwnQEJL.js";function ct(n,e,t){const r=se(n,null);if(r===null)return;const i=Xe()?.proxy;Ue(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}function ir(){const n=se(rt,null);return n===null&&tt("use-dialog","No outer founded."),n}const ce=Ye("n-form"),Qe=Ye("n-form-item-insts");var ut=N("form",[B("inline",` +import{W as se,a$ as Xe,L as Ue,A as et,aS as tt,b0 as rt,O as Ye,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b1 as Je,Z as Se,r as G,aJ as nt,a7 as ve,j as F,a as Ae,n as qe,e as it,b2 as at,T as st,b3 as ze,ae as be,b as ot,ac as lt,F as Le,Q as ft,_ as Ve,af as K,b4 as dt}from"./index-FGi6cKHs.js";import{f as Fe}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{g as Ze}from"./use-message-DzcW9fCu.js";function ct(n,e,t){const r=se(n,null);if(r===null)return;const i=Xe()?.proxy;Ue(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}function ir(){const n=se(rt,null);return n===null&&tt("use-dialog","No outer founded."),n}const ce=Ye("n-form"),Qe=Ye("n-form-item-insts");var ut=N("form",[B("inline",` width: 100%; display: inline-flex; align-items: flex-start; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BaeOOu0H.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BaeOOu0H.css new file mode 100644 index 00000000..e5309f12 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BaeOOu0H.css @@ -0,0 +1 @@ +.engine-dialog p[data-v-31ffe3eb]{margin:6px 0;line-height:1.7;font-size:13px}.hint[data-v-31ffe3eb]{margin:10px 0;color:var(--warning, #f0b429);font-size:12px}.manual-list[data-v-31ffe3eb]{margin:8px 0;padding-left:20px;font-size:12px;line-height:1.8}.dialog-actions[data-v-31ffe3eb]{display:flex;align-items:center;gap:10px;margin-top:14px}.spacer[data-v-31ffe3eb]{flex:1}.shell[data-v-6108b203]{display:flex;min-height:100vh;position:relative;z-index:1}.sidebar[data-v-6108b203]{width:238px;flex:none;display:flex;flex-direction:column;gap:18px;padding:22px 16px 18px;background:linear-gradient(180deg,#0c131aeb,#080d12f5);border-right:1px solid var(--line);position:sticky;top:0;height:100vh;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand[data-v-6108b203]{display:flex;align-items:center;gap:11px;padding:2px 6px 6px}.brand-mark[data-v-6108b203]{width:42px;height:42px;border-radius:12px;overflow:hidden;border:1px solid rgba(45,212,191,.28);box-shadow:0 6px 22px #2dd4bf2e;background:#070b0f}.brand-mark img[data-v-6108b203]{width:100%;height:100%;object-fit:cover;display:block}.brand-text[data-v-6108b203]{line-height:1.2}.brand-name[data-v-6108b203]{font-size:17px;font-weight:700;letter-spacing:.5px}.brand-sub[data-v-6108b203]{font-size:11px;color:var(--muted);letter-spacing:1.6px;margin-top:3px}.nav[data-v-6108b203]{display:flex;flex-direction:column;gap:6px;margin-top:4px}.nav-item[data-v-6108b203]{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;color:var(--muted);border:1px solid transparent;transition:all .18s ease}.nav-item[data-v-6108b203]:hover{color:var(--text);background:#94c5d60f}.nav-item.active[data-v-6108b203]{color:var(--text);background:linear-gradient(90deg,#2dd4bf24,#2dd4bf08);border-color:#2dd4bf38}.nav-item.active .nav-icon[data-v-6108b203]{color:var(--accent)}.nav-copy[data-v-6108b203]{display:flex;flex-direction:column;gap:2px}.nav-label[data-v-6108b203]{font-size:13.5px;font-weight:600}.nav-hint[data-v-6108b203]{font-size:10.5px;color:var(--muted-2);letter-spacing:.2px}.nav-item.active .nav-hint[data-v-6108b203]{color:#2dd4bf9e}.side-foot[data-v-6108b203]{margin-top:auto;display:flex;flex-direction:column;gap:12px}.server-line[data-v-6108b203]{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:9px 11px;border-radius:9px;background:#94c5d60d;border:1px solid var(--line)}.dot[data-v-6108b203]{width:6px;height:6px;border-radius:50%;background:var(--ok);box-shadow:0 0 8px #34d399cc}.dot.off[data-v-6108b203]{background:var(--danger);box-shadow:0 0 8px #f87171b3}.ver[data-v-6108b203]{margin-left:auto;color:var(--muted-2);font-size:10px}.user-card[data-v-6108b203]{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:#14202b99;border:1px solid var(--line)}.avatar[data-v-6108b203]{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:13px;font-weight:700;color:#052e2b;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.user-meta[data-v-6108b203]{min-width:0;flex:1}.user-name[data-v-6108b203]{font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-role[data-v-6108b203]{font-size:10.5px;color:var(--muted-2);margin-top:1px}.icon-btn[data-v-6108b203]{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;transition:all .16s ease}.icon-btn[data-v-6108b203]:hover{color:var(--text);background:#94c5d617;border-color:var(--line)}.tab-bar[data-v-6108b203]{display:none}.top-popout[data-v-6108b203]{border:1px solid var(--line)}.main[data-v-6108b203]{flex:1;min-width:0;display:flex;flex-direction:column}.topbar[data-v-6108b203]{height:58px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line);background:var(--overlay-soft);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);position:sticky;top:0;z-index:10}.crumb[data-v-6108b203]{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.crumb-icon[data-v-6108b203]{color:var(--accent)}.crumb-root[data-v-6108b203],.crumb-sep[data-v-6108b203]{color:var(--muted-2)}.crumb-current[data-v-6108b203]{color:var(--text);font-weight:600}.top-status[data-v-6108b203]{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:6px 10px;border-radius:99px;border:1px solid var(--line);background:#94c5d60a}.top-status.off[data-v-6108b203]{color:var(--danger-text);border-color:#f8717140}.offline-banner[data-v-6108b203]{margin:16px 30px 0;padding:10px 14px;border-radius:9px;border:1px solid rgba(248,113,113,.35);background:#f871711f;color:var(--danger-text);font-size:12.5px}.engine-banner[data-v-6108b203]{margin:16px 30px 0;padding:10px 14px;border-radius:9px;border:1px solid rgba(240,180,41,.35);background:#f0b4291f;color:var(--warning, #f0b429);font-size:12.5px;display:flex;align-items:center;gap:10px}.engine-banner-note[data-v-6108b203]{opacity:.85}.engine-banner-action[data-v-6108b203]{margin-left:auto;background:none;border:1px solid currentColor;border-radius:6px;color:inherit;cursor:pointer;padding:3px 10px;font-size:12px}.page-fade-enter-active[data-v-6108b203],.page-fade-leave-active[data-v-6108b203]{transition:opacity .16s ease,transform .16s ease}.page-fade-enter-from[data-v-6108b203]{opacity:0;transform:translateY(4px)}.page-fade-leave-to[data-v-6108b203]{opacity:0;transform:translateY(-3px)}@media(max-width:640px){.shell[data-v-6108b203]{display:block}.sidebar[data-v-6108b203]{display:none}.tab-bar[data-v-6108b203]{display:flex;gap:4px;overflow-x:auto;padding:8px 12px;border-bottom:1px solid var(--line);background:var(--overlay-strong);scrollbar-width:none}.tab-bar[data-v-6108b203]::-webkit-scrollbar{display:none}.tab-item[data-v-6108b203]{flex:none;padding:7px 12px;border-radius:99px;font-size:12px;color:var(--muted);white-space:nowrap;border:1px solid transparent}.tab-item.active[data-v-6108b203]{color:var(--accent);background:#2dd4bf1a;border-color:#2dd4bf40}.topbar[data-v-6108b203]{padding:0 12px;height:52px}.crumb-root[data-v-6108b203],.crumb-sep[data-v-6108b203],.top-status[data-v-6108b203]{display:none}.offline-banner[data-v-6108b203],.engine-banner[data-v-6108b203]{margin:10px 12px 0}}@media(max-width:900px){.sidebar[data-v-6108b203]{width:74px;padding:18px 10px}.brand-text[data-v-6108b203],.nav-copy[data-v-6108b203],.side-foot .server-line span[data-v-6108b203]:not(.dot),.user-meta[data-v-6108b203],.icon-btn[data-v-6108b203]{display:none}.nav-item[data-v-6108b203],.user-card[data-v-6108b203]{justify-content:center}.topbar[data-v-6108b203]{padding:0 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BtBozJ6v.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BtBozJ6v.js new file mode 100644 index 00000000..fcc16c8f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BtBozJ6v.js @@ -0,0 +1 @@ +import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-FGi6cKHs.js";import{T as J,P as ue}from"./PulseOutline-BTyoewQd.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as de}from"./use-message-DzcW9fCu.js";import{g as ce}from"./streamers-Crtjgplw.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-fqHnj72g.js";import{e as f}from"./engine-state-C1ri-urc.js";import{C as fe}from"./CheckboxGroup-CBTKxgig.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-DZpFNqp3.js";import{F as _e}from"./FilmOutline-Gr2Sgzxq.js";import{G as ke}from"./GitCompareOutline-92xJ43m4.js";import{C as ge}from"./CloudDownloadOutline-GAucdlv-.js";import"./use-compitable-Cc7HI9yh.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DmAH_wjP.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DmAH_wjP.js deleted file mode 100644 index 4a4faffa..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DmAH_wjP.js +++ /dev/null @@ -1 +0,0 @@ -import{d as b,o as s,c as p,y as U,a as e,b as N,z as q,u as i,F as V,A,C as S,t as d,g as f,i as _,w as n,e as l,f as k,r as z,j as w,D as B,E,T as J,q as K,k as Q}from"./index-Ch4EWX-G.js";import{T as R,P as W}from"./PulseOutline-DBaBm7B1.js";import{N as g,_ as X}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as Y}from"./use-message-sIwnQEJL.js";import{g as Z}from"./streamers-Bl5LBoP5.js";import{i as j,e as ee}from"./runtime-bridge-DmDzFGpU.js";import{l as te}from"./logo-X-myaeP_.js";import{V as oe}from"./VideocamOutline-Dxd9Z4sO.js";import{F as ne}from"./FilmOutline-BX3jJC51.js";import{G as se}from"./GitCompareOutline-DCA6_Iop.js";import{C as ae}from"./CloudDownloadOutline-Bwk608FY.js";import"./use-compitable-CjxNERC_.js";const re={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=b({name:"ExpandOutline",render:function(m,a){return s(),p("svg",re,a[0]||(a[0]=[U('',8)]))}}),le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ce=b({name:"LogOutOutline",render:function(m,a){return s(),p("svg",le,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),de={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ue=b({name:"SettingsOutline",render:function(m,a){return s(),p("svg",de,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),pe={class:"shell"},ve={class:"sidebar"},me={class:"brand"},he={class:"brand-mark"},fe=["src"],_e={class:"nav"},ke={class:"nav-copy"},we={class:"nav-label"},ge={class:"nav-hint"},be={class:"side-foot"},xe={class:"server-line"},ye={key:0,class:"mono ver"},Ce={class:"user-card"},Me={class:"avatar"},Oe={class:"user-meta"},Se={class:"user-name"},je={class:"user-role"},Le={class:"main"},Ne={class:"topbar"},Ve={class:"crumb"},Ae={class:"crumb-current"},ze={class:"top-actions"},Be={class:"tab-bar","aria-label":"主导航"},Ee={key:0,class:"offline-banner",role:"alert"},Re=b({__name:"AppShell",setup(x){const m=Q(),a=Y(),{me:y,loadMe:T,signOut:D}=K(),C=z(""),u=z(!0),M=[{name:"live",label:"直播监控",icon:oe,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:ne,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:se,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ae,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:ue,hint:"保存、画质与抖音参数"}],F=w(()=>M.find(o=>o.name===m.name)?.label??"直播监控"),O=w(()=>y.value?.auth_enabled===!1),L=w(()=>O.value?"本机用户":y.value?.username??"未登录"),H=w(()=>{if(O.value)return"本机模式";const o=y.value?.role;return o==="admin"?"管理员":o==="operator"?"协作者":o==="viewer"?"只读":o??""});async function I(){try{await T()}catch{u.value=!1}try{const o=await Z();C.value=o.version??"",u.value=!0}catch{u.value=!1}}N(I);function P(){if(!j()||!window.miniapp?.window?.update)return;const t=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(t)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(v=>{if(t&&v.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(v=>{a.error(ee(v))})}let h=null;function $(){if(!(!j()||typeof EventSource>"u"))try{h=new EventSource("/_miniapp/events"),h.onmessage=o=>{try{const t=JSON.parse(o.data);if(t.type&&t.type!=="activity")return;const c=t.kind??"";if(c!=="start"&&c!=="end"&&c!=="file"&&c!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const v=c==="start"?"直播已开播":c==="render"?"压制完成":"录制完成";new Notification(v,{body:t.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}N($),q(()=>{h?.close(),h=null});async function G(){await D(),a.success("已退出登录")}return(o,t)=>{const c=B("router-link"),v=B("router-view");return s(),p("div",pe,[e("aside",ve,[e("div",me,[e("div",he,[e("img",{src:i(te),alt:"Live Stream Recorder"},null,8,fe)]),t[0]||(t[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",_e,[(s(),p(V,null,A(M,r=>l(c,{key:r.name,to:{name:r.name},class:"nav-item","active-class":"active"},{default:n(()=>[l(i(g),{size:19,class:"nav-icon"},{default:n(()=>[(s(),_(E(r.icon)))]),_:2},1024),e("span",ke,[e("span",we,d(r.label),1),e("span",ge,d(r.hint),1)])]),_:2},1032,["to"])),64))]),e("div",be,[e("div",xe,[e("span",{class:S(["dot",{off:!u.value}])},null,2),e("span",null,d(u.value?"录制服务已连接":"录制服务未连接"),1),C.value?(s(),p("span",ye,"v"+d(C.value),1)):f("",!0)]),e("div",Ce,[e("div",Me,d(L.value.slice(0,1).toUpperCase()),1),e("div",Oe,[e("div",Se,d(L.value),1),e("div",je,d(H.value),1)]),O.value?f("",!0):(s(),_(i(R),{key:0,trigger:"hover"},{trigger:n(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:G},[l(i(g),{size:18},{default:n(()=>[l(i(ce))]),_:1})])]),default:n(()=>[t[1]||(t[1]=k(" 退出登录 ",-1))]),_:1}))])])]),e("main",Le,[e("header",Ne,[e("div",Ve,[l(i(g),{size:15,class:"crumb-icon"},{default:n(()=>[l(i(W))]),_:1}),t[2]||(t[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),t[3]||(t[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",Ae,d(F.value),1)]),e("div",ze,[i(j)()?(s(),_(i(R),{key:0,trigger:"hover"},{trigger:n(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:P},[l(i(g),{size:18},{default:n(()=>[l(i(ie))]),_:1})])]),default:n(()=>[t[4]||(t[4]=k(" 弹出独立窗口 ",-1))]),_:1})):f("",!0),e("span",{class:S(["top-status",{off:!u.value}])},[e("span",{class:S(["dot",{off:!u.value}])},null,2),k(" "+d(u.value?"服务在线":"服务离线"),1)],2)])]),e("nav",Be,[(s(),p(V,null,A(M,r=>l(c,{key:"tab-"+r.name,to:{name:r.name},class:"tab-item","active-class":"active"},{default:n(()=>[k(d(r.label),1)]),_:2},1032,["to"])),64))]),u.value?f("",!0):(s(),p("div",Ee," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),l(v,null,{default:n(({Component:r})=>[l(J,{name:"page-fade",mode:"out-in"},{default:n(()=>[(s(),_(E(r)))]),_:2},1024)]),_:1})])])}}}),Qe=X(Re,[["__scopeId","data-v-2f266e9b"]]);export{Qe as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-dzC4MVjs.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-dzC4MVjs.css deleted file mode 100644 index 3a5630b5..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-dzC4MVjs.css +++ /dev/null @@ -1 +0,0 @@ -.shell[data-v-2f266e9b]{display:flex;min-height:100vh;position:relative;z-index:1}.sidebar[data-v-2f266e9b]{width:238px;flex:none;display:flex;flex-direction:column;gap:18px;padding:22px 16px 18px;background:linear-gradient(180deg,#0c131aeb,#080d12f5);border-right:1px solid var(--line);position:sticky;top:0;height:100vh;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand[data-v-2f266e9b]{display:flex;align-items:center;gap:11px;padding:2px 6px 6px}.brand-mark[data-v-2f266e9b]{width:42px;height:42px;border-radius:12px;overflow:hidden;border:1px solid rgba(45,212,191,.28);box-shadow:0 6px 22px #2dd4bf2e;background:#070b0f}.brand-mark img[data-v-2f266e9b]{width:100%;height:100%;object-fit:cover;display:block}.brand-text[data-v-2f266e9b]{line-height:1.2}.brand-name[data-v-2f266e9b]{font-size:17px;font-weight:700;letter-spacing:.5px}.brand-sub[data-v-2f266e9b]{font-size:11px;color:var(--muted);letter-spacing:1.6px;margin-top:3px}.nav[data-v-2f266e9b]{display:flex;flex-direction:column;gap:6px;margin-top:4px}.nav-item[data-v-2f266e9b]{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;color:var(--muted);border:1px solid transparent;transition:all .18s ease}.nav-item[data-v-2f266e9b]:hover{color:var(--text);background:#94c5d60f}.nav-item.active[data-v-2f266e9b]{color:var(--text);background:linear-gradient(90deg,#2dd4bf24,#2dd4bf08);border-color:#2dd4bf38}.nav-item.active .nav-icon[data-v-2f266e9b]{color:var(--accent)}.nav-copy[data-v-2f266e9b]{display:flex;flex-direction:column;gap:2px}.nav-label[data-v-2f266e9b]{font-size:13.5px;font-weight:600}.nav-hint[data-v-2f266e9b]{font-size:10.5px;color:var(--muted-2);letter-spacing:.2px}.nav-item.active .nav-hint[data-v-2f266e9b]{color:#2dd4bf9e}.side-foot[data-v-2f266e9b]{margin-top:auto;display:flex;flex-direction:column;gap:12px}.server-line[data-v-2f266e9b]{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:9px 11px;border-radius:9px;background:#94c5d60d;border:1px solid var(--line)}.dot[data-v-2f266e9b]{width:6px;height:6px;border-radius:50%;background:var(--ok);box-shadow:0 0 8px #34d399cc}.dot.off[data-v-2f266e9b]{background:var(--danger);box-shadow:0 0 8px #f87171b3}.ver[data-v-2f266e9b]{margin-left:auto;color:var(--muted-2);font-size:10px}.user-card[data-v-2f266e9b]{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:#14202b99;border:1px solid var(--line)}.avatar[data-v-2f266e9b]{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:13px;font-weight:700;color:#052e2b;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.user-meta[data-v-2f266e9b]{min-width:0;flex:1}.user-name[data-v-2f266e9b]{font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-role[data-v-2f266e9b]{font-size:10.5px;color:var(--muted-2);margin-top:1px}.icon-btn[data-v-2f266e9b]{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;transition:all .16s ease}.icon-btn[data-v-2f266e9b]:hover{color:var(--text);background:#94c5d617;border-color:var(--line)}.tab-bar[data-v-2f266e9b]{display:none}.top-popout[data-v-2f266e9b]{border:1px solid var(--line)}.main[data-v-2f266e9b]{flex:1;min-width:0;display:flex;flex-direction:column}.topbar[data-v-2f266e9b]{height:58px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line);background:var(--overlay-soft);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);position:sticky;top:0;z-index:10}.crumb[data-v-2f266e9b]{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.crumb-icon[data-v-2f266e9b]{color:var(--accent)}.crumb-root[data-v-2f266e9b],.crumb-sep[data-v-2f266e9b]{color:var(--muted-2)}.crumb-current[data-v-2f266e9b]{color:var(--text);font-weight:600}.top-status[data-v-2f266e9b]{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:6px 10px;border-radius:99px;border:1px solid var(--line);background:#94c5d60a}.top-status.off[data-v-2f266e9b]{color:var(--danger-text);border-color:#f8717140}.offline-banner[data-v-2f266e9b]{margin:16px 30px 0;padding:10px 14px;border-radius:9px;border:1px solid rgba(248,113,113,.35);background:#f871711f;color:var(--danger-text);font-size:12.5px}.page-fade-enter-active[data-v-2f266e9b],.page-fade-leave-active[data-v-2f266e9b]{transition:opacity .16s ease,transform .16s ease}.page-fade-enter-from[data-v-2f266e9b]{opacity:0;transform:translateY(4px)}.page-fade-leave-to[data-v-2f266e9b]{opacity:0;transform:translateY(-3px)}@media(max-width:640px){.shell[data-v-2f266e9b]{display:block}.sidebar[data-v-2f266e9b]{display:none}.tab-bar[data-v-2f266e9b]{display:flex;gap:4px;overflow-x:auto;padding:8px 12px;border-bottom:1px solid var(--line);background:var(--overlay-strong);scrollbar-width:none}.tab-bar[data-v-2f266e9b]::-webkit-scrollbar{display:none}.tab-item[data-v-2f266e9b]{flex:none;padding:7px 12px;border-radius:99px;font-size:12px;color:var(--muted);white-space:nowrap;border:1px solid transparent}.tab-item.active[data-v-2f266e9b]{color:var(--accent);background:#2dd4bf1a;border-color:#2dd4bf40}.topbar[data-v-2f266e9b]{padding:0 12px;height:52px}.crumb-root[data-v-2f266e9b],.crumb-sep[data-v-2f266e9b],.top-status[data-v-2f266e9b]{display:none}.offline-banner[data-v-2f266e9b]{margin:10px 12px 0}}@media(max-width:900px){.sidebar[data-v-2f266e9b]{width:74px;padding:18px 10px}.brand-text[data-v-2f266e9b],.nav-copy[data-v-2f266e9b],.side-foot .server-line span[data-v-2f266e9b]:not(.dot),.user-meta[data-v-2f266e9b],.icon-btn[data-v-2f266e9b]{display:none}.nav-item[data-v-2f266e9b],.user-card[data-v-2f266e9b]{justify-content:center}.topbar[data-v-2f266e9b]{padding:0 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CVNCmOpb.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CBTKxgig.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CVNCmOpb.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CBTKxgig.js index 9c2701e1..c750a867 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CVNCmOpb.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CBTKxgig.js @@ -1,4 +1,4 @@ -import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,bb as se,bc as be,bd as he,d as ue,a8 as E,b2 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,be as pe,aj as Ce,ac as ye,b3 as we,j as P,ad as T,W as ze,bf as Re,bg as Se,af as j,ae as _e,O as De}from"./index-Ch4EWX-G.js";import{u as Be}from"./use-compitable-CjxNERC_.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` +import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,bb as se,bc as be,bd as he,d as ue,a8 as E,b2 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,be as pe,aj as Ce,ac as ye,b3 as we,j as P,ad as T,W as ze,bf as Re,bg as Se,af as j,ae as _e,O as De}from"./index-FGi6cKHs.js";import{u as Be}from"./use-compitable-Cc7HI9yh.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` font-size: var(--n-font-size); outline: none; cursor: pointer; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Bwk608FY.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-GAucdlv-.js similarity index 92% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Bwk608FY.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-GAucdlv-.js index f703dce8..730dce48 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Bwk608FY.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-GAucdlv-.js @@ -1 +1 @@ -import{d as e,o as r,c as t,a as o}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; +import{d as e,o as r,c as t,a as o}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BdYVNaS7.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BFofTbif.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BdYVNaS7.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BFofTbif.js index fff0c74b..4facd0e6 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BdYVNaS7.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BFofTbif.js @@ -1,4 +1,4 @@ -import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,be as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b2 as te,R as ne,bj as Ee,bk as je,ay as re,az as le,bl as ie,ae as He}from"./index-Ch4EWX-G.js";import{I as Le,u as Ke}from"./Input-DOY9MBk2.js";import{u as Ge}from"./use-compitable-CjxNERC_.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` +import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,be as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b2 as te,R as ne,bj as Ee,bk as je,ay as re,az as le,bl as ie,ae as He}from"./index-FGi6cKHs.js";import{I as Le,u as Ke}from"./Input-CQNdwpgx.js";import{u as Ge}from"./use-compitable-Cc7HI9yh.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-CvleeChj.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-D3fGSRVg.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-CvleeChj.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-D3fGSRVg.js index b684f28d..86811aa9 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-CvleeChj.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-D3fGSRVg.js @@ -1 +1 @@ -import{d as e,c as r,a as o,o as t}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; +import{d as e,c as r,a as o,o as t}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-fy8GfigG.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CALNDdv7.js similarity index 68% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-fy8GfigG.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CALNDdv7.js index e11bbeff..f2fd1eff 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-fy8GfigG.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CALNDdv7.js @@ -1 +1 @@ -import{N as m,_ as l}from"./_plugin-vue_export-helper-DQkFygL-.js";import{d as i,c,C as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-Ch4EWX-G.js";function z(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},C={key:0,class:"tile-hint"},B=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",C,o(t.hint),1)):n("",!0)],2))}}),D=l(B,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,D as S,z as c}; +import{N as m,_ as l}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-FGi6cKHs.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BX3jJC51.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-Gr2Sgzxq.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BX3jJC51.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-Gr2Sgzxq.js index c474634b..3a1642ee 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BX3jJC51.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-Gr2Sgzxq.js @@ -1 +1 @@ -import{d as e,c as t,y as o,o as n}from"./index-Ch4EWX-G.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; +import{d as e,c as t,y as o,o as n}from"./index-FGi6cKHs.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-DCA6_Iop.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-92xJ43m4.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-DCA6_Iop.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-92xJ43m4.js index b7427fda..ee4d71b7 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-DCA6_Iop.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-92xJ43m4.js @@ -1 +1 @@ -import{d as e,o as r,c as n,y as t}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; +import{d as e,o as r,c as n,y as t}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DOY9MBk2.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-CQNdwpgx.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DOY9MBk2.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-CQNdwpgx.js index 3e8707a8..d39ba1f1 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DOY9MBk2.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-CQNdwpgx.js @@ -1,4 +1,4 @@ -import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,bb as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,bf as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,be as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b2 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-Ch4EWX-G.js";import{u as Or}from"./use-compitable-CjxNERC_.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` +import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,bb as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,bf as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,be as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b2 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-FGi6cKHs.js";import{u as Or}from"./use-compitable-Cc7HI9yh.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` flex-shrink: 0; height: 1em; width: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DDTKasOc.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BXa3gqh3.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DDTKasOc.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BXa3gqh3.js index 665b3779..f2d879d8 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DDTKasOc.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BXa3gqh3.js @@ -1 +1 @@ -import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-Ch4EWX-G.js";import{I as L}from"./Input-DOY9MBk2.js";import{C as G}from"./CheckboxGroup-CVNCmOpb.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-DQkFygL-.js";import{S as Q}from"./Spin-BbwWICDg.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-CjxNERC_.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; +import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-FGi6cKHs.js";import{I as L}from"./Input-CQNdwpgx.js";import{C as G}from"./CheckboxGroup-CBTKxgig.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{S as Q}from"./Spin-CYz55qnY.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-Cc7HI9yh.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-DBaBm7B1.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-BTyoewQd.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-DBaBm7B1.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-BTyoewQd.js index 0eae3400..25aefeba 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-DBaBm7B1.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-BTyoewQd.js @@ -1 +1 @@ -import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-Ch4EWX-G.js";import{p as v,P as f}from"./use-message-sIwnQEJL.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; +import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-FGi6cKHs.js";import{p as v,P as f}from"./use-message-DzcW9fCu.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-jJfZw4rU.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-D-5LxqQb.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-jJfZw4rU.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-D-5LxqQb.js index bdd315fd..784e8a0d 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-jJfZw4rU.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-D-5LxqQb.js @@ -1,4 +1,4 @@ -import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-DlP0Rw4u.js";import{u as mr,I as je}from"./Input-DOY9MBk2.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,z as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,A as Ne,aT as Er}from"./index-Ch4EWX-G.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-sIwnQEJL.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-fy8GfigG.js";import{u as Ie}from"./use-compitable-CjxNERC_.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-DQkFygL-.js";import{S as Ge}from"./Spin-BbwWICDg.js";import{d as Hr}from"./streamers-Bl5LBoP5.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-BX3jJC51.js";import{D as rt}from"./DownloadOutline-CvleeChj.js";import{R as Wr}from"./RefreshOutline-DsgjGZK9.js";import{S as qr}from"./SearchOutline--3GBf81B.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` +import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-BIQZTWeg.js";import{u as mr,I as je}from"./Input-CQNdwpgx.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-FGi6cKHs.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-DzcW9fCu.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-CALNDdv7.js";import{u as Ie}from"./use-compitable-Cc7HI9yh.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{S as Ge}from"./Spin-CYz55qnY.js";import{d as Hr}from"./streamers-Crtjgplw.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-Gr2Sgzxq.js";import{D as rt}from"./DownloadOutline-D3fGSRVg.js";import{R as Wr}from"./RefreshOutline-C3W18lVY.js";import{S as qr}from"./SearchOutline-rYjpTFrE.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` box-shadow: var(--n-menu-box-shadow); `);const Ye={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:String,scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},at=hr(Ye);var Yr=re({name:"PopselectPanel",props:Ye,setup(e){const t=Ve(Ct),{mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedComponentPropsRef:m}=Be(e),v=A(()=>e.size||m?.value?.Popselect?.size||"medium"),C=be("Popselect","-pop-select",Xr,pt,t.props,r),F=A(()=>cr(e.options,ur("value","children")));function P(l,p){const{onUpdateValue:w,"onUpdate:value":k,onChange:N}=e;w&&X(w,l,p),k&&X(k,l,p),N&&X(N,l,p)}function f(l){b(l.key)}function M(l){!Ue(l,"action")&&!Ue(l,"empty")&&!Ue(l,"header")&&l.preventDefault()}function b(l){const{value:{getNode:p}}=F;if(e.multiple)if(Array.isArray(e.value)){const w=[],k=[];let N=!0;e.value.forEach(J=>{if(J===l){N=!1;return}const V=p(J);V&&(w.push(V.key),k.push(V.rawNode))}),N&&(w.push(l),k.push(p(l).rawNode)),P(w,k)}else{const w=p(l);w&&P([l],[w.rawNode])}else if(e.value===l&&e.cancelable)P(null,null);else{const w=p(l);w&&P(l,w.rawNode);const{"onUpdate:show":k,onUpdateShow:N}=t.props;k&&X(k,!1),N&&X(N,!1),t.setShow(!1)}De(()=>{t.syncPosition()})}Fe(Me(e,"options"),()=>{De(()=>{t.syncPosition()})});const R=A(()=>{const{self:{menuBoxShadow:l}}=C.value;return{"--n-menu-box-shadow":l}}),z=g?We("select",void 0,R,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:F,handleToggle:f,handleMenuMousedown:M,cssVars:g?void 0:R,themeClass:z?.themeClass,onRender:z?.onRender,mergedSize:v,scrollbarProps:t.props.scrollbarProps}},render(){return this.onRender?.(),n(),y(dr,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:H([`${this.mergedClsPrefix}-popselect-menu`,this.themeClass]),style:ce(this.cssVars),theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.mergedSize,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,scrollbarProps:this.scrollbarProps,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{_:1,header:Re(()=>this.$slots.header?.()||[]),action:Re(()=>this.$slots.action?.()||[]),empty:Re(()=>this.$slots.empty?.()||[])},8,["clsPrefix","nodeProps","class","style","theme","themeOverrides","multiple","treeMate","size","value","virtualScroll","scrollable","scrollbarProps","renderLabel","onToggle","onMouseenter","onMouseleave","onMousedown","showCheckmark"])}});const Kr={...be.props,...vt(Qe,["showArrow","arrow"]),placement:{...Qe.placement,default:"bottom"},trigger:{type:String,default:"hover"},...Ye,scrollbarProps:Object};var Jr=re({name:"Popselect",props:Kr,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Be(e),r=be("Popselect","-popselect",void 0,pt,e,t),g=B(null);function m(){g.value?.syncPosition()}function v(C){g.value?.setShow(C)}return Pe(Ct,{props:e,mergedThemeRef:r,syncPosition:m,setShow:v}),{syncPosition:m,setShow:v,popoverInstRef:g,mergedTheme:r}},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,g,m,v,C)=>{const{$attrs:F}=this;return n(),y(Yr,ge(F,{class:[F.class,r],style:[F.style,...m]},pr(this.$props,at),{ref:Nr(g),onMouseenter:Ke([v,F.onMouseenter]),onMouseleave:Ke([C,F.onMouseleave])}),{header:()=>this.$slots.header?.(),action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,["class","style","onMouseenter","onMouseleave"])}};return n(),y(Ar,ge(vt(this.$props,at),t,{internalDeactivateImmediately:!0}),{_:1,trigger:Re(()=>this.$slots.default?.())},16)}});const Qr={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function nt(e){const t=Qr[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}var ot=re({name:"Backward",render(){return(()=>{const e=xe("20cdf29399dd0749");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"})],-1))})()}}),st=re({name:"FastBackward",render(){return(()=>{const e=xe("9d0d04cc580afefa");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"})])])],-1))})()}}),it=re({name:"FastForward",render(){return(()=>{const e=xe("c2e477dd1211740a");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})])])],-1))})()}}),lt=re({name:"Forward",render(){return(()=>{const e=xe("6fb2c33c1e576c93");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"})],-1))})()}}),dt=re({name:"More",render(){return(()=>{const e=xe("e4a3e3d3803c676d");return e[0]||(e[0]=a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"})])])],-1))})()}});const ct=` background: var(--n-item-color-hover); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-DsgjGZK9.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-C3W18lVY.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-DsgjGZK9.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-C3W18lVY.js index ad6098fb..e10498fb 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-DsgjGZK9.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-C3W18lVY.js @@ -1 +1 @@ -import{d as n,c as t,a as o,o as r}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; +import{d as n,c as t,a as o,o as r}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-FDkwT__U.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-CiNT7cDx.js similarity index 92% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-FDkwT__U.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-CiNT7cDx.js index 00cb01f7..26e1b74d 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-FDkwT__U.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-CiNT7cDx.js @@ -1 +1 @@ -import{T as R,S as M}from"./Select-DlP0Rw4u.js";import{I as re}from"./Input-DOY9MBk2.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as Ve,b as De,z as He,e as o,w as n,u as a,B as _,F as H,A as G,aq as de,r as g,f as p,C as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-Ch4EWX-G.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as Ye,A as ue,F as Ze,a as w}from"./AddOutline-C9wx-dLG.js";import{u as Ke}from"./use-message-sIwnQEJL.js";import{D as Qe,I as et}from"./DocumentTextOutline-BdYVNaS7.js";import{S as W}from"./Switch-4rsLpKoT.js";import{d as tt}from"./streamers-Bl5LBoP5.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-DsgjGZK9.js";import{G as nt}from"./GitCompareOutline-DCA6_Iop.js";import"./use-compitable-CjxNERC_.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>Ve(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Vt={class:"target-editor"},Dt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ke(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const V=g(new Set);async function ze(t){if(!V.value.has(t.id)){V.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{V.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let D;function se(){document.visibilityState==="visible"&&h(!0)}return De(async()=>{await Promise.all([h(),Ce()]),!N&&(D=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,D&&window.clearInterval(D),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ze),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Vt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Dt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; +import{T as R,S as M}from"./Select-BIQZTWeg.js";import{I as re}from"./Input-CQNdwpgx.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-FGi6cKHs.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as Ye,A as ue,F as Ze,a as w}from"./AddOutline-AWO4O9Bs.js";import{u as Ke}from"./use-message-DzcW9fCu.js";import{D as Qe,I as et}from"./DocumentTextOutline-BFofTbif.js";import{S as W}from"./Switch-zhsy3xi9.js";import{d as tt}from"./streamers-Crtjgplw.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-C3W18lVY.js";import{G as nt}from"./GitCompareOutline-92xJ43m4.js";import"./use-compitable-Cc7HI9yh.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ke(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ze),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline--3GBf81B.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-rYjpTFrE.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline--3GBf81B.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-rYjpTFrE.js index e5778217..9d5a0484 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline--3GBf81B.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-rYjpTFrE.js @@ -1 +1 @@ -import{d as o,o as r,c as n,a as t}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; +import{d as o,o as r,c as n,a as t}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-DlP0Rw4u.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-BIQZTWeg.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-DlP0Rw4u.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-BIQZTWeg.js index ab0cd84e..1230fb6b 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-DlP0Rw4u.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-BIQZTWeg.js @@ -1,4 +1,4 @@ -import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-sIwnQEJL.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b2 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,z as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,be as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-Ch4EWX-G.js";import{u as Xt,S as ro}from"./Input-DOY9MBk2.js";import{u as At,a as lo}from"./use-compitable-CjxNERC_.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` +import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-DzcW9fCu.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b2 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,be as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-FGi6cKHs.js";import{u as Xt,S as ro}from"./Input-CQNdwpgx.js";import{u as At,a as lo}from"./use-compitable-Cc7HI9yh.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` display: flex; flex-direction: column; align-items: center; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-DxAvLK-K.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-ekQZ1QYf.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-DxAvLK-K.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-ekQZ1QYf.js index adc8c6b8..9d9acd5f 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-DxAvLK-K.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-ekQZ1QYf.js @@ -1 +1 @@ -import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-Ch4EWX-G.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-DQkFygL-.js";import{R as y}from"./RefreshOutline-DsgjGZK9.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; +import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-FGi6cKHs.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{R as y}from"./RefreshOutline-C3W18lVY.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-C7TOuPQQ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-C7TOuPQQ.js deleted file mode 100644 index 22162d74..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-C7TOuPQQ.js +++ /dev/null @@ -1,3 +0,0 @@ -import{I as b}from"./Input-DOY9MBk2.js";import{d as O,o as d,c as p,y as re,a as l,ao as A,aV as Y,b as de,e as i,w as a,u as n,B as g,t as m,f as u,g as E,F as T,i as pe,bh as ve,r as v,J as fe,ap as me,bi as ce}from"./index-Ch4EWX-G.js";import{S as U}from"./Select-DlP0Rw4u.js";import{N as _,_ as _e}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as ge}from"./use-message-sIwnQEJL.js";import{I as R,D as ye}from"./DocumentTextOutline-BdYVNaS7.js";import{S as ke}from"./Spin-BbwWICDg.js";import{S as I}from"./Switch-4rsLpKoT.js";import{v as be}from"./filename-template-DBJXvN0y.js";import{e as h,i as D}from"./runtime-bridge-DmDzFGpU.js";import{V as K}from"./VideocamOutline-Dxd9Z4sO.js";import{R as we}from"./RefreshOutline-DsgjGZK9.js";import"./use-compitable-CjxNERC_.js";const xe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},he=O({name:"ColorPaletteOutline",render:function(f,r){return d(),p("svg",xe,r[0]||(r[0]=[re('',6)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ze=O({name:"KeyOutline",render:function(f,r){return d(),p("svg",Ce,r[0]||(r[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},J=O({name:"SaveOutline",render:function(f,r){return d(),p("svg",Se,r[0]||(r[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},j=O({name:"ServerOutline",render:function(f,r){return d(),p("svg",Me,r[0]||(r[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Ue=()=>A("/v1/configuration"),Ae=w=>Y("/v1/configuration",w),Oe=[{label:"FFmpeg",value:"ffmpeg"},{label:"Stream Gears(推荐,边录边传)",value:"stream-gears"},{label:"Streamlink",value:"streamlink"},{label:"同步下载器 sync-downloader",value:"sync-downloader"},{label:"Mesio",value:"mesio"}],Be=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Ne=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Pe=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],Ve={class:"page"},Fe={class:"page-head"},qe={class:"toolbar"},Ee={key:0,class:"loading"},Re={key:1,class:"error-panel"},De={class:"error-msg"},Le={key:2,class:"sections"},He={class:"section panel"},Te={class:"sec-head"},Ie={class:"sec-icon accent"},je={class:"fields"},$e={class:"field wide"},Ge={class:"field wide"},Ke={class:"field"},Je={class:"field"},Ye={class:"field"},Qe={class:"field"},We={class:"section panel"},Xe={class:"sec-head"},Ze={class:"sec-icon cyan"},el={class:"fields"},ll={class:"field"},sl={class:"field"},nl={class:"field wide"},tl={class:"section panel"},il={class:"sec-head"},ol={class:"sec-icon live"},al={class:"fields"},ul={class:"field"},rl={class:"field"},dl={class:"field switch-field"},pl={class:"field switch-field"},vl={class:"field switch-field"},fl={class:"section panel"},ml={class:"sec-head"},cl={class:"sec-icon live"},_l={class:"fields"},gl={class:"field wide"},yl={class:"section panel"},kl={class:"sec-head"},bl={class:"sec-icon muted"},wl={class:"readonly"},xl={class:"mono"},hl={class:"mono"},Cl={class:"mono"},zl={class:"mono"},Sl={class:"section panel"},Ml={class:"sec-head"},Ul={class:"sec-icon accent"},Al={class:"fields"},Ol={class:"field wide"},Bl={class:"field wide"},Nl={class:"field wide"},Pl={class:"support-actions"},Vl={key:0,class:"inline-hint"},Fl={key:1,class:"readonly engine-status"},ql={class:"mono"},El={class:"mono"},Rl={key:2,class:"diagnostic-block"},Dl={key:0,class:"inline-error"},Ll={key:1,class:"inline-hint"},Hl={key:2,class:"diag-preview"},Tl={class:"support-actions"},Il={class:"support-note"},jl={class:"section panel"},$l={class:"sec-head"},Gl={class:"sec-icon cyan"},Kl={class:"fields"},Jl={class:"field wide"},Yl=O({__name:"SettingsView",setup(w){const f=ge(),r=v(null),C=v(!0),B=v(!1),N=v(""),s=fe({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"ffmpeg",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function $(t){s.sync_save_dir=t.sync_save_dir??"",s.filename_prefix=t.filename_prefix??"",s.file_size_gb=Number(((t.file_size??262144e4)/1024/1024/1024).toFixed(3)),s.segment_time=t.segment_time??"",s.filtering_threshold=t.filtering_threshold??1,s.min_free_space_gb=Number(((t.min_free_space??0)/1024/1024/1024).toFixed(2)),s.checker_sleep=t.checker_sleep??10,s.downloader=t.downloader??"ffmpeg",s.ffmpeg_path=t.ffmpeg_path??"",s.douyin_quality=t.douyin_quality??"origin",s.douyin_protocol=t.douyin_protocol??"flv",s.douyin_true_origin=t.douyin_true_origin??!0,s.douyin_double_screen=t.douyin_double_screen??!1,s.douyin_danmaku=t.douyin_danmaku??!1,s.kuaishou_cookie=t.kuaishou_cookie??""}async function L(){C.value=!0,N.value="";try{r.value=await Ue(),$(r.value)}catch(t){N.value=t instanceof Error?t.message:"读取配置失败"}finally{C.value=!1}}async function Q(){if(!r.value)return;const t=be(s.filename_prefix);if(t){f.error(t);return}B.value=!0;try{const e={...r.value,sync_save_dir:s.sync_save_dir.trim()||null,filename_prefix:s.filename_prefix.trim()||null,file_size:Math.round(s.file_size_gb*1024*1024*1024),segment_time:s.segment_time.trim()||null,filtering_threshold:s.filtering_threshold??1,min_free_space:Math.round((s.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:s.checker_sleep||10,downloader:s.downloader,ffmpeg_path:s.ffmpeg_path.trim()||null,douyin_quality:s.douyin_quality,douyin_protocol:s.douyin_protocol,douyin_true_origin:s.douyin_true_origin,douyin_double_screen:s.douyin_double_screen,douyin_danmaku:s.douyin_danmaku,kuaishou_cookie:s.kuaishou_cookie.trim()||null},o=await Ae(e);r.value=o,$(o),f.success("设置已保存并生效")}catch(e){f.error(h(e))}finally{B.value=!1}}const x=v(null),P=v("sidecar"),G=v(""),V=v(""),y=v(!1),z=v(""),k=v(!0);async function F(){if(!D()){k.value=!1,z.value="引擎连接模式仅在 MiniApp 中可用";return}y.value=!0,z.value="";try{const[t,e]=await Promise.all([A("/_miniapp/runtime-status"),A("/_miniapp/connection-config")]);x.value=t,P.value=e.mode==="remote"?"remote":"sidecar",G.value=e.binaryPath??"",V.value=e.ffmpegPath??"",k.value=!0}catch(t){x.value=null,k.value=!1,z.value=h(t)||"读取引擎状态失败(接口尚未就绪)"}finally{y.value=!1}}async function W(){if(D()){y.value=!0;try{await Y("/_miniapp/connection-config",{mode:P.value,ffmpegPath:V.value}),f.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await F()}catch(t){f.error(h(t))}finally{y.value=!1}}}async function X(){if(D()){y.value=!0;try{await me("/_miniapp/engine/restart"),f.success("引擎重启指令已发送"),await F()}catch(t){f.error(h(t))}finally{y.value=!1}}}const c=v(""),H=v(!1),S=v(""),q=v(!1);function Z(t){const e=typeof t?.ts=="string"?t.ts:"",o=typeof t?.level=="string"?t.level:"info",ae=typeof t?.message=="string"?t.message:"",ue=typeof t?.fields=="string"&&t.fields?" "+t.fields:"";return(e?e+" ":"")+"["+o+"] "+ae+ue}async function ee(){if(S.value="",!D()){c.value="",S.value="诊断日志仅在 MiniApp 中可用";return}H.value=!0;try{const[t,e]=await Promise.all([A("/_miniapp/diagnostics"),A("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(t?.lines)?t.lines:[];o.length?c.value=o.map(Z).join(` -`):e?.lastError?c.value="最近错误:"+e.lastError:c.value="暂无最近错误记录"}catch(t){S.value=h(t),c.value=""}finally{H.value=!1}}function le(){if(!c.value)return;const t=new Blob([c.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(t),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function se(){const t=c.value.trim();if(!t)return;const e=window.miniapp;if(!e?.host?.composer?.append){f.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: -`+t),f.success("已送入输入框,请确认后发送")}catch(o){f.error(h(o))}}const ne=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function te(t){ce(t),f.success(t==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const M=v("default");function ie(){M.value=typeof Notification>"u"?"unsupported":Notification.permission}async function oe(){if(!(typeof Notification>"u"))try{M.value=await Notification.requestPermission()}catch{}}return de(()=>{L(),F(),ee(),ie()}),(t,e)=>(d(),p("div",Ve,[l("div",Fe,[e[20]||(e[20]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",qe,[i(n(g),{disabled:C.value||B.value,onClick:L},{default:a(()=>[...e[18]||(e[18]=[u("重新读取",-1)])]),_:1},8,["disabled"]),i(n(g),{type:"primary",loading:B.value,disabled:C.value||!r.value,onClick:Q},{icon:a(()=>[i(n(_),null,{default:a(()=>[i(n(J))]),_:1})]),default:a(()=>[e[19]||(e[19]=u(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),C.value?(d(),p("div",Ee,[i(n(ke),{size:"large"})])):N.value?(d(),p("div",Re,[e[22]||(e[22]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",De,m(N.value),1),i(n(g),{size:"small",onClick:L},{default:a(()=>[...e[21]||(e[21]=[u("重试",-1)])]),_:1})])):(d(),p("div",Le,[l("section",He,[l("header",Te,[l("span",Ie,[i(n(_),{size:17},{default:a(()=>[i(n(j))]),_:1})]),e[23]||(e[23]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",je,[l("label",$e,[e[24]||(e[24]=l("span",null,[u("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(n(b),{value:s.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>s.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",Ge,[e[25]||(e[25]=l("span",null,[u("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(n(b),{value:s.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>s.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[26]||(e[26]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",Ke,[e[28]||(e[28]=l("span",null,"分段大小(GB)",-1)),i(n(R),{value:s.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>s.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:a(()=>[...e[27]||(e[27]=[u("GB",-1)])]),_:1},8,["value"])]),l("label",Je,[e[29]||(e[29]=l("span",null,[u("分段时间 "),l("em",null,"segment_time")],-1)),i(n(b),{value:s.segment_time,"onUpdate:value":e[3]||(e[3]=o=>s.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[30]||(e[30]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",Ye,[e[32]||(e[32]=l("span",null,"碎片过滤阈值(MB)",-1)),i(n(R),{value:s.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>s.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:a(()=>[...e[31]||(e[31]=[u("MB",-1)])]),_:1},8,["value"]),e[33]||(e[33]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",Qe,[e[35]||(e[35]=l("span",null,[u("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(n(R),{value:s.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>s.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:a(()=>[...e[34]||(e[34]=[u("GB",-1)])]),_:1},8,["value"]),e[36]||(e[36]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",We,[l("header",Xe,[l("span",Ze,[i(n(_),{size:17},{default:a(()=>[i(n(K))]),_:1})]),e[37]||(e[37]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",el,[l("label",ll,[e[39]||(e[39]=l("span",null,"检测间隔(秒)",-1)),i(n(R),{value:s.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>s.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:a(()=>[...e[38]||(e[38]=[u("秒",-1)])]),_:1},8,["value"]),e[40]||(e[40]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",sl,[e[41]||(e[41]=l("span",null,"下载器",-1)),i(n(U),{value:s.downloader,"onUpdate:value":e[7]||(e[7]=o=>s.downloader=o),options:n(Oe)},null,8,["value","options"])]),l("label",nl,[e[42]||(e[42]=l("span",null,[u("FFmpeg 路径(录制引擎) "),l("em",null,"ffmpeg_path")],-1)),i(n(b),{value:s.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>s.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",tl,[l("header",il,[l("span",ol,[i(n(_),{size:17},{default:a(()=>[i(n(K))]),_:1})]),e[43]||(e[43]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",al,[l("label",ul,[e[44]||(e[44]=l("span",null,"录制画质",-1)),i(n(U),{value:s.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>s.douyin_quality=o),options:n(Be)},null,8,["value","options"])]),l("label",rl,[e[45]||(e[45]=l("span",null,"直播协议",-1)),i(n(U),{value:s.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>s.douyin_protocol=o),options:n(Ne)},null,8,["value","options"])]),l("div",dl,[e[46]||(e[46]=l("span",null,[u("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(n(I),{value:s.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>s.douyin_true_origin=o)},null,8,["value"]),e[47]||(e[47]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",pl,[e[48]||(e[48]=l("span",null,"双屏 / 连屏直播",-1)),i(n(I),{value:s.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>s.douyin_double_screen=o)},null,8,["value"]),e[49]||(e[49]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",vl,[e[50]||(e[50]=l("span",null,[u("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(n(I),{value:s.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>s.douyin_danmaku=o)},null,8,["value"]),e[51]||(e[51]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",fl,[l("header",ml,[l("span",cl,[i(n(_),{size:17},{default:a(()=>[i(n(ze))]),_:1})]),e[52]||(e[52]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",_l,[l("label",gl,[e[53]||(e[53]=l("span",null,[u("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(n(b),{value:s.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>s.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[54]||(e[54]=l("small",null,"只在本机保存。",-1))])])]),l("section",yl,[l("header",kl,[l("span",bl,[i(n(_),{size:17},{default:a(()=>[i(n(j))]),_:1})]),e[55]||(e[55]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",wl,[l("div",null,[e[56]||(e[56]=l("span",null,"并发录制池",-1)),l("b",xl,m(r.value?.pool1_size??"—")+" / "+m(r.value?.pool2_size??"—"),1)]),l("div",null,[e[57]||(e[57]=l("span",null,"线程数",-1)),l("b",hl,m(r.value?.threads??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"投稿后保留",-1)),l("b",Cl,m(r.value?.retention_hours?r.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"合并阈值",-1)),l("b",zl,m(r.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Sl,[l("header",Ml,[l("span",Ul,[i(n(_),{size:17},{default:a(()=>[i(n(j))]),_:1})]),e[60]||(e[60]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",Al,[l("label",Ol,[e[61]||(e[61]=l("span",null,"运行模式",-1)),i(n(U),{value:P.value,"onUpdate:value":e[15]||(e[15]=o=>P.value=o),options:n(Pe),disabled:!k.value},null,8,["value","options","disabled"])]),l("label",Bl,[e[62]||(e[62]=l("span",null,"biliup-cli 路径(只读)",-1)),i(n(b),{value:G.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!k.value},null,8,["value","disabled"]),e[63]||(e[63]=l("small",{class:"inline-hint"},[u(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),u(" 的 "),l("code",null,"binaryPath"),u(" 字段。 ")],-1))]),l("label",Nl,[e[64]||(e[64]=l("span",null,"FFmpeg 路径(Sidecar)",-1)),i(n(b),{value:V.value,"onUpdate:value":e[16]||(e[16]=o=>V.value=o),placeholder:"留空使用系统 PATH",disabled:!k.value},null,8,["value","disabled"])])]),l("div",Pl,[i(n(g),{loading:y.value,onClick:F},{icon:a(()=>[i(n(_),null,{default:a(()=>[i(n(we))]),_:1})]),default:a(()=>[e[65]||(e[65]=u(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(n(g),{type:"primary",loading:y.value,disabled:!k.value,onClick:W},{icon:a(()=>[i(n(_),null,{default:a(()=>[i(n(J))]),_:1})]),default:a(()=>[e[66]||(e[66]=u(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(n(g),{loading:y.value,disabled:!k.value,onClick:X},{default:a(()=>[...e[67]||(e[67]=[u(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(n(g),{quaternary:"",onClick:e[17]||(e[17]=o=>q.value=!q.value)},{icon:a(()=>[i(n(_),null,{default:a(()=>[i(n(ye))]),_:1})]),default:a(()=>[u(" "+m(q.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),z.value?(d(),p("div",Vl,m(z.value),1)):E("",!0),x.value?(d(),p("div",Fl,[l("div",null,[e[68]||(e[68]=l("span",null,"引擎模式",-1)),l("b",ql,m(x.value.mode??"—"),1)]),l("div",null,[e[69]||(e[69]=l("span",null,"就绪状态",-1)),l("b",null,m(x.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[70]||(e[70]=l("span",null,"进程 PID",-1)),l("b",El,m(x.value.pid??"—"),1)])])):E("",!0),q.value?(d(),p("div",Rl,[e[73]||(e[73]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),S.value?(d(),p("div",Dl,m(S.value),1)):E("",!0),H.value?(d(),p("div",Ll,"读取中…")):(d(),p("pre",Hl,m(c.value||"暂无诊断信息"),1)),l("div",Tl,[i(n(g),{size:"small",disabled:!c.value,onClick:le},{default:a(()=>[...e[71]||(e[71]=[u("本地导出",-1)])]),_:1},8,["disabled"]),i(n(g),{size:"small",disabled:!c.value,onClick:se},{default:a(()=>[...e[72]||(e[72]=[u("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):E("",!0),l("p",Il,[e[75]||(e[75]=u(" 通知权限: ",-1)),M.value==="granted"?(d(),p(T,{key:0},[u("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):M.value==="denied"?(d(),p(T,{key:1},[u("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):M.value==="unsupported"?(d(),p(T,{key:2},[u("当前环境不支持系统通知。")],64)):(d(),pe(n(g),{key:3,size:"tiny",quaternary:"",onClick:oe},{default:a(()=>[...e[74]||(e[74]=[u("开启系统通知",-1)])]),_:1}))])]),l("section",jl,[l("header",$l,[l("span",Gl,[i(n(_),{size:17},{default:a(()=>[i(n(he))]),_:1})]),e[76]||(e[76]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",Kl,[l("label",Jl,[e[77]||(e[77]=l("span",null,"主题模式",-1)),i(n(U),{value:n(ve),options:ne,"onUpdate:value":te},null,8,["value"]),e[78]||(e[78]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),rs=_e(Yl,[["__scopeId","data-v-40ed5347"]]);export{rs as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-T1R_3ITH.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-T1R_3ITH.css new file mode 100644 index 00000000..9b30bd6d --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-T1R_3ITH.css @@ -0,0 +1 @@ +.loading[data-v-07cc3ddd]{display:grid;place-items:center;padding:90px 0}.sections[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-07cc3ddd]{padding:20px 22px 22px}.sec-head[data-v-07cc3ddd]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-07cc3ddd]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-07cc3ddd]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-07cc3ddd]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-07cc3ddd]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-07cc3ddd]{color:var(--muted)}.sec-head h2[data-v-07cc3ddd]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-07cc3ddd]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-07cc3ddd]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-07cc3ddd]{grid-column:1 / -1}.field>span[data-v-07cc3ddd]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-07cc3ddd]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-07cc3ddd]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-07cc3ddd]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-07cc3ddd]{grid-column:1 / -1}.readonly[data-v-07cc3ddd]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-07cc3ddd]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-07cc3ddd]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-07cc3ddd]{font-size:13px;font-weight:600}.error-panel[data-v-07cc3ddd]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-07cc3ddd]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-07cc3ddd]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-07cc3ddd]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-07cc3ddd]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-07cc3ddd]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-07cc3ddd]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-07cc3ddd]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-07cc3ddd]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}.engine-install[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:10px}.engine-status-row[data-v-07cc3ddd]{display:flex;align-items:center;gap:10px;font-size:12.5px}.engine-status-row span[data-v-07cc3ddd]{color:var(--muted)}.engine-status-row b[data-v-07cc3ddd]{color:var(--text, #e6f1f5)}.engine-detail[data-v-07cc3ddd]{display:grid;grid-template-columns:1fr 2fr;gap:8px 12px;font-size:11.5px}.engine-detail>div[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:4px}.engine-detail span[data-v-07cc3ddd]{color:var(--muted)}.engine-detail b[data-v-07cc3ddd]{overflow-wrap:anywhere}.engine-progress[data-v-07cc3ddd]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--muted)}.progress-track[data-v-07cc3ddd]{flex:1 1 180px;height:6px;border-radius:99px;overflow:hidden;background:#94c5d61f}.progress-fill[data-v-07cc3ddd]{height:100%;background:var(--accent, #2dd4bf);transition:width .2s ease}.manual-list[data-v-07cc3ddd]{margin:4px 0 0;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}@media(max-width:640px){.fields[data-v-07cc3ddd],.readonly[data-v-07cc3ddd],.engine-status[data-v-07cc3ddd]{grid-template-columns:1fr}.section[data-v-07cc3ddd]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-fhfMIyM2.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-fhfMIyM2.js new file mode 100644 index 00000000..b3fae122 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-fhfMIyM2.js @@ -0,0 +1,3 @@ +import{I as h}from"./Input-CQNdwpgx.js";import{d as F,o as r,c as f,y as he,a as l,ao as P,aV as oe,b as Ce,A as Se,e as i,w as u,u as s,B as _,t as c,f as a,g as w,n as ze,i as A,F as W,bh as Me,r as m,J as Ee,ap as Ue,bi as Be}from"./index-FGi6cKHs.js";import{S as O}from"./Select-BIQZTWeg.js";import{N as y,_ as Ne}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as Ae}from"./use-message-DzcW9fCu.js";import{I as G,D as Oe}from"./DocumentTextOutline-BFofTbif.js";import{S as De}from"./Spin-CYz55qnY.js";import{S as Y}from"./Switch-zhsy3xi9.js";import{E as ne,a as te,g as Pe,s as Fe,c as Ve}from"./engine-fqHnj72g.js";import{e as p}from"./engine-state-C1ri-urc.js";import{v as qe}from"./filename-template-DBJXvN0y.js";import{e as x,i as D}from"./runtime-bridge-DmDzFGpU.js";import{V as Q}from"./VideocamOutline-DZpFNqp3.js";import{R as Ie}from"./RefreshOutline-C3W18lVY.js";import"./use-compitable-Cc7HI9yh.js";const Re={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Te=F({name:"ColorPaletteOutline",render:function(v,d){return r(),f("svg",Re,d[0]||(d[0]=[he('',6)]))}}),Le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=F({name:"KeyOutline",render:function(v,d){return r(),f("svg",Le,d[0]||(d[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=F({name:"SaveOutline",render:function(v,d){return r(),f("svg",Ge,d[0]||(d[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},X=F({name:"ServerOutline",render:function(v,d){return r(),f("svg",je,d[0]||(d[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),$e=()=>P("/v1/configuration"),Ke=C=>oe("/v1/configuration",C),Je=[{label:"FFmpeg",value:"ffmpeg"},{label:"Stream Gears(推荐,边录边传)",value:"stream-gears"},{label:"Streamlink",value:"streamlink"},{label:"同步下载器 sync-downloader",value:"sync-downloader"},{label:"Mesio",value:"mesio"}],We=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Ye=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Qe=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],Xe={class:"page"},Ze={class:"page-head"},el={class:"toolbar"},ll={key:0,class:"loading"},sl={key:1,class:"error-panel"},nl={class:"error-msg"},tl={key:2,class:"sections"},il={class:"section panel"},ol={class:"sec-head"},al={class:"sec-icon accent"},ul={class:"fields"},rl={class:"field wide"},dl={class:"field wide"},pl={class:"field"},vl={class:"field"},fl={class:"field"},cl={class:"field"},ml={class:"section panel"},_l={class:"sec-head"},yl={class:"sec-icon cyan"},gl={class:"fields"},kl={class:"field"},wl={class:"field"},bl={class:"field wide"},xl={class:"section panel"},hl={class:"sec-head"},Cl={class:"sec-icon live"},Sl={class:"fields"},zl={class:"field"},Ml={class:"field"},El={class:"field switch-field"},Ul={class:"field switch-field"},Bl={class:"field switch-field"},Nl={class:"section panel"},Al={class:"sec-head"},Ol={class:"sec-icon live"},Dl={class:"fields"},Pl={class:"field wide"},Fl={class:"section panel"},Vl={class:"sec-head"},ql={class:"sec-icon muted"},Il={class:"readonly"},Rl={class:"mono"},Tl={class:"mono"},Ll={class:"mono"},Hl={class:"mono"},Gl={class:"section panel"},jl={class:"sec-head"},$l={class:"sec-icon cyan"},Kl={class:"engine-install"},Jl={class:"engine-status-row"},Wl={key:0,class:"readonly engine-detail"},Yl={class:"mono"},Ql={class:"mono"},Xl={key:1,class:"inline-hint"},Zl={key:2,class:"inline-hint"},es={key:3,class:"engine-progress"},ls={class:"progress-track"},ss={class:"mono"},ns={class:"mono"},ts={class:"mono"},is={class:"support-actions"},os={key:4,class:"manual-list"},as={class:"section panel"},us={class:"sec-head"},rs={class:"sec-icon accent"},ds={class:"fields"},ps={class:"field wide"},vs={class:"field wide"},fs={class:"field wide"},cs={class:"support-actions"},ms={key:0,class:"inline-hint"},_s={key:1,class:"readonly engine-status"},ys={class:"mono"},gs={class:"mono"},ks={key:2,class:"diagnostic-block"},ws={key:0,class:"inline-error"},bs={key:1,class:"inline-hint"},xs={key:2,class:"diag-preview"},hs={class:"support-actions"},Cs={class:"support-note"},Ss={class:"section panel"},zs={class:"sec-head"},Ms={class:"sec-icon cyan"},Es={class:"fields"},Us={class:"field wide"},Bs=F({__name:"SettingsView",setup(C){const v=Ae(),d=m(null),M=m(!0),V=m(!1),q=m(""),t=Ee({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function Z(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function j(){M.value=!0,q.value="";try{d.value=await $e(),Z(d.value)}catch(n){q.value=n instanceof Error?n.message:"读取配置失败"}finally{M.value=!1}}async function ae(){if(!d.value)return;const n=qe(t.filename_prefix);if(n){v.error(n);return}V.value=!0;try{const e={...d.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await Ke(e);d.value=o,Z(o),v.success("设置已保存并生效")}catch(e){v.error(x(e))}finally{V.value=!1}}const S=m(null),I=m("sidecar"),ee=m(""),R=m(""),k=m(!1),E=m(""),b=m(!0),$=m(!1);let T;async function L(){if(!D()){b.value=!1,E.value="引擎连接模式仅在 MiniApp 中可用";return}k.value=!0,E.value="";try{const[n,e]=await Promise.all([P("/_miniapp/runtime-status"),P("/_miniapp/connection-config")]);S.value=n,I.value=e.mode==="remote"?"remote":"sidecar",ee.value=e.binaryPath??"",R.value=e.ffmpegPath??"",b.value=!0}catch(n){S.value=null,b.value=!1,E.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{k.value=!1}}async function ue(){if(D()){k.value=!0;try{await oe("/_miniapp/connection-config",{mode:I.value,ffmpegPath:R.value}),v.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await L()}catch(n){v.error(x(n))}finally{k.value=!1}}}async function re(){if(D()){k.value=!0;try{await Ue("/_miniapp/engine/restart"),v.success("引擎重启指令已发送"),await L()}catch(n){v.error(x(n))}finally{k.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function K(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,z=0;for(;o>=1024&&z0?K(n)+"/s":"—"}async function U(){if(D())try{p.value=await Pe()}catch{p.value=null}}async function se(){try{const n=await Fe();!n.ok&&n.error&&v.error(n.error),await U()}catch(n){v.error(x(n))}}async function ve(){try{await Ve(),await U()}catch(n){v.error(x(n))}}async function fe(){await U();const n=p.value;if(!n){v.error("无法读取引擎状态");return}n.state==="ready"&&n.version===te?v.info("当前已是最新版本"):n.state==="ready"?v.info("发现新版本 "+te+",仍需点击下载才会安装"):v.info("引擎尚未就绪,请先下载或手动安装")}const g=m(""),J=m(!1),B=m(""),H=m(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",z=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+z+xe}async function me(){if(B.value="",!D()){g.value="",B.value="诊断日志仅在 MiniApp 中可用";return}J.value=!0;try{const[n,e]=await Promise.all([P("/_miniapp/diagnostics"),P("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?g.value=o.map(ce).join(` +`):e?.lastError?g.value="最近错误:"+e.lastError:g.value="暂无最近错误记录"}catch(n){B.value=x(n),g.value=""}finally{J.value=!1}}function _e(){if(!g.value)return;const n=new Blob([g.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function ye(){const n=g.value.trim();if(!n)return;const e=window.miniapp;if(!e?.host?.composer?.append){v.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: +`+n),v.success("已送入输入框,请确认后发送")}catch(o){v.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function ke(n){Be(n),v.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const N=m("default");function we(){N.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{N.value=await Notification.requestPermission()}catch{}}return Ce(()=>{j(),L(),U(),me(),we(),T=window.setInterval(()=>{U()},1500)}),Se(()=>{T!==void 0&&(window.clearInterval(T),T=void 0)}),(n,e)=>(r(),f("div",Xe,[l("div",Ze,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",el,[i(s(_),{disabled:M.value||V.value,onClick:j},{default:u(()=>[...e[19]||(e[19]=[a("重新读取",-1)])]),_:1},8,["disabled"]),i(s(_),{type:"primary",loading:V.value,disabled:M.value||!d.value,onClick:ae},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(ie))]),_:1})]),default:u(()=>[e[20]||(e[20]=a(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),M.value?(r(),f("div",ll,[i(s(De),{size:"large"})])):q.value?(r(),f("div",sl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",nl,c(q.value),1),i(s(_),{size:"small",onClick:j},{default:u(()=>[...e[22]||(e[22]=[a("重试",-1)])]),_:1})])):(r(),f("div",tl,[l("section",il,[l("header",ol,[l("span",al,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",ul,[l("label",rl,[e[25]||(e[25]=l("span",null,[a("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(h),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",dl,[e[26]||(e[26]=l("span",null,[a("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(h),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",pl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s(G),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:u(()=>[...e[28]||(e[28]=[a("GB",-1)])]),_:1},8,["value"])]),l("label",vl,[e[30]||(e[30]=l("span",null,[a("分段时间 "),l("em",null,"segment_time")],-1)),i(s(h),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",fl,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s(G),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:u(()=>[...e[32]||(e[32]=[a("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",cl,[e[36]||(e[36]=l("span",null,[a("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s(G),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:u(()=>[...e[35]||(e[35]=[a("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",ml,[l("header",_l,[l("span",yl,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",gl,[l("label",kl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s(G),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:u(()=>[...e[39]||(e[39]=[a("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",wl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(O),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Je)},null,8,["value","options"])]),l("label",bl,[e[43]||(e[43]=l("span",null,[a("FFmpeg 路径(录制引擎) "),l("em",null,"ffmpeg_path")],-1)),i(s(h),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",xl,[l("header",hl,[l("span",Cl,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Sl,[l("label",zl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(O),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(We)},null,8,["value","options"])]),l("label",Ml,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(O),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Ye)},null,8,["value","options"])]),l("div",El,[e[47]||(e[47]=l("span",null,[a("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Y),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Ul,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Y),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Bl,[e[51]||(e[51]=l("span",null,[a("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Y),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Nl,[l("header",Al,[l("span",Ol,[i(s(y),{size:17},{default:u(()=>[i(s(He))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Dl,[l("label",Pl,[e[54]||(e[54]=l("span",null,[a("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(h),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",Fl,[l("header",Vl,[l("span",ql,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Il,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Rl,c(d.value?.pool1_size??"—")+" / "+c(d.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Tl,c(d.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",Ll,c(d.value?.retention_hours?d.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",Hl,c(d.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Gl,[l("header",jl,[l("span",$l,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Kl,[l("div",Jl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,c(de(s(p)?.state)),1)]),s(p)?.state==="ready"?(r(),f("div",Wl,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Yl,c(s(p).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Ql,c(s(p).path||"—"),1)])])):s(p)?.error?(r(),f("div",Xl,c(s(p).error),1)):w("",!0),s(ne)?w("",!0):(r(),f("div",Zl,"引擎下载尚未配置")),s(p)?.state==="downloading"||s(p)?.state==="verifying"?(r(),f("div",es,[l("div",ls,[l("div",{class:"progress-fill",style:ze({width:le()+"%"})},null,4)]),l("span",ss,c(le())+"%",1),l("span",ns,c(K(s(p)?.bytesDownloaded||0))+" / "+c(K(s(p)?.bytesTotal||0)),1),l("span",ts,c(pe()),1)])):w("",!0),l("div",is,[s(ne)?s(p)?.state==="missing"?(r(),A(s(_),{key:1,type:"primary",onClick:se},{default:u(()=>[...e[66]||(e[66]=[a("下载引擎",-1)])]),_:1})):s(p)?.state==="failed"?(r(),A(s(_),{key:2,type:"primary",onClick:se},{default:u(()=>[...e[67]||(e[67]=[a("重新下载",-1)])]),_:1})):s(p)?.state==="downloading"||s(p)?.state==="verifying"?(r(),A(s(_),{key:3,onClick:ve},{default:u(()=>[...e[68]||(e[68]=[a("取消",-1)])]),_:1})):w("",!0):(r(),A(s(_),{key:0,type:"primary",disabled:""},{default:u(()=>[...e[65]||(e[65]=[a("下载引擎",-1)])]),_:1})),i(s(_),{disabled:s(p)?.state==="downloading"||s(p)?.state==="verifying"||s(p)?.state==="unsupported",onClick:fe},{default:u(()=>[...e[69]||(e[69]=[a("检查更新",-1)])]),_:1},8,["disabled"]),i(s(_),{quaternary:"",onClick:e[15]||(e[15]=o=>$.value=!$.value)},{default:u(()=>[...e[70]||(e[70]=[a("手动安装说明",-1)])]),_:1})]),$.value?(r(),f("ol",os,[...e[71]||(e[71]=[l("li",null,[a("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),a(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):w("",!0)])]),l("section",as,[l("header",us,[l("span",rs,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",ds,[l("label",ps,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(O),{value:I.value,"onUpdate:value":e[16]||(e[16]=o=>I.value=o),options:s(Qe),disabled:!b.value},null,8,["value","options","disabled"])]),l("label",vs,[e[74]||(e[74]=l("span",null,"biliup-cli 路径(只读)",-1)),i(s(h),{value:ee.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!b.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[a(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),a(" 的 "),l("code",null,"binaryPath"),a(" 字段。 ")],-1))]),l("label",fs,[e[76]||(e[76]=l("span",null,"FFmpeg 路径(Sidecar)",-1)),i(s(h),{value:R.value,"onUpdate:value":e[17]||(e[17]=o=>R.value=o),placeholder:"留空使用系统 PATH",disabled:!b.value},null,8,["value","disabled"])])]),l("div",cs,[i(s(_),{loading:k.value,onClick:L},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(Ie))]),_:1})]),default:u(()=>[e[77]||(e[77]=a(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(_),{type:"primary",loading:k.value,disabled:!b.value,onClick:ue},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(ie))]),_:1})]),default:u(()=>[e[78]||(e[78]=a(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(_),{loading:k.value,disabled:!b.value,onClick:re},{default:u(()=>[...e[79]||(e[79]=[a(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(_),{quaternary:"",onClick:e[18]||(e[18]=o=>H.value=!H.value)},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(Oe))]),_:1})]),default:u(()=>[a(" "+c(H.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),E.value?(r(),f("div",ms,c(E.value),1)):w("",!0),S.value?(r(),f("div",_s,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ys,c(S.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,c(S.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",gs,c(S.value.pid??"—"),1)])])):w("",!0),H.value?(r(),f("div",ks,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),B.value?(r(),f("div",ws,c(B.value),1)):w("",!0),J.value?(r(),f("div",bs,"读取中…")):(r(),f("pre",xs,c(g.value||"暂无诊断信息"),1)),l("div",hs,[i(s(_),{size:"small",disabled:!g.value,onClick:_e},{default:u(()=>[...e[83]||(e[83]=[a("本地导出",-1)])]),_:1},8,["disabled"]),i(s(_),{size:"small",disabled:!g.value,onClick:ye},{default:u(()=>[...e[84]||(e[84]=[a("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):w("",!0),l("p",Cs,[e[87]||(e[87]=a(" 通知权限: ",-1)),N.value==="granted"?(r(),f(W,{key:0},[a("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):N.value==="denied"?(r(),f(W,{key:1},[a("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):N.value==="unsupported"?(r(),f(W,{key:2},[a("当前环境不支持系统通知。")],64)):(r(),A(s(_),{key:3,size:"tiny",quaternary:"",onClick:be},{default:u(()=>[...e[86]||(e[86]=[a("开启系统通知",-1)])]),_:1}))])]),l("section",Ss,[l("header",zs,[l("span",Ms,[i(s(y),{size:17},{default:u(()=>[i(s(Te))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",Es,[l("label",Us,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(O),{value:s(Me),options:ge,"onUpdate:value":ke},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),$s=Ne(Bs,[["__scopeId","data-v-07cc3ddd"]]);export{$s as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-ogFFTr5l.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-ogFFTr5l.css deleted file mode 100644 index ec200033..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-ogFFTr5l.css +++ /dev/null @@ -1 +0,0 @@ -.loading[data-v-40ed5347]{display:grid;place-items:center;padding:90px 0}.sections[data-v-40ed5347]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-40ed5347]{padding:20px 22px 22px}.sec-head[data-v-40ed5347]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-40ed5347]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-40ed5347]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-40ed5347]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-40ed5347]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-40ed5347]{color:var(--muted)}.sec-head h2[data-v-40ed5347]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-40ed5347]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-40ed5347]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-40ed5347]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-40ed5347]{grid-column:1 / -1}.field>span[data-v-40ed5347]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-40ed5347]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-40ed5347]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-40ed5347]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-40ed5347]{grid-column:1 / -1}.readonly[data-v-40ed5347]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-40ed5347]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-40ed5347]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-40ed5347]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-40ed5347]{font-size:13px;font-weight:600}.error-panel[data-v-40ed5347]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-40ed5347]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-40ed5347]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-40ed5347]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-40ed5347]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-40ed5347]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-40ed5347]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-40ed5347]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-40ed5347]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}@media(max-width:640px){.fields[data-v-40ed5347],.readonly[data-v-40ed5347],.engine-status[data-v-40ed5347]{grid-template-columns:1fr}.section[data-v-40ed5347]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-9SicR-7j.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-bBDSRDwN.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-9SicR-7j.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-bBDSRDwN.js index c2737658..188e2aaa 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-9SicR-7j.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-bBDSRDwN.js @@ -1,6 +1,6 @@ -import{T as ee,S as pe}from"./Select-DlP0Rw4u.js";import{I as te}from"./Input-DOY9MBk2.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b5 as ke,b6 as _e,b7 as xe,b8 as $e,b9 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,ba as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,z as Fe,e as d,w as v,u as l,B as T,t as b,g as R,A as de,aq as Ye,f as $,C as He}from"./index-Ch4EWX-G.js";import{C as ve}from"./CheckboxGroup-CVNCmOpb.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as Je}from"./use-message-sIwnQEJL.js";import{S as Ke}from"./Spin-BbwWICDg.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-Bwk608FY.js";import{S as et}from"./SearchOutline--3GBf81B.js";import{V as tt}from"./VideocamOutline-Dxd9Z4sO.js";import{D as me}from"./DownloadOutline-CvleeChj.js";import{R as rt}from"./RefreshOutline-DsgjGZK9.js";import"./use-compitable-CjxNERC_.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function D(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,I=`M ${V},${V} m ${B},${g} +import{T as ee,S as pe}from"./Select-BIQZTWeg.js";import{I as te}from"./Input-CQNdwpgx.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b5 as ke,b6 as _e,b7 as xe,b8 as $e,b9 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,ba as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-FGi6cKHs.js";import{C as ve}from"./CheckboxGroup-CBTKxgig.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as Je}from"./use-message-DzcW9fCu.js";import{S as Ke}from"./Spin-CYz55qnY.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-GAucdlv-.js";import{S as et}from"./SearchOutline-rYjpTFrE.js";import{V as tt}from"./VideocamOutline-DZpFNqp3.js";import{D as me}from"./DownloadOutline-D3fGSRVg.js";import{R as rt}from"./RefreshOutline-C3W18lVY.js";import"./use-compitable-Cc7HI9yh.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} a ${h},${h} 0 1 1 ${f},-100 - a ${h},${h} 0 1 1 0,${O}`,M=Math.PI*2*h;return{pathString:I,pathStyle:{stroke:u==="rail"?y:typeof t.fillColor=="object"?`url(#${k.value})`:y,strokeDasharray:`${Math.min(n,100)/100*(M-z)}px ${C*8}px`,strokeDashoffset:`-${z/2}px`,transformOrigin:p?"center":void 0,transform:p?`rotate(${p}deg)`:void 0}}}const x=()=>{const n=typeof t.fillColor=="object",p=n?t.fillColor.stops[0]:"",y=n?t.fillColor.stops[1]:"";return n&&(o(),s("defs",null,[r("linearGradient",{id:k.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[r("stop",{offset:"0%","stop-color":p},null,8,it),r("stop",{offset:"100%","stop-color":y},null,8,at)],8,ot)]))};return()=>{const{fillColor:n,railColor:p,strokeWidth:y,offsetDegree:u,status:z,percentage:C,showIndicator:q,indicatorTextColor:h,unit:B,gapOffsetDegree:g,clsPrefix:f}=t,{pathString:O,pathStyle:V}=D(100,0,p,"rail"),{pathString:I,pathStyle:M}=D(C,u,n,"fill"),A=100+y;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${f}-progress-graph-circle`),style:j({transform:g?`rotate(${g}deg)`:void 0})},[(o(),s("svg",{viewBox:`0 0 ${A} ${A}`},[N(()=>x()),r("g",null,[r("path",{class:w(`${f}-progress-graph-circle-rail`),d:O,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(V)},null,14,lt)]),r("g",null,[r("path",{class:w([`${f}-progress-graph-circle-fill`,C===0&&`${f}-progress-graph-circle-fill--empty`]),d:I,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(M)},null,14,nt)])],8,st))],6)],2),q?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),role:"none"},[N(()=>c.default())],2)):(o(),s(E,{key:1},[z!=="default"?(o(),s("div",{key:0,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>ct[z]},1032,["clsPrefix"]))],2)):(o(),s("div",{key:1,class:w(`${f}-progress-text`),style:j({color:h}),role:"none"},[r("span",{class:w(`${f}-progress-text__percentage`)},[N(()=>C)],2),r("span",{class:w(`${f}-progress-text__unit`)},[N(()=>B)],2)],6))],64))])):N(()=>null)],2)}}});const dt={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ft=H({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(t,{slots:c}){const k=W(()=>K(t.height)),D=W(()=>typeof t.fillColor=="object"?`linear-gradient(to right, ${t.fillColor?.stops[0]} , ${t.fillColor?.stops[1]})`:t.fillColor),x=W(()=>t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):""),n=W(()=>t.fillBorderRadius!==void 0?K(t.fillBorderRadius):t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:p,railColor:y,railStyle:u,percentage:z,unit:C,indicatorTextColor:q,status:h,showIndicator:B,processing:g,clsPrefix:f}=t;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w([`${f}-progress-graph-line`,{[`${f}-progress-graph-line--indicator-${p}`]:!0}])},[r("div",{class:w(`${f}-progress-graph-line-rail`),style:j([{backgroundColor:y,height:k.value,borderRadius:x.value},u])},[r("div",{class:w([`${f}-progress-graph-line-fill`,g&&`${f}-progress-graph-line-fill--processing`]),style:j({maxWidth:`${t.percentage}%`,background:D.value,height:k.value,lineHeight:k.value,borderRadius:n.value})},[p==="inside"?(o(),s("div",{key:0,class:w(`${f}-progress-graph-line-indicator`),style:j({color:q})},[c.default?(o(),s(E,{key:0},[N(()=>c.default())],64)):(o(),s(E,{key:1},[N(()=>`${z}${C}`)],64))],6)):N(()=>null)],6)],6)],2)],2),B&&p==="outside"?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),style:j({color:q}),role:"none"},[N(()=>c.default())],6)):(o(),s(E,{key:1},[h==="default"?(o(),s("div",{key:0,role:"none",class:w(`${f}-progress-icon ${f}-progress-icon--as-text`),style:j({color:q})},[N(()=>z),N(()=>C)],6)):(o(),s("div",{key:1,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>dt[h]},1032,["clsPrefix"]))],2))],64))])):N(()=>null)],2)}}});const pt=["id"],gt=["stop-color"],vt=["stop-color"],ht=["d","stroke-width"],yt=["d","stroke-width"],mt=["viewBox"];function be(t,c,k=100){return`m ${k/2} ${k/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var bt=H({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(t,{slots:c}){const k=W(()=>t.percentage.map((x,n)=>`${Math.PI*x/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*n)-t.circleGap*n)*2}, ${t.viewBoxWidth*8}`)),D=(x,n)=>{const p=t.fillColor[n],y=typeof p=="object"?p.stops[0]:"",u=typeof p=="object"?p.stops[1]:"";return typeof t.fillColor[n]=="object"&&(o(),s("linearGradient",{id:`gradient-${n}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},[r("stop",{offset:"0%","stop-color":y},null,8,gt),r("stop",{offset:"100%","stop-color":u},null,8,vt)],8,pt))};return()=>{const{viewBoxWidth:x,strokeWidth:n,circleGap:p,showIndicator:y,fillColor:u,railColor:z,railStyle:C,percentage:q,clsPrefix:h}=t;return o(),s("div",{class:w(`${h}-progress-content`),role:"none"},[r("div",{class:w(`${h}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${h}-progress-graph-circle`)},[(o(),s("svg",{viewBox:`0 0 ${x} ${x}`},[r("defs",null,[N(()=>q.map((B,g)=>D(B,g)))]),N(()=>q.map((B,g)=>(o(),s("g",{key:g},[r("path",{class:w(`${h}-progress-graph-circle-rail`),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j([{strokeDashoffset:0,stroke:z[g]},C[g]])},null,14,ht),r("path",{class:w([`${h}-progress-graph-circle-fill`,B===0&&`${h}-progress-graph-circle-fill--empty`]),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j({strokeDasharray:k.value[g],strokeDashoffset:0,stroke:typeof u[g]=="object"?`url(#gradient-${g})`:u[g]})},null,14,yt)]))))],8,mt))],2)],2),y&&c.default?(o(),s("div",{key:0},[r("div",{class:w(`${h}-progress-text`)},[N(()=>c.default())],2)])):N(()=>null)],2)}}}),wt=re([_("progress",{display:"inline-block"},[_("progress-icon",` + a ${h},${h} 0 1 1 0,${O}`,M=Math.PI*2*h;return{pathString:D,pathStyle:{stroke:u==="rail"?y:typeof t.fillColor=="object"?`url(#${k.value})`:y,strokeDasharray:`${Math.min(n,100)/100*(M-z)}px ${C*8}px`,strokeDashoffset:`-${z/2}px`,transformOrigin:p?"center":void 0,transform:p?`rotate(${p}deg)`:void 0}}}const x=()=>{const n=typeof t.fillColor=="object",p=n?t.fillColor.stops[0]:"",y=n?t.fillColor.stops[1]:"";return n&&(o(),s("defs",null,[r("linearGradient",{id:k.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[r("stop",{offset:"0%","stop-color":p},null,8,it),r("stop",{offset:"100%","stop-color":y},null,8,at)],8,ot)]))};return()=>{const{fillColor:n,railColor:p,strokeWidth:y,offsetDegree:u,status:z,percentage:C,showIndicator:q,indicatorTextColor:h,unit:B,gapOffsetDegree:g,clsPrefix:f}=t,{pathString:O,pathStyle:V}=I(100,0,p,"rail"),{pathString:D,pathStyle:M}=I(C,u,n,"fill"),A=100+y;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${f}-progress-graph-circle`),style:j({transform:g?`rotate(${g}deg)`:void 0})},[(o(),s("svg",{viewBox:`0 0 ${A} ${A}`},[N(()=>x()),r("g",null,[r("path",{class:w(`${f}-progress-graph-circle-rail`),d:O,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(V)},null,14,lt)]),r("g",null,[r("path",{class:w([`${f}-progress-graph-circle-fill`,C===0&&`${f}-progress-graph-circle-fill--empty`]),d:D,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(M)},null,14,nt)])],8,st))],6)],2),q?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),role:"none"},[N(()=>c.default())],2)):(o(),s(E,{key:1},[z!=="default"?(o(),s("div",{key:0,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>ct[z]},1032,["clsPrefix"]))],2)):(o(),s("div",{key:1,class:w(`${f}-progress-text`),style:j({color:h}),role:"none"},[r("span",{class:w(`${f}-progress-text__percentage`)},[N(()=>C)],2),r("span",{class:w(`${f}-progress-text__unit`)},[N(()=>B)],2)],6))],64))])):N(()=>null)],2)}}});const dt={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ft=H({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(t,{slots:c}){const k=W(()=>K(t.height)),I=W(()=>typeof t.fillColor=="object"?`linear-gradient(to right, ${t.fillColor?.stops[0]} , ${t.fillColor?.stops[1]})`:t.fillColor),x=W(()=>t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):""),n=W(()=>t.fillBorderRadius!==void 0?K(t.fillBorderRadius):t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:p,railColor:y,railStyle:u,percentage:z,unit:C,indicatorTextColor:q,status:h,showIndicator:B,processing:g,clsPrefix:f}=t;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w([`${f}-progress-graph-line`,{[`${f}-progress-graph-line--indicator-${p}`]:!0}])},[r("div",{class:w(`${f}-progress-graph-line-rail`),style:j([{backgroundColor:y,height:k.value,borderRadius:x.value},u])},[r("div",{class:w([`${f}-progress-graph-line-fill`,g&&`${f}-progress-graph-line-fill--processing`]),style:j({maxWidth:`${t.percentage}%`,background:I.value,height:k.value,lineHeight:k.value,borderRadius:n.value})},[p==="inside"?(o(),s("div",{key:0,class:w(`${f}-progress-graph-line-indicator`),style:j({color:q})},[c.default?(o(),s(E,{key:0},[N(()=>c.default())],64)):(o(),s(E,{key:1},[N(()=>`${z}${C}`)],64))],6)):N(()=>null)],6)],6)],2)],2),B&&p==="outside"?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),style:j({color:q}),role:"none"},[N(()=>c.default())],6)):(o(),s(E,{key:1},[h==="default"?(o(),s("div",{key:0,role:"none",class:w(`${f}-progress-icon ${f}-progress-icon--as-text`),style:j({color:q})},[N(()=>z),N(()=>C)],6)):(o(),s("div",{key:1,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>dt[h]},1032,["clsPrefix"]))],2))],64))])):N(()=>null)],2)}}});const pt=["id"],gt=["stop-color"],vt=["stop-color"],ht=["d","stroke-width"],yt=["d","stroke-width"],mt=["viewBox"];function be(t,c,k=100){return`m ${k/2} ${k/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var bt=H({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(t,{slots:c}){const k=W(()=>t.percentage.map((x,n)=>`${Math.PI*x/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*n)-t.circleGap*n)*2}, ${t.viewBoxWidth*8}`)),I=(x,n)=>{const p=t.fillColor[n],y=typeof p=="object"?p.stops[0]:"",u=typeof p=="object"?p.stops[1]:"";return typeof t.fillColor[n]=="object"&&(o(),s("linearGradient",{id:`gradient-${n}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},[r("stop",{offset:"0%","stop-color":y},null,8,gt),r("stop",{offset:"100%","stop-color":u},null,8,vt)],8,pt))};return()=>{const{viewBoxWidth:x,strokeWidth:n,circleGap:p,showIndicator:y,fillColor:u,railColor:z,railStyle:C,percentage:q,clsPrefix:h}=t;return o(),s("div",{class:w(`${h}-progress-content`),role:"none"},[r("div",{class:w(`${h}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${h}-progress-graph-circle`)},[(o(),s("svg",{viewBox:`0 0 ${x} ${x}`},[r("defs",null,[N(()=>q.map((B,g)=>I(B,g)))]),N(()=>q.map((B,g)=>(o(),s("g",{key:g},[r("path",{class:w(`${h}-progress-graph-circle-rail`),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j([{strokeDashoffset:0,stroke:z[g]},C[g]])},null,14,ht),r("path",{class:w([`${h}-progress-graph-circle-fill`,B===0&&`${h}-progress-graph-circle-fill--empty`]),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j({strokeDasharray:k.value[g],strokeDashoffset:0,stroke:typeof u[g]=="object"?`url(#gradient-${g})`:u[g]})},null,14,yt)]))))],8,mt))],2)],2),y&&c.default?(o(),s("div",{key:0},[r("div",{class:w(`${h}-progress-text`)},[N(()=>c.default())],2)])):N(()=>null)],2)}}}),wt=re([_("progress",{display:"inline-block"},[_("progress-icon",` color: var(--n-icon-color); transition: color .3s var(--n-bezier); `),X("line",` @@ -163,5 +163,5 @@ import{T as ee,S as pe}from"./Select-DlP0Rw4u.js";import{I as te}from"./Input-DO right: 0; opacity: 0; } - `)]);const kt=["aria-valuenow","role"],_t={...Se.props,processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number};var xt=H({name:"Progress",props:_t,setup(t){const c=W(()=>t.indicatorPlacement||t.indicatorPosition),k=W(()=>{if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),{mergedClsPrefixRef:D,inlineThemeDisabled:x}=Ee(t),n=Se("Progress","-progress",wt,Ge,t,D),p=W(()=>{const{status:u}=t,{common:{cubicBezierEaseInOut:z},self:{fontSize:C,fontSizeCircle:q,railColor:h,railHeight:B,iconSizeCircle:g,iconSizeLine:f,textColorCircle:O,textColorLineInner:V,textColorLineOuter:I,lineBgProcessing:M,fontWeightCircle:A,[ge("iconColor",u)]:Y,[ge("fillColor",u)]:U}}=n.value;return{"--n-bezier":z,"--n-fill-color":U,"--n-font-size":C,"--n-font-size-circle":q,"--n-font-weight-circle":A,"--n-icon-color":Y,"--n-icon-size-circle":g,"--n-icon-size-line":f,"--n-line-bg-processing":M,"--n-rail-color":h,"--n-rail-height":B,"--n-text-color-circle":O,"--n-text-color-line-inner":V,"--n-text-color-line-outer":I}}),y=x?Ue("progress",W(()=>t.status[0]),p,t):void 0;return{mergedClsPrefix:D,mergedIndicatorPlacement:c,gapDeg:k,cssVars:x?void 0:p,themeClass:y?.themeClass,onRender:y?.onRender}},render(){const{type:t,cssVars:c,indicatorTextColor:k,showIndicator:D,status:x,railColor:n,railStyle:p,color:y,percentage:u,viewBoxWidth:z,strokeWidth:C,mergedIndicatorPlacement:q,unit:h,borderRadius:B,fillBorderRadius:g,height:f,processing:O,circleGap:V,mergedClsPrefix:I,gapDeg:M,gapOffsetDegree:A,themeClass:Y,$slots:U,onRender:oe}=this;return oe?.(),o(),s("div",{class:w([Y,`${I}-progress`,`${I}-progress--${t}`,`${I}-progress--${x}`]),style:j(c),"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":u,role:t==="circle"||t==="line"||t==="dashboard"?"progressbar":"none"},[t==="circle"||t==="dashboard"?(o(),S(ut,{key:0,clsPrefix:I,status:x,showIndicator:D,indicatorTextColor:k,railColor:n,fillColor:y,railStyle:p,offsetDegree:this.offsetDegree,percentage:u,viewBoxWidth:z,strokeWidth:C,gapDegree:M===void 0?t==="dashboard"?75:0:M,gapOffsetDegree:A,unit:h},ue(U),1032,["clsPrefix","status","showIndicator","indicatorTextColor","railColor","fillColor","railStyle","offsetDegree","percentage","viewBoxWidth","strokeWidth","gapDegree","gapOffsetDegree","unit"])):(o(),s(E,{key:1},[t==="line"?(o(),S(ft,{key:0,clsPrefix:I,status:x,showIndicator:D,indicatorTextColor:k,railColor:n,fillColor:y,railStyle:p,percentage:u,processing:O,indicatorPlacement:q,unit:h,fillBorderRadius:g,railBorderRadius:B,height:f},ue(U),1032,["clsPrefix","status","showIndicator","indicatorTextColor","railColor","fillColor","railStyle","percentage","processing","indicatorPlacement","unit","fillBorderRadius","railBorderRadius","height"])):(o(),s(E,{key:1},[t==="multiple-circle"?(o(),S(bt,{key:0,clsPrefix:I,strokeWidth:C,railColor:n,fillColor:y,railStyle:p,viewBoxWidth:z,percentage:u,showIndicator:D,circleGap:V},ue(U),1032,["clsPrefix","strokeWidth","railColor","fillColor","railStyle","viewBoxWidth","percentage","showIndicator","circleGap"])):N(()=>null)],64))],64))],14,kt)}});const $t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ct=H({name:"CopyOutline",render:function(c,k){return o(),s("svg",$t,k[0]||(k[0]=[r("rect",{x:"128",y:"128",width:"336",height:"336",rx:"57",ry:"57",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),r("path",{d:"M383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},zt=H({name:"MusicalNotesOutline",render:function(c,k){return o(),s("svg",St,k[0]||(k[0]=[r("path",{d:"M192 218v-6c0-14.84 10-27 24.24-30.59l174.59-46.68A20 20 0 0 1 416 154v22",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),r("path",{d:"M416 295.94v80c0 13.91-8.93 25.59-22 30l-22 8c-25.9 8.72-52-10.42-52-38h0a33.37 33.37 0 0 1 23-32l51-18.15c13.07-4.4 22-15.94 22-29.85V58a10 10 0 0 0-12.6-9.61L204 102a16.48 16.48 0 0 0-12 16v226c0 13.91-8.93 25.6-22 30l-52 18c-13.88 4.68-22 17.22-22 32h0c0 27.58 26.52 46.55 52 38l22-8c13.07-4.4 22-16.08 22-30v-80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),we=t=>Q("/v1/shortvideo/parse",{text:t}),Pt=t=>Q("/v1/shortvideo/download",t),Bt=t=>Q("/v1/shortvideo/enumerate",{url:t}),Rt=t=>Q("/v1/shortvideo/batch",t),qt=()=>ze("/v1/shortvideo/tasks"),Nt=t=>Q(`/v1/shortvideo/tasks/${t}/cancel`),It=t=>Q(`/v1/shortvideo/tasks/${t}/retry`),Dt=()=>ze("/v1/shortvideo/cookie"),Ot=t=>Q("/v1/shortvideo/cookie",{cookie:t}),Tt=()=>Le("/v1/shortvideo/cookie"),Mt={class:"page"},Wt={class:"page-head"},Vt={class:"toolbar"},jt={class:"hero panel"},At={class:"hero-line"},Et={class:"hero-foot"},Ut={key:1,class:"result panel fade-up"},Gt={class:"result-main"},Lt=["src"],Xt={key:1,class:"cover placeholder"},Ft={class:"meta"},Yt={class:"title-row"},Ht={class:"sub"},Qt={class:"mono"},Jt={key:0},Kt={key:1},Zt={class:"actions"},er={class:"batch panel"},tr={class:"batch-source"},rr={class:"batch-actions"},or={key:0,class:"batch-list"},ir=["src"],ar={class:"batch-meta"},sr={class:"batch-title"},lr={class:"batch-sub"},nr={key:0},cr={key:1,class:"batch-error"},ur={class:"tasks"},dr={class:"section-head"},fr={key:0,class:"empty"},pr={class:"task-head"},gr={class:"task-title"},vr={class:"mono task-id"},hr={class:"task-actions"},yr={class:"task-progress"},mr={class:"task-numbers"},br={key:0,class:"task-error"},wr={class:"items"},kr={class:"item-label"},_r={key:0,class:"item-path mono"},xr={key:2,class:"item-error"},$r={class:"cookie-status"},Cr={key:0},Sr={class:"cookie-actions"},zr=H({__name:"ShortVideoView",setup(t){const c=Je(),k={value:!1};function D(){try{return window.sessionStorage.getItem("shortvideo_authorized")==="1"}catch{return k.value}}function x(a){k.value=a;try{a?window.sessionStorage.setItem("shortvideo_authorized","1"):window.sessionStorage.removeItem("shortvideo_authorized")}catch{}}const n=P(D()),p=P(""),y=P(!1),u=P(null),z=P(""),C=P([]),q=P(!1),h=P(!1),B=P(""),g=P(null),f=P(""),O=P([]),V=P(!1),I=P(!1),M=P(""),A=P(""),Y=P(!1);let U;const oe=W(()=>(u.value?.qualities??[]).map(a=>({label:a.bitrate>0?`${a.label} · ${Math.round(a.bitrate/1e3)} kbps`:a.label,value:a.label}))),Pe=W(()=>C.value.filter(a=>a.status==="running"||a.status==="pending")),fe=W(()=>(O.value.find(e=>e.view?.qualities.length)?.view?.qualities??[]).map(e=>({label:e.bitrate>0?`${e.label} · ${Math.round(e.bitrate/1e3)} kbps`:e.label,value:e.label})));function Be(a){n.value=a,x(a)}async function Re(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}if(!p.value.trim()){c.warning("请粘贴抖音分享链接或分享文案");return}y.value=!0,u.value=null;try{const a=await we(p.value.trim());u.value=a,z.value=a.qualities[0]?.label??""}catch(a){c.error(a instanceof Error?a.message:"解析失败")}finally{y.value=!1}}async function ie(a){if(u.value){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}try{const e=await Pt({aweme_id:u.value.aweme_id,quality:z.value,parts:a});c.success(`已创建下载任务 #${e.task_id}`),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"创建任务失败")}}}async function qe(){const a=f.value.split(/\r?\n/).map(m=>m.trim()).filter(Boolean).slice(0,20);if(!a.length){c.warning("请每行粘贴一条抖音作品链接");return}V.value=!0;const e=[];for(const m of a)try{const G=await we(m);e.push({link:m,view:G,selected:!0})}catch(G){e.push({link:m,error:G instanceof Error?G.message:"解析失败",selected:!1})}O.value=e;const i=e.find(m=>m.view?.qualities.length)?.view;i?.qualities[0]&&(M.value=i.qualities[0].label),V.value=!1}async function Ne(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}if(!A.value.trim()){c.warning("请粘贴抖音主页或合集链接");return}Y.value=!0;try{const a=await Bt(A.value.trim());if(!a.items.length){c.warning("没有抓到作品,可能需要先在抖音完成登录/验证,或页面尚未加载完");return}const e=20;O.value=a.items.map((i,m)=>{const G=i.kind==="note"?"images":"video";return{link:`https://www.douyin.com/${i.kind==="note"?"note":"video"}/${i.aweme_id}`,selected:me?`已枚举 ${a.items.length} 条作品,只默认勾选前 ${e} 条(后端一次最多 20 条),其余请分批提交`:`已枚举 ${a.items.length} 条作品,请勾选后开始批量下载`)}catch(a){c.error(a instanceof Error?a.message:"自动枚举失败")}finally{Y.value=!1}}async function Ie(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}const a=O.value.filter(e=>e.selected&&e.view).map(e=>e.link);if(!a.length){c.warning("请至少选择一条可下载的作品");return}I.value=!0;try{const e=await Rt({links:a,quality:M.value||"highest"});c.success(`已创建批量任务,共 ${e.task_ids.length} 条`),e.errors.length&&c.warning(`${e.errors.length} 条失败,见任务列表`),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"批量下载失败")}finally{I.value=!1}}let ae=!1,se=!1,Z=!1;async function L(a=!1){if(!Z){if(ae){a&&(se=!0);return}ae=!0,q.value=!0;try{C.value=await qt()}catch{}finally{ae=!1,q.value=!1,se&&!Z&&(se=!1,L(!0))}}}const le=P(new Set),ne=P(new Set);async function De(a){if(!le.value.has(a.id)){le.value.add(a.id);try{await Nt(a.id),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"取消失败")}finally{le.value.delete(a.id)}}}async function Oe(a){if(!ne.value.has(a.id)){ne.value.add(a.id);try{await It(a.id),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"重试失败")}finally{ne.value.delete(a.id)}}}async function Te(a){if(a)try{await navigator.clipboard.writeText(a),c.success("路径已复制")}catch{c.error("复制失败,请手动选择路径")}}async function Me(){try{g.value=await Dt()}catch{g.value=null}}const J=P(!1);async function We(){if(!J.value){if(!B.value.trim()){c.warning("请粘贴 Cookie");return}J.value=!0;try{g.value=await Ot(B.value.trim()),B.value="",c.success("Cookie 已保存")}catch(a){c.error(a instanceof Error?a.message:"保存失败")}finally{J.value=!1}}}async function Ve(){if(!J.value){J.value=!0;try{g.value=await Tt(),c.success("Cookie 已清除")}catch(a){c.error(a instanceof Error?a.message:"清除失败")}finally{J.value=!1}}}function ce(a){switch(a){case"running":return{label:"下载中",type:"info"};case"pending":return{label:"排队中",type:"default"};case"done":return{label:"已完成",type:"success"};case"failed":return{label:"失败",type:"error"};case"cancelled":return{label:"已取消",type:"warning"};default:return{label:a,type:"default"}}}function je(a){if(!a)return"—";const e=Math.floor(a/1e3);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}return Xe(async()=>{await Promise.all([L(),Me()]),!Z&&(U=window.setInterval(()=>{document.visibilityState==="visible"&&(Pe.value.length>0||C.value.some(a=>a.status==="pending"))&&L()},2e3))}),Fe(()=>{Z=!0,U&&window.clearInterval(U)}),(a,e)=>(o(),s("div",Mt,[r("div",Wt,[e[13]||(e[13]=r("div",null,[r("h1",{class:"page-title"},"作品备份"),r("p",{class:"page-sub"},"抖音单条视频、图集、原声下载 · 仅限本人作品或已获授权的内容")],-1)),r("div",Vt,[d(l(ee),{size:"small",round:"",bordered:!1,type:g.value?.has_cookie?"success":"default"},{default:v(()=>[$(b(g.value?.has_cookie?"Cookie 已导入":"自动签名"),1)]),_:1},8,["type"]),d(l(T),{quaternary:"",size:"small",onClick:e[0]||(e[0]=i=>h.value=!0)},{default:v(()=>[...e[12]||(e[12]=[$("Cookie 设置",-1)])]),_:1})])]),r("section",jt,[r("div",At,[d(l(F),{size:18,class:"hero-icon"},{default:v(()=>[d(l(Ze))]),_:1}),e[14]||(e[14]=r("span",null,"粘贴抖音分享链接或整段分享文案",-1))]),d(l(te),{value:p.value,"onUpdate:value":e[1]||(e[1]=i=>p.value=i),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"例如:7.43 复制打开抖音,看看【...】 https://v.douyin.com/xxxxxx/",disabled:!n.value},null,8,["value","disabled"]),r("div",Et,[d(l(ve),{checked:n.value,"onUpdate:checked":Be},{default:v(()=>[...e[15]||(e[15]=[$(" 我确认这是本人作品,或已取得权利人授权,仅用于个人备份 ",-1)])]),_:1},8,["checked"]),d(l(T),{type:"primary",loading:y.value,disabled:!n.value,onClick:Re},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(et))]),_:1})]),default:v(()=>[e[16]||(e[16]=$(" 解析 ",-1))]),_:1},8,["loading","disabled"])])]),y.value?(o(),S(l(Ke),{key:0,size:"large",class:"loading"})):u.value?(o(),s("section",Ut,[r("div",Gt,[u.value.cover?(o(),s("img",{key:0,class:"cover",src:u.value.cover,alt:"",referrerpolicy:"no-referrer"},null,8,Lt)):(o(),s("div",Xt,[d(l(F),{size:30},{default:v(()=>[d(l(tt))]),_:1})])),r("div",Ft,[r("div",Yt,[r("h2",null,b(u.value.title),1),d(l(ee),{size:"small",bordered:!1,type:u.value.kind==="images"?"warning":"info"},{default:v(()=>[$(b(u.value.kind==="images"?`图集 ${u.value.image_count} 张`:"视频"),1)]),_:1},8,["type"])]),r("div",Ht,[r("span",null,b(u.value.author),1),r("span",Qt,b(u.value.aweme_id),1),u.value.duration_ms?(o(),s("span",Jt,"时长 "+b(je(u.value.duration_ms)),1)):R("",!0),u.value.create_time?(o(),s("span",Kt,b(l(he)(u.value.create_time*1e3)),1)):R("",!0)]),r("div",Zt,[u.value.kind==="video"?(o(),s(E,{key:0},[d(l(pe),{value:z.value,"onUpdate:value":e[2]||(e[2]=i=>z.value=i),class:"quality",options:oe.value,placeholder:"选择画质"},null,8,["value","options"]),d(l(T),{type:"primary",onClick:e[3]||(e[3]=i=>ie(["video"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(me))]),_:1})]),default:v(()=>[e[17]||(e[17]=$(" 下载视频 ",-1))]),_:1})],64)):(o(),S(l(T),{key:1,type:"primary",onClick:e[4]||(e[4]=i=>ie(["images"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(me))]),_:1})]),default:v(()=>[e[18]||(e[18]=$(" 下载全部图片 ",-1))]),_:1})),u.value.has_audio?(o(),S(l(T),{key:2,secondary:"",onClick:e[5]||(e[5]=i=>ie(["audio"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(zt))]),_:1})]),default:v(()=>[e[19]||(e[19]=$(" 下载音频 ",-1))]),_:1})):R("",!0)])])])])):R("",!0),r("section",er,[e[23]||(e[23]=r("div",{class:"section-head"},[r("h2",null,"批量链接"),r("span",{class:"batch-hint"},"一行一条,最多 20 条;主页/合集请先展开成作品链接")],-1)),r("div",tr,[d(l(te),{value:A.value,"onUpdate:value":e[6]||(e[6]=i=>A.value=i),placeholder:"粘贴抖音主页或合集链接,桌面版自动枚举",clearable:""},null,8,["value"]),d(l(T),{loading:Y.value,disabled:!n.value,onClick:Ne},{default:v(()=>[...e[20]||(e[20]=[$(" 自动枚举 ",-1)])]),_:1},8,["loading","disabled"])]),e[24]||(e[24]=r("p",{class:"batch-tip"}," 桌面版会用隐藏浏览器抓取作品;服务器部署不支持自动枚举,请直接粘贴作品链接。 ",-1)),d(l(te),{value:f.value,"onUpdate:value":e[7]||(e[7]=i=>f.value=i),type:"textarea",autosize:{minRows:3,maxRows:8},placeholder:`https://www.douyin.com/video/... -https://www.douyin.com/video/...`,disabled:!n.value},null,8,["value","disabled"]),r("div",rr,[d(l(T),{loading:V.value,disabled:!n.value,onClick:qe},{default:v(()=>[...e[21]||(e[21]=[$(" 解析链接 ",-1)])]),_:1},8,["loading","disabled"]),fe.value.length?(o(),S(l(pe),{key:0,value:M.value,"onUpdate:value":e[8]||(e[8]=i=>M.value=i),class:"quality",options:fe.value},null,8,["value","options"])):R("",!0),d(l(T),{type:"primary",loading:I.value,disabled:!n.value||!O.value.some(i=>i.selected&&i.view),onClick:Ie},{default:v(()=>[...e[22]||(e[22]=[$(" 开始批量下载 ",-1)])]),_:1},8,["loading","disabled"])]),O.value.length?(o(),s("div",or,[(o(!0),s(E,null,de(O.value,(i,m)=>(o(),s("label",{key:m,class:"batch-entry"},[d(l(ve),{checked:i.selected,"onUpdate:checked":G=>i.selected=G,disabled:!i.view},null,8,["checked","onUpdate:checked","disabled"]),i.view?.cover?(o(),s("img",{key:0,src:i.view.cover,alt:"",referrerpolicy:"no-referrer"},null,8,ir)):R("",!0),r("span",ar,[r("span",sr,b(i.view?.title||i.link),1),r("span",lr,[$(b(i.view?.author||"")+" ",1),i.view?.kind==="images"?(o(),s("span",nr," · 图集 "+b(i.view.image_count)+" 张 ",1)):R("",!0),i.error?(o(),s("span",cr,"· "+b(i.error),1)):R("",!0)])])]))),128))])):R("",!0)]),r("section",ur,[r("div",dr,[e[25]||(e[25]=r("h2",null,"下载任务",-1)),d(l(T),{quaternary:"",circle:"",loading:q.value,"aria-label":"刷新",onClick:e[9]||(e[9]=i=>L(!0))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(rt))]),_:1})]),_:1},8,["loading"])]),C.value.length===0?(o(),s("div",fr,"还没有下载任务。解析作品后点击下载即可。")):R("",!0),(o(!0),s(E,null,de(C.value,i=>(o(),s("article",{key:i.id,class:"task panel"},[r("div",pr,[r("div",gr,[r("span",vr,"#"+b(i.id),1),r("span",null,b(i.title),1),d(l(ee),{size:"tiny",type:ce(i.status).type,bordered:!1},{default:v(()=>[$(b(ce(i.status).label),1)]),_:2},1032,["type"]),i.batch_id?(o(),S(l(ee),{key:0,size:"tiny",bordered:!1},{default:v(()=>[$(b(i.batch_title||"批量"),1)]),_:2},1024)):R("",!0)]),r("div",hr,[i.status==="running"||i.status==="pending"?(o(),S(l(T),{key:0,size:"tiny",quaternary:"",onClick:m=>De(i)},{default:v(()=>[...e[26]||(e[26]=[$(" 取消 ",-1)])]),_:1},8,["onClick"])):R("",!0),i.status==="failed"||i.status==="cancelled"?(o(),S(l(T),{key:1,size:"tiny",quaternary:"",onClick:m=>Oe(i)},{default:v(()=>[...e[27]||(e[27]=[$(" 重试 ",-1)])]),_:1},8,["onClick"])):R("",!0)])]),r("div",yr,[d(l(xt),{type:"line",percentage:i.total?Math.round(i.done/i.total*100):0,status:i.status==="failed"?"error":i.status==="done"?"success":"default","show-indicator":!1},null,8,["percentage","status"]),r("span",mr,b(i.done)+"/"+b(i.total)+" · "+b(l(ye)(i.bytes)),1)]),i.error?(o(),s("div",br,b(i.error),1)):R("",!0),r("div",wr,[(o(!0),s(E,null,de(i.items,m=>(o(),s("div",{key:m.seq,class:"item"},[r("span",kr,b(m.label),1),r("span",{class:He(["item-status",m.status])},[$(b(ce(m.status).label)+" ",1),m.bytes?(o(),s(E,{key:0},[$(" · "+b(l(ye)(m.bytes)),1)],64)):R("",!0)],2),m.file_path?(o(),s("span",_r,b(m.file_path),1)):R("",!0),m.file_path?(o(),S(l(T),{key:1,size:"tiny",quaternary:"",onClick:G=>Te(m.file_path)},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(Ct))]),_:1})]),default:v(()=>[e[28]||(e[28]=$(" 复制路径 ",-1))]),_:1},8,["onClick"])):R("",!0),m.error?(o(),s("span",xr,b(m.error),1)):R("",!0)]))),128))])]))),128))]),d(l(Ye),{show:h.value,"onUpdate:show":e[11]||(e[11]=i=>h.value=i),preset:"card",style:{width:"560px",maxWidth:"92vw"}},{header:v(()=>[...e[29]||(e[29]=[$("抖音 Cookie(可选)",-1)])]),default:v(()=>[e[32]||(e[32]=r("p",{class:"cookie-hint"}," 通常不需要手动导入。遇到 403、需要登录态或批量受限时,可从浏览器开发者工具复制 `www.douyin.com` 的 Cookie 粘贴到这里。Cookie 只保存在本机,不会回显。 ",-1)),r("div",$r,[r("span",null,"状态:"+b(g.value?.has_cookie?"已导入":"未导入"),1),g.value?.updated_at?(o(),s("span",Cr,"更新于 "+b(l(he)(g.value.updated_at*1e3)),1)):R("",!0)]),d(l(te),{value:B.value,"onUpdate:value":e[10]||(e[10]=i=>B.value=i),type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"ttwid=...; UIFID=..."},null,8,["value"]),r("div",Sr,[d(l(T),{quaternary:"",onClick:Ve},{default:v(()=>[...e[30]||(e[30]=[$("清除 Cookie",-1)])]),_:1}),d(l(T),{type:"primary",onClick:We},{default:v(()=>[...e[31]||(e[31]=[$("保存 Cookie",-1)])]),_:1})])]),_:1},8,["show"])]))}}),Er=Qe(zr,[["__scopeId","data-v-1e0a3edb"]]);export{Er as default}; + `)]);const kt=["aria-valuenow","role"],_t={...Se.props,processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number};var xt=H({name:"Progress",props:_t,setup(t){const c=W(()=>t.indicatorPlacement||t.indicatorPosition),k=W(()=>{if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),{mergedClsPrefixRef:I,inlineThemeDisabled:x}=Ee(t),n=Se("Progress","-progress",wt,Ge,t,I),p=W(()=>{const{status:u}=t,{common:{cubicBezierEaseInOut:z},self:{fontSize:C,fontSizeCircle:q,railColor:h,railHeight:B,iconSizeCircle:g,iconSizeLine:f,textColorCircle:O,textColorLineInner:V,textColorLineOuter:D,lineBgProcessing:M,fontWeightCircle:A,[ge("iconColor",u)]:Y,[ge("fillColor",u)]:U}}=n.value;return{"--n-bezier":z,"--n-fill-color":U,"--n-font-size":C,"--n-font-size-circle":q,"--n-font-weight-circle":A,"--n-icon-color":Y,"--n-icon-size-circle":g,"--n-icon-size-line":f,"--n-line-bg-processing":M,"--n-rail-color":h,"--n-rail-height":B,"--n-text-color-circle":O,"--n-text-color-line-inner":V,"--n-text-color-line-outer":D}}),y=x?Ue("progress",W(()=>t.status[0]),p,t):void 0;return{mergedClsPrefix:I,mergedIndicatorPlacement:c,gapDeg:k,cssVars:x?void 0:p,themeClass:y?.themeClass,onRender:y?.onRender}},render(){const{type:t,cssVars:c,indicatorTextColor:k,showIndicator:I,status:x,railColor:n,railStyle:p,color:y,percentage:u,viewBoxWidth:z,strokeWidth:C,mergedIndicatorPlacement:q,unit:h,borderRadius:B,fillBorderRadius:g,height:f,processing:O,circleGap:V,mergedClsPrefix:D,gapDeg:M,gapOffsetDegree:A,themeClass:Y,$slots:U,onRender:oe}=this;return oe?.(),o(),s("div",{class:w([Y,`${D}-progress`,`${D}-progress--${t}`,`${D}-progress--${x}`]),style:j(c),"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":u,role:t==="circle"||t==="line"||t==="dashboard"?"progressbar":"none"},[t==="circle"||t==="dashboard"?(o(),S(ut,{key:0,clsPrefix:D,status:x,showIndicator:I,indicatorTextColor:k,railColor:n,fillColor:y,railStyle:p,offsetDegree:this.offsetDegree,percentage:u,viewBoxWidth:z,strokeWidth:C,gapDegree:M===void 0?t==="dashboard"?75:0:M,gapOffsetDegree:A,unit:h},ue(U),1032,["clsPrefix","status","showIndicator","indicatorTextColor","railColor","fillColor","railStyle","offsetDegree","percentage","viewBoxWidth","strokeWidth","gapDegree","gapOffsetDegree","unit"])):(o(),s(E,{key:1},[t==="line"?(o(),S(ft,{key:0,clsPrefix:D,status:x,showIndicator:I,indicatorTextColor:k,railColor:n,fillColor:y,railStyle:p,percentage:u,processing:O,indicatorPlacement:q,unit:h,fillBorderRadius:g,railBorderRadius:B,height:f},ue(U),1032,["clsPrefix","status","showIndicator","indicatorTextColor","railColor","fillColor","railStyle","percentage","processing","indicatorPlacement","unit","fillBorderRadius","railBorderRadius","height"])):(o(),s(E,{key:1},[t==="multiple-circle"?(o(),S(bt,{key:0,clsPrefix:D,strokeWidth:C,railColor:n,fillColor:y,railStyle:p,viewBoxWidth:z,percentage:u,showIndicator:I,circleGap:V},ue(U),1032,["clsPrefix","strokeWidth","railColor","fillColor","railStyle","viewBoxWidth","percentage","showIndicator","circleGap"])):N(()=>null)],64))],64))],14,kt)}});const $t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ct=H({name:"CopyOutline",render:function(c,k){return o(),s("svg",$t,k[0]||(k[0]=[r("rect",{x:"128",y:"128",width:"336",height:"336",rx:"57",ry:"57",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),r("path",{d:"M383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},zt=H({name:"MusicalNotesOutline",render:function(c,k){return o(),s("svg",St,k[0]||(k[0]=[r("path",{d:"M192 218v-6c0-14.84 10-27 24.24-30.59l174.59-46.68A20 20 0 0 1 416 154v22",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),r("path",{d:"M416 295.94v80c0 13.91-8.93 25.59-22 30l-22 8c-25.9 8.72-52-10.42-52-38h0a33.37 33.37 0 0 1 23-32l51-18.15c13.07-4.4 22-15.94 22-29.85V58a10 10 0 0 0-12.6-9.61L204 102a16.48 16.48 0 0 0-12 16v226c0 13.91-8.93 25.6-22 30l-52 18c-13.88 4.68-22 17.22-22 32h0c0 27.58 26.52 46.55 52 38l22-8c13.07-4.4 22-16.08 22-30v-80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),we=t=>Q("/v1/shortvideo/parse",{text:t}),Pt=t=>Q("/v1/shortvideo/download",t),Bt=t=>Q("/v1/shortvideo/enumerate",{url:t}),Rt=t=>Q("/v1/shortvideo/batch",t),qt=()=>ze("/v1/shortvideo/tasks"),Nt=t=>Q(`/v1/shortvideo/tasks/${t}/cancel`),Dt=t=>Q(`/v1/shortvideo/tasks/${t}/retry`),It=()=>ze("/v1/shortvideo/cookie"),Ot=t=>Q("/v1/shortvideo/cookie",{cookie:t}),Tt=()=>Le("/v1/shortvideo/cookie"),Mt={class:"page"},Wt={class:"page-head"},Vt={class:"toolbar"},jt={class:"hero panel"},At={class:"hero-line"},Et={class:"hero-foot"},Ut={key:1,class:"result panel fade-up"},Gt={class:"result-main"},Lt=["src"],Xt={key:1,class:"cover placeholder"},Ft={class:"meta"},Yt={class:"title-row"},Ht={class:"sub"},Qt={class:"mono"},Jt={key:0},Kt={key:1},Zt={class:"actions"},er={class:"batch panel"},tr={class:"batch-source"},rr={class:"batch-actions"},or={key:0,class:"batch-list"},ir=["src"],ar={class:"batch-meta"},sr={class:"batch-title"},lr={class:"batch-sub"},nr={key:0},cr={key:1,class:"batch-error"},ur={class:"tasks"},dr={class:"section-head"},fr={key:0,class:"empty"},pr={class:"task-head"},gr={class:"task-title"},vr={class:"mono task-id"},hr={class:"task-actions"},yr={class:"task-progress"},mr={class:"task-numbers"},br={key:0,class:"task-error"},wr={class:"items"},kr={class:"item-label"},_r={key:0,class:"item-path mono"},xr={key:2,class:"item-error"},$r={class:"cookie-status"},Cr={key:0},Sr={class:"cookie-actions"},zr=H({__name:"ShortVideoView",setup(t){const c=Je(),k={value:!1};function I(){try{return window.sessionStorage.getItem("shortvideo_authorized")==="1"}catch{return k.value}}function x(a){k.value=a;try{a?window.sessionStorage.setItem("shortvideo_authorized","1"):window.sessionStorage.removeItem("shortvideo_authorized")}catch{}}const n=P(I()),p=P(""),y=P(!1),u=P(null),z=P(""),C=P([]),q=P(!1),h=P(!1),B=P(""),g=P(null),f=P(""),O=P([]),V=P(!1),D=P(!1),M=P(""),A=P(""),Y=P(!1);let U;const oe=W(()=>(u.value?.qualities??[]).map(a=>({label:a.bitrate>0?`${a.label} · ${Math.round(a.bitrate/1e3)} kbps`:a.label,value:a.label}))),Pe=W(()=>C.value.filter(a=>a.status==="running"||a.status==="pending")),fe=W(()=>(O.value.find(e=>e.view?.qualities.length)?.view?.qualities??[]).map(e=>({label:e.bitrate>0?`${e.label} · ${Math.round(e.bitrate/1e3)} kbps`:e.label,value:e.label})));function Be(a){n.value=a,x(a)}async function Re(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}if(!p.value.trim()){c.warning("请粘贴抖音分享链接或分享文案");return}y.value=!0,u.value=null;try{const a=await we(p.value.trim());u.value=a,z.value=a.qualities[0]?.label??""}catch(a){c.error(a instanceof Error?a.message:"解析失败")}finally{y.value=!1}}async function ie(a){if(u.value){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}try{const e=await Pt({aweme_id:u.value.aweme_id,quality:z.value,parts:a});c.success(`已创建下载任务 #${e.task_id}`),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"创建任务失败")}}}async function qe(){const a=f.value.split(/\r?\n/).map(m=>m.trim()).filter(Boolean).slice(0,20);if(!a.length){c.warning("请每行粘贴一条抖音作品链接");return}V.value=!0;const e=[];for(const m of a)try{const G=await we(m);e.push({link:m,view:G,selected:!0})}catch(G){e.push({link:m,error:G instanceof Error?G.message:"解析失败",selected:!1})}O.value=e;const i=e.find(m=>m.view?.qualities.length)?.view;i?.qualities[0]&&(M.value=i.qualities[0].label),V.value=!1}async function Ne(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}if(!A.value.trim()){c.warning("请粘贴抖音主页或合集链接");return}Y.value=!0;try{const a=await Bt(A.value.trim());if(!a.items.length){c.warning("没有抓到作品,可能需要先在抖音完成登录/验证,或页面尚未加载完");return}const e=20;O.value=a.items.map((i,m)=>{const G=i.kind==="note"?"images":"video";return{link:`https://www.douyin.com/${i.kind==="note"?"note":"video"}/${i.aweme_id}`,selected:me?`已枚举 ${a.items.length} 条作品,只默认勾选前 ${e} 条(后端一次最多 20 条),其余请分批提交`:`已枚举 ${a.items.length} 条作品,请勾选后开始批量下载`)}catch(a){c.error(a instanceof Error?a.message:"自动枚举失败")}finally{Y.value=!1}}async function De(){if(!n.value){c.warning("请先确认内容为本人作品或已获得授权");return}const a=O.value.filter(e=>e.selected&&e.view).map(e=>e.link);if(!a.length){c.warning("请至少选择一条可下载的作品");return}D.value=!0;try{const e=await Rt({links:a,quality:M.value||"highest"});c.success(`已创建批量任务,共 ${e.task_ids.length} 条`),e.errors.length&&c.warning(`${e.errors.length} 条失败,见任务列表`),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"批量下载失败")}finally{D.value=!1}}let ae=!1,se=!1,Z=!1;async function L(a=!1){if(!Z){if(ae){a&&(se=!0);return}ae=!0,q.value=!0;try{C.value=await qt()}catch{}finally{ae=!1,q.value=!1,se&&!Z&&(se=!1,L(!0))}}}const le=P(new Set),ne=P(new Set);async function Ie(a){if(!le.value.has(a.id)){le.value.add(a.id);try{await Nt(a.id),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"取消失败")}finally{le.value.delete(a.id)}}}async function Oe(a){if(!ne.value.has(a.id)){ne.value.add(a.id);try{await Dt(a.id),await L(!0)}catch(e){c.error(e instanceof Error?e.message:"重试失败")}finally{ne.value.delete(a.id)}}}async function Te(a){if(a)try{await navigator.clipboard.writeText(a),c.success("路径已复制")}catch{c.error("复制失败,请手动选择路径")}}async function Me(){try{g.value=await It()}catch{g.value=null}}const J=P(!1);async function We(){if(!J.value){if(!B.value.trim()){c.warning("请粘贴 Cookie");return}J.value=!0;try{g.value=await Ot(B.value.trim()),B.value="",c.success("Cookie 已保存")}catch(a){c.error(a instanceof Error?a.message:"保存失败")}finally{J.value=!1}}}async function Ve(){if(!J.value){J.value=!0;try{g.value=await Tt(),c.success("Cookie 已清除")}catch(a){c.error(a instanceof Error?a.message:"清除失败")}finally{J.value=!1}}}function ce(a){switch(a){case"running":return{label:"下载中",type:"info"};case"pending":return{label:"排队中",type:"default"};case"done":return{label:"已完成",type:"success"};case"failed":return{label:"失败",type:"error"};case"cancelled":return{label:"已取消",type:"warning"};default:return{label:a,type:"default"}}}function je(a){if(!a)return"—";const e=Math.floor(a/1e3);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}return Xe(async()=>{await Promise.all([L(),Me()]),!Z&&(U=window.setInterval(()=>{document.visibilityState==="visible"&&(Pe.value.length>0||C.value.some(a=>a.status==="pending"))&&L()},2e3))}),Fe(()=>{Z=!0,U&&window.clearInterval(U)}),(a,e)=>(o(),s("div",Mt,[r("div",Wt,[e[13]||(e[13]=r("div",null,[r("h1",{class:"page-title"},"作品备份"),r("p",{class:"page-sub"},"抖音单条视频、图集、原声下载 · 仅限本人作品或已获授权的内容")],-1)),r("div",Vt,[d(l(ee),{size:"small",round:"",bordered:!1,type:g.value?.has_cookie?"success":"default"},{default:v(()=>[$(b(g.value?.has_cookie?"Cookie 已导入":"自动签名"),1)]),_:1},8,["type"]),d(l(T),{quaternary:"",size:"small",onClick:e[0]||(e[0]=i=>h.value=!0)},{default:v(()=>[...e[12]||(e[12]=[$("Cookie 设置",-1)])]),_:1})])]),r("section",jt,[r("div",At,[d(l(F),{size:18,class:"hero-icon"},{default:v(()=>[d(l(Ze))]),_:1}),e[14]||(e[14]=r("span",null,"粘贴抖音分享链接或整段分享文案",-1))]),d(l(te),{value:p.value,"onUpdate:value":e[1]||(e[1]=i=>p.value=i),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"例如:7.43 复制打开抖音,看看【...】 https://v.douyin.com/xxxxxx/",disabled:!n.value},null,8,["value","disabled"]),r("div",Et,[d(l(ve),{checked:n.value,"onUpdate:checked":Be},{default:v(()=>[...e[15]||(e[15]=[$(" 我确认这是本人作品,或已取得权利人授权,仅用于个人备份 ",-1)])]),_:1},8,["checked"]),d(l(T),{type:"primary",loading:y.value,disabled:!n.value,onClick:Re},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(et))]),_:1})]),default:v(()=>[e[16]||(e[16]=$(" 解析 ",-1))]),_:1},8,["loading","disabled"])])]),y.value?(o(),S(l(Ke),{key:0,size:"large",class:"loading"})):u.value?(o(),s("section",Ut,[r("div",Gt,[u.value.cover?(o(),s("img",{key:0,class:"cover",src:u.value.cover,alt:"",referrerpolicy:"no-referrer"},null,8,Lt)):(o(),s("div",Xt,[d(l(F),{size:30},{default:v(()=>[d(l(tt))]),_:1})])),r("div",Ft,[r("div",Yt,[r("h2",null,b(u.value.title),1),d(l(ee),{size:"small",bordered:!1,type:u.value.kind==="images"?"warning":"info"},{default:v(()=>[$(b(u.value.kind==="images"?`图集 ${u.value.image_count} 张`:"视频"),1)]),_:1},8,["type"])]),r("div",Ht,[r("span",null,b(u.value.author),1),r("span",Qt,b(u.value.aweme_id),1),u.value.duration_ms?(o(),s("span",Jt,"时长 "+b(je(u.value.duration_ms)),1)):R("",!0),u.value.create_time?(o(),s("span",Kt,b(l(he)(u.value.create_time*1e3)),1)):R("",!0)]),r("div",Zt,[u.value.kind==="video"?(o(),s(E,{key:0},[d(l(pe),{value:z.value,"onUpdate:value":e[2]||(e[2]=i=>z.value=i),class:"quality",options:oe.value,placeholder:"选择画质"},null,8,["value","options"]),d(l(T),{type:"primary",onClick:e[3]||(e[3]=i=>ie(["video"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(me))]),_:1})]),default:v(()=>[e[17]||(e[17]=$(" 下载视频 ",-1))]),_:1})],64)):(o(),S(l(T),{key:1,type:"primary",onClick:e[4]||(e[4]=i=>ie(["images"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(me))]),_:1})]),default:v(()=>[e[18]||(e[18]=$(" 下载全部图片 ",-1))]),_:1})),u.value.has_audio?(o(),S(l(T),{key:2,secondary:"",onClick:e[5]||(e[5]=i=>ie(["audio"]))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(zt))]),_:1})]),default:v(()=>[e[19]||(e[19]=$(" 下载音频 ",-1))]),_:1})):R("",!0)])])])])):R("",!0),r("section",er,[e[23]||(e[23]=r("div",{class:"section-head"},[r("h2",null,"批量链接"),r("span",{class:"batch-hint"},"一行一条,最多 20 条;主页/合集请先展开成作品链接")],-1)),r("div",tr,[d(l(te),{value:A.value,"onUpdate:value":e[6]||(e[6]=i=>A.value=i),placeholder:"粘贴抖音主页或合集链接,桌面版自动枚举",clearable:""},null,8,["value"]),d(l(T),{loading:Y.value,disabled:!n.value,onClick:Ne},{default:v(()=>[...e[20]||(e[20]=[$(" 自动枚举 ",-1)])]),_:1},8,["loading","disabled"])]),e[24]||(e[24]=r("p",{class:"batch-tip"}," 桌面版会用隐藏浏览器抓取作品;服务器部署不支持自动枚举,请直接粘贴作品链接。 ",-1)),d(l(te),{value:f.value,"onUpdate:value":e[7]||(e[7]=i=>f.value=i),type:"textarea",autosize:{minRows:3,maxRows:8},placeholder:`https://www.douyin.com/video/... +https://www.douyin.com/video/...`,disabled:!n.value},null,8,["value","disabled"]),r("div",rr,[d(l(T),{loading:V.value,disabled:!n.value,onClick:qe},{default:v(()=>[...e[21]||(e[21]=[$(" 解析链接 ",-1)])]),_:1},8,["loading","disabled"]),fe.value.length?(o(),S(l(pe),{key:0,value:M.value,"onUpdate:value":e[8]||(e[8]=i=>M.value=i),class:"quality",options:fe.value},null,8,["value","options"])):R("",!0),d(l(T),{type:"primary",loading:D.value,disabled:!n.value||!O.value.some(i=>i.selected&&i.view),onClick:De},{default:v(()=>[...e[22]||(e[22]=[$(" 开始批量下载 ",-1)])]),_:1},8,["loading","disabled"])]),O.value.length?(o(),s("div",or,[(o(!0),s(E,null,de(O.value,(i,m)=>(o(),s("label",{key:m,class:"batch-entry"},[d(l(ve),{checked:i.selected,"onUpdate:checked":G=>i.selected=G,disabled:!i.view},null,8,["checked","onUpdate:checked","disabled"]),i.view?.cover?(o(),s("img",{key:0,src:i.view.cover,alt:"",referrerpolicy:"no-referrer"},null,8,ir)):R("",!0),r("span",ar,[r("span",sr,b(i.view?.title||i.link),1),r("span",lr,[$(b(i.view?.author||"")+" ",1),i.view?.kind==="images"?(o(),s("span",nr," · 图集 "+b(i.view.image_count)+" 张 ",1)):R("",!0),i.error?(o(),s("span",cr,"· "+b(i.error),1)):R("",!0)])])]))),128))])):R("",!0)]),r("section",ur,[r("div",dr,[e[25]||(e[25]=r("h2",null,"下载任务",-1)),d(l(T),{quaternary:"",circle:"",loading:q.value,"aria-label":"刷新",onClick:e[9]||(e[9]=i=>L(!0))},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(rt))]),_:1})]),_:1},8,["loading"])]),C.value.length===0?(o(),s("div",fr,"还没有下载任务。解析作品后点击下载即可。")):R("",!0),(o(!0),s(E,null,de(C.value,i=>(o(),s("article",{key:i.id,class:"task panel"},[r("div",pr,[r("div",gr,[r("span",vr,"#"+b(i.id),1),r("span",null,b(i.title),1),d(l(ee),{size:"tiny",type:ce(i.status).type,bordered:!1},{default:v(()=>[$(b(ce(i.status).label),1)]),_:2},1032,["type"]),i.batch_id?(o(),S(l(ee),{key:0,size:"tiny",bordered:!1},{default:v(()=>[$(b(i.batch_title||"批量"),1)]),_:2},1024)):R("",!0)]),r("div",hr,[i.status==="running"||i.status==="pending"?(o(),S(l(T),{key:0,size:"tiny",quaternary:"",onClick:m=>Ie(i)},{default:v(()=>[...e[26]||(e[26]=[$(" 取消 ",-1)])]),_:1},8,["onClick"])):R("",!0),i.status==="failed"||i.status==="cancelled"?(o(),S(l(T),{key:1,size:"tiny",quaternary:"",onClick:m=>Oe(i)},{default:v(()=>[...e[27]||(e[27]=[$(" 重试 ",-1)])]),_:1},8,["onClick"])):R("",!0)])]),r("div",yr,[d(l(xt),{type:"line",percentage:i.total?Math.round(i.done/i.total*100):0,status:i.status==="failed"?"error":i.status==="done"?"success":"default","show-indicator":!1},null,8,["percentage","status"]),r("span",mr,b(i.done)+"/"+b(i.total)+" · "+b(l(ye)(i.bytes)),1)]),i.error?(o(),s("div",br,b(i.error),1)):R("",!0),r("div",wr,[(o(!0),s(E,null,de(i.items,m=>(o(),s("div",{key:m.seq,class:"item"},[r("span",kr,b(m.label),1),r("span",{class:He(["item-status",m.status])},[$(b(ce(m.status).label)+" ",1),m.bytes?(o(),s(E,{key:0},[$(" · "+b(l(ye)(m.bytes)),1)],64)):R("",!0)],2),m.file_path?(o(),s("span",_r,b(m.file_path),1)):R("",!0),m.file_path?(o(),S(l(T),{key:1,size:"tiny",quaternary:"",onClick:G=>Te(m.file_path)},{icon:v(()=>[d(l(F),null,{default:v(()=>[d(l(Ct))]),_:1})]),default:v(()=>[e[28]||(e[28]=$(" 复制路径 ",-1))]),_:1},8,["onClick"])):R("",!0),m.error?(o(),s("span",xr,b(m.error),1)):R("",!0)]))),128))])]))),128))]),d(l(Ye),{show:h.value,"onUpdate:show":e[11]||(e[11]=i=>h.value=i),preset:"card",style:{width:"560px",maxWidth:"92vw"}},{header:v(()=>[...e[29]||(e[29]=[$("抖音 Cookie(可选)",-1)])]),default:v(()=>[e[32]||(e[32]=r("p",{class:"cookie-hint"}," 通常不需要手动导入。遇到 403、需要登录态或批量受限时,可从浏览器开发者工具复制 `www.douyin.com` 的 Cookie 粘贴到这里。Cookie 只保存在本机,不会回显。 ",-1)),r("div",$r,[r("span",null,"状态:"+b(g.value?.has_cookie?"已导入":"未导入"),1),g.value?.updated_at?(o(),s("span",Cr,"更新于 "+b(l(he)(g.value.updated_at*1e3)),1)):R("",!0)]),d(l(te),{value:B.value,"onUpdate:value":e[10]||(e[10]=i=>B.value=i),type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"ttwid=...; UIFID=..."},null,8,["value"]),r("div",Sr,[d(l(T),{quaternary:"",onClick:Ve},{default:v(()=>[...e[30]||(e[30]=[$("清除 Cookie",-1)])]),_:1}),d(l(T),{type:"primary",onClick:We},{default:v(()=>[...e[31]||(e[31]=[$("保存 Cookie",-1)])]),_:1})])]),_:1},8,["show"])]))}}),Er=Qe(zr,[["__scopeId","data-v-1e0a3edb"]]);export{Er as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbwWICDg.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CYz55qnY.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbwWICDg.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CYz55qnY.js index 85e60868..da3efb5e 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbwWICDg.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CYz55qnY.js @@ -1,4 +1,4 @@ -import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-Ch4EWX-G.js";import{a as K}from"./use-compitable-CjxNERC_.js";var L=b([b("@keyframes spin-rotate",` +import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-FGi6cKHs.js";import{a as K}from"./use-compitable-Cc7HI9yh.js";var L=b([b("@keyframes spin-rotate",` from { transform: rotate(0); } diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Bg-GMiEY.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BKuNqWdg.css similarity index 56% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Bg-GMiEY.css rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BKuNqWdg.css index 310f7720..eb364c1c 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Bg-GMiEY.css +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BKuNqWdg.css @@ -1 +1 @@ -.badge[data-v-7e3eb802]{display:inline-flex;align-items:center;gap:6px;border-radius:99px;font-weight:600;letter-spacing:.2px;white-space:nowrap;border:1px solid transparent}.badge.md[data-v-7e3eb802]{font-size:11.5px;padding:4px 9px}.badge.sm[data-v-7e3eb802]{font-size:10.5px;padding:3px 7px}.badge.live[data-v-7e3eb802]{color:#ff8095;background:#ff4d6d1a;border-color:#ff4d6d42}.badge.info[data-v-7e3eb802]{color:#93dcff;background:#7dd3fc17;border-color:#7dd3fc38}.badge.warn[data-v-7e3eb802]{color:#fcd34d;background:#fbbf2417;border-color:#fbbf2438}.badge.muted[data-v-7e3eb802]{color:var(--muted);background:#94c5d60f;border-color:var(--line)}.plain-dot[data-v-7e3eb802]{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}.probe-badge[data-v-9ae28998]{display:inline-flex;align-items:center;gap:5px;border-radius:99px;font-size:10.5px;font-weight:600;padding:3px 8px;color:#fcd34d;background:#fbbf241f;border:1px solid rgba(251,191,36,.28);white-space:nowrap}.probe-note[data-v-9ae28998]{display:flex;align-items:flex-start;gap:6px;margin:0 16px 8px;padding:8px 10px;border-radius:9px;border:1px solid rgba(251,191,36,.22);background:#fbbf240f;font-size:11.5px;line-height:1.55;color:#fcd34d}.probe-text[data-v-9ae28998]{word-break:break-word}.probe-advice[data-v-9ae28998]{margin:-2px 16px 10px;font-size:11px;line-height:1.5;color:var(--muted)}.probe-dot[data-v-9ae28998]{width:6px;height:6px;border-radius:50%;background:#fbbf24;margin-top:5px;flex:none}.card[data-v-9ae28998]{border-radius:16px;overflow:hidden;border:1px solid var(--line);background:linear-gradient(180deg,#14202bc7,#0c1219eb);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.card[data-v-9ae28998]:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:0 16px 38px #00000052}.card.live[data-v-9ae28998]{border-color:#ff4d6d3d;box-shadow:0 0 0 1px #ff4d6d0d,0 18px 40px #ff4d6d12}.cover[data-v-9ae28998]{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#0a1118}.cover-img[data-v-9ae28998]{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01)}.cover-fallback[data-v-9ae28998]{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(400px 160px at 20% 0%,rgba(45,212,191,.22),transparent 65%),radial-gradient(360px 200px at 100% 100%,rgba(125,211,252,.12),transparent 60%),linear-gradient(135deg,#0d1b22,#0a1017)}.cover-fallback.douyin[data-v-9ae28998],.cover-fallback.kuaishou[data-v-9ae28998],.cover-fallback.bilibili[data-v-9ae28998],.cover-fallback.huya[data-v-9ae28998],.cover-fallback.douyu[data-v-9ae28998]{background:radial-gradient(420px 180px at 18% 0%,rgba(45,212,191,.2),transparent 65%),radial-gradient(360px 220px at 100% 100%,rgba(125,211,252,.1),transparent 60%),linear-gradient(135deg,#0d1b22,#0a1017)}.platform-glyph[data-v-9ae28998]{font-size:30px;font-weight:800;letter-spacing:2px;color:#e8f2f624;transform:rotate(-6deg);-webkit-user-select:none;user-select:none}.cover-shade[data-v-9ae28998]{position:absolute;inset:0;background:linear-gradient(180deg,#05080b1a,#05080b00 38%,#05080bdb)}.cover-top[data-v-9ae28998]{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between}.platform-chip[data-v-9ae28998]{font-size:10.5px;color:#e8f2f6db;padding:3px 8px;border-radius:99px;background:#070b0f9e;border:1px solid rgba(232,242,246,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.cover-bottom[data-v-9ae28998]{position:absolute;left:12px;right:12px;bottom:10px}.cover-title[data-v-9ae28998]{font-size:15px;font-weight:650;text-shadow:0 2px 12px rgba(0,0,0,.55);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cover-sub[data-v-9ae28998]{margin-top:2px;font-size:10.5px;color:#e8f2f69e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body[data-v-9ae28998]{padding:13px 14px 14px}.meta-row[data-v-9ae28998]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-bottom:12px;border-bottom:1px solid var(--line)}.meta[data-v-9ae28998]{display:flex;flex-direction:column;gap:3px;min-width:0}.meta-label[data-v-9ae28998]{font-size:10px;color:var(--muted-2);letter-spacing:.3px}.meta-value[data-v-9ae28998]{font-size:12px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-value.hot[data-v-9ae28998]{color:#ff9db0}.actions[data-v-9ae28998]{display:flex;align-items:center;gap:8px;margin-top:12px}.main-action[data-v-9ae28998]{flex:1}.ghost-btn[data-v-9ae28998]{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;border:1px solid var(--line);background:#94c5d60a;color:var(--muted);cursor:pointer;transition:all .16s ease}.ghost-btn[data-v-9ae28998]:hover{color:var(--text);border-color:var(--line-strong);background:#94c5d617}.capture-panel[data-v-f2517c38]{display:flex;flex-direction:column;gap:12px}.status-bar[data-v-f2517c38]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0f172099}.status-left[data-v-f2517c38]{display:flex;flex-direction:column;gap:8px;min-width:0}.status-row[data-v-f2517c38]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status-label[data-v-f2517c38]{min-width:52px;font-size:11px;color:var(--muted)}.proxy[data-v-f2517c38]{font-size:12px;color:var(--accent)}.status-hint[data-v-f2517c38]{font-size:11px;color:var(--muted-2)}.last-error[data-v-f2517c38]{padding:8px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:#fca5a5;font-size:11.5px;word-break:break-all}.compliance[data-v-f2517c38]{padding:14px;border:1px solid var(--line-strong);border-radius:12px;background:#14202b8c}.compliance-title[data-v-f2517c38]{margin-bottom:8px;font-size:13px;font-weight:650}.compliance-list[data-v-f2517c38]{margin:0 0 10px;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}.compliance-actions[data-v-f2517c38]{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.list-bar[data-v-f2517c38]{display:flex;align-items:center;justify-content:space-between}.list-title[data-v-f2517c38]{font-size:12px;font-weight:650}.empty[data-v-f2517c38]{padding:28px 18px;text-align:center;font-size:11.5px;line-height:1.7;color:var(--muted);border:1px dashed var(--line-strong);border-radius:12px}.stream-list[data-v-f2517c38]{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow-y:auto}.stream-item[data-v-f2517c38]{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0f172099}.stream-head[data-v-f2517c38]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.time[data-v-f2517c38]{font-size:11px;color:var(--muted-2)}.host[data-v-f2517c38]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}.remark-row[data-v-f2517c38]{margin-top:10px}.url[data-v-f2517c38]{margin-top:8px;font-family:var(--mono);font-size:11px;color:var(--muted-2);word-break:break-all}.capability-note[data-v-0fb63d84]{margin:4px 0 14px;padding:11px 13px;border-radius:10px;border:1px solid rgba(251,191,36,.26);background:#fbbf2412;font-size:12px;line-height:1.65}.capability-title[data-v-0fb63d84]{font-weight:650;color:#fcd34d;margin-bottom:4px}.capability-list[data-v-0fb63d84]{margin:0;padding-left:16px;color:var(--muted)}.capability-hint[data-v-0fb63d84]{margin-top:6px;color:var(--muted-2)}.modal-head[data-v-0fb63d84]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-title[data-v-0fb63d84]{font-size:17px;font-weight:650}.modal-sub[data-v-0fb63d84]{margin-top:4px;font-size:11.5px;color:var(--muted)}.hint[data-v-0fb63d84]{font-size:11px;color:var(--muted-2)}.desktop-hint[data-v-0fb63d84]{margin-bottom:10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fbbf240f;font-size:11.5px;color:var(--muted)}.mode-switch[data-v-0fb63d84]{display:inline-flex;gap:4px;padding:4px;margin-bottom:14px;border:1px solid var(--line);border-radius:11px;background:#0d131a99}.mode-pill[data-v-0fb63d84]{border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;cursor:pointer;transition:all .16s ease}.mode-pill[data-v-0fb63d84]:hover{color:var(--text)}.mode-pill.active[data-v-0fb63d84]{color:#042f2c;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.modal-foot[data-v-0fb63d84]{display:flex;justify-content:flex-end;gap:10px}@media(max-width:639px){.form-row[data-v-0fb63d84]{display:flex;flex-direction:column;gap:14px}.form-row[data-v-0fb63d84]>*{width:100%!important}}.version[data-v-cdfe01c6]{color:var(--muted-2);font-size:11px;margin-left:4px}.list-bar[data-v-cdfe01c6]{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 16px;flex-wrap:wrap}.filters[data-v-cdfe01c6]{display:inline-flex;gap:4px;padding:4px;border-radius:11px;border:1px solid var(--line);background:var(--chip-bg)}.pill[data-v-cdfe01c6]{border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;cursor:pointer;transition:all .16s ease}.pill[data-v-cdfe01c6]:hover{color:var(--text)}.pill.active[data-v-cdfe01c6]{color:#042f2c;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.search[data-v-cdfe01c6]{width:260px}.loading[data-v-cdfe01c6]{display:flex;align-items:center;justify-content:center;gap:12px;padding:90px 0;color:var(--muted);font-size:13px}.error-panel[data-v-cdfe01c6]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-cdfe01c6]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-cdfe01c6]{margin:7px 0 14px;font-size:12px;color:var(--muted);word-break:break-all}.no-match[data-v-cdfe01c6]{padding:44px 0;text-align:center;color:var(--muted);font-size:13px}.compact-summary[data-v-cdfe01c6]{display:flex;gap:12px;margin-bottom:14px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}.compact-summary b[data-v-cdfe01c6]{margin-left:3px;color:var(--text);font-family:var(--mono);font-weight:600}.compact-summary span[data-v-cdfe01c6]:not(:last-child):after{content:"·";margin-left:12px;color:var(--muted-2)}@media(max-width:720px){.search[data-v-cdfe01c6]{width:100%}} +.badge[data-v-7e3eb802]{display:inline-flex;align-items:center;gap:6px;border-radius:99px;font-weight:600;letter-spacing:.2px;white-space:nowrap;border:1px solid transparent}.badge.md[data-v-7e3eb802]{font-size:11.5px;padding:4px 9px}.badge.sm[data-v-7e3eb802]{font-size:10.5px;padding:3px 7px}.badge.live[data-v-7e3eb802]{color:#ff8095;background:#ff4d6d1a;border-color:#ff4d6d42}.badge.info[data-v-7e3eb802]{color:#93dcff;background:#7dd3fc17;border-color:#7dd3fc38}.badge.warn[data-v-7e3eb802]{color:#fcd34d;background:#fbbf2417;border-color:#fbbf2438}.badge.muted[data-v-7e3eb802]{color:var(--muted);background:#94c5d60f;border-color:var(--line)}.plain-dot[data-v-7e3eb802]{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}.probe-badge[data-v-8c08263d]{display:inline-flex;align-items:center;gap:5px;border-radius:99px;font-size:10.5px;font-weight:600;padding:3px 8px;color:#fcd34d;background:#fbbf241f;border:1px solid rgba(251,191,36,.28);white-space:nowrap}.probe-note[data-v-8c08263d]{display:flex;align-items:flex-start;gap:6px;margin:0 16px 8px;padding:8px 10px;border-radius:9px;border:1px solid rgba(251,191,36,.22);background:#fbbf240f;font-size:11.5px;line-height:1.55;color:#fcd34d}.probe-text[data-v-8c08263d]{word-break:break-word}.probe-advice[data-v-8c08263d]{margin:-2px 16px 10px;font-size:11px;line-height:1.5;color:var(--muted)}.probe-dot[data-v-8c08263d]{width:6px;height:6px;border-radius:50%;background:#fbbf24;margin-top:5px;flex:none}.card[data-v-8c08263d]{border-radius:16px;overflow:hidden;border:1px solid var(--line);background:linear-gradient(180deg,#14202bc7,#0c1219eb);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.card[data-v-8c08263d]:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:0 16px 38px #00000052}.card.live[data-v-8c08263d]{border-color:#ff4d6d3d;box-shadow:0 0 0 1px #ff4d6d0d,0 18px 40px #ff4d6d12}.cover[data-v-8c08263d]{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#0a1118}.cover-img[data-v-8c08263d]{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01)}.cover-fallback[data-v-8c08263d]{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(400px 160px at 20% 0%,rgba(45,212,191,.22),transparent 65%),radial-gradient(360px 200px at 100% 100%,rgba(125,211,252,.12),transparent 60%),linear-gradient(135deg,#0d1b22,#0a1017)}.cover-fallback.douyin[data-v-8c08263d],.cover-fallback.kuaishou[data-v-8c08263d],.cover-fallback.bilibili[data-v-8c08263d],.cover-fallback.huya[data-v-8c08263d],.cover-fallback.douyu[data-v-8c08263d]{background:radial-gradient(420px 180px at 18% 0%,rgba(45,212,191,.2),transparent 65%),radial-gradient(360px 220px at 100% 100%,rgba(125,211,252,.1),transparent 60%),linear-gradient(135deg,#0d1b22,#0a1017)}.platform-glyph[data-v-8c08263d]{font-size:30px;font-weight:800;letter-spacing:2px;color:#e8f2f624;transform:rotate(-6deg);-webkit-user-select:none;user-select:none}.cover-shade[data-v-8c08263d]{position:absolute;inset:0;background:linear-gradient(180deg,#05080b1a,#05080b00 38%,#05080bdb)}.cover-top[data-v-8c08263d]{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between}.platform-chip[data-v-8c08263d]{font-size:10.5px;color:#e8f2f6db;padding:3px 8px;border-radius:99px;background:#070b0f9e;border:1px solid rgba(232,242,246,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.cover-bottom[data-v-8c08263d]{position:absolute;left:12px;right:12px;bottom:10px}.cover-title[data-v-8c08263d]{font-size:15px;font-weight:650;text-shadow:0 2px 12px rgba(0,0,0,.55);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cover-sub[data-v-8c08263d]{margin-top:2px;font-size:10.5px;color:#e8f2f69e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body[data-v-8c08263d]{padding:13px 14px 14px}.meta-row[data-v-8c08263d]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-bottom:12px;border-bottom:1px solid var(--line)}.meta[data-v-8c08263d]{display:flex;flex-direction:column;gap:3px;min-width:0}.meta-label[data-v-8c08263d]{font-size:10px;color:var(--muted-2);letter-spacing:.3px}.meta-value[data-v-8c08263d]{font-size:12px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-value.hot[data-v-8c08263d]{color:#ff9db0}.actions[data-v-8c08263d]{display:flex;align-items:center;gap:8px;margin-top:12px}.main-action[data-v-8c08263d]{flex:1}.ghost-btn[data-v-8c08263d]{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;border:1px solid var(--line);background:#94c5d60a;color:var(--muted);cursor:pointer;transition:all .16s ease}.ghost-btn[data-v-8c08263d]:hover{color:var(--text);border-color:var(--line-strong);background:#94c5d617}.capture-panel[data-v-0f758067]{display:flex;flex-direction:column;gap:12px}.status-bar[data-v-0f758067]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0f172099}.status-left[data-v-0f758067]{display:flex;flex-direction:column;gap:8px;min-width:0}.status-row[data-v-0f758067]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status-label[data-v-0f758067]{min-width:52px;font-size:11px;color:var(--muted)}.proxy[data-v-0f758067]{font-size:12px;color:var(--accent)}.status-hint[data-v-0f758067]{font-size:11px;color:var(--muted-2)}.last-error[data-v-0f758067]{padding:8px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:#fca5a5;font-size:11.5px;word-break:break-all}.compliance[data-v-0f758067]{padding:14px;border:1px solid var(--line-strong);border-radius:12px;background:#14202b8c}.compliance-title[data-v-0f758067]{margin-bottom:8px;font-size:13px;font-weight:650}.compliance-list[data-v-0f758067]{margin:0 0 10px;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}.compliance-actions[data-v-0f758067]{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.list-bar[data-v-0f758067]{display:flex;align-items:center;justify-content:space-between}.list-title[data-v-0f758067]{font-size:12px;font-weight:650}.empty[data-v-0f758067]{padding:28px 18px;text-align:center;font-size:11.5px;line-height:1.7;color:var(--muted);border:1px dashed var(--line-strong);border-radius:12px}.stream-list[data-v-0f758067]{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow-y:auto}.stream-item[data-v-0f758067]{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0f172099}.stream-head[data-v-0f758067]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.time[data-v-0f758067]{font-size:11px;color:var(--muted-2)}.host[data-v-0f758067]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}.remark-row[data-v-0f758067]{margin-top:10px}.url[data-v-0f758067]{margin-top:8px;font-family:var(--mono);font-size:11px;color:var(--muted-2);word-break:break-all}.capability-note[data-v-b547d50d]{margin:4px 0 14px;padding:11px 13px;border-radius:10px;border:1px solid rgba(251,191,36,.26);background:#fbbf2412;font-size:12px;line-height:1.65}.capability-title[data-v-b547d50d]{font-weight:650;color:#fcd34d;margin-bottom:4px}.capability-list[data-v-b547d50d]{margin:0;padding-left:16px;color:var(--muted)}.capability-hint[data-v-b547d50d]{margin-top:6px;color:var(--muted-2)}.modal-head[data-v-b547d50d]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-title[data-v-b547d50d]{font-size:17px;font-weight:650}.modal-sub[data-v-b547d50d]{margin-top:4px;font-size:11.5px;color:var(--muted)}.hint[data-v-b547d50d]{font-size:11px;color:var(--muted-2)}.desktop-hint[data-v-b547d50d]{margin-bottom:10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fbbf240f;font-size:11.5px;color:var(--muted)}.mode-switch[data-v-b547d50d]{display:inline-flex;gap:4px;padding:4px;margin-bottom:14px;border:1px solid var(--line);border-radius:11px;background:#0d131a99}.mode-pill[data-v-b547d50d]{border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;cursor:pointer;transition:all .16s ease}.mode-pill[data-v-b547d50d]:hover{color:var(--text)}.mode-pill.active[data-v-b547d50d]{color:#042f2c;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.modal-foot[data-v-b547d50d]{display:flex;justify-content:flex-end;gap:10px}@media(max-width:639px){.form-row[data-v-b547d50d]{display:flex;flex-direction:column;gap:14px}.form-row[data-v-b547d50d]>*{width:100%!important}}.version[data-v-cdfe01c6]{color:var(--muted-2);font-size:11px;margin-left:4px}.list-bar[data-v-cdfe01c6]{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 16px;flex-wrap:wrap}.filters[data-v-cdfe01c6]{display:inline-flex;gap:4px;padding:4px;border-radius:11px;border:1px solid var(--line);background:var(--chip-bg)}.pill[data-v-cdfe01c6]{border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;padding:6px 14px;border-radius:8px;cursor:pointer;transition:all .16s ease}.pill[data-v-cdfe01c6]:hover{color:var(--text)}.pill.active[data-v-cdfe01c6]{color:#042f2c;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.search[data-v-cdfe01c6]{width:260px}.loading[data-v-cdfe01c6]{display:flex;align-items:center;justify-content:center;gap:12px;padding:90px 0;color:var(--muted);font-size:13px}.error-panel[data-v-cdfe01c6]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-cdfe01c6]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-cdfe01c6]{margin:7px 0 14px;font-size:12px;color:var(--muted);word-break:break-all}.no-match[data-v-cdfe01c6]{padding:44px 0;text-align:center;color:var(--muted);font-size:13px}.compact-summary[data-v-cdfe01c6]{display:flex;gap:12px;margin-bottom:14px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}.compact-summary b[data-v-cdfe01c6]{margin-left:3px;color:var(--text);font-family:var(--mono);font-weight:600}.compact-summary span[data-v-cdfe01c6]:not(:last-child):after{content:"·";margin-left:12px;color:var(--muted-2)}@media(max-width:720px){.search[data-v-cdfe01c6]{width:100%}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-CmWF_crB.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-CmWF_crB.js deleted file mode 100644 index 5d4ba6e0..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-CmWF_crB.js +++ /dev/null @@ -1,117 +0,0 @@ -import{I as ce}from"./Input-DOY9MBk2.js";import{G as ft,H as mt,z as Ie,I as ht,J as wt,K as _e,L as Be,M as Se,d as V,N as yt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Ze,T as bt,W as pe,X as Qe,Y as $e,j as x,Z as he,_ as gt,$ as kt,a0 as xt,a1 as _t,a2 as ne,a3 as St,a4 as fe,a5 as We,a6 as ae,a7 as se,a8 as Oe,a9 as Ct,aa as et,ab as $t,ac as Pt,ad as Ke,ae as le,af as ie,ag as Rt,ah as zt,ai as Nt,n as He,aj as It,ak as Bt,al as Mt,am as Ve,C as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as qe,ao as tt,ap as ge,A as ze,aq as Ot}from"./index-Ch4EWX-G.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-DQkFygL-.js";import{F as Et,a as me,u as Kt,A as Ge}from"./AddOutline-C9wx-dLG.js";import{V as At,a as Lt,B as Tt,r as Ft,p as nt,P as Dt,u as Ue}from"./use-message-sIwnQEJL.js";import{S as Ut}from"./Spin-BbwWICDg.js";import{c as jt,S as we,E as Wt}from"./EmptyState-fy8GfigG.js";import{T as Ht,P as Vt}from"./PulseOutline-DBaBm7B1.js";import{h as Je,c as qt,T as Pe,S as Gt}from"./Select-DlP0Rw4u.js";import{u as Jt}from"./use-compitable-CjxNERC_.js";import{p as Xt,a as Yt,c as Zt,u as Qt,b as en,l as tn,d as nn,g as on,t as rn,e as an}from"./streamers-Bl5LBoP5.js";import{p as Ne,a as ln,f as sn,b as un,c as ot,r as dn}from"./format-B8CnorUZ.js";import{v as cn}from"./filename-template-DBJXvN0y.js";import{C as pn}from"./CheckboxGroup-CVNCmOpb.js";import{S as vn}from"./Switch-4rsLpKoT.js";import{i as fn}from"./runtime-bridge-DmDzFGpU.js";import{V as mn}from"./VideocamOutline-Dxd9Z4sO.js";import{R as Xe}from"./RefreshOutline-DsgjGZK9.js";import{S as hn}from"./SearchOutline--3GBf81B.js";function wn(e={},s){const t=wt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return ft()?(mt(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),ht(t)}var yn=V({name:"ChevronRight",render(){return(()=>{const e=yt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function bn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const je=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ye=Fe("n-dropdown-option");var rt=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function gn(e){return e.type==="group"}function at(e){return e.type==="divider"}function kn(e){return e.type==="render"}function xn(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var lt=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ye,null),D=pe(je),K=pe(Qe),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=xn(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ye,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Je({target:B},"dropdownOption")&&!Je({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(st,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Ze(()=>(l(),E(yn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Tt,{key:0},{default:()=>[(l(),E(At,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Lt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(bt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),_n=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(je),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Sn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(_n,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:at(d)?Me(rt,{clsPrefix:t,key:r.key}):r.isGroup?(gt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(lt,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),Cn=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),st=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(je,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(xt,null),he(_t,null),he(Qe,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:kn(d)?(l(),E(Cn,{tmNode:r,key:r.key},null,8,["tmNode"])):at(d)?(l(),E(rt,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):gn(d)?(l(),E(Sn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(lt,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(kt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Ft({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),$n=ne("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[St(),ne("dropdown-option",` - position: relative; - `,[fe("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[fe("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),ne("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[fe("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),We("disabled",[ae("pending",` - color: var(--n-option-text-color-hover); - `,[se("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),fe("&::before","background-color: var(--n-option-color-hover);")]),ae("active",` - color: var(--n-option-text-color-active); - `,[se("prefix, suffix",` - color: var(--n-option-text-color-active); - `),fe("&::before","background-color: var(--n-option-color-active);")]),ae("child-active",` - color: var(--n-option-text-color-child-active); - `,[se("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),ae("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),ae("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[se("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[ae("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),se("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[ae("show-icon",` - width: var(--n-option-icon-prefix-width); - `),ne("icon",` - font-size: var(--n-option-icon-size); - `)]),se("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),se("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[ae("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),ne("icon",` - font-size: var(--n-option-icon-size); - `)]),ne("dropdown-menu","pointer-events: all;")]),ne("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),ne("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),ne("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),fe(">",[ne("scrollbar",` - height: inherit; - max-height: inherit; - `)]),We("scrollable",` - padding: var(--n-padding); - `),ae("scrollable",[se("content",` - padding: var(--n-padding); - `)])]);const Pn={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:String,inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},Rn=Object.keys(nt),zn={...nt,...Pn,...Oe.props};var Nn=V({name:"Dropdown",inheritAttrs:!1,props:zn,setup(e){const s=_(!1),t=Jt(le(e,"show"),s),i=x(()=>{const{keyField:w,childrenField:I}=e;return qt(e.options,{getKey(A){return A[w]},getDisabled(A){return A.disabled===!0},getIgnored(A){return A.type==="divider"||A.type==="render"},getChildren(A){return A[I]}})}),r=x(()=>i.value.treeNodes),d=_(null),b=_(null),p=_(null),v=x(()=>d.value??b.value??p.value??null),$=x(()=>i.value.getPath(v.value).keyPath),k=x(()=>i.value.getPath(e.value).keyPath),z=$e(()=>e.keyboard&&t.value);wn({keydown:{ArrowUp:{prevent:!0,handler:Z},ArrowRight:{prevent:!0,handler:H},ArrowDown:{prevent:!0,handler:te},ArrowLeft:{prevent:!0,handler:R},Enter:{prevent:!0,handler:oe},Escape:N}},z);const{mergedClsPrefixRef:f,inlineThemeDisabled:T,mergedComponentPropsRef:M}=et(e),O=x(()=>e.size||M?.value?.Dropdown?.size||"medium"),F=Oe("Dropdown","-dropdown",$n,$t,e,f);he(Ee,{labelFieldRef:le(e,"labelField"),childrenFieldRef:le(e,"childrenField"),renderLabelRef:le(e,"renderLabel"),renderIconRef:le(e,"renderIcon"),hoverKeyRef:d,keyboardKeyRef:b,lastToggledSubmenuKeyRef:p,pendingKeyPathRef:$,activeKeyPathRef:k,animatedRef:le(e,"animated"),mergedShowRef:t,nodePropsRef:le(e,"nodeProps"),renderOptionRef:le(e,"renderOption"),menuPropsRef:le(e,"menuProps"),doSelect:D,doUpdateShow:K}),Be(t,w=>{!e.animated&&!w&&W()});function D(w,I){const{onSelect:A}=e;A&&Ke(A,w,I)}function K(w){const{"onUpdate:show":I,onUpdateShow:A}=e;I&&Ke(I,w),A&&Ke(A,w),s.value=w}function W(){d.value=null,b.value=null,p.value=null}function N(){K(!1)}function R(){P("left")}function H(){P("right")}function Z(){P("up")}function te(){P("down")}function oe(){const w=Y();w?.isLeaf&&t.value&&(D(w.key,w.rawNode),K(!1))}function Y(){const{value:w}=i,{value:I}=v;return!w||I===null?null:w.getNode(I)??null}function P(w){const{value:I}=v,{value:{getFirstAvailableNode:A}}=i;let h=null;if(I===null){const B=A();B!==null&&(h=B.key)}else{const B=Y();if(B){let q;switch(w){case"down":q=B.getNext();break;case"up":q=B.getPrev();break;case"right":q=B.getChild();break;case"left":q=B.getParent()}q&&(h=q.key)}}h!==null&&(d.value=null,b.value=h)}const a=x(()=>{const{inverted:w}=e,I=O.value,{common:{cubicBezierEaseInOut:A},self:h}=F.value,{padding:B,dividerColor:q,borderRadius:re,optionOpacityDisabled:C,[ie("optionIconSuffixWidth",I)]:m,[ie("optionSuffixWidth",I)]:U,[ie("optionIconPrefixWidth",I)]:xe,[ie("optionPrefixWidth",I)]:dt,[ie("fontSize",I)]:ct,[ie("optionHeight",I)]:pt,[ie("optionIconSize",I)]:vt}=h,j={"--n-bezier":A,"--n-font-size":ct,"--n-padding":B,"--n-border-radius":re,"--n-option-height":pt,"--n-option-prefix-width":dt,"--n-option-icon-prefix-width":xe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":m,"--n-option-icon-size":vt,"--n-divider-color":q,"--n-option-opacity-disabled":C};return w?(j["--n-color"]=h.colorInverted,j["--n-option-color-hover"]=h.optionColorHoverInverted,j["--n-option-color-active"]=h.optionColorActiveInverted,j["--n-option-text-color"]=h.optionTextColorInverted,j["--n-option-text-color-hover"]=h.optionTextColorHoverInverted,j["--n-option-text-color-active"]=h.optionTextColorActiveInverted,j["--n-option-text-color-child-active"]=h.optionTextColorChildActiveInverted,j["--n-prefix-color"]=h.prefixColorInverted,j["--n-suffix-color"]=h.suffixColorInverted,j["--n-group-header-text-color"]=h.groupHeaderTextColorInverted):(j["--n-color"]=h.color,j["--n-option-color-hover"]=h.optionColorHover,j["--n-option-color-active"]=h.optionColorActive,j["--n-option-text-color"]=h.optionTextColor,j["--n-option-text-color-hover"]=h.optionTextColorHover,j["--n-option-text-color-active"]=h.optionTextColorActive,j["--n-option-text-color-child-active"]=h.optionTextColorChildActive,j["--n-prefix-color"]=h.prefixColor,j["--n-suffix-color"]=h.suffixColor,j["--n-group-header-text-color"]=h.groupHeaderTextColor),j}),n=T?Pt("dropdown",x(()=>`${O.value[0]}${e.inverted?"i":""}`),a,e):void 0;return{mergedClsPrefix:f,mergedTheme:F,mergedSize:O,tmNodes:r,mergedShow:t,handleAfterLeave:()=>{e.animated&&W()},doUpdateShow:K,cssVars:T?void 0:a,themeClass:n?.themeClass,onRender:n?.onRender}},render(){const e=(i,r,d,b,p)=>{const{mergedClsPrefix:v,menuProps:$}=this;this.onRender?.();const k=$?.(void 0,this.tmNodes.map(f=>f.rawNode))||{},z={ref:jt(r),class:[i,`${v}-dropdown`,`${v}-dropdown--${this.mergedSize}-size`,this.themeClass],clsPrefix:v,tmNodes:this.tmNodes,style:[...d,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:b,onMouseleave:p};return Me(st,be(this.$attrs,z,k))},{mergedTheme:s}=this,t={show:this.mergedShow,theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return l(),E(Dt,Ct(this.$props,Rn,t),{_:1,trigger:Ze(()=>this.$slots.default?.())},16)}});let Ae;function In(){if(!Rt)return!0;if(Ae===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const s=e.scrollHeight===1;return document.body.removeChild(e),Ae=s}return Ae}const Bn={...Oe.props,align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}};var Mn=V({name:"Space",props:Bn,setup(e){const{mergedClsPrefixRef:s,mergedRtlRef:t,mergedComponentPropsRef:i}=et(e),r=x(()=>e.size??i?.value?.Space?.size??"medium"),d=Oe("Space","-space",void 0,Bt,e,s),b=It("Space",t,s);return{useGap:In(),rtlEnabled:b,mergedClsPrefix:s,margin:x(()=>{const p=r.value;if(Array.isArray(p))return{horizontal:p[0],vertical:p[1]};if(typeof p=="number")return{horizontal:p,vertical:p};const{self:{[ie("gap",p)]:v}}=d.value,{row:$,col:k}=Mt(v);return{horizontal:Ve(k),vertical:Ve($)}})}},render(){const{vertical:e,reverse:s,align:t,inline:i,justify:r,itemClass:d,itemStyle:b,margin:p,wrap:v,mergedClsPrefix:$,rtlEnabled:k,useGap:z,wrapItem:f,internalUseGap:T}=this,M=zt(bn(this),!1);if(!M.length)return null;const O=`${p.horizontal}px`,F=`${p.horizontal/2}px`,D=`${p.vertical}px`,K=`${p.vertical/2}px`,W=M.length-1,N=r.startsWith("space-");return l(),c("div",{role:"none",class:ee([`${$}-space`,k&&`${$}-space--rtl`]),style:He({display:i?"inline-flex":"flex",flexDirection:e&&!s?"column":e&&s?"column-reverse":!e&&s?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!v||e?"nowrap":"wrap",marginTop:z||e?"":`-${K}`,marginBottom:z||e?"":`-${K}`,alignItems:t,gap:z?`${p.vertical}px ${p.horizontal}px`:""})},[!f&&(z||T)?(l(),c(X,{key:0},[J(()=>M)],64)):(l(),c(X,{key:1},[J(()=>M.map((R,H)=>R.type===Nt?R:(l(),c("div",{key:1,role:"none",class:ee(d),style:He([b,{maxWidth:"100%"},z?"":e?{marginBottom:H!==W?D:""}:k?{marginLeft:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginRight:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}:{marginRight:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginLeft:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}])},[J(()=>R)],6))))],64))],6)}});const On={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},En=V({name:"AlertCircleOutline",render:function(s,t){return l(),c("svg",On,t[0]||(t[0]=[o("path",{d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{d:"M250.26 166.05L256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 367.91a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),Kn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},An=V({name:"CloudUploadOutline",render:function(s,t){return l(),c("svg",Kn,t[0]||(t[0]=[o("path",{d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 255.79l-64-64l-64 64"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 448.21V207.79"},null,-1)]))}}),Ln={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Tn=V({name:"EllipsisHorizontal",render:function(s,t){return l(),c("svg",Ln,t[0]||(t[0]=[o("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"416",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"96",cy:"256",r:"48",fill:"currentColor"},null,-1)]))}}),Fn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Dn=V({name:"OpenOutline",render:function(s,t){return l(),c("svg",Fn,t[0]||(t[0]=[o("path",{d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 64h112v112"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M224 288L440 72"},null,-1)]))}}),Un={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},jn=V({name:"PauseOutline",render:function(s,t){return l(),c("svg",Un,t[0]||(t[0]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 96h16v320h-16z"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 96h16v320h-16z"},null,-1)]))}}),Wn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Hn=V({name:"PlayOutline",render:function(s,t){return l(),c("svg",Wn,t[0]||(t[0]=[o("path",{d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Vn={key:0,class:"live-dot"},qn={key:1,class:"plain-dot"},Gn=V({__name:"StatusBadge",props:{status:{default:""},size:{default:"md"}},setup(e){const s=e,t=x(()=>{switch(s.status){case"Working":return{label:"直播中",tone:"live",dot:!0};case"Pending":return{label:"检测中",tone:"info",dot:!1};case"Pause":return{label:"已暂停",tone:"warn",dot:!1};case"OutOfSchedule":return{label:"非录播时间",tone:"muted",dot:!1};case"TitleExcluded":return{label:"标题已排除",tone:"warn",dot:!1};case"StreamExpired":return{label:"流已过期",tone:"warn",dot:!1};default:return{label:"未开播",tone:"muted",dot:!1}}});return(i,r)=>(l(),c("span",{class:ue(["badge",[t.value.tone,e.size]])},[t.value.dot?(l(),c("span",Vn)):(l(),c("span",qn)),L(" "+S(t.value.label),1)],2))}}),Jn=ke(Gn,[["__scopeId","data-v-7e3eb802"]]);function Xn(e,s=!1){if(typeof e!="string")return!1;const t=e.trim();if(!t||t!==e||/[\u0000-\u0020\u007f]/.test(t))return!1;const i=/^([a-z][a-z0-9+.-]*):\/\//i.exec(t);if(!i)return!1;const r=i[1].toLowerCase();if(r!=="http"&&r!=="https"&&!(s&&r==="wxchannel-stream"))return!1;try{return new URL(t).protocol===r+":"}catch{return!1}}const Le=_(Date.now());let ye,Ce=0;function Yn(){return De(()=>{Ce+=1,ye===void 0&&(Le.value=Date.now(),ye=window.setInterval(()=>{Le.value=Date.now()},1e3))}),Ie(()=>{Ce-=1,Ce<=0&&ye!==void 0&&(window.clearInterval(ye),ye=void 0,Ce=0)}),Le}const Zn=["src"],Qn={key:1,class:"cover-fallback"},eo={class:"platform-glyph"},to={class:"cover-top"},no=["title"],oo={class:"platform-chip"},ro={class:"cover-bottom"},ao={class:"cover-title"},lo={class:"cover-sub"},so={class:"body"},io={class:"meta-row"},uo={class:"meta"},co={class:"meta-value mono"},po={class:"meta"},vo=["title"],fo={class:"meta-value mono"},mo={class:"meta"},ho={class:"meta-value mono"},wo={class:"meta",title:"开播检查间隔(秒)。连续查询失败会在此基础上按 1x→2x→4x→8x 退避"},yo=["title"],bo={class:"probe-text"},go={key:1,class:"probe-advice"},ko={class:"actions"},xo={class:"ghost-btn","aria-label":"更多操作"},_o=V({__name:"StreamerCard",props:{streamer:{}},emits:["toggle","edit","delete"],setup(e,{emit:s}){const t=e,i=s,r=_(!1),d=x(()=>t.streamer.status==="Working"),b=x(()=>t.streamer.status==="Pause"||t.streamer.status==="StreamExpired"),p=x(()=>t.streamer.probe??null),v=x(()=>!!p.value&&!d.value),$=x(()=>p.value?Xt(p.value):""),k=x(()=>p.value?Yt(p.value):""),z=x(()=>d.value&&t.streamer.live_cover_url&&!r.value?Zt(t.streamer.id):""),f=x(()=>t.streamer.remark||t.streamer.live_streamer_name||"未命名直播间"),T=x(()=>t.streamer.live_streamer_name||t.streamer.url),M=Yn(),O=x(()=>{const N=t.streamer.session_started_at;return!d.value||!N?null:Math.max(0,M.value-N)}),F=x(()=>t.streamer.session_started_at?`本场开录于 ${ot(t.streamer.session_started_at)}`:""),D=[{label:"编辑直播间",key:"edit"},{label:"删除",key:"delete"}];function K(N){N==="edit"&&i("edit",t.streamer),N==="delete"&&i("delete",t.streamer)}function W(){Xn(t.streamer.url,!0)&&window.open(t.streamer.url,"_blank","noopener")}return(N,R)=>(l(),c("article",{class:ue(["card fade-up",{live:d.value}])},[o("div",{class:ue(["cover",u(ln)(e.streamer.url)])},[z.value?(l(),c("img",{key:0,class:"cover-img",src:z.value,alt:"",onError:R[0]||(R[0]=H=>r.value=!0)},null,40,Zn)):(l(),c("div",Qn,[o("span",eo,S(u(Ne)(e.streamer.url)),1)])),R[2]||(R[2]=o("div",{class:"cover-shade"},null,-1)),o("div",to,[v.value?(l(),c("span",{key:1,class:"probe-badge",title:k.value},S($.value)+" ×"+S(p.value.failures),9,no)):(l(),E(Jn,{key:0,status:e.streamer.status,size:"sm"},null,8,["status"])),o("span",oo,S(u(Ne)(e.streamer.url)),1)]),o("div",ro,[o("div",ao,S(f.value),1),o("div",lo,S(T.value),1)])],2),o("div",so,[o("div",io,[o("div",uo,[R[3]||(R[3]=o("span",{class:"meta-label"},"格式",-1)),o("span",co,S(e.streamer.format||"ts"),1)]),o("div",po,[R[4]||(R[4]=o("span",{class:"meta-label"},"实时码率",-1)),o("span",{class:ue(["meta-value mono",{hot:d.value}])},S(d.value?u(sn)(e.streamer.live_bytes_per_sec):"—"),3)]),o("div",{class:"meta",title:F.value},[R[5]||(R[5]=o("span",{class:"meta-label"},"已录制",-1)),o("span",fo,S(O.value!=null?u(un)(Math.max(O.value,1e3)):"—"),1)],8,vo),o("div",mo,[R[6]||(R[6]=o("span",{class:"meta-label"},"场次",-1)),o("span",ho,S(e.streamer.session_id??"—"),1)]),o("div",wo,[R[7]||(R[7]=o("span",{class:"meta-label"},"间隔",-1)),o("span",{class:ue(["meta-value mono",{hot:v.value}])},S(e.streamer.check_interval_secs?`${e.streamer.check_interval_secs}s`:"—"),3)])]),v.value?(l(),c("div",{key:0,class:"probe-note",title:k.value},[R[8]||(R[8]=o("span",{class:"probe-dot"},null,-1)),o("span",bo,S($.value)+":"+S(p.value.message),1)],8,yo)):G("",!0),v.value&&p.value.hint?(l(),c("div",go,S(p.value.hint),1)):G("",!0),o("div",ko,[y(u(Q),{size:"small",type:b.value?"primary":"default",secondary:"",class:"main-action",onClick:R[1]||(R[1]=H=>i("toggle",e.streamer))},{icon:g(()=>[y(u(de),null,{default:g(()=>[b.value?(l(),E(u(Hn),{key:0})):(l(),E(u(jn),{key:1}))]),_:1})]),default:g(()=>[L(" "+S(b.value?"恢复监控":"暂停监控"),1)]),_:1},8,["type"]),y(u(Ht),{trigger:"hover"},{trigger:g(()=>[o("button",{class:"ghost-btn","aria-label":"打开直播间",onClick:W},[y(u(de),{size:17},{default:g(()=>[y(u(Dn))]),_:1})])]),default:g(()=>[R[9]||(R[9]=L(" 在浏览器打开直播间 ",-1))]),_:1}),y(u(Nn),{options:D,trigger:"click",onSelect:K},{default:g(()=>[o("button",xo,[y(u(de),{size:18},{default:g(()=>[y(u(Tn))]),_:1})])]),_:1})])])],2))}}),So=ke(_o,[["__scopeId","data-v-9ae28998"]]);function Co(e){const s=e.trim();if(!s.startsWith("{"))return null;try{const t=JSON.parse(s);if(!t||typeof t!="object")return null;const i=t,r=i.detail??i.error??i.message;return typeof r=="string"&&r.trim()?r:null}catch{return null}}async function ve(e){try{return await e()}catch(s){if(s instanceof qe){const t=Co(s.message);if(t)throw new qe(s.status,t,s.authSource)}throw s}}const it=()=>ve(()=>tt("/v1/wechat-capture/status")),$o=()=>ve(()=>tt("/v1/wechat-capture/streams")),Po=()=>ve(()=>ge("/v1/wechat-capture/cert/install")),Ro=()=>ve(()=>ge("/v1/wechat-capture/cert/uninstall")),zo=()=>ve(()=>ge("/v1/wechat-capture/start")),No=()=>ve(()=>ge("/v1/wechat-capture/stop")),ut=e=>ve(()=>ge("/v1/wechat-capture/record",e)),Io={class:"capture-panel"},Bo={class:"status-bar"},Mo={class:"status-left"},Oo={class:"status-row"},Eo={class:"status-row"},Ko={key:0,class:"proxy mono"},Ao={key:1,class:"status-hint"},Lo={key:0,class:"last-error"},To={key:1,class:"compliance"},Fo={class:"compliance-actions"},Do={class:"list-bar"},Uo={key:2,class:"empty"},jo={key:3,class:"stream-list"},Wo={class:"stream-head"},Ho=["title"],Vo=["title"],qo={class:"remark-row"},Go={class:"url mono"},Jo=V({__name:"WechatCapturePanel",emits:["recorded"],setup(e,{emit:s}){const t=s,i=Ue(),r=_(null),d=_([]),b=_(!1),p=_(!1),v=_(!1),$=_(!1),k=_(!1),z=_(!1),f=_(null),T=_(!1),M=_(!1),O=_({}),F=new Set;let D,K=!1;const W=x(()=>r.value?.cert_installed?"已安装":"未安装"),N=x(()=>!!r.value?.proxy_running),R=x(()=>r.value?.proxy_port?`127.0.0.1:${r.value.proxy_port}`:""),H=x(()=>d.value.length>0);function Z(C){return C instanceof Error?C.message:"操作失败"}function te(C){const m=O.value[C.id];return m!==void 0?m:[C.author,C.title].filter(Boolean).join(" / ")}function oe(C,m){O.value[C.id]=m,F.add(C.id)}let Y=!1;function P(){Y||D===void 0&&(D=window.setInterval(()=>{document.visibilityState==="visible"&&r.value?.proxy_running&&w()},3e3))}function a(){D!==void 0&&(window.clearInterval(D),D=void 0)}async function n(C=!1){p.value=!0;try{const m=await it();if(Y)return;r.value=m,b.value=!!m?.available,b.value?P():a()}catch(m){C||i.error(Z(m))}finally{p.value=!1}}async function w(C=!1){if(!K){K=!0,C&&(k.value=!0);try{const m=await $o();d.value=Array.isArray(m)?m:[]}catch(m){C&&i.error(Z(m))}finally{K=!1,C&&(k.value=!1)}}}function I(){document.visibilityState==="visible"&&(n(!0),r.value?.proxy_running&&w())}function A(C){if(!C){B();return}if(!M.value){T.value=!0;return}h()}async function h(){v.value=!0;try{r.value?.cert_installed||(r.value=await Po());const C=await zo();r.value=C,b.value=!!C?.available,T.value=!1,i.success("嗅探已启动,打开视频号直播间播放后即可看到捕获的流"),await w()}catch(C){i.error(Z(C))}finally{v.value=!1}}async function B(){$.value=!0;try{r.value=await No(),d.value=[],i.success("已停止嗅探,系统代理已还原")}catch(C){i.error(Z(C))}finally{$.value=!1}}async function q(){z.value=!0;try{r.value=await Ro(),i.success("临时根证书已卸载")}catch(C){i.error(Z(C))}finally{z.value=!1}}async function re(C){f.value=C.id;try{const m=F.has(C.id)?{stream_id:C.id,name:O.value[C.id]?.trim()||null}:{stream_id:C.id},U=await ut(m);t("recorded",U),i.success("已加入监控,正在检测开播")}catch(m){i.error(Z(m))}finally{f.value=null}}return De(()=>{document.addEventListener("visibilitychange",I),n()}),Ie(()=>{Y=!0,a(),document.removeEventListener("visibilitychange",I)}),(C,m)=>(l(),c("div",Io,[o("div",Bo,[o("div",Mo,[o("div",Oo,[m[4]||(m[4]=o("span",{class:"status-label"},"证书状态",-1)),y(u(Pe),{size:"small",round:"",bordered:!1,type:r.value?.cert_installed?"success":"warning"},{default:g(()=>[L(S(W.value),1)]),_:1},8,["type"]),r.value?.cert_installed?(l(),E(u(Q),{key:0,quaternary:"",size:"tiny",loading:z.value,onClick:q},{default:g(()=>[...m[3]||(m[3]=[L(" 卸载证书 ",-1)])]),_:1},8,["loading"])):G("",!0)]),o("div",Eo,[m[5]||(m[5]=o("span",{class:"status-label"},"自动嗅探",-1)),y(u(vn),{size:"small",value:N.value,loading:v.value||$.value||p.value,disabled:!b.value,"onUpdate:value":A},null,8,["value","loading","disabled"]),N.value&&R.value?(l(),c("span",Ko,S(R.value),1)):(l(),c("span",Ao,S(b.value?"未运行":"仅桌面端可用"),1))])]),N.value?(l(),E(u(Q),{key:0,type:"error",secondary:"",size:"small",loading:$.value,onClick:B},{default:g(()=>[...m[6]||(m[6]=[L(" 停止并还原网络 ",-1)])]),_:1},8,["loading"])):G("",!0)]),r.value?.last_error?(l(),c("div",Lo,S(r.value.last_error),1)):G("",!0),T.value?(l(),c("div",To,[m[10]||(m[10]=o("div",{class:"compliance-title"},"开启自动嗅探前请确认",-1)),m[11]||(m[11]=o("ol",{class:"compliance-list"},[o("li",null,"仅用于录制本人或已获授权的内容"),o("li",null,"会在本机安装临时自签根证书"),o("li",null,"仅解密视频号相关域名,其余流量透传,关闭即自动还原系统代理")],-1)),y(u(pn),{checked:M.value,"onUpdate:checked":m[0]||(m[0]=U=>M.value=U),size:"small"},{default:g(()=>[...m[7]||(m[7]=[L("我已阅读并确认以上说明",-1)])]),_:1},8,["checked"]),o("div",Fo,[y(u(Q),{size:"small",quaternary:"",disabled:v.value,onClick:m[1]||(m[1]=U=>T.value=!1)},{default:g(()=>[...m[8]||(m[8]=[L(" 取消 ",-1)])]),_:1},8,["disabled"]),y(u(Q),{size:"small",type:"primary",disabled:!M.value,loading:v.value,onClick:h},{default:g(()=>[...m[9]||(m[9]=[L(" 确认并启动 ",-1)])]),_:1},8,["disabled","loading"])])])):G("",!0),o("div",Do,[m[13]||(m[13]=o("span",{class:"list-title"},"捕获到的流",-1)),y(u(Q),{size:"tiny",quaternary:"",loading:k.value,onClick:m[2]||(m[2]=U=>w(!0))},{default:g(()=>[...m[12]||(m[12]=[L(" 刷新 ",-1)])]),_:1},8,["loading"])]),H.value?(l(),c("div",jo,[(l(!0),c(X,null,ze(d.value,U=>(l(),c("div",{key:U.id,class:"stream-item"},[o("div",Wo,[o("span",{class:"time",title:u(ot)(U.captured_at)},S(u(dn)(U.captured_at)),9,Ho),y(u(Pe),{size:"small",round:"",bordered:!1,type:U.protocol==="flv"?"success":"info"},{default:g(()=>[L(S(U.protocol.toUpperCase()),1)]),_:2},1032,["type"]),U.quality_hint?(l(),E(u(Pe),{key:0,size:"small",bordered:!1},{default:g(()=>[L(S(U.quality_hint),1)]),_:2},1024)):G("",!0),o("span",{class:"host",title:U.host},S(U.host),9,Vo),y(u(Q),{size:"small",type:"primary",secondary:"",loading:f.value===U.id,onClick:xe=>re(U)},{default:g(()=>[...m[14]||(m[14]=[L(" 一键录制 ",-1)])]),_:1},8,["loading","onClick"])]),o("div",qo,[y(u(ce),{size:"small",value:te(U),placeholder:"备注(主播 / 标题)",clearable:"","onUpdate:value":xe=>oe(U,xe)},null,8,["value","onUpdate:value"])]),o("div",Go,S(U.url_preview),1)]))),128))])):(l(),c("div",Uo," 进入视频号直播间并播放后回到本页,捕获到的流会出现在这里 "))]))}}),Xo=ke(Jo,[["__scopeId","data-v-f2517c38"]]),Yo={class:"modal-head"},Zo={class:"modal-title"},Qo={class:"modal-sub"},er={key:0,class:"desktop-hint"},tr={key:1,class:"desktop-hint"},nr={key:2,class:"mode-switch"},or={key:0,class:"capability-note"},rr={class:"capability-list"},ar={class:"modal-foot"},lr=V({__name:"AddStreamerModal",props:{show:{type:Boolean},entity:{}},emits:["update:show","saved"],setup(e,{emit:s}){const t=e,i=s,r=Ue(),d=fn(),b=_(null),p=_(!1),v=_("manual"),$=_(!1),k=_([]),z=_(!1),f=_({url:"",remark:"",filename_prefix:"",format:"ts",time_range:"",check_interval:""}),T=_([]),M=x(()=>T.value.filter(P=>P.blocks_probe)),O=x(()=>!!t.entity),F=x(()=>f.value.url.trim()?Ne(f.value.url.trim()):""),D=[{label:"TS(推荐,抗断流)",value:"ts"},{label:"FLV",value:"flv"},{label:"MP4",value:"mp4"},{label:"MKV",value:"mkv"}],K={url:[{required:!0,message:"请填写直播间地址",trigger:["blur","input"]},{validator:(P,a)=>{if(!a)return!0;const n=a.trim();if(!/^(https?|wxchannel-stream):\/\//i.test(n))return new Error("地址格式不正确,需要以 http://、https:// 或 wxchannel-stream:// 开头");try{return new URL(n),!0}catch{return new Error("地址格式不正确,请检查地址是否完整")}},trigger:["blur"]}],filename_prefix:[{validator:(P,a)=>{const n=cn(a);return n?new Error(n):!0},trigger:["blur","input"]}]};Be(()=>t.show,P=>{if(!P)return;const a=t.entity;f.value.url=a?.url??"",f.value.remark=a?.remark??"",f.value.filename_prefix=a?.filename_prefix??"",f.value.format=a?.format??"ts",f.value.time_range=a?.time_range??"",f.value.check_interval=String(a?.override?.event_loop_interval??""),v.value="manual",W(),!a&&!d&&R()});async function W(){if(!(T.value.length>0))try{T.value=await tn()}catch{T.value=[]}}function N(P){const a={...P??{}},n=f.value.check_interval.trim(),w=Number(n);return n&&Number.isFinite(w)&&w>0?a.event_loop_interval=Math.round(w):delete a.event_loop_interval,Object.keys(a).length>0?a:null}async function R(){z.value=!0;try{const P=await it();k.value=Array.isArray(P?.whitelist)?P.whitelist:[],$.value=!!P?.available}catch{k.value=[],$.value=!1}finally{z.value=!1}}function H(P,a){const n=P.toLowerCase();return a.some(w=>{const I=w.trim().toLowerCase();return I?n===I||n.endsWith(`.${I}`):!1})}function Z(P){const a=P.trim().toLowerCase();if(a.startsWith("wxchannel-stream://"))return!0;if(d||!/^https?:\/\//.test(a)||!/\.flv(?:[?#]|$)/.test(a)&&!/\.m3u8(?:[?#]|$)/.test(a)||k.value.length===0)return!1;try{return H(new URL(a).hostname,k.value)}catch{return!1}}function te(){i("update:show",!1)}async function oe(){try{await b.value?.validate()}catch{return}p.value=!0;try{const P=f.value.url.trim(),a=f.value.remark.trim();t.entity?(await Qt({...t.entity,url:P,remark:a,filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(t.entity.override)}),r.success("直播间已更新")):Z(P)?(await ut({url:P,name:a||null}),r.success("已加入监控,正在检测开播")):(await en({url:P,remark:a||Ne(P)+"直播间",filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(null)}),r.success("直播间已添加,正在检测开播状态")),i("saved"),te()}catch(P){r.error(P instanceof Error?P.message:"保存失败")}finally{p.value=!1}}function Y(){i("saved"),te()}return(P,a)=>(l(),E(u(Ot),{show:e.show,preset:"card",style:{width:"580px",maxWidth:"92vw"},bordered:!1,"mask-closable":!p.value,"onUpdate:show":a[8]||(a[8]=n=>i("update:show",n))},{header:g(()=>[o("div",Yo,[o("div",null,[o("div",Zo,S(O.value?"编辑直播间":"添加直播间"),1),o("div",Qo,S(O.value?"修改后会在下一次检测周期生效":"支持抖音、快手、B站、虎牙、斗鱼等平台的直播间地址"),1)]),F.value?(l(),E(u(Pe),{key:0,size:"small",round:"",bordered:!1,type:"success"},{default:g(()=>[L(" 已识别 "+S(F.value),1)]),_:1})):G("",!0)])]),footer:g(()=>[o("div",ar,[y(u(Q),{quaternary:"",disabled:p.value,onClick:te},{default:g(()=>[...a[13]||(a[13]=[L("取消",-1)])]),_:1},8,["disabled"]),O.value||v.value==="manual"?(l(),E(u(Q),{key:0,type:"primary",loading:p.value,onClick:oe},{default:g(()=>[L(S(O.value?"保存修改":"开始监控"),1)]),_:1},8,["loading"])):G("",!0)])]),default:g(()=>[O.value?G("",!0):(l(),c(X,{key:0},[u(d)?(l(),c("div",er," 视频号请直接粘贴直播流地址;自动嗅探请改用桌面客户端。 ")):G("",!0),!u(d)&&!z.value&&!$.value?(l(),c("div",tr," 自动嗅探仅支持桌面端,服务端部署请直接粘贴流地址 ")):G("",!0),u(d)?G("",!0):(l(),c("div",nr,[o("button",{class:ue(["mode-pill",{active:v.value==="manual"}]),onClick:a[0]||(a[0]=n=>v.value="manual")}," 手动粘贴流地址 ",2),$.value?(l(),c("button",{key:0,class:ue(["mode-pill",{active:v.value==="capture"}]),onClick:a[1]||(a[1]=n=>v.value="capture")}," 自动嗅探(桌面端) ",2)):G("",!0)]))],64)),!u(d)&&!O.value&&v.value==="capture"&&$.value?(l(),E(Xo,{key:1,onRecorded:Y})):(l(),E(u(Et),{key:2,ref_key:"formRef",ref:b,model:f.value,rules:K,"label-placement":"top","require-mark-placement":"right-hanging"},{default:g(()=>[y(u(me),{label:"直播间地址",path:"url"},{feedback:g(()=>[...a[9]||(a[9]=[o("div",{class:"hint"}," 抖音/快手/B站/虎牙/斗鱼/六间房可直接粘贴直播间地址;抖音分享短链会自动换成长期房间地址。 在场的分享链接只对应这一场直播,链接失效后需要粘贴主播当前开播时的新链接 ",-1),o("div",{class:"hint"}," 视频号请粘贴 *.flv / *.m3u8 流地址(可从视频号助手或抓包工具获取);视频号直链必须是视频号 CDN 域名,其他平台的 .flv/.m3u8 直链照旧直接添加 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.url,placeholder:"https://live.douyin.com/123456789",clearable:"","onUpdate:value":a[2]||(a[2]=n=>f.value.url=n)},null,8,["value"])]),_:1}),y(u(Mn),{size:14,class:"form-row",style:{width:"100%"}},{default:g(()=>[y(u(me),{label:"备注名称",path:"remark",style:{flex:"1"}},{default:g(()=>[y(u(ce),{value:f.value.remark,placeholder:"例如:某某主播",clearable:"","onUpdate:value":a[3]||(a[3]=n=>f.value.remark=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制格式",path:"format",style:{width:"190px"}},{default:g(()=>[y(u(Gt),{value:f.value.format,options:D,"onUpdate:value":a[4]||(a[4]=n=>f.value.format=n??"")},null,8,["value"])]),_:1})]),_:1}),y(u(me),{label:"文件名前缀",path:"filename_prefix"},{default:g(()=>[y(u(ce),{value:f.value.filename_prefix,placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S;留空使用全局设置",clearable:"","onUpdate:value":a[5]||(a[5]=n=>f.value.filename_prefix=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制时间段",path:"time_range"},{default:g(()=>[y(u(ce),{value:f.value.time_range,placeholder:"可选,例如 20:00:00-23:59:59;留空表示全天监控",clearable:"","onUpdate:value":a[6]||(a[6]=n=>f.value.time_range=n)},null,8,["value"])]),_:1}),y(u(me),{label:"检查间隔(秒)",path:"check_interval"},{feedback:g(()=>[...a[10]||(a[10]=[o("div",{class:"hint"}," 多久查一次这个房间有没有开播(默认沿用全局设置)。查询连续失败时监控会在此基础上 自动退避(1x→2x→4x→8x 封顶),不会把失败当成下播。 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.check_interval,placeholder:"可选,例如 30;留空沿用全局设置",clearable:"","onUpdate:value":a[7]||(a[7]=n=>f.value.check_interval=n)},null,8,["value"])]),_:1}),M.value.length?(l(),c("div",or,[a[11]||(a[11]=o("div",{class:"capability-title"},"这些平台当前无法检测开播(合规限制)",-1)),o("ul",rr,[(l(!0),c(X,null,ze(M.value,n=>(l(),c("li",{key:n.platform},[o("strong",null,S(n.platform),1),L(":"+S(n.detail),1)]))),128))]),a[12]||(a[12]=o("div",{class:"capability-hint"}," 仍可添加,但房间会显示「查询失败」并给出原因;要真正录制请改用受支持平台, 或按平台官方授权链路接入。 ",-1))])):G("",!0)]),_:1},8,["model"]))]),_:1},8,["show","mask-closable"]))}}),sr=ke(lr,[["__scopeId","data-v-0fb63d84"]]),ir={class:"page"},ur={class:"page-head"},dr={class:"page-sub"},cr={key:0,class:"mono version"},pr={class:"toolbar"},vr={key:0,class:"stat-grid"},fr={key:1,class:"compact-summary"},mr={class:"list-bar"},hr={class:"filters"},wr=["onClick"],yr={key:2,class:"loading"},br={key:3,class:"error-panel"},gr={class:"error-msg"},kr={key:0,class:"card-grid"},xr={key:1,class:"no-match"},_r=V({__name:"StreamersView",setup(e){const s=Ue(),t=Kt(),i=_([]),r=_(null),d=_(!0),b=_(!1),p=_(!1),v=_(""),$=_(""),k=_("all"),z=_(!1),f=_(null);let T;const M=x(()=>{const a=i.value;return{total:a.length,live:a.filter(n=>n.status==="Working").length,pending:a.filter(n=>n.status==="Pending").length,paused:a.filter(n=>n.status==="Pause"||n.status==="StreamExpired").length,probeFailed:a.filter(n=>n.status==="ProbeFailed").length}}),O=x(()=>{const a=$.value.trim().toLowerCase();return i.value.filter(n=>k.value==="live"&&n.status!=="Working"||k.value==="paused"&&n.status!=="Pause"&&n.status!=="StreamExpired"||k.value==="failed"&&n.status!=="ProbeFailed"||k.value==="idle"&&(n.status==="Working"||n.status==="Pause"||n.status==="StreamExpired"||n.status==="ProbeFailed")?!1:a?n.remark.toLowerCase().includes(a)||n.url.toLowerCase().includes(a)||(n.live_streamer_name??"").toLowerCase().includes(a):!0).sort((n,w)=>{const I=A=>A.status==="Working"?0:A.status==="Pending"?1:A.status==="ProbeFailed"?2:3;return I(n)-I(w)||w.id-n.id})});function F(){p.value=window.innerWidth<640}let D=!1,K=!1,W=!1;async function N(a=!1){if(!K){if(D){a||(W=!0);return}D=!0,a?b.value=!0:d.value=i.value.length===0;try{const[n,w]=await Promise.all([nn(),on().catch(()=>null)]);i.value=n,w&&(r.value=w),v.value=""}catch(n){v.value=n instanceof Error?n.message:"加载失败"}finally{D=!1,d.value=!1,b.value=!1,W&&!K&&(W=!1,N(!0))}}}function R(a){k.value=a}function H(){f.value=null,z.value=!0}function Z(a){f.value=a,z.value=!0}async function te(a){try{await rn(a.id);const n=a.status==="Pause"||a.status==="StreamExpired";s.success(n?"已恢复监控":"已暂停监控"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"操作失败")}}function oe(a){t.warning({title:"删除直播间",content:`确定删除「${a.remark||a.url}」?已录制的文件不会被删除。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await an(a.id),s.success("已删除"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"删除失败")}}})}function Y(){document.visibilityState==="visible"&&N(!0)}De(async()=>{F(),window.addEventListener("resize",F),await N(),!K&&(T=window.setInterval(()=>{document.visibilityState==="visible"&&N(!0)},1e4),document.addEventListener("visibilitychange",Y))}),Ie(()=>{K=!0,T&&window.clearInterval(T),document.removeEventListener("visibilitychange",Y),window.removeEventListener("resize",F)});const P=[{label:"全部",value:"all"},{label:"录制中",value:"live"},{label:"查询失败",value:"failed"},{label:"已暂停",value:"paused"},{label:"未开播",value:"idle"}];return(a,n)=>(l(),c("div",ir,[o("div",ur,[o("div",null,[n[6]||(n[6]=o("h1",{class:"page-title"},"直播监控",-1)),o("p",dr,[n[5]||(n[5]=L(" 添加直播间后自动检测开播并录制,下播自动收尾 ",-1)),r.value?.version?(l(),c("span",cr,"· 服务 v"+S(r.value.version),1)):G("",!0)])]),o("div",pr,[y(u(Q),{quaternary:"",circle:"",loading:b.value,"aria-label":"刷新",onClick:n[0]||(n[0]=w=>N(!0))},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Xe))]),_:1})]),_:1},8,["loading"]),y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Ge))]),_:1})]),default:g(()=>[n[7]||(n[7]=L(" 添加直播间 ",-1))]),_:1})])]),p.value?G("",!0):(l(),c("div",vr,[y(we,{label:"监控直播间",value:M.value.total,hint:"正在值守的直播间总数",icon:u(mn),tone:"accent"},null,8,["value","icon"]),y(we,{label:"正在录制",value:M.value.live,hint:"当前有直播流正在写盘",icon:u(Vt),tone:"live"},null,8,["value","icon"]),y(we,{label:"检测中",value:M.value.pending,hint:"等待平台返回开播状态",icon:u(Xe)},null,8,["value","icon"]),y(we,{label:"查询失败",value:M.value.probeFailed,hint:"平台没返回开播状态(不等于下播),卡片上带原因与建议",icon:u(En),tone:M.value.probeFailed>0?"warn":"default"},null,8,["value","icon","tone"]),y(we,{label:"上传任务",value:r.value?.uploading??0,hint:"已配置自动上传时显示",icon:u(An)},null,8,["value","icon"])])),p.value?(l(),c("div",fr,[o("span",null,[n[8]||(n[8]=L("监控 ",-1)),o("b",null,S(M.value.total),1)]),o("span",null,[n[9]||(n[9]=L("录制中 ",-1)),o("b",null,S(M.value.live),1)]),o("span",null,[n[10]||(n[10]=L("检测中 ",-1)),o("b",null,S(M.value.pending),1)]),o("span",null,[n[11]||(n[11]=L("异常 ",-1)),o("b",null,S(M.value.probeFailed),1)])])):G("",!0),o("div",mr,[o("div",hr,[(l(),c(X,null,ze(P,w=>o("button",{key:w.value,class:ue(["pill",{active:k.value===w.value}]),onClick:I=>R(w.value)},S(w.label),11,wr)),64))]),y(u(ce),{value:$.value,"onUpdate:value":n[1]||(n[1]=w=>$.value=w),class:"search",placeholder:"搜索备注、主播名或地址",clearable:""},{prefix:g(()=>[y(u(de),{size:16},{default:g(()=>[y(u(hn))]),_:1})]),_:1},8,["value"])]),d.value?(l(),c("div",yr,[y(u(Ut),{size:"large"}),n[12]||(n[12]=o("span",null,"正在连接录制服务…",-1))])):v.value?(l(),c("div",br,[n[14]||(n[14]=o("div",{class:"error-title"},"无法连接录制服务",-1)),o("div",gr,S(v.value),1),y(u(Q),{size:"small",onClick:n[2]||(n[2]=w=>N())},{default:g(()=>[...n[13]||(n[13]=[L("重试",-1)])]),_:1})])):i.value.length===0?(l(),E(Wt,{key:4,title:"还没有添加直播间",description:"粘贴抖音直播间地址即可开始监控。主播开播后会自动录制,下播后按场次归档。"},{default:g(()=>[y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Ge))]),_:1})]),default:g(()=>[n[15]||(n[15]=L(" 添加第一个直播间 ",-1))]),_:1})]),_:1})):(l(),c(X,{key:5},[O.value.length?(l(),c("div",kr,[(l(!0),c(X,null,ze(O.value,w=>(l(),E(So,{key:w.id,streamer:w,onToggle:te,onEdit:Z,onDelete:oe},null,8,["streamer"]))),128))])):(l(),c("div",xr," 没有匹配的直播间,换个关键词或筛选条件试试。 "))],64)),y(sr,{show:z.value,"onUpdate:show":n[3]||(n[3]=w=>z.value=w),entity:f.value,onSaved:n[4]||(n[4]=w=>N(!0))},null,8,["show","entity"])]))}}),jr=ke(_r,[["__scopeId","data-v-cdfe01c6"]]);export{jr as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-X3e6akRp.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-X3e6akRp.js new file mode 100644 index 00000000..d7acf6e0 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-X3e6akRp.js @@ -0,0 +1,117 @@ +import{I as ce}from"./Input-CQNdwpgx.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-FGi6cKHs.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{F as Kt,a as me,u as At,A as Je}from"./AddOutline-AWO4O9Bs.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-DzcW9fCu.js";import{S as jt}from"./Spin-CYz55qnY.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-CALNDdv7.js";import{T as Vt,P as qt}from"./PulseOutline-BTyoewQd.js";import{h as Xe,c as Gt,T as Pe,S as Jt}from"./Select-BIQZTWeg.js";import{u as Xt}from"./use-compitable-Cc7HI9yh.js";import{a as je}from"./engine-state-C1ri-urc.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-Crtjgplw.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{v as pn}from"./filename-template-DBJXvN0y.js";import{C as vn}from"./CheckboxGroup-CBTKxgig.js";import{S as fn}from"./Switch-zhsy3xi9.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-DZpFNqp3.js";import{R as Ye}from"./RefreshOutline-C3W18lVY.js";import{S as wn}from"./SearchOutline-rYjpTFrE.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Xe({target:B},"dropdownOption")&&!Xe({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[Ct(),ne("dropdown-option",` + position: relative; + `,[fe("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[fe("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),ne("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[fe("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),He("disabled",[ae("pending",` + color: var(--n-option-text-color-hover); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),fe("&::before","background-color: var(--n-option-color-hover);")]),ae("active",` + color: var(--n-option-text-color-active); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-active); + `),fe("&::before","background-color: var(--n-option-color-active);")]),ae("child-active",` + color: var(--n-option-text-color-child-active); + `,[se("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),ae("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),ae("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[se("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[ae("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),se("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[ae("show-icon",` + width: var(--n-option-icon-prefix-width); + `),ne("icon",` + font-size: var(--n-option-icon-size); + `)]),se("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),se("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[ae("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),ne("icon",` + font-size: var(--n-option-icon-size); + `)]),ne("dropdown-menu","pointer-events: all;")]),ne("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),ne("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),ne("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),fe(">",[ne("scrollbar",` + height: inherit; + max-height: inherit; + `)]),He("scrollable",` + padding: var(--n-padding); + `),ae("scrollable",[se("content",` + padding: var(--n-padding); + `)])]);const Rn={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:String,inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},zn=Object.keys(ot),Nn={...ot,...Rn,...Oe.props};var In=V({name:"Dropdown",inheritAttrs:!1,props:Nn,setup(e){const s=_(!1),t=Xt(le(e,"show"),s),i=x(()=>{const{keyField:w,childrenField:I}=e;return Gt(e.options,{getKey(A){return A[w]},getDisabled(A){return A.disabled===!0},getIgnored(A){return A.type==="divider"||A.type==="render"},getChildren(A){return A[I]}})}),r=x(()=>i.value.treeNodes),d=_(null),b=_(null),p=_(null),v=x(()=>d.value??b.value??p.value??null),$=x(()=>i.value.getPath(v.value).keyPath),k=x(()=>i.value.getPath(e.value).keyPath),z=$e(()=>e.keyboard&&t.value);yn({keydown:{ArrowUp:{prevent:!0,handler:Z},ArrowRight:{prevent:!0,handler:H},ArrowDown:{prevent:!0,handler:te},ArrowLeft:{prevent:!0,handler:R},Enter:{prevent:!0,handler:oe},Escape:N}},z);const{mergedClsPrefixRef:f,inlineThemeDisabled:T,mergedComponentPropsRef:M}=tt(e),O=x(()=>e.size||M?.value?.Dropdown?.size||"medium"),F=Oe("Dropdown","-dropdown",Pn,Pt,e,f);he(Ee,{labelFieldRef:le(e,"labelField"),childrenFieldRef:le(e,"childrenField"),renderLabelRef:le(e,"renderLabel"),renderIconRef:le(e,"renderIcon"),hoverKeyRef:d,keyboardKeyRef:b,lastToggledSubmenuKeyRef:p,pendingKeyPathRef:$,activeKeyPathRef:k,animatedRef:le(e,"animated"),mergedShowRef:t,nodePropsRef:le(e,"nodeProps"),renderOptionRef:le(e,"renderOption"),menuPropsRef:le(e,"menuProps"),doSelect:D,doUpdateShow:K}),Be(t,w=>{!e.animated&&!w&&W()});function D(w,I){const{onSelect:A}=e;A&&Ke(A,w,I)}function K(w){const{"onUpdate:show":I,onUpdateShow:A}=e;I&&Ke(I,w),A&&Ke(A,w),s.value=w}function W(){d.value=null,b.value=null,p.value=null}function N(){K(!1)}function R(){P("left")}function H(){P("right")}function Z(){P("up")}function te(){P("down")}function oe(){const w=Y();w?.isLeaf&&t.value&&(D(w.key,w.rawNode),K(!1))}function Y(){const{value:w}=i,{value:I}=v;return!w||I===null?null:w.getNode(I)??null}function P(w){const{value:I}=v,{value:{getFirstAvailableNode:A}}=i;let h=null;if(I===null){const B=A();B!==null&&(h=B.key)}else{const B=Y();if(B){let q;switch(w){case"down":q=B.getNext();break;case"up":q=B.getPrev();break;case"right":q=B.getChild();break;case"left":q=B.getParent()}q&&(h=q.key)}}h!==null&&(d.value=null,b.value=h)}const a=x(()=>{const{inverted:w}=e,I=O.value,{common:{cubicBezierEaseInOut:A},self:h}=F.value,{padding:B,dividerColor:q,borderRadius:re,optionOpacityDisabled:C,[ie("optionIconSuffixWidth",I)]:m,[ie("optionSuffixWidth",I)]:U,[ie("optionIconPrefixWidth",I)]:xe,[ie("optionPrefixWidth",I)]:ct,[ie("fontSize",I)]:pt,[ie("optionHeight",I)]:vt,[ie("optionIconSize",I)]:ft}=h,j={"--n-bezier":A,"--n-font-size":pt,"--n-padding":B,"--n-border-radius":re,"--n-option-height":vt,"--n-option-prefix-width":ct,"--n-option-icon-prefix-width":xe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":m,"--n-option-icon-size":ft,"--n-divider-color":q,"--n-option-opacity-disabled":C};return w?(j["--n-color"]=h.colorInverted,j["--n-option-color-hover"]=h.optionColorHoverInverted,j["--n-option-color-active"]=h.optionColorActiveInverted,j["--n-option-text-color"]=h.optionTextColorInverted,j["--n-option-text-color-hover"]=h.optionTextColorHoverInverted,j["--n-option-text-color-active"]=h.optionTextColorActiveInverted,j["--n-option-text-color-child-active"]=h.optionTextColorChildActiveInverted,j["--n-prefix-color"]=h.prefixColorInverted,j["--n-suffix-color"]=h.suffixColorInverted,j["--n-group-header-text-color"]=h.groupHeaderTextColorInverted):(j["--n-color"]=h.color,j["--n-option-color-hover"]=h.optionColorHover,j["--n-option-color-active"]=h.optionColorActive,j["--n-option-text-color"]=h.optionTextColor,j["--n-option-text-color-hover"]=h.optionTextColorHover,j["--n-option-text-color-active"]=h.optionTextColorActive,j["--n-option-text-color-child-active"]=h.optionTextColorChildActive,j["--n-prefix-color"]=h.prefixColor,j["--n-suffix-color"]=h.suffixColor,j["--n-group-header-text-color"]=h.groupHeaderTextColor),j}),n=T?Rt("dropdown",x(()=>`${O.value[0]}${e.inverted?"i":""}`),a,e):void 0;return{mergedClsPrefix:f,mergedTheme:F,mergedSize:O,tmNodes:r,mergedShow:t,handleAfterLeave:()=>{e.animated&&W()},doUpdateShow:K,cssVars:T?void 0:a,themeClass:n?.themeClass,onRender:n?.onRender}},render(){const e=(i,r,d,b,p)=>{const{mergedClsPrefix:v,menuProps:$}=this;this.onRender?.();const k=$?.(void 0,this.tmNodes.map(f=>f.rawNode))||{},z={ref:Wt(r),class:[i,`${v}-dropdown`,`${v}-dropdown--${this.mergedSize}-size`,this.themeClass],clsPrefix:v,tmNodes:this.tmNodes,style:[...d,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:b,onMouseleave:p};return Me(it,be(this.$attrs,z,k))},{mergedTheme:s}=this,t={show:this.mergedShow,theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return l(),E(Ut,$t(this.$props,zn,t),{_:1,trigger:Qe(()=>this.$slots.default?.())},16)}});let Ae;function Bn(){if(!zt)return!0;if(Ae===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const s=e.scrollHeight===1;return document.body.removeChild(e),Ae=s}return Ae}const Mn={...Oe.props,align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}};var On=V({name:"Space",props:Mn,setup(e){const{mergedClsPrefixRef:s,mergedRtlRef:t,mergedComponentPropsRef:i}=tt(e),r=x(()=>e.size??i?.value?.Space?.size??"medium"),d=Oe("Space","-space",void 0,Mt,e,s),b=Bt("Space",t,s);return{useGap:Bn(),rtlEnabled:b,mergedClsPrefix:s,margin:x(()=>{const p=r.value;if(Array.isArray(p))return{horizontal:p[0],vertical:p[1]};if(typeof p=="number")return{horizontal:p,vertical:p};const{self:{[ie("gap",p)]:v}}=d.value,{row:$,col:k}=Ot(v);return{horizontal:qe(k),vertical:qe($)}})}},render(){const{vertical:e,reverse:s,align:t,inline:i,justify:r,itemClass:d,itemStyle:b,margin:p,wrap:v,mergedClsPrefix:$,rtlEnabled:k,useGap:z,wrapItem:f,internalUseGap:T}=this,M=Nt(gn(this),!1);if(!M.length)return null;const O=`${p.horizontal}px`,F=`${p.horizontal/2}px`,D=`${p.vertical}px`,K=`${p.vertical/2}px`,W=M.length-1,N=r.startsWith("space-");return l(),c("div",{role:"none",class:ee([`${$}-space`,k&&`${$}-space--rtl`]),style:Ve({display:i?"inline-flex":"flex",flexDirection:e&&!s?"column":e&&s?"column-reverse":!e&&s?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!v||e?"nowrap":"wrap",marginTop:z||e?"":`-${K}`,marginBottom:z||e?"":`-${K}`,alignItems:t,gap:z?`${p.vertical}px ${p.horizontal}px`:""})},[!f&&(z||T)?(l(),c(X,{key:0},[J(()=>M)],64)):(l(),c(X,{key:1},[J(()=>M.map((R,H)=>R.type===It?R:(l(),c("div",{key:1,role:"none",class:ee(d),style:Ve([b,{maxWidth:"100%"},z?"":e?{marginBottom:H!==W?D:""}:k?{marginLeft:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginRight:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}:{marginRight:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginLeft:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}])},[J(()=>R)],6))))],64))],6)}});const En={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Kn=V({name:"AlertCircleOutline",render:function(s,t){return l(),c("svg",En,t[0]||(t[0]=[o("path",{d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{d:"M250.26 166.05L256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 367.91a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),An={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ln=V({name:"CloudUploadOutline",render:function(s,t){return l(),c("svg",An,t[0]||(t[0]=[o("path",{d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 255.79l-64-64l-64 64"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 448.21V207.79"},null,-1)]))}}),Tn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Fn=V({name:"EllipsisHorizontal",render:function(s,t){return l(),c("svg",Tn,t[0]||(t[0]=[o("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"416",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"96",cy:"256",r:"48",fill:"currentColor"},null,-1)]))}}),Dn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Un=V({name:"OpenOutline",render:function(s,t){return l(),c("svg",Dn,t[0]||(t[0]=[o("path",{d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 64h112v112"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M224 288L440 72"},null,-1)]))}}),jn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Wn=V({name:"PauseOutline",render:function(s,t){return l(),c("svg",jn,t[0]||(t[0]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 96h16v320h-16z"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 96h16v320h-16z"},null,-1)]))}}),Hn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Vn=V({name:"PlayOutline",render:function(s,t){return l(),c("svg",Hn,t[0]||(t[0]=[o("path",{d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),qn={key:0,class:"live-dot"},Gn={key:1,class:"plain-dot"},Jn=V({__name:"StatusBadge",props:{status:{default:""},size:{default:"md"}},setup(e){const s=e,t=x(()=>{switch(s.status){case"Working":return{label:"直播中",tone:"live",dot:!0};case"Pending":return{label:"检测中",tone:"info",dot:!1};case"Pause":return{label:"已暂停",tone:"warn",dot:!1};case"OutOfSchedule":return{label:"非录播时间",tone:"muted",dot:!1};case"TitleExcluded":return{label:"标题已排除",tone:"warn",dot:!1};case"StreamExpired":return{label:"流已过期",tone:"warn",dot:!1};default:return{label:"未开播",tone:"muted",dot:!1}}});return(i,r)=>(l(),c("span",{class:ue(["badge",[t.value.tone,e.size]])},[t.value.dot?(l(),c("span",qn)):(l(),c("span",Gn)),L(" "+S(t.value.label),1)],2))}}),Xn=ke(Jn,[["__scopeId","data-v-7e3eb802"]]);function Yn(e,s=!1){if(typeof e!="string")return!1;const t=e.trim();if(!t||t!==e||/[\u0000-\u0020\u007f]/.test(t))return!1;const i=/^([a-z][a-z0-9+.-]*):\/\//i.exec(t);if(!i)return!1;const r=i[1].toLowerCase();if(r!=="http"&&r!=="https"&&!(s&&r==="wxchannel-stream"))return!1;try{return new URL(t).protocol===r+":"}catch{return!1}}const Le=_(Date.now());let ye,Ce=0;function Zn(){return De(()=>{Ce+=1,ye===void 0&&(Le.value=Date.now(),ye=window.setInterval(()=>{Le.value=Date.now()},1e3))}),Ie(()=>{Ce-=1,Ce<=0&&ye!==void 0&&(window.clearInterval(ye),ye=void 0,Ce=0)}),Le}const Qn=["src"],eo={key:1,class:"cover-fallback"},to={class:"platform-glyph"},no={class:"cover-top"},oo=["title"],ro={class:"platform-chip"},ao={class:"cover-bottom"},lo={class:"cover-title"},so={class:"cover-sub"},io={class:"body"},uo={class:"meta-row"},co={class:"meta"},po={class:"meta-value mono"},vo={class:"meta"},fo=["title"],mo={class:"meta-value mono"},ho={class:"meta"},wo={class:"meta-value mono"},yo={class:"meta",title:"开播检查间隔(秒)。连续查询失败会在此基础上按 1x→2x→4x→8x 退避"},bo=["title"],go={class:"probe-text"},ko={key:1,class:"probe-advice"},xo={class:"actions"},_o={class:"ghost-btn","aria-label":"更多操作"},So=V({__name:"StreamerCard",props:{streamer:{}},emits:["toggle","edit","delete"],setup(e,{emit:s}){const t=e,i=s,r=_(!1),d=x(()=>t.streamer.status==="Working"),b=x(()=>t.streamer.status==="Pause"||t.streamer.status==="StreamExpired"),p=x(()=>t.streamer.probe??null),v=x(()=>!!p.value&&!d.value),$=x(()=>p.value?Yt(p.value):""),k=x(()=>p.value?Zt(p.value):""),z=x(()=>d.value&&t.streamer.live_cover_url&&!r.value?Qt(t.streamer.id):""),f=x(()=>t.streamer.remark||t.streamer.live_streamer_name||"未命名直播间"),T=x(()=>t.streamer.live_streamer_name||t.streamer.url),M=Zn(),O=x(()=>{const N=t.streamer.session_started_at;return!d.value||!N?null:Math.max(0,M.value-N)}),F=x(()=>t.streamer.session_started_at?`本场开录于 ${rt(t.streamer.session_started_at)}`:""),D=[{label:"编辑直播间",key:"edit"},{label:"删除",key:"delete"}];function K(N){N==="edit"&&i("edit",t.streamer),N==="delete"&&i("delete",t.streamer)}function W(){Yn(t.streamer.url,!0)&&window.open(t.streamer.url,"_blank","noopener")}return(N,R)=>(l(),c("article",{class:ue(["card fade-up",{live:d.value}])},[o("div",{class:ue(["cover",u(sn)(e.streamer.url)])},[z.value?(l(),c("img",{key:0,class:"cover-img",src:z.value,alt:"",onError:R[0]||(R[0]=H=>r.value=!0)},null,40,Qn)):(l(),c("div",eo,[o("span",to,S(u(Ne)(e.streamer.url)),1)])),R[2]||(R[2]=o("div",{class:"cover-shade"},null,-1)),o("div",no,[v.value?(l(),c("span",{key:1,class:"probe-badge",title:k.value},S($.value)+" ×"+S(p.value.failures),9,oo)):(l(),E(Xn,{key:0,status:e.streamer.status,size:"sm"},null,8,["status"])),o("span",ro,S(u(Ne)(e.streamer.url)),1)]),o("div",ao,[o("div",lo,S(f.value),1),o("div",so,S(T.value),1)])],2),o("div",io,[o("div",uo,[o("div",co,[R[3]||(R[3]=o("span",{class:"meta-label"},"格式",-1)),o("span",po,S(e.streamer.format||"ts"),1)]),o("div",vo,[R[4]||(R[4]=o("span",{class:"meta-label"},"实时码率",-1)),o("span",{class:ue(["meta-value mono",{hot:d.value}])},S(d.value?u(un)(e.streamer.live_bytes_per_sec):"—"),3)]),o("div",{class:"meta",title:F.value},[R[5]||(R[5]=o("span",{class:"meta-label"},"已录制",-1)),o("span",mo,S(O.value!=null?u(dn)(Math.max(O.value,1e3)):"—"),1)],8,fo),o("div",ho,[R[6]||(R[6]=o("span",{class:"meta-label"},"场次",-1)),o("span",wo,S(e.streamer.session_id??"—"),1)]),o("div",yo,[R[7]||(R[7]=o("span",{class:"meta-label"},"间隔",-1)),o("span",{class:ue(["meta-value mono",{hot:v.value}])},S(e.streamer.check_interval_secs?`${e.streamer.check_interval_secs}s`:"—"),3)])]),v.value?(l(),c("div",{key:0,class:"probe-note",title:k.value},[R[8]||(R[8]=o("span",{class:"probe-dot"},null,-1)),o("span",go,S($.value)+":"+S(p.value.message),1)],8,bo)):G("",!0),v.value&&p.value.hint?(l(),c("div",ko,S(p.value.hint),1)):G("",!0),o("div",xo,[y(u(Q),{size:"small",type:b.value?"primary":"default",secondary:"",class:"main-action",disabled:!u(je),onClick:R[1]||(R[1]=H=>i("toggle",e.streamer))},{icon:g(()=>[y(u(de),null,{default:g(()=>[b.value?(l(),E(u(Vn),{key:0})):(l(),E(u(Wn),{key:1}))]),_:1})]),default:g(()=>[L(" "+S(b.value?"恢复监控":"暂停监控"),1)]),_:1},8,["type","disabled"]),y(u(Vt),{trigger:"hover"},{trigger:g(()=>[o("button",{class:"ghost-btn","aria-label":"打开直播间",onClick:W},[y(u(de),{size:17},{default:g(()=>[y(u(Un))]),_:1})])]),default:g(()=>[R[9]||(R[9]=L(" 在浏览器打开直播间 ",-1))]),_:1}),y(u(In),{options:D,trigger:"click",onSelect:K},{default:g(()=>[o("button",_o,[y(u(de),{size:18},{default:g(()=>[y(u(Fn))]),_:1})])]),_:1})])])],2))}}),Co=ke(So,[["__scopeId","data-v-8c08263d"]]);function $o(e){const s=e.trim();if(!s.startsWith("{"))return null;try{const t=JSON.parse(s);if(!t||typeof t!="object")return null;const i=t,r=i.detail??i.error??i.message;return typeof r=="string"&&r.trim()?r:null}catch{return null}}async function ve(e){try{return await e()}catch(s){if(s instanceof Ge){const t=$o(s.message);if(t)throw new Ge(s.status,t,s.authSource)}throw s}}const ut=()=>ve(()=>nt("/v1/wechat-capture/status")),Po=()=>ve(()=>nt("/v1/wechat-capture/streams")),Ro=()=>ve(()=>ge("/v1/wechat-capture/cert/install")),zo=()=>ve(()=>ge("/v1/wechat-capture/cert/uninstall")),No=()=>ve(()=>ge("/v1/wechat-capture/start")),Io=()=>ve(()=>ge("/v1/wechat-capture/stop")),dt=e=>ve(()=>ge("/v1/wechat-capture/record",e)),Bo={class:"capture-panel"},Mo={class:"status-bar"},Oo={class:"status-left"},Eo={class:"status-row"},Ko={class:"status-row"},Ao={key:0,class:"proxy mono"},Lo={key:1,class:"status-hint"},To={key:0,class:"last-error"},Fo={key:1,class:"compliance"},Do={class:"compliance-actions"},Uo={class:"list-bar"},jo={key:2,class:"empty"},Wo={key:3,class:"stream-list"},Ho={class:"stream-head"},Vo=["title"],qo=["title"],Go={class:"remark-row"},Jo={class:"url mono"},Xo=V({__name:"WechatCapturePanel",emits:["recorded"],setup(e,{emit:s}){const t=s,i=Ue(),r=_(null),d=_([]),b=_(!1),p=_(!1),v=_(!1),$=_(!1),k=_(!1),z=_(!1),f=_(null),T=_(!1),M=_(!1),O=_({}),F=new Set;let D,K=!1;const W=x(()=>r.value?.cert_installed?"已安装":"未安装"),N=x(()=>!!r.value?.proxy_running),R=x(()=>r.value?.proxy_port?`127.0.0.1:${r.value.proxy_port}`:""),H=x(()=>d.value.length>0);function Z(C){return C instanceof Error?C.message:"操作失败"}function te(C){const m=O.value[C.id];return m!==void 0?m:[C.author,C.title].filter(Boolean).join(" / ")}function oe(C,m){O.value[C.id]=m,F.add(C.id)}let Y=!1;function P(){Y||D===void 0&&(D=window.setInterval(()=>{document.visibilityState==="visible"&&r.value?.proxy_running&&w()},3e3))}function a(){D!==void 0&&(window.clearInterval(D),D=void 0)}async function n(C=!1){p.value=!0;try{const m=await ut();if(Y)return;r.value=m,b.value=!!m?.available,b.value?P():a()}catch(m){C||i.error(Z(m))}finally{p.value=!1}}async function w(C=!1){if(!K){K=!0,C&&(k.value=!0);try{const m=await Po();d.value=Array.isArray(m)?m:[]}catch(m){C&&i.error(Z(m))}finally{K=!1,C&&(k.value=!1)}}}function I(){document.visibilityState==="visible"&&(n(!0),r.value?.proxy_running&&w())}function A(C){if(!C){B();return}if(!M.value){T.value=!0;return}h()}async function h(){v.value=!0;try{r.value?.cert_installed||(r.value=await Ro());const C=await No();r.value=C,b.value=!!C?.available,T.value=!1,i.success("嗅探已启动,打开视频号直播间播放后即可看到捕获的流"),await w()}catch(C){i.error(Z(C))}finally{v.value=!1}}async function B(){$.value=!0;try{r.value=await Io(),d.value=[],i.success("已停止嗅探,系统代理已还原")}catch(C){i.error(Z(C))}finally{$.value=!1}}async function q(){z.value=!0;try{r.value=await zo(),i.success("临时根证书已卸载")}catch(C){i.error(Z(C))}finally{z.value=!1}}async function re(C){f.value=C.id;try{const m=F.has(C.id)?{stream_id:C.id,name:O.value[C.id]?.trim()||null}:{stream_id:C.id},U=await dt(m);t("recorded",U),i.success("已加入监控,正在检测开播")}catch(m){i.error(Z(m))}finally{f.value=null}}return De(()=>{document.addEventListener("visibilitychange",I),n()}),Ie(()=>{Y=!0,a(),document.removeEventListener("visibilitychange",I)}),(C,m)=>(l(),c("div",Bo,[o("div",Mo,[o("div",Oo,[o("div",Eo,[m[4]||(m[4]=o("span",{class:"status-label"},"证书状态",-1)),y(u(Pe),{size:"small",round:"",bordered:!1,type:r.value?.cert_installed?"success":"warning"},{default:g(()=>[L(S(W.value),1)]),_:1},8,["type"]),r.value?.cert_installed?(l(),E(u(Q),{key:0,quaternary:"",size:"tiny",loading:z.value,onClick:q},{default:g(()=>[...m[3]||(m[3]=[L(" 卸载证书 ",-1)])]),_:1},8,["loading"])):G("",!0)]),o("div",Ko,[m[5]||(m[5]=o("span",{class:"status-label"},"自动嗅探",-1)),y(u(fn),{size:"small",value:N.value,loading:v.value||$.value||p.value,disabled:!b.value,"onUpdate:value":A},null,8,["value","loading","disabled"]),N.value&&R.value?(l(),c("span",Ao,S(R.value),1)):(l(),c("span",Lo,S(b.value?"未运行":"仅桌面端可用"),1))])]),N.value?(l(),E(u(Q),{key:0,type:"error",secondary:"",size:"small",loading:$.value,onClick:B},{default:g(()=>[...m[6]||(m[6]=[L(" 停止并还原网络 ",-1)])]),_:1},8,["loading"])):G("",!0)]),r.value?.last_error?(l(),c("div",To,S(r.value.last_error),1)):G("",!0),T.value?(l(),c("div",Fo,[m[10]||(m[10]=o("div",{class:"compliance-title"},"开启自动嗅探前请确认",-1)),m[11]||(m[11]=o("ol",{class:"compliance-list"},[o("li",null,"仅用于录制本人或已获授权的内容"),o("li",null,"会在本机安装临时自签根证书"),o("li",null,"仅解密视频号相关域名,其余流量透传,关闭即自动还原系统代理")],-1)),y(u(vn),{checked:M.value,"onUpdate:checked":m[0]||(m[0]=U=>M.value=U),size:"small"},{default:g(()=>[...m[7]||(m[7]=[L("我已阅读并确认以上说明",-1)])]),_:1},8,["checked"]),o("div",Do,[y(u(Q),{size:"small",quaternary:"",disabled:v.value,onClick:m[1]||(m[1]=U=>T.value=!1)},{default:g(()=>[...m[8]||(m[8]=[L(" 取消 ",-1)])]),_:1},8,["disabled"]),y(u(Q),{size:"small",type:"primary",disabled:!M.value,loading:v.value,onClick:h},{default:g(()=>[...m[9]||(m[9]=[L(" 确认并启动 ",-1)])]),_:1},8,["disabled","loading"])])])):G("",!0),o("div",Uo,[m[13]||(m[13]=o("span",{class:"list-title"},"捕获到的流",-1)),y(u(Q),{size:"tiny",quaternary:"",loading:k.value,onClick:m[2]||(m[2]=U=>w(!0))},{default:g(()=>[...m[12]||(m[12]=[L(" 刷新 ",-1)])]),_:1},8,["loading"])]),H.value?(l(),c("div",Wo,[(l(!0),c(X,null,ze(d.value,U=>(l(),c("div",{key:U.id,class:"stream-item"},[o("div",Ho,[o("span",{class:"time",title:u(rt)(U.captured_at)},S(u(cn)(U.captured_at)),9,Vo),y(u(Pe),{size:"small",round:"",bordered:!1,type:U.protocol==="flv"?"success":"info"},{default:g(()=>[L(S(U.protocol.toUpperCase()),1)]),_:2},1032,["type"]),U.quality_hint?(l(),E(u(Pe),{key:0,size:"small",bordered:!1},{default:g(()=>[L(S(U.quality_hint),1)]),_:2},1024)):G("",!0),o("span",{class:"host",title:U.host},S(U.host),9,qo),y(u(Q),{size:"small",type:"primary",secondary:"",loading:f.value===U.id,disabled:!u(je),onClick:xe=>re(U)},{default:g(()=>[...m[14]||(m[14]=[L(" 一键录制 ",-1)])]),_:1},8,["loading","disabled","onClick"])]),o("div",Go,[y(u(ce),{size:"small",value:te(U),placeholder:"备注(主播 / 标题)",clearable:"","onUpdate:value":xe=>oe(U,xe)},null,8,["value","onUpdate:value"])]),o("div",Jo,S(U.url_preview),1)]))),128))])):(l(),c("div",jo," 进入视频号直播间并播放后回到本页,捕获到的流会出现在这里 "))]))}}),Yo=ke(Xo,[["__scopeId","data-v-0f758067"]]),Zo={class:"modal-head"},Qo={class:"modal-title"},er={class:"modal-sub"},tr={key:0,class:"desktop-hint"},nr={key:1,class:"desktop-hint"},or={key:2,class:"mode-switch"},rr={key:0,class:"capability-note"},ar={class:"capability-list"},lr={class:"modal-foot"},sr=V({__name:"AddStreamerModal",props:{show:{type:Boolean},entity:{}},emits:["update:show","saved"],setup(e,{emit:s}){const t=e,i=s,r=Ue(),d=mn(),b=_(null),p=_(!1),v=_("manual"),$=_(!1),k=_([]),z=_(!1),f=_({url:"",remark:"",filename_prefix:"",format:"ts",time_range:"",check_interval:""}),T=_([]),M=x(()=>T.value.filter(P=>P.blocks_probe)),O=x(()=>!!t.entity),F=x(()=>f.value.url.trim()?Ne(f.value.url.trim()):""),D=[{label:"TS(推荐,抗断流)",value:"ts"},{label:"FLV",value:"flv"},{label:"MP4",value:"mp4"},{label:"MKV",value:"mkv"}],K={url:[{required:!0,message:"请填写直播间地址",trigger:["blur","input"]},{validator:(P,a)=>{if(!a)return!0;const n=a.trim();if(!/^(https?|wxchannel-stream):\/\//i.test(n))return new Error("地址格式不正确,需要以 http://、https:// 或 wxchannel-stream:// 开头");try{return new URL(n),!0}catch{return new Error("地址格式不正确,请检查地址是否完整")}},trigger:["blur"]}],filename_prefix:[{validator:(P,a)=>{const n=pn(a);return n?new Error(n):!0},trigger:["blur","input"]}]};Be(()=>t.show,P=>{if(!P)return;const a=t.entity;f.value.url=a?.url??"",f.value.remark=a?.remark??"",f.value.filename_prefix=a?.filename_prefix??"",f.value.format=a?.format??"ts",f.value.time_range=a?.time_range??"",f.value.check_interval=String(a?.override?.event_loop_interval??""),v.value="manual",W(),!a&&!d&&R()});async function W(){if(!(T.value.length>0))try{T.value=await nn()}catch{T.value=[]}}function N(P){const a={...P??{}},n=f.value.check_interval.trim(),w=Number(n);return n&&Number.isFinite(w)&&w>0?a.event_loop_interval=Math.round(w):delete a.event_loop_interval,Object.keys(a).length>0?a:null}async function R(){z.value=!0;try{const P=await ut();k.value=Array.isArray(P?.whitelist)?P.whitelist:[],$.value=!!P?.available}catch{k.value=[],$.value=!1}finally{z.value=!1}}function H(P,a){const n=P.toLowerCase();return a.some(w=>{const I=w.trim().toLowerCase();return I?n===I||n.endsWith(`.${I}`):!1})}function Z(P){const a=P.trim().toLowerCase();if(a.startsWith("wxchannel-stream://"))return!0;if(d||!/^https?:\/\//.test(a)||!/\.flv(?:[?#]|$)/.test(a)&&!/\.m3u8(?:[?#]|$)/.test(a)||k.value.length===0)return!1;try{return H(new URL(a).hostname,k.value)}catch{return!1}}function te(){i("update:show",!1)}async function oe(){try{await b.value?.validate()}catch{return}p.value=!0;try{const P=f.value.url.trim(),a=f.value.remark.trim();t.entity?(await en({...t.entity,url:P,remark:a,filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(t.entity.override)}),r.success("直播间已更新")):Z(P)?(await dt({url:P,name:a||null}),r.success("已加入监控,正在检测开播")):(await tn({url:P,remark:a||Ne(P)+"直播间",filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(null)}),r.success("直播间已添加,正在检测开播状态")),i("saved"),te()}catch(P){r.error(P instanceof Error?P.message:"保存失败")}finally{p.value=!1}}function Y(){i("saved"),te()}return(P,a)=>(l(),E(u(Et),{show:e.show,preset:"card",style:{width:"580px",maxWidth:"92vw"},bordered:!1,"mask-closable":!p.value,"onUpdate:show":a[8]||(a[8]=n=>i("update:show",n))},{header:g(()=>[o("div",Zo,[o("div",null,[o("div",Qo,S(O.value?"编辑直播间":"添加直播间"),1),o("div",er,S(O.value?"修改后会在下一次检测周期生效":"支持抖音、快手、B站、虎牙、斗鱼等平台的直播间地址"),1)]),F.value?(l(),E(u(Pe),{key:0,size:"small",round:"",bordered:!1,type:"success"},{default:g(()=>[L(" 已识别 "+S(F.value),1)]),_:1})):G("",!0)])]),footer:g(()=>[o("div",lr,[y(u(Q),{quaternary:"",disabled:p.value,onClick:te},{default:g(()=>[...a[13]||(a[13]=[L("取消",-1)])]),_:1},8,["disabled"]),O.value||v.value==="manual"?(l(),E(u(Q),{key:0,type:"primary",loading:p.value,disabled:p.value||!u(je),onClick:oe},{default:g(()=>[L(S(O.value?"保存修改":"开始监控"),1)]),_:1},8,["loading","disabled"])):G("",!0)])]),default:g(()=>[O.value?G("",!0):(l(),c(X,{key:0},[u(d)?(l(),c("div",tr," 视频号请直接粘贴直播流地址;自动嗅探请改用桌面客户端。 ")):G("",!0),!u(d)&&!z.value&&!$.value?(l(),c("div",nr," 自动嗅探仅支持桌面端,服务端部署请直接粘贴流地址 ")):G("",!0),u(d)?G("",!0):(l(),c("div",or,[o("button",{class:ue(["mode-pill",{active:v.value==="manual"}]),onClick:a[0]||(a[0]=n=>v.value="manual")}," 手动粘贴流地址 ",2),$.value?(l(),c("button",{key:0,class:ue(["mode-pill",{active:v.value==="capture"}]),onClick:a[1]||(a[1]=n=>v.value="capture")}," 自动嗅探(桌面端) ",2)):G("",!0)]))],64)),!u(d)&&!O.value&&v.value==="capture"&&$.value?(l(),E(Yo,{key:1,onRecorded:Y})):(l(),E(u(Kt),{key:2,ref_key:"formRef",ref:b,model:f.value,rules:K,"label-placement":"top","require-mark-placement":"right-hanging"},{default:g(()=>[y(u(me),{label:"直播间地址",path:"url"},{feedback:g(()=>[...a[9]||(a[9]=[o("div",{class:"hint"}," 抖音/快手/B站/虎牙/斗鱼/六间房可直接粘贴直播间地址;抖音分享短链会自动换成长期房间地址。 在场的分享链接只对应这一场直播,链接失效后需要粘贴主播当前开播时的新链接 ",-1),o("div",{class:"hint"}," 视频号请粘贴 *.flv / *.m3u8 流地址(可从视频号助手或抓包工具获取);视频号直链必须是视频号 CDN 域名,其他平台的 .flv/.m3u8 直链照旧直接添加 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.url,placeholder:"https://live.douyin.com/123456789",clearable:"","onUpdate:value":a[2]||(a[2]=n=>f.value.url=n)},null,8,["value"])]),_:1}),y(u(On),{size:14,class:"form-row",style:{width:"100%"}},{default:g(()=>[y(u(me),{label:"备注名称",path:"remark",style:{flex:"1"}},{default:g(()=>[y(u(ce),{value:f.value.remark,placeholder:"例如:某某主播",clearable:"","onUpdate:value":a[3]||(a[3]=n=>f.value.remark=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制格式",path:"format",style:{width:"190px"}},{default:g(()=>[y(u(Jt),{value:f.value.format,options:D,"onUpdate:value":a[4]||(a[4]=n=>f.value.format=n??"")},null,8,["value"])]),_:1})]),_:1}),y(u(me),{label:"文件名前缀",path:"filename_prefix"},{default:g(()=>[y(u(ce),{value:f.value.filename_prefix,placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S;留空使用全局设置",clearable:"","onUpdate:value":a[5]||(a[5]=n=>f.value.filename_prefix=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制时间段",path:"time_range"},{default:g(()=>[y(u(ce),{value:f.value.time_range,placeholder:"可选,例如 20:00:00-23:59:59;留空表示全天监控",clearable:"","onUpdate:value":a[6]||(a[6]=n=>f.value.time_range=n)},null,8,["value"])]),_:1}),y(u(me),{label:"检查间隔(秒)",path:"check_interval"},{feedback:g(()=>[...a[10]||(a[10]=[o("div",{class:"hint"}," 多久查一次这个房间有没有开播(默认沿用全局设置)。查询连续失败时监控会在此基础上 自动退避(1x→2x→4x→8x 封顶),不会把失败当成下播。 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.check_interval,placeholder:"可选,例如 30;留空沿用全局设置",clearable:"","onUpdate:value":a[7]||(a[7]=n=>f.value.check_interval=n)},null,8,["value"])]),_:1}),M.value.length?(l(),c("div",rr,[a[11]||(a[11]=o("div",{class:"capability-title"},"这些平台当前无法检测开播(合规限制)",-1)),o("ul",ar,[(l(!0),c(X,null,ze(M.value,n=>(l(),c("li",{key:n.platform},[o("strong",null,S(n.platform),1),L(":"+S(n.detail),1)]))),128))]),a[12]||(a[12]=o("div",{class:"capability-hint"}," 仍可添加,但房间会显示「查询失败」并给出原因;要真正录制请改用受支持平台, 或按平台官方授权链路接入。 ",-1))])):G("",!0)]),_:1},8,["model"]))]),_:1},8,["show","mask-closable"]))}}),ir=ke(sr,[["__scopeId","data-v-b547d50d"]]),ur={class:"page"},dr={class:"page-head"},cr={class:"page-sub"},pr={key:0,class:"mono version"},vr={class:"toolbar"},fr={key:0,class:"stat-grid"},mr={key:1,class:"compact-summary"},hr={class:"list-bar"},wr={class:"filters"},yr=["onClick"],br={key:2,class:"loading"},gr={key:3,class:"error-panel"},kr={class:"error-msg"},xr={key:0,class:"card-grid"},_r={key:1,class:"no-match"},Sr=V({__name:"StreamersView",setup(e){const s=Ue(),t=At(),i=_([]),r=_(null),d=_(!0),b=_(!1),p=_(!1),v=_(""),$=_(""),k=_("all"),z=_(!1),f=_(null);let T;const M=x(()=>{const a=i.value;return{total:a.length,live:a.filter(n=>n.status==="Working").length,pending:a.filter(n=>n.status==="Pending").length,paused:a.filter(n=>n.status==="Pause"||n.status==="StreamExpired").length,probeFailed:a.filter(n=>n.status==="ProbeFailed").length}}),O=x(()=>{const a=$.value.trim().toLowerCase();return i.value.filter(n=>k.value==="live"&&n.status!=="Working"||k.value==="paused"&&n.status!=="Pause"&&n.status!=="StreamExpired"||k.value==="failed"&&n.status!=="ProbeFailed"||k.value==="idle"&&(n.status==="Working"||n.status==="Pause"||n.status==="StreamExpired"||n.status==="ProbeFailed")?!1:a?n.remark.toLowerCase().includes(a)||n.url.toLowerCase().includes(a)||(n.live_streamer_name??"").toLowerCase().includes(a):!0).sort((n,w)=>{const I=A=>A.status==="Working"?0:A.status==="Pending"?1:A.status==="ProbeFailed"?2:3;return I(n)-I(w)||w.id-n.id})});function F(){p.value=window.innerWidth<640}let D=!1,K=!1,W=!1;async function N(a=!1){if(!K){if(D){a||(W=!0);return}D=!0,a?b.value=!0:d.value=i.value.length===0;try{const[n,w]=await Promise.all([on(),rn().catch(()=>null)]);i.value=n,w&&(r.value=w),v.value=""}catch(n){v.value=n instanceof Error?n.message:"加载失败"}finally{D=!1,d.value=!1,b.value=!1,W&&!K&&(W=!1,N(!0))}}}function R(a){k.value=a}function H(){f.value=null,z.value=!0}function Z(a){f.value=a,z.value=!0}async function te(a){try{await an(a.id);const n=a.status==="Pause"||a.status==="StreamExpired";s.success(n?"已恢复监控":"已暂停监控"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"操作失败")}}function oe(a){t.warning({title:"删除直播间",content:`确定删除「${a.remark||a.url}」?已录制的文件不会被删除。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await ln(a.id),s.success("已删除"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"删除失败")}}})}function Y(){document.visibilityState==="visible"&&N(!0)}De(async()=>{F(),window.addEventListener("resize",F),await N(),!K&&(T=window.setInterval(()=>{document.visibilityState==="visible"&&N(!0)},1e4),document.addEventListener("visibilitychange",Y))}),Ie(()=>{K=!0,T&&window.clearInterval(T),document.removeEventListener("visibilitychange",Y),window.removeEventListener("resize",F)});const P=[{label:"全部",value:"all"},{label:"录制中",value:"live"},{label:"查询失败",value:"failed"},{label:"已暂停",value:"paused"},{label:"未开播",value:"idle"}];return(a,n)=>(l(),c("div",ur,[o("div",dr,[o("div",null,[n[6]||(n[6]=o("h1",{class:"page-title"},"直播监控",-1)),o("p",cr,[n[5]||(n[5]=L(" 添加直播间后自动检测开播并录制,下播自动收尾 ",-1)),r.value?.version?(l(),c("span",pr,"· 服务 v"+S(r.value.version),1)):G("",!0)])]),o("div",vr,[y(u(Q),{quaternary:"",circle:"",loading:b.value,"aria-label":"刷新",onClick:n[0]||(n[0]=w=>N(!0))},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Ye))]),_:1})]),_:1},8,["loading"]),y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Je))]),_:1})]),default:g(()=>[n[7]||(n[7]=L(" 添加直播间 ",-1))]),_:1})])]),p.value?G("",!0):(l(),c("div",fr,[y(we,{label:"监控直播间",value:M.value.total,hint:"正在值守的直播间总数",icon:u(hn),tone:"accent"},null,8,["value","icon"]),y(we,{label:"正在录制",value:M.value.live,hint:"当前有直播流正在写盘",icon:u(qt),tone:"live"},null,8,["value","icon"]),y(we,{label:"检测中",value:M.value.pending,hint:"等待平台返回开播状态",icon:u(Ye)},null,8,["value","icon"]),y(we,{label:"查询失败",value:M.value.probeFailed,hint:"平台没返回开播状态(不等于下播),卡片上带原因与建议",icon:u(Kn),tone:M.value.probeFailed>0?"warn":"default"},null,8,["value","icon","tone"]),y(we,{label:"上传任务",value:r.value?.uploading??0,hint:"已配置自动上传时显示",icon:u(Ln)},null,8,["value","icon"])])),p.value?(l(),c("div",mr,[o("span",null,[n[8]||(n[8]=L("监控 ",-1)),o("b",null,S(M.value.total),1)]),o("span",null,[n[9]||(n[9]=L("录制中 ",-1)),o("b",null,S(M.value.live),1)]),o("span",null,[n[10]||(n[10]=L("检测中 ",-1)),o("b",null,S(M.value.pending),1)]),o("span",null,[n[11]||(n[11]=L("异常 ",-1)),o("b",null,S(M.value.probeFailed),1)])])):G("",!0),o("div",hr,[o("div",wr,[(l(),c(X,null,ze(P,w=>o("button",{key:w.value,class:ue(["pill",{active:k.value===w.value}]),onClick:I=>R(w.value)},S(w.label),11,yr)),64))]),y(u(ce),{value:$.value,"onUpdate:value":n[1]||(n[1]=w=>$.value=w),class:"search",placeholder:"搜索备注、主播名或地址",clearable:""},{prefix:g(()=>[y(u(de),{size:16},{default:g(()=>[y(u(wn))]),_:1})]),_:1},8,["value"])]),d.value?(l(),c("div",br,[y(u(jt),{size:"large"}),n[12]||(n[12]=o("span",null,"正在连接录制服务…",-1))])):v.value?(l(),c("div",gr,[n[14]||(n[14]=o("div",{class:"error-title"},"无法连接录制服务",-1)),o("div",kr,S(v.value),1),y(u(Q),{size:"small",onClick:n[2]||(n[2]=w=>N())},{default:g(()=>[...n[13]||(n[13]=[L("重试",-1)])]),_:1})])):i.value.length===0?(l(),E(Ht,{key:4,title:"还没有添加直播间",description:"粘贴抖音直播间地址即可开始监控。主播开播后会自动录制,下播后按场次归档。"},{default:g(()=>[y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Je))]),_:1})]),default:g(()=>[n[15]||(n[15]=L(" 添加第一个直播间 ",-1))]),_:1})]),_:1})):(l(),c(X,{key:5},[O.value.length?(l(),c("div",xr,[(l(!0),c(X,null,ze(O.value,w=>(l(),E(Co,{key:w.id,streamer:w,onToggle:te,onEdit:Z,onDelete:oe},null,8,["streamer"]))),128))])):(l(),c("div",_r," 没有匹配的直播间,换个关键词或筛选条件试试。 "))],64)),y(ir,{show:z.value,"onUpdate:show":n[3]||(n[3]=w=>z.value=w),entity:f.value,onSaved:n[4]||(n[4]=w=>N(!0))},null,8,["show","entity"])]))}}),Hr=ke(Sr,[["__scopeId","data-v-cdfe01c6"]]);export{Hr as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-4rsLpKoT.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-zhsy3xi9.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-4rsLpKoT.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-zhsy3xi9.js index 704baa33..350c09cc 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-4rsLpKoT.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-zhsy3xi9.js @@ -1,4 +1,4 @@ -import{a2 as X,a7 as a,bb as Y,a4 as H,a6 as l,a5 as Q,d as ve,a8 as J,bm as M,o as u,c as m,a as p,R as r,P as n,n as q,aa as ge,be as we,r as A,ac as me,j as P,ad as E,b2 as v,i as G,bn as pe,Q as ye,bf as ke,bo as xe,af as g,bp as I,am as s,ae as Se}from"./index-Ch4EWX-G.js";import{u as _e}from"./use-compitable-CjxNERC_.js";var ze=X("switch",` +import{a2 as X,a7 as a,bb as Y,a4 as H,a6 as l,a5 as Q,d as ve,a8 as J,bm as M,o as u,c as m,a as p,R as r,P as n,n as q,aa as ge,be as we,r as A,ac as me,j as P,ad as E,b2 as v,i as G,bn as pe,Q as ye,bf as ke,bo as xe,af as g,bp as I,am as s,ae as Se}from"./index-FGi6cKHs.js";import{u as _e}from"./use-compitable-Cc7HI9yh.js";var ze=X("switch",` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Dxd9Z4sO.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DZpFNqp3.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Dxd9Z4sO.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DZpFNqp3.js index 3163dedd..999f792e 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Dxd9Z4sO.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DZpFNqp3.js @@ -1 +1 @@ -import{d as t,c as n,a as o,o as r}from"./index-Ch4EWX-G.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; +import{d as t,c as n,a as o,o as r}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DQkFygL-.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-Cf-2z3Ev.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DQkFygL-.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-Cf-2z3Ev.js index 0ad77746..1e5fe26c 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DQkFygL-.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-Cf-2z3Ev.js @@ -1,4 +1,4 @@ -import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-Ch4EWX-G.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` +import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-FGi6cKHs.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` height: 1em; width: 1em; line-height: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-fqHnj72g.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-fqHnj72g.js new file mode 100644 index 00000000..3d9fe56f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-fqHnj72g.js @@ -0,0 +1 @@ +import{ap as n,ao as a}from"./index-FGi6cKHs.js";const o=!1,t="PENDING",e=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),E=()=>n("/miniapp/engine/cancel");export{o as E,t as a,E as c,e as g,i as s}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C1ri-urc.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C1ri-urc.js new file mode 100644 index 00000000..8cea7815 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C1ri-urc.js @@ -0,0 +1 @@ +import{r as e,j as a}from"./index-FGi6cKHs.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Ch4EWX-G.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-FGi6cKHs.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Ch4EWX-G.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-FGi6cKHs.js index fc87350b..e000f0cc 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Ch4EWX-G.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-FGi6cKHs.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-DDTKasOc.js","assets/Input-DOY9MBk2.js","assets/use-compitable-CjxNERC_.js","assets/CheckboxGroup-CVNCmOpb.js","assets/_plugin-vue_export-helper-DQkFygL-.js","assets/Spin-BbwWICDg.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-DxAvLK-K.js","assets/RefreshOutline-DsgjGZK9.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-DmAH_wjP.js","assets/PulseOutline-DBaBm7B1.js","assets/use-message-sIwnQEJL.js","assets/streamers-Bl5LBoP5.js","assets/runtime-bridge-DmDzFGpU.js","assets/VideocamOutline-Dxd9Z4sO.js","assets/FilmOutline-BX3jJC51.js","assets/GitCompareOutline-DCA6_Iop.js","assets/CloudDownloadOutline-Bwk608FY.js","assets/AppShell-dzC4MVjs.css","assets/StreamersView-CmWF_crB.js","assets/AddOutline-C9wx-dLG.js","assets/EmptyState-fy8GfigG.js","assets/EmptyState-BJiq6Btv.css","assets/Select-DlP0Rw4u.js","assets/format-B8CnorUZ.js","assets/filename-template-DBJXvN0y.js","assets/Switch-4rsLpKoT.js","assets/SearchOutline--3GBf81B.js","assets/StreamersView-Bg-GMiEY.css","assets/RecordingsView-jJfZw4rU.js","assets/DownloadOutline-CvleeChj.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-FDkwT__U.js","assets/DocumentTextOutline-BdYVNaS7.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-9SicR-7j.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-C7TOuPQQ.js","assets/SettingsView-ogFFTr5l.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-BXa3gqh3.js","assets/Input-CQNdwpgx.js","assets/use-compitable-Cc7HI9yh.js","assets/CheckboxGroup-CBTKxgig.js","assets/_plugin-vue_export-helper-Cf-2z3Ev.js","assets/Spin-CYz55qnY.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-ekQZ1QYf.js","assets/RefreshOutline-C3W18lVY.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-BtBozJ6v.js","assets/PulseOutline-BTyoewQd.js","assets/use-message-DzcW9fCu.js","assets/streamers-Crtjgplw.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-fqHnj72g.js","assets/engine-state-C1ri-urc.js","assets/VideocamOutline-DZpFNqp3.js","assets/FilmOutline-Gr2Sgzxq.js","assets/GitCompareOutline-92xJ43m4.js","assets/CloudDownloadOutline-GAucdlv-.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-X3e6akRp.js","assets/AddOutline-AWO4O9Bs.js","assets/EmptyState-CALNDdv7.js","assets/EmptyState-BJiq6Btv.css","assets/Select-BIQZTWeg.js","assets/format-B8CnorUZ.js","assets/filename-template-DBJXvN0y.js","assets/Switch-zhsy3xi9.js","assets/SearchOutline-rYjpTFrE.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-D-5LxqQb.js","assets/DownloadOutline-D3fGSRVg.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-CiNT7cDx.js","assets/DocumentTextOutline-BFofTbif.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-bBDSRDwN.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-fhfMIyM2.js","assets/SettingsView-T1R_3ITH.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function va(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Oe={},lr=[],co=()=>{},Cd=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),qe=Object.assign,Ca=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Em=Object.prototype.hasOwnProperty,Re=(e,t)=>Em.call(e,t),ge=Array.isArray,Uo=e=>On(e)==="[object Map]",mi=e=>On(e)==="[object Set]",ss=e=>On(e)==="[object Date]",ye=e=>typeof e=="function",Ve=e=>typeof e=="string",kt=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",xd=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),yd=Object.prototype.toString,On=e=>yd.call(e),_m=e=>On(e).slice(8,-1),Sd=e=>On(e)==="[object Object]",Bi=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ki=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},$m=/-\w/g,wt=ki(e=>e.replace($m,t=>t.slice(1).toUpperCase())),Rm=/\B([A-Z])/g,Cr=ki(e=>e.replace(Rm,"-$1").toLowerCase()),Di=ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),ml=ki(e=>e?`on${Di(e)}`:""),io=(e,t)=>!Object.is(e,t),gl=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},Im=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Am=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let cs;const Li=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ge(e)){const t={};for(let o=0;oo.startsWith("/*")?"":o).split(Hm).forEach(o=>{if(o){const r=o.split(Mm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function mr(e){let t="";if(Ve(e))t=e;else if(ge(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Om=e=>Ve(e)?e:e==null?"":ge(e)||Ie(e)&&(e.toString===yd||!ye(e.toString))?Td(e)?Om(e.value):JSON.stringify(e,Ed,2):String(e),Ed=(e,t)=>Td(t)?Ed(e,t.value):Uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[bl(r,i)+" =>"]=n,o),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bl(o))}:kt(t)?bl(t):Ie(t)&&!ge(t)&&!Sd(t)?String(t):t,bl=(e,t="")=>{var o;return kt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let it;class Wm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&it&&(it.active?(this.parent=it,this.index=(it.scopes||(it.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(it===this)it=this.prevScope;else{let t=it;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(pn){let t=pn;for(pn=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;hn;){let t=hn;for(hn=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Id(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ad(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Sa(r),jm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function Wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wl(e))))return;e.flags|=2;const t=e.dep,o=We,r=Xt;We=e,Xt=!0;try{Id(e);const n=e.fn(e._value);(t.version===0||io(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{We=o,Xt=r,Ad(e),e.flags&=-3}}function Sa(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Sa(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function jm(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Xt=!0;const Md=[];function fo(){Md.push(Xt),Xt=!1}function ho(){const e=Md.pop();Xt=e===void 0?!0:e}function fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=We;We=void 0;try{t()}finally{We=o}}}let yn=0;class Vm{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!Xt||We===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==We)o=this.activeLink=new Vm(We,this),We.deps?(o.prevDep=We.depsTail,We.depsTail.nextDep=o,We.depsTail=o):We.deps=We.depsTail=o,zd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=We.depsTail,o.nextDep=void 0,We.depsTail.nextDep=o,We.depsTail=o,We.deps===o&&(We.deps=r)}return o}trigger(t){this.version++,yn++,this.notify(t)}notify(t){xa();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ya()}}}function zd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zd(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const gi=new WeakMap,ur=Symbol(""),Nl=Symbol(""),Sn=Symbol("");function ht(e,t,o){if(Xt&&We){let r=gi.get(e);r||gi.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new wa),n.map=r,n.key=o),n.track()}}function To(e,t,o,r,n,i){const l=gi.get(e);if(!l){yn++;return}const a=s=>{s&&s.trigger()};if(xa(),t==="clear")l.forEach(a);else{const s=ge(e),d=s&&Bi(o);if(s&&o==="length"){const c=Number(r);l.forEach((u,f)=>{(f==="length"||f===Sn||!kt(f)&&f>=c)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),d&&a(l.get(Sn)),t){case"add":s?d&&a(l.get("length")):(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"delete":s||(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"set":Uo(e)&&a(l.get(ur));break}}ya()}function Gm(e,t){const o=gi.get(e);return o&&o.get(t)}function _r(e){const t=_e(e);return t===e||(ht(t,"iterate",Sn),Ft(e))?t:mo(e)?qo(e)?t.map(o=>Ko(jt(o))):t.map(Ko):t.map(jt)}function Wi(e){return ht(e=_e(e),"iterate",Sn),e}function oo(e,t){return mo(e)?Ko(qo(e)?jt(t):t):jt(t)}const Um={__proto__:null,[Symbol.iterator](){return Cl(this,Symbol.iterator,e=>oo(this,e))},concat(...e){return _r(this).concat(...e.map(t=>ge(t)?_r(t):t))},entries(){return Cl(this,"entries",e=>(e[1]=oo(this,e[1]),e))},every(e,t){return yo(this,"every",e,t,void 0,arguments)},filter(e,t){return yo(this,"filter",e,t,o=>o.map(r=>oo(this,r)),arguments)},find(e,t){return yo(this,"find",e,t,o=>oo(this,o),arguments)},findIndex(e,t){return yo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yo(this,"findLast",e,t,o=>oo(this,o),arguments)},findLastIndex(e,t){return yo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yo(this,"forEach",e,t,void 0,arguments)},includes(...e){return xl(this,"includes",e)},indexOf(...e){return xl(this,"indexOf",e)},join(e){return _r(this).join(e)},lastIndexOf(...e){return xl(this,"lastIndexOf",e)},map(e,t){return yo(this,"map",e,t,void 0,arguments)},pop(){return Jr(this,"pop")},push(...e){return Jr(this,"push",e)},reduce(e,...t){return ps(this,"reduce",e,t)},reduceRight(e,...t){return ps(this,"reduceRight",e,t)},shift(){return Jr(this,"shift")},some(e,t){return yo(this,"some",e,t,void 0,arguments)},splice(...e){return Jr(this,"splice",e)},toReversed(){return _r(this).toReversed()},toSorted(e){return _r(this).toSorted(e)},toSpliced(...e){return _r(this).toSpliced(...e)},unshift(...e){return Jr(this,"unshift",e)},values(){return Cl(this,"values",e=>oo(this,e))}};function Cl(e,t,o){const r=Wi(e),n=r[t],i=n.call(r);if(r!==e&&!Ft(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const l=Object.create(Object.getPrototypeOf(i));return l.next=()=>hs(i.next(),o),n!==Fd[t]&&Object.defineProperties(l,{return:{get(){const a=i.return;return typeof a=="function"?a.bind(i):a}},throw:{get(){const a=i.throw;return typeof a=="function"?a.bind(i):a}}}),l}i._next=i.next,i.next=()=>hs(i._next(),o)}return i}function hs(e,t){return e.done||(e.value=t(e.value)),e}const Fd=Array.prototype;function yo(e,t,o,r,n,i){const l=Wi(e),a=l!==e&&!Ft(e),s=l[t];if(s!==Fd[t]){const u=s.apply(e,i);return a?jt(u):u}let d=o;l!==e&&(a?d=function(u,f){return o.call(this,oo(e,u),f,e)}:o.length>2&&(d=function(u,f){return o.call(this,u,f,e)}));const c=s.call(l,d,r);return a&&n?n(c):c}function ps(e,t,o,r){const n=Wi(e),i=n!==e&&!Ft(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(d,c,u){return a&&(a=!1,d=oo(e,d)),o.call(this,d,oo(e,c),u,e)}):o.length>3&&(l=function(d,c,u){return o.call(this,d,c,u,e)}));const s=n[t](l,...r);return a?oo(e,s):s}function xl(e,t,o){const r=_e(e);ht(r,"iterate",Sn);const n=r[t](...o);return(n===-1||n===!1)&&Ni(o[0])?(o[0]=_e(o[0]),r[t](...o)):n}function Jr(e,t,o=[]){fo(),xa();const r=_e(e)[t].apply(e,o);return ya(),ho(),r}const qm=va("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function Km(e){kt(e)||(e=String(e));const t=_e(this);return ht(t,"has",e),t.hasOwnProperty(e)}class kd{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?ng:Wd:i?Od:Ld).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=ge(t);if(!n){let s;if(l&&(s=Um[o]))return s;if(o==="hasOwnProperty")return Km}const a=Reflect.get(t,o,ot(t)?t:r);if((kt(o)?Bd.has(o):qm(o))||(n||ht(t,"get",o),i))return a;if(ot(a)){const s=l&&Bi(o)?a:a.value;return n&&Ie(s)?po(s):s}return Ie(a)?n?po(a):xr(a):a}}class Dd extends kd{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=ge(t)&&Bi(o);if(!this._isShallow){const d=mo(i);if(!Ft(r)&&!mo(r)&&(i=_e(i),r=_e(r)),!l&&ot(i)&&!ot(r))return d||(i.value=r),!0}const a=l?Number(o)e,Yn=e=>Reflect.getPrototypeOf(e);function Qm(e,t,o){return function(...r){const n=this.__v_raw,i=_e(n),l=Uo(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,d=n[e](...r),c=o?jl:t?Ko:jt;return!t&&ht(i,"iterate",s?Nl:ur),qe(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:a?[c(u[0]),c(u[1])]:c(u),done:f}}})}}function Xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eg(e,t){const o={get(n){const i=this.__v_raw,l=_e(i),a=_e(n);e||(io(n,a)&&ht(l,"get",n),ht(l,"get",a));const{has:s}=Yn(l),d=t?jl:e?Ko:jt;if(s.call(l,n))return d(i.get(n));if(s.call(l,a))return d(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&ht(_e(n),"iterate",ur),n.size},has(n){const i=this.__v_raw,l=_e(i),a=_e(n);return e||(io(n,a)&&ht(l,"has",n),ht(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=_e(a),d=t?jl:e?Ko:jt;return!e&&ht(s,"iterate",ur),a.forEach((c,u)=>n.call(i,d(c),d(u),l))}};return qe(o,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(n){const i=_e(this),l=Yn(i),a=_e(n),s=!t&&!Ft(n)&&!mo(n)?a:n;return l.has.call(i,s)||io(n,s)&&l.has.call(i,n)||io(a,s)&&l.has.call(i,a)||(i.add(s),To(i,"add",s,s)),this},set(n,i){!t&&!Ft(i)&&!mo(i)&&(i=_e(i));const l=_e(this),{has:a,get:s}=Yn(l);let d=a.call(l,n);d||(n=_e(n),d=a.call(l,n));const c=s.call(l,n);return l.set(n,i),d?io(i,c)&&To(l,"set",n,i):To(l,"add",n,i),this},delete(n){const i=_e(this),{has:l,get:a}=Yn(i);let s=l.call(i,n);s||(n=_e(n),s=l.call(i,n)),a&&a.call(i,n);const d=i.delete(n);return s&&To(i,"delete",n,void 0),d},clear(){const n=_e(this),i=n.size!==0,l=n.clear();return i&&To(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Qm(n,e,t)}),o}function Pa(e,t){const o=eg(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_isShallow"?t:n==="__v_raw"?r:Reflect.get(Re(o,n)&&n in r?o:r,n,i)}const tg={get:Pa(!1,!1)},og={get:Pa(!1,!0)},rg={get:Pa(!0,!1)};const Ld=new WeakMap,Od=new WeakMap,Wd=new WeakMap,ng=new WeakMap;function ig(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xr(e){return mo(e)?e:Ta(e,!1,Xm,tg,Ld)}function Nd(e){return Ta(e,!1,Jm,og,Od)}function po(e){return Ta(e,!0,Zm,rg,Wd)}function Ta(e,t,o,r,n){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=ig(_m(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function qo(e){return mo(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Ni(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Vl(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&wd(e,"__v_skip",!0),e}const jt=e=>Ie(e)?xr(e):e,Ko=e=>Ie(e)?po(e):e;function ot(e){return e?e.__v_isRef===!0:!1}function se(e){return Vd(e,!1)}function jd(e){return Vd(e,!0)}function Vd(e,t){return ot(e)?e:new lg(e,t)}class lg{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:_e(t),this._value=o?t:jt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||Ft(t)||mo(t);t=r?t:_e(t),io(t,o)&&(this._rawValue=t,this._value=r?t:jt(t),this.dep.trigger())}}function Yt(e){return ot(e)?e.value:e}const ag={get:(e,t,o)=>t==="__v_raw"?e:Yt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return ot(n)&&!ot(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function Gd(e){return qo(e)?e:new Proxy(e,ag)}class sg{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=kt(o)?o:String(o),this._raw=_e(t);let n=!0,i=t;if(!ge(t)||kt(this._key)||!Bi(this._key))do n=!Ni(i)||Ft(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Yt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ot(this._raw[this._key])){const o=this._object[this._key];if(ot(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Gm(this._raw,this._key)}}class cg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function uo(e,t,o){return ot(e)?e:ye(e)?new cg(e):Ie(e)&&arguments.length>1?dg(e,t,o):se(e)}function dg(e,t,o){return new sg(e,t,o)}class ug{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Rd(this,!0),!0}get value(){const t=this.dep.track();return Hd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,o=!1){let r,n;return ye(e)?r=e:(r=e.get,n=e.set),new ug(r,n,o)}const Zn={},bi=new WeakMap;let or;function hg(e,t=!1,o=or){if(o){let r=bi.get(o);r||bi.set(o,r=[]),r.push(e)}}function pg(e,t,o=Oe){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,d=P=>n?P:Ft(P)||n===!1||n===0?Eo(P,1):Eo(P);let c,u,f,h,p=!1,g=!1;if(ot(e)?(u=()=>e.value,p=Ft(e)):qo(e)?(u=()=>d(e),p=!0):ge(e)?(g=!0,p=e.some(P=>qo(P)||Ft(P)),u=()=>e.map(P=>{if(ot(P))return P.value;if(qo(P))return d(P);if(ye(P))return s?s(P,2):P()})):ye(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){fo();try{f()}finally{ho()}}const P=or;or=c;try{return s?s(e,3,[h]):e(h)}finally{or=P}}:u=co,t&&n){const P=u,A=n===!0?1/0:n;u=()=>Eo(P(),A)}const b=Nm(),C=()=>{c.stop(),b&&b.active&&Ca(b.effects,c)};if(i&&t){const P=t;t=(...A)=>{try{return P(...A)}finally{C()}}}let y=g?new Array(e.length).fill(Zn):Zn;const T=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const A=c.run();if(P||n||p||(g?A.some((M,v)=>io(M,y[v])):io(A,y))){const M=or;fo();try{f&&f(),or=c;const v=[A,y===Zn?void 0:g&&y[0]===Zn?[]:y,h];y=A,s?s(t,3,v):t(...v)}finally{or=M,ho()}}}else c.run()};return a&&a(T),c=new _d(u),c.scheduler=l?()=>l(T,!1):T,h=P=>hg(P,!1,c),f=c.onStop=()=>{const P=bi.get(c);if(P){if(s)s(P,4);else for(const A of P)A();bi.delete(c)}},t?r?T(!0):y=c.run():l?l(T.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function Eo(e,t=1/0,o){if(t<=0||!Ie(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,ot(e))Eo(e.value,t,o);else if(ge(e))for(let r=0;r{Eo(r,t,o)});else if(Sd(e)){for(const r in e)Eo(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Eo(e[r],t,o)}return e}function Wn(e,t,o,r){try{return r?e(...r):e()}catch(n){ji(n,t,o)}}function Vt(e,t,o,r){if(ye(e)){const n=Wn(e,t,o,r);return n&&xd(n)&&n.catch(i=>{ji(i,t,o,void 0,!0)}),n}if(ge(e)){const n=[];for(let i=0;i>>1,n=yt[r],i=wn(n);i=wn(o)?yt.push(e):yt.splice(gg(t),0,e),e.flags|=1,qd()}}function qd(){vi||(vi=Ud.then(Xd))}function bg(e){if(!ge(e))Wo&&e.id===-1?Wo.splice(Ar+1,0,e):e.flags&1||(ro.push(e),e.flags|=1);else for(let t=0;t=t))continue;yt.splice(r,1),r=e?r-1:Ut,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Yd(e,t,o=0){if(ro.length){let r=ro,n=0;if(t){r=[];for(let l=0;lwn(l)-wn(a));if(ro.length=n,Wo){for(let l=0;le.id==null?e.flags&2?-1:1/0:e.id;function Xd(e){try{for(Ut=0;Ut{r._d&&wi(-1);const i=Ci(t),l=$o.length;let a;try{a=e(...n)}finally{for(let s=$o.length;s>l;s--)Ha();Ci(i),r._d&&wi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Gl(e,t){if(lt===null)return e;const o=Yi(lt),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ye(t)?t.call(r&&r.proxy):t}}const Cg=Symbol.for("v-scx"),xg=()=>De(Cg);function Gi(e,t){return Ea(e,null,t)}function Nt(e,t,o){return Ea(e,t,o)}function Ea(e,t,o=Oe){const{immediate:r,deep:n,flush:i,once:l}=o,a=qe({},o),s=t&&r||!t&&i!=="post";let d;if(In){if(i==="sync"){const h=xg();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=co,h.resume=co,h.pause=co,h}}const c=mt;a.call=(h,p,g)=>Vt(h,c,p,g);let u=!1;i==="post"?a.scheduler=h=>{h.i=c,ft(h,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Vi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=pg(e,t,a);return In&&(d?d.push(f):s&&f()),f}function yg(e,t,o){const r=this.proxy,n=Ve(e)?e.includes(".")?Jd(r,e):()=>r[e]:e.bind(r,r);let i;ye(t)?i=t:(i=t.handler,o=t);const l=jn(this),a=Ea(n,i.bind(r),o);return l(),a}function Jd(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,nr=e=>e&&(e.disabled||e.disabled===""),Sg=e=>e&&(e.defer||e.defer===""),ms=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ul=(e,t)=>{const o=e&&e.to;return Ve(o)?t?t(o):null:o},wg={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,d){const{mc:c,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b,parentNode:C}}=d,y=nr(t.props);let{dynamicChildren:T}=t;const P=(v,w,_)=>{v.shapeFlag&16&&c(v.children,w,_,n,i,l,a,s)},A=(v=t)=>{const w=nr(v.props),_=v.target=Ul(v.props,p),H=ql(_,v,g,h);_&&(l!=="svg"&&ms(_)?l="svg":l!=="mathml"&&gs(_)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(_),w||(P(v,_,H),an(v,!1)))},M=v=>{const w=()=>{if(Lo.get(v)===w){if(Lo.delete(v),nr(v.props)){const _=C(v.el)||o;P(v,_,v.anchor),an(v,!0)}A(v)}};Lo.set(v,w),ft(w,i)};if(e==null){const v=t.el=g(""),w=t.anchor=g("");if(h(v,o,r),h(w,o,r),Sg(t.props)||i&&i.pendingBranch){M(t);return}y&&(P(t,o,w),an(t,!0)),A()}else{t.el=e.el;const v=t.anchor=e.anchor,w=Lo.get(e);if(w){w.flags|=8,Lo.delete(e),M(t);return}t.targetStart=e.targetStart;const _=t.target=e.target,H=t.targetAnchor=e.targetAnchor,O=nr(e.props),$=O?o:_,K=O?v:H;if(l==="svg"||ms(_)?l="svg":(l==="mathml"||gs(_))&&(l="mathml"),T?(f(e.dynamicChildren,T,$,n,i,l,a),Aa(e,t,!0)):s||u(e,t,$,K,n,i,l,a,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jn(t,o,v,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=Ul(t.props,p);ie&&(t.target=ie,Jn(t,ie,null,d,0))}else O&&Jn(t,_,H,d,1);an(t,y)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:d,targetAnchor:c,target:u,props:f}=e,h=nr(f),p=i||!h,g=Lo.get(e);if(g&&(g.flags|=8,Lo.delete(e)),u&&(n(d),n(c)),i&&n(s),!g&&(h||u)&&l&16)for(let b=0;b{e.isMounted=!0}),Gt(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],tu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},Tg={name:"BaseTransition",props:tu,setup(e,{slots:t}){const o=Wr(),r=eu();return()=>{const n=t.default&&$a(t.default(),!0),i=n&&n.length?ou(n):o.subTree?db():void 0;if(!i)return;const l=_e(e),{mode:a}=l;if(r.isLeaving)return Sl(i);const s=xi(i);if(!s)return Sl(i);const d=Pn(s,l,r,o);s.type!==Ze&&_o(s,d);let c=o.subTree&&xi(o.subTree);if(c&&c.type!==Ze&&!ir(c,s)&&Tn(o.subTree)){let u=Pn(c,l,r,o);if(_o(c,u),a==="out-in"&&s.type!==Ze)return r.isLeaving=!0,u.afterLeave=()=>{if(r.isLeaving=!1,!(o.job.flags&8))if(o.effect.flags&2){const f=()=>{o.job.flags&8||o.update()};f.i=o,Vi(f)}else o.update();delete u.afterLeave,c=void 0},Sl(i);a==="in-out"&&s.type!==Ze?u.delayLeave=(f,h,p)=>{const g=ru(r,c);g[String(c.key)]=c,f[Wt]=()=>{h(),f[Wt]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function ou(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Ze){t=o;break}}return t}const Eg=Tg;function ru(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Pn(e,t,o,r){const{appear:n,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:u,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:y}=t,T=String(e.key),P=ru(o,e),A=(w,_)=>{w&&Vt(w,r,9,_)},M=(w,_)=>{const H=_[1];A(w,_),ge(w)?w.every(O=>O.length<=1)&&H():w.length<=1&&H()},v={mode:i,persisted:l,beforeEnter(w){let _=a;if(!o.isMounted)if(n)_=g||a;else return;w[Wt]&&w[Wt](!0);const H=P[T];if(H&&ir(e,H)){let O=H.el[Wt];if(!O){const $=Tn(H);O=$&&$.el[Wt]}O&&O()}A(_,[w])},enter(w){if(P[T]===e)return;let _=s,H=d,O=c;if(!o.isMounted)if(n)_=b||s,H=C||d,O=y||c;else return;let $=!1;w[Qr]=ie=>{$||($=!0,ie?A(O,[w]):A(H,[w]),v.delayedLeave&&v.delayedLeave(),w[Qr]=void 0)};const K=w[Qr].bind(null,!1);_?M(_,[w,K]):K()},leave(w,_){const H=String(e.key);if(w[Qr]&&w[Qr](!0),o.isUnmounting)return _();A(u,[w]);let O=!1;w[Wt]=K=>{O||(O=!0,_(),K?A(p,[w]):A(h,[w]),w[Wt]=void 0,P[H]===e&&delete P[H])};const $=w[Wt].bind(null,!1);P[H]=e,f?M(f,[w,$]):$()},clone(w){const _=Pn(w,t,o,r);return _.afterLeave=()=>{v.afterLeave&&v.afterLeave()},_.delayLeave=(H,O,$)=>{v.delayLeave?v.delayLeave(H,O,$):$()},_.delayedLeave=()=>{v.delayedLeave&&v.delayedLeave()},_}};return v}function Sl(e){if(qi(e))return e=go(e),e.children=null,e}function xi(e){if(!qi(e))return Ui(e.type)&&e.children?ou(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ye(o.default))return o.default()}}function _o(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;_o(Ui(o.type)&&xi(o)||o,t)}else if(e.shapeFlag&128){const o=e.suspense;if(o){const r=o.isHydrating?o.pendingBranch:o.activeBranch;r&&_o(r,t.clone(r))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===Te&&ge(e.children)){const o=vu(e.children,!1);o&&_o(o,t)}}function $a(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;imn(g,t&&(ge(t)?t[b]:t),o,r,n));return}if(Mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?Yi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,d=t&&t.r,c=a.refs===Oe?a.refs={}:a.refs,u=a.setupState,f=_e(u),h=u===Oe?Cd:g=>bs(c,g)?!1:Re(f,g),p=(g,b)=>!(b&&bs(c,b));if(d!=null&&d!==s){if(vs(t),Ve(d))c[d]=null,h(d)&&(u[d]=null);else if(ot(d)){const g=t;p(d,g.k)&&(d.value=null),g.k&&(c[g.k]=null)}}if(ye(s))Wn(s,a,12,[l,c]);else{const g=Ve(s),b=ot(s);if(g||b){const C=()=>{if(e.f){const y=g?h(s)?u[s]:c[s]:p()||!e.k?s.value:c[e.k];if(n)ge(y)&&Ca(y,i);else if(ge(y))y.includes(i)||y.push(i);else if(g)c[s]=[i],h(s)&&(u[s]=c[s]);else{const T=[i];p(s,e.k)&&(s.value=T),e.k&&(c[e.k]=T)}}else g?(c[s]=l,h(s)&&(u[s]=l)):b&&(p(s,e.k)&&(s.value=l),e.k&&(c[e.k]=l))};if(l){const y=()=>{C(),yi.delete(e)};y.id=-1,yi.set(e,y),ft(y,o)}else vs(e),C()}}}function vs(e){const t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}Li().requestIdleCallback;Li().cancelIdleCallback;const Mr=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function iu(e,t){au(e,"a",t)}function lu(e,t){au(e,"da",t)}function au(e,t,o=mt){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,r,o),o){let n=o.parent;for(;n&&n.parent;)qi(n.parent.vnode)&&_g(r,t,o,n),n=n.parent}}function _g(e,t,o,r){const n=En(t,e,r,!0),i=En("um",()=>Ca(r[t],n),o);i.flags=16}function En(e,t,o=mt,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{fo();const a=jn(o),s=Vt(t,o,e,l);return a(),ho(),s});return r?n.unshift(i):n.push(i),i}}const Ao=e=>(t,o=mt)=>{(!In||e==="sp")&&En(e,(...r)=>t(...r),o)},yr=Ao("bm"),bo=Ao("m"),$g=Ao("bu"),su=Ao("u"),Gt=Ao("bum"),cu=Ao("um"),Rg=Ao("sp"),Ig=Ao("rtg"),Ag=Ao("rtc");function Hg(e,t=mt){En("ec",e,t)}const du="components";function Mg(e,t){return fu(du,e,!0,t)||e}const uu=Symbol.for("v-ndc");function k_(e){return Ve(e)?fu(du,e,!1)||e:e||uu}function fu(e,t,o=!0,r=!1){const n=lt||mt;if(n){const i=n.type;{const a=vb(i,!1);if(a&&(a===t||a===wt(t)||a===Di(wt(t))))return i}const l=Cs(n[e]||i[e],t)||Cs(n.appContext[e],t);return!l&&r?i:l}}function Cs(e,t){return e&&(e[t]||e[wt(t)]||e[Di(wt(t))])}function D_(e,t,o,r){let n;const i=o,l=ge(e);if(l||Ve(e)){const a=l&&qo(e);let s=!1,d=!1;a&&(s=!Ft(e),d=mo(e),e=Wi(e)),n=new Array(e.length);for(let c=0,u=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,d=a.length;s0;return k(),ae(Te,null,[je("slot",d,r)],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=$o.length;k();let s;try{const d=l&&hu(l(o)),c=o.key||i||d&&d.key;s=ae(Te,{key:(c&&!kt(c)?c:`_${t}`)+(!d&&r?"_fb":"")},d||(r?r():[]),d&&e._===1?64:-2)}catch(d){for(let c=$o.length;c>a;c--)Ha();throw d}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function hu(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!hu(t.children)):!0)?e:null}const Kl=e=>e?Mu(e)?Yi(e):Kl(e.parent):null,gn=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kl(e.parent),$root:e=>Kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mu(e),$forceUpdate:e=>e.f||(e.f=()=>{Vi(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>yg.bind(e)}),wl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Re(e,t),Fg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(wl(r,t))return l[t]=1,r[t];if(n!==Oe&&Re(n,t))return l[t]=2,n[t];if(Re(i,t))return l[t]=3,i[t];if(o!==Oe&&Re(o,t))return l[t]=4,o[t];Yl&&(l[t]=0)}}const d=gn[t];let c,u;if(d)return t==="$attrs"&&ht(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(o!==Oe&&Re(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Re(u,t))return u[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return wl(n,t)?(n[t]=o,!0):r!==Oe&&Re(r,t)?(r[t]=o,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Oe&&a[0]!=="$"&&Re(e,a)||wl(t,a)||Re(i,a)||Re(r,a)||Re(gn,a)||Re(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Re(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function xs(e){return ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Yl=!0;function Bg(e){const t=mu(e),o=e.proxy,r=e.ctx;Yl=!1,t.beforeCreate&&ys(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:C,beforeUnmount:y,destroyed:T,unmounted:P,render:A,renderTracked:M,renderTriggered:v,errorCaptured:w,serverPrefetch:_,expose:H,inheritAttrs:O,components:$,directives:K,filters:ie}=t;if(d&&kg(d,r,null),l)for(const J in l){const ue=l[J];ye(ue)&&(r[J]=ue.bind(o))}if(n){const J=n.call(o,o);Ie(J)&&(e.data=xr(J))}if(Yl=!0,i)for(const J in i){const ue=i[J],He=ye(ue)?ue.bind(o,o):ye(ue.get)?ue.get.bind(o,o):co,$e=!ye(ue)&&ye(ue.set)?ue.set.bind(o):co,Le=X({get:He,set:$e});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Le.value,set:ke=>Le.value=ke})}if(a)for(const J in a)pu(a[J],r,o,J);if(s){const J=ye(s)?s.call(o):s;Reflect.ownKeys(J).forEach(ue=>{at(ue,J[ue])})}c&&ys(c,e,"c");function ce(J,ue){ge(ue)?ue.forEach(He=>J(He.bind(o))):ue&&J(ue.bind(o))}if(ce(yr,u),ce(bo,f),ce($g,h),ce(su,p),ce(iu,g),ce(lu,b),ce(Hg,w),ce(Ag,M),ce(Ig,v),ce(Gt,y),ce(cu,P),ce(Rg,_),ge(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(ue=>{Object.defineProperty(J,ue,{get:()=>o[ue],set:He=>o[ue]=He,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===co&&(e.render=A),O!=null&&(e.inheritAttrs=O),$&&(e.components=$),K&&(e.directives=K),_&&nu(e)}function kg(e,t,o=co){ge(e)&&(e=Xl(e));for(const r in e){const n=e[r];let i;Ie(n)?"default"in n?i=De(n.from||r,n.default,!0):i=De(n.from||r):i=De(n),ot(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ys(e,t,o){Vt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function pu(e,t,o,r){let n=r.includes(".")?Jd(o,r):()=>o[r];if(Ve(e)){const i=t[e];ye(i)&&Nt(n,i)}else if(ye(e))Nt(n,e.bind(o));else if(Ie(e))if(ge(e))e.forEach(i=>pu(i,t,o,r));else{const i=ye(e.handler)?e.handler.bind(o):t[e.handler];ye(i)&&Nt(n,i,e)}}function mu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(d=>Si(s,d,l,!0)),Si(s,t,l)),Ie(t)&&i.set(t,s),s}function Si(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Si(e,i,o,!0),n&&n.forEach(l=>Si(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=Dg[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Dg={data:Ss,props:ws,emits:ws,methods:sn,computed:sn,beforeCreate:Ct,created:Ct,beforeMount:Ct,mounted:Ct,beforeUpdate:Ct,updated:Ct,beforeDestroy:Ct,beforeUnmount:Ct,destroyed:Ct,unmounted:Ct,activated:Ct,deactivated:Ct,errorCaptured:Ct,serverPrefetch:Ct,components:sn,directives:sn,watch:Og,provide:Ss,inject:Lg};function Ss(e,t){return t?e?function(){return qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Lg(e,t){return sn(Xl(e),Xl(t))}function Xl(e){if(ge(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${Cr(t)}Modifiers`];function Vg(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Oe;let n=o;const i=t.startsWith("update:"),l=i&&jg(r,t.slice(7));l&&(l.trim&&(n=o.map(c=>Ve(c)?c.trim():c)),l.number&&(n=n.map(Im)));let a,s=r[a=ml(t)]||r[a=ml(wt(t))];!s&&i&&(s=r[a=ml(Cr(t))]),s&&Vt(s,e,6,n);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Vt(d,e,6,n)}}const Gg=new WeakMap;function bu(e,t,o=!1){const r=o?Gg:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!ye(e)){const s=d=>{const c=bu(d,t,!0);c&&(a=!0,qe(l,c))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(Ie(e)&&r.set(e,null),null):(ge(i)?i.forEach(s=>l[s]=null):qe(l,i),Ie(e)&&r.set(e,l),l)}function Ki(e,t){return!e||!zi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Cr(t))||Re(e,t))}function Ps(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:d,renderCache:c,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ci(e);let C,y;try{if(o.shapeFlag&4){const P=n||r,A=P;C=no(d.call(A,P,c,u,h,f,p)),y=a}else{const P=t;C=no(P.length>1?P(u,{attrs:a,slots:l,emit:s}):P(u,null)),y=t.props?a:Ug(a)}}catch(P){$o.length=0,ji(P,e,1),C=je(Ze)}let T=C;if(y&&g!==!1){const P=Object.keys(y),{shapeFlag:A}=T;P.length&&A&7&&(i&&P.some(Fi)&&(y=qg(y,i)),T=go(T,y,!1,!0))}if(o.dirs&&(T=go(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(o.dirs):o.dirs),o.transition){const P=Ui(T.type)&&xi(T)||T;_o(P,o.transition)}return C=T,Ci(b),C}function vu(e,t=!0){let o;for(let r=0;r{let t;for(const o in e)(o==="class"||o==="style"||zi(o))&&((t||(t={}))[o]=e[o]);return t},qg=(e,t)=>{const o={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Kg(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Ts(r,l,d):!!l;if(s&8){const c=t.dynamicProps;for(let u=0;uObject.create(xu),Su=e=>Object.getPrototypeOf(e)===xu;function Xg(e,t,o,r=!1){const n={},i=yu();e.propsDefaults=Object.create(null),wu(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:Nd(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Zg(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=_e(n),[s]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,h]=Pu(u,t,!0);qe(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Ie(e)&&r.set(e,lr),lr;if(ge(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Ia=e=>ge(e)?e.map(no):[no(e)],Qg=(e,t,o)=>{if(t._n)return t;const r=so((...n)=>Ia(t(...n)),o);return r._c=!1,r},Tu=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Ra(n))continue;const i=e[n];if(ye(i))t[n]=Qg(n,i,r);else if(i!=null){const l=Ia(i);t[n]=()=>l}}},Eu=(e,t)=>{const o=Ia(t);e.slots.default=()=>o},_u=(e,t,o)=>{for(const r in t)(o||!Ra(r))&&(e[r]=t[r])},eb=(e,t,o)=>{const r=e.slots=yu();if(e.vnode.shapeFlag&32){const n=t._;n?(_u(r,t,o),o&&wd(r,"_",n,!0)):Tu(t,r)}else t&&Eu(e,t)},tb=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Oe;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:_u(n,t,o):(i=!t.$stable,Tu(t,n)),l=t}else t&&(Eu(e,t),l={default:1});if(i)for(const a in n)!Ra(a)&&l[a]==null&&delete n[a]},ft=ab;function ob(e){return rb(e)}function rb(e,t){const o=Li();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=co,insertStaticContent:p}=e,g=(m,x,S,E=null,R=null,B=null,W=void 0,U=null,G=!!x.dynamicChildren)=>{if(m===x)return;m&&!ir(m,x)&&(E=z(m),ke(m,R,B,!0),m=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null),x.dynamicChildren&&m&&m.dynamicChildren&&m.dynamicChildren.hasOnce&&(x.dynamicChildren===lr&&(x.dynamicChildren=[]),x.dynamicChildren.hasOnce=!0);const{type:I,ref:Z,shapeFlag:q}=x;switch(I){case Nn:b(m,x,S,E);break;case Ze:C(m,x,S,E);break;case ci:m==null&&y(x,S,E,W);break;case Te:$(m,x,S,E,R,B,W,U,G);break;default:q&1?A(m,x,S,E,R,B,W,U,G):q&6?K(m,x,S,E,R,B,W,U,G):(q&64||q&128)&&I.process(m,x,S,E,R,B,W,U,G,L)}Z!=null&&R?mn(Z,m&&m.ref,B,x||m,!x):Z==null&&m&&m.ref!=null&&mn(m.ref,null,B,m,!0)},b=(m,x,S,E)=>{if(m==null)r(x.el=a(x.children),S,E);else{const R=x.el=m.el;x.children!==m.children&&d(R,x.children)}},C=(m,x,S,E)=>{m==null?r(x.el=s(x.children||""),S,E):x.el=m.el},y=(m,x,S,E)=>{[m.el,m.anchor]=p(m.children,x,S,E,m.el,m.anchor)},T=({el:m,anchor:x},S,E)=>{let R;for(;m&&m!==x;)R=f(m),r(m,S,E),m=R;r(x,S,E)},P=({el:m,anchor:x})=>{let S;for(;m&&m!==x;)S=f(m),n(m),m=S;n(x)},A=(m,x,S,E,R,B,W,U,G)=>{if(x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),m==null)M(x,S,E,R,B,W,U,G);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),_(m,x,R,B,W,U,G)}finally{I&&I._endPatch()}}},M=(m,x,S,E,R,B,W,U)=>{let G,I;const{props:Z,shapeFlag:q,transition:de,dirs:ve}=m;if(G=m.el=l(m.type,B,Z&&Z.is,Z),q&8?c(G,m.children):q&16&&w(m.children,G,null,E,R,Pl(m,B),W,U),ve&&Jo(m,null,E,"created"),v(G,m,m.scopeId,W,E),Z){for(const Me in Z)Me!=="value"&&!fn(Me)&&i(G,Me,null,Z[Me],B,E);"value"in Z&&i(G,"value",null,Z.value,B),(I=Z.onVnodeBeforeMount)&&Jt(I,E,m)}ve&&Jo(m,null,E,"beforeMount");const we=nb(R,de);we?de.beforeEnter(G):de&&!de.persisted&&(G[lb]=!0),r(G,x,S),((I=Z&&Z.onVnodeMounted)||we||ve)&&ft(()=>{I&&Jt(I,E,m),we&&de.enter(G),ve&&Jo(m,null,E,"mounted")},R)},v=(m,x,S,E,R)=>{if(S&&h(m,S),E)for(let B=0;B{for(let I=G;I{const U=x.el=m.el;let{patchFlag:G,dynamicChildren:I,dirs:Z}=x;G|=m.patchFlag&16;const q=m.props||Oe,de=x.props||Oe;let ve;if(S&&Qo(S,!1),(ve=de.onVnodeBeforeUpdate)&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"beforeUpdate"),S&&Qo(S,!0),I&&(!m.dynamicChildren||m.dynamicChildren.length!==I.length)&&(G=0,W=!1,I=null),(q.innerHTML&&de.innerHTML==null||q.textContent&&de.textContent==null)&&c(U,""),I?H(m.dynamicChildren,I,U,S,E,Pl(x,R),B):W||ue(m,x,U,null,S,E,Pl(x,R),B,!1),G>0){if(G&16)O(U,q,de,S,R);else if(G&2&&q.class!==de.class&&i(U,"class",null,de.class,R),G&4&&i(U,"style",q.style,de.style,R),G&8){const we=x.dynamicProps;for(let Me=0;Me{ve&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"updated")},E)},H=(m,x,S,E,R,B,W)=>{for(let U=0;U{if(x!==S){if(x!==Oe)for(const B in x)!fn(B)&&!(B in S)&&i(m,B,x[B],null,R,E);for(const B in S){if(fn(B))continue;const W=S[B],U=x[B];W!==U&&B!=="value"&&i(m,B,U,W,R,E)}"value"in S&&i(m,"value",x.value,S.value,R)}},$=(m,x,S,E,R,B,W,U,G)=>{const I=x.el=m?m.el:a(""),Z=x.anchor=m?m.anchor:a("");let{patchFlag:q,dynamicChildren:de,slotScopeIds:ve}=x;ve&&(U=U?U.concat(ve):ve),m==null?(r(I,S,E),r(Z,S,E),w(x.children||[],S,Z,R,B,W,U,G)):q>0&&q&64&&de&&m.dynamicChildren&&m.dynamicChildren.length===de.length?(H(m.dynamicChildren,de,S,R,B,W,U),(x.key!=null||R&&x===R.subTree)&&Aa(m,x,!0)):ue(m,x,S,Z,R,B,W,U,G)},K=(m,x,S,E,R,B,W,U,G)=>{x.slotScopeIds=U,m==null?x.shapeFlag&512?R.ctx.activate(x,S,E,W,G):ie(x,S,E,R,B,W,G):be(m,x,G)},ie=(m,x,S,E,R,B,W)=>{const U=m.component=hb(m,E,R);if(qi(m)&&(U.ctx.renderer=L),pb(U,!1,W),U.asyncDep){if(R&&R.registerDep(U,ce,W,B),!m.el){const G=U.subTree=je(Ze);C(null,G,x,S),m.placeholder=G.el}}else ce(U,m,x,S,R,B,W)},be=(m,x,S)=>{const E=x.component=m.component;if(Kg(m,x,S))if(E.asyncDep&&!E.asyncResolved){x.el=m.el,x.placeholder=m.placeholder,J(E,x,S);return}else E.next=x,E.update();else x.el=m.el,x.placeholder=m.placeholder,E.vnode=x},ce=(m,x,S,E,R,B,W)=>{const U=()=>{if(m.isMounted){let{next:q,bu:de,u:ve,parent:we,vnode:Me}=m;{const Et=$u(m);if(Et){q&&(q.el=Me.el,J(m,q,W)),Et.asyncDep.then(()=>{const At=()=>{m.job.flags&8||(R&&R.pendingBranch?ft(At,R):I())};At.flags=48,ft(At,R)});return}}let ze=q,Ge;Qo(m,!1),q?(q.el=Me.el,J(m,q,W)):q=Me,de&&gl(de),(Ge=q.props&&q.props.onVnodeBeforeUpdate)&&Jt(Ge,we,q,Me),Qo(m,!0);const Qe=Ps(m),It=m.subTree;m.subTree=Qe,g(It,Qe,u(It.el||bn(It)),z(It),m,R,B),q.el=Qe.el,ze===null&&Yg(m,Qe.el),ve&&ft(ve,R),(Ge=q.props&&q.props.onVnodeUpdated)&&ft(()=>Jt(Ge,we,q,Me),R)}else{let q;const{el:de,props:ve}=x,{bm:we,m:Me,parent:ze,root:Ge,type:Qe}=m,It=Mr(x);Qo(m,!1),we&&gl(we),!It&&(q=ve&&ve.onVnodeBeforeMount)&&Jt(q,ze,x),Qo(m,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(Qe,m.parent?m.parent.type:void 0);const Et=m.subTree=Ps(m);g(null,Et,S,E,m,R,B),x.el=Et.el}if(Me&&ft(Me,R),!It&&(q=ve&&ve.onVnodeMounted)){const Et=x;ft(()=>Jt(q,ze,Et),R)}(x.shapeFlag&256||ze&&Mr(ze.vnode)&&ze.vnode.shapeFlag&256)&&m.a&&ft(m.a,R),m.isMounted=!0,x=S=E=null}};m.scope.on();const G=m.effect=new _d(U);m.scope.off();const I=m.update=G.run.bind(G),Z=m.job=G.runIfDirty.bind(G);Z.i=m,Z.id=m.uid,G.scheduler=()=>Vi(Z),Qo(m,!0),I()},J=(m,x,S)=>{x.component=m;const E=m.vnode.props;m.vnode=x,m.next=null,Zg(m,x.props,E,S),tb(m,x.children,S),fo(),Kd(m),ho()},ue=(m,x,S,E,R,B,W,U,G=!1)=>{const I=m&&m.children,Z=m?m.shapeFlag:0,q=x.children,{patchFlag:de,shapeFlag:ve}=x;if(de>0){if(de&128){$e(I,q,S,E,R,B,W,U,G);return}else if(de&256){He(I,q,S,E,R,B,W,U,G);return}}ve&8?(Z&16&&Se(I,R,B),q!==I&&c(S,q)):Z&16?ve&16?$e(I,q,S,E,R,B,W,U,G):Se(I,R,B,!0):(Z&8&&c(S,""),ve&16&&w(q,S,E,R,B,W,U,G))},He=(m,x,S,E,R,B,W,U,G)=>{m=m||lr,x=x||lr;const I=m.length,Z=x.length,q=Math.min(I,Z);let de;for(de=0;deZ?Se(m,R,B,!0,!1,q):w(x,S,E,R,B,W,U,G,q)},$e=(m,x,S,E,R,B,W,U,G)=>{let I=0;const Z=x.length;let q=m.length-1,de=Z-1;for(;I<=q&&I<=de;){const ve=m[I],we=x[I]=G?Po(x[I]):no(x[I]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;I++}for(;I<=q&&I<=de;){const ve=m[q],we=x[de]=G?Po(x[de]):no(x[de]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;q--,de--}if(I>q){if(I<=de){const ve=de+1,we=vede)for(;I<=q;)ke(m[I],R,B,!0),I++;else{const ve=I,we=I,Me=new Map;for(I=we;I<=de;I++){const ct=x[I]=G?Po(x[I]):no(x[I]);ct.key!=null&&Me.set(ct.key,I)}let ze,Ge=0;const Qe=de-we+1;let It=!1,Et=0;const At=new Array(Qe);for(I=0;I=Qe){ke(ct,R,B,!0);continue}let N;if(ct.key!=null)N=Me.get(ct.key);else for(ze=we;ze<=de;ze++)if(At[ze-we]===0&&ir(ct,x[ze])){N=ze;break}N===void 0?ke(ct,R,B,!0):(At[N-we]=I+1,N>=Et?Et=N:It=!0,g(ct,x[N],S,null,R,B,W,U,G),Ge++)}const Xr=It?ib(At):lr;for(ze=Xr.length-1,I=Qe-1;I>=0;I--){const ct=we+I,N=x[ct],he=x[ct+1],xe=ct+1{const{el:B,type:W,transition:U,children:G,shapeFlag:I}=m;if(I&6){Le(m.component.subTree,x,S,E);return}if(I&128){m.suspense.move(x,S,E);return}if(I&64){W.move(m,x,S,L);return}if(W===Te){r(B,x,S);for(let q=0;qU.enter(B),R));else{const{leave:q,delayLeave:de,afterLeave:ve}=U,we=()=>{m.ctx.isUnmounted?n(B):r(B,x,S)},Me=()=>{const ze=B._isLeaving||!!B[Wt];B._isLeaving&&B[Wt](!0),U.persisted&&!ze?we():q(B,()=>{we(),ve&&ve()})};de?de(B,we,Me):Me()}else r(B,x,S)},ke=(m,x,S,E=!1,R=!1)=>{const{type:B,props:W,ref:U,children:G,dynamicChildren:I,shapeFlag:Z,patchFlag:q,dirs:de,cacheIndex:ve,memo:we}=m;if((q===-2||I&&I.hasOnce)&&(R=!1),U!=null&&(fo(),mn(U,null,S,m,!0),ho()),ve!=null&&(!m.ctx||m.ctx===x)&&(x.renderCache[ve]=void 0),Z&256&&x.ctx.deactivate(m))return;const Me=Z&1&&de,ze=!Mr(m);let Ge;if(ze&&(Ge=W&&W.onVnodeBeforeUnmount)&&Jt(Ge,x,m),Z&6)vt(m.component,S,E);else{if(Z&128){m.suspense.unmount(S,E);return}Me&&Jo(m,null,x,"beforeUnmount"),Z&64?m.type.remove(m,x,S,L,E):I&&!I.hasOnce&&(B!==Te||q>0&&q&64)?Se(I,x,S,!1,!0):(B===Te&&q&384||!R&&Z&16)&&Se(G,x,S),E&&nt(m)}const Qe=we!=null&&ve==null;(ze&&(Ge=W&&W.onVnodeUnmounted)||Me||Qe)&&ft(()=>{Ge&&Jt(Ge,x,m),Me&&Jo(m,null,x,"unmounted"),Qe&&(m.el=null)},S)},nt=m=>{const{type:x,el:S,anchor:E,transition:R}=m,B=x===Te;if(B&&!R){Je(S,E);return}if(x===ci){P(m),R&&!R.persisted&&R.afterLeave&&R.afterLeave();return}const W=B?Tn(m):m,U=()=>{B?u(S)&&Je(S,E):n(S),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(W&&W.shapeFlag&1&&R&&!R.persisted){const{leave:G,delayLeave:I}=R,Z=W.el,q=()=>G(Z,U);I?I(Z,U,q):q()}else U()},Je=(m,x)=>{let S;for(;m!==x;)S=f(m),n(m),m=S;n(x)},vt=(m,x,S)=>{const{bum:E,scope:R,job:B,subTree:W,um:U,m:G,a:I}=m;_s(G),_s(I),E&&gl(E),R.stop(),B?(B.flags|=8,ke(W,m,x,S)):W&&(W.transition=m.vnode.transition,ke(W,m,x,S)),U&&ft(U,x);const Z=()=>{m.isUnmounted=!0};Z.flags=16,ft(Z,x)},Se=(m,x,S,E=!1,R=!1,B=0)=>{for(let W=B;W{if(m.shapeFlag&6)return z(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=f(m.anchor||m.el),S=x&&x[Qd];return S?f(S):x},ee=(m,x,S)=>{const E=m&&x._vnode?void 0:m&&m.component?m.component.uid:fb();vg(()=>{m==null?x._vnode&&ke(x._vnode,null,null,!0):g(x._vnode||null,m,x,null,null,null,S),x._vnode=m},E)},L={p:g,um:ke,m:Le,r:nt,mt:ie,mc:w,pc:ue,pbc:H,n:z,o:e};return{render:ee,hydrate:void 0,createApp:Ng(ee)}}function Pl({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Qo({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Aa(e,t,o=!1){const r=e.children,n=t.children;if(ge(r)&&ge(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function $u(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$u(t)}function _s(e){if(e)for(let t=0;te.__isSuspense,lb=Symbol("_deferredEnter");function ab(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):bg(e)}const Te=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),ci=Symbol.for("v-stc"),$o=[];let Mt=null;function k(e=!1){$o.push(Mt=e?null:[])}function Ha(){$o.pop(),Mt=$o[$o.length-1]||null}let _n=1;function wi(e,t=!1){_n+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function Iu(e){return e.dynamicChildren=_n>0?Mt||lr:null,Ha(),_n>0&&Mt&&Mt.push(e),e}function pe(e,t,o,r,n,i){return Iu(Pe(e,t,o,r,n,i,!0))}function ae(e,t,o,r,n){return Iu(je(e,t,o,r,n,!0))}function Ro(e){return e?e.__v_isVNode===!0:!1}function ir(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,di=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||ot(e)||ye(e)?{i:lt,r:e,k:t,f:!!o}:e:null);function Pe(e,t=null,o=null,r=0,n=null,i=e===Te?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&di(t),scopeId:Zd,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:lt};return a?(Pi(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ve(o)?8:16),_n>0&&!l&&Mt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Mt.push(s),s}const je=sb;function sb(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===uu)&&(e=Ze),Ro(e)){const a=go(e,t,!0);return o&&Pi(a,o),_n>0&&!i&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(e)]=a:Mt.push(a)),a.patchFlag=-2,a}if(Cb(e)&&(e=e.__vccOpts),t){t=cb(t);let{class:a,style:s}=t;a&&!Ve(a)&&(t.class=mr(a)),Ie(s)&&(Ni(s)&&!ge(s)&&(s=qe({},s)),t.style=Be(s))}const l=Ve(e)?1:Ru(e)?128:Ui(e)?64:Ie(e)?4:ye(e)?2:0;return Pe(e,t,o,r,n,l,i,!0)}function cb(e){return e?Ni(e)?qe({},e):Su(e)?qe({},e[Fu]||e):e:null}function go(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,d=t?Bt(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Au(d),ref:t&&t.ref?o&&i?ge(i)?i.concat(di(t)):[i,di(t)]:di(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return s&&r&&_o(c,s.clone(c)),c}function $n(e=" ",t=0){return je(Nn,null,e,t)}function L_(e,t){const o=je(ci,null,e);return o.staticCount=t,o}function db(e="",t=!1){return t?(k(),ae(Ze,null,e)):je(Ze,null,e)}function no(e){return e==null||typeof e=="boolean"?je(Ze):ge(e)?je(Te,null,e.slice()):Ro(e)?Po(e):je(Nn,null,String(e))}function Po(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}function Pi(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Su(t)?t._ctx=lt:n===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ye(t)){if(r&65){Pi(e,{default:t});return}t={default:t,_ctx:lt},o=32}else t=String(t),r&64?(o=16,t=[$n(t)]):o=8;e.children=t,e.shapeFlag|=o}function Bt(...e){const t={};for(let o=0;omt||lt;let Ti,Rn;{const e=Li(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Ti=t("__VUE_INSTANCE_SETTERS__",o=>mt=o),Rn=t("__VUE_SSR_SETTERS__",o=>In=o)}const jn=e=>{const t=mt;return Ti(e),e.scope.on(),()=>{e.scope.off(),Ti(t)}},$s=()=>{mt&&mt.scope.off(),Ti(null)};function Mu(e){return e.vnode.shapeFlag&4}let In=!1;function pb(e,t=!1,o=!1){t&&Rn(t);const{props:r,children:n}=e.vnode,i=Mu(e);Xg(e,r,i,t),eb(e,n,o||t);const l=i?mb(e,t):void 0;return t&&Rn(!1),l}function mb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fg);const{setup:r}=o;if(r){fo();const n=e.setupContext=r.length>1?bb(e):null,i=jn(e),l=Wn(r,e,0,[e.props,n]),a=xd(l);if(ho(),i(),(a||e.sp)&&!Mr(e)&&nu(e),a){if(l.then($s,$s),t)return l.then(s=>{Rn(!0);try{Rs(e,s,t)}finally{Rn(!1)}}).catch(s=>{ji(s,e,0,void 0,!0),e.ssrRender=(d,c)=>c("")});e.asyncDep=l}else Rs(e,l)}else zu(e)}function Rs(e,t,o){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Gd(t)),zu(e)}function zu(e,t,o){const r=e.type;e.render||(e.render=r.render||co);{const n=jn(e);fo();try{Bg(e)}finally{ho(),n()}}}const Fu=Symbol(),gb={get(e,t){return ht(e,"get",""),t===Fu?e:e[t]}};function bb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,gb),slots:e.slots,emit:e.emit,expose:t}}function Yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gd(Vl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in gn)return gn[o](e)},has(t,o){return o in t||o in gn}})):e.proxy}function vb(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Cb(e){return ye(e)&&"__vccOpts"in e}const X=(e,t)=>fg(e,t,In);function Rt(e,t,o){try{wi(-1);const r=arguments.length;return r===2?Ie(t)&&!ge(t)?Ro(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Ro(o)&&(o=[o]),je(e,t,o))}finally{wi(1)}}const xb="3.5.45";let Jl;const Is=typeof window<"u"&&window.trustedTypes;if(Is)try{Jl=Is.createPolicy("vue",{createHTML:e=>e})}catch{}const Bu=Jl?e=>Jl.createHTML(e):e=>e,yb="http://www.w3.org/2000/svg",Sb="http://www.w3.org/1998/Math/MathML",wo=typeof document<"u"?document:null,As=wo&&wo.createElement("template"),wb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?wo.createElementNS(yb,e):t==="mathml"?wo.createElementNS(Sb,e):o?wo.createElement(e,{is:o}):wo.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{As.innerHTML=Bu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=As.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Fo="transition",en="animation",kr=Symbol("_vtc"),ku={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Du=qe({},tu,ku),Pb=e=>(e.displayName="Transition",e.props=Du,e),br=Pb((e,{slots:t})=>Rt(Eg,Lu(e),t)),er=(e,t=[])=>{ge(e)?e.forEach(o=>o(...t)):e&&e(...t)},Hs=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Lu(e){const t={};for(const $ in e)$ in ku||(t[$]=e[$]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:d=l,appearToClass:c=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(n),g=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:y,onEnterCancelled:T,onLeave:P,onLeaveCancelled:A,onBeforeAppear:M=C,onAppear:v=y,onAppearCancelled:w=T}=t,_=($,K,ie,be)=>{$._enterCancelled=be,Oo($,K?c:a),Oo($,K?d:l),ie&&ie()},H=($,K)=>{$._isLeaving=!1,Oo($,u),Oo($,h),Oo($,f),K&&K()},O=$=>(K,ie)=>{const be=$?v:y,ce=()=>_(K,$,ie);er(be,[K,ce]),Ms(()=>{Oo(K,$?s:i),to(K,$?c:a),Hs(be)||zs(K,r,g,ce)})};return qe(t,{onBeforeEnter($){er(C,[$]),to($,i),to($,l)},onBeforeAppear($){er(M,[$]),to($,s),to($,d)},onEnter:O(!1),onAppear:O(!0),onLeave($,K){$._isLeaving=!0;const ie=()=>H($,K);to($,u),$._enterCancelled?(to($,f),Ql($)):(Ql($),to($,f)),Ms(()=>{$._isLeaving&&(Oo($,u),to($,h),Hs(P)||zs($,r,b,ie))}),er(P,[$,ie])},onEnterCancelled($){_($,!1,void 0,!0),er(T,[$])},onAppearCancelled($){_($,!0,void 0,!0),er(w,[$])},onLeaveCancelled($){H($),er(A,[$])}})}function Tb(e){if(e==null)return null;if(Ie(e))return[Tl(e.enter),Tl(e.leave)];{const t=Tl(e);return[t,t]}}function Tl(e){return Am(e)}function to(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[kr]||(e[kr]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[kr];o&&(o.delete(t),o.size||(e[kr]=void 0))}function Ms(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eb=0;function zs(e,t,o,r){const n=e._endId=++Eb,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Ou(e,t);if(!l)return r();const d=l+"end";let c=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++c>=s&&u()};setTimeout(()=>{c(o[p]||"").split(", "),n=r(`${Fo}Delay`),i=r(`${Fo}Duration`),l=Fs(n,i),a=r(`${en}Delay`),s=r(`${en}Duration`),d=Fs(a,s);let c=null,u=0,f=0;t===Fo?l>0&&(c=Fo,u=l,f=i.length):t===en?d>0&&(c=en,u=d,f=s.length):(u=Math.max(l,d),c=u>0?l>d?Fo:en:null,f=c?c===Fo?i.length:s.length:0);const h=c===Fo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Fo}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:h}}function Fs(e,t){for(;e.lengthBs(o)+Bs(e[r])))}function Bs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ql(e){return(e?e.ownerDocument:document).body.offsetHeight}function _b(e,t,o){const r=e[kr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ei=Symbol("_vod"),Ma=Symbol("_vsh"),ks={name:"show",beforeMount(e,{value:t},{transition:o}){e[Ei]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),tn(e,!0),r.enter(e)):r.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[Ei]:"none",e[Ma]=!t}const $b=Symbol(""),Rb=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const r=e.style,n=Ve(o);let i=!1;if(o&&!n){if(t)if(Ve(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&cn(r,a,"")}else for(const l in t)o[l]==null&&cn(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?Hb(e,l,!Ve(t)&&t?t[l]:void 0,a)||cn(r,l,a):cn(r,l,"")}}else if(n){if(t!==o){const l=r[$b];l&&(o+=";"+l),r.cssText=o,i=Rb.test(o)}}else t&&e.removeAttribute("style");Ei in e&&((!n||t!==o)&&(e[Ei]=i?r.display:""),e[Ma]&&(r.display="none"))}const Qn=/\s*!important$/;function cn(e,t,o){if(ge(o))o.forEach(r=>cn(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Qn.test(o)?e.setProperty(t,o.replace(Qn,""),"important"):e.setProperty(t,o);else{const r=Ab(e,t);Qn.test(o)?e.setProperty(Cr(r),o.replace(Qn,""),"important"):e[r]=o}}const Ds=["Webkit","Moz","ms"],El={};function Ab(e,t){const o=El[t];if(o)return o;let r=wt(t);if(r!=="filter"&&r in e)return El[t]=r;r=Di(r);for(let n=0;n_l||(Lb.then(()=>_l=0),_l=Date.now());function Wb(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(ge(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nb=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?_b(e,r,l):t==="style"?Ib(e,o,r):zi(t)?Fi(t)||Fb(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jb(e,t,r,l))?(Ws(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Os(e,t,r,l,i,t!=="value")):e._isVueCE&&(Vb(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ve(r)))?Ws(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Os(e,t,r,l))};function jb(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&js(t)&&ye(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return js(t)&&Ve(o)?!1:t in e}function Vb(e,t){const o=e._def.props;if(!o)return!1;const r=wt(t);return Array.isArray(o)?o.some(n=>wt(n)===r):Object.keys(o).some(n=>wt(n)===r)}const Wu=new WeakMap,Nu=new WeakMap,_i=Symbol("_moveCb"),Vs=Symbol("_enterCb"),ea=new WeakMap,Gb=e=>(delete e.props.mode,e),Ub=Gb({name:"TransitionGroup",props:qe({},Du,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Wr(),r=eu();let n,i,l,a;const s=()=>(a===void 0&&(a=n.length>0&&ev(n[0].el,o.vnode.el,Gs(e))),a);return su(()=>{if(ea.delete(o),!s()){n=[],l=void 0;return}const d=Gs(e);n.forEach(Kb);const c=l&&Qb(l,o.vnode.el);l=void 0,n.forEach(f=>Yb(f,c));const u=n.filter(Xb);Ql(o.vnode.el),u.forEach(f=>{const h=f.el,p=h.style;to(h,d),p.transform=p.webkitTransform=p.transitionDuration="";const g=h[_i]=b=>{b&&b.target!==h||(!b||b.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",g),h[_i]=null,Oo(h,d))};h.addEventListener("transitionend",g)}),n=[]}),()=>{const d=_e(e),c=Lu(d);let u=d.tag||Te;if(n=[],a=void 0,i)for(let f=0;fr.willMove()&&r.item.contains(t));return o&&Xi(o.item,o)}function ev(e,t,o){const r=e.cloneNode(),n=e[kr];n&&n.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=Ou(r);return i.removeChild(r),l}const tv=["ctrl","shift","alt","meta"],ov={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tv.some(o=>e[`${o}Key`]&&!t.includes(o))},O_=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const t=nv().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=av(r);if(!n)return;const i=t._component;!ye(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,lv(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function lv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function av(e){return Ve(e)?document.querySelector(e):e}function sv(e){let t=".",o="__",r="--",n;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){n=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(C){g=C.bem.b,b=C.bem.els,C.bem.els=null},after(C){C.bem.b=g,C.bem.els=b},$({context:C,props:y}){return p=typeof p=="string"?p:p({context:C,props:y}),C.bem.b=p,`${y?.bPrefix||t}${C.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:C}){return p=typeof p=="string"?p:p({context:b,props:C}),b.bem.els=p.split(",").map(y=>y.trim()),b.bem.els.map(y=>`${C?.bPrefix||t}${b.bem.b}${o}${y}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=p.split(",").map(P=>P.trim());function y(P){return C.map(A=>`&${b?.bPrefix||t}${g.bem.b}${P!==void 0?`${o}${P}`:""}${r}${A}`).join(", ")}const T=g.bem.els;return T!==null?y(T[0]):y()}}}function d(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=g.bem.els;return`&:not(${b?.bPrefix||t}${g.bem.b}${C!==null&&C.length>0?`${o}${C[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>n(l(p[0]),p[1],p[2])),cE:((...p)=>n(a(p[0]),p[1],p[2])),cM:((...p)=>n(s(p[0]),p[1],p[2])),cNotM:((...p)=>n(d(p[0]),p[1],p[2]))}),i}function cv(e){let t=0;for(let o=0;o{let n=cv(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function fv(e,t){const o=[];return t.split(ju).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function hv(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=uv(t,o):t=fv(t,o))}),t.join(", ").replace(dv," ")}function qs(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function pv(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ei(e){return e?/^\s*@(s|m)/.test(e):!1}const mv=/[A-Z]/g;function Vu(e){return e.replace(mv,t=>"-"+t.toLowerCase())}function gv(e,t=" "){return typeof e=="object"&&e!==null?` { `+Object.entries(e).map(o=>t+` ${Vu(o[0])}: ${o[1]};`).join(` `)+` @@ -813,4 +813,4 @@ ${t} transform: translate(${t}, 0); `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: translate(0, 0); - `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-DDTKasOc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-DxAvLK-K.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-DmAH_wjP.js"),__vite__mapDeps([11,12,13,4,2,14,15,6,16,17,18,19,20])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-CmWF_crB.js"),__vite__mapDeps([21,1,2,4,22,13,5,23,24,12,25,14,26,27,3,28,15,16,9,29,30]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-jJfZw4rU.js"),__vite__mapDeps([31,25,13,4,2,1,23,24,5,14,26,15,17,32,9,29,33]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-FDkwT__U.js"),__vite__mapDeps([34,25,13,4,2,1,22,35,28,14,26,9,18,36]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-9SicR-7j.js"),__vite__mapDeps([37,25,13,4,2,1,3,5,26,19,29,16,32,9,38]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-C7TOuPQQ.js"),__vite__mapDeps([39,1,2,25,13,4,35,5,28,27,15,16,9,40]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,D_ as A,fa as B,mr as C,Mg as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,eP as b0,c2 as b1,Kt as b2,nl as b3,Nc as b4,Hi as b5,ja as b6,Wa as b7,Na as b8,An as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,wp as ba,Mi as bb,Ku as bc,Rv as bd,DS as be,Va as bf,Kr as bg,hi as bh,J_ as bi,hT as bj,Io as bk,X_ as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Gt as z}; + `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-BXa3gqh3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-ekQZ1QYf.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-BtBozJ6v.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-X3e6akRp.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,3,30,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-D-5LxqQb.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-CiNT7cDx.js"),__vite__mapDeps([36,27,13,4,2,1,24,37,30,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-bBDSRDwN.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-fhfMIyM2.js"),__vite__mapDeps([41,1,2,27,13,4,37,5,30,16,17,29,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,eP as b0,c2 as b1,Kt as b2,nl as b3,Nc as b4,Hi as b5,ja as b6,Wa as b7,Na as b8,An as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,wp as ba,Mi as bb,Ku as bc,Rv as bd,DS as be,Va as bf,Kr as bg,hi as bh,J_ as bi,hT as bj,Io as bk,X_ as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bl5LBoP5.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Crtjgplw.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bl5LBoP5.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Crtjgplw.js index 9f0c7bfa..72f9ffe6 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bl5LBoP5.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Crtjgplw.js @@ -1,2 +1,2 @@ -import{ao as a,aV as t,ap as r,a_ as i}from"./index-Ch4EWX-G.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` +import{ao as a,aV as t,ap as r,a_ as i}from"./index-FGi6cKHs.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` `)}const p=s=>r("/v1/streamers",s),u=s=>t("/v1/streamers",s),d=s=>i(`/v1/streamers/${s}`),g=s=>t(`/v1/streamers/${s}/pause`),$=s=>`/v1/streamers/${s}/cover`;export{m as a,p as b,$ as c,o as d,d as e,c as g,l,v as p,g as t,u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CjxNERC_.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-Cc7HI9yh.js similarity index 76% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CjxNERC_.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-Cc7HI9yh.js index ac87e7d5..3771e6dd 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CjxNERC_.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-Cc7HI9yh.js @@ -1 +1 @@ -import{L as f,j as e}from"./index-Ch4EWX-G.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; +import{L as f,j as e}from"./index-FGi6cKHs.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-sIwnQEJL.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DzcW9fCu.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-sIwnQEJL.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DzcW9fCu.js index e4457c1d..c8d999c8 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-sIwnQEJL.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DzcW9fCu.js @@ -1,4 +1,4 @@ -import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as ze,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,z as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b2 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-Ch4EWX-G.js";import{f as Oe}from"./_plugin-vue_export-helper-DQkFygL-.js";import{u as Mn,a as An}from"./use-compitable-CjxNERC_.js";var Ie=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var zn=500;function In(e){var t=Ye(e,function(r){return n.size===zn&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=In(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:z,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:I}=l;$==="target"?I.width=`${d.width}px`:$!==void 0?I.width=$:I.width="",T==="target"?I.minWidth=`${d.width}px`:T!==void 0?I.minWidth=T:I.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,z,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` +import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b2 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-FGi6cKHs.js";import{f as Oe}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as Mn,a as An}from"./use-compitable-Cc7HI9yh.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), @@ -114,4 +114,4 @@ import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX ${n}: 100%; ${Te[n]}: auto; ${r} - `,[D("popover-arrow",t)])])])}const Tt={...He.props,to:ee.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number};function go({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:o}){return B(),U("div",{key:"__popover-arrow__",style:q(r),class:Q([`${o}-popover-arrow-wrapper`,n])},[mn("div",{class:Q([`${o}-popover-arrow`,e]),style:q(t)},null,6)],6)}var mo=de({name:"PopoverBody",inheritAttrs:!1,props:Tt,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:a,mergedRtlRef:i}=ln(e),u=He("Popover","-popover",vo,un,e,o),s=dn("Popover",i,o),w=P(null),p=F("NPopover"),m=P(null),l=P(e.show),f=P(!1);xt(()=>{const{show:y}=e;y&&!Rr()&&!e.internalDeactivateImmediately&&(f.value=!0)});const v=ie(()=>{const{trigger:y,onClickoutside:S}=e,g=[],{positionManuallyRef:{value:C}}=p;return C||(y==="click"&&!S&&g.push([Je,N,void 0,{capture:!0}]),y==="hover"&&g.push([oo,z])),S&&g.push([Je,N,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&g.push([gn,e.show]),g}),c=ie(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:S,cubicBezierEaseOut:g},self:{space:C,spaceArrow:W,padding:h,fontSize:A,textColor:M,dividerColor:E,color:fe,boxShadow:zt,borderRadius:It,arrowHeight:Lt,arrowOffset:Dt,arrowOffsetVertical:Ft}}=u.value;return{"--n-box-shadow":zt,"--n-bezier":y,"--n-bezier-ease-in":S,"--n-bezier-ease-out":g,"--n-font-size":A,"--n-text-color":M,"--n-color":fe,"--n-divider-color":E,"--n-border-radius":It,"--n-arrow-height":Lt,"--n-arrow-offset":Dt,"--n-arrow-offset-vertical":Ft,"--n-padding":h,"--n-space":C,"--n-space-arrow":W}}),b=ie(()=>{const y=e.width==="trigger"?void 0:Oe(e.width),S=[];y&&S.push({width:y});const{maxWidth:g,minWidth:C}=e;return g&&S.push({maxWidth:Oe(g)}),C&&S.push({maxWidth:Oe(C)}),a||S.push(c.value),S}),d=a?fn("popover",void 0,c,e):void 0;p.setBodyInstance({syncPosition:$}),ue(()=>{p.setBodyInstance(null)}),re(j(e,"show"),y=>{e.animated||(y?l.value=!0:l.value=!1)});function $(){w.value?.syncPosition()}function T(y){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&p.handleMouseEnter(y)}function O(y){e.trigger==="hover"&&e.keepAliveOnHover&&p.handleMouseLeave(y)}function z(y){e.trigger==="hover"&&!I().contains(Re(y))&&p.handleMouseMoveOutside(y)}function N(y){(e.trigger==="click"&&!I().contains(Re(y))||e.onClickoutside)&&p.handleClickOutside(y)}function I(){return p.getTriggerElement()}ae(bt,m),ae(wt,null),ae(mt,null);function ne(){if(d?.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let y;const S=p.internalRenderBodyRef.value,{value:g}=o;if(S)y=S([`${g}-popover-shared`,s?.value&&`${g}-popover--rtl`,d?.themeClass.value,e.overlap&&`${g}-popover-shared--overlap`,e.showArrow&&`${g}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${g}-popover-shared--center-arrow`],m,b.value,T,O);else{const{value:C}=p.extraClassRef,{internalTrapFocus:W}=e,h=!Qe(t.header)||!Qe(t.footer),A=()=>{const M=h?(B(),U(pn,{key:1},[Y(()=>Ce(t.header,E=>E?(B(),U("div",{key:2,class:Q([`${g}-popover__header`,e.headerClass]),style:q(e.headerStyle)},[Y(()=>E)],6)):null)),Y(()=>Ce(t.default,E=>E?(B(),U("div",{key:3,class:Q([`${g}-popover__content`,e.contentClass]),style:q(e.contentStyle)},[Y(()=>t.default?.())],6)):null)),Y(()=>Ce(t.footer,E=>E?(B(),U("div",{key:4,class:Q([`${g}-popover__footer`,e.footerClass]),style:q(e.footerStyle)},[Y(()=>E)],6)):null))],64)):e.scrollable?t.default?.():(B(),U("div",{key:5,class:Q([`${g}-popover__content`,e.contentClass]),style:q(e.contentStyle)},[Y(()=>t.default?.())],6));return[e.scrollable?(B(),oe(vn,{key:6,themeOverrides:u.value.peerOverrides.Scrollbar,theme:u.value.peers.Scrollbar,contentClass:h?void 0:`${g}-popover__content ${e.contentClass??""}`,contentStyle:h?void 0:e.contentStyle},{default:()=>M},1032,["themeOverrides","theme","contentClass","contentStyle"])):M,e.showArrow?go({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:g}):null]};y=V("div",hn({class:[`${g}-popover`,`${g}-popover-shared`,s?.value&&`${g}-popover--rtl`,d?.themeClass.value,C.map(M=>`${g}-${M}`),{[`${g}-popover--scrollable`]:e.scrollable,[`${g}-popover--show-header-or-footer`]:h,[`${g}-popover--raw`]:e.raw,[`${g}-popover-shared--overlap`]:e.overlap,[`${g}-popover-shared--show-arrow`]:e.showArrow,[`${g}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:m,style:b.value,onKeydown:p.handleKeydown,onMouseenter:T,onMouseleave:O},n),W?(B(),oe(cn,{key:7,active:e.show,autoFocus:!0},{default:A},1032,["active"])):A())}return xe(y,v.value)}return{displayed:f,namespace:r,isMounted:p.isMountedRef,zIndex:p.zIndexRef,followerRef:w,adjustedTo:ee(e),followerEnabled:l,renderContentNode:ne}},render(){return B(),oe(po,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===ee.tdkey},{_:1,default:an(()=>this.animated?(B(),oe(sn,{key:8,name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{this.internalOnAfterLeave?.(),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode},1032,["appear","onEnter","onAfterLeave"])):this.renderContentNode())},8,["zIndex","show","enabled","to","x","y","flip","placement","containerClass","overlap","width","teleportDisabled"])}});const wo={key:1,style:{position:"fixed",top:0,right:0,bottom:0,left:0}},bo=Object.keys(Tt),yo={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function $o(e,t,n){yo[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],a=n[r];o?e.props[r]=(...i)=>{o(...i),a(...i)}:e.props[r]=a})}const xo={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:ee.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},So={...He.props,...xo,internalOnAfterLeave:Function,internalRenderBody:Function};var Eo=de({name:"Popover",inheritAttrs:!1,props:So,slots:Object,__popover__:!0,setup(e){const t=$t(),n=P(null),r=ie(()=>e.show),o=P(e.defaultShow),a=Mn(r,o),i=le(()=>e.disabled?!1:a.value),u=()=>{if(e.disabled)return!0;const{getDisabled:h}=e;return!!h?.()},s=()=>u()?!1:a.value,w=An(e,["arrow","showArrow"]),p=ie(()=>e.overlap?!1:w.value);let m=null;const l=P(null),f=P(null),v=le(()=>e.x!==void 0&&e.y!==void 0);function c(h){const{"onUpdate:show":A,onUpdateShow:M,onShow:E,onHide:fe}=e;o.value=h,A&&ce(A,h),M&&ce(M,h),h&&E&&ce(E,!0),h&&fe&&ce(fe,!1)}function b(){m&&m.syncPosition()}function d(){const{value:h}=l;h&&(window.clearTimeout(h),l.value=null)}function $(){const{value:h}=f;h&&(window.clearTimeout(h),f.value=null)}function T(){const h=u();if(e.trigger==="focus"&&!h){if(s())return;c(!0)}}function O(){const h=u();if(e.trigger==="focus"&&!h){if(!s())return;c(!1)}}function z(){const h=u();if(e.trigger==="hover"&&!h){if($(),l.value!==null||s())return;const A=()=>{c(!0),l.value=null},{delay:M}=e;M===0?A():l.value=window.setTimeout(A,M)}}function N(){const h=u();if(e.trigger==="hover"&&!h){if(d(),f.value!==null||!s())return;const A=()=>{c(!1),f.value=null},{duration:M}=e;M===0?A():f.value=window.setTimeout(A,M)}}function I(){N()}function ne(h){s()&&(e.trigger==="click"&&(d(),$(),c(!1)),e.onClickoutside?.(h))}function y(){e.trigger==="click"&&!u()&&(d(),$(),c(!s()))}function S(h){e.internalTrapFocus&&h.key==="Escape"&&(d(),$(),c(!1))}function g(h){o.value=h}function C(){return n.value?.targetRef}function W(h){m=h}return ae("NPopover",{getTriggerElement:C,handleKeydown:S,handleMouseEnter:z,handleMouseLeave:N,handleClickOutside:ne,handleMouseMoveOutside:I,setBodyInstance:W,positionManuallyRef:v,isMountedRef:t,zIndexRef:j(e,"zIndex"),extraClassRef:j(e,"internalExtraClass"),internalRenderBodyRef:j(e,"internalRenderBody")}),xt(()=>{a.value&&u()&&c(!1)}),{binderInstRef:n,positionManually:v,mergedShowConsideringDisabledProp:i,uncontrolledShow:o,mergedShowArrow:p,getMergedShow:s,setShow:g,handleClick:y,handleMouseEnter:z,handleMouseLeave:N,handleFocus:T,handleBlur:O,syncPosition:b}},render(){const{positionManually:e,$slots:t}=this;let n,r=!1;if(!e&&(n=wn(t,"trigger"),n)){n=bn(n),n=n.type===yn?V("span",[n]):n;const o={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(n.type?.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[o,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[o];else{const{internalInheritedEventHandlers:a}=this,i=[o,...a];$o(n,a?"nested":e?"manual":this.trigger,{onBlur:u=>{i.forEach(s=>{s.onBlur(u)})},onFocus:u=>{i.forEach(s=>{s.onFocus(u)})},onClick:u=>{i.forEach(s=>{s.onClick(u)})},onMouseenter:u=>{i.forEach(s=>{s.onMouseenter(u)})},onMouseleave:u=>{i.forEach(s=>{s.onMouseleave(u)})}})}}return B(),oe(no,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const o=this.getMergedShow();return[this.internalTrapFocus&&o?xe((B(),U("div",wo)),[[yt,{enabled:o,zIndex:this.zIndex}]]):null,e?null:V(ro,null,{default:()=>n}),V(mo,$n(this.$props,bo,{...this.$attrs,showArrow:this.mergedShowArrow,show:o}),{default:()=>this.$slots.default?.(),header:()=>this.$slots.header?.(),footer:()=>this.$slots.footer?.()})]}},1032,["syncTarget","syncTargetWithParent"])}});function _o(){const e=F(Sn,null);return e===null&&xn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}export{no as B,Eo as P,ro as V,po as a,ee as b,ao as c,Zr as d,pe as e,qr as f,Nn as g,Oo as i,xo as p,go as r,_o as u}; + `,[D("popover-arrow",t)])])])}const Tt={...He.props,to:ee.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number};function go({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:o}){return B(),U("div",{key:"__popover-arrow__",style:q(r),class:Q([`${o}-popover-arrow-wrapper`,n])},[mn("div",{class:Q([`${o}-popover-arrow`,e]),style:q(t)},null,6)],6)}var mo=de({name:"PopoverBody",inheritAttrs:!1,props:Tt,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:a,mergedRtlRef:i}=ln(e),u=He("Popover","-popover",vo,un,e,o),s=dn("Popover",i,o),w=P(null),p=F("NPopover"),m=P(null),l=P(e.show),f=P(!1);xt(()=>{const{show:y}=e;y&&!Rr()&&!e.internalDeactivateImmediately&&(f.value=!0)});const v=ie(()=>{const{trigger:y,onClickoutside:S}=e,g=[],{positionManuallyRef:{value:C}}=p;return C||(y==="click"&&!S&&g.push([Je,N,void 0,{capture:!0}]),y==="hover"&&g.push([oo,I])),S&&g.push([Je,N,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&g.push([gn,e.show]),g}),c=ie(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:S,cubicBezierEaseOut:g},self:{space:C,spaceArrow:W,padding:h,fontSize:A,textColor:M,dividerColor:E,color:fe,boxShadow:It,borderRadius:zt,arrowHeight:Lt,arrowOffset:Dt,arrowOffsetVertical:Ft}}=u.value;return{"--n-box-shadow":It,"--n-bezier":y,"--n-bezier-ease-in":S,"--n-bezier-ease-out":g,"--n-font-size":A,"--n-text-color":M,"--n-color":fe,"--n-divider-color":E,"--n-border-radius":zt,"--n-arrow-height":Lt,"--n-arrow-offset":Dt,"--n-arrow-offset-vertical":Ft,"--n-padding":h,"--n-space":C,"--n-space-arrow":W}}),b=ie(()=>{const y=e.width==="trigger"?void 0:Oe(e.width),S=[];y&&S.push({width:y});const{maxWidth:g,minWidth:C}=e;return g&&S.push({maxWidth:Oe(g)}),C&&S.push({maxWidth:Oe(C)}),a||S.push(c.value),S}),d=a?fn("popover",void 0,c,e):void 0;p.setBodyInstance({syncPosition:$}),ue(()=>{p.setBodyInstance(null)}),re(j(e,"show"),y=>{e.animated||(y?l.value=!0:l.value=!1)});function $(){w.value?.syncPosition()}function T(y){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&p.handleMouseEnter(y)}function O(y){e.trigger==="hover"&&e.keepAliveOnHover&&p.handleMouseLeave(y)}function I(y){e.trigger==="hover"&&!z().contains(Re(y))&&p.handleMouseMoveOutside(y)}function N(y){(e.trigger==="click"&&!z().contains(Re(y))||e.onClickoutside)&&p.handleClickOutside(y)}function z(){return p.getTriggerElement()}ae(bt,m),ae(wt,null),ae(mt,null);function ne(){if(d?.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let y;const S=p.internalRenderBodyRef.value,{value:g}=o;if(S)y=S([`${g}-popover-shared`,s?.value&&`${g}-popover--rtl`,d?.themeClass.value,e.overlap&&`${g}-popover-shared--overlap`,e.showArrow&&`${g}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${g}-popover-shared--center-arrow`],m,b.value,T,O);else{const{value:C}=p.extraClassRef,{internalTrapFocus:W}=e,h=!Qe(t.header)||!Qe(t.footer),A=()=>{const M=h?(B(),U(pn,{key:1},[Y(()=>Ce(t.header,E=>E?(B(),U("div",{key:2,class:Q([`${g}-popover__header`,e.headerClass]),style:q(e.headerStyle)},[Y(()=>E)],6)):null)),Y(()=>Ce(t.default,E=>E?(B(),U("div",{key:3,class:Q([`${g}-popover__content`,e.contentClass]),style:q(e.contentStyle)},[Y(()=>t.default?.())],6)):null)),Y(()=>Ce(t.footer,E=>E?(B(),U("div",{key:4,class:Q([`${g}-popover__footer`,e.footerClass]),style:q(e.footerStyle)},[Y(()=>E)],6)):null))],64)):e.scrollable?t.default?.():(B(),U("div",{key:5,class:Q([`${g}-popover__content`,e.contentClass]),style:q(e.contentStyle)},[Y(()=>t.default?.())],6));return[e.scrollable?(B(),oe(vn,{key:6,themeOverrides:u.value.peerOverrides.Scrollbar,theme:u.value.peers.Scrollbar,contentClass:h?void 0:`${g}-popover__content ${e.contentClass??""}`,contentStyle:h?void 0:e.contentStyle},{default:()=>M},1032,["themeOverrides","theme","contentClass","contentStyle"])):M,e.showArrow?go({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:g}):null]};y=V("div",hn({class:[`${g}-popover`,`${g}-popover-shared`,s?.value&&`${g}-popover--rtl`,d?.themeClass.value,C.map(M=>`${g}-${M}`),{[`${g}-popover--scrollable`]:e.scrollable,[`${g}-popover--show-header-or-footer`]:h,[`${g}-popover--raw`]:e.raw,[`${g}-popover-shared--overlap`]:e.overlap,[`${g}-popover-shared--show-arrow`]:e.showArrow,[`${g}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:m,style:b.value,onKeydown:p.handleKeydown,onMouseenter:T,onMouseleave:O},n),W?(B(),oe(cn,{key:7,active:e.show,autoFocus:!0},{default:A},1032,["active"])):A())}return xe(y,v.value)}return{displayed:f,namespace:r,isMounted:p.isMountedRef,zIndex:p.zIndexRef,followerRef:w,adjustedTo:ee(e),followerEnabled:l,renderContentNode:ne}},render(){return B(),oe(po,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===ee.tdkey},{_:1,default:an(()=>this.animated?(B(),oe(sn,{key:8,name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{this.internalOnAfterLeave?.(),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode},1032,["appear","onEnter","onAfterLeave"])):this.renderContentNode())},8,["zIndex","show","enabled","to","x","y","flip","placement","containerClass","overlap","width","teleportDisabled"])}});const wo={key:1,style:{position:"fixed",top:0,right:0,bottom:0,left:0}},bo=Object.keys(Tt),yo={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function $o(e,t,n){yo[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],a=n[r];o?e.props[r]=(...i)=>{o(...i),a(...i)}:e.props[r]=a})}const xo={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:ee.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},So={...He.props,...xo,internalOnAfterLeave:Function,internalRenderBody:Function};var Eo=de({name:"Popover",inheritAttrs:!1,props:So,slots:Object,__popover__:!0,setup(e){const t=$t(),n=P(null),r=ie(()=>e.show),o=P(e.defaultShow),a=Mn(r,o),i=le(()=>e.disabled?!1:a.value),u=()=>{if(e.disabled)return!0;const{getDisabled:h}=e;return!!h?.()},s=()=>u()?!1:a.value,w=An(e,["arrow","showArrow"]),p=ie(()=>e.overlap?!1:w.value);let m=null;const l=P(null),f=P(null),v=le(()=>e.x!==void 0&&e.y!==void 0);function c(h){const{"onUpdate:show":A,onUpdateShow:M,onShow:E,onHide:fe}=e;o.value=h,A&&ce(A,h),M&&ce(M,h),h&&E&&ce(E,!0),h&&fe&&ce(fe,!1)}function b(){m&&m.syncPosition()}function d(){const{value:h}=l;h&&(window.clearTimeout(h),l.value=null)}function $(){const{value:h}=f;h&&(window.clearTimeout(h),f.value=null)}function T(){const h=u();if(e.trigger==="focus"&&!h){if(s())return;c(!0)}}function O(){const h=u();if(e.trigger==="focus"&&!h){if(!s())return;c(!1)}}function I(){const h=u();if(e.trigger==="hover"&&!h){if($(),l.value!==null||s())return;const A=()=>{c(!0),l.value=null},{delay:M}=e;M===0?A():l.value=window.setTimeout(A,M)}}function N(){const h=u();if(e.trigger==="hover"&&!h){if(d(),f.value!==null||!s())return;const A=()=>{c(!1),f.value=null},{duration:M}=e;M===0?A():f.value=window.setTimeout(A,M)}}function z(){N()}function ne(h){s()&&(e.trigger==="click"&&(d(),$(),c(!1)),e.onClickoutside?.(h))}function y(){e.trigger==="click"&&!u()&&(d(),$(),c(!s()))}function S(h){e.internalTrapFocus&&h.key==="Escape"&&(d(),$(),c(!1))}function g(h){o.value=h}function C(){return n.value?.targetRef}function W(h){m=h}return ae("NPopover",{getTriggerElement:C,handleKeydown:S,handleMouseEnter:I,handleMouseLeave:N,handleClickOutside:ne,handleMouseMoveOutside:z,setBodyInstance:W,positionManuallyRef:v,isMountedRef:t,zIndexRef:j(e,"zIndex"),extraClassRef:j(e,"internalExtraClass"),internalRenderBodyRef:j(e,"internalRenderBody")}),xt(()=>{a.value&&u()&&c(!1)}),{binderInstRef:n,positionManually:v,mergedShowConsideringDisabledProp:i,uncontrolledShow:o,mergedShowArrow:p,getMergedShow:s,setShow:g,handleClick:y,handleMouseEnter:I,handleMouseLeave:N,handleFocus:T,handleBlur:O,syncPosition:b}},render(){const{positionManually:e,$slots:t}=this;let n,r=!1;if(!e&&(n=wn(t,"trigger"),n)){n=bn(n),n=n.type===yn?V("span",[n]):n;const o={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(n.type?.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[o,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[o];else{const{internalInheritedEventHandlers:a}=this,i=[o,...a];$o(n,a?"nested":e?"manual":this.trigger,{onBlur:u=>{i.forEach(s=>{s.onBlur(u)})},onFocus:u=>{i.forEach(s=>{s.onFocus(u)})},onClick:u=>{i.forEach(s=>{s.onClick(u)})},onMouseenter:u=>{i.forEach(s=>{s.onMouseenter(u)})},onMouseleave:u=>{i.forEach(s=>{s.onMouseleave(u)})}})}}return B(),oe(no,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const o=this.getMergedShow();return[this.internalTrapFocus&&o?xe((B(),U("div",wo)),[[yt,{enabled:o,zIndex:this.zIndex}]]):null,e?null:V(ro,null,{default:()=>n}),V(mo,$n(this.$props,bo,{...this.$attrs,showArrow:this.mergedShowArrow,show:o}),{default:()=>this.$slots.default?.(),header:()=>this.$slots.header?.(),footer:()=>this.$slots.footer?.()})]}},1032,["syncTarget","syncTargetWithParent"])}});function _o(){const e=F(Sn,null);return e===null&&xn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}export{no as B,Eo as P,ro as V,po as a,ee as b,ao as c,Zr as d,pe as e,qr as f,Nn as g,Oo as i,xo as p,go as r,_o as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html index 708cc3af..194703c3 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html @@ -5,7 +5,7 @@ Live Stream Recorder - + diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs new file mode 100644 index 00000000..727de047 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs @@ -0,0 +1,163 @@ +// 引擎按需下载:只在用户明确点击后发起网络请求;落盘到插件数据目录并校验 SHA-256。 +import { createHash } from 'node:crypto'; +import { createReadStream, createWriteStream, existsSync, mkdirSync, renameSync, statSync, statfsSync, unlinkSync } from 'node:fs'; +import { once } from 'node:events'; +import { join } from 'node:path'; +import { Readable, Transform } from 'node:stream'; +import { pipeline } from 'node:stream/promises'; + +// 下载源常量:Release 发布后由 Bunny 填真值。本轮为占位值且关闭下载按钮(预期状态)。 +export const ENGINE_DOWNLOAD_CONFIGURED = false; +export const DOWNLOAD = Object.freeze({ + url: 'https://github.com/charlesnty612/live-stream-recorder/releases/download/PENDING/engine-windows-x64.exe', + sha256: '0000000000000000000000000000000000000000000000000000000000000000', + sizeBytes: 100968448, + version: 'PENDING', +}); + +const RESERVE_BYTES = 500 * 1024 * 1024; + +function defaultFreeBytes(dir) { + try { const s = statfsSync(dir); return Number(s.bavail) * Number(s.bsize); } + catch { return Infinity; } +} + +export function createEngineDownloader({ + dataDir, + fetchImpl = (...a) => fetch(...a), + platform = process.platform, + arch = process.arch, + freeBytes = defaultFreeBytes, + restartEngine = async () => {}, + log = () => {}, + configured = ENGINE_DOWNLOAD_CONFIGURED, + download = DOWNLOAD, +} = {}) { + const binDir = join(dataDir, 'bin'); + const finalPath = join(binDir, platform === 'win32' ? 'biliup.exe' : 'biliup'); + const partPath = finalPath + '.part'; + let state = 'missing'; + let error = ''; + let progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; + let controller = null; + let response = null; + let lastSampleAt = 0; + let lastSampleBytes = 0; + + function supported() { return platform === 'win32' && arch === 'x64'; } + function binaryExists() { return existsSync(finalPath); } + + function getStatus() { + const plat = platform + '-' + arch; + if (!supported()) return { state: 'unsupported', platform: plat, error: '当前系统暂无引擎版本' }; + if (binaryExists()) return { state: 'ready', version: download.version, path: finalPath, platform: plat }; + if (state === 'downloading' || state === 'verifying') return { state, platform: plat, ...progress, error }; + if (state === 'failed') return { state, platform: plat, error }; + if (!configured) return { state: 'missing', platform: plat, error: '引擎下载尚未配置' }; + return { state: 'missing', platform: plat }; + } + + function hashFile(file) { + return new Promise((resolve, reject) => { + const h = createHash('sha256'); + const rs = createReadStream(file); + rs.on('data', (c) => h.update(c)); + rs.on('error', reject); + rs.on('end', () => resolve(h.digest('hex'))); + }); + } + + async function verify() { + state = 'verifying'; + const digest = await hashFile(partPath); + if (digest.toLowerCase() !== download.sha256.toLowerCase()) { + try { unlinkSync(partPath); } catch { /* ignore */ } + state = 'failed'; + error = '校验未通过,未安装'; + return; + } + renameSync(partPath, finalPath); + state = 'ready'; + error = ''; + progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; + try { await restartEngine(); } catch (e) { log('warn', 'engine restart after install failed: ' + (e?.message || e)); } + } + + async function runDownload() { + try { + controller = new AbortController(); + mkdirSync(binDir, { recursive: true }); + const head = await fetchImpl(download.url, { method: 'HEAD', signal: controller.signal }); + const total = Number(head.headers?.get?.('content-length')) || download.sizeBytes; + progress.bytesTotal = total; + let resumeFrom = 0; + if (existsSync(partPath)) { + const sz = statSync(partPath).size; + if (sz > 0 && sz < total) resumeFrom = sz; + else if (sz >= total) { await verify(); return; } + } + const headers = resumeFrom > 0 ? { Range: 'bytes=' + resumeFrom + '-' } : {}; + response = await fetchImpl(download.url, { headers, signal: controller.signal }); + if (!response.ok && response.status !== 206) throw new Error('HTTP ' + response.status); + const append = resumeFrom > 0 && response.status === 206; + if (!append) resumeFrom = 0; + progress.bytesDownloaded = resumeFrom; + lastSampleBytes = resumeFrom; + lastSampleAt = Date.now(); + const out = createWriteStream(partPath, { flags: append ? 'a' : 'w' }); + const counter = new Transform({ transform(chunk, _enc, cb) { + progress.bytesDownloaded += chunk.length; + const t = Date.now(); + if (t - lastSampleAt >= 500) { + const delta = progress.bytesDownloaded - lastSampleBytes; + progress.speedBps = Math.max(0, Math.round(delta * 1000 / (t - lastSampleAt))); + lastSampleAt = t; + lastSampleBytes = progress.bytesDownloaded; + } + cb(null, chunk); + } }); + if (response.body) await pipeline(Readable.fromWeb(response.body), counter, out); + else { out.end(); await once(out, 'finish'); } + if (controller?.signal.aborted) return; + await verify(); + } catch (e) { + if (controller?.signal.aborted) return; + state = 'failed'; + error = '下载失败:' + (e?.message || String(e)); + log('warn', 'engine download failed: ' + error); + } finally { controller = null; response = null; } + } + + function start() { + if (!supported()) { state = 'unsupported'; error = '当前系统暂无引擎版本'; return { ok: false, state }; } + if (binaryExists()) { state = 'ready'; return { ok: true, state }; } + if (state === 'downloading' || state === 'verifying') return { ok: false, state }; + if (!configured) { error = '引擎下载尚未配置'; return { ok: false, state, error }; } + const avail = freeBytes(dataDir); + if (avail < download.sizeBytes + RESERVE_BYTES) { + state = 'failed'; + error = '磁盘空间不足,无法下载引擎'; + return { ok: false, state, error }; + } + state = 'downloading'; + error = ''; + progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; + lastSampleAt = 0; + lastSampleBytes = 0; + void runDownload(); + return { ok: true, state }; + } + + function cancel() { + if (state === 'downloading' || state === 'verifying') { + // 只中止 fetch:pipeline 持有 body 锁,再调 body.cancel() 会抛 ERR_INVALID_STATE。 + try { controller?.abort(); } catch { /* ignore */ } + state = 'missing'; + error = ''; + progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; + } + return { ok: true, state }; + } + + return { getStatus, start, cancel, finalPath, partPath, supported }; +} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs index 615e7986..ea82031a 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs @@ -86,7 +86,7 @@ function parseRange(range, size) { } export function createProxy(deps) { - const { getConnection, configStore, eventHub, log, clientRoot, isClosing, registerSocket, unregisterSocket, fetchImpl, now } = deps; + const { getConnection, configStore, eventHub, log, clientRoot, isClosing, registerSocket, unregisterSocket, fetchImpl, now, engineDownloader } = deps; const clock = typeof now === 'function' ? now : Date.now; // ---- opened-file token 映射(纯内存,不落盘,不回显路径)---- @@ -201,6 +201,28 @@ export function createProxy(deps) { } catch { return false; } } + // ---- 引擎按需下载本机接口 /miniapp/engine/*(只本地处理,绝不反代到引擎)---- + function handleEngine(req, res, pathname) { + if (!isLoopbackControl(req)) { + return json(res, 403, { error: 'forbidden: loopback host/origin required' }); + } + if (!engineDownloader) return json(res, 503, { error: 'engine downloader unavailable' }); + if (pathname === '/miniapp/engine/status' && req.method === 'GET') { + return json(res, 200, engineDownloader.getStatus()); + } + if (pathname === '/miniapp/engine/download' && req.method === 'POST') { + const before = engineDownloader.getStatus(); + if (before.state !== 'missing' && before.state !== 'failed') { + return json(res, 409, { ok: false, state: before.state, error: '当前状态不可下载' }); + } + return json(res, 200, engineDownloader.start()); + } + if (pathname === '/miniapp/engine/cancel' && req.method === 'POST') { + return json(res, 200, engineDownloader.cancel()); + } + return send(res, 404, 'not found', { 'content-type': 'text/plain; charset=utf-8' }); + } + // ---- 控制接口 /_miniapp/* ---- function handleControl(req, res, pathname, url) { // 写操作与文件登记必须过回环校验;GET 状态类保持可读(前端 loadRuntimeStatus 依赖)。 @@ -418,6 +440,8 @@ export function createProxy(deps) { } // 4) 控制接口 if (pathname.startsWith('/_miniapp/')) return handleControl(req, res, pathname, url); + // 4a) 引擎按需下载:本机接口,先于业务反代命中,绝不进入 /v1|/bili|/static 通道。 + if (pathname.startsWith('/miniapp/engine/')) return handleEngine(req, res, pathname); // 5) 业务反代 if (pathname.startsWith('/v1/') || pathname.startsWith('/bili/') || pathname.startsWith('/static/')) { const conn = getConnection(); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs index dd53e7ca..62c6c981 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs @@ -6,6 +6,7 @@ import { fileURLToPath } from 'node:url'; import { createConfigStore } from './config.mjs'; import { createEventHub } from './events.mjs'; import { createEngineManager } from './sidecar.mjs'; +import { createEngineDownloader } from './engine.mjs'; import { createProxy } from './proxy.mjs'; const HERE = dirname(fileURLToPath(import.meta.url)); @@ -40,6 +41,11 @@ export async function start(context) { // BUG-38:engine/proxy 日志统一走 eventHub.log,先脱敏再入环,便于 /_miniapp/diagnostics 排障。 const sharedLog = (level, message, fields) => eventHub.log(level, message, fields); const engine = createEngineManager({ context: { ...context, dataDir }, configStore, log: sharedLog, fetchImpl: (u, o) => fetch(u, o) }); + const engineDownloader = createEngineDownloader({ + dataDir, + restartEngine: () => engine.restart(), + log: sharedLog, + }); const activeSockets = new Set(); const registerSocket = (s) => { if (s && !s.destroyed) activeSockets.add(s); }; @@ -57,6 +63,7 @@ export async function start(context) { registerSocket, unregisterSocket, restartEngine: () => engine.restart(), + engineDownloader, fetchImpl: (u, o) => fetch(u, o), }); @@ -104,6 +111,8 @@ export async function start(context) { try { server.closeAllConnections?.(); } catch { /* ignore */ } try { server.closeIdleConnections?.(); } catch { /* ignore */ } eventHub.stop(); + // 1b) 中断在途下载;.part 保留,下次可续传。 + engineDownloader.cancel(); // 2) 子进程回收(先 stdin EOF,再进程树强杀兜底,内部约 1.3s)。 await engine.dispose(); // 3) 关闭 HTTP 监听。 From 298ccd54a6f735057ef723c72315158e09047f05 Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 12:51:55 +0800 Subject: [PATCH 03/10] Sync live-stream-recorder payload with engine-v1.1.3 constants Update bundled engine.mjs and client assets with the published Release URL, SHA-256, size and version; enable the user-triggered download button. Payload 69 files / 1,239,060 bytes; SHA-256 matches source build; community check 0 errors. --- ...AddOutline-AWO4O9Bs.js => AddOutline-RKRa1cGv.js} | 2 +- .../{AppShell-BtBozJ6v.js => AppShell-CAYRlNMN.js} | 2 +- ...oxGroup-CBTKxgig.js => CheckboxGroup-Df5112cP.js} | 2 +- ...-GAucdlv-.js => CloudDownloadOutline-i6vXE3nl.js} | 2 +- ...e-BFofTbif.js => DocumentTextOutline-YbRT-tSM.js} | 2 +- ...tline-D3fGSRVg.js => DownloadOutline-DxvLxbyx.js} | 2 +- ...EmptyState-CALNDdv7.js => EmptyState-X3-6UyRF.js} | 2 +- ...lmOutline-Gr2Sgzxq.js => FilmOutline-C3cZd2xG.js} | 2 +- ...ine-92xJ43m4.js => GitCompareOutline-B9U2QCIP.js} | 2 +- .../assets/{Input-CQNdwpgx.js => Input-v4sTQ7Pz.js} | 2 +- .../{LoginView-BXa3gqh3.js => LoginView-BctFe39X.js} | 2 +- ...eOutline-BTyoewQd.js => PulseOutline-B76LUJRI.js} | 2 +- ...gsView-D-5LxqQb.js => RecordingsView-SRhryImQ.js} | 2 +- ...utline-C3W18lVY.js => RefreshOutline-AM6fn2f1.js} | 2 +- .../{RelayView-CiNT7cDx.js => RelayView-C32h1q4d.js} | 2 +- ...Outline-rYjpTFrE.js => SearchOutline-r0tEsj-I.js} | 2 +- .../{Select-BIQZTWeg.js => Select-Cl5vTXvX.js} | 2 +- ...View-ekQZ1QYf.js => ServiceErrorView-BWuJr4AI.js} | 2 +- ...ingsView-fhfMIyM2.js => SettingsView-Dcoelb-a.js} | 2 +- ...eoView-bBDSRDwN.js => ShortVideoView-CSQ6hh8U.js} | 2 +- .../assets/{Spin-CYz55qnY.js => Spin-BbqDP5dl.js} | 2 +- ...ersView-X3e6akRp.js => StreamersView-Dpzh-nNm.js} | 2 +- .../{Switch-zhsy3xi9.js => Switch-BcQ8noQd.js} | 2 +- ...tline-DZpFNqp3.js => VideocamOutline-EiwVCUcb.js} | 2 +- ...z3Ev.js => _plugin-vue_export-helper-C8KY-gaw.js} | 2 +- .../miniapp/client/assets/engine-Uo85WSlp.js | 1 + .../miniapp/client/assets/engine-fqHnj72g.js | 1 - .../miniapp/client/assets/engine-state-BXjEZp_d.js | 1 + .../miniapp/client/assets/engine-state-C1ri-urc.js | 1 - .../assets/{index-FGi6cKHs.js => index-Dewca6JL.js} | 4 ++-- .../{streamers-Crtjgplw.js => streamers-Bqfjqsa8.js} | 2 +- ...itable-Cc7HI9yh.js => use-compitable-CcF_TVW8.js} | 2 +- ...e-message-DzcW9fCu.js => use-message-DoP8RQDr.js} | 2 +- .../live-stream-recorder/miniapp/client/index.html | 2 +- .../live-stream-recorder/miniapp/node/engine.mjs | 12 ++++++------ 35 files changed, 39 insertions(+), 39 deletions(-) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AddOutline-AWO4O9Bs.js => AddOutline-RKRa1cGv.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AppShell-BtBozJ6v.js => AppShell-CAYRlNMN.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CheckboxGroup-CBTKxgig.js => CheckboxGroup-Df5112cP.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CloudDownloadOutline-GAucdlv-.js => CloudDownloadOutline-i6vXE3nl.js} (92%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DocumentTextOutline-BFofTbif.js => DocumentTextOutline-YbRT-tSM.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DownloadOutline-D3fGSRVg.js => DownloadOutline-DxvLxbyx.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{EmptyState-CALNDdv7.js => EmptyState-X3-6UyRF.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{FilmOutline-Gr2Sgzxq.js => FilmOutline-C3cZd2xG.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{GitCompareOutline-92xJ43m4.js => GitCompareOutline-B9U2QCIP.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Input-CQNdwpgx.js => Input-v4sTQ7Pz.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{LoginView-BXa3gqh3.js => LoginView-BctFe39X.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{PulseOutline-BTyoewQd.js => PulseOutline-B76LUJRI.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RecordingsView-D-5LxqQb.js => RecordingsView-SRhryImQ.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RefreshOutline-C3W18lVY.js => RefreshOutline-AM6fn2f1.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RelayView-CiNT7cDx.js => RelayView-C32h1q4d.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{SearchOutline-rYjpTFrE.js => SearchOutline-r0tEsj-I.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Select-BIQZTWeg.js => Select-Cl5vTXvX.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ServiceErrorView-ekQZ1QYf.js => ServiceErrorView-BWuJr4AI.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{SettingsView-fhfMIyM2.js => SettingsView-Dcoelb-a.js} (97%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ShortVideoView-bBDSRDwN.js => ShortVideoView-CSQ6hh8U.js} (97%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Spin-CYz55qnY.js => Spin-BbqDP5dl.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{StreamersView-X3e6akRp.js => StreamersView-Dpzh-nNm.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Switch-zhsy3xi9.js => Switch-BcQ8noQd.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{VideocamOutline-DZpFNqp3.js => VideocamOutline-EiwVCUcb.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{_plugin-vue_export-helper-Cf-2z3Ev.js => _plugin-vue_export-helper-C8KY-gaw.js} (96%) create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-Uo85WSlp.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-fqHnj72g.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-BXjEZp_d.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C1ri-urc.js rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{index-FGi6cKHs.js => index-Dewca6JL.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{streamers-Crtjgplw.js => streamers-Bqfjqsa8.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-compitable-Cc7HI9yh.js => use-compitable-CcF_TVW8.js} (76%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-message-DzcW9fCu.js => use-message-DoP8RQDr.js} (99%) diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-AWO4O9Bs.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-RKRa1cGv.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-AWO4O9Bs.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-RKRa1cGv.js index 9aa83185..725cf883 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-AWO4O9Bs.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-RKRa1cGv.js @@ -1,4 +1,4 @@ -import{W as se,a$ as Xe,L as Ue,A as et,aS as tt,b0 as rt,O as Ye,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b1 as Je,Z as Se,r as G,aJ as nt,a7 as ve,j as F,a as Ae,n as qe,e as it,b2 as at,T as st,b3 as ze,ae as be,b as ot,ac as lt,F as Le,Q as ft,_ as Ve,af as K,b4 as dt}from"./index-FGi6cKHs.js";import{f as Fe}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{g as Ze}from"./use-message-DzcW9fCu.js";function ct(n,e,t){const r=se(n,null);if(r===null)return;const i=Xe()?.proxy;Ue(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}function ir(){const n=se(rt,null);return n===null&&tt("use-dialog","No outer founded."),n}const ce=Ye("n-form"),Qe=Ye("n-form-item-insts");var ut=N("form",[B("inline",` +import{W as se,a$ as Xe,L as Ue,A as et,aS as tt,b0 as rt,O as Ye,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b1 as Je,Z as Se,r as G,aJ as nt,a7 as ve,j as F,a as Ae,n as qe,e as it,b2 as at,T as st,b3 as ze,ae as be,b as ot,ac as lt,F as Le,Q as ft,_ as Ve,af as K,b4 as dt}from"./index-Dewca6JL.js";import{f as Fe}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{g as Ze}from"./use-message-DoP8RQDr.js";function ct(n,e,t){const r=se(n,null);if(r===null)return;const i=Xe()?.proxy;Ue(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}function ir(){const n=se(rt,null);return n===null&&tt("use-dialog","No outer founded."),n}const ce=Ye("n-form"),Qe=Ye("n-form-item-insts");var ut=N("form",[B("inline",` width: 100%; display: inline-flex; align-items: flex-start; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BtBozJ6v.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-CAYRlNMN.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BtBozJ6v.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-CAYRlNMN.js index fcc16c8f..f56a8f91 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-BtBozJ6v.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-CAYRlNMN.js @@ -1 +1 @@ -import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-FGi6cKHs.js";import{T as J,P as ue}from"./PulseOutline-BTyoewQd.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as de}from"./use-message-DzcW9fCu.js";import{g as ce}from"./streamers-Crtjgplw.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-fqHnj72g.js";import{e as f}from"./engine-state-C1ri-urc.js";import{C as fe}from"./CheckboxGroup-CBTKxgig.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-DZpFNqp3.js";import{F as _e}from"./FilmOutline-Gr2Sgzxq.js";import{G as ke}from"./GitCompareOutline-92xJ43m4.js";import{C as ge}from"./CloudDownloadOutline-GAucdlv-.js";import"./use-compitable-Cc7HI9yh.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; +import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-Dewca6JL.js";import{T as J,P as ue}from"./PulseOutline-B76LUJRI.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as de}from"./use-message-DoP8RQDr.js";import{g as ce}from"./streamers-Bqfjqsa8.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-Uo85WSlp.js";import{e as f}from"./engine-state-BXjEZp_d.js";import{C as fe}from"./CheckboxGroup-Df5112cP.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-EiwVCUcb.js";import{F as _e}from"./FilmOutline-C3cZd2xG.js";import{G as ke}from"./GitCompareOutline-B9U2QCIP.js";import{C as ge}from"./CloudDownloadOutline-i6vXE3nl.js";import"./use-compitable-CcF_TVW8.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CBTKxgig.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-Df5112cP.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CBTKxgig.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-Df5112cP.js index c750a867..813ceac6 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-CBTKxgig.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-Df5112cP.js @@ -1,4 +1,4 @@ -import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,bb as se,bc as be,bd as he,d as ue,a8 as E,b2 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,be as pe,aj as Ce,ac as ye,b3 as we,j as P,ad as T,W as ze,bf as Re,bg as Se,af as j,ae as _e,O as De}from"./index-FGi6cKHs.js";import{u as Be}from"./use-compitable-Cc7HI9yh.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` +import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,bb as se,bc as be,bd as he,d as ue,a8 as E,b2 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,be as pe,aj as Ce,ac as ye,b3 as we,j as P,ad as T,W as ze,bf as Re,bg as Se,af as j,ae as _e,O as De}from"./index-Dewca6JL.js";import{u as Be}from"./use-compitable-CcF_TVW8.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` font-size: var(--n-font-size); outline: none; cursor: pointer; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-GAucdlv-.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-i6vXE3nl.js similarity index 92% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-GAucdlv-.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-i6vXE3nl.js index 730dce48..ca379403 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-GAucdlv-.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-i6vXE3nl.js @@ -1 +1 @@ -import{d as e,o as r,c as t,a as o}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; +import{d as e,o as r,c as t,a as o}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BFofTbif.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-YbRT-tSM.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BFofTbif.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-YbRT-tSM.js index 4facd0e6..67828e8d 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BFofTbif.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-YbRT-tSM.js @@ -1,4 +1,4 @@ -import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,be as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b2 as te,R as ne,bj as Ee,bk as je,ay as re,az as le,bl as ie,ae as He}from"./index-FGi6cKHs.js";import{I as Le,u as Ke}from"./Input-CQNdwpgx.js";import{u as Ge}from"./use-compitable-Cc7HI9yh.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` +import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,be as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b2 as te,R as ne,bj as Ee,bk as je,ay as re,az as le,bl as ie,ae as He}from"./index-Dewca6JL.js";import{I as Le,u as Ke}from"./Input-v4sTQ7Pz.js";import{u as Ge}from"./use-compitable-CcF_TVW8.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-D3fGSRVg.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-DxvLxbyx.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-D3fGSRVg.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-DxvLxbyx.js index 86811aa9..53d65c11 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-D3fGSRVg.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-DxvLxbyx.js @@ -1 +1 @@ -import{d as e,c as r,a as o,o as t}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; +import{d as e,c as r,a as o,o as t}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CALNDdv7.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-X3-6UyRF.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CALNDdv7.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-X3-6UyRF.js index f2fd1eff..1e4840de 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CALNDdv7.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-X3-6UyRF.js @@ -1 +1 @@ -import{N as m,_ as l}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-FGi6cKHs.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; +import{N as m,_ as l}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-Dewca6JL.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-Gr2Sgzxq.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-C3cZd2xG.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-Gr2Sgzxq.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-C3cZd2xG.js index 3a1642ee..d9c8040d 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-Gr2Sgzxq.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-C3cZd2xG.js @@ -1 +1 @@ -import{d as e,c as t,y as o,o as n}from"./index-FGi6cKHs.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; +import{d as e,c as t,y as o,o as n}from"./index-Dewca6JL.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-92xJ43m4.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-B9U2QCIP.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-92xJ43m4.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-B9U2QCIP.js index ee4d71b7..2599221a 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-92xJ43m4.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-B9U2QCIP.js @@ -1 +1 @@ -import{d as e,o as r,c as n,y as t}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; +import{d as e,o as r,c as n,y as t}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-CQNdwpgx.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-v4sTQ7Pz.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-CQNdwpgx.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-v4sTQ7Pz.js index d39ba1f1..decb15d3 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-CQNdwpgx.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-v4sTQ7Pz.js @@ -1,4 +1,4 @@ -import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,bb as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,bf as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,be as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b2 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-FGi6cKHs.js";import{u as Or}from"./use-compitable-Cc7HI9yh.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` +import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,bb as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,bf as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,be as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b2 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-Dewca6JL.js";import{u as Or}from"./use-compitable-CcF_TVW8.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` flex-shrink: 0; height: 1em; width: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BXa3gqh3.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BctFe39X.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BXa3gqh3.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BctFe39X.js index f2d879d8..fa954817 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BXa3gqh3.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BctFe39X.js @@ -1 +1 @@ -import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-FGi6cKHs.js";import{I as L}from"./Input-CQNdwpgx.js";import{C as G}from"./CheckboxGroup-CBTKxgig.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{S as Q}from"./Spin-CYz55qnY.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-Cc7HI9yh.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; +import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-Dewca6JL.js";import{I as L}from"./Input-v4sTQ7Pz.js";import{C as G}from"./CheckboxGroup-Df5112cP.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{S as Q}from"./Spin-BbqDP5dl.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-CcF_TVW8.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-BTyoewQd.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B76LUJRI.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-BTyoewQd.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B76LUJRI.js index 25aefeba..69e6353c 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-BTyoewQd.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B76LUJRI.js @@ -1 +1 @@ -import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-FGi6cKHs.js";import{p as v,P as f}from"./use-message-DzcW9fCu.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; +import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-Dewca6JL.js";import{p as v,P as f}from"./use-message-DoP8RQDr.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-D-5LxqQb.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-SRhryImQ.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-D-5LxqQb.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-SRhryImQ.js index 784e8a0d..2eeb3c0f 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-D-5LxqQb.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-SRhryImQ.js @@ -1,4 +1,4 @@ -import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-BIQZTWeg.js";import{u as mr,I as je}from"./Input-CQNdwpgx.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-FGi6cKHs.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-DzcW9fCu.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-CALNDdv7.js";import{u as Ie}from"./use-compitable-Cc7HI9yh.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{S as Ge}from"./Spin-CYz55qnY.js";import{d as Hr}from"./streamers-Crtjgplw.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-Gr2Sgzxq.js";import{D as rt}from"./DownloadOutline-D3fGSRVg.js";import{R as Wr}from"./RefreshOutline-C3W18lVY.js";import{S as qr}from"./SearchOutline-rYjpTFrE.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` +import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-Cl5vTXvX.js";import{u as mr,I as je}from"./Input-v4sTQ7Pz.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-Dewca6JL.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-DoP8RQDr.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-X3-6UyRF.js";import{u as Ie}from"./use-compitable-CcF_TVW8.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{S as Ge}from"./Spin-BbqDP5dl.js";import{d as Hr}from"./streamers-Bqfjqsa8.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-C3cZd2xG.js";import{D as rt}from"./DownloadOutline-DxvLxbyx.js";import{R as Wr}from"./RefreshOutline-AM6fn2f1.js";import{S as qr}from"./SearchOutline-r0tEsj-I.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` box-shadow: var(--n-menu-box-shadow); `);const Ye={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:String,scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},at=hr(Ye);var Yr=re({name:"PopselectPanel",props:Ye,setup(e){const t=Ve(Ct),{mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedComponentPropsRef:m}=Be(e),v=A(()=>e.size||m?.value?.Popselect?.size||"medium"),C=be("Popselect","-pop-select",Xr,pt,t.props,r),F=A(()=>cr(e.options,ur("value","children")));function P(l,p){const{onUpdateValue:w,"onUpdate:value":k,onChange:N}=e;w&&X(w,l,p),k&&X(k,l,p),N&&X(N,l,p)}function f(l){b(l.key)}function M(l){!Ue(l,"action")&&!Ue(l,"empty")&&!Ue(l,"header")&&l.preventDefault()}function b(l){const{value:{getNode:p}}=F;if(e.multiple)if(Array.isArray(e.value)){const w=[],k=[];let N=!0;e.value.forEach(J=>{if(J===l){N=!1;return}const V=p(J);V&&(w.push(V.key),k.push(V.rawNode))}),N&&(w.push(l),k.push(p(l).rawNode)),P(w,k)}else{const w=p(l);w&&P([l],[w.rawNode])}else if(e.value===l&&e.cancelable)P(null,null);else{const w=p(l);w&&P(l,w.rawNode);const{"onUpdate:show":k,onUpdateShow:N}=t.props;k&&X(k,!1),N&&X(N,!1),t.setShow(!1)}De(()=>{t.syncPosition()})}Fe(Me(e,"options"),()=>{De(()=>{t.syncPosition()})});const R=A(()=>{const{self:{menuBoxShadow:l}}=C.value;return{"--n-menu-box-shadow":l}}),z=g?We("select",void 0,R,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:F,handleToggle:f,handleMenuMousedown:M,cssVars:g?void 0:R,themeClass:z?.themeClass,onRender:z?.onRender,mergedSize:v,scrollbarProps:t.props.scrollbarProps}},render(){return this.onRender?.(),n(),y(dr,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:H([`${this.mergedClsPrefix}-popselect-menu`,this.themeClass]),style:ce(this.cssVars),theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.mergedSize,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,scrollbarProps:this.scrollbarProps,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{_:1,header:Re(()=>this.$slots.header?.()||[]),action:Re(()=>this.$slots.action?.()||[]),empty:Re(()=>this.$slots.empty?.()||[])},8,["clsPrefix","nodeProps","class","style","theme","themeOverrides","multiple","treeMate","size","value","virtualScroll","scrollable","scrollbarProps","renderLabel","onToggle","onMouseenter","onMouseleave","onMousedown","showCheckmark"])}});const Kr={...be.props,...vt(Qe,["showArrow","arrow"]),placement:{...Qe.placement,default:"bottom"},trigger:{type:String,default:"hover"},...Ye,scrollbarProps:Object};var Jr=re({name:"Popselect",props:Kr,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Be(e),r=be("Popselect","-popselect",void 0,pt,e,t),g=B(null);function m(){g.value?.syncPosition()}function v(C){g.value?.setShow(C)}return Pe(Ct,{props:e,mergedThemeRef:r,syncPosition:m,setShow:v}),{syncPosition:m,setShow:v,popoverInstRef:g,mergedTheme:r}},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,g,m,v,C)=>{const{$attrs:F}=this;return n(),y(Yr,ge(F,{class:[F.class,r],style:[F.style,...m]},pr(this.$props,at),{ref:Nr(g),onMouseenter:Ke([v,F.onMouseenter]),onMouseleave:Ke([C,F.onMouseleave])}),{header:()=>this.$slots.header?.(),action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,["class","style","onMouseenter","onMouseleave"])}};return n(),y(Ar,ge(vt(this.$props,at),t,{internalDeactivateImmediately:!0}),{_:1,trigger:Re(()=>this.$slots.default?.())},16)}});const Qr={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function nt(e){const t=Qr[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}var ot=re({name:"Backward",render(){return(()=>{const e=xe("20cdf29399dd0749");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"})],-1))})()}}),st=re({name:"FastBackward",render(){return(()=>{const e=xe("9d0d04cc580afefa");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"})])])],-1))})()}}),it=re({name:"FastForward",render(){return(()=>{const e=xe("c2e477dd1211740a");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})])])],-1))})()}}),lt=re({name:"Forward",render(){return(()=>{const e=xe("6fb2c33c1e576c93");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"})],-1))})()}}),dt=re({name:"More",render(){return(()=>{const e=xe("e4a3e3d3803c676d");return e[0]||(e[0]=a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"})])])],-1))})()}});const ct=` background: var(--n-item-color-hover); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-C3W18lVY.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-AM6fn2f1.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-C3W18lVY.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-AM6fn2f1.js index e10498fb..05be5016 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-C3W18lVY.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-AM6fn2f1.js @@ -1 +1 @@ -import{d as n,c as t,a as o,o as r}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; +import{d as n,c as t,a as o,o as r}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-CiNT7cDx.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-C32h1q4d.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-CiNT7cDx.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-C32h1q4d.js index 26e1b74d..1a4656eb 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-CiNT7cDx.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-C32h1q4d.js @@ -1 +1 @@ -import{T as R,S as M}from"./Select-BIQZTWeg.js";import{I as re}from"./Input-CQNdwpgx.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-FGi6cKHs.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as Ye,A as ue,F as Ze,a as w}from"./AddOutline-AWO4O9Bs.js";import{u as Ke}from"./use-message-DzcW9fCu.js";import{D as Qe,I as et}from"./DocumentTextOutline-BFofTbif.js";import{S as W}from"./Switch-zhsy3xi9.js";import{d as tt}from"./streamers-Crtjgplw.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-C3W18lVY.js";import{G as nt}from"./GitCompareOutline-92xJ43m4.js";import"./use-compitable-Cc7HI9yh.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ke(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ze),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; +import{T as R,S as M}from"./Select-Cl5vTXvX.js";import{I as re}from"./Input-v4sTQ7Pz.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-Dewca6JL.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as Ye,A as ue,F as Ze,a as w}from"./AddOutline-RKRa1cGv.js";import{u as Ke}from"./use-message-DoP8RQDr.js";import{D as Qe,I as et}from"./DocumentTextOutline-YbRT-tSM.js";import{S as W}from"./Switch-BcQ8noQd.js";import{d as tt}from"./streamers-Bqfjqsa8.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-AM6fn2f1.js";import{G as nt}from"./GitCompareOutline-B9U2QCIP.js";import"./use-compitable-CcF_TVW8.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ke(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ze),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-rYjpTFrE.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-r0tEsj-I.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-rYjpTFrE.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-r0tEsj-I.js index 9d5a0484..37d530f6 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-rYjpTFrE.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-r0tEsj-I.js @@ -1 +1 @@ -import{d as o,o as r,c as n,a as t}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; +import{d as o,o as r,c as n,a as t}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-BIQZTWeg.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-Cl5vTXvX.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-BIQZTWeg.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-Cl5vTXvX.js index 1230fb6b..fa05bc5b 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-BIQZTWeg.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-Cl5vTXvX.js @@ -1,4 +1,4 @@ -import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-DzcW9fCu.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b2 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,be as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-FGi6cKHs.js";import{u as Xt,S as ro}from"./Input-CQNdwpgx.js";import{u as At,a as lo}from"./use-compitable-Cc7HI9yh.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` +import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-DoP8RQDr.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b2 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,be as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-Dewca6JL.js";import{u as Xt,S as ro}from"./Input-v4sTQ7Pz.js";import{u as At,a as lo}from"./use-compitable-CcF_TVW8.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` display: flex; flex-direction: column; align-items: center; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-ekQZ1QYf.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BWuJr4AI.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-ekQZ1QYf.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BWuJr4AI.js index 9d9acd5f..c1855822 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-ekQZ1QYf.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BWuJr4AI.js @@ -1 +1 @@ -import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-FGi6cKHs.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{R as y}from"./RefreshOutline-C3W18lVY.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; +import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-Dewca6JL.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{R as y}from"./RefreshOutline-AM6fn2f1.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-fhfMIyM2.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Dcoelb-a.js similarity index 97% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-fhfMIyM2.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Dcoelb-a.js index b3fae122..51ffa75e 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-fhfMIyM2.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Dcoelb-a.js @@ -1,3 +1,3 @@ -import{I as h}from"./Input-CQNdwpgx.js";import{d as F,o as r,c as f,y as he,a as l,ao as P,aV as oe,b as Ce,A as Se,e as i,w as u,u as s,B as _,t as c,f as a,g as w,n as ze,i as A,F as W,bh as Me,r as m,J as Ee,ap as Ue,bi as Be}from"./index-FGi6cKHs.js";import{S as O}from"./Select-BIQZTWeg.js";import{N as y,_ as Ne}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as Ae}from"./use-message-DzcW9fCu.js";import{I as G,D as Oe}from"./DocumentTextOutline-BFofTbif.js";import{S as De}from"./Spin-CYz55qnY.js";import{S as Y}from"./Switch-zhsy3xi9.js";import{E as ne,a as te,g as Pe,s as Fe,c as Ve}from"./engine-fqHnj72g.js";import{e as p}from"./engine-state-C1ri-urc.js";import{v as qe}from"./filename-template-DBJXvN0y.js";import{e as x,i as D}from"./runtime-bridge-DmDzFGpU.js";import{V as Q}from"./VideocamOutline-DZpFNqp3.js";import{R as Ie}from"./RefreshOutline-C3W18lVY.js";import"./use-compitable-Cc7HI9yh.js";const Re={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Te=F({name:"ColorPaletteOutline",render:function(v,d){return r(),f("svg",Re,d[0]||(d[0]=[he('',6)]))}}),Le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=F({name:"KeyOutline",render:function(v,d){return r(),f("svg",Le,d[0]||(d[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=F({name:"SaveOutline",render:function(v,d){return r(),f("svg",Ge,d[0]||(d[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},X=F({name:"ServerOutline",render:function(v,d){return r(),f("svg",je,d[0]||(d[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),$e=()=>P("/v1/configuration"),Ke=C=>oe("/v1/configuration",C),Je=[{label:"FFmpeg",value:"ffmpeg"},{label:"Stream Gears(推荐,边录边传)",value:"stream-gears"},{label:"Streamlink",value:"streamlink"},{label:"同步下载器 sync-downloader",value:"sync-downloader"},{label:"Mesio",value:"mesio"}],We=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Ye=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Qe=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],Xe={class:"page"},Ze={class:"page-head"},el={class:"toolbar"},ll={key:0,class:"loading"},sl={key:1,class:"error-panel"},nl={class:"error-msg"},tl={key:2,class:"sections"},il={class:"section panel"},ol={class:"sec-head"},al={class:"sec-icon accent"},ul={class:"fields"},rl={class:"field wide"},dl={class:"field wide"},pl={class:"field"},vl={class:"field"},fl={class:"field"},cl={class:"field"},ml={class:"section panel"},_l={class:"sec-head"},yl={class:"sec-icon cyan"},gl={class:"fields"},kl={class:"field"},wl={class:"field"},bl={class:"field wide"},xl={class:"section panel"},hl={class:"sec-head"},Cl={class:"sec-icon live"},Sl={class:"fields"},zl={class:"field"},Ml={class:"field"},El={class:"field switch-field"},Ul={class:"field switch-field"},Bl={class:"field switch-field"},Nl={class:"section panel"},Al={class:"sec-head"},Ol={class:"sec-icon live"},Dl={class:"fields"},Pl={class:"field wide"},Fl={class:"section panel"},Vl={class:"sec-head"},ql={class:"sec-icon muted"},Il={class:"readonly"},Rl={class:"mono"},Tl={class:"mono"},Ll={class:"mono"},Hl={class:"mono"},Gl={class:"section panel"},jl={class:"sec-head"},$l={class:"sec-icon cyan"},Kl={class:"engine-install"},Jl={class:"engine-status-row"},Wl={key:0,class:"readonly engine-detail"},Yl={class:"mono"},Ql={class:"mono"},Xl={key:1,class:"inline-hint"},Zl={key:2,class:"inline-hint"},es={key:3,class:"engine-progress"},ls={class:"progress-track"},ss={class:"mono"},ns={class:"mono"},ts={class:"mono"},is={class:"support-actions"},os={key:4,class:"manual-list"},as={class:"section panel"},us={class:"sec-head"},rs={class:"sec-icon accent"},ds={class:"fields"},ps={class:"field wide"},vs={class:"field wide"},fs={class:"field wide"},cs={class:"support-actions"},ms={key:0,class:"inline-hint"},_s={key:1,class:"readonly engine-status"},ys={class:"mono"},gs={class:"mono"},ks={key:2,class:"diagnostic-block"},ws={key:0,class:"inline-error"},bs={key:1,class:"inline-hint"},xs={key:2,class:"diag-preview"},hs={class:"support-actions"},Cs={class:"support-note"},Ss={class:"section panel"},zs={class:"sec-head"},Ms={class:"sec-icon cyan"},Es={class:"fields"},Us={class:"field wide"},Bs=F({__name:"SettingsView",setup(C){const v=Ae(),d=m(null),M=m(!0),V=m(!1),q=m(""),t=Ee({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function Z(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function j(){M.value=!0,q.value="";try{d.value=await $e(),Z(d.value)}catch(n){q.value=n instanceof Error?n.message:"读取配置失败"}finally{M.value=!1}}async function ae(){if(!d.value)return;const n=qe(t.filename_prefix);if(n){v.error(n);return}V.value=!0;try{const e={...d.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await Ke(e);d.value=o,Z(o),v.success("设置已保存并生效")}catch(e){v.error(x(e))}finally{V.value=!1}}const S=m(null),I=m("sidecar"),ee=m(""),R=m(""),k=m(!1),E=m(""),b=m(!0),$=m(!1);let T;async function L(){if(!D()){b.value=!1,E.value="引擎连接模式仅在 MiniApp 中可用";return}k.value=!0,E.value="";try{const[n,e]=await Promise.all([P("/_miniapp/runtime-status"),P("/_miniapp/connection-config")]);S.value=n,I.value=e.mode==="remote"?"remote":"sidecar",ee.value=e.binaryPath??"",R.value=e.ffmpegPath??"",b.value=!0}catch(n){S.value=null,b.value=!1,E.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{k.value=!1}}async function ue(){if(D()){k.value=!0;try{await oe("/_miniapp/connection-config",{mode:I.value,ffmpegPath:R.value}),v.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await L()}catch(n){v.error(x(n))}finally{k.value=!1}}}async function re(){if(D()){k.value=!0;try{await Ue("/_miniapp/engine/restart"),v.success("引擎重启指令已发送"),await L()}catch(n){v.error(x(n))}finally{k.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function K(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,z=0;for(;o>=1024&&z0?K(n)+"/s":"—"}async function U(){if(D())try{p.value=await Pe()}catch{p.value=null}}async function se(){try{const n=await Fe();!n.ok&&n.error&&v.error(n.error),await U()}catch(n){v.error(x(n))}}async function ve(){try{await Ve(),await U()}catch(n){v.error(x(n))}}async function fe(){await U();const n=p.value;if(!n){v.error("无法读取引擎状态");return}n.state==="ready"&&n.version===te?v.info("当前已是最新版本"):n.state==="ready"?v.info("发现新版本 "+te+",仍需点击下载才会安装"):v.info("引擎尚未就绪,请先下载或手动安装")}const g=m(""),J=m(!1),B=m(""),H=m(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",z=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+z+xe}async function me(){if(B.value="",!D()){g.value="",B.value="诊断日志仅在 MiniApp 中可用";return}J.value=!0;try{const[n,e]=await Promise.all([P("/_miniapp/diagnostics"),P("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?g.value=o.map(ce).join(` +import{I as h}from"./Input-v4sTQ7Pz.js";import{d as F,o as r,c as f,y as he,a as l,ao as P,aV as oe,b as Ce,A as Se,e as i,w as u,u as s,B as _,t as c,f as a,g as w,n as ze,i as A,F as W,bh as Me,r as m,J as Ee,ap as Ue,bi as Be}from"./index-Dewca6JL.js";import{S as O}from"./Select-Cl5vTXvX.js";import{N as y,_ as Ne}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as Ae}from"./use-message-DoP8RQDr.js";import{I as G,D as Oe}from"./DocumentTextOutline-YbRT-tSM.js";import{S as De}from"./Spin-BbqDP5dl.js";import{S as Y}from"./Switch-BcQ8noQd.js";import{E as ne,a as te,g as Pe,s as Fe,c as Ve}from"./engine-Uo85WSlp.js";import{e as p}from"./engine-state-BXjEZp_d.js";import{v as qe}from"./filename-template-DBJXvN0y.js";import{e as x,i as D}from"./runtime-bridge-DmDzFGpU.js";import{V as Q}from"./VideocamOutline-EiwVCUcb.js";import{R as Ie}from"./RefreshOutline-AM6fn2f1.js";import"./use-compitable-CcF_TVW8.js";const Re={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Te=F({name:"ColorPaletteOutline",render:function(v,d){return r(),f("svg",Re,d[0]||(d[0]=[he('',6)]))}}),Le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=F({name:"KeyOutline",render:function(v,d){return r(),f("svg",Le,d[0]||(d[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=F({name:"SaveOutline",render:function(v,d){return r(),f("svg",Ge,d[0]||(d[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},X=F({name:"ServerOutline",render:function(v,d){return r(),f("svg",je,d[0]||(d[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),$e=()=>P("/v1/configuration"),Ke=C=>oe("/v1/configuration",C),Je=[{label:"FFmpeg",value:"ffmpeg"},{label:"Stream Gears(推荐,边录边传)",value:"stream-gears"},{label:"Streamlink",value:"streamlink"},{label:"同步下载器 sync-downloader",value:"sync-downloader"},{label:"Mesio",value:"mesio"}],We=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Ye=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Qe=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],Xe={class:"page"},Ze={class:"page-head"},el={class:"toolbar"},ll={key:0,class:"loading"},sl={key:1,class:"error-panel"},nl={class:"error-msg"},tl={key:2,class:"sections"},il={class:"section panel"},ol={class:"sec-head"},al={class:"sec-icon accent"},ul={class:"fields"},rl={class:"field wide"},dl={class:"field wide"},pl={class:"field"},vl={class:"field"},fl={class:"field"},cl={class:"field"},ml={class:"section panel"},_l={class:"sec-head"},yl={class:"sec-icon cyan"},gl={class:"fields"},kl={class:"field"},wl={class:"field"},bl={class:"field wide"},xl={class:"section panel"},hl={class:"sec-head"},Cl={class:"sec-icon live"},Sl={class:"fields"},zl={class:"field"},Ml={class:"field"},El={class:"field switch-field"},Ul={class:"field switch-field"},Bl={class:"field switch-field"},Nl={class:"section panel"},Al={class:"sec-head"},Ol={class:"sec-icon live"},Dl={class:"fields"},Pl={class:"field wide"},Fl={class:"section panel"},Vl={class:"sec-head"},ql={class:"sec-icon muted"},Il={class:"readonly"},Rl={class:"mono"},Tl={class:"mono"},Ll={class:"mono"},Hl={class:"mono"},Gl={class:"section panel"},jl={class:"sec-head"},$l={class:"sec-icon cyan"},Kl={class:"engine-install"},Jl={class:"engine-status-row"},Wl={key:0,class:"readonly engine-detail"},Yl={class:"mono"},Ql={class:"mono"},Xl={key:1,class:"inline-hint"},Zl={key:2,class:"inline-hint"},es={key:3,class:"engine-progress"},ls={class:"progress-track"},ss={class:"mono"},ns={class:"mono"},ts={class:"mono"},is={class:"support-actions"},os={key:4,class:"manual-list"},as={class:"section panel"},us={class:"sec-head"},rs={class:"sec-icon accent"},ds={class:"fields"},ps={class:"field wide"},vs={class:"field wide"},fs={class:"field wide"},cs={class:"support-actions"},ms={key:0,class:"inline-hint"},_s={key:1,class:"readonly engine-status"},ys={class:"mono"},gs={class:"mono"},ks={key:2,class:"diagnostic-block"},ws={key:0,class:"inline-error"},bs={key:1,class:"inline-hint"},xs={key:2,class:"diag-preview"},hs={class:"support-actions"},Cs={class:"support-note"},Ss={class:"section panel"},zs={class:"sec-head"},Ms={class:"sec-icon cyan"},Es={class:"fields"},Us={class:"field wide"},Bs=F({__name:"SettingsView",setup(C){const v=Ae(),d=m(null),M=m(!0),V=m(!1),q=m(""),t=Ee({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function Z(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function j(){M.value=!0,q.value="";try{d.value=await $e(),Z(d.value)}catch(n){q.value=n instanceof Error?n.message:"读取配置失败"}finally{M.value=!1}}async function ae(){if(!d.value)return;const n=qe(t.filename_prefix);if(n){v.error(n);return}V.value=!0;try{const e={...d.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await Ke(e);d.value=o,Z(o),v.success("设置已保存并生效")}catch(e){v.error(x(e))}finally{V.value=!1}}const S=m(null),I=m("sidecar"),ee=m(""),R=m(""),k=m(!1),E=m(""),b=m(!0),$=m(!1);let T;async function L(){if(!D()){b.value=!1,E.value="引擎连接模式仅在 MiniApp 中可用";return}k.value=!0,E.value="";try{const[n,e]=await Promise.all([P("/_miniapp/runtime-status"),P("/_miniapp/connection-config")]);S.value=n,I.value=e.mode==="remote"?"remote":"sidecar",ee.value=e.binaryPath??"",R.value=e.ffmpegPath??"",b.value=!0}catch(n){S.value=null,b.value=!1,E.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{k.value=!1}}async function ue(){if(D()){k.value=!0;try{await oe("/_miniapp/connection-config",{mode:I.value,ffmpegPath:R.value}),v.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await L()}catch(n){v.error(x(n))}finally{k.value=!1}}}async function re(){if(D()){k.value=!0;try{await Ue("/_miniapp/engine/restart"),v.success("引擎重启指令已发送"),await L()}catch(n){v.error(x(n))}finally{k.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function K(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,z=0;for(;o>=1024&&z0?K(n)+"/s":"—"}async function U(){if(D())try{p.value=await Pe()}catch{p.value=null}}async function se(){try{const n=await Fe();!n.ok&&n.error&&v.error(n.error),await U()}catch(n){v.error(x(n))}}async function ve(){try{await Ve(),await U()}catch(n){v.error(x(n))}}async function fe(){await U();const n=p.value;if(!n){v.error("无法读取引擎状态");return}n.state==="ready"&&n.version===te?v.info("当前已是最新版本"):n.state==="ready"?v.info("发现新版本 "+te+",仍需点击下载才会安装"):v.info("引擎尚未就绪,请先下载或手动安装")}const g=m(""),J=m(!1),B=m(""),H=m(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",z=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+z+xe}async function me(){if(B.value="",!D()){g.value="",B.value="诊断日志仅在 MiniApp 中可用";return}J.value=!0;try{const[n,e]=await Promise.all([P("/_miniapp/diagnostics"),P("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?g.value=o.map(ce).join(` `):e?.lastError?g.value="最近错误:"+e.lastError:g.value="暂无最近错误记录"}catch(n){B.value=x(n),g.value=""}finally{J.value=!1}}function _e(){if(!g.value)return;const n=new Blob([g.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function ye(){const n=g.value.trim();if(!n)return;const e=window.miniapp;if(!e?.host?.composer?.append){v.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: `+n),v.success("已送入输入框,请确认后发送")}catch(o){v.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function ke(n){Be(n),v.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const N=m("default");function we(){N.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{N.value=await Notification.requestPermission()}catch{}}return Ce(()=>{j(),L(),U(),me(),we(),T=window.setInterval(()=>{U()},1500)}),Se(()=>{T!==void 0&&(window.clearInterval(T),T=void 0)}),(n,e)=>(r(),f("div",Xe,[l("div",Ze,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",el,[i(s(_),{disabled:M.value||V.value,onClick:j},{default:u(()=>[...e[19]||(e[19]=[a("重新读取",-1)])]),_:1},8,["disabled"]),i(s(_),{type:"primary",loading:V.value,disabled:M.value||!d.value,onClick:ae},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(ie))]),_:1})]),default:u(()=>[e[20]||(e[20]=a(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),M.value?(r(),f("div",ll,[i(s(De),{size:"large"})])):q.value?(r(),f("div",sl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",nl,c(q.value),1),i(s(_),{size:"small",onClick:j},{default:u(()=>[...e[22]||(e[22]=[a("重试",-1)])]),_:1})])):(r(),f("div",tl,[l("section",il,[l("header",ol,[l("span",al,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",ul,[l("label",rl,[e[25]||(e[25]=l("span",null,[a("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(h),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",dl,[e[26]||(e[26]=l("span",null,[a("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(h),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",pl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s(G),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:u(()=>[...e[28]||(e[28]=[a("GB",-1)])]),_:1},8,["value"])]),l("label",vl,[e[30]||(e[30]=l("span",null,[a("分段时间 "),l("em",null,"segment_time")],-1)),i(s(h),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",fl,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s(G),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:u(()=>[...e[32]||(e[32]=[a("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",cl,[e[36]||(e[36]=l("span",null,[a("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s(G),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:u(()=>[...e[35]||(e[35]=[a("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",ml,[l("header",_l,[l("span",yl,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",gl,[l("label",kl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s(G),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:u(()=>[...e[39]||(e[39]=[a("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",wl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(O),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Je)},null,8,["value","options"])]),l("label",bl,[e[43]||(e[43]=l("span",null,[a("FFmpeg 路径(录制引擎) "),l("em",null,"ffmpeg_path")],-1)),i(s(h),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",xl,[l("header",hl,[l("span",Cl,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Sl,[l("label",zl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(O),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(We)},null,8,["value","options"])]),l("label",Ml,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(O),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Ye)},null,8,["value","options"])]),l("div",El,[e[47]||(e[47]=l("span",null,[a("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Y),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Ul,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Y),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Bl,[e[51]||(e[51]=l("span",null,[a("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Y),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Nl,[l("header",Al,[l("span",Ol,[i(s(y),{size:17},{default:u(()=>[i(s(He))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Dl,[l("label",Pl,[e[54]||(e[54]=l("span",null,[a("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(h),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",Fl,[l("header",Vl,[l("span",ql,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Il,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Rl,c(d.value?.pool1_size??"—")+" / "+c(d.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Tl,c(d.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",Ll,c(d.value?.retention_hours?d.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",Hl,c(d.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Gl,[l("header",jl,[l("span",$l,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Kl,[l("div",Jl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,c(de(s(p)?.state)),1)]),s(p)?.state==="ready"?(r(),f("div",Wl,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Yl,c(s(p).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Ql,c(s(p).path||"—"),1)])])):s(p)?.error?(r(),f("div",Xl,c(s(p).error),1)):w("",!0),s(ne)?w("",!0):(r(),f("div",Zl,"引擎下载尚未配置")),s(p)?.state==="downloading"||s(p)?.state==="verifying"?(r(),f("div",es,[l("div",ls,[l("div",{class:"progress-fill",style:ze({width:le()+"%"})},null,4)]),l("span",ss,c(le())+"%",1),l("span",ns,c(K(s(p)?.bytesDownloaded||0))+" / "+c(K(s(p)?.bytesTotal||0)),1),l("span",ts,c(pe()),1)])):w("",!0),l("div",is,[s(ne)?s(p)?.state==="missing"?(r(),A(s(_),{key:1,type:"primary",onClick:se},{default:u(()=>[...e[66]||(e[66]=[a("下载引擎",-1)])]),_:1})):s(p)?.state==="failed"?(r(),A(s(_),{key:2,type:"primary",onClick:se},{default:u(()=>[...e[67]||(e[67]=[a("重新下载",-1)])]),_:1})):s(p)?.state==="downloading"||s(p)?.state==="verifying"?(r(),A(s(_),{key:3,onClick:ve},{default:u(()=>[...e[68]||(e[68]=[a("取消",-1)])]),_:1})):w("",!0):(r(),A(s(_),{key:0,type:"primary",disabled:""},{default:u(()=>[...e[65]||(e[65]=[a("下载引擎",-1)])]),_:1})),i(s(_),{disabled:s(p)?.state==="downloading"||s(p)?.state==="verifying"||s(p)?.state==="unsupported",onClick:fe},{default:u(()=>[...e[69]||(e[69]=[a("检查更新",-1)])]),_:1},8,["disabled"]),i(s(_),{quaternary:"",onClick:e[15]||(e[15]=o=>$.value=!$.value)},{default:u(()=>[...e[70]||(e[70]=[a("手动安装说明",-1)])]),_:1})]),$.value?(r(),f("ol",os,[...e[71]||(e[71]=[l("li",null,[a("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),a(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):w("",!0)])]),l("section",as,[l("header",us,[l("span",rs,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",ds,[l("label",ps,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(O),{value:I.value,"onUpdate:value":e[16]||(e[16]=o=>I.value=o),options:s(Qe),disabled:!b.value},null,8,["value","options","disabled"])]),l("label",vs,[e[74]||(e[74]=l("span",null,"biliup-cli 路径(只读)",-1)),i(s(h),{value:ee.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!b.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[a(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),a(" 的 "),l("code",null,"binaryPath"),a(" 字段。 ")],-1))]),l("label",fs,[e[76]||(e[76]=l("span",null,"FFmpeg 路径(Sidecar)",-1)),i(s(h),{value:R.value,"onUpdate:value":e[17]||(e[17]=o=>R.value=o),placeholder:"留空使用系统 PATH",disabled:!b.value},null,8,["value","disabled"])])]),l("div",cs,[i(s(_),{loading:k.value,onClick:L},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(Ie))]),_:1})]),default:u(()=>[e[77]||(e[77]=a(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(_),{type:"primary",loading:k.value,disabled:!b.value,onClick:ue},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(ie))]),_:1})]),default:u(()=>[e[78]||(e[78]=a(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(_),{loading:k.value,disabled:!b.value,onClick:re},{default:u(()=>[...e[79]||(e[79]=[a(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(_),{quaternary:"",onClick:e[18]||(e[18]=o=>H.value=!H.value)},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(Oe))]),_:1})]),default:u(()=>[a(" "+c(H.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),E.value?(r(),f("div",ms,c(E.value),1)):w("",!0),S.value?(r(),f("div",_s,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ys,c(S.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,c(S.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",gs,c(S.value.pid??"—"),1)])])):w("",!0),H.value?(r(),f("div",ks,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),B.value?(r(),f("div",ws,c(B.value),1)):w("",!0),J.value?(r(),f("div",bs,"读取中…")):(r(),f("pre",xs,c(g.value||"暂无诊断信息"),1)),l("div",hs,[i(s(_),{size:"small",disabled:!g.value,onClick:_e},{default:u(()=>[...e[83]||(e[83]=[a("本地导出",-1)])]),_:1},8,["disabled"]),i(s(_),{size:"small",disabled:!g.value,onClick:ye},{default:u(()=>[...e[84]||(e[84]=[a("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):w("",!0),l("p",Cs,[e[87]||(e[87]=a(" 通知权限: ",-1)),N.value==="granted"?(r(),f(W,{key:0},[a("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):N.value==="denied"?(r(),f(W,{key:1},[a("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):N.value==="unsupported"?(r(),f(W,{key:2},[a("当前环境不支持系统通知。")],64)):(r(),A(s(_),{key:3,size:"tiny",quaternary:"",onClick:be},{default:u(()=>[...e[86]||(e[86]=[a("开启系统通知",-1)])]),_:1}))])]),l("section",Ss,[l("header",zs,[l("span",Ms,[i(s(y),{size:17},{default:u(()=>[i(s(Te))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",Es,[l("label",Us,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(O),{value:s(Me),options:ge,"onUpdate:value":ke},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),$s=Ne(Bs,[["__scopeId","data-v-07cc3ddd"]]);export{$s as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-bBDSRDwN.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-CSQ6hh8U.js similarity index 97% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-bBDSRDwN.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-CSQ6hh8U.js index 188e2aaa..4b79be44 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-bBDSRDwN.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-CSQ6hh8U.js @@ -1,4 +1,4 @@ -import{T as ee,S as pe}from"./Select-BIQZTWeg.js";import{I as te}from"./Input-CQNdwpgx.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b5 as ke,b6 as _e,b7 as xe,b8 as $e,b9 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,ba as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-FGi6cKHs.js";import{C as ve}from"./CheckboxGroup-CBTKxgig.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as Je}from"./use-message-DzcW9fCu.js";import{S as Ke}from"./Spin-CYz55qnY.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-GAucdlv-.js";import{S as et}from"./SearchOutline-rYjpTFrE.js";import{V as tt}from"./VideocamOutline-DZpFNqp3.js";import{D as me}from"./DownloadOutline-D3fGSRVg.js";import{R as rt}from"./RefreshOutline-C3W18lVY.js";import"./use-compitable-Cc7HI9yh.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} +import{T as ee,S as pe}from"./Select-Cl5vTXvX.js";import{I as te}from"./Input-v4sTQ7Pz.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b5 as ke,b6 as _e,b7 as xe,b8 as $e,b9 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,ba as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-Dewca6JL.js";import{C as ve}from"./CheckboxGroup-Df5112cP.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as Je}from"./use-message-DoP8RQDr.js";import{S as Ke}from"./Spin-BbqDP5dl.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-i6vXE3nl.js";import{S as et}from"./SearchOutline-r0tEsj-I.js";import{V as tt}from"./VideocamOutline-EiwVCUcb.js";import{D as me}from"./DownloadOutline-DxvLxbyx.js";import{R as rt}from"./RefreshOutline-AM6fn2f1.js";import"./use-compitable-CcF_TVW8.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} a ${h},${h} 0 1 1 ${f},-100 a ${h},${h} 0 1 1 0,${O}`,M=Math.PI*2*h;return{pathString:D,pathStyle:{stroke:u==="rail"?y:typeof t.fillColor=="object"?`url(#${k.value})`:y,strokeDasharray:`${Math.min(n,100)/100*(M-z)}px ${C*8}px`,strokeDashoffset:`-${z/2}px`,transformOrigin:p?"center":void 0,transform:p?`rotate(${p}deg)`:void 0}}}const x=()=>{const n=typeof t.fillColor=="object",p=n?t.fillColor.stops[0]:"",y=n?t.fillColor.stops[1]:"";return n&&(o(),s("defs",null,[r("linearGradient",{id:k.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[r("stop",{offset:"0%","stop-color":p},null,8,it),r("stop",{offset:"100%","stop-color":y},null,8,at)],8,ot)]))};return()=>{const{fillColor:n,railColor:p,strokeWidth:y,offsetDegree:u,status:z,percentage:C,showIndicator:q,indicatorTextColor:h,unit:B,gapOffsetDegree:g,clsPrefix:f}=t,{pathString:O,pathStyle:V}=I(100,0,p,"rail"),{pathString:D,pathStyle:M}=I(C,u,n,"fill"),A=100+y;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${f}-progress-graph-circle`),style:j({transform:g?`rotate(${g}deg)`:void 0})},[(o(),s("svg",{viewBox:`0 0 ${A} ${A}`},[N(()=>x()),r("g",null,[r("path",{class:w(`${f}-progress-graph-circle-rail`),d:O,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(V)},null,14,lt)]),r("g",null,[r("path",{class:w([`${f}-progress-graph-circle-fill`,C===0&&`${f}-progress-graph-circle-fill--empty`]),d:D,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(M)},null,14,nt)])],8,st))],6)],2),q?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),role:"none"},[N(()=>c.default())],2)):(o(),s(E,{key:1},[z!=="default"?(o(),s("div",{key:0,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>ct[z]},1032,["clsPrefix"]))],2)):(o(),s("div",{key:1,class:w(`${f}-progress-text`),style:j({color:h}),role:"none"},[r("span",{class:w(`${f}-progress-text__percentage`)},[N(()=>C)],2),r("span",{class:w(`${f}-progress-text__unit`)},[N(()=>B)],2)],6))],64))])):N(()=>null)],2)}}});const dt={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ft=H({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(t,{slots:c}){const k=W(()=>K(t.height)),I=W(()=>typeof t.fillColor=="object"?`linear-gradient(to right, ${t.fillColor?.stops[0]} , ${t.fillColor?.stops[1]})`:t.fillColor),x=W(()=>t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):""),n=W(()=>t.fillBorderRadius!==void 0?K(t.fillBorderRadius):t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:p,railColor:y,railStyle:u,percentage:z,unit:C,indicatorTextColor:q,status:h,showIndicator:B,processing:g,clsPrefix:f}=t;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w([`${f}-progress-graph-line`,{[`${f}-progress-graph-line--indicator-${p}`]:!0}])},[r("div",{class:w(`${f}-progress-graph-line-rail`),style:j([{backgroundColor:y,height:k.value,borderRadius:x.value},u])},[r("div",{class:w([`${f}-progress-graph-line-fill`,g&&`${f}-progress-graph-line-fill--processing`]),style:j({maxWidth:`${t.percentage}%`,background:I.value,height:k.value,lineHeight:k.value,borderRadius:n.value})},[p==="inside"?(o(),s("div",{key:0,class:w(`${f}-progress-graph-line-indicator`),style:j({color:q})},[c.default?(o(),s(E,{key:0},[N(()=>c.default())],64)):(o(),s(E,{key:1},[N(()=>`${z}${C}`)],64))],6)):N(()=>null)],6)],6)],2)],2),B&&p==="outside"?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),style:j({color:q}),role:"none"},[N(()=>c.default())],6)):(o(),s(E,{key:1},[h==="default"?(o(),s("div",{key:0,role:"none",class:w(`${f}-progress-icon ${f}-progress-icon--as-text`),style:j({color:q})},[N(()=>z),N(()=>C)],6)):(o(),s("div",{key:1,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>dt[h]},1032,["clsPrefix"]))],2))],64))])):N(()=>null)],2)}}});const pt=["id"],gt=["stop-color"],vt=["stop-color"],ht=["d","stroke-width"],yt=["d","stroke-width"],mt=["viewBox"];function be(t,c,k=100){return`m ${k/2} ${k/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var bt=H({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(t,{slots:c}){const k=W(()=>t.percentage.map((x,n)=>`${Math.PI*x/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*n)-t.circleGap*n)*2}, ${t.viewBoxWidth*8}`)),I=(x,n)=>{const p=t.fillColor[n],y=typeof p=="object"?p.stops[0]:"",u=typeof p=="object"?p.stops[1]:"";return typeof t.fillColor[n]=="object"&&(o(),s("linearGradient",{id:`gradient-${n}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},[r("stop",{offset:"0%","stop-color":y},null,8,gt),r("stop",{offset:"100%","stop-color":u},null,8,vt)],8,pt))};return()=>{const{viewBoxWidth:x,strokeWidth:n,circleGap:p,showIndicator:y,fillColor:u,railColor:z,railStyle:C,percentage:q,clsPrefix:h}=t;return o(),s("div",{class:w(`${h}-progress-content`),role:"none"},[r("div",{class:w(`${h}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${h}-progress-graph-circle`)},[(o(),s("svg",{viewBox:`0 0 ${x} ${x}`},[r("defs",null,[N(()=>q.map((B,g)=>I(B,g)))]),N(()=>q.map((B,g)=>(o(),s("g",{key:g},[r("path",{class:w(`${h}-progress-graph-circle-rail`),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j([{strokeDashoffset:0,stroke:z[g]},C[g]])},null,14,ht),r("path",{class:w([`${h}-progress-graph-circle-fill`,B===0&&`${h}-progress-graph-circle-fill--empty`]),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j({strokeDasharray:k.value[g],strokeDashoffset:0,stroke:typeof u[g]=="object"?`url(#gradient-${g})`:u[g]})},null,14,yt)]))))],8,mt))],2)],2),y&&c.default?(o(),s("div",{key:0},[r("div",{class:w(`${h}-progress-text`)},[N(()=>c.default())],2)])):N(()=>null)],2)}}}),wt=re([_("progress",{display:"inline-block"},[_("progress-icon",` color: var(--n-icon-color); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CYz55qnY.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbqDP5dl.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CYz55qnY.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbqDP5dl.js index da3efb5e..2daa4753 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CYz55qnY.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbqDP5dl.js @@ -1,4 +1,4 @@ -import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-FGi6cKHs.js";import{a as K}from"./use-compitable-Cc7HI9yh.js";var L=b([b("@keyframes spin-rotate",` +import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-Dewca6JL.js";import{a as K}from"./use-compitable-CcF_TVW8.js";var L=b([b("@keyframes spin-rotate",` from { transform: rotate(0); } diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-X3e6akRp.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Dpzh-nNm.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-X3e6akRp.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Dpzh-nNm.js index d7acf6e0..b1c8571e 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-X3e6akRp.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Dpzh-nNm.js @@ -1,4 +1,4 @@ -import{I as ce}from"./Input-CQNdwpgx.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-FGi6cKHs.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{F as Kt,a as me,u as At,A as Je}from"./AddOutline-AWO4O9Bs.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-DzcW9fCu.js";import{S as jt}from"./Spin-CYz55qnY.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-CALNDdv7.js";import{T as Vt,P as qt}from"./PulseOutline-BTyoewQd.js";import{h as Xe,c as Gt,T as Pe,S as Jt}from"./Select-BIQZTWeg.js";import{u as Xt}from"./use-compitable-Cc7HI9yh.js";import{a as je}from"./engine-state-C1ri-urc.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-Crtjgplw.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{v as pn}from"./filename-template-DBJXvN0y.js";import{C as vn}from"./CheckboxGroup-CBTKxgig.js";import{S as fn}from"./Switch-zhsy3xi9.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-DZpFNqp3.js";import{R as Ye}from"./RefreshOutline-C3W18lVY.js";import{S as wn}from"./SearchOutline-rYjpTFrE.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Xe({target:B},"dropdownOption")&&!Xe({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` +import{I as ce}from"./Input-v4sTQ7Pz.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-Dewca6JL.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{F as Kt,a as me,u as At,A as Je}from"./AddOutline-RKRa1cGv.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-DoP8RQDr.js";import{S as jt}from"./Spin-BbqDP5dl.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-X3-6UyRF.js";import{T as Vt,P as qt}from"./PulseOutline-B76LUJRI.js";import{h as Xe,c as Gt,T as Pe,S as Jt}from"./Select-Cl5vTXvX.js";import{u as Xt}from"./use-compitable-CcF_TVW8.js";import{a as je}from"./engine-state-BXjEZp_d.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-Bqfjqsa8.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{v as pn}from"./filename-template-DBJXvN0y.js";import{C as vn}from"./CheckboxGroup-Df5112cP.js";import{S as fn}from"./Switch-BcQ8noQd.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-EiwVCUcb.js";import{R as Ye}from"./RefreshOutline-AM6fn2f1.js";import{S as wn}from"./SearchOutline-r0tEsj-I.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Xe({target:B},"dropdownOption")&&!Xe({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` transform-origin: var(--v-transform-origin); background-color: var(--n-color); border-radius: var(--n-border-radius); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-zhsy3xi9.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-BcQ8noQd.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-zhsy3xi9.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-BcQ8noQd.js index 350c09cc..092ea8bd 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-zhsy3xi9.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-BcQ8noQd.js @@ -1,4 +1,4 @@ -import{a2 as X,a7 as a,bb as Y,a4 as H,a6 as l,a5 as Q,d as ve,a8 as J,bm as M,o as u,c as m,a as p,R as r,P as n,n as q,aa as ge,be as we,r as A,ac as me,j as P,ad as E,b2 as v,i as G,bn as pe,Q as ye,bf as ke,bo as xe,af as g,bp as I,am as s,ae as Se}from"./index-FGi6cKHs.js";import{u as _e}from"./use-compitable-Cc7HI9yh.js";var ze=X("switch",` +import{a2 as X,a7 as a,bb as Y,a4 as H,a6 as l,a5 as Q,d as ve,a8 as J,bm as M,o as u,c as m,a as p,R as r,P as n,n as q,aa as ge,be as we,r as A,ac as me,j as P,ad as E,b2 as v,i as G,bn as pe,Q as ye,bf as ke,bo as xe,af as g,bp as I,am as s,ae as Se}from"./index-Dewca6JL.js";import{u as _e}from"./use-compitable-CcF_TVW8.js";var ze=X("switch",` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DZpFNqp3.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-EiwVCUcb.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DZpFNqp3.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-EiwVCUcb.js index 999f792e..686c30e0 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DZpFNqp3.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-EiwVCUcb.js @@ -1 +1 @@ -import{d as t,c as n,a as o,o as r}from"./index-FGi6cKHs.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; +import{d as t,c as n,a as o,o as r}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-Cf-2z3Ev.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-C8KY-gaw.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-Cf-2z3Ev.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-C8KY-gaw.js index 1e5fe26c..643608b9 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-Cf-2z3Ev.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-C8KY-gaw.js @@ -1,4 +1,4 @@ -import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-FGi6cKHs.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` +import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-Dewca6JL.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` height: 1em; width: 1em; line-height: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-Uo85WSlp.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-Uo85WSlp.js new file mode 100644 index 00000000..e3411b59 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-Uo85WSlp.js @@ -0,0 +1 @@ +import{ap as n,ao as a}from"./index-Dewca6JL.js";const e=!0,t="engine-v1.1.3",o=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),c=()=>n("/miniapp/engine/cancel");export{e as E,t as a,c,o as g,i as s}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-fqHnj72g.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-fqHnj72g.js deleted file mode 100644 index 3d9fe56f..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-fqHnj72g.js +++ /dev/null @@ -1 +0,0 @@ -import{ap as n,ao as a}from"./index-FGi6cKHs.js";const o=!1,t="PENDING",e=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),E=()=>n("/miniapp/engine/cancel");export{o as E,t as a,E as c,e as g,i as s}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-BXjEZp_d.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-BXjEZp_d.js new file mode 100644 index 00000000..a0979c11 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-BXjEZp_d.js @@ -0,0 +1 @@ +import{r as e,j as a}from"./index-Dewca6JL.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C1ri-urc.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C1ri-urc.js deleted file mode 100644 index 8cea7815..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C1ri-urc.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e,j as a}from"./index-FGi6cKHs.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-FGi6cKHs.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Dewca6JL.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-FGi6cKHs.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Dewca6JL.js index e000f0cc..cad80557 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-FGi6cKHs.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Dewca6JL.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-BXa3gqh3.js","assets/Input-CQNdwpgx.js","assets/use-compitable-Cc7HI9yh.js","assets/CheckboxGroup-CBTKxgig.js","assets/_plugin-vue_export-helper-Cf-2z3Ev.js","assets/Spin-CYz55qnY.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-ekQZ1QYf.js","assets/RefreshOutline-C3W18lVY.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-BtBozJ6v.js","assets/PulseOutline-BTyoewQd.js","assets/use-message-DzcW9fCu.js","assets/streamers-Crtjgplw.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-fqHnj72g.js","assets/engine-state-C1ri-urc.js","assets/VideocamOutline-DZpFNqp3.js","assets/FilmOutline-Gr2Sgzxq.js","assets/GitCompareOutline-92xJ43m4.js","assets/CloudDownloadOutline-GAucdlv-.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-X3e6akRp.js","assets/AddOutline-AWO4O9Bs.js","assets/EmptyState-CALNDdv7.js","assets/EmptyState-BJiq6Btv.css","assets/Select-BIQZTWeg.js","assets/format-B8CnorUZ.js","assets/filename-template-DBJXvN0y.js","assets/Switch-zhsy3xi9.js","assets/SearchOutline-rYjpTFrE.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-D-5LxqQb.js","assets/DownloadOutline-D3fGSRVg.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-CiNT7cDx.js","assets/DocumentTextOutline-BFofTbif.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-bBDSRDwN.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-fhfMIyM2.js","assets/SettingsView-T1R_3ITH.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-BctFe39X.js","assets/Input-v4sTQ7Pz.js","assets/use-compitable-CcF_TVW8.js","assets/CheckboxGroup-Df5112cP.js","assets/_plugin-vue_export-helper-C8KY-gaw.js","assets/Spin-BbqDP5dl.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-BWuJr4AI.js","assets/RefreshOutline-AM6fn2f1.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-CAYRlNMN.js","assets/PulseOutline-B76LUJRI.js","assets/use-message-DoP8RQDr.js","assets/streamers-Bqfjqsa8.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-Uo85WSlp.js","assets/engine-state-BXjEZp_d.js","assets/VideocamOutline-EiwVCUcb.js","assets/FilmOutline-C3cZd2xG.js","assets/GitCompareOutline-B9U2QCIP.js","assets/CloudDownloadOutline-i6vXE3nl.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-Dpzh-nNm.js","assets/AddOutline-RKRa1cGv.js","assets/EmptyState-X3-6UyRF.js","assets/EmptyState-BJiq6Btv.css","assets/Select-Cl5vTXvX.js","assets/format-B8CnorUZ.js","assets/filename-template-DBJXvN0y.js","assets/Switch-BcQ8noQd.js","assets/SearchOutline-r0tEsj-I.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-SRhryImQ.js","assets/DownloadOutline-DxvLxbyx.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-C32h1q4d.js","assets/DocumentTextOutline-YbRT-tSM.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-CSQ6hh8U.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-Dcoelb-a.js","assets/SettingsView-T1R_3ITH.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function va(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Oe={},lr=[],co=()=>{},Cd=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),qe=Object.assign,Ca=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Em=Object.prototype.hasOwnProperty,Re=(e,t)=>Em.call(e,t),ge=Array.isArray,Uo=e=>On(e)==="[object Map]",mi=e=>On(e)==="[object Set]",ss=e=>On(e)==="[object Date]",ye=e=>typeof e=="function",Ve=e=>typeof e=="string",kt=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",xd=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),yd=Object.prototype.toString,On=e=>yd.call(e),_m=e=>On(e).slice(8,-1),Sd=e=>On(e)==="[object Object]",Bi=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ki=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},$m=/-\w/g,wt=ki(e=>e.replace($m,t=>t.slice(1).toUpperCase())),Rm=/\B([A-Z])/g,Cr=ki(e=>e.replace(Rm,"-$1").toLowerCase()),Di=ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),ml=ki(e=>e?`on${Di(e)}`:""),io=(e,t)=>!Object.is(e,t),gl=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},Im=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Am=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let cs;const Li=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ge(e)){const t={};for(let o=0;oo.startsWith("/*")?"":o).split(Hm).forEach(o=>{if(o){const r=o.split(Mm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function mr(e){let t="";if(Ve(e))t=e;else if(ge(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Om=e=>Ve(e)?e:e==null?"":ge(e)||Ie(e)&&(e.toString===yd||!ye(e.toString))?Td(e)?Om(e.value):JSON.stringify(e,Ed,2):String(e),Ed=(e,t)=>Td(t)?Ed(e,t.value):Uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[bl(r,i)+" =>"]=n,o),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bl(o))}:kt(t)?bl(t):Ie(t)&&!ge(t)&&!Sd(t)?String(t):t,bl=(e,t="")=>{var o;return kt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let it;class Wm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&it&&(it.active?(this.parent=it,this.index=(it.scopes||(it.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(it===this)it=this.prevScope;else{let t=it;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(pn){let t=pn;for(pn=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;hn;){let t=hn;for(hn=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Id(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ad(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Sa(r),jm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function Wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wl(e))))return;e.flags|=2;const t=e.dep,o=We,r=Xt;We=e,Xt=!0;try{Id(e);const n=e.fn(e._value);(t.version===0||io(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{We=o,Xt=r,Ad(e),e.flags&=-3}}function Sa(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Sa(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function jm(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Xt=!0;const Md=[];function fo(){Md.push(Xt),Xt=!1}function ho(){const e=Md.pop();Xt=e===void 0?!0:e}function fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=We;We=void 0;try{t()}finally{We=o}}}let yn=0;class Vm{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!Xt||We===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==We)o=this.activeLink=new Vm(We,this),We.deps?(o.prevDep=We.depsTail,We.depsTail.nextDep=o,We.depsTail=o):We.deps=We.depsTail=o,zd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=We.depsTail,o.nextDep=void 0,We.depsTail.nextDep=o,We.depsTail=o,We.deps===o&&(We.deps=r)}return o}trigger(t){this.version++,yn++,this.notify(t)}notify(t){xa();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ya()}}}function zd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zd(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const gi=new WeakMap,ur=Symbol(""),Nl=Symbol(""),Sn=Symbol("");function ht(e,t,o){if(Xt&&We){let r=gi.get(e);r||gi.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new wa),n.map=r,n.key=o),n.track()}}function To(e,t,o,r,n,i){const l=gi.get(e);if(!l){yn++;return}const a=s=>{s&&s.trigger()};if(xa(),t==="clear")l.forEach(a);else{const s=ge(e),d=s&&Bi(o);if(s&&o==="length"){const c=Number(r);l.forEach((u,f)=>{(f==="length"||f===Sn||!kt(f)&&f>=c)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),d&&a(l.get(Sn)),t){case"add":s?d&&a(l.get("length")):(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"delete":s||(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"set":Uo(e)&&a(l.get(ur));break}}ya()}function Gm(e,t){const o=gi.get(e);return o&&o.get(t)}function _r(e){const t=_e(e);return t===e||(ht(t,"iterate",Sn),Ft(e))?t:mo(e)?qo(e)?t.map(o=>Ko(jt(o))):t.map(Ko):t.map(jt)}function Wi(e){return ht(e=_e(e),"iterate",Sn),e}function oo(e,t){return mo(e)?Ko(qo(e)?jt(t):t):jt(t)}const Um={__proto__:null,[Symbol.iterator](){return Cl(this,Symbol.iterator,e=>oo(this,e))},concat(...e){return _r(this).concat(...e.map(t=>ge(t)?_r(t):t))},entries(){return Cl(this,"entries",e=>(e[1]=oo(this,e[1]),e))},every(e,t){return yo(this,"every",e,t,void 0,arguments)},filter(e,t){return yo(this,"filter",e,t,o=>o.map(r=>oo(this,r)),arguments)},find(e,t){return yo(this,"find",e,t,o=>oo(this,o),arguments)},findIndex(e,t){return yo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yo(this,"findLast",e,t,o=>oo(this,o),arguments)},findLastIndex(e,t){return yo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yo(this,"forEach",e,t,void 0,arguments)},includes(...e){return xl(this,"includes",e)},indexOf(...e){return xl(this,"indexOf",e)},join(e){return _r(this).join(e)},lastIndexOf(...e){return xl(this,"lastIndexOf",e)},map(e,t){return yo(this,"map",e,t,void 0,arguments)},pop(){return Jr(this,"pop")},push(...e){return Jr(this,"push",e)},reduce(e,...t){return ps(this,"reduce",e,t)},reduceRight(e,...t){return ps(this,"reduceRight",e,t)},shift(){return Jr(this,"shift")},some(e,t){return yo(this,"some",e,t,void 0,arguments)},splice(...e){return Jr(this,"splice",e)},toReversed(){return _r(this).toReversed()},toSorted(e){return _r(this).toSorted(e)},toSpliced(...e){return _r(this).toSpliced(...e)},unshift(...e){return Jr(this,"unshift",e)},values(){return Cl(this,"values",e=>oo(this,e))}};function Cl(e,t,o){const r=Wi(e),n=r[t],i=n.call(r);if(r!==e&&!Ft(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const l=Object.create(Object.getPrototypeOf(i));return l.next=()=>hs(i.next(),o),n!==Fd[t]&&Object.defineProperties(l,{return:{get(){const a=i.return;return typeof a=="function"?a.bind(i):a}},throw:{get(){const a=i.throw;return typeof a=="function"?a.bind(i):a}}}),l}i._next=i.next,i.next=()=>hs(i._next(),o)}return i}function hs(e,t){return e.done||(e.value=t(e.value)),e}const Fd=Array.prototype;function yo(e,t,o,r,n,i){const l=Wi(e),a=l!==e&&!Ft(e),s=l[t];if(s!==Fd[t]){const u=s.apply(e,i);return a?jt(u):u}let d=o;l!==e&&(a?d=function(u,f){return o.call(this,oo(e,u),f,e)}:o.length>2&&(d=function(u,f){return o.call(this,u,f,e)}));const c=s.call(l,d,r);return a&&n?n(c):c}function ps(e,t,o,r){const n=Wi(e),i=n!==e&&!Ft(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(d,c,u){return a&&(a=!1,d=oo(e,d)),o.call(this,d,oo(e,c),u,e)}):o.length>3&&(l=function(d,c,u){return o.call(this,d,c,u,e)}));const s=n[t](l,...r);return a?oo(e,s):s}function xl(e,t,o){const r=_e(e);ht(r,"iterate",Sn);const n=r[t](...o);return(n===-1||n===!1)&&Ni(o[0])?(o[0]=_e(o[0]),r[t](...o)):n}function Jr(e,t,o=[]){fo(),xa();const r=_e(e)[t].apply(e,o);return ya(),ho(),r}const qm=va("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function Km(e){kt(e)||(e=String(e));const t=_e(this);return ht(t,"has",e),t.hasOwnProperty(e)}class kd{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?ng:Wd:i?Od:Ld).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=ge(t);if(!n){let s;if(l&&(s=Um[o]))return s;if(o==="hasOwnProperty")return Km}const a=Reflect.get(t,o,ot(t)?t:r);if((kt(o)?Bd.has(o):qm(o))||(n||ht(t,"get",o),i))return a;if(ot(a)){const s=l&&Bi(o)?a:a.value;return n&&Ie(s)?po(s):s}return Ie(a)?n?po(a):xr(a):a}}class Dd extends kd{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=ge(t)&&Bi(o);if(!this._isShallow){const d=mo(i);if(!Ft(r)&&!mo(r)&&(i=_e(i),r=_e(r)),!l&&ot(i)&&!ot(r))return d||(i.value=r),!0}const a=l?Number(o)e,Yn=e=>Reflect.getPrototypeOf(e);function Qm(e,t,o){return function(...r){const n=this.__v_raw,i=_e(n),l=Uo(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,d=n[e](...r),c=o?jl:t?Ko:jt;return!t&&ht(i,"iterate",s?Nl:ur),qe(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:a?[c(u[0]),c(u[1])]:c(u),done:f}}})}}function Xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eg(e,t){const o={get(n){const i=this.__v_raw,l=_e(i),a=_e(n);e||(io(n,a)&&ht(l,"get",n),ht(l,"get",a));const{has:s}=Yn(l),d=t?jl:e?Ko:jt;if(s.call(l,n))return d(i.get(n));if(s.call(l,a))return d(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&ht(_e(n),"iterate",ur),n.size},has(n){const i=this.__v_raw,l=_e(i),a=_e(n);return e||(io(n,a)&&ht(l,"has",n),ht(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=_e(a),d=t?jl:e?Ko:jt;return!e&&ht(s,"iterate",ur),a.forEach((c,u)=>n.call(i,d(c),d(u),l))}};return qe(o,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(n){const i=_e(this),l=Yn(i),a=_e(n),s=!t&&!Ft(n)&&!mo(n)?a:n;return l.has.call(i,s)||io(n,s)&&l.has.call(i,n)||io(a,s)&&l.has.call(i,a)||(i.add(s),To(i,"add",s,s)),this},set(n,i){!t&&!Ft(i)&&!mo(i)&&(i=_e(i));const l=_e(this),{has:a,get:s}=Yn(l);let d=a.call(l,n);d||(n=_e(n),d=a.call(l,n));const c=s.call(l,n);return l.set(n,i),d?io(i,c)&&To(l,"set",n,i):To(l,"add",n,i),this},delete(n){const i=_e(this),{has:l,get:a}=Yn(i);let s=l.call(i,n);s||(n=_e(n),s=l.call(i,n)),a&&a.call(i,n);const d=i.delete(n);return s&&To(i,"delete",n,void 0),d},clear(){const n=_e(this),i=n.size!==0,l=n.clear();return i&&To(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Qm(n,e,t)}),o}function Pa(e,t){const o=eg(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_isShallow"?t:n==="__v_raw"?r:Reflect.get(Re(o,n)&&n in r?o:r,n,i)}const tg={get:Pa(!1,!1)},og={get:Pa(!1,!0)},rg={get:Pa(!0,!1)};const Ld=new WeakMap,Od=new WeakMap,Wd=new WeakMap,ng=new WeakMap;function ig(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xr(e){return mo(e)?e:Ta(e,!1,Xm,tg,Ld)}function Nd(e){return Ta(e,!1,Jm,og,Od)}function po(e){return Ta(e,!0,Zm,rg,Wd)}function Ta(e,t,o,r,n){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=ig(_m(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function qo(e){return mo(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Ni(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Vl(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&wd(e,"__v_skip",!0),e}const jt=e=>Ie(e)?xr(e):e,Ko=e=>Ie(e)?po(e):e;function ot(e){return e?e.__v_isRef===!0:!1}function se(e){return Vd(e,!1)}function jd(e){return Vd(e,!0)}function Vd(e,t){return ot(e)?e:new lg(e,t)}class lg{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:_e(t),this._value=o?t:jt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||Ft(t)||mo(t);t=r?t:_e(t),io(t,o)&&(this._rawValue=t,this._value=r?t:jt(t),this.dep.trigger())}}function Yt(e){return ot(e)?e.value:e}const ag={get:(e,t,o)=>t==="__v_raw"?e:Yt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return ot(n)&&!ot(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function Gd(e){return qo(e)?e:new Proxy(e,ag)}class sg{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=kt(o)?o:String(o),this._raw=_e(t);let n=!0,i=t;if(!ge(t)||kt(this._key)||!Bi(this._key))do n=!Ni(i)||Ft(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Yt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ot(this._raw[this._key])){const o=this._object[this._key];if(ot(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Gm(this._raw,this._key)}}class cg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function uo(e,t,o){return ot(e)?e:ye(e)?new cg(e):Ie(e)&&arguments.length>1?dg(e,t,o):se(e)}function dg(e,t,o){return new sg(e,t,o)}class ug{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Rd(this,!0),!0}get value(){const t=this.dep.track();return Hd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,o=!1){let r,n;return ye(e)?r=e:(r=e.get,n=e.set),new ug(r,n,o)}const Zn={},bi=new WeakMap;let or;function hg(e,t=!1,o=or){if(o){let r=bi.get(o);r||bi.set(o,r=[]),r.push(e)}}function pg(e,t,o=Oe){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,d=P=>n?P:Ft(P)||n===!1||n===0?Eo(P,1):Eo(P);let c,u,f,h,p=!1,g=!1;if(ot(e)?(u=()=>e.value,p=Ft(e)):qo(e)?(u=()=>d(e),p=!0):ge(e)?(g=!0,p=e.some(P=>qo(P)||Ft(P)),u=()=>e.map(P=>{if(ot(P))return P.value;if(qo(P))return d(P);if(ye(P))return s?s(P,2):P()})):ye(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){fo();try{f()}finally{ho()}}const P=or;or=c;try{return s?s(e,3,[h]):e(h)}finally{or=P}}:u=co,t&&n){const P=u,A=n===!0?1/0:n;u=()=>Eo(P(),A)}const b=Nm(),C=()=>{c.stop(),b&&b.active&&Ca(b.effects,c)};if(i&&t){const P=t;t=(...A)=>{try{return P(...A)}finally{C()}}}let y=g?new Array(e.length).fill(Zn):Zn;const T=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const A=c.run();if(P||n||p||(g?A.some((M,v)=>io(M,y[v])):io(A,y))){const M=or;fo();try{f&&f(),or=c;const v=[A,y===Zn?void 0:g&&y[0]===Zn?[]:y,h];y=A,s?s(t,3,v):t(...v)}finally{or=M,ho()}}}else c.run()};return a&&a(T),c=new _d(u),c.scheduler=l?()=>l(T,!1):T,h=P=>hg(P,!1,c),f=c.onStop=()=>{const P=bi.get(c);if(P){if(s)s(P,4);else for(const A of P)A();bi.delete(c)}},t?r?T(!0):y=c.run():l?l(T.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function Eo(e,t=1/0,o){if(t<=0||!Ie(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,ot(e))Eo(e.value,t,o);else if(ge(e))for(let r=0;r{Eo(r,t,o)});else if(Sd(e)){for(const r in e)Eo(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Eo(e[r],t,o)}return e}function Wn(e,t,o,r){try{return r?e(...r):e()}catch(n){ji(n,t,o)}}function Vt(e,t,o,r){if(ye(e)){const n=Wn(e,t,o,r);return n&&xd(n)&&n.catch(i=>{ji(i,t,o,void 0,!0)}),n}if(ge(e)){const n=[];for(let i=0;i>>1,n=yt[r],i=wn(n);i=wn(o)?yt.push(e):yt.splice(gg(t),0,e),e.flags|=1,qd()}}function qd(){vi||(vi=Ud.then(Xd))}function bg(e){if(!ge(e))Wo&&e.id===-1?Wo.splice(Ar+1,0,e):e.flags&1||(ro.push(e),e.flags|=1);else for(let t=0;t=t))continue;yt.splice(r,1),r=e?r-1:Ut,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Yd(e,t,o=0){if(ro.length){let r=ro,n=0;if(t){r=[];for(let l=0;lwn(l)-wn(a));if(ro.length=n,Wo){for(let l=0;le.id==null?e.flags&2?-1:1/0:e.id;function Xd(e){try{for(Ut=0;Ut{r._d&&wi(-1);const i=Ci(t),l=$o.length;let a;try{a=e(...n)}finally{for(let s=$o.length;s>l;s--)Ha();Ci(i),r._d&&wi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Gl(e,t){if(lt===null)return e;const o=Yi(lt),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ye(t)?t.call(r&&r.proxy):t}}const Cg=Symbol.for("v-scx"),xg=()=>De(Cg);function Gi(e,t){return Ea(e,null,t)}function Nt(e,t,o){return Ea(e,t,o)}function Ea(e,t,o=Oe){const{immediate:r,deep:n,flush:i,once:l}=o,a=qe({},o),s=t&&r||!t&&i!=="post";let d;if(In){if(i==="sync"){const h=xg();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=co,h.resume=co,h.pause=co,h}}const c=mt;a.call=(h,p,g)=>Vt(h,c,p,g);let u=!1;i==="post"?a.scheduler=h=>{h.i=c,ft(h,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Vi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=pg(e,t,a);return In&&(d?d.push(f):s&&f()),f}function yg(e,t,o){const r=this.proxy,n=Ve(e)?e.includes(".")?Jd(r,e):()=>r[e]:e.bind(r,r);let i;ye(t)?i=t:(i=t.handler,o=t);const l=jn(this),a=Ea(n,i.bind(r),o);return l(),a}function Jd(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,nr=e=>e&&(e.disabled||e.disabled===""),Sg=e=>e&&(e.defer||e.defer===""),ms=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ul=(e,t)=>{const o=e&&e.to;return Ve(o)?t?t(o):null:o},wg={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,d){const{mc:c,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b,parentNode:C}}=d,y=nr(t.props);let{dynamicChildren:T}=t;const P=(v,w,_)=>{v.shapeFlag&16&&c(v.children,w,_,n,i,l,a,s)},A=(v=t)=>{const w=nr(v.props),_=v.target=Ul(v.props,p),H=ql(_,v,g,h);_&&(l!=="svg"&&ms(_)?l="svg":l!=="mathml"&&gs(_)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(_),w||(P(v,_,H),an(v,!1)))},M=v=>{const w=()=>{if(Lo.get(v)===w){if(Lo.delete(v),nr(v.props)){const _=C(v.el)||o;P(v,_,v.anchor),an(v,!0)}A(v)}};Lo.set(v,w),ft(w,i)};if(e==null){const v=t.el=g(""),w=t.anchor=g("");if(h(v,o,r),h(w,o,r),Sg(t.props)||i&&i.pendingBranch){M(t);return}y&&(P(t,o,w),an(t,!0)),A()}else{t.el=e.el;const v=t.anchor=e.anchor,w=Lo.get(e);if(w){w.flags|=8,Lo.delete(e),M(t);return}t.targetStart=e.targetStart;const _=t.target=e.target,H=t.targetAnchor=e.targetAnchor,O=nr(e.props),$=O?o:_,K=O?v:H;if(l==="svg"||ms(_)?l="svg":(l==="mathml"||gs(_))&&(l="mathml"),T?(f(e.dynamicChildren,T,$,n,i,l,a),Aa(e,t,!0)):s||u(e,t,$,K,n,i,l,a,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jn(t,o,v,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=Ul(t.props,p);ie&&(t.target=ie,Jn(t,ie,null,d,0))}else O&&Jn(t,_,H,d,1);an(t,y)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:d,targetAnchor:c,target:u,props:f}=e,h=nr(f),p=i||!h,g=Lo.get(e);if(g&&(g.flags|=8,Lo.delete(e)),u&&(n(d),n(c)),i&&n(s),!g&&(h||u)&&l&16)for(let b=0;b{e.isMounted=!0}),Gt(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],tu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},Tg={name:"BaseTransition",props:tu,setup(e,{slots:t}){const o=Wr(),r=eu();return()=>{const n=t.default&&$a(t.default(),!0),i=n&&n.length?ou(n):o.subTree?db():void 0;if(!i)return;const l=_e(e),{mode:a}=l;if(r.isLeaving)return Sl(i);const s=xi(i);if(!s)return Sl(i);const d=Pn(s,l,r,o);s.type!==Ze&&_o(s,d);let c=o.subTree&&xi(o.subTree);if(c&&c.type!==Ze&&!ir(c,s)&&Tn(o.subTree)){let u=Pn(c,l,r,o);if(_o(c,u),a==="out-in"&&s.type!==Ze)return r.isLeaving=!0,u.afterLeave=()=>{if(r.isLeaving=!1,!(o.job.flags&8))if(o.effect.flags&2){const f=()=>{o.job.flags&8||o.update()};f.i=o,Vi(f)}else o.update();delete u.afterLeave,c=void 0},Sl(i);a==="in-out"&&s.type!==Ze?u.delayLeave=(f,h,p)=>{const g=ru(r,c);g[String(c.key)]=c,f[Wt]=()=>{h(),f[Wt]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function ou(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Ze){t=o;break}}return t}const Eg=Tg;function ru(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Pn(e,t,o,r){const{appear:n,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:u,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:y}=t,T=String(e.key),P=ru(o,e),A=(w,_)=>{w&&Vt(w,r,9,_)},M=(w,_)=>{const H=_[1];A(w,_),ge(w)?w.every(O=>O.length<=1)&&H():w.length<=1&&H()},v={mode:i,persisted:l,beforeEnter(w){let _=a;if(!o.isMounted)if(n)_=g||a;else return;w[Wt]&&w[Wt](!0);const H=P[T];if(H&&ir(e,H)){let O=H.el[Wt];if(!O){const $=Tn(H);O=$&&$.el[Wt]}O&&O()}A(_,[w])},enter(w){if(P[T]===e)return;let _=s,H=d,O=c;if(!o.isMounted)if(n)_=b||s,H=C||d,O=y||c;else return;let $=!1;w[Qr]=ie=>{$||($=!0,ie?A(O,[w]):A(H,[w]),v.delayedLeave&&v.delayedLeave(),w[Qr]=void 0)};const K=w[Qr].bind(null,!1);_?M(_,[w,K]):K()},leave(w,_){const H=String(e.key);if(w[Qr]&&w[Qr](!0),o.isUnmounting)return _();A(u,[w]);let O=!1;w[Wt]=K=>{O||(O=!0,_(),K?A(p,[w]):A(h,[w]),w[Wt]=void 0,P[H]===e&&delete P[H])};const $=w[Wt].bind(null,!1);P[H]=e,f?M(f,[w,$]):$()},clone(w){const _=Pn(w,t,o,r);return _.afterLeave=()=>{v.afterLeave&&v.afterLeave()},_.delayLeave=(H,O,$)=>{v.delayLeave?v.delayLeave(H,O,$):$()},_.delayedLeave=()=>{v.delayedLeave&&v.delayedLeave()},_}};return v}function Sl(e){if(qi(e))return e=go(e),e.children=null,e}function xi(e){if(!qi(e))return Ui(e.type)&&e.children?ou(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ye(o.default))return o.default()}}function _o(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;_o(Ui(o.type)&&xi(o)||o,t)}else if(e.shapeFlag&128){const o=e.suspense;if(o){const r=o.isHydrating?o.pendingBranch:o.activeBranch;r&&_o(r,t.clone(r))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===Te&&ge(e.children)){const o=vu(e.children,!1);o&&_o(o,t)}}function $a(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;imn(g,t&&(ge(t)?t[b]:t),o,r,n));return}if(Mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?Yi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,d=t&&t.r,c=a.refs===Oe?a.refs={}:a.refs,u=a.setupState,f=_e(u),h=u===Oe?Cd:g=>bs(c,g)?!1:Re(f,g),p=(g,b)=>!(b&&bs(c,b));if(d!=null&&d!==s){if(vs(t),Ve(d))c[d]=null,h(d)&&(u[d]=null);else if(ot(d)){const g=t;p(d,g.k)&&(d.value=null),g.k&&(c[g.k]=null)}}if(ye(s))Wn(s,a,12,[l,c]);else{const g=Ve(s),b=ot(s);if(g||b){const C=()=>{if(e.f){const y=g?h(s)?u[s]:c[s]:p()||!e.k?s.value:c[e.k];if(n)ge(y)&&Ca(y,i);else if(ge(y))y.includes(i)||y.push(i);else if(g)c[s]=[i],h(s)&&(u[s]=c[s]);else{const T=[i];p(s,e.k)&&(s.value=T),e.k&&(c[e.k]=T)}}else g?(c[s]=l,h(s)&&(u[s]=l)):b&&(p(s,e.k)&&(s.value=l),e.k&&(c[e.k]=l))};if(l){const y=()=>{C(),yi.delete(e)};y.id=-1,yi.set(e,y),ft(y,o)}else vs(e),C()}}}function vs(e){const t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}Li().requestIdleCallback;Li().cancelIdleCallback;const Mr=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function iu(e,t){au(e,"a",t)}function lu(e,t){au(e,"da",t)}function au(e,t,o=mt){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,r,o),o){let n=o.parent;for(;n&&n.parent;)qi(n.parent.vnode)&&_g(r,t,o,n),n=n.parent}}function _g(e,t,o,r){const n=En(t,e,r,!0),i=En("um",()=>Ca(r[t],n),o);i.flags=16}function En(e,t,o=mt,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{fo();const a=jn(o),s=Vt(t,o,e,l);return a(),ho(),s});return r?n.unshift(i):n.push(i),i}}const Ao=e=>(t,o=mt)=>{(!In||e==="sp")&&En(e,(...r)=>t(...r),o)},yr=Ao("bm"),bo=Ao("m"),$g=Ao("bu"),su=Ao("u"),Gt=Ao("bum"),cu=Ao("um"),Rg=Ao("sp"),Ig=Ao("rtg"),Ag=Ao("rtc");function Hg(e,t=mt){En("ec",e,t)}const du="components";function Mg(e,t){return fu(du,e,!0,t)||e}const uu=Symbol.for("v-ndc");function k_(e){return Ve(e)?fu(du,e,!1)||e:e||uu}function fu(e,t,o=!0,r=!1){const n=lt||mt;if(n){const i=n.type;{const a=vb(i,!1);if(a&&(a===t||a===wt(t)||a===Di(wt(t))))return i}const l=Cs(n[e]||i[e],t)||Cs(n.appContext[e],t);return!l&&r?i:l}}function Cs(e,t){return e&&(e[t]||e[wt(t)]||e[Di(wt(t))])}function D_(e,t,o,r){let n;const i=o,l=ge(e);if(l||Ve(e)){const a=l&&qo(e);let s=!1,d=!1;a&&(s=!Ft(e),d=mo(e),e=Wi(e)),n=new Array(e.length);for(let c=0,u=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,d=a.length;s0;return k(),ae(Te,null,[je("slot",d,r)],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=$o.length;k();let s;try{const d=l&&hu(l(o)),c=o.key||i||d&&d.key;s=ae(Te,{key:(c&&!kt(c)?c:`_${t}`)+(!d&&r?"_fb":"")},d||(r?r():[]),d&&e._===1?64:-2)}catch(d){for(let c=$o.length;c>a;c--)Ha();throw d}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function hu(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!hu(t.children)):!0)?e:null}const Kl=e=>e?Mu(e)?Yi(e):Kl(e.parent):null,gn=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kl(e.parent),$root:e=>Kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mu(e),$forceUpdate:e=>e.f||(e.f=()=>{Vi(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>yg.bind(e)}),wl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Re(e,t),Fg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(wl(r,t))return l[t]=1,r[t];if(n!==Oe&&Re(n,t))return l[t]=2,n[t];if(Re(i,t))return l[t]=3,i[t];if(o!==Oe&&Re(o,t))return l[t]=4,o[t];Yl&&(l[t]=0)}}const d=gn[t];let c,u;if(d)return t==="$attrs"&&ht(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(o!==Oe&&Re(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Re(u,t))return u[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return wl(n,t)?(n[t]=o,!0):r!==Oe&&Re(r,t)?(r[t]=o,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Oe&&a[0]!=="$"&&Re(e,a)||wl(t,a)||Re(i,a)||Re(r,a)||Re(gn,a)||Re(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Re(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function xs(e){return ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Yl=!0;function Bg(e){const t=mu(e),o=e.proxy,r=e.ctx;Yl=!1,t.beforeCreate&&ys(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:C,beforeUnmount:y,destroyed:T,unmounted:P,render:A,renderTracked:M,renderTriggered:v,errorCaptured:w,serverPrefetch:_,expose:H,inheritAttrs:O,components:$,directives:K,filters:ie}=t;if(d&&kg(d,r,null),l)for(const J in l){const ue=l[J];ye(ue)&&(r[J]=ue.bind(o))}if(n){const J=n.call(o,o);Ie(J)&&(e.data=xr(J))}if(Yl=!0,i)for(const J in i){const ue=i[J],He=ye(ue)?ue.bind(o,o):ye(ue.get)?ue.get.bind(o,o):co,$e=!ye(ue)&&ye(ue.set)?ue.set.bind(o):co,Le=X({get:He,set:$e});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Le.value,set:ke=>Le.value=ke})}if(a)for(const J in a)pu(a[J],r,o,J);if(s){const J=ye(s)?s.call(o):s;Reflect.ownKeys(J).forEach(ue=>{at(ue,J[ue])})}c&&ys(c,e,"c");function ce(J,ue){ge(ue)?ue.forEach(He=>J(He.bind(o))):ue&&J(ue.bind(o))}if(ce(yr,u),ce(bo,f),ce($g,h),ce(su,p),ce(iu,g),ce(lu,b),ce(Hg,w),ce(Ag,M),ce(Ig,v),ce(Gt,y),ce(cu,P),ce(Rg,_),ge(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(ue=>{Object.defineProperty(J,ue,{get:()=>o[ue],set:He=>o[ue]=He,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===co&&(e.render=A),O!=null&&(e.inheritAttrs=O),$&&(e.components=$),K&&(e.directives=K),_&&nu(e)}function kg(e,t,o=co){ge(e)&&(e=Xl(e));for(const r in e){const n=e[r];let i;Ie(n)?"default"in n?i=De(n.from||r,n.default,!0):i=De(n.from||r):i=De(n),ot(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ys(e,t,o){Vt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function pu(e,t,o,r){let n=r.includes(".")?Jd(o,r):()=>o[r];if(Ve(e)){const i=t[e];ye(i)&&Nt(n,i)}else if(ye(e))Nt(n,e.bind(o));else if(Ie(e))if(ge(e))e.forEach(i=>pu(i,t,o,r));else{const i=ye(e.handler)?e.handler.bind(o):t[e.handler];ye(i)&&Nt(n,i,e)}}function mu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(d=>Si(s,d,l,!0)),Si(s,t,l)),Ie(t)&&i.set(t,s),s}function Si(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Si(e,i,o,!0),n&&n.forEach(l=>Si(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=Dg[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Dg={data:Ss,props:ws,emits:ws,methods:sn,computed:sn,beforeCreate:Ct,created:Ct,beforeMount:Ct,mounted:Ct,beforeUpdate:Ct,updated:Ct,beforeDestroy:Ct,beforeUnmount:Ct,destroyed:Ct,unmounted:Ct,activated:Ct,deactivated:Ct,errorCaptured:Ct,serverPrefetch:Ct,components:sn,directives:sn,watch:Og,provide:Ss,inject:Lg};function Ss(e,t){return t?e?function(){return qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Lg(e,t){return sn(Xl(e),Xl(t))}function Xl(e){if(ge(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${Cr(t)}Modifiers`];function Vg(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Oe;let n=o;const i=t.startsWith("update:"),l=i&&jg(r,t.slice(7));l&&(l.trim&&(n=o.map(c=>Ve(c)?c.trim():c)),l.number&&(n=n.map(Im)));let a,s=r[a=ml(t)]||r[a=ml(wt(t))];!s&&i&&(s=r[a=ml(Cr(t))]),s&&Vt(s,e,6,n);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Vt(d,e,6,n)}}const Gg=new WeakMap;function bu(e,t,o=!1){const r=o?Gg:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!ye(e)){const s=d=>{const c=bu(d,t,!0);c&&(a=!0,qe(l,c))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(Ie(e)&&r.set(e,null),null):(ge(i)?i.forEach(s=>l[s]=null):qe(l,i),Ie(e)&&r.set(e,l),l)}function Ki(e,t){return!e||!zi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Cr(t))||Re(e,t))}function Ps(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:d,renderCache:c,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ci(e);let C,y;try{if(o.shapeFlag&4){const P=n||r,A=P;C=no(d.call(A,P,c,u,h,f,p)),y=a}else{const P=t;C=no(P.length>1?P(u,{attrs:a,slots:l,emit:s}):P(u,null)),y=t.props?a:Ug(a)}}catch(P){$o.length=0,ji(P,e,1),C=je(Ze)}let T=C;if(y&&g!==!1){const P=Object.keys(y),{shapeFlag:A}=T;P.length&&A&7&&(i&&P.some(Fi)&&(y=qg(y,i)),T=go(T,y,!1,!0))}if(o.dirs&&(T=go(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(o.dirs):o.dirs),o.transition){const P=Ui(T.type)&&xi(T)||T;_o(P,o.transition)}return C=T,Ci(b),C}function vu(e,t=!0){let o;for(let r=0;r{let t;for(const o in e)(o==="class"||o==="style"||zi(o))&&((t||(t={}))[o]=e[o]);return t},qg=(e,t)=>{const o={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Kg(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Ts(r,l,d):!!l;if(s&8){const c=t.dynamicProps;for(let u=0;uObject.create(xu),Su=e=>Object.getPrototypeOf(e)===xu;function Xg(e,t,o,r=!1){const n={},i=yu();e.propsDefaults=Object.create(null),wu(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:Nd(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Zg(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=_e(n),[s]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,h]=Pu(u,t,!0);qe(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Ie(e)&&r.set(e,lr),lr;if(ge(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Ia=e=>ge(e)?e.map(no):[no(e)],Qg=(e,t,o)=>{if(t._n)return t;const r=so((...n)=>Ia(t(...n)),o);return r._c=!1,r},Tu=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Ra(n))continue;const i=e[n];if(ye(i))t[n]=Qg(n,i,r);else if(i!=null){const l=Ia(i);t[n]=()=>l}}},Eu=(e,t)=>{const o=Ia(t);e.slots.default=()=>o},_u=(e,t,o)=>{for(const r in t)(o||!Ra(r))&&(e[r]=t[r])},eb=(e,t,o)=>{const r=e.slots=yu();if(e.vnode.shapeFlag&32){const n=t._;n?(_u(r,t,o),o&&wd(r,"_",n,!0)):Tu(t,r)}else t&&Eu(e,t)},tb=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Oe;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:_u(n,t,o):(i=!t.$stable,Tu(t,n)),l=t}else t&&(Eu(e,t),l={default:1});if(i)for(const a in n)!Ra(a)&&l[a]==null&&delete n[a]},ft=ab;function ob(e){return rb(e)}function rb(e,t){const o=Li();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=co,insertStaticContent:p}=e,g=(m,x,S,E=null,R=null,B=null,W=void 0,U=null,G=!!x.dynamicChildren)=>{if(m===x)return;m&&!ir(m,x)&&(E=z(m),ke(m,R,B,!0),m=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null),x.dynamicChildren&&m&&m.dynamicChildren&&m.dynamicChildren.hasOnce&&(x.dynamicChildren===lr&&(x.dynamicChildren=[]),x.dynamicChildren.hasOnce=!0);const{type:I,ref:Z,shapeFlag:q}=x;switch(I){case Nn:b(m,x,S,E);break;case Ze:C(m,x,S,E);break;case ci:m==null&&y(x,S,E,W);break;case Te:$(m,x,S,E,R,B,W,U,G);break;default:q&1?A(m,x,S,E,R,B,W,U,G):q&6?K(m,x,S,E,R,B,W,U,G):(q&64||q&128)&&I.process(m,x,S,E,R,B,W,U,G,L)}Z!=null&&R?mn(Z,m&&m.ref,B,x||m,!x):Z==null&&m&&m.ref!=null&&mn(m.ref,null,B,m,!0)},b=(m,x,S,E)=>{if(m==null)r(x.el=a(x.children),S,E);else{const R=x.el=m.el;x.children!==m.children&&d(R,x.children)}},C=(m,x,S,E)=>{m==null?r(x.el=s(x.children||""),S,E):x.el=m.el},y=(m,x,S,E)=>{[m.el,m.anchor]=p(m.children,x,S,E,m.el,m.anchor)},T=({el:m,anchor:x},S,E)=>{let R;for(;m&&m!==x;)R=f(m),r(m,S,E),m=R;r(x,S,E)},P=({el:m,anchor:x})=>{let S;for(;m&&m!==x;)S=f(m),n(m),m=S;n(x)},A=(m,x,S,E,R,B,W,U,G)=>{if(x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),m==null)M(x,S,E,R,B,W,U,G);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),_(m,x,R,B,W,U,G)}finally{I&&I._endPatch()}}},M=(m,x,S,E,R,B,W,U)=>{let G,I;const{props:Z,shapeFlag:q,transition:de,dirs:ve}=m;if(G=m.el=l(m.type,B,Z&&Z.is,Z),q&8?c(G,m.children):q&16&&w(m.children,G,null,E,R,Pl(m,B),W,U),ve&&Jo(m,null,E,"created"),v(G,m,m.scopeId,W,E),Z){for(const Me in Z)Me!=="value"&&!fn(Me)&&i(G,Me,null,Z[Me],B,E);"value"in Z&&i(G,"value",null,Z.value,B),(I=Z.onVnodeBeforeMount)&&Jt(I,E,m)}ve&&Jo(m,null,E,"beforeMount");const we=nb(R,de);we?de.beforeEnter(G):de&&!de.persisted&&(G[lb]=!0),r(G,x,S),((I=Z&&Z.onVnodeMounted)||we||ve)&&ft(()=>{I&&Jt(I,E,m),we&&de.enter(G),ve&&Jo(m,null,E,"mounted")},R)},v=(m,x,S,E,R)=>{if(S&&h(m,S),E)for(let B=0;B{for(let I=G;I{const U=x.el=m.el;let{patchFlag:G,dynamicChildren:I,dirs:Z}=x;G|=m.patchFlag&16;const q=m.props||Oe,de=x.props||Oe;let ve;if(S&&Qo(S,!1),(ve=de.onVnodeBeforeUpdate)&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"beforeUpdate"),S&&Qo(S,!0),I&&(!m.dynamicChildren||m.dynamicChildren.length!==I.length)&&(G=0,W=!1,I=null),(q.innerHTML&&de.innerHTML==null||q.textContent&&de.textContent==null)&&c(U,""),I?H(m.dynamicChildren,I,U,S,E,Pl(x,R),B):W||ue(m,x,U,null,S,E,Pl(x,R),B,!1),G>0){if(G&16)O(U,q,de,S,R);else if(G&2&&q.class!==de.class&&i(U,"class",null,de.class,R),G&4&&i(U,"style",q.style,de.style,R),G&8){const we=x.dynamicProps;for(let Me=0;Me{ve&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"updated")},E)},H=(m,x,S,E,R,B,W)=>{for(let U=0;U{if(x!==S){if(x!==Oe)for(const B in x)!fn(B)&&!(B in S)&&i(m,B,x[B],null,R,E);for(const B in S){if(fn(B))continue;const W=S[B],U=x[B];W!==U&&B!=="value"&&i(m,B,U,W,R,E)}"value"in S&&i(m,"value",x.value,S.value,R)}},$=(m,x,S,E,R,B,W,U,G)=>{const I=x.el=m?m.el:a(""),Z=x.anchor=m?m.anchor:a("");let{patchFlag:q,dynamicChildren:de,slotScopeIds:ve}=x;ve&&(U=U?U.concat(ve):ve),m==null?(r(I,S,E),r(Z,S,E),w(x.children||[],S,Z,R,B,W,U,G)):q>0&&q&64&&de&&m.dynamicChildren&&m.dynamicChildren.length===de.length?(H(m.dynamicChildren,de,S,R,B,W,U),(x.key!=null||R&&x===R.subTree)&&Aa(m,x,!0)):ue(m,x,S,Z,R,B,W,U,G)},K=(m,x,S,E,R,B,W,U,G)=>{x.slotScopeIds=U,m==null?x.shapeFlag&512?R.ctx.activate(x,S,E,W,G):ie(x,S,E,R,B,W,G):be(m,x,G)},ie=(m,x,S,E,R,B,W)=>{const U=m.component=hb(m,E,R);if(qi(m)&&(U.ctx.renderer=L),pb(U,!1,W),U.asyncDep){if(R&&R.registerDep(U,ce,W,B),!m.el){const G=U.subTree=je(Ze);C(null,G,x,S),m.placeholder=G.el}}else ce(U,m,x,S,R,B,W)},be=(m,x,S)=>{const E=x.component=m.component;if(Kg(m,x,S))if(E.asyncDep&&!E.asyncResolved){x.el=m.el,x.placeholder=m.placeholder,J(E,x,S);return}else E.next=x,E.update();else x.el=m.el,x.placeholder=m.placeholder,E.vnode=x},ce=(m,x,S,E,R,B,W)=>{const U=()=>{if(m.isMounted){let{next:q,bu:de,u:ve,parent:we,vnode:Me}=m;{const Et=$u(m);if(Et){q&&(q.el=Me.el,J(m,q,W)),Et.asyncDep.then(()=>{const At=()=>{m.job.flags&8||(R&&R.pendingBranch?ft(At,R):I())};At.flags=48,ft(At,R)});return}}let ze=q,Ge;Qo(m,!1),q?(q.el=Me.el,J(m,q,W)):q=Me,de&&gl(de),(Ge=q.props&&q.props.onVnodeBeforeUpdate)&&Jt(Ge,we,q,Me),Qo(m,!0);const Qe=Ps(m),It=m.subTree;m.subTree=Qe,g(It,Qe,u(It.el||bn(It)),z(It),m,R,B),q.el=Qe.el,ze===null&&Yg(m,Qe.el),ve&&ft(ve,R),(Ge=q.props&&q.props.onVnodeUpdated)&&ft(()=>Jt(Ge,we,q,Me),R)}else{let q;const{el:de,props:ve}=x,{bm:we,m:Me,parent:ze,root:Ge,type:Qe}=m,It=Mr(x);Qo(m,!1),we&&gl(we),!It&&(q=ve&&ve.onVnodeBeforeMount)&&Jt(q,ze,x),Qo(m,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(Qe,m.parent?m.parent.type:void 0);const Et=m.subTree=Ps(m);g(null,Et,S,E,m,R,B),x.el=Et.el}if(Me&&ft(Me,R),!It&&(q=ve&&ve.onVnodeMounted)){const Et=x;ft(()=>Jt(q,ze,Et),R)}(x.shapeFlag&256||ze&&Mr(ze.vnode)&&ze.vnode.shapeFlag&256)&&m.a&&ft(m.a,R),m.isMounted=!0,x=S=E=null}};m.scope.on();const G=m.effect=new _d(U);m.scope.off();const I=m.update=G.run.bind(G),Z=m.job=G.runIfDirty.bind(G);Z.i=m,Z.id=m.uid,G.scheduler=()=>Vi(Z),Qo(m,!0),I()},J=(m,x,S)=>{x.component=m;const E=m.vnode.props;m.vnode=x,m.next=null,Zg(m,x.props,E,S),tb(m,x.children,S),fo(),Kd(m),ho()},ue=(m,x,S,E,R,B,W,U,G=!1)=>{const I=m&&m.children,Z=m?m.shapeFlag:0,q=x.children,{patchFlag:de,shapeFlag:ve}=x;if(de>0){if(de&128){$e(I,q,S,E,R,B,W,U,G);return}else if(de&256){He(I,q,S,E,R,B,W,U,G);return}}ve&8?(Z&16&&Se(I,R,B),q!==I&&c(S,q)):Z&16?ve&16?$e(I,q,S,E,R,B,W,U,G):Se(I,R,B,!0):(Z&8&&c(S,""),ve&16&&w(q,S,E,R,B,W,U,G))},He=(m,x,S,E,R,B,W,U,G)=>{m=m||lr,x=x||lr;const I=m.length,Z=x.length,q=Math.min(I,Z);let de;for(de=0;deZ?Se(m,R,B,!0,!1,q):w(x,S,E,R,B,W,U,G,q)},$e=(m,x,S,E,R,B,W,U,G)=>{let I=0;const Z=x.length;let q=m.length-1,de=Z-1;for(;I<=q&&I<=de;){const ve=m[I],we=x[I]=G?Po(x[I]):no(x[I]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;I++}for(;I<=q&&I<=de;){const ve=m[q],we=x[de]=G?Po(x[de]):no(x[de]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;q--,de--}if(I>q){if(I<=de){const ve=de+1,we=vede)for(;I<=q;)ke(m[I],R,B,!0),I++;else{const ve=I,we=I,Me=new Map;for(I=we;I<=de;I++){const ct=x[I]=G?Po(x[I]):no(x[I]);ct.key!=null&&Me.set(ct.key,I)}let ze,Ge=0;const Qe=de-we+1;let It=!1,Et=0;const At=new Array(Qe);for(I=0;I=Qe){ke(ct,R,B,!0);continue}let N;if(ct.key!=null)N=Me.get(ct.key);else for(ze=we;ze<=de;ze++)if(At[ze-we]===0&&ir(ct,x[ze])){N=ze;break}N===void 0?ke(ct,R,B,!0):(At[N-we]=I+1,N>=Et?Et=N:It=!0,g(ct,x[N],S,null,R,B,W,U,G),Ge++)}const Xr=It?ib(At):lr;for(ze=Xr.length-1,I=Qe-1;I>=0;I--){const ct=we+I,N=x[ct],he=x[ct+1],xe=ct+1{const{el:B,type:W,transition:U,children:G,shapeFlag:I}=m;if(I&6){Le(m.component.subTree,x,S,E);return}if(I&128){m.suspense.move(x,S,E);return}if(I&64){W.move(m,x,S,L);return}if(W===Te){r(B,x,S);for(let q=0;qU.enter(B),R));else{const{leave:q,delayLeave:de,afterLeave:ve}=U,we=()=>{m.ctx.isUnmounted?n(B):r(B,x,S)},Me=()=>{const ze=B._isLeaving||!!B[Wt];B._isLeaving&&B[Wt](!0),U.persisted&&!ze?we():q(B,()=>{we(),ve&&ve()})};de?de(B,we,Me):Me()}else r(B,x,S)},ke=(m,x,S,E=!1,R=!1)=>{const{type:B,props:W,ref:U,children:G,dynamicChildren:I,shapeFlag:Z,patchFlag:q,dirs:de,cacheIndex:ve,memo:we}=m;if((q===-2||I&&I.hasOnce)&&(R=!1),U!=null&&(fo(),mn(U,null,S,m,!0),ho()),ve!=null&&(!m.ctx||m.ctx===x)&&(x.renderCache[ve]=void 0),Z&256&&x.ctx.deactivate(m))return;const Me=Z&1&&de,ze=!Mr(m);let Ge;if(ze&&(Ge=W&&W.onVnodeBeforeUnmount)&&Jt(Ge,x,m),Z&6)vt(m.component,S,E);else{if(Z&128){m.suspense.unmount(S,E);return}Me&&Jo(m,null,x,"beforeUnmount"),Z&64?m.type.remove(m,x,S,L,E):I&&!I.hasOnce&&(B!==Te||q>0&&q&64)?Se(I,x,S,!1,!0):(B===Te&&q&384||!R&&Z&16)&&Se(G,x,S),E&&nt(m)}const Qe=we!=null&&ve==null;(ze&&(Ge=W&&W.onVnodeUnmounted)||Me||Qe)&&ft(()=>{Ge&&Jt(Ge,x,m),Me&&Jo(m,null,x,"unmounted"),Qe&&(m.el=null)},S)},nt=m=>{const{type:x,el:S,anchor:E,transition:R}=m,B=x===Te;if(B&&!R){Je(S,E);return}if(x===ci){P(m),R&&!R.persisted&&R.afterLeave&&R.afterLeave();return}const W=B?Tn(m):m,U=()=>{B?u(S)&&Je(S,E):n(S),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(W&&W.shapeFlag&1&&R&&!R.persisted){const{leave:G,delayLeave:I}=R,Z=W.el,q=()=>G(Z,U);I?I(Z,U,q):q()}else U()},Je=(m,x)=>{let S;for(;m!==x;)S=f(m),n(m),m=S;n(x)},vt=(m,x,S)=>{const{bum:E,scope:R,job:B,subTree:W,um:U,m:G,a:I}=m;_s(G),_s(I),E&&gl(E),R.stop(),B?(B.flags|=8,ke(W,m,x,S)):W&&(W.transition=m.vnode.transition,ke(W,m,x,S)),U&&ft(U,x);const Z=()=>{m.isUnmounted=!0};Z.flags=16,ft(Z,x)},Se=(m,x,S,E=!1,R=!1,B=0)=>{for(let W=B;W{if(m.shapeFlag&6)return z(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=f(m.anchor||m.el),S=x&&x[Qd];return S?f(S):x},ee=(m,x,S)=>{const E=m&&x._vnode?void 0:m&&m.component?m.component.uid:fb();vg(()=>{m==null?x._vnode&&ke(x._vnode,null,null,!0):g(x._vnode||null,m,x,null,null,null,S),x._vnode=m},E)},L={p:g,um:ke,m:Le,r:nt,mt:ie,mc:w,pc:ue,pbc:H,n:z,o:e};return{render:ee,hydrate:void 0,createApp:Ng(ee)}}function Pl({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Qo({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Aa(e,t,o=!1){const r=e.children,n=t.children;if(ge(r)&&ge(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function $u(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$u(t)}function _s(e){if(e)for(let t=0;te.__isSuspense,lb=Symbol("_deferredEnter");function ab(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):bg(e)}const Te=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),ci=Symbol.for("v-stc"),$o=[];let Mt=null;function k(e=!1){$o.push(Mt=e?null:[])}function Ha(){$o.pop(),Mt=$o[$o.length-1]||null}let _n=1;function wi(e,t=!1){_n+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function Iu(e){return e.dynamicChildren=_n>0?Mt||lr:null,Ha(),_n>0&&Mt&&Mt.push(e),e}function pe(e,t,o,r,n,i){return Iu(Pe(e,t,o,r,n,i,!0))}function ae(e,t,o,r,n){return Iu(je(e,t,o,r,n,!0))}function Ro(e){return e?e.__v_isVNode===!0:!1}function ir(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,di=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||ot(e)||ye(e)?{i:lt,r:e,k:t,f:!!o}:e:null);function Pe(e,t=null,o=null,r=0,n=null,i=e===Te?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&di(t),scopeId:Zd,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:lt};return a?(Pi(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ve(o)?8:16),_n>0&&!l&&Mt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Mt.push(s),s}const je=sb;function sb(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===uu)&&(e=Ze),Ro(e)){const a=go(e,t,!0);return o&&Pi(a,o),_n>0&&!i&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(e)]=a:Mt.push(a)),a.patchFlag=-2,a}if(Cb(e)&&(e=e.__vccOpts),t){t=cb(t);let{class:a,style:s}=t;a&&!Ve(a)&&(t.class=mr(a)),Ie(s)&&(Ni(s)&&!ge(s)&&(s=qe({},s)),t.style=Be(s))}const l=Ve(e)?1:Ru(e)?128:Ui(e)?64:Ie(e)?4:ye(e)?2:0;return Pe(e,t,o,r,n,l,i,!0)}function cb(e){return e?Ni(e)?qe({},e):Su(e)?qe({},e[Fu]||e):e:null}function go(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,d=t?Bt(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Au(d),ref:t&&t.ref?o&&i?ge(i)?i.concat(di(t)):[i,di(t)]:di(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return s&&r&&_o(c,s.clone(c)),c}function $n(e=" ",t=0){return je(Nn,null,e,t)}function L_(e,t){const o=je(ci,null,e);return o.staticCount=t,o}function db(e="",t=!1){return t?(k(),ae(Ze,null,e)):je(Ze,null,e)}function no(e){return e==null||typeof e=="boolean"?je(Ze):ge(e)?je(Te,null,e.slice()):Ro(e)?Po(e):je(Nn,null,String(e))}function Po(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}function Pi(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Su(t)?t._ctx=lt:n===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ye(t)){if(r&65){Pi(e,{default:t});return}t={default:t,_ctx:lt},o=32}else t=String(t),r&64?(o=16,t=[$n(t)]):o=8;e.children=t,e.shapeFlag|=o}function Bt(...e){const t={};for(let o=0;omt||lt;let Ti,Rn;{const e=Li(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Ti=t("__VUE_INSTANCE_SETTERS__",o=>mt=o),Rn=t("__VUE_SSR_SETTERS__",o=>In=o)}const jn=e=>{const t=mt;return Ti(e),e.scope.on(),()=>{e.scope.off(),Ti(t)}},$s=()=>{mt&&mt.scope.off(),Ti(null)};function Mu(e){return e.vnode.shapeFlag&4}let In=!1;function pb(e,t=!1,o=!1){t&&Rn(t);const{props:r,children:n}=e.vnode,i=Mu(e);Xg(e,r,i,t),eb(e,n,o||t);const l=i?mb(e,t):void 0;return t&&Rn(!1),l}function mb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fg);const{setup:r}=o;if(r){fo();const n=e.setupContext=r.length>1?bb(e):null,i=jn(e),l=Wn(r,e,0,[e.props,n]),a=xd(l);if(ho(),i(),(a||e.sp)&&!Mr(e)&&nu(e),a){if(l.then($s,$s),t)return l.then(s=>{Rn(!0);try{Rs(e,s,t)}finally{Rn(!1)}}).catch(s=>{ji(s,e,0,void 0,!0),e.ssrRender=(d,c)=>c("")});e.asyncDep=l}else Rs(e,l)}else zu(e)}function Rs(e,t,o){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Gd(t)),zu(e)}function zu(e,t,o){const r=e.type;e.render||(e.render=r.render||co);{const n=jn(e);fo();try{Bg(e)}finally{ho(),n()}}}const Fu=Symbol(),gb={get(e,t){return ht(e,"get",""),t===Fu?e:e[t]}};function bb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,gb),slots:e.slots,emit:e.emit,expose:t}}function Yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gd(Vl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in gn)return gn[o](e)},has(t,o){return o in t||o in gn}})):e.proxy}function vb(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Cb(e){return ye(e)&&"__vccOpts"in e}const X=(e,t)=>fg(e,t,In);function Rt(e,t,o){try{wi(-1);const r=arguments.length;return r===2?Ie(t)&&!ge(t)?Ro(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Ro(o)&&(o=[o]),je(e,t,o))}finally{wi(1)}}const xb="3.5.45";let Jl;const Is=typeof window<"u"&&window.trustedTypes;if(Is)try{Jl=Is.createPolicy("vue",{createHTML:e=>e})}catch{}const Bu=Jl?e=>Jl.createHTML(e):e=>e,yb="http://www.w3.org/2000/svg",Sb="http://www.w3.org/1998/Math/MathML",wo=typeof document<"u"?document:null,As=wo&&wo.createElement("template"),wb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?wo.createElementNS(yb,e):t==="mathml"?wo.createElementNS(Sb,e):o?wo.createElement(e,{is:o}):wo.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{As.innerHTML=Bu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=As.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Fo="transition",en="animation",kr=Symbol("_vtc"),ku={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Du=qe({},tu,ku),Pb=e=>(e.displayName="Transition",e.props=Du,e),br=Pb((e,{slots:t})=>Rt(Eg,Lu(e),t)),er=(e,t=[])=>{ge(e)?e.forEach(o=>o(...t)):e&&e(...t)},Hs=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Lu(e){const t={};for(const $ in e)$ in ku||(t[$]=e[$]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:d=l,appearToClass:c=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(n),g=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:y,onEnterCancelled:T,onLeave:P,onLeaveCancelled:A,onBeforeAppear:M=C,onAppear:v=y,onAppearCancelled:w=T}=t,_=($,K,ie,be)=>{$._enterCancelled=be,Oo($,K?c:a),Oo($,K?d:l),ie&&ie()},H=($,K)=>{$._isLeaving=!1,Oo($,u),Oo($,h),Oo($,f),K&&K()},O=$=>(K,ie)=>{const be=$?v:y,ce=()=>_(K,$,ie);er(be,[K,ce]),Ms(()=>{Oo(K,$?s:i),to(K,$?c:a),Hs(be)||zs(K,r,g,ce)})};return qe(t,{onBeforeEnter($){er(C,[$]),to($,i),to($,l)},onBeforeAppear($){er(M,[$]),to($,s),to($,d)},onEnter:O(!1),onAppear:O(!0),onLeave($,K){$._isLeaving=!0;const ie=()=>H($,K);to($,u),$._enterCancelled?(to($,f),Ql($)):(Ql($),to($,f)),Ms(()=>{$._isLeaving&&(Oo($,u),to($,h),Hs(P)||zs($,r,b,ie))}),er(P,[$,ie])},onEnterCancelled($){_($,!1,void 0,!0),er(T,[$])},onAppearCancelled($){_($,!0,void 0,!0),er(w,[$])},onLeaveCancelled($){H($),er(A,[$])}})}function Tb(e){if(e==null)return null;if(Ie(e))return[Tl(e.enter),Tl(e.leave)];{const t=Tl(e);return[t,t]}}function Tl(e){return Am(e)}function to(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[kr]||(e[kr]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[kr];o&&(o.delete(t),o.size||(e[kr]=void 0))}function Ms(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eb=0;function zs(e,t,o,r){const n=e._endId=++Eb,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Ou(e,t);if(!l)return r();const d=l+"end";let c=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++c>=s&&u()};setTimeout(()=>{c(o[p]||"").split(", "),n=r(`${Fo}Delay`),i=r(`${Fo}Duration`),l=Fs(n,i),a=r(`${en}Delay`),s=r(`${en}Duration`),d=Fs(a,s);let c=null,u=0,f=0;t===Fo?l>0&&(c=Fo,u=l,f=i.length):t===en?d>0&&(c=en,u=d,f=s.length):(u=Math.max(l,d),c=u>0?l>d?Fo:en:null,f=c?c===Fo?i.length:s.length:0);const h=c===Fo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Fo}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:h}}function Fs(e,t){for(;e.lengthBs(o)+Bs(e[r])))}function Bs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ql(e){return(e?e.ownerDocument:document).body.offsetHeight}function _b(e,t,o){const r=e[kr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ei=Symbol("_vod"),Ma=Symbol("_vsh"),ks={name:"show",beforeMount(e,{value:t},{transition:o}){e[Ei]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),tn(e,!0),r.enter(e)):r.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[Ei]:"none",e[Ma]=!t}const $b=Symbol(""),Rb=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const r=e.style,n=Ve(o);let i=!1;if(o&&!n){if(t)if(Ve(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&cn(r,a,"")}else for(const l in t)o[l]==null&&cn(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?Hb(e,l,!Ve(t)&&t?t[l]:void 0,a)||cn(r,l,a):cn(r,l,"")}}else if(n){if(t!==o){const l=r[$b];l&&(o+=";"+l),r.cssText=o,i=Rb.test(o)}}else t&&e.removeAttribute("style");Ei in e&&((!n||t!==o)&&(e[Ei]=i?r.display:""),e[Ma]&&(r.display="none"))}const Qn=/\s*!important$/;function cn(e,t,o){if(ge(o))o.forEach(r=>cn(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Qn.test(o)?e.setProperty(t,o.replace(Qn,""),"important"):e.setProperty(t,o);else{const r=Ab(e,t);Qn.test(o)?e.setProperty(Cr(r),o.replace(Qn,""),"important"):e[r]=o}}const Ds=["Webkit","Moz","ms"],El={};function Ab(e,t){const o=El[t];if(o)return o;let r=wt(t);if(r!=="filter"&&r in e)return El[t]=r;r=Di(r);for(let n=0;n_l||(Lb.then(()=>_l=0),_l=Date.now());function Wb(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(ge(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nb=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?_b(e,r,l):t==="style"?Ib(e,o,r):zi(t)?Fi(t)||Fb(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jb(e,t,r,l))?(Ws(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Os(e,t,r,l,i,t!=="value")):e._isVueCE&&(Vb(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ve(r)))?Ws(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Os(e,t,r,l))};function jb(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&js(t)&&ye(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return js(t)&&Ve(o)?!1:t in e}function Vb(e,t){const o=e._def.props;if(!o)return!1;const r=wt(t);return Array.isArray(o)?o.some(n=>wt(n)===r):Object.keys(o).some(n=>wt(n)===r)}const Wu=new WeakMap,Nu=new WeakMap,_i=Symbol("_moveCb"),Vs=Symbol("_enterCb"),ea=new WeakMap,Gb=e=>(delete e.props.mode,e),Ub=Gb({name:"TransitionGroup",props:qe({},Du,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Wr(),r=eu();let n,i,l,a;const s=()=>(a===void 0&&(a=n.length>0&&ev(n[0].el,o.vnode.el,Gs(e))),a);return su(()=>{if(ea.delete(o),!s()){n=[],l=void 0;return}const d=Gs(e);n.forEach(Kb);const c=l&&Qb(l,o.vnode.el);l=void 0,n.forEach(f=>Yb(f,c));const u=n.filter(Xb);Ql(o.vnode.el),u.forEach(f=>{const h=f.el,p=h.style;to(h,d),p.transform=p.webkitTransform=p.transitionDuration="";const g=h[_i]=b=>{b&&b.target!==h||(!b||b.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",g),h[_i]=null,Oo(h,d))};h.addEventListener("transitionend",g)}),n=[]}),()=>{const d=_e(e),c=Lu(d);let u=d.tag||Te;if(n=[],a=void 0,i)for(let f=0;fr.willMove()&&r.item.contains(t));return o&&Xi(o.item,o)}function ev(e,t,o){const r=e.cloneNode(),n=e[kr];n&&n.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=Ou(r);return i.removeChild(r),l}const tv=["ctrl","shift","alt","meta"],ov={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tv.some(o=>e[`${o}Key`]&&!t.includes(o))},O_=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const t=nv().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=av(r);if(!n)return;const i=t._component;!ye(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,lv(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function lv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function av(e){return Ve(e)?document.querySelector(e):e}function sv(e){let t=".",o="__",r="--",n;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){n=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(C){g=C.bem.b,b=C.bem.els,C.bem.els=null},after(C){C.bem.b=g,C.bem.els=b},$({context:C,props:y}){return p=typeof p=="string"?p:p({context:C,props:y}),C.bem.b=p,`${y?.bPrefix||t}${C.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:C}){return p=typeof p=="string"?p:p({context:b,props:C}),b.bem.els=p.split(",").map(y=>y.trim()),b.bem.els.map(y=>`${C?.bPrefix||t}${b.bem.b}${o}${y}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=p.split(",").map(P=>P.trim());function y(P){return C.map(A=>`&${b?.bPrefix||t}${g.bem.b}${P!==void 0?`${o}${P}`:""}${r}${A}`).join(", ")}const T=g.bem.els;return T!==null?y(T[0]):y()}}}function d(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=g.bem.els;return`&:not(${b?.bPrefix||t}${g.bem.b}${C!==null&&C.length>0?`${o}${C[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>n(l(p[0]),p[1],p[2])),cE:((...p)=>n(a(p[0]),p[1],p[2])),cM:((...p)=>n(s(p[0]),p[1],p[2])),cNotM:((...p)=>n(d(p[0]),p[1],p[2]))}),i}function cv(e){let t=0;for(let o=0;o{let n=cv(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function fv(e,t){const o=[];return t.split(ju).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function hv(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=uv(t,o):t=fv(t,o))}),t.join(", ").replace(dv," ")}function qs(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function pv(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ei(e){return e?/^\s*@(s|m)/.test(e):!1}const mv=/[A-Z]/g;function Vu(e){return e.replace(mv,t=>"-"+t.toLowerCase())}function gv(e,t=" "){return typeof e=="object"&&e!==null?` { `+Object.entries(e).map(o=>t+` ${Vu(o[0])}: ${o[1]};`).join(` `)+` @@ -813,4 +813,4 @@ ${t} transform: translate(${t}, 0); `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: translate(0, 0); - `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-BXa3gqh3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-ekQZ1QYf.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-BtBozJ6v.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-X3e6akRp.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,3,30,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-D-5LxqQb.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-CiNT7cDx.js"),__vite__mapDeps([36,27,13,4,2,1,24,37,30,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-bBDSRDwN.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-fhfMIyM2.js"),__vite__mapDeps([41,1,2,27,13,4,37,5,30,16,17,29,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,eP as b0,c2 as b1,Kt as b2,nl as b3,Nc as b4,Hi as b5,ja as b6,Wa as b7,Na as b8,An as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,wp as ba,Mi as bb,Ku as bc,Rv as bd,DS as be,Va as bf,Kr as bg,hi as bh,J_ as bi,hT as bj,Io as bk,X_ as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; + `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-BctFe39X.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-BWuJr4AI.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-CAYRlNMN.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-Dpzh-nNm.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,3,30,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-SRhryImQ.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-C32h1q4d.js"),__vite__mapDeps([36,27,13,4,2,1,24,37,30,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-CSQ6hh8U.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-Dcoelb-a.js"),__vite__mapDeps([41,1,2,27,13,4,37,5,30,16,17,29,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,eP as b0,c2 as b1,Kt as b2,nl as b3,Nc as b4,Hi as b5,ja as b6,Wa as b7,Na as b8,An as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,wp as ba,Mi as bb,Ku as bc,Rv as bd,DS as be,Va as bf,Kr as bg,hi as bh,J_ as bi,hT as bj,Io as bk,X_ as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Crtjgplw.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bqfjqsa8.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Crtjgplw.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bqfjqsa8.js index 72f9ffe6..413768ed 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Crtjgplw.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bqfjqsa8.js @@ -1,2 +1,2 @@ -import{ao as a,aV as t,ap as r,a_ as i}from"./index-FGi6cKHs.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` +import{ao as a,aV as t,ap as r,a_ as i}from"./index-Dewca6JL.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` `)}const p=s=>r("/v1/streamers",s),u=s=>t("/v1/streamers",s),d=s=>i(`/v1/streamers/${s}`),g=s=>t(`/v1/streamers/${s}/pause`),$=s=>`/v1/streamers/${s}/cover`;export{m as a,p as b,$ as c,o as d,d as e,c as g,l,v as p,g as t,u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-Cc7HI9yh.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CcF_TVW8.js similarity index 76% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-Cc7HI9yh.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CcF_TVW8.js index 3771e6dd..5f6bf697 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-Cc7HI9yh.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CcF_TVW8.js @@ -1 +1 @@ -import{L as f,j as e}from"./index-FGi6cKHs.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; +import{L as f,j as e}from"./index-Dewca6JL.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DzcW9fCu.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DoP8RQDr.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DzcW9fCu.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DoP8RQDr.js index c8d999c8..86c7c1eb 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DzcW9fCu.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DoP8RQDr.js @@ -1,4 +1,4 @@ -import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b2 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-FGi6cKHs.js";import{f as Oe}from"./_plugin-vue_export-helper-Cf-2z3Ev.js";import{u as Mn,a as An}from"./use-compitable-Cc7HI9yh.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` +import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b2 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-Dewca6JL.js";import{f as Oe}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as Mn,a as An}from"./use-compitable-CcF_TVW8.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html index 194703c3..86368b19 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html @@ -5,7 +5,7 @@ Live Stream Recorder - + diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs index 727de047..430f8659 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs @@ -6,13 +6,13 @@ import { join } from 'node:path'; import { Readable, Transform } from 'node:stream'; import { pipeline } from 'node:stream/promises'; -// 下载源常量:Release 发布后由 Bunny 填真值。本轮为占位值且关闭下载按钮(预期状态)。 -export const ENGINE_DOWNLOAD_CONFIGURED = false; +// 下载源常量:Release engine-v1.1.3 已发布,以下为真值。 +export const ENGINE_DOWNLOAD_CONFIGURED = true; export const DOWNLOAD = Object.freeze({ - url: 'https://github.com/charlesnty612/live-stream-recorder/releases/download/PENDING/engine-windows-x64.exe', - sha256: '0000000000000000000000000000000000000000000000000000000000000000', - sizeBytes: 100968448, - version: 'PENDING', + url: 'https://github.com/charlesnty612/live-stream-recorder/releases/download/engine-v1.1.3/engine-windows-x64.exe', + sha256: '1a4f9ee255b396b84991a9ea3088f66909d6199916bcdbee546fbfdfc1945c20', + sizeBytes: 100927488, + version: 'engine-v1.1.3', }); const RESERVE_BYTES = 500 * 1024 * 1024; From e9c316747ee9cf7ed14a7288ec6830c869da1cf2 Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 13:55:07 +0800 Subject: [PATCH 04/10] Sync live-stream-recorder payload with explicit redownload build - Rebuild client bundle from source commit f66e6bc: ready-state redownload action replaces the fake update-check button; engine.mjs gains force download with atomic replace + rollback; proxy.mjs gains POST /miniapp/engine/redownload. - Drop 32 stale hashed client assets from the previous build and add the new ones; package stays 69 files / 1,240,598 bytes. All 59 payload files match dist-miniapp byte-for-byte (SHA-256), zero stale. - README.md: state --fast 11/11 and --full 14/14 separately instead of a single gate figure. Community check: 0 errors, 2 pre-existing warnings (NODE_RESERVED_ROUTE for the Host-reserved /__mavis/ prefix; NODE_UNGUARDED_SERVER for sidecar.mjs net.createServer used only by freePort; actual listen is node:http in server.mjs). No push, no PR, no community publish. --- .../live-stream-recorder/README.md | 2 +- ...ine-RKRa1cGv.js => AddOutline-BBW-Am9Z.js} | 8 ++--- ...Shell-CAYRlNMN.js => AppShell-scECmWLS.js} | 2 +- ...-Df5112cP.js => CheckboxGroup-DIEr6wY4.js} | 2 +- ...nl.js => CloudDownloadOutline-B3mrN2nS.js} | 2 +- ...tSM.js => DocumentTextOutline-ejgmikUf.js} | 2 +- ...xvLxbyx.js => DownloadOutline-E2iASfAS.js} | 2 +- ...ate-X3-6UyRF.js => EmptyState-DLXMt06R.js} | 2 +- ...ne-C3cZd2xG.js => FilmOutline-BiokjmgW.js} | 2 +- ...2QCIP.js => GitCompareOutline-CIgdGm-f.js} | 2 +- .../{Input-v4sTQ7Pz.js => Input-1zXREyVM.js} | 2 +- ...View-BctFe39X.js => LoginView-BjbMAX6a.js} | 2 +- ...e-B76LUJRI.js => PulseOutline-CDhfZ1-d.js} | 2 +- ...SRhryImQ.js => RecordingsView-DQJVOvaX.js} | 2 +- ...AM6fn2f1.js => RefreshOutline-D9KhQzcL.js} | 2 +- ...View-C32h1q4d.js => RelayView-I_oin3xl.js} | 2 +- ...-r0tEsj-I.js => SearchOutline-atP4ikMv.js} | 2 +- ...{Select-Cl5vTXvX.js => Select-CtC43ppV.js} | 2 +- ...uJr4AI.js => ServiceErrorView-BKOOfxKt.js} | 2 +- .../client/assets/SettingsView-7xwJcQmS.js | 3 ++ .../client/assets/SettingsView-CiZee7qJ.css | 1 + .../client/assets/SettingsView-Dcoelb-a.js | 3 -- .../client/assets/SettingsView-T1R_3ITH.css | 1 - ...CSQ6hh8U.js => ShortVideoView-ByV6k06l.js} | 2 +- .../{Spin-BbqDP5dl.js => Spin-D2w1FlaT.js} | 2 +- ...-Dpzh-nNm.js => StreamersView-BS7njuEF.js} | 4 +-- ...{Switch-BcQ8noQd.js => Switch-CM0aqR3N.js} | 8 ++--- ...iwVCUcb.js => VideocamOutline-Cf83Ptp8.js} | 2 +- ... => _plugin-vue_export-helper-BhKLKalr.js} | 2 +- .../miniapp/client/assets/engine-Uo85WSlp.js | 1 - .../client/assets/engine-state-BXjEZp_d.js | 1 - .../client/assets/engine-state-C08MtSql.js | 1 + .../miniapp/client/assets/engine-wF7co_0F.js | 1 + .../{index-Dewca6JL.js => index-IeQIGfOC.js} | 4 +-- ...mers-Bqfjqsa8.js => streamers-959wQihJ.js} | 2 +- ...CcF_TVW8.js => use-compitable-D5WZISuP.js} | 2 +- ...ge-DoP8RQDr.js => use-message-DtvhZdQK.js} | 2 +- .../miniapp/client/index.html | 2 +- .../miniapp/node/engine.mjs | 36 ++++++++++++++++--- .../miniapp/node/proxy.mjs | 7 ++++ 40 files changed, 83 insertions(+), 48 deletions(-) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AddOutline-RKRa1cGv.js => AddOutline-BBW-Am9Z.js} (75%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AppShell-CAYRlNMN.js => AppShell-scECmWLS.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CheckboxGroup-Df5112cP.js => CheckboxGroup-DIEr6wY4.js} (95%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CloudDownloadOutline-i6vXE3nl.js => CloudDownloadOutline-B3mrN2nS.js} (92%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DocumentTextOutline-YbRT-tSM.js => DocumentTextOutline-ejgmikUf.js} (97%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DownloadOutline-DxvLxbyx.js => DownloadOutline-E2iASfAS.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{EmptyState-X3-6UyRF.js => EmptyState-DLXMt06R.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{FilmOutline-C3cZd2xG.js => FilmOutline-BiokjmgW.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{GitCompareOutline-B9U2QCIP.js => GitCompareOutline-CIgdGm-f.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Input-v4sTQ7Pz.js => Input-1zXREyVM.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{LoginView-BctFe39X.js => LoginView-BjbMAX6a.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{PulseOutline-B76LUJRI.js => PulseOutline-CDhfZ1-d.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RecordingsView-SRhryImQ.js => RecordingsView-DQJVOvaX.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RefreshOutline-AM6fn2f1.js => RefreshOutline-D9KhQzcL.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RelayView-C32h1q4d.js => RelayView-I_oin3xl.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{SearchOutline-r0tEsj-I.js => SearchOutline-atP4ikMv.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Select-Cl5vTXvX.js => Select-CtC43ppV.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ServiceErrorView-BWuJr4AI.js => ServiceErrorView-BKOOfxKt.js} (94%) create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-7xwJcQmS.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CiZee7qJ.css delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Dcoelb-a.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-T1R_3ITH.css rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ShortVideoView-CSQ6hh8U.js => ShortVideoView-ByV6k06l.js} (97%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Spin-BbqDP5dl.js => Spin-D2w1FlaT.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{StreamersView-Dpzh-nNm.js => StreamersView-BS7njuEF.js} (97%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Switch-BcQ8noQd.js => Switch-CM0aqR3N.js} (76%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{VideocamOutline-EiwVCUcb.js => VideocamOutline-Cf83Ptp8.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{_plugin-vue_export-helper-C8KY-gaw.js => _plugin-vue_export-helper-BhKLKalr.js} (96%) delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-Uo85WSlp.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-BXjEZp_d.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C08MtSql.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-wF7co_0F.js rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{index-Dewca6JL.js => index-IeQIGfOC.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{streamers-Bqfjqsa8.js => streamers-959wQihJ.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-compitable-CcF_TVW8.js => use-compitable-D5WZISuP.js} (76%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-message-DoP8RQDr.js => use-message-DtvhZdQK.js} (99%) diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md index 27038f1d..5c7eea17 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.md +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -25,7 +25,7 @@ On the **Settings** page choose one of two modes: - MiniMax Code 3.1.23 (exe 3.1.23.240) on Microsoft Windows 11 Pro (build 26200) x64. The package declares `engines.mcode: ">=3.1.20"` and `permissions`, which first require that client version. - Client acceptance (2026-12-05, FilePanel Browser) exercised: cold start and readiness in 400-465 ms; Host-reserved `/__mavis/` returning 401 with no SPA fallback; private-route 404 interception; loopback-only network activity with zero external requests; the 584 px narrow-screen layout and both themes; the Settings diagnostics and notification permission controls. Two defects found during acceptance were fixed and re-verified. No recording engine or live stream source was available, so engine-dependent behavior was not exercised at runtime. -- Source-project structural gates: 11/11. Community-repository `npm run check` result is recorded in the pull request. +- Source-project structural gates: `--fast` 11/11 and `--full` 14/14. Community-repository `npm run check` result is recorded in the pull request. - Not verified at runtime: real recording, process-tree teardown with a live engine, multi-session / sleep recovery, remote 401 handling, large-file range playback, and local-file open routing. See the pull request for the full list. ## Data & access diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-RKRa1cGv.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-BBW-Am9Z.js similarity index 75% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-RKRa1cGv.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-BBW-Am9Z.js index 725cf883..a591a606 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-RKRa1cGv.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-BBW-Am9Z.js @@ -1,9 +1,9 @@ -import{W as se,a$ as Xe,L as Ue,A as et,aS as tt,b0 as rt,O as Ye,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b1 as Je,Z as Se,r as G,aJ as nt,a7 as ve,j as F,a as Ae,n as qe,e as it,b2 as at,T as st,b3 as ze,ae as be,b as ot,ac as lt,F as Le,Q as ft,_ as Ve,af as K,b4 as dt}from"./index-Dewca6JL.js";import{f as Fe}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{g as Ze}from"./use-message-DoP8RQDr.js";function ct(n,e,t){const r=se(n,null);if(r===null)return;const i=Xe()?.proxy;Ue(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}function ir(){const n=se(rt,null);return n===null&&tt("use-dialog","No outer founded."),n}const ce=Ye("n-form"),Qe=Ye("n-form-item-insts");var ut=N("form",[B("inline",` +import{W as de,a$ as Xe,L as Ye,A as et,O as Je,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b0 as Ke,Z as Se,r as G,aJ as tt,a7 as ve,j as F,a as Ae,n as qe,e as rt,b1 as nt,T as it,b2 as ze,ae as be,b as at,ac as st,F as Le,Q as ot,_ as Ve,af as U,b3 as lt}from"./index-IeQIGfOC.js";import{f as Fe}from"./_plugin-vue_export-helper-BhKLKalr.js";import{g as Ze}from"./use-message-DtvhZdQK.js";function ft(n,e,t){const r=de(n,null);if(r===null)return;const i=Xe()?.proxy;Ye(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}const ce=Je("n-form"),Qe=Je("n-form-item-insts");var dt=N("form",[B("inline",` width: 100%; display: inline-flex; align-items: flex-start; align-content: space-around; - `,[N("form-item",{width:"auto",marginRight:"18px"},[ie("&:last-child",{marginRight:0})])])]);const mt=["onSubmit"],gt={...xe.props,inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:n=>{n.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object},Ce=()=>!0;function ht(n){return n===void 0?{paths:null,shouldRuleBeApplied:Ce}:typeof n=="function"?{paths:null,shouldRuleBeApplied:n}:Array.isArray(n)?{paths:n,shouldRuleBeApplied:Ce}:n}var ar=Me({name:"Form",props:gt,setup(n){const{mergedClsPrefixRef:e}=Ie(n);xe("Form","-form",ut,Je,n,e);const t={},r=G(void 0),i=l=>{const c=r.value;(c===void 0||l>=c)&&(r.value=l)};function a(){for(const l of Re(t)){const c=t[l];for(const m of c)m.invalidateLabelWidth?.()}}async function s(l,c){const{paths:m,shouldRuleBeApplied:d}=ht(c);return await new Promise((p,A)=>{const q=[];for(const u of Re(t)){if(m!==null&&!m.includes(u))continue;const v=t[u];for(const f of v)f.path&&q.push(f.internalValidate(null,d))}Promise.all(q).then(u=>{const v=u.some(g=>!g.valid),f=[],P=[];u.forEach(g=>{g.errors?.length&&f.push(g.errors),g.warnings?.length&&P.push(g.warnings)}),l&&l(f.length?f:void 0,{warnings:P.length?P:void 0}),v?A(f.length?f:void 0):p({warnings:P.length?P:void 0})})})}function o(){for(const l of Re(t)){const c=t[l];for(const m of c)m.restoreValidation()}}return Se(ce,{props:n,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:i}),Se(Qe,{formItems:t}),Object.assign({validate:s,restoreValidation:o,invalidateLabelWidth:a},{mergedClsPrefix:e})},render(){const{mergedClsPrefix:n}=this;return O(),$("form",{class:I([`${n}-form`,this.inline&&`${n}-form--inline`]),onSubmit:this.onSubmit},[_(()=>this.$slots.default?.())],42,mt)}});const{cubicBezierEaseInOut:We}=nt;function pt({name:n="fade-down",fromOffset:e="-4px",enterDuration:t=".3s",leaveDuration:r=".3s",enterCubicBezier:i=We,leaveCubicBezier:a=We}={}){return[ie(`&.${n}-transition-enter-from, &.${n}-transition-leave-to`,{opacity:0,transform:`translateY(${e})`}),ie(`&.${n}-transition-enter-to, &.${n}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),ie(`&.${n}-transition-leave-active`,{transition:`opacity ${r} ${a}, transform ${r} ${a}`}),ie(`&.${n}-transition-enter-active`,{transition:`opacity ${t} ${i}, transform ${t} ${i}`})]}var vt=N("form-item",` + `,[N("form-item",{width:"auto",marginRight:"18px"},[ie("&:last-child",{marginRight:0})])])]);const ct=["onSubmit"],ut={...xe.props,inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:n=>{n.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object},Ce=()=>!0;function mt(n){return n===void 0?{paths:null,shouldRuleBeApplied:Ce}:typeof n=="function"?{paths:null,shouldRuleBeApplied:n}:Array.isArray(n)?{paths:n,shouldRuleBeApplied:Ce}:n}var rr=Me({name:"Form",props:ut,setup(n){const{mergedClsPrefixRef:e}=Ie(n);xe("Form","-form",dt,Ke,n,e);const t={},r=G(void 0),i=l=>{const c=r.value;(c===void 0||l>=c)&&(r.value=l)};function a(){for(const l of Re(t)){const c=t[l];for(const m of c)m.invalidateLabelWidth?.()}}async function s(l,c){const{paths:m,shouldRuleBeApplied:d}=mt(c);return await new Promise((p,A)=>{const q=[];for(const u of Re(t)){if(m!==null&&!m.includes(u))continue;const v=t[u];for(const f of v)f.path&&q.push(f.internalValidate(null,d))}Promise.all(q).then(u=>{const v=u.some(g=>!g.valid),f=[],P=[];u.forEach(g=>{g.errors?.length&&f.push(g.errors),g.warnings?.length&&P.push(g.warnings)}),l&&l(f.length?f:void 0,{warnings:P.length?P:void 0}),v?A(f.length?f:void 0):p({warnings:P.length?P:void 0})})})}function o(){for(const l of Re(t)){const c=t[l];for(const m of c)m.restoreValidation()}}return Se(ce,{props:n,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:i}),Se(Qe,{formItems:t}),Object.assign({validate:s,restoreValidation:o,invalidateLabelWidth:a},{mergedClsPrefix:e})},render(){const{mergedClsPrefix:n}=this;return O(),$("form",{class:I([`${n}-form`,this.inline&&`${n}-form--inline`]),onSubmit:this.onSubmit},[_(()=>this.$slots.default?.())],42,ct)}});const{cubicBezierEaseInOut:We}=tt;function gt({name:n="fade-down",fromOffset:e="-4px",enterDuration:t=".3s",leaveDuration:r=".3s",enterCubicBezier:i=We,leaveCubicBezier:a=We}={}){return[ie(`&.${n}-transition-enter-from, &.${n}-transition-leave-to`,{opacity:0,transform:`translateY(${e})`}),ie(`&.${n}-transition-enter-to, &.${n}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),ie(`&.${n}-transition-leave-active`,{transition:`opacity ${r} ${a}, transform ${r} ${a}`}),ie(`&.${n}-transition-enter-active`,{transition:`opacity ${t} ${i}, transform ${t} ${i}`})]}var ht=N("form-item",` display: grid; line-height: var(--n-line-height); `,[N("form-item-label",` @@ -96,7 +96,7 @@ import{W as se,a$ as Xe,L as Ue,A as et,aS as tt,b0 as rt,O as Ye,a2 as N,a6 as transform-origin: top left; `,[ie("&:not(:empty)",` padding: var(--n-feedback-padding); - `),N("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[B("warning",{color:"var(--n-feedback-text-color-warning)"}),B("error",{color:"var(--n-feedback-text-color-error)"}),pt({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);function bt(n){const e=se(ce,null),{mergedComponentPropsRef:t}=Ie(n);return{mergedSize:F(()=>{if(n.size!==void 0)return n.size;if(e?.props.size!==void 0)return e.props.size;const r=t?.value?.Form?.size;return r||"medium"})}}function yt(n){const e=se(ce,null),t=F(()=>{const{labelPlacement:d}=n;return d!==void 0?d:e?.props.labelPlacement?e.props.labelPlacement:"top"}),r=F(()=>t.value==="left"&&(n.labelWidth==="auto"||e?.props.labelWidth==="auto")),i=F(()=>{if(t.value==="top")return;const{labelWidth:d}=n;if(d!==void 0&&d!=="auto")return Fe(d);if(r.value){const p=e?.maxChildLabelWidthRef.value;return p!==void 0?Fe(p):void 0}if(e?.props.labelWidth!==void 0)return Fe(e.props.labelWidth)}),a=F(()=>{const{labelAlign:d}=n;if(d)return d;if(e?.props.labelAlign)return e.props.labelAlign}),s=F(()=>[n.labelProps?.style,n.labelStyle,{width:i.value}]),o=F(()=>{const{showRequireMark:d}=n;return d!==void 0?d:e?.props.showRequireMark}),l=F(()=>{const{requireMarkPlacement:d}=n;return d!==void 0?d:e?.props.requireMarkPlacement||"right"}),c=G(!1),m=G(!1);return{validationErrored:c,validationWarned:m,mergedLabelStyle:s,mergedLabelPlacement:t,mergedLabelAlign:a,mergedShowRequireMark:o,mergedRequireMarkPlacement:l,mergedValidationStatus:F(()=>{const{validationStatus:d}=n;if(d!==void 0)return d;if(c.value)return"error";if(m.value)return"warning"}),mergedShowFeedback:F(()=>{const{showFeedback:d}=n;return d!==void 0?d:e?.props.showFeedback!==void 0?e.props.showFeedback:!0}),mergedShowLabel:F(()=>{const{showLabel:d}=n;return d!==void 0?d:e?.props.showLabel!==void 0?e.props.showLabel:!0}),isAutoLabelWidth:r}}function wt(n){const e=se(ce,null),t=F(()=>{const{rulePath:a}=n;if(a!==void 0)return a;const{path:s}=n;if(s!==void 0)return s}),r=F(()=>{const a=[],{rule:s}=n;if(s!==void 0&&(Array.isArray(s)?a.push(...s):a.push(s)),e){const{rules:o}=e.props,{value:l}=t;if(o!==void 0&&l!==void 0){const c=Ze(o,l);c!==void 0&&(Array.isArray(c)?a.push(...c):a.push(c))}}return a}),i=F(()=>r.value.some(a=>a.required));return{mergedRules:r,mergedRequired:F(()=>i.value||n.required)}}function X(){return X=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function we(n,e,t){return kt()?we=Reflect.construct.bind():we=function(i,a,s){var o=[null];o.push.apply(o,a);var l=Function.bind.apply(i,o),c=new l;return s&&de(c,s.prototype),c},we.apply(null,arguments)}function Rt(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function $e(n){var e=typeof Map=="function"?new Map:void 0;return $e=function(r){if(r===null||!Rt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return we(r,arguments,Oe(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),de(i,r)},$e(n)}var qt=/%[sdj%]/g,Ft=function(){};function _e(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function z(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=a)return o;switch(o){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return o}});return s}return n}function Pt(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function R(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||Pt(e)&&typeof n=="string"&&!n)}function St(n,e,t){var r=[],i=0,a=n.length;function s(o){r.push.apply(r,o||[]),i++,i===a&&t(r)}n.forEach(function(o){e(o,s)})}function Be(n,e,t){var r=0,i=n.length;function a(s){if(s&&s.length){t(s);return}var o=r;r=r+1,o{if(n.size!==void 0)return n.size;if(e?.props.size!==void 0)return e.props.size;const r=t?.value?.Form?.size;return r||"medium"})}}function vt(n){const e=de(ce,null),t=F(()=>{const{labelPlacement:d}=n;return d!==void 0?d:e?.props.labelPlacement?e.props.labelPlacement:"top"}),r=F(()=>t.value==="left"&&(n.labelWidth==="auto"||e?.props.labelWidth==="auto")),i=F(()=>{if(t.value==="top")return;const{labelWidth:d}=n;if(d!==void 0&&d!=="auto")return Fe(d);if(r.value){const p=e?.maxChildLabelWidthRef.value;return p!==void 0?Fe(p):void 0}if(e?.props.labelWidth!==void 0)return Fe(e.props.labelWidth)}),a=F(()=>{const{labelAlign:d}=n;if(d)return d;if(e?.props.labelAlign)return e.props.labelAlign}),s=F(()=>[n.labelProps?.style,n.labelStyle,{width:i.value}]),o=F(()=>{const{showRequireMark:d}=n;return d!==void 0?d:e?.props.showRequireMark}),l=F(()=>{const{requireMarkPlacement:d}=n;return d!==void 0?d:e?.props.requireMarkPlacement||"right"}),c=G(!1),m=G(!1);return{validationErrored:c,validationWarned:m,mergedLabelStyle:s,mergedLabelPlacement:t,mergedLabelAlign:a,mergedShowRequireMark:o,mergedRequireMarkPlacement:l,mergedValidationStatus:F(()=>{const{validationStatus:d}=n;if(d!==void 0)return d;if(c.value)return"error";if(m.value)return"warning"}),mergedShowFeedback:F(()=>{const{showFeedback:d}=n;return d!==void 0?d:e?.props.showFeedback!==void 0?e.props.showFeedback:!0}),mergedShowLabel:F(()=>{const{showLabel:d}=n;return d!==void 0?d:e?.props.showLabel!==void 0?e.props.showLabel:!0}),isAutoLabelWidth:r}}function bt(n){const e=de(ce,null),t=F(()=>{const{rulePath:a}=n;if(a!==void 0)return a;const{path:s}=n;if(s!==void 0)return s}),r=F(()=>{const a=[],{rule:s}=n;if(s!==void 0&&(Array.isArray(s)?a.push(...s):a.push(s)),e){const{rules:o}=e.props,{value:l}=t;if(o!==void 0&&l!==void 0){const c=Ze(o,l);c!==void 0&&(Array.isArray(c)?a.push(...c):a.push(c))}}return a}),i=F(()=>r.value.some(a=>a.required));return{mergedRules:r,mergedRequired:F(()=>i.value||n.required)}}function X(){return X=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function we(n,e,t){return wt()?we=Reflect.construct.bind():we=function(i,a,s){var o=[null];o.push.apply(o,a);var l=Function.bind.apply(i,o),c=new l;return s&&fe(c,s.prototype),c},we.apply(null,arguments)}function xt(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function $e(n){var e=typeof Map=="function"?new Map:void 0;return $e=function(r){if(r===null||!xt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return we(r,arguments,Oe(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),fe(i,r)},$e(n)}var kt=/%[sdj%]/g,Rt=function(){};function _e(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function z(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=a)return o;switch(o){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return o}});return s}return n}function qt(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function R(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||qt(e)&&typeof n=="string"&&!n)}function Ft(n,e,t){var r=[],i=0,a=n.length;function s(o){r.push.apply(r,o||[]),i++,i===a&&t(r)}n.forEach(function(o){e(o,s)})}function Be(n,e,t){var r=0,i=n.length;function a(s){if(s&&s.length){t(s);return}var o=r;r=r+1,o()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},le={integer:function(e){return le.number(e)&&parseInt(e,10)===e},float:function(e){return le.number(e)&&!le.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!le.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(He.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(jt())},hex:function(e){return typeof e=="string"&&!!e.match(He.hex)}},Mt=function(e,t,r,i,a){if(e.required&&t===void 0){Ge(e,t,r,i,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;s.indexOf(o)>-1?le[o](t)||i.push(z(a.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&i.push(z(a.messages.types[o],e.fullField,e.type))},It=function(e,t,r,i,a){var s=typeof e.len=="number",o=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=t,d=null,p=typeof t=="number",A=typeof t=="string",q=Array.isArray(t);if(p?d="number":A?d="string":q&&(d="array"),!d)return!1;q&&(m=t.length),A&&(m=t.replace(c,"_").length),s?m!==e.len&&i.push(z(a.messages[d].len,e.fullField,e.len)):o&&!l&&me.max?i.push(z(a.messages[d].max,e.fullField,e.max)):o&&l&&(me.max)&&i.push(z(a.messages[d].range,e.fullField,e.min,e.max))},ne="enum",zt=function(e,t,r,i,a){e[ne]=Array.isArray(e[ne])?e[ne]:[],e[ne].indexOf(t)===-1&&i.push(z(a.messages[ne],e.fullField,e[ne].join(", ")))},Lt=function(e,t,r,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(z(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var s=new RegExp(e.pattern);s.test(t)||i.push(z(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},h={required:Ge,whitespace:Et,type:Mt,range:It,enum:zt,pattern:Lt},Vt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"string")&&!e.required)return r();h.required(e,t,i,s,a,"string"),R(t,"string")||(h.type(e,t,i,s,a),h.range(e,t,i,s,a),h.pattern(e,t,i,s,a),e.whitespace===!0&&h.whitespace(e,t,i,s,a))}r(s)},Ct=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Wt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Bt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Nt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),R(t)||h.type(e,t,i,s,a)}r(s)},Tt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Dt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Ht=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return r();h.required(e,t,i,s,a,"array"),t!=null&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Kt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Ut="enum",Yt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h[Ut](e,t,i,s,a)}r(s)},Jt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"string")&&!e.required)return r();h.required(e,t,i,s,a),R(t,"string")||h.pattern(e,t,i,s,a)}r(s)},Zt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"date")&&!e.required)return r();if(h.required(e,t,i,s,a),!R(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),h.type(e,l,i,s,a),l&&h.range(e,l.getTime(),i,s,a)}}r(s)},Qt=function(e,t,r,i,a){var s=[],o=Array.isArray(t)?"array":typeof t;h.required(e,t,i,s,a,o),r(s)},Pe=function(e,t,r,i,a){var s=e.type,o=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(R(t,s)&&!e.required)return r();h.required(e,t,i,o,a,s),R(t,s)||h.type(e,t,i,o,a)}r(o)},Gt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a)}r(s)},fe={string:Vt,method:Ct,number:Wt,boolean:Bt,regexp:Nt,integer:Tt,float:Dt,array:Ht,object:Kt,enum:Yt,pattern:Jt,date:Zt,url:Pe,hex:Pe,email:Pe,required:Qt,any:Gt};function Ee(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var je=Ee(),ae=(function(){function n(t){this.rules=null,this._messages=je,this.define(t)}var e=n.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var s=r[a];i.rules[a]=Array.isArray(s)?s:[s]})},e.messages=function(r){return r&&(this._messages=De(Ee(),r)),this._messages},e.validate=function(r,i,a){var s=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var o=r,l=i,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function m(u){var v=[],f={};function P(b){if(Array.isArray(b)){var x;v=(x=v).concat.apply(x,b)}else v.push(b)}for(var g=0;g{try{const r=n(...t);return!e&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||Ve("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${e?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){Ve("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}var sr=Me({name:"FormItem",props:Xt,slots:Object,setup(n){ct(Qe,"formItems",be(n,"path"));const{mergedClsPrefixRef:e,inlineThemeDisabled:t}=Ie(n),r=se(ce,null),i=bt(n),a=yt(n),{validationErrored:s,validationWarned:o}=a,{mergedRequired:l,mergedRules:c}=wt(n),{mergedSize:m}=i,{mergedLabelPlacement:d,mergedLabelAlign:p,mergedRequireMarkPlacement:A}=a,q=G([]),u=G(ze()),v=G(null),f=r?be(r.props,"disabled"):G(!1),P=xe("Form","-form-item",vt,Je,n,e);Ue(be(n,"path"),()=>{n.ignorePathChange||b()});function g(){if(!a.isAutoLabelWidth.value)return;const y=v.value;if(y!==null){const D=y.style.whiteSpace;y.style.whiteSpace="nowrap",y.style.width="",r?.deriveMaxChildLabelWidth(Number(getComputedStyle(y).width.slice(0,-2))),y.style.whiteSpace=D}}function b(){q.value=[],s.value=!1,o.value=!1,n.feedback&&(u.value=ze())}const x=async(y=null,D=()=>!0,j={suppressWarning:!0})=>{const{path:W}=n;j?j.first||(j.first=n.first):j={};const{value:Y}=c,J=r?Ze(r.props.model,W||""):void 0,ee={},te={},Z=(y?Y.filter(w=>Array.isArray(w.trigger)?w.trigger.includes(y):w.trigger===y):Y).filter(D).map((w,M)=>{const k=Object.assign({},w);if(k.validator&&(k.validator=Ke(k.validator,!1)),k.asyncValidator&&(k.asyncValidator=Ke(k.asyncValidator,!0)),k.renderMessage){const ke=`__renderMessage__${M}`;te[ke]=k.message,k.message=ke,ee[ke]=k.renderMessage}return k}),Q=Z.filter(w=>w.level!=="warning"),H=Z.filter(w=>w.level==="warning"),V={valid:!0,errors:void 0,warnings:void 0};if(!Z.length)return V;const re=W??"__n_no_path__",ge=new ae({[re]:Q}),he=new ae({[re]:H}),{validateMessages:oe}=r?.props||{};oe&&(ge.messages(oe),he.messages(oe));const pe=w=>{q.value=w.map(M=>{const k=M?.message||"";return{key:k,render:()=>k.startsWith("__renderMessage__")?ee[k]():k}}),w.forEach(M=>{M.message?.startsWith("__renderMessage__")&&(M.message=te[M.message])})};if(Q.length){const w=await new Promise(M=>{ge.validate({[re]:J},j,M)});w?.length&&(V.valid=!1,V.errors=w,pe(w))}if(H.length&&!V.errors){const w=await new Promise(M=>{he.validate({[re]:J},j,M)});w?.length&&(pe(w),V.warnings=w)}return!V.errors&&!V.warnings?b():(s.value=!!V.errors,o.value=!!V.warnings),V};function S(){x("blur")}function T(){x("change")}function C(){x("focus")}function U(){x("input")}async function ue(y,D){let j,W,Y,J;return typeof y=="string"?(j=y,W=D):y!==null&&typeof y=="object"&&(j=y.trigger,W=y.callback,Y=y.shouldRuleBeApplied,J=y.options),await new Promise((ee,te)=>{x(j,Y,J).then(({valid:Z,errors:Q,warnings:H})=>{Z?(W&&W(void 0,{warnings:H}),ee({warnings:H})):(W&&W(Q,{warnings:H}),te(Q))})})}Se(dt,{path:be(n,"path"),disabled:f,mergedSize:i.mergedSize,mergedValidationStatus:a.mergedValidationStatus,restoreValidation:b,handleContentBlur:S,handleContentChange:T,handleContentFocus:C,handleContentInput:U});const me={validate:ue,restoreValidation:b,internalValidate:x,invalidateLabelWidth:g};ot(g);const L=F(()=>{const{value:y}=m,{value:D}=d,j=D==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:Y,asteriskColor:J,lineHeight:ee,feedbackTextColor:te,feedbackTextColorWarning:Z,feedbackTextColorError:Q,feedbackPadding:H,labelFontWeight:V,[K("labelHeight",y)]:re,[K("blankHeight",y)]:ge,[K("feedbackFontSize",y)]:he,[K("feedbackHeight",y)]:oe,[K("labelPadding",j)]:pe,[K("labelTextAlign",j)]:w,[K(K("labelFontSize",D),y)]:M}}=P.value;let k=p.value??w;return D==="top"&&(k=k==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":ee,"--n-blank-height":ge,"--n-label-font-size":M,"--n-label-text-align":k,"--n-label-height":re,"--n-label-padding":pe,"--n-label-font-weight":V,"--n-asterisk-color":J,"--n-label-text-color":Y,"--n-feedback-padding":H,"--n-feedback-font-size":he,"--n-feedback-height":oe,"--n-feedback-text-color":te,"--n-feedback-text-color-warning":Z,"--n-feedback-text-color-error":Q}}),E=t?lt("form-item",F(()=>`${m.value[0]}${d.value[0]}${p.value?.[0]||""}`),L,n):void 0;return{labelElementRef:v,mergedClsPrefix:e,mergedRequired:l,feedbackId:u,renderExplains:q,reverseColSpace:F(()=>d.value==="left"&&A.value==="left"&&p.value==="left"),...a,...i,...me,cssVars:t?void 0:L,themeClass:E?.themeClass,onRender:E?.onRender}},render(){const{$slots:n,mergedClsPrefix:e,mergedShowLabel:t,mergedShowRequireMark:r,mergedRequireMarkPlacement:i,onRender:a}=this,s=r!==void 0?r:this.mergedRequired;a?.();const o=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const c=(O(),$("span",{class:I(`${e}-form-item-label__text`)},[_(()=>l)],2)),m=s?(O(),$("span",{key:1,class:I(`${e}-form-item-label__asterisk`)},[i!=="left"?_(()=>" *"):_(()=>"* ")],2)):i==="right-hanging"&&(O(),$("span",{key:2,class:I(`${e}-form-item-label__asterisk-placeholder`)}," *",2)),{labelProps:d}=this;return O(),$("label",ft(d,{class:[d?.class,`${e}-form-item-label`,`${e}-form-item-label--${i}-mark`,this.reverseColSpace&&`${e}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),[i==="left"?(O(),$(Le,{key:0},[_(()=>[m,c])],64)):(O(),$(Le,{key:1},[_(()=>[c,m])],64))],16)};return O(),$("div",{class:I([`${e}-form-item`,this.themeClass,`${e}-form-item--${this.mergedSize}-size`,`${e}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${e}-form-item--auto-label-width`,!t&&`${e}-form-item--no-label`]),style:qe(this.cssVars)},[_(()=>t&&o()),Ae("div",{class:I([`${e}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${e}-form-item-blank--${this.mergedValidationStatus}`]),style:qe(this.contentStyle)},[_(()=>n.default?.())],6),this.mergedShowFeedback?(O(),$("div",{key:this.feedbackId,style:qe(this.feedbackStyle),class:I([`${e}-form-item-feedback-wrapper`,this.feedbackClass])},[it(st,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return at(n.feedback,c=>{const{feedback:m}=this,d=c||m?(O(),$("div",{key:"__feedback__",class:I(`${e}-form-item-feedback__line`)},[_(()=>c||m)],2)):this.renderExplains.length?this.renderExplains?.map(({key:p,render:A})=>(O(),$("div",{key:p,class:I(`${e}-form-item-feedback__line`)},[_(()=>A())],2))):null;return d?l==="warning"?(O(),$("div",{key:"controlled-warning",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--warning`)},[_(()=>d)],2)):l==="error"?(O(),$("div",{key:"controlled-error",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--error`)},[_(()=>d)],2)):l==="success"?(O(),$("div",{key:"controlled-success",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--success`)},[_(()=>d)],2)):(O(),$("div",{key:"controlled-default",class:I(`${e}-form-item-feedback`)},[_(()=>d)],2)):null})}},1024)],6)):_(()=>null)],6)}});const er={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},or=Me({name:"AddOutline",render:function(e,t){return O(),$("svg",er,t[0]||(t[0]=[Ae("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"},null,-1),Ae("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"},null,-1)]))}});export{or as A,ar as F,sr as a,ir as u}; +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+t+"$)|(?:^"+i+"$)"),s=new RegExp("^"+t+"$"),o=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?a:new RegExp("(?:"+e(b)+t+e(b)+")|(?:"+e(b)+i+e(b)+")","g")};l.v4=function(g){return g&&g.exact?s:new RegExp(""+e(g)+t+e(g),"g")},l.v6=function(g){return g&&g.exact?o:new RegExp(""+e(g)+i+e(g),"g")};var c="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,p=l.v6().source,A="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",q="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",u="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",f='(?:[/?#][^\\s"]*)?',P="(?:"+c+"|www\\.)"+m+"(?:localhost|"+d+"|"+p+"|"+A+q+u+")"+v+f;return ye=new RegExp("(?:^"+P+"$)","i"),ye}),He={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oe={integer:function(e){return oe.number(e)&&parseInt(e,10)===e},float:function(e){return oe.number(e)&&!oe.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!oe.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(He.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(_t())},hex:function(e){return typeof e=="string"&&!!e.match(He.hex)}},Et=function(e,t,r,i,a){if(e.required&&t===void 0){Ge(e,t,r,i,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;s.indexOf(o)>-1?oe[o](t)||i.push(z(a.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&i.push(z(a.messages.types[o],e.fullField,e.type))},jt=function(e,t,r,i,a){var s=typeof e.len=="number",o=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=t,d=null,p=typeof t=="number",A=typeof t=="string",q=Array.isArray(t);if(p?d="number":A?d="string":q&&(d="array"),!d)return!1;q&&(m=t.length),A&&(m=t.replace(c,"_").length),s?m!==e.len&&i.push(z(a.messages[d].len,e.fullField,e.len)):o&&!l&&me.max?i.push(z(a.messages[d].max,e.fullField,e.max)):o&&l&&(me.max)&&i.push(z(a.messages[d].range,e.fullField,e.min,e.max))},ne="enum",Mt=function(e,t,r,i,a){e[ne]=Array.isArray(e[ne])?e[ne]:[],e[ne].indexOf(t)===-1&&i.push(z(a.messages[ne],e.fullField,e[ne].join(", ")))},It=function(e,t,r,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(z(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var s=new RegExp(e.pattern);s.test(t)||i.push(z(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},h={required:Ge,whitespace:$t,type:Et,range:jt,enum:Mt,pattern:It},zt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"string")&&!e.required)return r();h.required(e,t,i,s,a,"string"),R(t,"string")||(h.type(e,t,i,s,a),h.range(e,t,i,s,a),h.pattern(e,t,i,s,a),e.whitespace===!0&&h.whitespace(e,t,i,s,a))}r(s)},Lt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Vt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Ct=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Wt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),R(t)||h.type(e,t,i,s,a)}r(s)},Bt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Nt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Tt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return r();h.required(e,t,i,s,a,"array"),t!=null&&(h.type(e,t,i,s,a),h.range(e,t,i,s,a))}r(s)},Dt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h.type(e,t,i,s,a)}r(s)},Ht="enum",Ut=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a),t!==void 0&&h[Ht](e,t,i,s,a)}r(s)},Yt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"string")&&!e.required)return r();h.required(e,t,i,s,a),R(t,"string")||h.pattern(e,t,i,s,a)}r(s)},Jt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t,"date")&&!e.required)return r();if(h.required(e,t,i,s,a),!R(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),h.type(e,l,i,s,a),l&&h.range(e,l.getTime(),i,s,a)}}r(s)},Kt=function(e,t,r,i,a){var s=[],o=Array.isArray(t)?"array":typeof t;h.required(e,t,i,s,a,o),r(s)},Pe=function(e,t,r,i,a){var s=e.type,o=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(R(t,s)&&!e.required)return r();h.required(e,t,i,o,a,s),R(t,s)||h.type(e,t,i,o,a)}r(o)},Zt=function(e,t,r,i,a){var s=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(R(t)&&!e.required)return r();h.required(e,t,i,s,a)}r(s)},le={string:zt,method:Lt,number:Vt,boolean:Ct,regexp:Wt,integer:Bt,float:Nt,array:Tt,object:Dt,enum:Ut,pattern:Yt,date:Jt,url:Pe,hex:Pe,email:Pe,required:Kt,any:Zt};function Ee(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var je=Ee(),ae=(function(){function n(t){this.rules=null,this._messages=je,this.define(t)}var e=n.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var s=r[a];i.rules[a]=Array.isArray(s)?s:[s]})},e.messages=function(r){return r&&(this._messages=De(Ee(),r)),this._messages},e.validate=function(r,i,a){var s=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var o=r,l=i,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function m(u){var v=[],f={};function P(b){if(Array.isArray(b)){var x;v=(x=v).concat.apply(x,b)}else v.push(b)}for(var g=0;g{try{const r=n(...t);return!e&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||Ve("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${e?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){Ve("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}var nr=Me({name:"FormItem",props:Qt,slots:Object,setup(n){ft(Qe,"formItems",be(n,"path"));const{mergedClsPrefixRef:e,inlineThemeDisabled:t}=Ie(n),r=de(ce,null),i=pt(n),a=vt(n),{validationErrored:s,validationWarned:o}=a,{mergedRequired:l,mergedRules:c}=bt(n),{mergedSize:m}=i,{mergedLabelPlacement:d,mergedLabelAlign:p,mergedRequireMarkPlacement:A}=a,q=G([]),u=G(ze()),v=G(null),f=r?be(r.props,"disabled"):G(!1),P=xe("Form","-form-item",ht,Ke,n,e);Ye(be(n,"path"),()=>{n.ignorePathChange||b()});function g(){if(!a.isAutoLabelWidth.value)return;const y=v.value;if(y!==null){const D=y.style.whiteSpace;y.style.whiteSpace="nowrap",y.style.width="",r?.deriveMaxChildLabelWidth(Number(getComputedStyle(y).width.slice(0,-2))),y.style.whiteSpace=D}}function b(){q.value=[],s.value=!1,o.value=!1,n.feedback&&(u.value=ze())}const x=async(y=null,D=()=>!0,j={suppressWarning:!0})=>{const{path:W}=n;j?j.first||(j.first=n.first):j={};const{value:J}=c,K=r?Ze(r.props.model,W||""):void 0,ee={},te={},Z=(y?J.filter(w=>Array.isArray(w.trigger)?w.trigger.includes(y):w.trigger===y):J).filter(D).map((w,M)=>{const k=Object.assign({},w);if(k.validator&&(k.validator=Ue(k.validator,!1)),k.asyncValidator&&(k.asyncValidator=Ue(k.asyncValidator,!0)),k.renderMessage){const ke=`__renderMessage__${M}`;te[ke]=k.message,k.message=ke,ee[ke]=k.renderMessage}return k}),Q=Z.filter(w=>w.level!=="warning"),H=Z.filter(w=>w.level==="warning"),V={valid:!0,errors:void 0,warnings:void 0};if(!Z.length)return V;const re=W??"__n_no_path__",ge=new ae({[re]:Q}),he=new ae({[re]:H}),{validateMessages:se}=r?.props||{};se&&(ge.messages(se),he.messages(se));const pe=w=>{q.value=w.map(M=>{const k=M?.message||"";return{key:k,render:()=>k.startsWith("__renderMessage__")?ee[k]():k}}),w.forEach(M=>{M.message?.startsWith("__renderMessage__")&&(M.message=te[M.message])})};if(Q.length){const w=await new Promise(M=>{ge.validate({[re]:K},j,M)});w?.length&&(V.valid=!1,V.errors=w,pe(w))}if(H.length&&!V.errors){const w=await new Promise(M=>{he.validate({[re]:K},j,M)});w?.length&&(pe(w),V.warnings=w)}return!V.errors&&!V.warnings?b():(s.value=!!V.errors,o.value=!!V.warnings),V};function S(){x("blur")}function T(){x("change")}function C(){x("focus")}function Y(){x("input")}async function ue(y,D){let j,W,J,K;return typeof y=="string"?(j=y,W=D):y!==null&&typeof y=="object"&&(j=y.trigger,W=y.callback,J=y.shouldRuleBeApplied,K=y.options),await new Promise((ee,te)=>{x(j,J,K).then(({valid:Z,errors:Q,warnings:H})=>{Z?(W&&W(void 0,{warnings:H}),ee({warnings:H})):(W&&W(Q,{warnings:H}),te(Q))})})}Se(lt,{path:be(n,"path"),disabled:f,mergedSize:i.mergedSize,mergedValidationStatus:a.mergedValidationStatus,restoreValidation:b,handleContentBlur:S,handleContentChange:T,handleContentFocus:C,handleContentInput:Y});const me={validate:ue,restoreValidation:b,internalValidate:x,invalidateLabelWidth:g};at(g);const L=F(()=>{const{value:y}=m,{value:D}=d,j=D==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:J,asteriskColor:K,lineHeight:ee,feedbackTextColor:te,feedbackTextColorWarning:Z,feedbackTextColorError:Q,feedbackPadding:H,labelFontWeight:V,[U("labelHeight",y)]:re,[U("blankHeight",y)]:ge,[U("feedbackFontSize",y)]:he,[U("feedbackHeight",y)]:se,[U("labelPadding",j)]:pe,[U("labelTextAlign",j)]:w,[U(U("labelFontSize",D),y)]:M}}=P.value;let k=p.value??w;return D==="top"&&(k=k==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":ee,"--n-blank-height":ge,"--n-label-font-size":M,"--n-label-text-align":k,"--n-label-height":re,"--n-label-padding":pe,"--n-label-font-weight":V,"--n-asterisk-color":K,"--n-label-text-color":J,"--n-feedback-padding":H,"--n-feedback-font-size":he,"--n-feedback-height":se,"--n-feedback-text-color":te,"--n-feedback-text-color-warning":Z,"--n-feedback-text-color-error":Q}}),E=t?st("form-item",F(()=>`${m.value[0]}${d.value[0]}${p.value?.[0]||""}`),L,n):void 0;return{labelElementRef:v,mergedClsPrefix:e,mergedRequired:l,feedbackId:u,renderExplains:q,reverseColSpace:F(()=>d.value==="left"&&A.value==="left"&&p.value==="left"),...a,...i,...me,cssVars:t?void 0:L,themeClass:E?.themeClass,onRender:E?.onRender}},render(){const{$slots:n,mergedClsPrefix:e,mergedShowLabel:t,mergedShowRequireMark:r,mergedRequireMarkPlacement:i,onRender:a}=this,s=r!==void 0?r:this.mergedRequired;a?.();const o=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const c=(O(),$("span",{class:I(`${e}-form-item-label__text`)},[_(()=>l)],2)),m=s?(O(),$("span",{key:1,class:I(`${e}-form-item-label__asterisk`)},[i!=="left"?_(()=>" *"):_(()=>"* ")],2)):i==="right-hanging"&&(O(),$("span",{key:2,class:I(`${e}-form-item-label__asterisk-placeholder`)}," *",2)),{labelProps:d}=this;return O(),$("label",ot(d,{class:[d?.class,`${e}-form-item-label`,`${e}-form-item-label--${i}-mark`,this.reverseColSpace&&`${e}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),[i==="left"?(O(),$(Le,{key:0},[_(()=>[m,c])],64)):(O(),$(Le,{key:1},[_(()=>[c,m])],64))],16)};return O(),$("div",{class:I([`${e}-form-item`,this.themeClass,`${e}-form-item--${this.mergedSize}-size`,`${e}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${e}-form-item--auto-label-width`,!t&&`${e}-form-item--no-label`]),style:qe(this.cssVars)},[_(()=>t&&o()),Ae("div",{class:I([`${e}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${e}-form-item-blank--${this.mergedValidationStatus}`]),style:qe(this.contentStyle)},[_(()=>n.default?.())],6),this.mergedShowFeedback?(O(),$("div",{key:this.feedbackId,style:qe(this.feedbackStyle),class:I([`${e}-form-item-feedback-wrapper`,this.feedbackClass])},[rt(it,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return nt(n.feedback,c=>{const{feedback:m}=this,d=c||m?(O(),$("div",{key:"__feedback__",class:I(`${e}-form-item-feedback__line`)},[_(()=>c||m)],2)):this.renderExplains.length?this.renderExplains?.map(({key:p,render:A})=>(O(),$("div",{key:p,class:I(`${e}-form-item-feedback__line`)},[_(()=>A())],2))):null;return d?l==="warning"?(O(),$("div",{key:"controlled-warning",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--warning`)},[_(()=>d)],2)):l==="error"?(O(),$("div",{key:"controlled-error",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--error`)},[_(()=>d)],2)):l==="success"?(O(),$("div",{key:"controlled-success",class:I(`${e}-form-item-feedback ${e}-form-item-feedback--success`)},[_(()=>d)],2)):(O(),$("div",{key:"controlled-default",class:I(`${e}-form-item-feedback`)},[_(()=>d)],2)):null})}},1024)],6)):_(()=>null)],6)}});const Gt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ir=Me({name:"AddOutline",render:function(e,t){return O(),$("svg",Gt,t[0]||(t[0]=[Ae("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"},null,-1),Ae("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"},null,-1)]))}});export{ir as A,rr as F,nr as a}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-CAYRlNMN.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-scECmWLS.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-CAYRlNMN.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-scECmWLS.js index f56a8f91..83edd7a9 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-CAYRlNMN.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-scECmWLS.js @@ -1 +1 @@ -import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-Dewca6JL.js";import{T as J,P as ue}from"./PulseOutline-B76LUJRI.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as de}from"./use-message-DoP8RQDr.js";import{g as ce}from"./streamers-Bqfjqsa8.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-Uo85WSlp.js";import{e as f}from"./engine-state-BXjEZp_d.js";import{C as fe}from"./CheckboxGroup-Df5112cP.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-EiwVCUcb.js";import{F as _e}from"./FilmOutline-C3cZd2xG.js";import{G as ke}from"./GitCompareOutline-B9U2QCIP.js";import{C as ge}from"./CloudDownloadOutline-i6vXE3nl.js";import"./use-compitable-CcF_TVW8.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; +import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-IeQIGfOC.js";import{T as J,P as ue}from"./PulseOutline-CDhfZ1-d.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as de}from"./use-message-DtvhZdQK.js";import{g as ce}from"./streamers-959wQihJ.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-wF7co_0F.js";import{e as f}from"./engine-state-C08MtSql.js";import{C as fe}from"./CheckboxGroup-DIEr6wY4.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-Cf83Ptp8.js";import{F as _e}from"./FilmOutline-BiokjmgW.js";import{G as ke}from"./GitCompareOutline-CIgdGm-f.js";import{C as ge}from"./CloudDownloadOutline-B3mrN2nS.js";import"./use-compitable-D5WZISuP.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-Df5112cP.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-DIEr6wY4.js similarity index 95% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-Df5112cP.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-DIEr6wY4.js index 813ceac6..78dbfbdb 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-Df5112cP.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-DIEr6wY4.js @@ -1,4 +1,4 @@ -import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,bb as se,bc as be,bd as he,d as ue,a8 as E,b2 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,be as pe,aj as Ce,ac as ye,b3 as we,j as P,ad as T,W as ze,bf as Re,bg as Se,af as j,ae as _e,O as De}from"./index-Dewca6JL.js";import{u as Be}from"./use-compitable-CcF_TVW8.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` +import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,ba as se,bb as be,bc as he,d as ue,a8 as E,b1 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,bd as pe,aj as Ce,ac as ye,b2 as we,j as P,ad as T,W as ze,be as Re,bf as Se,af as j,ae as _e,O as De}from"./index-IeQIGfOC.js";import{u as Be}from"./use-compitable-D5WZISuP.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` font-size: var(--n-font-size); outline: none; cursor: pointer; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-i6vXE3nl.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-B3mrN2nS.js similarity index 92% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-i6vXE3nl.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-B3mrN2nS.js index ca379403..2582a917 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-i6vXE3nl.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-B3mrN2nS.js @@ -1 +1 @@ -import{d as e,o as r,c as t,a as o}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; +import{d as e,o as r,c as t,a as o}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-YbRT-tSM.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-ejgmikUf.js similarity index 97% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-YbRT-tSM.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-ejgmikUf.js index 67828e8d..69a5504a 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-YbRT-tSM.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-ejgmikUf.js @@ -1,4 +1,4 @@ -import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,be as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b2 as te,R as ne,bj as Ee,bk as je,ay as re,az as le,bl as ie,ae as He}from"./index-Dewca6JL.js";import{I as Le,u as Ke}from"./Input-v4sTQ7Pz.js";import{u as Ge}from"./use-compitable-CcF_TVW8.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` +import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,bd as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b1 as te,R as ne,bi as Ee,bj as je,ay as re,az as le,bk as ie,ae as He}from"./index-IeQIGfOC.js";import{I as Le,u as Ke}from"./Input-1zXREyVM.js";import{u as Ge}from"./use-compitable-D5WZISuP.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-DxvLxbyx.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-E2iASfAS.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-DxvLxbyx.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-E2iASfAS.js index 53d65c11..9cc1b6cf 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-DxvLxbyx.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-E2iASfAS.js @@ -1 +1 @@ -import{d as e,c as r,a as o,o as t}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; +import{d as e,c as r,a as o,o as t}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-X3-6UyRF.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-DLXMt06R.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-X3-6UyRF.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-DLXMt06R.js index 1e4840de..bf70bb3c 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-X3-6UyRF.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-DLXMt06R.js @@ -1 +1 @@ -import{N as m,_ as l}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-Dewca6JL.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; +import{N as m,_ as l}from"./_plugin-vue_export-helper-BhKLKalr.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-IeQIGfOC.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-C3cZd2xG.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BiokjmgW.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-C3cZd2xG.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BiokjmgW.js index d9c8040d..fc3c4361 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-C3cZd2xG.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BiokjmgW.js @@ -1 +1 @@ -import{d as e,c as t,y as o,o as n}from"./index-Dewca6JL.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; +import{d as e,c as t,y as o,o as n}from"./index-IeQIGfOC.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-B9U2QCIP.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CIgdGm-f.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-B9U2QCIP.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CIgdGm-f.js index 2599221a..bf0e5d33 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-B9U2QCIP.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CIgdGm-f.js @@ -1 +1 @@ -import{d as e,o as r,c as n,y as t}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; +import{d as e,o as r,c as n,y as t}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-v4sTQ7Pz.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-1zXREyVM.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-v4sTQ7Pz.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-1zXREyVM.js index decb15d3..0d11e3a5 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-v4sTQ7Pz.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-1zXREyVM.js @@ -1,4 +1,4 @@ -import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,bb as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,bf as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,be as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b2 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-Dewca6JL.js";import{u as Or}from"./use-compitable-CcF_TVW8.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` +import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,ba as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,be as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,bd as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b1 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-IeQIGfOC.js";import{u as Or}from"./use-compitable-D5WZISuP.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` flex-shrink: 0; height: 1em; width: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BctFe39X.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BjbMAX6a.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BctFe39X.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BjbMAX6a.js index fa954817..cd7ce931 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BctFe39X.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BjbMAX6a.js @@ -1 +1 @@ -import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-Dewca6JL.js";import{I as L}from"./Input-v4sTQ7Pz.js";import{C as G}from"./CheckboxGroup-Df5112cP.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{S as Q}from"./Spin-BbqDP5dl.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-CcF_TVW8.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; +import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-IeQIGfOC.js";import{I as L}from"./Input-1zXREyVM.js";import{C as G}from"./CheckboxGroup-DIEr6wY4.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-BhKLKalr.js";import{S as Q}from"./Spin-D2w1FlaT.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-D5WZISuP.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B76LUJRI.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-CDhfZ1-d.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B76LUJRI.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-CDhfZ1-d.js index 69e6353c..cc3096c2 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B76LUJRI.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-CDhfZ1-d.js @@ -1 +1 @@ -import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-Dewca6JL.js";import{p as v,P as f}from"./use-message-DoP8RQDr.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; +import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-IeQIGfOC.js";import{p as v,P as f}from"./use-message-DtvhZdQK.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-SRhryImQ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-DQJVOvaX.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-SRhryImQ.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-DQJVOvaX.js index 2eeb3c0f..439409b2 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-SRhryImQ.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-DQJVOvaX.js @@ -1,4 +1,4 @@ -import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-Cl5vTXvX.js";import{u as mr,I as je}from"./Input-v4sTQ7Pz.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-Dewca6JL.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-DoP8RQDr.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-X3-6UyRF.js";import{u as Ie}from"./use-compitable-CcF_TVW8.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{S as Ge}from"./Spin-BbqDP5dl.js";import{d as Hr}from"./streamers-Bqfjqsa8.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-C3cZd2xG.js";import{D as rt}from"./DownloadOutline-DxvLxbyx.js";import{R as Wr}from"./RefreshOutline-AM6fn2f1.js";import{S as qr}from"./SearchOutline-r0tEsj-I.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` +import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-CtC43ppV.js";import{u as mr,I as je}from"./Input-1zXREyVM.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-IeQIGfOC.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-DtvhZdQK.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-DLXMt06R.js";import{u as Ie}from"./use-compitable-D5WZISuP.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-BhKLKalr.js";import{S as Ge}from"./Spin-D2w1FlaT.js";import{d as Hr}from"./streamers-959wQihJ.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-BiokjmgW.js";import{D as rt}from"./DownloadOutline-E2iASfAS.js";import{R as Wr}from"./RefreshOutline-D9KhQzcL.js";import{S as qr}from"./SearchOutline-atP4ikMv.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` box-shadow: var(--n-menu-box-shadow); `);const Ye={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:String,scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},at=hr(Ye);var Yr=re({name:"PopselectPanel",props:Ye,setup(e){const t=Ve(Ct),{mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedComponentPropsRef:m}=Be(e),v=A(()=>e.size||m?.value?.Popselect?.size||"medium"),C=be("Popselect","-pop-select",Xr,pt,t.props,r),F=A(()=>cr(e.options,ur("value","children")));function P(l,p){const{onUpdateValue:w,"onUpdate:value":k,onChange:N}=e;w&&X(w,l,p),k&&X(k,l,p),N&&X(N,l,p)}function f(l){b(l.key)}function M(l){!Ue(l,"action")&&!Ue(l,"empty")&&!Ue(l,"header")&&l.preventDefault()}function b(l){const{value:{getNode:p}}=F;if(e.multiple)if(Array.isArray(e.value)){const w=[],k=[];let N=!0;e.value.forEach(J=>{if(J===l){N=!1;return}const V=p(J);V&&(w.push(V.key),k.push(V.rawNode))}),N&&(w.push(l),k.push(p(l).rawNode)),P(w,k)}else{const w=p(l);w&&P([l],[w.rawNode])}else if(e.value===l&&e.cancelable)P(null,null);else{const w=p(l);w&&P(l,w.rawNode);const{"onUpdate:show":k,onUpdateShow:N}=t.props;k&&X(k,!1),N&&X(N,!1),t.setShow(!1)}De(()=>{t.syncPosition()})}Fe(Me(e,"options"),()=>{De(()=>{t.syncPosition()})});const R=A(()=>{const{self:{menuBoxShadow:l}}=C.value;return{"--n-menu-box-shadow":l}}),z=g?We("select",void 0,R,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:F,handleToggle:f,handleMenuMousedown:M,cssVars:g?void 0:R,themeClass:z?.themeClass,onRender:z?.onRender,mergedSize:v,scrollbarProps:t.props.scrollbarProps}},render(){return this.onRender?.(),n(),y(dr,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:H([`${this.mergedClsPrefix}-popselect-menu`,this.themeClass]),style:ce(this.cssVars),theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.mergedSize,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,scrollbarProps:this.scrollbarProps,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{_:1,header:Re(()=>this.$slots.header?.()||[]),action:Re(()=>this.$slots.action?.()||[]),empty:Re(()=>this.$slots.empty?.()||[])},8,["clsPrefix","nodeProps","class","style","theme","themeOverrides","multiple","treeMate","size","value","virtualScroll","scrollable","scrollbarProps","renderLabel","onToggle","onMouseenter","onMouseleave","onMousedown","showCheckmark"])}});const Kr={...be.props,...vt(Qe,["showArrow","arrow"]),placement:{...Qe.placement,default:"bottom"},trigger:{type:String,default:"hover"},...Ye,scrollbarProps:Object};var Jr=re({name:"Popselect",props:Kr,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Be(e),r=be("Popselect","-popselect",void 0,pt,e,t),g=B(null);function m(){g.value?.syncPosition()}function v(C){g.value?.setShow(C)}return Pe(Ct,{props:e,mergedThemeRef:r,syncPosition:m,setShow:v}),{syncPosition:m,setShow:v,popoverInstRef:g,mergedTheme:r}},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,g,m,v,C)=>{const{$attrs:F}=this;return n(),y(Yr,ge(F,{class:[F.class,r],style:[F.style,...m]},pr(this.$props,at),{ref:Nr(g),onMouseenter:Ke([v,F.onMouseenter]),onMouseleave:Ke([C,F.onMouseleave])}),{header:()=>this.$slots.header?.(),action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,["class","style","onMouseenter","onMouseleave"])}};return n(),y(Ar,ge(vt(this.$props,at),t,{internalDeactivateImmediately:!0}),{_:1,trigger:Re(()=>this.$slots.default?.())},16)}});const Qr={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function nt(e){const t=Qr[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}var ot=re({name:"Backward",render(){return(()=>{const e=xe("20cdf29399dd0749");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"})],-1))})()}}),st=re({name:"FastBackward",render(){return(()=>{const e=xe("9d0d04cc580afefa");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"})])])],-1))})()}}),it=re({name:"FastForward",render(){return(()=>{const e=xe("c2e477dd1211740a");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})])])],-1))})()}}),lt=re({name:"Forward",render(){return(()=>{const e=xe("6fb2c33c1e576c93");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"})],-1))})()}}),dt=re({name:"More",render(){return(()=>{const e=xe("e4a3e3d3803c676d");return e[0]||(e[0]=a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"})])])],-1))})()}});const ct=` background: var(--n-item-color-hover); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-AM6fn2f1.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-D9KhQzcL.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-AM6fn2f1.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-D9KhQzcL.js index 05be5016..33e2bfcf 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-AM6fn2f1.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-D9KhQzcL.js @@ -1 +1 @@ -import{d as n,c as t,a as o,o as r}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; +import{d as n,c as t,a as o,o as r}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-C32h1q4d.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-I_oin3xl.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-C32h1q4d.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-I_oin3xl.js index 1a4656eb..b83ef609 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-C32h1q4d.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-I_oin3xl.js @@ -1 +1 @@ -import{T as R,S as M}from"./Select-Cl5vTXvX.js";import{I as re}from"./Input-v4sTQ7Pz.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-Dewca6JL.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as Ye,A as ue,F as Ze,a as w}from"./AddOutline-RKRa1cGv.js";import{u as Ke}from"./use-message-DoP8RQDr.js";import{D as Qe,I as et}from"./DocumentTextOutline-YbRT-tSM.js";import{S as W}from"./Switch-BcQ8noQd.js";import{d as tt}from"./streamers-Bqfjqsa8.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-AM6fn2f1.js";import{G as nt}from"./GitCompareOutline-B9U2QCIP.js";import"./use-compitable-CcF_TVW8.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ke(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ze),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; +import{T as R,S as M}from"./Select-CtC43ppV.js";import{I as re}from"./Input-1zXREyVM.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-IeQIGfOC.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as Ye,S as W}from"./Switch-CM0aqR3N.js";import{u as Ze}from"./use-message-DtvhZdQK.js";import{A as ue,F as Ke,a as w}from"./AddOutline-BBW-Am9Z.js";import{D as Qe,I as et}from"./DocumentTextOutline-ejgmikUf.js";import{d as tt}from"./streamers-959wQihJ.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-D9KhQzcL.js";import{G as nt}from"./GitCompareOutline-CIgdGm-f.js";import"./use-compitable-D5WZISuP.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ze(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ke),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-r0tEsj-I.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-atP4ikMv.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-r0tEsj-I.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-atP4ikMv.js index 37d530f6..2a27f997 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-r0tEsj-I.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-atP4ikMv.js @@ -1 +1 @@ -import{d as o,o as r,c as n,a as t}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; +import{d as o,o as r,c as n,a as t}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-Cl5vTXvX.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-CtC43ppV.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-Cl5vTXvX.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-CtC43ppV.js index fa05bc5b..9041347a 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-Cl5vTXvX.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-CtC43ppV.js @@ -1,4 +1,4 @@ -import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-DoP8RQDr.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b2 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,be as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-Dewca6JL.js";import{u as Xt,S as ro}from"./Input-v4sTQ7Pz.js";import{u as At,a as lo}from"./use-compitable-CcF_TVW8.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` +import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-DtvhZdQK.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b1 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,bd as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-IeQIGfOC.js";import{u as Xt,S as ro}from"./Input-1zXREyVM.js";import{u as At,a as lo}from"./use-compitable-D5WZISuP.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` display: flex; flex-direction: column; align-items: center; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BWuJr4AI.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BKOOfxKt.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BWuJr4AI.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BKOOfxKt.js index c1855822..4a7269c7 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BWuJr4AI.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BKOOfxKt.js @@ -1 +1 @@ -import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-Dewca6JL.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{R as y}from"./RefreshOutline-AM6fn2f1.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; +import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-IeQIGfOC.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-BhKLKalr.js";import{R as y}from"./RefreshOutline-D9KhQzcL.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-7xwJcQmS.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-7xwJcQmS.js new file mode 100644 index 00000000..1efd4344 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-7xwJcQmS.js @@ -0,0 +1,3 @@ +import{I as C}from"./Input-1zXREyVM.js";import{d as T,o as u,c as d,y as he,a as l,ao as F,aV as oe,b as Ce,A as Se,e as i,w as r,u as s,B as m,t as p,f as a,g as b,n as ze,i as B,F as Y,bg as Me,r as c,J as Be,ap as Ee,bh as Ue}from"./index-IeQIGfOC.js";import{S as D}from"./Select-CtC43ppV.js";import{N as g,_ as Ae}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as Ne,S as Q}from"./Switch-CM0aqR3N.js";import{u as Oe}from"./use-message-DtvhZdQK.js";import{I as $,D as De}from"./DocumentTextOutline-ejgmikUf.js";import{S as Pe}from"./Spin-D2w1FlaT.js";import{E as te,g as Fe,s as Te,c as Ve,r as qe}from"./engine-wF7co_0F.js";import{e as f}from"./engine-state-C08MtSql.js";import{v as Re}from"./filename-template-DBJXvN0y.js";import{e as x,i as P}from"./runtime-bridge-DmDzFGpU.js";import{V as X}from"./VideocamOutline-Cf83Ptp8.js";import{R as Ie}from"./RefreshOutline-D9KhQzcL.js";import"./use-compitable-D5WZISuP.js";const Le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=T({name:"ColorPaletteOutline",render:function(v,_){return u(),d("svg",Le,_[0]||(_[0]=[he('',6)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},$e=T({name:"KeyOutline",render:function(v,_){return u(),d("svg",Ge,_[0]||(_[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=T({name:"SaveOutline",render:function(v,_){return u(),d("svg",je,_[0]||(_[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ke={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Z=T({name:"ServerOutline",render:function(v,_){return u(),d("svg",Ke,_[0]||(_[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Je=()=>F("/v1/configuration"),We=S=>oe("/v1/configuration",S),Ye=[{label:"FFmpeg",value:"ffmpeg"},{label:"Stream Gears(推荐,边录边传)",value:"stream-gears"},{label:"Streamlink",value:"streamlink"},{label:"同步下载器 sync-downloader",value:"sync-downloader"},{label:"Mesio",value:"mesio"}],Qe=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Xe=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Ze=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],el={class:"page"},ll={class:"page-head"},sl={class:"toolbar"},nl={key:0,class:"loading"},tl={key:1,class:"error-panel"},il={class:"error-msg"},ol={key:2,class:"sections"},al={class:"section panel"},rl={class:"sec-head"},ul={class:"sec-icon accent"},dl={class:"fields"},pl={class:"field wide"},vl={class:"field wide"},fl={class:"field"},cl={class:"field"},ml={class:"field"},_l={class:"field"},yl={class:"section panel"},gl={class:"sec-head"},wl={class:"sec-icon cyan"},kl={class:"fields"},bl={class:"field"},xl={class:"field"},hl={class:"field wide"},Cl={class:"section panel"},Sl={class:"sec-head"},zl={class:"sec-icon live"},Ml={class:"fields"},Bl={class:"field"},El={class:"field"},Ul={class:"field switch-field"},Al={class:"field switch-field"},Nl={class:"field switch-field"},Ol={class:"section panel"},Dl={class:"sec-head"},Pl={class:"sec-icon live"},Fl={class:"fields"},Tl={class:"field wide"},Vl={class:"section panel"},ql={class:"sec-head"},Rl={class:"sec-icon muted"},Il={class:"readonly"},Ll={class:"mono"},Hl={class:"mono"},Gl={class:"mono"},$l={class:"mono"},jl={class:"section panel"},Kl={class:"sec-head"},Jl={class:"sec-icon cyan"},Wl={class:"engine-install"},Yl={class:"engine-status-row"},Ql={key:0,class:"readonly engine-detail"},Xl={class:"mono"},Zl={class:"mono"},es={key:1,class:"inline-hint"},ls={key:2,class:"inline-hint"},ss={key:3,class:"engine-progress"},ns={class:"progress-track"},ts={class:"mono"},is={class:"mono"},os={class:"mono"},as={class:"support-actions"},rs={key:4,class:"manual-list"},us={class:"section panel"},ds={class:"sec-head"},ps={class:"sec-icon accent"},vs={class:"fields"},fs={class:"field wide"},cs={class:"field wide"},ms={class:"field wide"},_s={class:"support-actions"},ys={key:0,class:"inline-hint"},gs={key:1,class:"readonly engine-status"},ws={class:"mono"},ks={class:"mono"},bs={key:2,class:"diagnostic-block"},xs={key:0,class:"inline-error"},hs={key:1,class:"inline-hint"},Cs={key:2,class:"diag-preview"},Ss={class:"support-actions"},zs={class:"support-note"},Ms={class:"section panel"},Bs={class:"sec-head"},Es={class:"sec-icon cyan"},Us={class:"fields"},As={class:"field wide"},Ns=T({__name:"SettingsView",setup(S){const v=Oe(),_=Ne(),y=c(null),E=c(!0),V=c(!1),q=c(""),t=Be({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function ee(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function j(){E.value=!0,q.value="";try{y.value=await Je(),ee(y.value)}catch(n){q.value=n instanceof Error?n.message:"读取配置失败"}finally{E.value=!1}}async function ae(){if(!y.value)return;const n=Re(t.filename_prefix);if(n){v.error(n);return}V.value=!0;try{const e={...y.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await We(e);y.value=o,ee(o),v.success("设置已保存并生效")}catch(e){v.error(x(e))}finally{V.value=!1}}const z=c(null),R=c("sidecar"),le=c(""),I=c(""),k=c(!1),U=c(""),h=c(!0),K=c(!1);let L;async function H(){if(!P()){h.value=!1,U.value="引擎连接模式仅在 MiniApp 中可用";return}k.value=!0,U.value="";try{const[n,e]=await Promise.all([F("/_miniapp/runtime-status"),F("/_miniapp/connection-config")]);z.value=n,R.value=e.mode==="remote"?"remote":"sidecar",le.value=e.binaryPath??"",I.value=e.ffmpegPath??"",h.value=!0}catch(n){z.value=null,h.value=!1,U.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{k.value=!1}}async function re(){if(P()){k.value=!0;try{await oe("/_miniapp/connection-config",{mode:R.value,ffmpegPath:I.value}),v.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await H()}catch(n){v.error(x(n))}finally{k.value=!1}}}async function ue(){if(P()){k.value=!0;try{await Ee("/_miniapp/engine/restart"),v.success("引擎重启指令已发送"),await H()}catch(n){v.error(x(n))}finally{k.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function J(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,M=0;for(;o>=1024&&M0?J(n)+"/s":"—"}async function A(){if(P())try{f.value=await Fe()}catch{f.value=null}}async function ne(){try{const n=await Te();!n.ok&&n.error&&v.error(n.error),await A()}catch(n){v.error(x(n))}}async function ve(){try{await Ve(),await A()}catch(n){v.error(x(n))}}async function fe(){_.warning({title:"重新下载录播引擎",content:"这会重新下载并替换当前引擎,下载和校验完成前不会移除现有引擎。继续吗?",positiveText:"重新下载",negativeText:"取消",onPositiveClick:async()=>{try{const n=await qe();!n.ok&&n.error&&v.error(n.error),await A()}catch(n){v.error(x(n))}}})}const w=c(""),W=c(!1),N=c(""),G=c(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",M=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+M+xe}async function me(){if(N.value="",!P()){w.value="",N.value="诊断日志仅在 MiniApp 中可用";return}W.value=!0;try{const[n,e]=await Promise.all([F("/_miniapp/diagnostics"),F("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?w.value=o.map(ce).join(` +`):e?.lastError?w.value="最近错误:"+e.lastError:w.value="暂无最近错误记录"}catch(n){N.value=x(n),w.value=""}finally{W.value=!1}}function _e(){if(!w.value)return;const n=new Blob([w.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function ye(){const n=w.value.trim();if(!n)return;const e=window.miniapp;if(!e?.host?.composer?.append){v.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: +`+n),v.success("已送入输入框,请确认后发送")}catch(o){v.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function we(n){Ue(n),v.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const O=c("default");function ke(){O.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{O.value=await Notification.requestPermission()}catch{}}return Ce(()=>{j(),H(),A(),me(),ke(),L=window.setInterval(()=>{A()},1500)}),Se(()=>{L!==void 0&&(window.clearInterval(L),L=void 0)}),(n,e)=>(u(),d("div",el,[l("div",ll,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",sl,[i(s(m),{disabled:E.value||V.value,onClick:j},{default:r(()=>[...e[19]||(e[19]=[a("重新读取",-1)])]),_:1},8,["disabled"]),i(s(m),{type:"primary",loading:V.value,disabled:E.value||!y.value,onClick:ae},{icon:r(()=>[i(s(g),null,{default:r(()=>[i(s(ie))]),_:1})]),default:r(()=>[e[20]||(e[20]=a(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),E.value?(u(),d("div",nl,[i(s(Pe),{size:"large"})])):q.value?(u(),d("div",tl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",il,p(q.value),1),i(s(m),{size:"small",onClick:j},{default:r(()=>[...e[22]||(e[22]=[a("重试",-1)])]),_:1})])):(u(),d("div",ol,[l("section",al,[l("header",rl,[l("span",ul,[i(s(g),{size:17},{default:r(()=>[i(s(Z))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",dl,[l("label",pl,[e[25]||(e[25]=l("span",null,[a("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(C),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",vl,[e[26]||(e[26]=l("span",null,[a("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(C),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",fl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s($),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:r(()=>[...e[28]||(e[28]=[a("GB",-1)])]),_:1},8,["value"])]),l("label",cl,[e[30]||(e[30]=l("span",null,[a("分段时间 "),l("em",null,"segment_time")],-1)),i(s(C),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",ml,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s($),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:r(()=>[...e[32]||(e[32]=[a("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",_l,[e[36]||(e[36]=l("span",null,[a("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s($),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:r(()=>[...e[35]||(e[35]=[a("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",yl,[l("header",gl,[l("span",wl,[i(s(g),{size:17},{default:r(()=>[i(s(X))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",kl,[l("label",bl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s($),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:r(()=>[...e[39]||(e[39]=[a("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",xl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(D),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Ye)},null,8,["value","options"])]),l("label",hl,[e[43]||(e[43]=l("span",null,[a("FFmpeg 路径(录制引擎) "),l("em",null,"ffmpeg_path")],-1)),i(s(C),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",Cl,[l("header",Sl,[l("span",zl,[i(s(g),{size:17},{default:r(()=>[i(s(X))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Ml,[l("label",Bl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(D),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(Qe)},null,8,["value","options"])]),l("label",El,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(D),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Xe)},null,8,["value","options"])]),l("div",Ul,[e[47]||(e[47]=l("span",null,[a("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Q),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Al,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Q),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Nl,[e[51]||(e[51]=l("span",null,[a("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Q),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Ol,[l("header",Dl,[l("span",Pl,[i(s(g),{size:17},{default:r(()=>[i(s($e))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Fl,[l("label",Tl,[e[54]||(e[54]=l("span",null,[a("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(C),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",Vl,[l("header",ql,[l("span",Rl,[i(s(g),{size:17},{default:r(()=>[i(s(Z))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Il,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Ll,p(y.value?.pool1_size??"—")+" / "+p(y.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Hl,p(y.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",Gl,p(y.value?.retention_hours?y.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",$l,p(y.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",jl,[l("header",Kl,[l("span",Jl,[i(s(g),{size:17},{default:r(()=>[i(s(X))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Wl,[l("div",Yl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,p(de(s(f)?.state)),1)]),s(f)?.state==="ready"?(u(),d("div",Ql,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Xl,p(s(f).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Zl,p(s(f).path||"—"),1)])])):s(f)?.error?(u(),d("div",es,p(s(f).error),1)):b("",!0),s(te)?b("",!0):(u(),d("div",ls,"引擎下载尚未配置")),s(f)?.state==="downloading"||s(f)?.state==="verifying"?(u(),d("div",ss,[l("div",ns,[l("div",{class:"progress-fill",style:ze({width:se()+"%"})},null,4)]),l("span",ts,p(se())+"%",1),l("span",is,p(J(s(f)?.bytesDownloaded||0))+" / "+p(J(s(f)?.bytesTotal||0)),1),l("span",os,p(pe()),1)])):b("",!0),l("div",as,[s(te)?s(f)?.state==="missing"?(u(),B(s(m),{key:1,type:"primary",onClick:ne},{default:r(()=>[...e[66]||(e[66]=[a("下载引擎",-1)])]),_:1})):s(f)?.state==="failed"?(u(),B(s(m),{key:2,type:"primary",onClick:ne},{default:r(()=>[...e[67]||(e[67]=[a("重新下载",-1)])]),_:1})):s(f)?.state==="ready"?(u(),B(s(m),{key:3,onClick:fe},{default:r(()=>[...e[68]||(e[68]=[a("重新下载",-1)])]),_:1})):s(f)?.state==="downloading"||s(f)?.state==="verifying"?(u(),B(s(m),{key:4,onClick:ve},{default:r(()=>[...e[69]||(e[69]=[a("取消",-1)])]),_:1})):b("",!0):(u(),B(s(m),{key:0,type:"primary",disabled:""},{default:r(()=>[...e[65]||(e[65]=[a("下载引擎",-1)])]),_:1})),i(s(m),{quaternary:"",onClick:e[15]||(e[15]=o=>K.value=!K.value)},{default:r(()=>[...e[70]||(e[70]=[a("手动安装说明",-1)])]),_:1})]),K.value?(u(),d("ol",rs,[...e[71]||(e[71]=[l("li",null,[a("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),a(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):b("",!0)])]),l("section",us,[l("header",ds,[l("span",ps,[i(s(g),{size:17},{default:r(()=>[i(s(Z))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",vs,[l("label",fs,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(D),{value:R.value,"onUpdate:value":e[16]||(e[16]=o=>R.value=o),options:s(Ze),disabled:!h.value},null,8,["value","options","disabled"])]),l("label",cs,[e[74]||(e[74]=l("span",null,"biliup-cli 路径(只读)",-1)),i(s(C),{value:le.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!h.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[a(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),a(" 的 "),l("code",null,"binaryPath"),a(" 字段。 ")],-1))]),l("label",ms,[e[76]||(e[76]=l("span",null,"FFmpeg 路径(Sidecar)",-1)),i(s(C),{value:I.value,"onUpdate:value":e[17]||(e[17]=o=>I.value=o),placeholder:"留空使用系统 PATH",disabled:!h.value},null,8,["value","disabled"])])]),l("div",_s,[i(s(m),{loading:k.value,onClick:H},{icon:r(()=>[i(s(g),null,{default:r(()=>[i(s(Ie))]),_:1})]),default:r(()=>[e[77]||(e[77]=a(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(m),{type:"primary",loading:k.value,disabled:!h.value,onClick:re},{icon:r(()=>[i(s(g),null,{default:r(()=>[i(s(ie))]),_:1})]),default:r(()=>[e[78]||(e[78]=a(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(m),{loading:k.value,disabled:!h.value,onClick:ue},{default:r(()=>[...e[79]||(e[79]=[a(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(m),{quaternary:"",onClick:e[18]||(e[18]=o=>G.value=!G.value)},{icon:r(()=>[i(s(g),null,{default:r(()=>[i(s(De))]),_:1})]),default:r(()=>[a(" "+p(G.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),U.value?(u(),d("div",ys,p(U.value),1)):b("",!0),z.value?(u(),d("div",gs,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ws,p(z.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,p(z.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",ks,p(z.value.pid??"—"),1)])])):b("",!0),G.value?(u(),d("div",bs,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),N.value?(u(),d("div",xs,p(N.value),1)):b("",!0),W.value?(u(),d("div",hs,"读取中…")):(u(),d("pre",Cs,p(w.value||"暂无诊断信息"),1)),l("div",Ss,[i(s(m),{size:"small",disabled:!w.value,onClick:_e},{default:r(()=>[...e[83]||(e[83]=[a("本地导出",-1)])]),_:1},8,["disabled"]),i(s(m),{size:"small",disabled:!w.value,onClick:ye},{default:r(()=>[...e[84]||(e[84]=[a("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):b("",!0),l("p",zs,[e[87]||(e[87]=a(" 通知权限: ",-1)),O.value==="granted"?(u(),d(Y,{key:0},[a("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):O.value==="denied"?(u(),d(Y,{key:1},[a("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):O.value==="unsupported"?(u(),d(Y,{key:2},[a("当前环境不支持系统通知。")],64)):(u(),B(s(m),{key:3,size:"tiny",quaternary:"",onClick:be},{default:r(()=>[...e[86]||(e[86]=[a("开启系统通知",-1)])]),_:1}))])]),l("section",Ms,[l("header",Bs,[l("span",Es,[i(s(g),{size:17},{default:r(()=>[i(s(He))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",Us,[l("label",As,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(D),{value:s(Me),options:ge,"onUpdate:value":we},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),Js=Ae(Ns,[["__scopeId","data-v-55cf96a7"]]);export{Js as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CiZee7qJ.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CiZee7qJ.css new file mode 100644 index 00000000..84b72a8f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CiZee7qJ.css @@ -0,0 +1 @@ +.loading[data-v-55cf96a7]{display:grid;place-items:center;padding:90px 0}.sections[data-v-55cf96a7]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-55cf96a7]{padding:20px 22px 22px}.sec-head[data-v-55cf96a7]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-55cf96a7]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-55cf96a7]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-55cf96a7]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-55cf96a7]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-55cf96a7]{color:var(--muted)}.sec-head h2[data-v-55cf96a7]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-55cf96a7]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-55cf96a7]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-55cf96a7]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-55cf96a7]{grid-column:1 / -1}.field>span[data-v-55cf96a7]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-55cf96a7]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-55cf96a7]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-55cf96a7]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-55cf96a7]{grid-column:1 / -1}.readonly[data-v-55cf96a7]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-55cf96a7]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-55cf96a7]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-55cf96a7]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-55cf96a7]{font-size:13px;font-weight:600}.error-panel[data-v-55cf96a7]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-55cf96a7]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-55cf96a7]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-55cf96a7]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-55cf96a7]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-55cf96a7]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-55cf96a7]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-55cf96a7]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-55cf96a7]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}.engine-install[data-v-55cf96a7]{display:flex;flex-direction:column;gap:10px}.engine-status-row[data-v-55cf96a7]{display:flex;align-items:center;gap:10px;font-size:12.5px}.engine-status-row span[data-v-55cf96a7]{color:var(--muted)}.engine-status-row b[data-v-55cf96a7]{color:var(--text, #e6f1f5)}.engine-detail[data-v-55cf96a7]{display:grid;grid-template-columns:1fr 2fr;gap:8px 12px;font-size:11.5px}.engine-detail>div[data-v-55cf96a7]{display:flex;flex-direction:column;gap:4px}.engine-detail span[data-v-55cf96a7]{color:var(--muted)}.engine-detail b[data-v-55cf96a7]{overflow-wrap:anywhere}.engine-progress[data-v-55cf96a7]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--muted)}.progress-track[data-v-55cf96a7]{flex:1 1 180px;height:6px;border-radius:99px;overflow:hidden;background:#94c5d61f}.progress-fill[data-v-55cf96a7]{height:100%;background:var(--accent, #2dd4bf);transition:width .2s ease}.manual-list[data-v-55cf96a7]{margin:4px 0 0;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}@media(max-width:640px){.fields[data-v-55cf96a7],.readonly[data-v-55cf96a7],.engine-status[data-v-55cf96a7]{grid-template-columns:1fr}.section[data-v-55cf96a7]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Dcoelb-a.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Dcoelb-a.js deleted file mode 100644 index 51ffa75e..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Dcoelb-a.js +++ /dev/null @@ -1,3 +0,0 @@ -import{I as h}from"./Input-v4sTQ7Pz.js";import{d as F,o as r,c as f,y as he,a as l,ao as P,aV as oe,b as Ce,A as Se,e as i,w as u,u as s,B as _,t as c,f as a,g as w,n as ze,i as A,F as W,bh as Me,r as m,J as Ee,ap as Ue,bi as Be}from"./index-Dewca6JL.js";import{S as O}from"./Select-Cl5vTXvX.js";import{N as y,_ as Ne}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as Ae}from"./use-message-DoP8RQDr.js";import{I as G,D as Oe}from"./DocumentTextOutline-YbRT-tSM.js";import{S as De}from"./Spin-BbqDP5dl.js";import{S as Y}from"./Switch-BcQ8noQd.js";import{E as ne,a as te,g as Pe,s as Fe,c as Ve}from"./engine-Uo85WSlp.js";import{e as p}from"./engine-state-BXjEZp_d.js";import{v as qe}from"./filename-template-DBJXvN0y.js";import{e as x,i as D}from"./runtime-bridge-DmDzFGpU.js";import{V as Q}from"./VideocamOutline-EiwVCUcb.js";import{R as Ie}from"./RefreshOutline-AM6fn2f1.js";import"./use-compitable-CcF_TVW8.js";const Re={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Te=F({name:"ColorPaletteOutline",render:function(v,d){return r(),f("svg",Re,d[0]||(d[0]=[he('',6)]))}}),Le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=F({name:"KeyOutline",render:function(v,d){return r(),f("svg",Le,d[0]||(d[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=F({name:"SaveOutline",render:function(v,d){return r(),f("svg",Ge,d[0]||(d[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},X=F({name:"ServerOutline",render:function(v,d){return r(),f("svg",je,d[0]||(d[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),$e=()=>P("/v1/configuration"),Ke=C=>oe("/v1/configuration",C),Je=[{label:"FFmpeg",value:"ffmpeg"},{label:"Stream Gears(推荐,边录边传)",value:"stream-gears"},{label:"Streamlink",value:"streamlink"},{label:"同步下载器 sync-downloader",value:"sync-downloader"},{label:"Mesio",value:"mesio"}],We=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Ye=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Qe=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],Xe={class:"page"},Ze={class:"page-head"},el={class:"toolbar"},ll={key:0,class:"loading"},sl={key:1,class:"error-panel"},nl={class:"error-msg"},tl={key:2,class:"sections"},il={class:"section panel"},ol={class:"sec-head"},al={class:"sec-icon accent"},ul={class:"fields"},rl={class:"field wide"},dl={class:"field wide"},pl={class:"field"},vl={class:"field"},fl={class:"field"},cl={class:"field"},ml={class:"section panel"},_l={class:"sec-head"},yl={class:"sec-icon cyan"},gl={class:"fields"},kl={class:"field"},wl={class:"field"},bl={class:"field wide"},xl={class:"section panel"},hl={class:"sec-head"},Cl={class:"sec-icon live"},Sl={class:"fields"},zl={class:"field"},Ml={class:"field"},El={class:"field switch-field"},Ul={class:"field switch-field"},Bl={class:"field switch-field"},Nl={class:"section panel"},Al={class:"sec-head"},Ol={class:"sec-icon live"},Dl={class:"fields"},Pl={class:"field wide"},Fl={class:"section panel"},Vl={class:"sec-head"},ql={class:"sec-icon muted"},Il={class:"readonly"},Rl={class:"mono"},Tl={class:"mono"},Ll={class:"mono"},Hl={class:"mono"},Gl={class:"section panel"},jl={class:"sec-head"},$l={class:"sec-icon cyan"},Kl={class:"engine-install"},Jl={class:"engine-status-row"},Wl={key:0,class:"readonly engine-detail"},Yl={class:"mono"},Ql={class:"mono"},Xl={key:1,class:"inline-hint"},Zl={key:2,class:"inline-hint"},es={key:3,class:"engine-progress"},ls={class:"progress-track"},ss={class:"mono"},ns={class:"mono"},ts={class:"mono"},is={class:"support-actions"},os={key:4,class:"manual-list"},as={class:"section panel"},us={class:"sec-head"},rs={class:"sec-icon accent"},ds={class:"fields"},ps={class:"field wide"},vs={class:"field wide"},fs={class:"field wide"},cs={class:"support-actions"},ms={key:0,class:"inline-hint"},_s={key:1,class:"readonly engine-status"},ys={class:"mono"},gs={class:"mono"},ks={key:2,class:"diagnostic-block"},ws={key:0,class:"inline-error"},bs={key:1,class:"inline-hint"},xs={key:2,class:"diag-preview"},hs={class:"support-actions"},Cs={class:"support-note"},Ss={class:"section panel"},zs={class:"sec-head"},Ms={class:"sec-icon cyan"},Es={class:"fields"},Us={class:"field wide"},Bs=F({__name:"SettingsView",setup(C){const v=Ae(),d=m(null),M=m(!0),V=m(!1),q=m(""),t=Ee({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function Z(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function j(){M.value=!0,q.value="";try{d.value=await $e(),Z(d.value)}catch(n){q.value=n instanceof Error?n.message:"读取配置失败"}finally{M.value=!1}}async function ae(){if(!d.value)return;const n=qe(t.filename_prefix);if(n){v.error(n);return}V.value=!0;try{const e={...d.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await Ke(e);d.value=o,Z(o),v.success("设置已保存并生效")}catch(e){v.error(x(e))}finally{V.value=!1}}const S=m(null),I=m("sidecar"),ee=m(""),R=m(""),k=m(!1),E=m(""),b=m(!0),$=m(!1);let T;async function L(){if(!D()){b.value=!1,E.value="引擎连接模式仅在 MiniApp 中可用";return}k.value=!0,E.value="";try{const[n,e]=await Promise.all([P("/_miniapp/runtime-status"),P("/_miniapp/connection-config")]);S.value=n,I.value=e.mode==="remote"?"remote":"sidecar",ee.value=e.binaryPath??"",R.value=e.ffmpegPath??"",b.value=!0}catch(n){S.value=null,b.value=!1,E.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{k.value=!1}}async function ue(){if(D()){k.value=!0;try{await oe("/_miniapp/connection-config",{mode:I.value,ffmpegPath:R.value}),v.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await L()}catch(n){v.error(x(n))}finally{k.value=!1}}}async function re(){if(D()){k.value=!0;try{await Ue("/_miniapp/engine/restart"),v.success("引擎重启指令已发送"),await L()}catch(n){v.error(x(n))}finally{k.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function K(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,z=0;for(;o>=1024&&z0?K(n)+"/s":"—"}async function U(){if(D())try{p.value=await Pe()}catch{p.value=null}}async function se(){try{const n=await Fe();!n.ok&&n.error&&v.error(n.error),await U()}catch(n){v.error(x(n))}}async function ve(){try{await Ve(),await U()}catch(n){v.error(x(n))}}async function fe(){await U();const n=p.value;if(!n){v.error("无法读取引擎状态");return}n.state==="ready"&&n.version===te?v.info("当前已是最新版本"):n.state==="ready"?v.info("发现新版本 "+te+",仍需点击下载才会安装"):v.info("引擎尚未就绪,请先下载或手动安装")}const g=m(""),J=m(!1),B=m(""),H=m(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",z=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+z+xe}async function me(){if(B.value="",!D()){g.value="",B.value="诊断日志仅在 MiniApp 中可用";return}J.value=!0;try{const[n,e]=await Promise.all([P("/_miniapp/diagnostics"),P("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?g.value=o.map(ce).join(` -`):e?.lastError?g.value="最近错误:"+e.lastError:g.value="暂无最近错误记录"}catch(n){B.value=x(n),g.value=""}finally{J.value=!1}}function _e(){if(!g.value)return;const n=new Blob([g.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function ye(){const n=g.value.trim();if(!n)return;const e=window.miniapp;if(!e?.host?.composer?.append){v.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: -`+n),v.success("已送入输入框,请确认后发送")}catch(o){v.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function ke(n){Be(n),v.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const N=m("default");function we(){N.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{N.value=await Notification.requestPermission()}catch{}}return Ce(()=>{j(),L(),U(),me(),we(),T=window.setInterval(()=>{U()},1500)}),Se(()=>{T!==void 0&&(window.clearInterval(T),T=void 0)}),(n,e)=>(r(),f("div",Xe,[l("div",Ze,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",el,[i(s(_),{disabled:M.value||V.value,onClick:j},{default:u(()=>[...e[19]||(e[19]=[a("重新读取",-1)])]),_:1},8,["disabled"]),i(s(_),{type:"primary",loading:V.value,disabled:M.value||!d.value,onClick:ae},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(ie))]),_:1})]),default:u(()=>[e[20]||(e[20]=a(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),M.value?(r(),f("div",ll,[i(s(De),{size:"large"})])):q.value?(r(),f("div",sl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",nl,c(q.value),1),i(s(_),{size:"small",onClick:j},{default:u(()=>[...e[22]||(e[22]=[a("重试",-1)])]),_:1})])):(r(),f("div",tl,[l("section",il,[l("header",ol,[l("span",al,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",ul,[l("label",rl,[e[25]||(e[25]=l("span",null,[a("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(h),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",dl,[e[26]||(e[26]=l("span",null,[a("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(h),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",pl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s(G),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:u(()=>[...e[28]||(e[28]=[a("GB",-1)])]),_:1},8,["value"])]),l("label",vl,[e[30]||(e[30]=l("span",null,[a("分段时间 "),l("em",null,"segment_time")],-1)),i(s(h),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",fl,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s(G),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:u(()=>[...e[32]||(e[32]=[a("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",cl,[e[36]||(e[36]=l("span",null,[a("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s(G),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:u(()=>[...e[35]||(e[35]=[a("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",ml,[l("header",_l,[l("span",yl,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",gl,[l("label",kl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s(G),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:u(()=>[...e[39]||(e[39]=[a("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",wl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(O),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Je)},null,8,["value","options"])]),l("label",bl,[e[43]||(e[43]=l("span",null,[a("FFmpeg 路径(录制引擎) "),l("em",null,"ffmpeg_path")],-1)),i(s(h),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",xl,[l("header",hl,[l("span",Cl,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Sl,[l("label",zl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(O),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(We)},null,8,["value","options"])]),l("label",Ml,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(O),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Ye)},null,8,["value","options"])]),l("div",El,[e[47]||(e[47]=l("span",null,[a("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Y),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Ul,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Y),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Bl,[e[51]||(e[51]=l("span",null,[a("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Y),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Nl,[l("header",Al,[l("span",Ol,[i(s(y),{size:17},{default:u(()=>[i(s(He))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Dl,[l("label",Pl,[e[54]||(e[54]=l("span",null,[a("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(h),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",Fl,[l("header",Vl,[l("span",ql,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Il,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Rl,c(d.value?.pool1_size??"—")+" / "+c(d.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Tl,c(d.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",Ll,c(d.value?.retention_hours?d.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",Hl,c(d.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Gl,[l("header",jl,[l("span",$l,[i(s(y),{size:17},{default:u(()=>[i(s(Q))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Kl,[l("div",Jl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,c(de(s(p)?.state)),1)]),s(p)?.state==="ready"?(r(),f("div",Wl,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Yl,c(s(p).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Ql,c(s(p).path||"—"),1)])])):s(p)?.error?(r(),f("div",Xl,c(s(p).error),1)):w("",!0),s(ne)?w("",!0):(r(),f("div",Zl,"引擎下载尚未配置")),s(p)?.state==="downloading"||s(p)?.state==="verifying"?(r(),f("div",es,[l("div",ls,[l("div",{class:"progress-fill",style:ze({width:le()+"%"})},null,4)]),l("span",ss,c(le())+"%",1),l("span",ns,c(K(s(p)?.bytesDownloaded||0))+" / "+c(K(s(p)?.bytesTotal||0)),1),l("span",ts,c(pe()),1)])):w("",!0),l("div",is,[s(ne)?s(p)?.state==="missing"?(r(),A(s(_),{key:1,type:"primary",onClick:se},{default:u(()=>[...e[66]||(e[66]=[a("下载引擎",-1)])]),_:1})):s(p)?.state==="failed"?(r(),A(s(_),{key:2,type:"primary",onClick:se},{default:u(()=>[...e[67]||(e[67]=[a("重新下载",-1)])]),_:1})):s(p)?.state==="downloading"||s(p)?.state==="verifying"?(r(),A(s(_),{key:3,onClick:ve},{default:u(()=>[...e[68]||(e[68]=[a("取消",-1)])]),_:1})):w("",!0):(r(),A(s(_),{key:0,type:"primary",disabled:""},{default:u(()=>[...e[65]||(e[65]=[a("下载引擎",-1)])]),_:1})),i(s(_),{disabled:s(p)?.state==="downloading"||s(p)?.state==="verifying"||s(p)?.state==="unsupported",onClick:fe},{default:u(()=>[...e[69]||(e[69]=[a("检查更新",-1)])]),_:1},8,["disabled"]),i(s(_),{quaternary:"",onClick:e[15]||(e[15]=o=>$.value=!$.value)},{default:u(()=>[...e[70]||(e[70]=[a("手动安装说明",-1)])]),_:1})]),$.value?(r(),f("ol",os,[...e[71]||(e[71]=[l("li",null,[a("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),a(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):w("",!0)])]),l("section",as,[l("header",us,[l("span",rs,[i(s(y),{size:17},{default:u(()=>[i(s(X))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",ds,[l("label",ps,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(O),{value:I.value,"onUpdate:value":e[16]||(e[16]=o=>I.value=o),options:s(Qe),disabled:!b.value},null,8,["value","options","disabled"])]),l("label",vs,[e[74]||(e[74]=l("span",null,"biliup-cli 路径(只读)",-1)),i(s(h),{value:ee.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!b.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[a(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),a(" 的 "),l("code",null,"binaryPath"),a(" 字段。 ")],-1))]),l("label",fs,[e[76]||(e[76]=l("span",null,"FFmpeg 路径(Sidecar)",-1)),i(s(h),{value:R.value,"onUpdate:value":e[17]||(e[17]=o=>R.value=o),placeholder:"留空使用系统 PATH",disabled:!b.value},null,8,["value","disabled"])])]),l("div",cs,[i(s(_),{loading:k.value,onClick:L},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(Ie))]),_:1})]),default:u(()=>[e[77]||(e[77]=a(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(_),{type:"primary",loading:k.value,disabled:!b.value,onClick:ue},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(ie))]),_:1})]),default:u(()=>[e[78]||(e[78]=a(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(_),{loading:k.value,disabled:!b.value,onClick:re},{default:u(()=>[...e[79]||(e[79]=[a(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(_),{quaternary:"",onClick:e[18]||(e[18]=o=>H.value=!H.value)},{icon:u(()=>[i(s(y),null,{default:u(()=>[i(s(Oe))]),_:1})]),default:u(()=>[a(" "+c(H.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),E.value?(r(),f("div",ms,c(E.value),1)):w("",!0),S.value?(r(),f("div",_s,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ys,c(S.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,c(S.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",gs,c(S.value.pid??"—"),1)])])):w("",!0),H.value?(r(),f("div",ks,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),B.value?(r(),f("div",ws,c(B.value),1)):w("",!0),J.value?(r(),f("div",bs,"读取中…")):(r(),f("pre",xs,c(g.value||"暂无诊断信息"),1)),l("div",hs,[i(s(_),{size:"small",disabled:!g.value,onClick:_e},{default:u(()=>[...e[83]||(e[83]=[a("本地导出",-1)])]),_:1},8,["disabled"]),i(s(_),{size:"small",disabled:!g.value,onClick:ye},{default:u(()=>[...e[84]||(e[84]=[a("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):w("",!0),l("p",Cs,[e[87]||(e[87]=a(" 通知权限: ",-1)),N.value==="granted"?(r(),f(W,{key:0},[a("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):N.value==="denied"?(r(),f(W,{key:1},[a("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):N.value==="unsupported"?(r(),f(W,{key:2},[a("当前环境不支持系统通知。")],64)):(r(),A(s(_),{key:3,size:"tiny",quaternary:"",onClick:be},{default:u(()=>[...e[86]||(e[86]=[a("开启系统通知",-1)])]),_:1}))])]),l("section",Ss,[l("header",zs,[l("span",Ms,[i(s(y),{size:17},{default:u(()=>[i(s(Te))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",Es,[l("label",Us,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(O),{value:s(Me),options:ge,"onUpdate:value":ke},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),$s=Ne(Bs,[["__scopeId","data-v-07cc3ddd"]]);export{$s as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-T1R_3ITH.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-T1R_3ITH.css deleted file mode 100644 index 9b30bd6d..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-T1R_3ITH.css +++ /dev/null @@ -1 +0,0 @@ -.loading[data-v-07cc3ddd]{display:grid;place-items:center;padding:90px 0}.sections[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-07cc3ddd]{padding:20px 22px 22px}.sec-head[data-v-07cc3ddd]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-07cc3ddd]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-07cc3ddd]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-07cc3ddd]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-07cc3ddd]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-07cc3ddd]{color:var(--muted)}.sec-head h2[data-v-07cc3ddd]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-07cc3ddd]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-07cc3ddd]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-07cc3ddd]{grid-column:1 / -1}.field>span[data-v-07cc3ddd]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-07cc3ddd]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-07cc3ddd]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-07cc3ddd]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-07cc3ddd]{grid-column:1 / -1}.readonly[data-v-07cc3ddd]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-07cc3ddd]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-07cc3ddd]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-07cc3ddd]{font-size:13px;font-weight:600}.error-panel[data-v-07cc3ddd]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-07cc3ddd]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-07cc3ddd]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-07cc3ddd]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-07cc3ddd]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-07cc3ddd]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-07cc3ddd]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-07cc3ddd]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-07cc3ddd]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}.engine-install[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:10px}.engine-status-row[data-v-07cc3ddd]{display:flex;align-items:center;gap:10px;font-size:12.5px}.engine-status-row span[data-v-07cc3ddd]{color:var(--muted)}.engine-status-row b[data-v-07cc3ddd]{color:var(--text, #e6f1f5)}.engine-detail[data-v-07cc3ddd]{display:grid;grid-template-columns:1fr 2fr;gap:8px 12px;font-size:11.5px}.engine-detail>div[data-v-07cc3ddd]{display:flex;flex-direction:column;gap:4px}.engine-detail span[data-v-07cc3ddd]{color:var(--muted)}.engine-detail b[data-v-07cc3ddd]{overflow-wrap:anywhere}.engine-progress[data-v-07cc3ddd]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--muted)}.progress-track[data-v-07cc3ddd]{flex:1 1 180px;height:6px;border-radius:99px;overflow:hidden;background:#94c5d61f}.progress-fill[data-v-07cc3ddd]{height:100%;background:var(--accent, #2dd4bf);transition:width .2s ease}.manual-list[data-v-07cc3ddd]{margin:4px 0 0;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}@media(max-width:640px){.fields[data-v-07cc3ddd],.readonly[data-v-07cc3ddd],.engine-status[data-v-07cc3ddd]{grid-template-columns:1fr}.section[data-v-07cc3ddd]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-CSQ6hh8U.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-ByV6k06l.js similarity index 97% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-CSQ6hh8U.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-ByV6k06l.js index 4b79be44..9db69146 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-CSQ6hh8U.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-ByV6k06l.js @@ -1,4 +1,4 @@ -import{T as ee,S as pe}from"./Select-Cl5vTXvX.js";import{I as te}from"./Input-v4sTQ7Pz.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b5 as ke,b6 as _e,b7 as xe,b8 as $e,b9 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,ba as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-Dewca6JL.js";import{C as ve}from"./CheckboxGroup-Df5112cP.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as Je}from"./use-message-DoP8RQDr.js";import{S as Ke}from"./Spin-BbqDP5dl.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-i6vXE3nl.js";import{S as et}from"./SearchOutline-r0tEsj-I.js";import{V as tt}from"./VideocamOutline-EiwVCUcb.js";import{D as me}from"./DownloadOutline-DxvLxbyx.js";import{R as rt}from"./RefreshOutline-AM6fn2f1.js";import"./use-compitable-CcF_TVW8.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} +import{T as ee,S as pe}from"./Select-CtC43ppV.js";import{I as te}from"./Input-1zXREyVM.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b4 as ke,b5 as _e,b6 as xe,b7 as $e,b8 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,b9 as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-IeQIGfOC.js";import{C as ve}from"./CheckboxGroup-DIEr6wY4.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as Je}from"./use-message-DtvhZdQK.js";import{S as Ke}from"./Spin-D2w1FlaT.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-B3mrN2nS.js";import{S as et}from"./SearchOutline-atP4ikMv.js";import{V as tt}from"./VideocamOutline-Cf83Ptp8.js";import{D as me}from"./DownloadOutline-E2iASfAS.js";import{R as rt}from"./RefreshOutline-D9KhQzcL.js";import"./use-compitable-D5WZISuP.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} a ${h},${h} 0 1 1 ${f},-100 a ${h},${h} 0 1 1 0,${O}`,M=Math.PI*2*h;return{pathString:D,pathStyle:{stroke:u==="rail"?y:typeof t.fillColor=="object"?`url(#${k.value})`:y,strokeDasharray:`${Math.min(n,100)/100*(M-z)}px ${C*8}px`,strokeDashoffset:`-${z/2}px`,transformOrigin:p?"center":void 0,transform:p?`rotate(${p}deg)`:void 0}}}const x=()=>{const n=typeof t.fillColor=="object",p=n?t.fillColor.stops[0]:"",y=n?t.fillColor.stops[1]:"";return n&&(o(),s("defs",null,[r("linearGradient",{id:k.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[r("stop",{offset:"0%","stop-color":p},null,8,it),r("stop",{offset:"100%","stop-color":y},null,8,at)],8,ot)]))};return()=>{const{fillColor:n,railColor:p,strokeWidth:y,offsetDegree:u,status:z,percentage:C,showIndicator:q,indicatorTextColor:h,unit:B,gapOffsetDegree:g,clsPrefix:f}=t,{pathString:O,pathStyle:V}=I(100,0,p,"rail"),{pathString:D,pathStyle:M}=I(C,u,n,"fill"),A=100+y;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${f}-progress-graph-circle`),style:j({transform:g?`rotate(${g}deg)`:void 0})},[(o(),s("svg",{viewBox:`0 0 ${A} ${A}`},[N(()=>x()),r("g",null,[r("path",{class:w(`${f}-progress-graph-circle-rail`),d:O,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(V)},null,14,lt)]),r("g",null,[r("path",{class:w([`${f}-progress-graph-circle-fill`,C===0&&`${f}-progress-graph-circle-fill--empty`]),d:D,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(M)},null,14,nt)])],8,st))],6)],2),q?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),role:"none"},[N(()=>c.default())],2)):(o(),s(E,{key:1},[z!=="default"?(o(),s("div",{key:0,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>ct[z]},1032,["clsPrefix"]))],2)):(o(),s("div",{key:1,class:w(`${f}-progress-text`),style:j({color:h}),role:"none"},[r("span",{class:w(`${f}-progress-text__percentage`)},[N(()=>C)],2),r("span",{class:w(`${f}-progress-text__unit`)},[N(()=>B)],2)],6))],64))])):N(()=>null)],2)}}});const dt={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ft=H({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(t,{slots:c}){const k=W(()=>K(t.height)),I=W(()=>typeof t.fillColor=="object"?`linear-gradient(to right, ${t.fillColor?.stops[0]} , ${t.fillColor?.stops[1]})`:t.fillColor),x=W(()=>t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):""),n=W(()=>t.fillBorderRadius!==void 0?K(t.fillBorderRadius):t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:p,railColor:y,railStyle:u,percentage:z,unit:C,indicatorTextColor:q,status:h,showIndicator:B,processing:g,clsPrefix:f}=t;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w([`${f}-progress-graph-line`,{[`${f}-progress-graph-line--indicator-${p}`]:!0}])},[r("div",{class:w(`${f}-progress-graph-line-rail`),style:j([{backgroundColor:y,height:k.value,borderRadius:x.value},u])},[r("div",{class:w([`${f}-progress-graph-line-fill`,g&&`${f}-progress-graph-line-fill--processing`]),style:j({maxWidth:`${t.percentage}%`,background:I.value,height:k.value,lineHeight:k.value,borderRadius:n.value})},[p==="inside"?(o(),s("div",{key:0,class:w(`${f}-progress-graph-line-indicator`),style:j({color:q})},[c.default?(o(),s(E,{key:0},[N(()=>c.default())],64)):(o(),s(E,{key:1},[N(()=>`${z}${C}`)],64))],6)):N(()=>null)],6)],6)],2)],2),B&&p==="outside"?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),style:j({color:q}),role:"none"},[N(()=>c.default())],6)):(o(),s(E,{key:1},[h==="default"?(o(),s("div",{key:0,role:"none",class:w(`${f}-progress-icon ${f}-progress-icon--as-text`),style:j({color:q})},[N(()=>z),N(()=>C)],6)):(o(),s("div",{key:1,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>dt[h]},1032,["clsPrefix"]))],2))],64))])):N(()=>null)],2)}}});const pt=["id"],gt=["stop-color"],vt=["stop-color"],ht=["d","stroke-width"],yt=["d","stroke-width"],mt=["viewBox"];function be(t,c,k=100){return`m ${k/2} ${k/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var bt=H({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(t,{slots:c}){const k=W(()=>t.percentage.map((x,n)=>`${Math.PI*x/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*n)-t.circleGap*n)*2}, ${t.viewBoxWidth*8}`)),I=(x,n)=>{const p=t.fillColor[n],y=typeof p=="object"?p.stops[0]:"",u=typeof p=="object"?p.stops[1]:"";return typeof t.fillColor[n]=="object"&&(o(),s("linearGradient",{id:`gradient-${n}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},[r("stop",{offset:"0%","stop-color":y},null,8,gt),r("stop",{offset:"100%","stop-color":u},null,8,vt)],8,pt))};return()=>{const{viewBoxWidth:x,strokeWidth:n,circleGap:p,showIndicator:y,fillColor:u,railColor:z,railStyle:C,percentage:q,clsPrefix:h}=t;return o(),s("div",{class:w(`${h}-progress-content`),role:"none"},[r("div",{class:w(`${h}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${h}-progress-graph-circle`)},[(o(),s("svg",{viewBox:`0 0 ${x} ${x}`},[r("defs",null,[N(()=>q.map((B,g)=>I(B,g)))]),N(()=>q.map((B,g)=>(o(),s("g",{key:g},[r("path",{class:w(`${h}-progress-graph-circle-rail`),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j([{strokeDashoffset:0,stroke:z[g]},C[g]])},null,14,ht),r("path",{class:w([`${h}-progress-graph-circle-fill`,B===0&&`${h}-progress-graph-circle-fill--empty`]),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j({strokeDasharray:k.value[g],strokeDashoffset:0,stroke:typeof u[g]=="object"?`url(#gradient-${g})`:u[g]})},null,14,yt)]))))],8,mt))],2)],2),y&&c.default?(o(),s("div",{key:0},[r("div",{class:w(`${h}-progress-text`)},[N(()=>c.default())],2)])):N(()=>null)],2)}}}),wt=re([_("progress",{display:"inline-block"},[_("progress-icon",` color: var(--n-icon-color); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbqDP5dl.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-D2w1FlaT.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbqDP5dl.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-D2w1FlaT.js index 2daa4753..d4f5bf56 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-BbqDP5dl.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-D2w1FlaT.js @@ -1,4 +1,4 @@ -import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-Dewca6JL.js";import{a as K}from"./use-compitable-CcF_TVW8.js";var L=b([b("@keyframes spin-rotate",` +import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-IeQIGfOC.js";import{a as K}from"./use-compitable-D5WZISuP.js";var L=b([b("@keyframes spin-rotate",` from { transform: rotate(0); } diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Dpzh-nNm.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BS7njuEF.js similarity index 97% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Dpzh-nNm.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BS7njuEF.js index b1c8571e..90001708 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-Dpzh-nNm.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BS7njuEF.js @@ -1,4 +1,4 @@ -import{I as ce}from"./Input-v4sTQ7Pz.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-Dewca6JL.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{F as Kt,a as me,u as At,A as Je}from"./AddOutline-RKRa1cGv.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-DoP8RQDr.js";import{S as jt}from"./Spin-BbqDP5dl.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-X3-6UyRF.js";import{T as Vt,P as qt}from"./PulseOutline-B76LUJRI.js";import{h as Xe,c as Gt,T as Pe,S as Jt}from"./Select-Cl5vTXvX.js";import{u as Xt}from"./use-compitable-CcF_TVW8.js";import{a as je}from"./engine-state-BXjEZp_d.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-Bqfjqsa8.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{v as pn}from"./filename-template-DBJXvN0y.js";import{C as vn}from"./CheckboxGroup-Df5112cP.js";import{S as fn}from"./Switch-BcQ8noQd.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-EiwVCUcb.js";import{R as Ye}from"./RefreshOutline-AM6fn2f1.js";import{S as wn}from"./SearchOutline-r0tEsj-I.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Xe({target:B},"dropdownOption")&&!Xe({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` +import{I as ce}from"./Input-1zXREyVM.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-IeQIGfOC.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-BhKLKalr.js";import{S as Kt,u as At}from"./Switch-CM0aqR3N.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-DtvhZdQK.js";import{S as jt}from"./Spin-D2w1FlaT.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-DLXMt06R.js";import{T as Vt,P as qt}from"./PulseOutline-CDhfZ1-d.js";import{h as Je,c as Gt,T as Pe,S as Jt}from"./Select-CtC43ppV.js";import{u as Xt}from"./use-compitable-D5WZISuP.js";import{a as je}from"./engine-state-C08MtSql.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-959wQihJ.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{F as pn,a as me,A as Xe}from"./AddOutline-BBW-Am9Z.js";import{v as vn}from"./filename-template-DBJXvN0y.js";import{C as fn}from"./CheckboxGroup-DIEr6wY4.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-Cf83Ptp8.js";import{R as Ye}from"./RefreshOutline-D9KhQzcL.js";import{S as wn}from"./SearchOutline-atP4ikMv.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Je({target:B},"dropdownOption")&&!Je({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` transform-origin: var(--v-transform-origin); background-color: var(--n-color); border-radius: var(--n-border-radius); @@ -114,4 +114,4 @@ import{I as ce}from"./Input-v4sTQ7Pz.js";import{G as mt,H as ht,A as Ie,I as wt, padding: var(--n-padding); `),ae("scrollable",[se("content",` padding: var(--n-padding); - `)])]);const Rn={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:String,inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},zn=Object.keys(ot),Nn={...ot,...Rn,...Oe.props};var In=V({name:"Dropdown",inheritAttrs:!1,props:Nn,setup(e){const s=_(!1),t=Xt(le(e,"show"),s),i=x(()=>{const{keyField:w,childrenField:I}=e;return Gt(e.options,{getKey(A){return A[w]},getDisabled(A){return A.disabled===!0},getIgnored(A){return A.type==="divider"||A.type==="render"},getChildren(A){return A[I]}})}),r=x(()=>i.value.treeNodes),d=_(null),b=_(null),p=_(null),v=x(()=>d.value??b.value??p.value??null),$=x(()=>i.value.getPath(v.value).keyPath),k=x(()=>i.value.getPath(e.value).keyPath),z=$e(()=>e.keyboard&&t.value);yn({keydown:{ArrowUp:{prevent:!0,handler:Z},ArrowRight:{prevent:!0,handler:H},ArrowDown:{prevent:!0,handler:te},ArrowLeft:{prevent:!0,handler:R},Enter:{prevent:!0,handler:oe},Escape:N}},z);const{mergedClsPrefixRef:f,inlineThemeDisabled:T,mergedComponentPropsRef:M}=tt(e),O=x(()=>e.size||M?.value?.Dropdown?.size||"medium"),F=Oe("Dropdown","-dropdown",Pn,Pt,e,f);he(Ee,{labelFieldRef:le(e,"labelField"),childrenFieldRef:le(e,"childrenField"),renderLabelRef:le(e,"renderLabel"),renderIconRef:le(e,"renderIcon"),hoverKeyRef:d,keyboardKeyRef:b,lastToggledSubmenuKeyRef:p,pendingKeyPathRef:$,activeKeyPathRef:k,animatedRef:le(e,"animated"),mergedShowRef:t,nodePropsRef:le(e,"nodeProps"),renderOptionRef:le(e,"renderOption"),menuPropsRef:le(e,"menuProps"),doSelect:D,doUpdateShow:K}),Be(t,w=>{!e.animated&&!w&&W()});function D(w,I){const{onSelect:A}=e;A&&Ke(A,w,I)}function K(w){const{"onUpdate:show":I,onUpdateShow:A}=e;I&&Ke(I,w),A&&Ke(A,w),s.value=w}function W(){d.value=null,b.value=null,p.value=null}function N(){K(!1)}function R(){P("left")}function H(){P("right")}function Z(){P("up")}function te(){P("down")}function oe(){const w=Y();w?.isLeaf&&t.value&&(D(w.key,w.rawNode),K(!1))}function Y(){const{value:w}=i,{value:I}=v;return!w||I===null?null:w.getNode(I)??null}function P(w){const{value:I}=v,{value:{getFirstAvailableNode:A}}=i;let h=null;if(I===null){const B=A();B!==null&&(h=B.key)}else{const B=Y();if(B){let q;switch(w){case"down":q=B.getNext();break;case"up":q=B.getPrev();break;case"right":q=B.getChild();break;case"left":q=B.getParent()}q&&(h=q.key)}}h!==null&&(d.value=null,b.value=h)}const a=x(()=>{const{inverted:w}=e,I=O.value,{common:{cubicBezierEaseInOut:A},self:h}=F.value,{padding:B,dividerColor:q,borderRadius:re,optionOpacityDisabled:C,[ie("optionIconSuffixWidth",I)]:m,[ie("optionSuffixWidth",I)]:U,[ie("optionIconPrefixWidth",I)]:xe,[ie("optionPrefixWidth",I)]:ct,[ie("fontSize",I)]:pt,[ie("optionHeight",I)]:vt,[ie("optionIconSize",I)]:ft}=h,j={"--n-bezier":A,"--n-font-size":pt,"--n-padding":B,"--n-border-radius":re,"--n-option-height":vt,"--n-option-prefix-width":ct,"--n-option-icon-prefix-width":xe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":m,"--n-option-icon-size":ft,"--n-divider-color":q,"--n-option-opacity-disabled":C};return w?(j["--n-color"]=h.colorInverted,j["--n-option-color-hover"]=h.optionColorHoverInverted,j["--n-option-color-active"]=h.optionColorActiveInverted,j["--n-option-text-color"]=h.optionTextColorInverted,j["--n-option-text-color-hover"]=h.optionTextColorHoverInverted,j["--n-option-text-color-active"]=h.optionTextColorActiveInverted,j["--n-option-text-color-child-active"]=h.optionTextColorChildActiveInverted,j["--n-prefix-color"]=h.prefixColorInverted,j["--n-suffix-color"]=h.suffixColorInverted,j["--n-group-header-text-color"]=h.groupHeaderTextColorInverted):(j["--n-color"]=h.color,j["--n-option-color-hover"]=h.optionColorHover,j["--n-option-color-active"]=h.optionColorActive,j["--n-option-text-color"]=h.optionTextColor,j["--n-option-text-color-hover"]=h.optionTextColorHover,j["--n-option-text-color-active"]=h.optionTextColorActive,j["--n-option-text-color-child-active"]=h.optionTextColorChildActive,j["--n-prefix-color"]=h.prefixColor,j["--n-suffix-color"]=h.suffixColor,j["--n-group-header-text-color"]=h.groupHeaderTextColor),j}),n=T?Rt("dropdown",x(()=>`${O.value[0]}${e.inverted?"i":""}`),a,e):void 0;return{mergedClsPrefix:f,mergedTheme:F,mergedSize:O,tmNodes:r,mergedShow:t,handleAfterLeave:()=>{e.animated&&W()},doUpdateShow:K,cssVars:T?void 0:a,themeClass:n?.themeClass,onRender:n?.onRender}},render(){const e=(i,r,d,b,p)=>{const{mergedClsPrefix:v,menuProps:$}=this;this.onRender?.();const k=$?.(void 0,this.tmNodes.map(f=>f.rawNode))||{},z={ref:Wt(r),class:[i,`${v}-dropdown`,`${v}-dropdown--${this.mergedSize}-size`,this.themeClass],clsPrefix:v,tmNodes:this.tmNodes,style:[...d,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:b,onMouseleave:p};return Me(it,be(this.$attrs,z,k))},{mergedTheme:s}=this,t={show:this.mergedShow,theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return l(),E(Ut,$t(this.$props,zn,t),{_:1,trigger:Qe(()=>this.$slots.default?.())},16)}});let Ae;function Bn(){if(!zt)return!0;if(Ae===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const s=e.scrollHeight===1;return document.body.removeChild(e),Ae=s}return Ae}const Mn={...Oe.props,align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}};var On=V({name:"Space",props:Mn,setup(e){const{mergedClsPrefixRef:s,mergedRtlRef:t,mergedComponentPropsRef:i}=tt(e),r=x(()=>e.size??i?.value?.Space?.size??"medium"),d=Oe("Space","-space",void 0,Mt,e,s),b=Bt("Space",t,s);return{useGap:Bn(),rtlEnabled:b,mergedClsPrefix:s,margin:x(()=>{const p=r.value;if(Array.isArray(p))return{horizontal:p[0],vertical:p[1]};if(typeof p=="number")return{horizontal:p,vertical:p};const{self:{[ie("gap",p)]:v}}=d.value,{row:$,col:k}=Ot(v);return{horizontal:qe(k),vertical:qe($)}})}},render(){const{vertical:e,reverse:s,align:t,inline:i,justify:r,itemClass:d,itemStyle:b,margin:p,wrap:v,mergedClsPrefix:$,rtlEnabled:k,useGap:z,wrapItem:f,internalUseGap:T}=this,M=Nt(gn(this),!1);if(!M.length)return null;const O=`${p.horizontal}px`,F=`${p.horizontal/2}px`,D=`${p.vertical}px`,K=`${p.vertical/2}px`,W=M.length-1,N=r.startsWith("space-");return l(),c("div",{role:"none",class:ee([`${$}-space`,k&&`${$}-space--rtl`]),style:Ve({display:i?"inline-flex":"flex",flexDirection:e&&!s?"column":e&&s?"column-reverse":!e&&s?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!v||e?"nowrap":"wrap",marginTop:z||e?"":`-${K}`,marginBottom:z||e?"":`-${K}`,alignItems:t,gap:z?`${p.vertical}px ${p.horizontal}px`:""})},[!f&&(z||T)?(l(),c(X,{key:0},[J(()=>M)],64)):(l(),c(X,{key:1},[J(()=>M.map((R,H)=>R.type===It?R:(l(),c("div",{key:1,role:"none",class:ee(d),style:Ve([b,{maxWidth:"100%"},z?"":e?{marginBottom:H!==W?D:""}:k?{marginLeft:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginRight:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}:{marginRight:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginLeft:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}])},[J(()=>R)],6))))],64))],6)}});const En={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Kn=V({name:"AlertCircleOutline",render:function(s,t){return l(),c("svg",En,t[0]||(t[0]=[o("path",{d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{d:"M250.26 166.05L256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 367.91a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),An={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ln=V({name:"CloudUploadOutline",render:function(s,t){return l(),c("svg",An,t[0]||(t[0]=[o("path",{d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 255.79l-64-64l-64 64"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 448.21V207.79"},null,-1)]))}}),Tn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Fn=V({name:"EllipsisHorizontal",render:function(s,t){return l(),c("svg",Tn,t[0]||(t[0]=[o("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"416",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"96",cy:"256",r:"48",fill:"currentColor"},null,-1)]))}}),Dn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Un=V({name:"OpenOutline",render:function(s,t){return l(),c("svg",Dn,t[0]||(t[0]=[o("path",{d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 64h112v112"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M224 288L440 72"},null,-1)]))}}),jn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Wn=V({name:"PauseOutline",render:function(s,t){return l(),c("svg",jn,t[0]||(t[0]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 96h16v320h-16z"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 96h16v320h-16z"},null,-1)]))}}),Hn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Vn=V({name:"PlayOutline",render:function(s,t){return l(),c("svg",Hn,t[0]||(t[0]=[o("path",{d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),qn={key:0,class:"live-dot"},Gn={key:1,class:"plain-dot"},Jn=V({__name:"StatusBadge",props:{status:{default:""},size:{default:"md"}},setup(e){const s=e,t=x(()=>{switch(s.status){case"Working":return{label:"直播中",tone:"live",dot:!0};case"Pending":return{label:"检测中",tone:"info",dot:!1};case"Pause":return{label:"已暂停",tone:"warn",dot:!1};case"OutOfSchedule":return{label:"非录播时间",tone:"muted",dot:!1};case"TitleExcluded":return{label:"标题已排除",tone:"warn",dot:!1};case"StreamExpired":return{label:"流已过期",tone:"warn",dot:!1};default:return{label:"未开播",tone:"muted",dot:!1}}});return(i,r)=>(l(),c("span",{class:ue(["badge",[t.value.tone,e.size]])},[t.value.dot?(l(),c("span",qn)):(l(),c("span",Gn)),L(" "+S(t.value.label),1)],2))}}),Xn=ke(Jn,[["__scopeId","data-v-7e3eb802"]]);function Yn(e,s=!1){if(typeof e!="string")return!1;const t=e.trim();if(!t||t!==e||/[\u0000-\u0020\u007f]/.test(t))return!1;const i=/^([a-z][a-z0-9+.-]*):\/\//i.exec(t);if(!i)return!1;const r=i[1].toLowerCase();if(r!=="http"&&r!=="https"&&!(s&&r==="wxchannel-stream"))return!1;try{return new URL(t).protocol===r+":"}catch{return!1}}const Le=_(Date.now());let ye,Ce=0;function Zn(){return De(()=>{Ce+=1,ye===void 0&&(Le.value=Date.now(),ye=window.setInterval(()=>{Le.value=Date.now()},1e3))}),Ie(()=>{Ce-=1,Ce<=0&&ye!==void 0&&(window.clearInterval(ye),ye=void 0,Ce=0)}),Le}const Qn=["src"],eo={key:1,class:"cover-fallback"},to={class:"platform-glyph"},no={class:"cover-top"},oo=["title"],ro={class:"platform-chip"},ao={class:"cover-bottom"},lo={class:"cover-title"},so={class:"cover-sub"},io={class:"body"},uo={class:"meta-row"},co={class:"meta"},po={class:"meta-value mono"},vo={class:"meta"},fo=["title"],mo={class:"meta-value mono"},ho={class:"meta"},wo={class:"meta-value mono"},yo={class:"meta",title:"开播检查间隔(秒)。连续查询失败会在此基础上按 1x→2x→4x→8x 退避"},bo=["title"],go={class:"probe-text"},ko={key:1,class:"probe-advice"},xo={class:"actions"},_o={class:"ghost-btn","aria-label":"更多操作"},So=V({__name:"StreamerCard",props:{streamer:{}},emits:["toggle","edit","delete"],setup(e,{emit:s}){const t=e,i=s,r=_(!1),d=x(()=>t.streamer.status==="Working"),b=x(()=>t.streamer.status==="Pause"||t.streamer.status==="StreamExpired"),p=x(()=>t.streamer.probe??null),v=x(()=>!!p.value&&!d.value),$=x(()=>p.value?Yt(p.value):""),k=x(()=>p.value?Zt(p.value):""),z=x(()=>d.value&&t.streamer.live_cover_url&&!r.value?Qt(t.streamer.id):""),f=x(()=>t.streamer.remark||t.streamer.live_streamer_name||"未命名直播间"),T=x(()=>t.streamer.live_streamer_name||t.streamer.url),M=Zn(),O=x(()=>{const N=t.streamer.session_started_at;return!d.value||!N?null:Math.max(0,M.value-N)}),F=x(()=>t.streamer.session_started_at?`本场开录于 ${rt(t.streamer.session_started_at)}`:""),D=[{label:"编辑直播间",key:"edit"},{label:"删除",key:"delete"}];function K(N){N==="edit"&&i("edit",t.streamer),N==="delete"&&i("delete",t.streamer)}function W(){Yn(t.streamer.url,!0)&&window.open(t.streamer.url,"_blank","noopener")}return(N,R)=>(l(),c("article",{class:ue(["card fade-up",{live:d.value}])},[o("div",{class:ue(["cover",u(sn)(e.streamer.url)])},[z.value?(l(),c("img",{key:0,class:"cover-img",src:z.value,alt:"",onError:R[0]||(R[0]=H=>r.value=!0)},null,40,Qn)):(l(),c("div",eo,[o("span",to,S(u(Ne)(e.streamer.url)),1)])),R[2]||(R[2]=o("div",{class:"cover-shade"},null,-1)),o("div",no,[v.value?(l(),c("span",{key:1,class:"probe-badge",title:k.value},S($.value)+" ×"+S(p.value.failures),9,oo)):(l(),E(Xn,{key:0,status:e.streamer.status,size:"sm"},null,8,["status"])),o("span",ro,S(u(Ne)(e.streamer.url)),1)]),o("div",ao,[o("div",lo,S(f.value),1),o("div",so,S(T.value),1)])],2),o("div",io,[o("div",uo,[o("div",co,[R[3]||(R[3]=o("span",{class:"meta-label"},"格式",-1)),o("span",po,S(e.streamer.format||"ts"),1)]),o("div",vo,[R[4]||(R[4]=o("span",{class:"meta-label"},"实时码率",-1)),o("span",{class:ue(["meta-value mono",{hot:d.value}])},S(d.value?u(un)(e.streamer.live_bytes_per_sec):"—"),3)]),o("div",{class:"meta",title:F.value},[R[5]||(R[5]=o("span",{class:"meta-label"},"已录制",-1)),o("span",mo,S(O.value!=null?u(dn)(Math.max(O.value,1e3)):"—"),1)],8,fo),o("div",ho,[R[6]||(R[6]=o("span",{class:"meta-label"},"场次",-1)),o("span",wo,S(e.streamer.session_id??"—"),1)]),o("div",yo,[R[7]||(R[7]=o("span",{class:"meta-label"},"间隔",-1)),o("span",{class:ue(["meta-value mono",{hot:v.value}])},S(e.streamer.check_interval_secs?`${e.streamer.check_interval_secs}s`:"—"),3)])]),v.value?(l(),c("div",{key:0,class:"probe-note",title:k.value},[R[8]||(R[8]=o("span",{class:"probe-dot"},null,-1)),o("span",go,S($.value)+":"+S(p.value.message),1)],8,bo)):G("",!0),v.value&&p.value.hint?(l(),c("div",ko,S(p.value.hint),1)):G("",!0),o("div",xo,[y(u(Q),{size:"small",type:b.value?"primary":"default",secondary:"",class:"main-action",disabled:!u(je),onClick:R[1]||(R[1]=H=>i("toggle",e.streamer))},{icon:g(()=>[y(u(de),null,{default:g(()=>[b.value?(l(),E(u(Vn),{key:0})):(l(),E(u(Wn),{key:1}))]),_:1})]),default:g(()=>[L(" "+S(b.value?"恢复监控":"暂停监控"),1)]),_:1},8,["type","disabled"]),y(u(Vt),{trigger:"hover"},{trigger:g(()=>[o("button",{class:"ghost-btn","aria-label":"打开直播间",onClick:W},[y(u(de),{size:17},{default:g(()=>[y(u(Un))]),_:1})])]),default:g(()=>[R[9]||(R[9]=L(" 在浏览器打开直播间 ",-1))]),_:1}),y(u(In),{options:D,trigger:"click",onSelect:K},{default:g(()=>[o("button",_o,[y(u(de),{size:18},{default:g(()=>[y(u(Fn))]),_:1})])]),_:1})])])],2))}}),Co=ke(So,[["__scopeId","data-v-8c08263d"]]);function $o(e){const s=e.trim();if(!s.startsWith("{"))return null;try{const t=JSON.parse(s);if(!t||typeof t!="object")return null;const i=t,r=i.detail??i.error??i.message;return typeof r=="string"&&r.trim()?r:null}catch{return null}}async function ve(e){try{return await e()}catch(s){if(s instanceof Ge){const t=$o(s.message);if(t)throw new Ge(s.status,t,s.authSource)}throw s}}const ut=()=>ve(()=>nt("/v1/wechat-capture/status")),Po=()=>ve(()=>nt("/v1/wechat-capture/streams")),Ro=()=>ve(()=>ge("/v1/wechat-capture/cert/install")),zo=()=>ve(()=>ge("/v1/wechat-capture/cert/uninstall")),No=()=>ve(()=>ge("/v1/wechat-capture/start")),Io=()=>ve(()=>ge("/v1/wechat-capture/stop")),dt=e=>ve(()=>ge("/v1/wechat-capture/record",e)),Bo={class:"capture-panel"},Mo={class:"status-bar"},Oo={class:"status-left"},Eo={class:"status-row"},Ko={class:"status-row"},Ao={key:0,class:"proxy mono"},Lo={key:1,class:"status-hint"},To={key:0,class:"last-error"},Fo={key:1,class:"compliance"},Do={class:"compliance-actions"},Uo={class:"list-bar"},jo={key:2,class:"empty"},Wo={key:3,class:"stream-list"},Ho={class:"stream-head"},Vo=["title"],qo=["title"],Go={class:"remark-row"},Jo={class:"url mono"},Xo=V({__name:"WechatCapturePanel",emits:["recorded"],setup(e,{emit:s}){const t=s,i=Ue(),r=_(null),d=_([]),b=_(!1),p=_(!1),v=_(!1),$=_(!1),k=_(!1),z=_(!1),f=_(null),T=_(!1),M=_(!1),O=_({}),F=new Set;let D,K=!1;const W=x(()=>r.value?.cert_installed?"已安装":"未安装"),N=x(()=>!!r.value?.proxy_running),R=x(()=>r.value?.proxy_port?`127.0.0.1:${r.value.proxy_port}`:""),H=x(()=>d.value.length>0);function Z(C){return C instanceof Error?C.message:"操作失败"}function te(C){const m=O.value[C.id];return m!==void 0?m:[C.author,C.title].filter(Boolean).join(" / ")}function oe(C,m){O.value[C.id]=m,F.add(C.id)}let Y=!1;function P(){Y||D===void 0&&(D=window.setInterval(()=>{document.visibilityState==="visible"&&r.value?.proxy_running&&w()},3e3))}function a(){D!==void 0&&(window.clearInterval(D),D=void 0)}async function n(C=!1){p.value=!0;try{const m=await ut();if(Y)return;r.value=m,b.value=!!m?.available,b.value?P():a()}catch(m){C||i.error(Z(m))}finally{p.value=!1}}async function w(C=!1){if(!K){K=!0,C&&(k.value=!0);try{const m=await Po();d.value=Array.isArray(m)?m:[]}catch(m){C&&i.error(Z(m))}finally{K=!1,C&&(k.value=!1)}}}function I(){document.visibilityState==="visible"&&(n(!0),r.value?.proxy_running&&w())}function A(C){if(!C){B();return}if(!M.value){T.value=!0;return}h()}async function h(){v.value=!0;try{r.value?.cert_installed||(r.value=await Ro());const C=await No();r.value=C,b.value=!!C?.available,T.value=!1,i.success("嗅探已启动,打开视频号直播间播放后即可看到捕获的流"),await w()}catch(C){i.error(Z(C))}finally{v.value=!1}}async function B(){$.value=!0;try{r.value=await Io(),d.value=[],i.success("已停止嗅探,系统代理已还原")}catch(C){i.error(Z(C))}finally{$.value=!1}}async function q(){z.value=!0;try{r.value=await zo(),i.success("临时根证书已卸载")}catch(C){i.error(Z(C))}finally{z.value=!1}}async function re(C){f.value=C.id;try{const m=F.has(C.id)?{stream_id:C.id,name:O.value[C.id]?.trim()||null}:{stream_id:C.id},U=await dt(m);t("recorded",U),i.success("已加入监控,正在检测开播")}catch(m){i.error(Z(m))}finally{f.value=null}}return De(()=>{document.addEventListener("visibilitychange",I),n()}),Ie(()=>{Y=!0,a(),document.removeEventListener("visibilitychange",I)}),(C,m)=>(l(),c("div",Bo,[o("div",Mo,[o("div",Oo,[o("div",Eo,[m[4]||(m[4]=o("span",{class:"status-label"},"证书状态",-1)),y(u(Pe),{size:"small",round:"",bordered:!1,type:r.value?.cert_installed?"success":"warning"},{default:g(()=>[L(S(W.value),1)]),_:1},8,["type"]),r.value?.cert_installed?(l(),E(u(Q),{key:0,quaternary:"",size:"tiny",loading:z.value,onClick:q},{default:g(()=>[...m[3]||(m[3]=[L(" 卸载证书 ",-1)])]),_:1},8,["loading"])):G("",!0)]),o("div",Ko,[m[5]||(m[5]=o("span",{class:"status-label"},"自动嗅探",-1)),y(u(fn),{size:"small",value:N.value,loading:v.value||$.value||p.value,disabled:!b.value,"onUpdate:value":A},null,8,["value","loading","disabled"]),N.value&&R.value?(l(),c("span",Ao,S(R.value),1)):(l(),c("span",Lo,S(b.value?"未运行":"仅桌面端可用"),1))])]),N.value?(l(),E(u(Q),{key:0,type:"error",secondary:"",size:"small",loading:$.value,onClick:B},{default:g(()=>[...m[6]||(m[6]=[L(" 停止并还原网络 ",-1)])]),_:1},8,["loading"])):G("",!0)]),r.value?.last_error?(l(),c("div",To,S(r.value.last_error),1)):G("",!0),T.value?(l(),c("div",Fo,[m[10]||(m[10]=o("div",{class:"compliance-title"},"开启自动嗅探前请确认",-1)),m[11]||(m[11]=o("ol",{class:"compliance-list"},[o("li",null,"仅用于录制本人或已获授权的内容"),o("li",null,"会在本机安装临时自签根证书"),o("li",null,"仅解密视频号相关域名,其余流量透传,关闭即自动还原系统代理")],-1)),y(u(vn),{checked:M.value,"onUpdate:checked":m[0]||(m[0]=U=>M.value=U),size:"small"},{default:g(()=>[...m[7]||(m[7]=[L("我已阅读并确认以上说明",-1)])]),_:1},8,["checked"]),o("div",Do,[y(u(Q),{size:"small",quaternary:"",disabled:v.value,onClick:m[1]||(m[1]=U=>T.value=!1)},{default:g(()=>[...m[8]||(m[8]=[L(" 取消 ",-1)])]),_:1},8,["disabled"]),y(u(Q),{size:"small",type:"primary",disabled:!M.value,loading:v.value,onClick:h},{default:g(()=>[...m[9]||(m[9]=[L(" 确认并启动 ",-1)])]),_:1},8,["disabled","loading"])])])):G("",!0),o("div",Uo,[m[13]||(m[13]=o("span",{class:"list-title"},"捕获到的流",-1)),y(u(Q),{size:"tiny",quaternary:"",loading:k.value,onClick:m[2]||(m[2]=U=>w(!0))},{default:g(()=>[...m[12]||(m[12]=[L(" 刷新 ",-1)])]),_:1},8,["loading"])]),H.value?(l(),c("div",Wo,[(l(!0),c(X,null,ze(d.value,U=>(l(),c("div",{key:U.id,class:"stream-item"},[o("div",Ho,[o("span",{class:"time",title:u(rt)(U.captured_at)},S(u(cn)(U.captured_at)),9,Vo),y(u(Pe),{size:"small",round:"",bordered:!1,type:U.protocol==="flv"?"success":"info"},{default:g(()=>[L(S(U.protocol.toUpperCase()),1)]),_:2},1032,["type"]),U.quality_hint?(l(),E(u(Pe),{key:0,size:"small",bordered:!1},{default:g(()=>[L(S(U.quality_hint),1)]),_:2},1024)):G("",!0),o("span",{class:"host",title:U.host},S(U.host),9,qo),y(u(Q),{size:"small",type:"primary",secondary:"",loading:f.value===U.id,disabled:!u(je),onClick:xe=>re(U)},{default:g(()=>[...m[14]||(m[14]=[L(" 一键录制 ",-1)])]),_:1},8,["loading","disabled","onClick"])]),o("div",Go,[y(u(ce),{size:"small",value:te(U),placeholder:"备注(主播 / 标题)",clearable:"","onUpdate:value":xe=>oe(U,xe)},null,8,["value","onUpdate:value"])]),o("div",Jo,S(U.url_preview),1)]))),128))])):(l(),c("div",jo," 进入视频号直播间并播放后回到本页,捕获到的流会出现在这里 "))]))}}),Yo=ke(Xo,[["__scopeId","data-v-0f758067"]]),Zo={class:"modal-head"},Qo={class:"modal-title"},er={class:"modal-sub"},tr={key:0,class:"desktop-hint"},nr={key:1,class:"desktop-hint"},or={key:2,class:"mode-switch"},rr={key:0,class:"capability-note"},ar={class:"capability-list"},lr={class:"modal-foot"},sr=V({__name:"AddStreamerModal",props:{show:{type:Boolean},entity:{}},emits:["update:show","saved"],setup(e,{emit:s}){const t=e,i=s,r=Ue(),d=mn(),b=_(null),p=_(!1),v=_("manual"),$=_(!1),k=_([]),z=_(!1),f=_({url:"",remark:"",filename_prefix:"",format:"ts",time_range:"",check_interval:""}),T=_([]),M=x(()=>T.value.filter(P=>P.blocks_probe)),O=x(()=>!!t.entity),F=x(()=>f.value.url.trim()?Ne(f.value.url.trim()):""),D=[{label:"TS(推荐,抗断流)",value:"ts"},{label:"FLV",value:"flv"},{label:"MP4",value:"mp4"},{label:"MKV",value:"mkv"}],K={url:[{required:!0,message:"请填写直播间地址",trigger:["blur","input"]},{validator:(P,a)=>{if(!a)return!0;const n=a.trim();if(!/^(https?|wxchannel-stream):\/\//i.test(n))return new Error("地址格式不正确,需要以 http://、https:// 或 wxchannel-stream:// 开头");try{return new URL(n),!0}catch{return new Error("地址格式不正确,请检查地址是否完整")}},trigger:["blur"]}],filename_prefix:[{validator:(P,a)=>{const n=pn(a);return n?new Error(n):!0},trigger:["blur","input"]}]};Be(()=>t.show,P=>{if(!P)return;const a=t.entity;f.value.url=a?.url??"",f.value.remark=a?.remark??"",f.value.filename_prefix=a?.filename_prefix??"",f.value.format=a?.format??"ts",f.value.time_range=a?.time_range??"",f.value.check_interval=String(a?.override?.event_loop_interval??""),v.value="manual",W(),!a&&!d&&R()});async function W(){if(!(T.value.length>0))try{T.value=await nn()}catch{T.value=[]}}function N(P){const a={...P??{}},n=f.value.check_interval.trim(),w=Number(n);return n&&Number.isFinite(w)&&w>0?a.event_loop_interval=Math.round(w):delete a.event_loop_interval,Object.keys(a).length>0?a:null}async function R(){z.value=!0;try{const P=await ut();k.value=Array.isArray(P?.whitelist)?P.whitelist:[],$.value=!!P?.available}catch{k.value=[],$.value=!1}finally{z.value=!1}}function H(P,a){const n=P.toLowerCase();return a.some(w=>{const I=w.trim().toLowerCase();return I?n===I||n.endsWith(`.${I}`):!1})}function Z(P){const a=P.trim().toLowerCase();if(a.startsWith("wxchannel-stream://"))return!0;if(d||!/^https?:\/\//.test(a)||!/\.flv(?:[?#]|$)/.test(a)&&!/\.m3u8(?:[?#]|$)/.test(a)||k.value.length===0)return!1;try{return H(new URL(a).hostname,k.value)}catch{return!1}}function te(){i("update:show",!1)}async function oe(){try{await b.value?.validate()}catch{return}p.value=!0;try{const P=f.value.url.trim(),a=f.value.remark.trim();t.entity?(await en({...t.entity,url:P,remark:a,filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(t.entity.override)}),r.success("直播间已更新")):Z(P)?(await dt({url:P,name:a||null}),r.success("已加入监控,正在检测开播")):(await tn({url:P,remark:a||Ne(P)+"直播间",filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(null)}),r.success("直播间已添加,正在检测开播状态")),i("saved"),te()}catch(P){r.error(P instanceof Error?P.message:"保存失败")}finally{p.value=!1}}function Y(){i("saved"),te()}return(P,a)=>(l(),E(u(Et),{show:e.show,preset:"card",style:{width:"580px",maxWidth:"92vw"},bordered:!1,"mask-closable":!p.value,"onUpdate:show":a[8]||(a[8]=n=>i("update:show",n))},{header:g(()=>[o("div",Zo,[o("div",null,[o("div",Qo,S(O.value?"编辑直播间":"添加直播间"),1),o("div",er,S(O.value?"修改后会在下一次检测周期生效":"支持抖音、快手、B站、虎牙、斗鱼等平台的直播间地址"),1)]),F.value?(l(),E(u(Pe),{key:0,size:"small",round:"",bordered:!1,type:"success"},{default:g(()=>[L(" 已识别 "+S(F.value),1)]),_:1})):G("",!0)])]),footer:g(()=>[o("div",lr,[y(u(Q),{quaternary:"",disabled:p.value,onClick:te},{default:g(()=>[...a[13]||(a[13]=[L("取消",-1)])]),_:1},8,["disabled"]),O.value||v.value==="manual"?(l(),E(u(Q),{key:0,type:"primary",loading:p.value,disabled:p.value||!u(je),onClick:oe},{default:g(()=>[L(S(O.value?"保存修改":"开始监控"),1)]),_:1},8,["loading","disabled"])):G("",!0)])]),default:g(()=>[O.value?G("",!0):(l(),c(X,{key:0},[u(d)?(l(),c("div",tr," 视频号请直接粘贴直播流地址;自动嗅探请改用桌面客户端。 ")):G("",!0),!u(d)&&!z.value&&!$.value?(l(),c("div",nr," 自动嗅探仅支持桌面端,服务端部署请直接粘贴流地址 ")):G("",!0),u(d)?G("",!0):(l(),c("div",or,[o("button",{class:ue(["mode-pill",{active:v.value==="manual"}]),onClick:a[0]||(a[0]=n=>v.value="manual")}," 手动粘贴流地址 ",2),$.value?(l(),c("button",{key:0,class:ue(["mode-pill",{active:v.value==="capture"}]),onClick:a[1]||(a[1]=n=>v.value="capture")}," 自动嗅探(桌面端) ",2)):G("",!0)]))],64)),!u(d)&&!O.value&&v.value==="capture"&&$.value?(l(),E(Yo,{key:1,onRecorded:Y})):(l(),E(u(Kt),{key:2,ref_key:"formRef",ref:b,model:f.value,rules:K,"label-placement":"top","require-mark-placement":"right-hanging"},{default:g(()=>[y(u(me),{label:"直播间地址",path:"url"},{feedback:g(()=>[...a[9]||(a[9]=[o("div",{class:"hint"}," 抖音/快手/B站/虎牙/斗鱼/六间房可直接粘贴直播间地址;抖音分享短链会自动换成长期房间地址。 在场的分享链接只对应这一场直播,链接失效后需要粘贴主播当前开播时的新链接 ",-1),o("div",{class:"hint"}," 视频号请粘贴 *.flv / *.m3u8 流地址(可从视频号助手或抓包工具获取);视频号直链必须是视频号 CDN 域名,其他平台的 .flv/.m3u8 直链照旧直接添加 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.url,placeholder:"https://live.douyin.com/123456789",clearable:"","onUpdate:value":a[2]||(a[2]=n=>f.value.url=n)},null,8,["value"])]),_:1}),y(u(On),{size:14,class:"form-row",style:{width:"100%"}},{default:g(()=>[y(u(me),{label:"备注名称",path:"remark",style:{flex:"1"}},{default:g(()=>[y(u(ce),{value:f.value.remark,placeholder:"例如:某某主播",clearable:"","onUpdate:value":a[3]||(a[3]=n=>f.value.remark=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制格式",path:"format",style:{width:"190px"}},{default:g(()=>[y(u(Jt),{value:f.value.format,options:D,"onUpdate:value":a[4]||(a[4]=n=>f.value.format=n??"")},null,8,["value"])]),_:1})]),_:1}),y(u(me),{label:"文件名前缀",path:"filename_prefix"},{default:g(()=>[y(u(ce),{value:f.value.filename_prefix,placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S;留空使用全局设置",clearable:"","onUpdate:value":a[5]||(a[5]=n=>f.value.filename_prefix=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制时间段",path:"time_range"},{default:g(()=>[y(u(ce),{value:f.value.time_range,placeholder:"可选,例如 20:00:00-23:59:59;留空表示全天监控",clearable:"","onUpdate:value":a[6]||(a[6]=n=>f.value.time_range=n)},null,8,["value"])]),_:1}),y(u(me),{label:"检查间隔(秒)",path:"check_interval"},{feedback:g(()=>[...a[10]||(a[10]=[o("div",{class:"hint"}," 多久查一次这个房间有没有开播(默认沿用全局设置)。查询连续失败时监控会在此基础上 自动退避(1x→2x→4x→8x 封顶),不会把失败当成下播。 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.check_interval,placeholder:"可选,例如 30;留空沿用全局设置",clearable:"","onUpdate:value":a[7]||(a[7]=n=>f.value.check_interval=n)},null,8,["value"])]),_:1}),M.value.length?(l(),c("div",rr,[a[11]||(a[11]=o("div",{class:"capability-title"},"这些平台当前无法检测开播(合规限制)",-1)),o("ul",ar,[(l(!0),c(X,null,ze(M.value,n=>(l(),c("li",{key:n.platform},[o("strong",null,S(n.platform),1),L(":"+S(n.detail),1)]))),128))]),a[12]||(a[12]=o("div",{class:"capability-hint"}," 仍可添加,但房间会显示「查询失败」并给出原因;要真正录制请改用受支持平台, 或按平台官方授权链路接入。 ",-1))])):G("",!0)]),_:1},8,["model"]))]),_:1},8,["show","mask-closable"]))}}),ir=ke(sr,[["__scopeId","data-v-b547d50d"]]),ur={class:"page"},dr={class:"page-head"},cr={class:"page-sub"},pr={key:0,class:"mono version"},vr={class:"toolbar"},fr={key:0,class:"stat-grid"},mr={key:1,class:"compact-summary"},hr={class:"list-bar"},wr={class:"filters"},yr=["onClick"],br={key:2,class:"loading"},gr={key:3,class:"error-panel"},kr={class:"error-msg"},xr={key:0,class:"card-grid"},_r={key:1,class:"no-match"},Sr=V({__name:"StreamersView",setup(e){const s=Ue(),t=At(),i=_([]),r=_(null),d=_(!0),b=_(!1),p=_(!1),v=_(""),$=_(""),k=_("all"),z=_(!1),f=_(null);let T;const M=x(()=>{const a=i.value;return{total:a.length,live:a.filter(n=>n.status==="Working").length,pending:a.filter(n=>n.status==="Pending").length,paused:a.filter(n=>n.status==="Pause"||n.status==="StreamExpired").length,probeFailed:a.filter(n=>n.status==="ProbeFailed").length}}),O=x(()=>{const a=$.value.trim().toLowerCase();return i.value.filter(n=>k.value==="live"&&n.status!=="Working"||k.value==="paused"&&n.status!=="Pause"&&n.status!=="StreamExpired"||k.value==="failed"&&n.status!=="ProbeFailed"||k.value==="idle"&&(n.status==="Working"||n.status==="Pause"||n.status==="StreamExpired"||n.status==="ProbeFailed")?!1:a?n.remark.toLowerCase().includes(a)||n.url.toLowerCase().includes(a)||(n.live_streamer_name??"").toLowerCase().includes(a):!0).sort((n,w)=>{const I=A=>A.status==="Working"?0:A.status==="Pending"?1:A.status==="ProbeFailed"?2:3;return I(n)-I(w)||w.id-n.id})});function F(){p.value=window.innerWidth<640}let D=!1,K=!1,W=!1;async function N(a=!1){if(!K){if(D){a||(W=!0);return}D=!0,a?b.value=!0:d.value=i.value.length===0;try{const[n,w]=await Promise.all([on(),rn().catch(()=>null)]);i.value=n,w&&(r.value=w),v.value=""}catch(n){v.value=n instanceof Error?n.message:"加载失败"}finally{D=!1,d.value=!1,b.value=!1,W&&!K&&(W=!1,N(!0))}}}function R(a){k.value=a}function H(){f.value=null,z.value=!0}function Z(a){f.value=a,z.value=!0}async function te(a){try{await an(a.id);const n=a.status==="Pause"||a.status==="StreamExpired";s.success(n?"已恢复监控":"已暂停监控"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"操作失败")}}function oe(a){t.warning({title:"删除直播间",content:`确定删除「${a.remark||a.url}」?已录制的文件不会被删除。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await ln(a.id),s.success("已删除"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"删除失败")}}})}function Y(){document.visibilityState==="visible"&&N(!0)}De(async()=>{F(),window.addEventListener("resize",F),await N(),!K&&(T=window.setInterval(()=>{document.visibilityState==="visible"&&N(!0)},1e4),document.addEventListener("visibilitychange",Y))}),Ie(()=>{K=!0,T&&window.clearInterval(T),document.removeEventListener("visibilitychange",Y),window.removeEventListener("resize",F)});const P=[{label:"全部",value:"all"},{label:"录制中",value:"live"},{label:"查询失败",value:"failed"},{label:"已暂停",value:"paused"},{label:"未开播",value:"idle"}];return(a,n)=>(l(),c("div",ur,[o("div",dr,[o("div",null,[n[6]||(n[6]=o("h1",{class:"page-title"},"直播监控",-1)),o("p",cr,[n[5]||(n[5]=L(" 添加直播间后自动检测开播并录制,下播自动收尾 ",-1)),r.value?.version?(l(),c("span",pr,"· 服务 v"+S(r.value.version),1)):G("",!0)])]),o("div",vr,[y(u(Q),{quaternary:"",circle:"",loading:b.value,"aria-label":"刷新",onClick:n[0]||(n[0]=w=>N(!0))},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Ye))]),_:1})]),_:1},8,["loading"]),y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Je))]),_:1})]),default:g(()=>[n[7]||(n[7]=L(" 添加直播间 ",-1))]),_:1})])]),p.value?G("",!0):(l(),c("div",fr,[y(we,{label:"监控直播间",value:M.value.total,hint:"正在值守的直播间总数",icon:u(hn),tone:"accent"},null,8,["value","icon"]),y(we,{label:"正在录制",value:M.value.live,hint:"当前有直播流正在写盘",icon:u(qt),tone:"live"},null,8,["value","icon"]),y(we,{label:"检测中",value:M.value.pending,hint:"等待平台返回开播状态",icon:u(Ye)},null,8,["value","icon"]),y(we,{label:"查询失败",value:M.value.probeFailed,hint:"平台没返回开播状态(不等于下播),卡片上带原因与建议",icon:u(Kn),tone:M.value.probeFailed>0?"warn":"default"},null,8,["value","icon","tone"]),y(we,{label:"上传任务",value:r.value?.uploading??0,hint:"已配置自动上传时显示",icon:u(Ln)},null,8,["value","icon"])])),p.value?(l(),c("div",mr,[o("span",null,[n[8]||(n[8]=L("监控 ",-1)),o("b",null,S(M.value.total),1)]),o("span",null,[n[9]||(n[9]=L("录制中 ",-1)),o("b",null,S(M.value.live),1)]),o("span",null,[n[10]||(n[10]=L("检测中 ",-1)),o("b",null,S(M.value.pending),1)]),o("span",null,[n[11]||(n[11]=L("异常 ",-1)),o("b",null,S(M.value.probeFailed),1)])])):G("",!0),o("div",hr,[o("div",wr,[(l(),c(X,null,ze(P,w=>o("button",{key:w.value,class:ue(["pill",{active:k.value===w.value}]),onClick:I=>R(w.value)},S(w.label),11,yr)),64))]),y(u(ce),{value:$.value,"onUpdate:value":n[1]||(n[1]=w=>$.value=w),class:"search",placeholder:"搜索备注、主播名或地址",clearable:""},{prefix:g(()=>[y(u(de),{size:16},{default:g(()=>[y(u(wn))]),_:1})]),_:1},8,["value"])]),d.value?(l(),c("div",br,[y(u(jt),{size:"large"}),n[12]||(n[12]=o("span",null,"正在连接录制服务…",-1))])):v.value?(l(),c("div",gr,[n[14]||(n[14]=o("div",{class:"error-title"},"无法连接录制服务",-1)),o("div",kr,S(v.value),1),y(u(Q),{size:"small",onClick:n[2]||(n[2]=w=>N())},{default:g(()=>[...n[13]||(n[13]=[L("重试",-1)])]),_:1})])):i.value.length===0?(l(),E(Ht,{key:4,title:"还没有添加直播间",description:"粘贴抖音直播间地址即可开始监控。主播开播后会自动录制,下播后按场次归档。"},{default:g(()=>[y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Je))]),_:1})]),default:g(()=>[n[15]||(n[15]=L(" 添加第一个直播间 ",-1))]),_:1})]),_:1})):(l(),c(X,{key:5},[O.value.length?(l(),c("div",xr,[(l(!0),c(X,null,ze(O.value,w=>(l(),E(Co,{key:w.id,streamer:w,onToggle:te,onEdit:Z,onDelete:oe},null,8,["streamer"]))),128))])):(l(),c("div",_r," 没有匹配的直播间,换个关键词或筛选条件试试。 "))],64)),y(ir,{show:z.value,"onUpdate:show":n[3]||(n[3]=w=>z.value=w),entity:f.value,onSaved:n[4]||(n[4]=w=>N(!0))},null,8,["show","entity"])]))}}),Hr=ke(Sr,[["__scopeId","data-v-cdfe01c6"]]);export{Hr as default}; + `)])]);const Rn={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:String,inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},zn=Object.keys(ot),Nn={...ot,...Rn,...Oe.props};var In=V({name:"Dropdown",inheritAttrs:!1,props:Nn,setup(e){const s=_(!1),t=Xt(le(e,"show"),s),i=x(()=>{const{keyField:w,childrenField:I}=e;return Gt(e.options,{getKey(A){return A[w]},getDisabled(A){return A.disabled===!0},getIgnored(A){return A.type==="divider"||A.type==="render"},getChildren(A){return A[I]}})}),r=x(()=>i.value.treeNodes),d=_(null),b=_(null),p=_(null),v=x(()=>d.value??b.value??p.value??null),$=x(()=>i.value.getPath(v.value).keyPath),k=x(()=>i.value.getPath(e.value).keyPath),z=$e(()=>e.keyboard&&t.value);yn({keydown:{ArrowUp:{prevent:!0,handler:Z},ArrowRight:{prevent:!0,handler:H},ArrowDown:{prevent:!0,handler:te},ArrowLeft:{prevent:!0,handler:R},Enter:{prevent:!0,handler:oe},Escape:N}},z);const{mergedClsPrefixRef:f,inlineThemeDisabled:T,mergedComponentPropsRef:M}=tt(e),O=x(()=>e.size||M?.value?.Dropdown?.size||"medium"),F=Oe("Dropdown","-dropdown",Pn,Pt,e,f);he(Ee,{labelFieldRef:le(e,"labelField"),childrenFieldRef:le(e,"childrenField"),renderLabelRef:le(e,"renderLabel"),renderIconRef:le(e,"renderIcon"),hoverKeyRef:d,keyboardKeyRef:b,lastToggledSubmenuKeyRef:p,pendingKeyPathRef:$,activeKeyPathRef:k,animatedRef:le(e,"animated"),mergedShowRef:t,nodePropsRef:le(e,"nodeProps"),renderOptionRef:le(e,"renderOption"),menuPropsRef:le(e,"menuProps"),doSelect:D,doUpdateShow:K}),Be(t,w=>{!e.animated&&!w&&W()});function D(w,I){const{onSelect:A}=e;A&&Ke(A,w,I)}function K(w){const{"onUpdate:show":I,onUpdateShow:A}=e;I&&Ke(I,w),A&&Ke(A,w),s.value=w}function W(){d.value=null,b.value=null,p.value=null}function N(){K(!1)}function R(){P("left")}function H(){P("right")}function Z(){P("up")}function te(){P("down")}function oe(){const w=Y();w?.isLeaf&&t.value&&(D(w.key,w.rawNode),K(!1))}function Y(){const{value:w}=i,{value:I}=v;return!w||I===null?null:w.getNode(I)??null}function P(w){const{value:I}=v,{value:{getFirstAvailableNode:A}}=i;let h=null;if(I===null){const B=A();B!==null&&(h=B.key)}else{const B=Y();if(B){let q;switch(w){case"down":q=B.getNext();break;case"up":q=B.getPrev();break;case"right":q=B.getChild();break;case"left":q=B.getParent()}q&&(h=q.key)}}h!==null&&(d.value=null,b.value=h)}const a=x(()=>{const{inverted:w}=e,I=O.value,{common:{cubicBezierEaseInOut:A},self:h}=F.value,{padding:B,dividerColor:q,borderRadius:re,optionOpacityDisabled:C,[ie("optionIconSuffixWidth",I)]:m,[ie("optionSuffixWidth",I)]:U,[ie("optionIconPrefixWidth",I)]:xe,[ie("optionPrefixWidth",I)]:ct,[ie("fontSize",I)]:pt,[ie("optionHeight",I)]:vt,[ie("optionIconSize",I)]:ft}=h,j={"--n-bezier":A,"--n-font-size":pt,"--n-padding":B,"--n-border-radius":re,"--n-option-height":vt,"--n-option-prefix-width":ct,"--n-option-icon-prefix-width":xe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":m,"--n-option-icon-size":ft,"--n-divider-color":q,"--n-option-opacity-disabled":C};return w?(j["--n-color"]=h.colorInverted,j["--n-option-color-hover"]=h.optionColorHoverInverted,j["--n-option-color-active"]=h.optionColorActiveInverted,j["--n-option-text-color"]=h.optionTextColorInverted,j["--n-option-text-color-hover"]=h.optionTextColorHoverInverted,j["--n-option-text-color-active"]=h.optionTextColorActiveInverted,j["--n-option-text-color-child-active"]=h.optionTextColorChildActiveInverted,j["--n-prefix-color"]=h.prefixColorInverted,j["--n-suffix-color"]=h.suffixColorInverted,j["--n-group-header-text-color"]=h.groupHeaderTextColorInverted):(j["--n-color"]=h.color,j["--n-option-color-hover"]=h.optionColorHover,j["--n-option-color-active"]=h.optionColorActive,j["--n-option-text-color"]=h.optionTextColor,j["--n-option-text-color-hover"]=h.optionTextColorHover,j["--n-option-text-color-active"]=h.optionTextColorActive,j["--n-option-text-color-child-active"]=h.optionTextColorChildActive,j["--n-prefix-color"]=h.prefixColor,j["--n-suffix-color"]=h.suffixColor,j["--n-group-header-text-color"]=h.groupHeaderTextColor),j}),n=T?Rt("dropdown",x(()=>`${O.value[0]}${e.inverted?"i":""}`),a,e):void 0;return{mergedClsPrefix:f,mergedTheme:F,mergedSize:O,tmNodes:r,mergedShow:t,handleAfterLeave:()=>{e.animated&&W()},doUpdateShow:K,cssVars:T?void 0:a,themeClass:n?.themeClass,onRender:n?.onRender}},render(){const e=(i,r,d,b,p)=>{const{mergedClsPrefix:v,menuProps:$}=this;this.onRender?.();const k=$?.(void 0,this.tmNodes.map(f=>f.rawNode))||{},z={ref:Wt(r),class:[i,`${v}-dropdown`,`${v}-dropdown--${this.mergedSize}-size`,this.themeClass],clsPrefix:v,tmNodes:this.tmNodes,style:[...d,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:b,onMouseleave:p};return Me(it,be(this.$attrs,z,k))},{mergedTheme:s}=this,t={show:this.mergedShow,theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return l(),E(Ut,$t(this.$props,zn,t),{_:1,trigger:Qe(()=>this.$slots.default?.())},16)}});let Ae;function Bn(){if(!zt)return!0;if(Ae===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const s=e.scrollHeight===1;return document.body.removeChild(e),Ae=s}return Ae}const Mn={...Oe.props,align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}};var On=V({name:"Space",props:Mn,setup(e){const{mergedClsPrefixRef:s,mergedRtlRef:t,mergedComponentPropsRef:i}=tt(e),r=x(()=>e.size??i?.value?.Space?.size??"medium"),d=Oe("Space","-space",void 0,Mt,e,s),b=Bt("Space",t,s);return{useGap:Bn(),rtlEnabled:b,mergedClsPrefix:s,margin:x(()=>{const p=r.value;if(Array.isArray(p))return{horizontal:p[0],vertical:p[1]};if(typeof p=="number")return{horizontal:p,vertical:p};const{self:{[ie("gap",p)]:v}}=d.value,{row:$,col:k}=Ot(v);return{horizontal:qe(k),vertical:qe($)}})}},render(){const{vertical:e,reverse:s,align:t,inline:i,justify:r,itemClass:d,itemStyle:b,margin:p,wrap:v,mergedClsPrefix:$,rtlEnabled:k,useGap:z,wrapItem:f,internalUseGap:T}=this,M=Nt(gn(this),!1);if(!M.length)return null;const O=`${p.horizontal}px`,F=`${p.horizontal/2}px`,D=`${p.vertical}px`,K=`${p.vertical/2}px`,W=M.length-1,N=r.startsWith("space-");return l(),c("div",{role:"none",class:ee([`${$}-space`,k&&`${$}-space--rtl`]),style:Ve({display:i?"inline-flex":"flex",flexDirection:e&&!s?"column":e&&s?"column-reverse":!e&&s?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!v||e?"nowrap":"wrap",marginTop:z||e?"":`-${K}`,marginBottom:z||e?"":`-${K}`,alignItems:t,gap:z?`${p.vertical}px ${p.horizontal}px`:""})},[!f&&(z||T)?(l(),c(X,{key:0},[J(()=>M)],64)):(l(),c(X,{key:1},[J(()=>M.map((R,H)=>R.type===It?R:(l(),c("div",{key:1,role:"none",class:ee(d),style:Ve([b,{maxWidth:"100%"},z?"":e?{marginBottom:H!==W?D:""}:k?{marginLeft:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginRight:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}:{marginRight:N?r==="space-between"&&H===W?"":F:H!==W?O:"",marginLeft:N?r==="space-between"&&H===0?"":F:"",paddingTop:K,paddingBottom:K}])},[J(()=>R)],6))))],64))],6)}});const En={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Kn=V({name:"AlertCircleOutline",render:function(s,t){return l(),c("svg",En,t[0]||(t[0]=[o("path",{d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{d:"M250.26 166.05L256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 367.91a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),An={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ln=V({name:"CloudUploadOutline",render:function(s,t){return l(),c("svg",An,t[0]||(t[0]=[o("path",{d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 255.79l-64-64l-64 64"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 448.21V207.79"},null,-1)]))}}),Tn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Fn=V({name:"EllipsisHorizontal",render:function(s,t){return l(),c("svg",Tn,t[0]||(t[0]=[o("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"416",cy:"256",r:"48",fill:"currentColor"},null,-1),o("circle",{cx:"96",cy:"256",r:"48",fill:"currentColor"},null,-1)]))}}),Dn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Un=V({name:"OpenOutline",render:function(s,t){return l(),c("svg",Dn,t[0]||(t[0]=[o("path",{d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 64h112v112"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M224 288L440 72"},null,-1)]))}}),jn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Wn=V({name:"PauseOutline",render:function(s,t){return l(),c("svg",jn,t[0]||(t[0]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 96h16v320h-16z"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 96h16v320h-16z"},null,-1)]))}}),Hn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Vn=V({name:"PlayOutline",render:function(s,t){return l(),c("svg",Hn,t[0]||(t[0]=[o("path",{d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),qn={key:0,class:"live-dot"},Gn={key:1,class:"plain-dot"},Jn=V({__name:"StatusBadge",props:{status:{default:""},size:{default:"md"}},setup(e){const s=e,t=x(()=>{switch(s.status){case"Working":return{label:"直播中",tone:"live",dot:!0};case"Pending":return{label:"检测中",tone:"info",dot:!1};case"Pause":return{label:"已暂停",tone:"warn",dot:!1};case"OutOfSchedule":return{label:"非录播时间",tone:"muted",dot:!1};case"TitleExcluded":return{label:"标题已排除",tone:"warn",dot:!1};case"StreamExpired":return{label:"流已过期",tone:"warn",dot:!1};default:return{label:"未开播",tone:"muted",dot:!1}}});return(i,r)=>(l(),c("span",{class:ue(["badge",[t.value.tone,e.size]])},[t.value.dot?(l(),c("span",qn)):(l(),c("span",Gn)),L(" "+S(t.value.label),1)],2))}}),Xn=ke(Jn,[["__scopeId","data-v-7e3eb802"]]);function Yn(e,s=!1){if(typeof e!="string")return!1;const t=e.trim();if(!t||t!==e||/[\u0000-\u0020\u007f]/.test(t))return!1;const i=/^([a-z][a-z0-9+.-]*):\/\//i.exec(t);if(!i)return!1;const r=i[1].toLowerCase();if(r!=="http"&&r!=="https"&&!(s&&r==="wxchannel-stream"))return!1;try{return new URL(t).protocol===r+":"}catch{return!1}}const Le=_(Date.now());let ye,Ce=0;function Zn(){return De(()=>{Ce+=1,ye===void 0&&(Le.value=Date.now(),ye=window.setInterval(()=>{Le.value=Date.now()},1e3))}),Ie(()=>{Ce-=1,Ce<=0&&ye!==void 0&&(window.clearInterval(ye),ye=void 0,Ce=0)}),Le}const Qn=["src"],eo={key:1,class:"cover-fallback"},to={class:"platform-glyph"},no={class:"cover-top"},oo=["title"],ro={class:"platform-chip"},ao={class:"cover-bottom"},lo={class:"cover-title"},so={class:"cover-sub"},io={class:"body"},uo={class:"meta-row"},co={class:"meta"},po={class:"meta-value mono"},vo={class:"meta"},fo=["title"],mo={class:"meta-value mono"},ho={class:"meta"},wo={class:"meta-value mono"},yo={class:"meta",title:"开播检查间隔(秒)。连续查询失败会在此基础上按 1x→2x→4x→8x 退避"},bo=["title"],go={class:"probe-text"},ko={key:1,class:"probe-advice"},xo={class:"actions"},_o={class:"ghost-btn","aria-label":"更多操作"},So=V({__name:"StreamerCard",props:{streamer:{}},emits:["toggle","edit","delete"],setup(e,{emit:s}){const t=e,i=s,r=_(!1),d=x(()=>t.streamer.status==="Working"),b=x(()=>t.streamer.status==="Pause"||t.streamer.status==="StreamExpired"),p=x(()=>t.streamer.probe??null),v=x(()=>!!p.value&&!d.value),$=x(()=>p.value?Yt(p.value):""),k=x(()=>p.value?Zt(p.value):""),z=x(()=>d.value&&t.streamer.live_cover_url&&!r.value?Qt(t.streamer.id):""),f=x(()=>t.streamer.remark||t.streamer.live_streamer_name||"未命名直播间"),T=x(()=>t.streamer.live_streamer_name||t.streamer.url),M=Zn(),O=x(()=>{const N=t.streamer.session_started_at;return!d.value||!N?null:Math.max(0,M.value-N)}),F=x(()=>t.streamer.session_started_at?`本场开录于 ${rt(t.streamer.session_started_at)}`:""),D=[{label:"编辑直播间",key:"edit"},{label:"删除",key:"delete"}];function K(N){N==="edit"&&i("edit",t.streamer),N==="delete"&&i("delete",t.streamer)}function W(){Yn(t.streamer.url,!0)&&window.open(t.streamer.url,"_blank","noopener")}return(N,R)=>(l(),c("article",{class:ue(["card fade-up",{live:d.value}])},[o("div",{class:ue(["cover",u(sn)(e.streamer.url)])},[z.value?(l(),c("img",{key:0,class:"cover-img",src:z.value,alt:"",onError:R[0]||(R[0]=H=>r.value=!0)},null,40,Qn)):(l(),c("div",eo,[o("span",to,S(u(Ne)(e.streamer.url)),1)])),R[2]||(R[2]=o("div",{class:"cover-shade"},null,-1)),o("div",no,[v.value?(l(),c("span",{key:1,class:"probe-badge",title:k.value},S($.value)+" ×"+S(p.value.failures),9,oo)):(l(),E(Xn,{key:0,status:e.streamer.status,size:"sm"},null,8,["status"])),o("span",ro,S(u(Ne)(e.streamer.url)),1)]),o("div",ao,[o("div",lo,S(f.value),1),o("div",so,S(T.value),1)])],2),o("div",io,[o("div",uo,[o("div",co,[R[3]||(R[3]=o("span",{class:"meta-label"},"格式",-1)),o("span",po,S(e.streamer.format||"ts"),1)]),o("div",vo,[R[4]||(R[4]=o("span",{class:"meta-label"},"实时码率",-1)),o("span",{class:ue(["meta-value mono",{hot:d.value}])},S(d.value?u(un)(e.streamer.live_bytes_per_sec):"—"),3)]),o("div",{class:"meta",title:F.value},[R[5]||(R[5]=o("span",{class:"meta-label"},"已录制",-1)),o("span",mo,S(O.value!=null?u(dn)(Math.max(O.value,1e3)):"—"),1)],8,fo),o("div",ho,[R[6]||(R[6]=o("span",{class:"meta-label"},"场次",-1)),o("span",wo,S(e.streamer.session_id??"—"),1)]),o("div",yo,[R[7]||(R[7]=o("span",{class:"meta-label"},"间隔",-1)),o("span",{class:ue(["meta-value mono",{hot:v.value}])},S(e.streamer.check_interval_secs?`${e.streamer.check_interval_secs}s`:"—"),3)])]),v.value?(l(),c("div",{key:0,class:"probe-note",title:k.value},[R[8]||(R[8]=o("span",{class:"probe-dot"},null,-1)),o("span",go,S($.value)+":"+S(p.value.message),1)],8,bo)):G("",!0),v.value&&p.value.hint?(l(),c("div",ko,S(p.value.hint),1)):G("",!0),o("div",xo,[y(u(Q),{size:"small",type:b.value?"primary":"default",secondary:"",class:"main-action",disabled:!u(je),onClick:R[1]||(R[1]=H=>i("toggle",e.streamer))},{icon:g(()=>[y(u(de),null,{default:g(()=>[b.value?(l(),E(u(Vn),{key:0})):(l(),E(u(Wn),{key:1}))]),_:1})]),default:g(()=>[L(" "+S(b.value?"恢复监控":"暂停监控"),1)]),_:1},8,["type","disabled"]),y(u(Vt),{trigger:"hover"},{trigger:g(()=>[o("button",{class:"ghost-btn","aria-label":"打开直播间",onClick:W},[y(u(de),{size:17},{default:g(()=>[y(u(Un))]),_:1})])]),default:g(()=>[R[9]||(R[9]=L(" 在浏览器打开直播间 ",-1))]),_:1}),y(u(In),{options:D,trigger:"click",onSelect:K},{default:g(()=>[o("button",_o,[y(u(de),{size:18},{default:g(()=>[y(u(Fn))]),_:1})])]),_:1})])])],2))}}),Co=ke(So,[["__scopeId","data-v-8c08263d"]]);function $o(e){const s=e.trim();if(!s.startsWith("{"))return null;try{const t=JSON.parse(s);if(!t||typeof t!="object")return null;const i=t,r=i.detail??i.error??i.message;return typeof r=="string"&&r.trim()?r:null}catch{return null}}async function ve(e){try{return await e()}catch(s){if(s instanceof Ge){const t=$o(s.message);if(t)throw new Ge(s.status,t,s.authSource)}throw s}}const ut=()=>ve(()=>nt("/v1/wechat-capture/status")),Po=()=>ve(()=>nt("/v1/wechat-capture/streams")),Ro=()=>ve(()=>ge("/v1/wechat-capture/cert/install")),zo=()=>ve(()=>ge("/v1/wechat-capture/cert/uninstall")),No=()=>ve(()=>ge("/v1/wechat-capture/start")),Io=()=>ve(()=>ge("/v1/wechat-capture/stop")),dt=e=>ve(()=>ge("/v1/wechat-capture/record",e)),Bo={class:"capture-panel"},Mo={class:"status-bar"},Oo={class:"status-left"},Eo={class:"status-row"},Ko={class:"status-row"},Ao={key:0,class:"proxy mono"},Lo={key:1,class:"status-hint"},To={key:0,class:"last-error"},Fo={key:1,class:"compliance"},Do={class:"compliance-actions"},Uo={class:"list-bar"},jo={key:2,class:"empty"},Wo={key:3,class:"stream-list"},Ho={class:"stream-head"},Vo=["title"],qo=["title"],Go={class:"remark-row"},Jo={class:"url mono"},Xo=V({__name:"WechatCapturePanel",emits:["recorded"],setup(e,{emit:s}){const t=s,i=Ue(),r=_(null),d=_([]),b=_(!1),p=_(!1),v=_(!1),$=_(!1),k=_(!1),z=_(!1),f=_(null),T=_(!1),M=_(!1),O=_({}),F=new Set;let D,K=!1;const W=x(()=>r.value?.cert_installed?"已安装":"未安装"),N=x(()=>!!r.value?.proxy_running),R=x(()=>r.value?.proxy_port?`127.0.0.1:${r.value.proxy_port}`:""),H=x(()=>d.value.length>0);function Z(C){return C instanceof Error?C.message:"操作失败"}function te(C){const m=O.value[C.id];return m!==void 0?m:[C.author,C.title].filter(Boolean).join(" / ")}function oe(C,m){O.value[C.id]=m,F.add(C.id)}let Y=!1;function P(){Y||D===void 0&&(D=window.setInterval(()=>{document.visibilityState==="visible"&&r.value?.proxy_running&&w()},3e3))}function a(){D!==void 0&&(window.clearInterval(D),D=void 0)}async function n(C=!1){p.value=!0;try{const m=await ut();if(Y)return;r.value=m,b.value=!!m?.available,b.value?P():a()}catch(m){C||i.error(Z(m))}finally{p.value=!1}}async function w(C=!1){if(!K){K=!0,C&&(k.value=!0);try{const m=await Po();d.value=Array.isArray(m)?m:[]}catch(m){C&&i.error(Z(m))}finally{K=!1,C&&(k.value=!1)}}}function I(){document.visibilityState==="visible"&&(n(!0),r.value?.proxy_running&&w())}function A(C){if(!C){B();return}if(!M.value){T.value=!0;return}h()}async function h(){v.value=!0;try{r.value?.cert_installed||(r.value=await Ro());const C=await No();r.value=C,b.value=!!C?.available,T.value=!1,i.success("嗅探已启动,打开视频号直播间播放后即可看到捕获的流"),await w()}catch(C){i.error(Z(C))}finally{v.value=!1}}async function B(){$.value=!0;try{r.value=await Io(),d.value=[],i.success("已停止嗅探,系统代理已还原")}catch(C){i.error(Z(C))}finally{$.value=!1}}async function q(){z.value=!0;try{r.value=await zo(),i.success("临时根证书已卸载")}catch(C){i.error(Z(C))}finally{z.value=!1}}async function re(C){f.value=C.id;try{const m=F.has(C.id)?{stream_id:C.id,name:O.value[C.id]?.trim()||null}:{stream_id:C.id},U=await dt(m);t("recorded",U),i.success("已加入监控,正在检测开播")}catch(m){i.error(Z(m))}finally{f.value=null}}return De(()=>{document.addEventListener("visibilitychange",I),n()}),Ie(()=>{Y=!0,a(),document.removeEventListener("visibilitychange",I)}),(C,m)=>(l(),c("div",Bo,[o("div",Mo,[o("div",Oo,[o("div",Eo,[m[4]||(m[4]=o("span",{class:"status-label"},"证书状态",-1)),y(u(Pe),{size:"small",round:"",bordered:!1,type:r.value?.cert_installed?"success":"warning"},{default:g(()=>[L(S(W.value),1)]),_:1},8,["type"]),r.value?.cert_installed?(l(),E(u(Q),{key:0,quaternary:"",size:"tiny",loading:z.value,onClick:q},{default:g(()=>[...m[3]||(m[3]=[L(" 卸载证书 ",-1)])]),_:1},8,["loading"])):G("",!0)]),o("div",Ko,[m[5]||(m[5]=o("span",{class:"status-label"},"自动嗅探",-1)),y(u(Kt),{size:"small",value:N.value,loading:v.value||$.value||p.value,disabled:!b.value,"onUpdate:value":A},null,8,["value","loading","disabled"]),N.value&&R.value?(l(),c("span",Ao,S(R.value),1)):(l(),c("span",Lo,S(b.value?"未运行":"仅桌面端可用"),1))])]),N.value?(l(),E(u(Q),{key:0,type:"error",secondary:"",size:"small",loading:$.value,onClick:B},{default:g(()=>[...m[6]||(m[6]=[L(" 停止并还原网络 ",-1)])]),_:1},8,["loading"])):G("",!0)]),r.value?.last_error?(l(),c("div",To,S(r.value.last_error),1)):G("",!0),T.value?(l(),c("div",Fo,[m[10]||(m[10]=o("div",{class:"compliance-title"},"开启自动嗅探前请确认",-1)),m[11]||(m[11]=o("ol",{class:"compliance-list"},[o("li",null,"仅用于录制本人或已获授权的内容"),o("li",null,"会在本机安装临时自签根证书"),o("li",null,"仅解密视频号相关域名,其余流量透传,关闭即自动还原系统代理")],-1)),y(u(fn),{checked:M.value,"onUpdate:checked":m[0]||(m[0]=U=>M.value=U),size:"small"},{default:g(()=>[...m[7]||(m[7]=[L("我已阅读并确认以上说明",-1)])]),_:1},8,["checked"]),o("div",Do,[y(u(Q),{size:"small",quaternary:"",disabled:v.value,onClick:m[1]||(m[1]=U=>T.value=!1)},{default:g(()=>[...m[8]||(m[8]=[L(" 取消 ",-1)])]),_:1},8,["disabled"]),y(u(Q),{size:"small",type:"primary",disabled:!M.value,loading:v.value,onClick:h},{default:g(()=>[...m[9]||(m[9]=[L(" 确认并启动 ",-1)])]),_:1},8,["disabled","loading"])])])):G("",!0),o("div",Uo,[m[13]||(m[13]=o("span",{class:"list-title"},"捕获到的流",-1)),y(u(Q),{size:"tiny",quaternary:"",loading:k.value,onClick:m[2]||(m[2]=U=>w(!0))},{default:g(()=>[...m[12]||(m[12]=[L(" 刷新 ",-1)])]),_:1},8,["loading"])]),H.value?(l(),c("div",Wo,[(l(!0),c(X,null,ze(d.value,U=>(l(),c("div",{key:U.id,class:"stream-item"},[o("div",Ho,[o("span",{class:"time",title:u(rt)(U.captured_at)},S(u(cn)(U.captured_at)),9,Vo),y(u(Pe),{size:"small",round:"",bordered:!1,type:U.protocol==="flv"?"success":"info"},{default:g(()=>[L(S(U.protocol.toUpperCase()),1)]),_:2},1032,["type"]),U.quality_hint?(l(),E(u(Pe),{key:0,size:"small",bordered:!1},{default:g(()=>[L(S(U.quality_hint),1)]),_:2},1024)):G("",!0),o("span",{class:"host",title:U.host},S(U.host),9,qo),y(u(Q),{size:"small",type:"primary",secondary:"",loading:f.value===U.id,disabled:!u(je),onClick:xe=>re(U)},{default:g(()=>[...m[14]||(m[14]=[L(" 一键录制 ",-1)])]),_:1},8,["loading","disabled","onClick"])]),o("div",Go,[y(u(ce),{size:"small",value:te(U),placeholder:"备注(主播 / 标题)",clearable:"","onUpdate:value":xe=>oe(U,xe)},null,8,["value","onUpdate:value"])]),o("div",Jo,S(U.url_preview),1)]))),128))])):(l(),c("div",jo," 进入视频号直播间并播放后回到本页,捕获到的流会出现在这里 "))]))}}),Yo=ke(Xo,[["__scopeId","data-v-0f758067"]]),Zo={class:"modal-head"},Qo={class:"modal-title"},er={class:"modal-sub"},tr={key:0,class:"desktop-hint"},nr={key:1,class:"desktop-hint"},or={key:2,class:"mode-switch"},rr={key:0,class:"capability-note"},ar={class:"capability-list"},lr={class:"modal-foot"},sr=V({__name:"AddStreamerModal",props:{show:{type:Boolean},entity:{}},emits:["update:show","saved"],setup(e,{emit:s}){const t=e,i=s,r=Ue(),d=mn(),b=_(null),p=_(!1),v=_("manual"),$=_(!1),k=_([]),z=_(!1),f=_({url:"",remark:"",filename_prefix:"",format:"ts",time_range:"",check_interval:""}),T=_([]),M=x(()=>T.value.filter(P=>P.blocks_probe)),O=x(()=>!!t.entity),F=x(()=>f.value.url.trim()?Ne(f.value.url.trim()):""),D=[{label:"TS(推荐,抗断流)",value:"ts"},{label:"FLV",value:"flv"},{label:"MP4",value:"mp4"},{label:"MKV",value:"mkv"}],K={url:[{required:!0,message:"请填写直播间地址",trigger:["blur","input"]},{validator:(P,a)=>{if(!a)return!0;const n=a.trim();if(!/^(https?|wxchannel-stream):\/\//i.test(n))return new Error("地址格式不正确,需要以 http://、https:// 或 wxchannel-stream:// 开头");try{return new URL(n),!0}catch{return new Error("地址格式不正确,请检查地址是否完整")}},trigger:["blur"]}],filename_prefix:[{validator:(P,a)=>{const n=vn(a);return n?new Error(n):!0},trigger:["blur","input"]}]};Be(()=>t.show,P=>{if(!P)return;const a=t.entity;f.value.url=a?.url??"",f.value.remark=a?.remark??"",f.value.filename_prefix=a?.filename_prefix??"",f.value.format=a?.format??"ts",f.value.time_range=a?.time_range??"",f.value.check_interval=String(a?.override?.event_loop_interval??""),v.value="manual",W(),!a&&!d&&R()});async function W(){if(!(T.value.length>0))try{T.value=await nn()}catch{T.value=[]}}function N(P){const a={...P??{}},n=f.value.check_interval.trim(),w=Number(n);return n&&Number.isFinite(w)&&w>0?a.event_loop_interval=Math.round(w):delete a.event_loop_interval,Object.keys(a).length>0?a:null}async function R(){z.value=!0;try{const P=await ut();k.value=Array.isArray(P?.whitelist)?P.whitelist:[],$.value=!!P?.available}catch{k.value=[],$.value=!1}finally{z.value=!1}}function H(P,a){const n=P.toLowerCase();return a.some(w=>{const I=w.trim().toLowerCase();return I?n===I||n.endsWith(`.${I}`):!1})}function Z(P){const a=P.trim().toLowerCase();if(a.startsWith("wxchannel-stream://"))return!0;if(d||!/^https?:\/\//.test(a)||!/\.flv(?:[?#]|$)/.test(a)&&!/\.m3u8(?:[?#]|$)/.test(a)||k.value.length===0)return!1;try{return H(new URL(a).hostname,k.value)}catch{return!1}}function te(){i("update:show",!1)}async function oe(){try{await b.value?.validate()}catch{return}p.value=!0;try{const P=f.value.url.trim(),a=f.value.remark.trim();t.entity?(await en({...t.entity,url:P,remark:a,filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(t.entity.override)}),r.success("直播间已更新")):Z(P)?(await dt({url:P,name:a||null}),r.success("已加入监控,正在检测开播")):(await tn({url:P,remark:a||Ne(P)+"直播间",filename_prefix:f.value.filename_prefix.trim()||null,format:f.value.format||null,time_range:f.value.time_range.trim()||null,override:N(null)}),r.success("直播间已添加,正在检测开播状态")),i("saved"),te()}catch(P){r.error(P instanceof Error?P.message:"保存失败")}finally{p.value=!1}}function Y(){i("saved"),te()}return(P,a)=>(l(),E(u(Et),{show:e.show,preset:"card",style:{width:"580px",maxWidth:"92vw"},bordered:!1,"mask-closable":!p.value,"onUpdate:show":a[8]||(a[8]=n=>i("update:show",n))},{header:g(()=>[o("div",Zo,[o("div",null,[o("div",Qo,S(O.value?"编辑直播间":"添加直播间"),1),o("div",er,S(O.value?"修改后会在下一次检测周期生效":"支持抖音、快手、B站、虎牙、斗鱼等平台的直播间地址"),1)]),F.value?(l(),E(u(Pe),{key:0,size:"small",round:"",bordered:!1,type:"success"},{default:g(()=>[L(" 已识别 "+S(F.value),1)]),_:1})):G("",!0)])]),footer:g(()=>[o("div",lr,[y(u(Q),{quaternary:"",disabled:p.value,onClick:te},{default:g(()=>[...a[13]||(a[13]=[L("取消",-1)])]),_:1},8,["disabled"]),O.value||v.value==="manual"?(l(),E(u(Q),{key:0,type:"primary",loading:p.value,disabled:p.value||!u(je),onClick:oe},{default:g(()=>[L(S(O.value?"保存修改":"开始监控"),1)]),_:1},8,["loading","disabled"])):G("",!0)])]),default:g(()=>[O.value?G("",!0):(l(),c(X,{key:0},[u(d)?(l(),c("div",tr," 视频号请直接粘贴直播流地址;自动嗅探请改用桌面客户端。 ")):G("",!0),!u(d)&&!z.value&&!$.value?(l(),c("div",nr," 自动嗅探仅支持桌面端,服务端部署请直接粘贴流地址 ")):G("",!0),u(d)?G("",!0):(l(),c("div",or,[o("button",{class:ue(["mode-pill",{active:v.value==="manual"}]),onClick:a[0]||(a[0]=n=>v.value="manual")}," 手动粘贴流地址 ",2),$.value?(l(),c("button",{key:0,class:ue(["mode-pill",{active:v.value==="capture"}]),onClick:a[1]||(a[1]=n=>v.value="capture")}," 自动嗅探(桌面端) ",2)):G("",!0)]))],64)),!u(d)&&!O.value&&v.value==="capture"&&$.value?(l(),E(Yo,{key:1,onRecorded:Y})):(l(),E(u(pn),{key:2,ref_key:"formRef",ref:b,model:f.value,rules:K,"label-placement":"top","require-mark-placement":"right-hanging"},{default:g(()=>[y(u(me),{label:"直播间地址",path:"url"},{feedback:g(()=>[...a[9]||(a[9]=[o("div",{class:"hint"}," 抖音/快手/B站/虎牙/斗鱼/六间房可直接粘贴直播间地址;抖音分享短链会自动换成长期房间地址。 在场的分享链接只对应这一场直播,链接失效后需要粘贴主播当前开播时的新链接 ",-1),o("div",{class:"hint"}," 视频号请粘贴 *.flv / *.m3u8 流地址(可从视频号助手或抓包工具获取);视频号直链必须是视频号 CDN 域名,其他平台的 .flv/.m3u8 直链照旧直接添加 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.url,placeholder:"https://live.douyin.com/123456789",clearable:"","onUpdate:value":a[2]||(a[2]=n=>f.value.url=n)},null,8,["value"])]),_:1}),y(u(On),{size:14,class:"form-row",style:{width:"100%"}},{default:g(()=>[y(u(me),{label:"备注名称",path:"remark",style:{flex:"1"}},{default:g(()=>[y(u(ce),{value:f.value.remark,placeholder:"例如:某某主播",clearable:"","onUpdate:value":a[3]||(a[3]=n=>f.value.remark=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制格式",path:"format",style:{width:"190px"}},{default:g(()=>[y(u(Jt),{value:f.value.format,options:D,"onUpdate:value":a[4]||(a[4]=n=>f.value.format=n??"")},null,8,["value"])]),_:1})]),_:1}),y(u(me),{label:"文件名前缀",path:"filename_prefix"},{default:g(()=>[y(u(ce),{value:f.value.filename_prefix,placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S;留空使用全局设置",clearable:"","onUpdate:value":a[5]||(a[5]=n=>f.value.filename_prefix=n)},null,8,["value"])]),_:1}),y(u(me),{label:"录制时间段",path:"time_range"},{default:g(()=>[y(u(ce),{value:f.value.time_range,placeholder:"可选,例如 20:00:00-23:59:59;留空表示全天监控",clearable:"","onUpdate:value":a[6]||(a[6]=n=>f.value.time_range=n)},null,8,["value"])]),_:1}),y(u(me),{label:"检查间隔(秒)",path:"check_interval"},{feedback:g(()=>[...a[10]||(a[10]=[o("div",{class:"hint"}," 多久查一次这个房间有没有开播(默认沿用全局设置)。查询连续失败时监控会在此基础上 自动退避(1x→2x→4x→8x 封顶),不会把失败当成下播。 ",-1)])]),default:g(()=>[y(u(ce),{value:f.value.check_interval,placeholder:"可选,例如 30;留空沿用全局设置",clearable:"","onUpdate:value":a[7]||(a[7]=n=>f.value.check_interval=n)},null,8,["value"])]),_:1}),M.value.length?(l(),c("div",rr,[a[11]||(a[11]=o("div",{class:"capability-title"},"这些平台当前无法检测开播(合规限制)",-1)),o("ul",ar,[(l(!0),c(X,null,ze(M.value,n=>(l(),c("li",{key:n.platform},[o("strong",null,S(n.platform),1),L(":"+S(n.detail),1)]))),128))]),a[12]||(a[12]=o("div",{class:"capability-hint"}," 仍可添加,但房间会显示「查询失败」并给出原因;要真正录制请改用受支持平台, 或按平台官方授权链路接入。 ",-1))])):G("",!0)]),_:1},8,["model"]))]),_:1},8,["show","mask-closable"]))}}),ir=ke(sr,[["__scopeId","data-v-b547d50d"]]),ur={class:"page"},dr={class:"page-head"},cr={class:"page-sub"},pr={key:0,class:"mono version"},vr={class:"toolbar"},fr={key:0,class:"stat-grid"},mr={key:1,class:"compact-summary"},hr={class:"list-bar"},wr={class:"filters"},yr=["onClick"],br={key:2,class:"loading"},gr={key:3,class:"error-panel"},kr={class:"error-msg"},xr={key:0,class:"card-grid"},_r={key:1,class:"no-match"},Sr=V({__name:"StreamersView",setup(e){const s=Ue(),t=At(),i=_([]),r=_(null),d=_(!0),b=_(!1),p=_(!1),v=_(""),$=_(""),k=_("all"),z=_(!1),f=_(null);let T;const M=x(()=>{const a=i.value;return{total:a.length,live:a.filter(n=>n.status==="Working").length,pending:a.filter(n=>n.status==="Pending").length,paused:a.filter(n=>n.status==="Pause"||n.status==="StreamExpired").length,probeFailed:a.filter(n=>n.status==="ProbeFailed").length}}),O=x(()=>{const a=$.value.trim().toLowerCase();return i.value.filter(n=>k.value==="live"&&n.status!=="Working"||k.value==="paused"&&n.status!=="Pause"&&n.status!=="StreamExpired"||k.value==="failed"&&n.status!=="ProbeFailed"||k.value==="idle"&&(n.status==="Working"||n.status==="Pause"||n.status==="StreamExpired"||n.status==="ProbeFailed")?!1:a?n.remark.toLowerCase().includes(a)||n.url.toLowerCase().includes(a)||(n.live_streamer_name??"").toLowerCase().includes(a):!0).sort((n,w)=>{const I=A=>A.status==="Working"?0:A.status==="Pending"?1:A.status==="ProbeFailed"?2:3;return I(n)-I(w)||w.id-n.id})});function F(){p.value=window.innerWidth<640}let D=!1,K=!1,W=!1;async function N(a=!1){if(!K){if(D){a||(W=!0);return}D=!0,a?b.value=!0:d.value=i.value.length===0;try{const[n,w]=await Promise.all([on(),rn().catch(()=>null)]);i.value=n,w&&(r.value=w),v.value=""}catch(n){v.value=n instanceof Error?n.message:"加载失败"}finally{D=!1,d.value=!1,b.value=!1,W&&!K&&(W=!1,N(!0))}}}function R(a){k.value=a}function H(){f.value=null,z.value=!0}function Z(a){f.value=a,z.value=!0}async function te(a){try{await an(a.id);const n=a.status==="Pause"||a.status==="StreamExpired";s.success(n?"已恢复监控":"已暂停监控"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"操作失败")}}function oe(a){t.warning({title:"删除直播间",content:`确定删除「${a.remark||a.url}」?已录制的文件不会被删除。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await ln(a.id),s.success("已删除"),await N(!0)}catch(n){s.error(n instanceof Error?n.message:"删除失败")}}})}function Y(){document.visibilityState==="visible"&&N(!0)}De(async()=>{F(),window.addEventListener("resize",F),await N(),!K&&(T=window.setInterval(()=>{document.visibilityState==="visible"&&N(!0)},1e4),document.addEventListener("visibilitychange",Y))}),Ie(()=>{K=!0,T&&window.clearInterval(T),document.removeEventListener("visibilitychange",Y),window.removeEventListener("resize",F)});const P=[{label:"全部",value:"all"},{label:"录制中",value:"live"},{label:"查询失败",value:"failed"},{label:"已暂停",value:"paused"},{label:"未开播",value:"idle"}];return(a,n)=>(l(),c("div",ur,[o("div",dr,[o("div",null,[n[6]||(n[6]=o("h1",{class:"page-title"},"直播监控",-1)),o("p",cr,[n[5]||(n[5]=L(" 添加直播间后自动检测开播并录制,下播自动收尾 ",-1)),r.value?.version?(l(),c("span",pr,"· 服务 v"+S(r.value.version),1)):G("",!0)])]),o("div",vr,[y(u(Q),{quaternary:"",circle:"",loading:b.value,"aria-label":"刷新",onClick:n[0]||(n[0]=w=>N(!0))},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Ye))]),_:1})]),_:1},8,["loading"]),y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Xe))]),_:1})]),default:g(()=>[n[7]||(n[7]=L(" 添加直播间 ",-1))]),_:1})])]),p.value?G("",!0):(l(),c("div",fr,[y(we,{label:"监控直播间",value:M.value.total,hint:"正在值守的直播间总数",icon:u(hn),tone:"accent"},null,8,["value","icon"]),y(we,{label:"正在录制",value:M.value.live,hint:"当前有直播流正在写盘",icon:u(qt),tone:"live"},null,8,["value","icon"]),y(we,{label:"检测中",value:M.value.pending,hint:"等待平台返回开播状态",icon:u(Ye)},null,8,["value","icon"]),y(we,{label:"查询失败",value:M.value.probeFailed,hint:"平台没返回开播状态(不等于下播),卡片上带原因与建议",icon:u(Kn),tone:M.value.probeFailed>0?"warn":"default"},null,8,["value","icon","tone"]),y(we,{label:"上传任务",value:r.value?.uploading??0,hint:"已配置自动上传时显示",icon:u(Ln)},null,8,["value","icon"])])),p.value?(l(),c("div",mr,[o("span",null,[n[8]||(n[8]=L("监控 ",-1)),o("b",null,S(M.value.total),1)]),o("span",null,[n[9]||(n[9]=L("录制中 ",-1)),o("b",null,S(M.value.live),1)]),o("span",null,[n[10]||(n[10]=L("检测中 ",-1)),o("b",null,S(M.value.pending),1)]),o("span",null,[n[11]||(n[11]=L("异常 ",-1)),o("b",null,S(M.value.probeFailed),1)])])):G("",!0),o("div",hr,[o("div",wr,[(l(),c(X,null,ze(P,w=>o("button",{key:w.value,class:ue(["pill",{active:k.value===w.value}]),onClick:I=>R(w.value)},S(w.label),11,yr)),64))]),y(u(ce),{value:$.value,"onUpdate:value":n[1]||(n[1]=w=>$.value=w),class:"search",placeholder:"搜索备注、主播名或地址",clearable:""},{prefix:g(()=>[y(u(de),{size:16},{default:g(()=>[y(u(wn))]),_:1})]),_:1},8,["value"])]),d.value?(l(),c("div",br,[y(u(jt),{size:"large"}),n[12]||(n[12]=o("span",null,"正在连接录制服务…",-1))])):v.value?(l(),c("div",gr,[n[14]||(n[14]=o("div",{class:"error-title"},"无法连接录制服务",-1)),o("div",kr,S(v.value),1),y(u(Q),{size:"small",onClick:n[2]||(n[2]=w=>N())},{default:g(()=>[...n[13]||(n[13]=[L("重试",-1)])]),_:1})])):i.value.length===0?(l(),E(Ht,{key:4,title:"还没有添加直播间",description:"粘贴抖音直播间地址即可开始监控。主播开播后会自动录制,下播后按场次归档。"},{default:g(()=>[y(u(Q),{type:"primary",onClick:H},{icon:g(()=>[y(u(de),null,{default:g(()=>[y(u(Xe))]),_:1})]),default:g(()=>[n[15]||(n[15]=L(" 添加第一个直播间 ",-1))]),_:1})]),_:1})):(l(),c(X,{key:5},[O.value.length?(l(),c("div",xr,[(l(!0),c(X,null,ze(O.value,w=>(l(),E(Co,{key:w.id,streamer:w,onToggle:te,onEdit:Z,onDelete:oe},null,8,["streamer"]))),128))])):(l(),c("div",_r," 没有匹配的直播间,换个关键词或筛选条件试试。 "))],64)),y(ir,{show:z.value,"onUpdate:show":n[3]||(n[3]=w=>z.value=w),entity:f.value,onSaved:n[4]||(n[4]=w=>N(!0))},null,8,["show","entity"])]))}}),Hr=ke(Sr,[["__scopeId","data-v-cdfe01c6"]]);export{Hr as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-BcQ8noQd.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CM0aqR3N.js similarity index 76% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-BcQ8noQd.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CM0aqR3N.js index 092ea8bd..207ef466 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-BcQ8noQd.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CM0aqR3N.js @@ -1,4 +1,4 @@ -import{a2 as X,a7 as a,bb as Y,a4 as H,a6 as l,a5 as Q,d as ve,a8 as J,bm as M,o as u,c as m,a as p,R as r,P as n,n as q,aa as ge,be as we,r as A,ac as me,j as P,ad as E,b2 as v,i as G,bn as pe,Q as ye,bf as ke,bo as xe,af as g,bp as I,am as s,ae as Se}from"./index-Dewca6JL.js";import{u as _e}from"./use-compitable-CcF_TVW8.js";var ze=X("switch",` +import{aS as ve,W as ge,bl as we,a2 as X,a7 as a,ba as Y,a4 as A,a6 as l,a5 as Q,d as me,a8 as J,bm as E,o as u,c as m,a as p,R as r,P as n,n as q,aa as pe,bd as ye,r as H,ac as ke,j as P,ad as M,b1 as v,i as G,bn as xe,Q as Se,be as _e,bo as ze,af as g,bp as I,am as s,ae as $e}from"./index-IeQIGfOC.js";import{u as Be}from"./use-compitable-D5WZISuP.js";function Ke(){const e=ge(we,null);return e===null&&ve("use-dialog","No outer founded."),e}var Ce=X("switch",` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; @@ -47,9 +47,9 @@ import{a2 as X,a7 as a,bb as Y,a4 as H,a6 as l,a5 as Q,d as ve,a8 as J,bm as M,o left: 0; justify-content: flex-end; padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),H("&:focus",[a("rail",` + `),A("&:focus",[a("rail",` box-shadow: var(--n-box-shadow-focus); - `)]),l("round",[a("rail","border-radius: calc(var(--n-rail-height) / 2);",[a("button","border-radius: calc(var(--n-button-height) / 2);")])]),Q("disabled",[Q("icon",[l("rubber-band",[l("pressed",[a("rail",[a("button","max-width: var(--n-button-width-pressed);")])]),a("rail",[H("&:active",[a("button","max-width: var(--n-button-width-pressed);")])]),l("active",[l("pressed",[a("rail",[a("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),a("rail",[H("&:active",[a("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),l("active",[a("rail",[a("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),a("rail",` + `)]),l("round",[a("rail","border-radius: calc(var(--n-rail-height) / 2);",[a("button","border-radius: calc(var(--n-button-height) / 2);")])]),Q("disabled",[Q("icon",[l("rubber-band",[l("pressed",[a("rail",[a("button","max-width: var(--n-button-width-pressed);")])]),a("rail",[A("&:active",[a("button","max-width: var(--n-button-width-pressed);")])]),l("active",[l("pressed",[a("rail",[a("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),a("rail",[A("&:active",[a("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),l("active",[a("rail",[a("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),a("rail",` overflow: hidden; height: var(--n-rail-height); min-width: var(--n-rail-width); @@ -99,4 +99,4 @@ import{a2 as X,a7 as a,bb as Y,a4 as H,a6 as l,a5 as Q,d as ve,a8 as J,bm as M,o `)]),l("disabled",[a("rail",` cursor: not-allowed; opacity: .5; - `)])]);const $e=["aria-checked","tabindex","onClick","onFocus","onBlur","onKeyup","onKeydown"],Be={...J.props,size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]};let z;var Ve=ve({name:"Switch",props:Be,slots:Object,setup(e){z===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?z=CSS.supports("width","max(1px)"):z=!1:z=!0);const{mergedClsPrefixRef:$,inlineThemeDisabled:y,mergedComponentPropsRef:T}=ge(e),K=J("Switch","-switch",ze,xe,e,$),w=we(e,{mergedSize(t){if(e.size!==void 0)return e.size;if(t)return t.mergedSize.value;const b=T?.value?.Switch?.size;return b||"medium"}}),{mergedSizeRef:k,mergedDisabledRef:h}=w,x=A(e.defaultValue),B=Se(e,"value"),f=_e(B,x),C=P(()=>f.value===e.checkedValue),i=A(!1),o=A(!1),S=P(()=>{const{railStyle:t}=e;if(t)return t({focused:o.value,checked:C.value})});function R(t){const{"onUpdate:value":b,onChange:V,onUpdateValue:F}=e,{nTriggerFormInput:W,nTriggerFormChange:D}=w;b&&E(b,t),F&&E(F,t),V&&E(V,t),x.value=t,W(),D()}function Z(){const{nTriggerFormFocus:t}=w;t()}function ee(){const{nTriggerFormBlur:t}=w;t()}function te(){e.loading||h.value||(f.value!==e.checkedValue?R(e.checkedValue):R(e.uncheckedValue))}function ae(){o.value=!0,Z()}function ie(){o.value=!1,ee(),i.value=!1}function ne(t){e.loading||h.value||t.key===" "&&(f.value!==e.checkedValue?R(e.checkedValue):R(e.uncheckedValue),i.value=!1)}function oe(t){e.loading||h.value||t.key===" "&&(t.preventDefault(),i.value=!0)}const O=P(()=>{const{value:t}=k,{self:{opacityDisabled:b,railColor:V,railColorActive:F,buttonBoxShadow:W,buttonColor:D,boxShadowFocus:re,loadingColor:le,textColor:se,iconColor:ce,[g("buttonHeight",t)]:c,[g("buttonWidth",t)]:de,[g("buttonWidthPressed",t)]:ue,[g("railHeight",t)]:d,[g("railWidth",t)]:_,[g("railBorderRadius",t)]:he,[g("buttonBorderRadius",t)]:fe},common:{cubicBezierEaseInOut:be}}=K.value;let j,N,U;return z?(j=`calc((${d} - ${c}) / 2)`,N=`max(${d}, ${c})`,U=`max(${_}, calc(${_} + ${c} - ${d}))`):(j=I((s(d)-s(c))/2),N=I(Math.max(s(d),s(c))),U=s(d)>s(c)?_:I(s(_)+s(c)-s(d))),{"--n-bezier":be,"--n-button-border-radius":fe,"--n-button-box-shadow":W,"--n-button-color":D,"--n-button-width":de,"--n-button-width-pressed":ue,"--n-button-height":c,"--n-height":N,"--n-offset":j,"--n-opacity-disabled":b,"--n-rail-border-radius":he,"--n-rail-color":V,"--n-rail-color-active":F,"--n-rail-height":d,"--n-rail-width":_,"--n-width":U,"--n-box-shadow-focus":re,"--n-loading-color":le,"--n-text-color":se,"--n-icon-color":ce}}),L=y?me("switch",P(()=>k.value[0]),O,e):void 0;return{handleClick:te,handleBlur:ie,handleFocus:ae,handleKeyup:ne,handleKeydown:oe,mergedRailStyle:S,pressed:i,mergedClsPrefix:$,mergedValue:f,checked:C,mergedDisabled:h,cssVars:y?void 0:O,themeClass:L?.themeClass,onRender:L?.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:$,checked:y,mergedRailStyle:T,onRender:K,$slots:w}=this;K?.();const{checked:k,unchecked:h,icon:x,"checked-icon":B,"unchecked-icon":f}=w,C=!(M(x)&&M(B)&&M(f));return u(),m("div",{role:"switch","aria-checked":y,class:n([`${e}-switch`,this.themeClass,C&&`${e}-switch--icon`,y&&`${e}-switch--active`,$&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`]),tabindex:this.mergedDisabled?void 0:0,style:q(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[p("div",{class:n(`${e}-switch__rail`),"aria-hidden":"true",style:q(T)},[r(()=>v(k,i=>v(h,o=>i||o?(u(),m("div",{key:4,"aria-hidden":!0,class:n(`${e}-switch__children-placeholder`)},[p("div",{class:n(`${e}-switch__rail-placeholder`)},[p("div",{class:n(`${e}-switch__button-placeholder`)},null,2),r(()=>i)],2),p("div",{class:n(`${e}-switch__rail-placeholder`)},[p("div",{class:n(`${e}-switch__button-placeholder`)},null,2),r(()=>o)],2)],2)):null))),p("div",{class:n(`${e}-switch__button`)},[r(()=>v(x,i=>v(B,o=>v(f,S=>(u(),G(ke,null,{default:()=>this.loading?(u(),G(pe,ye({key:"loading",clsPrefix:e,strokeWidth:20},this.spinProps),null,16,["clsPrefix"])):this.checked&&(o||i)?(u(),m("div",{class:n(`${e}-switch__button-icon`),key:o?"checked-icon":"icon"},[r(()=>o||i)],2)):!this.checked&&(S||i)?(u(),m("div",{class:n(`${e}-switch__button-icon`),key:S?"unchecked-icon":"icon"},[r(()=>S||i)],2)):null},1024)))))),r(()=>v(k,i=>i&&(u(),m("div",{key:"checked",class:n(`${e}-switch__checked`)},[r(()=>i)],2)))),r(()=>v(h,i=>i&&(u(),m("div",{key:"unchecked",class:n(`${e}-switch__unchecked`)},[r(()=>i)],2))))],2)],6)],46,$e)}});export{Ve as S}; + `)])]);const Re=["aria-checked","tabindex","onClick","onFocus","onBlur","onKeyup","onKeydown"],Ve={...J.props,size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]};let z;var Te=me({name:"Switch",props:Ve,slots:Object,setup(e){z===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?z=CSS.supports("width","max(1px)"):z=!1:z=!0);const{mergedClsPrefixRef:$,inlineThemeDisabled:y,mergedComponentPropsRef:K}=pe(e),T=J("Switch","-switch",Ce,ze,e,$),w=ye(e,{mergedSize(t){if(e.size!==void 0)return e.size;if(t)return t.mergedSize.value;const b=K?.value?.Switch?.size;return b||"medium"}}),{mergedSizeRef:k,mergedDisabledRef:h}=w,x=H(e.defaultValue),B=$e(e,"value"),f=Be(B,x),C=P(()=>f.value===e.checkedValue),i=H(!1),o=H(!1),S=P(()=>{const{railStyle:t}=e;if(t)return t({focused:o.value,checked:C.value})});function R(t){const{"onUpdate:value":b,onChange:V,onUpdateValue:F}=e,{nTriggerFormInput:W,nTriggerFormChange:j}=w;b&&M(b,t),F&&M(F,t),V&&M(V,t),x.value=t,W(),j()}function Z(){const{nTriggerFormFocus:t}=w;t()}function ee(){const{nTriggerFormBlur:t}=w;t()}function te(){e.loading||h.value||(f.value!==e.checkedValue?R(e.checkedValue):R(e.uncheckedValue))}function ae(){o.value=!0,Z()}function ie(){o.value=!1,ee(),i.value=!1}function ne(t){e.loading||h.value||t.key===" "&&(f.value!==e.checkedValue?R(e.checkedValue):R(e.uncheckedValue),i.value=!1)}function oe(t){e.loading||h.value||t.key===" "&&(t.preventDefault(),i.value=!0)}const O=P(()=>{const{value:t}=k,{self:{opacityDisabled:b,railColor:V,railColorActive:F,buttonBoxShadow:W,buttonColor:j,boxShadowFocus:re,loadingColor:le,textColor:se,iconColor:ce,[g("buttonHeight",t)]:c,[g("buttonWidth",t)]:de,[g("buttonWidthPressed",t)]:ue,[g("railHeight",t)]:d,[g("railWidth",t)]:_,[g("railBorderRadius",t)]:he,[g("buttonBorderRadius",t)]:fe},common:{cubicBezierEaseInOut:be}}=T.value;let D,N,U;return z?(D=`calc((${d} - ${c}) / 2)`,N=`max(${d}, ${c})`,U=`max(${_}, calc(${_} + ${c} - ${d}))`):(D=I((s(d)-s(c))/2),N=I(Math.max(s(d),s(c))),U=s(d)>s(c)?_:I(s(_)+s(c)-s(d))),{"--n-bezier":be,"--n-button-border-radius":fe,"--n-button-box-shadow":W,"--n-button-color":j,"--n-button-width":de,"--n-button-width-pressed":ue,"--n-button-height":c,"--n-height":N,"--n-offset":D,"--n-opacity-disabled":b,"--n-rail-border-radius":he,"--n-rail-color":V,"--n-rail-color-active":F,"--n-rail-height":d,"--n-rail-width":_,"--n-width":U,"--n-box-shadow-focus":re,"--n-loading-color":le,"--n-text-color":se,"--n-icon-color":ce}}),L=y?ke("switch",P(()=>k.value[0]),O,e):void 0;return{handleClick:te,handleBlur:ie,handleFocus:ae,handleKeyup:ne,handleKeydown:oe,mergedRailStyle:S,pressed:i,mergedClsPrefix:$,mergedValue:f,checked:C,mergedDisabled:h,cssVars:y?void 0:O,themeClass:L?.themeClass,onRender:L?.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:$,checked:y,mergedRailStyle:K,onRender:T,$slots:w}=this;T?.();const{checked:k,unchecked:h,icon:x,"checked-icon":B,"unchecked-icon":f}=w,C=!(E(x)&&E(B)&&E(f));return u(),m("div",{role:"switch","aria-checked":y,class:n([`${e}-switch`,this.themeClass,C&&`${e}-switch--icon`,y&&`${e}-switch--active`,$&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`]),tabindex:this.mergedDisabled?void 0:0,style:q(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[p("div",{class:n(`${e}-switch__rail`),"aria-hidden":"true",style:q(K)},[r(()=>v(k,i=>v(h,o=>i||o?(u(),m("div",{key:4,"aria-hidden":!0,class:n(`${e}-switch__children-placeholder`)},[p("div",{class:n(`${e}-switch__rail-placeholder`)},[p("div",{class:n(`${e}-switch__button-placeholder`)},null,2),r(()=>i)],2),p("div",{class:n(`${e}-switch__rail-placeholder`)},[p("div",{class:n(`${e}-switch__button-placeholder`)},null,2),r(()=>o)],2)],2)):null))),p("div",{class:n(`${e}-switch__button`)},[r(()=>v(x,i=>v(B,o=>v(f,S=>(u(),G(_e,null,{default:()=>this.loading?(u(),G(xe,Se({key:"loading",clsPrefix:e,strokeWidth:20},this.spinProps),null,16,["clsPrefix"])):this.checked&&(o||i)?(u(),m("div",{class:n(`${e}-switch__button-icon`),key:o?"checked-icon":"icon"},[r(()=>o||i)],2)):!this.checked&&(S||i)?(u(),m("div",{class:n(`${e}-switch__button-icon`),key:S?"unchecked-icon":"icon"},[r(()=>S||i)],2)):null},1024)))))),r(()=>v(k,i=>i&&(u(),m("div",{key:"checked",class:n(`${e}-switch__checked`)},[r(()=>i)],2)))),r(()=>v(h,i=>i&&(u(),m("div",{key:"unchecked",class:n(`${e}-switch__unchecked`)},[r(()=>i)],2))))],2)],6)],46,Re)}});export{Te as S,Ke as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-EiwVCUcb.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Cf83Ptp8.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-EiwVCUcb.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Cf83Ptp8.js index 686c30e0..9d1daa16 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-EiwVCUcb.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Cf83Ptp8.js @@ -1 +1 @@ -import{d as t,c as n,a as o,o as r}from"./index-Dewca6JL.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; +import{d as t,c as n,a as o,o as r}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-C8KY-gaw.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-BhKLKalr.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-C8KY-gaw.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-BhKLKalr.js index 643608b9..ef96579b 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-C8KY-gaw.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-BhKLKalr.js @@ -1,4 +1,4 @@ -import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-Dewca6JL.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` +import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-IeQIGfOC.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` height: 1em; width: 1em; line-height: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-Uo85WSlp.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-Uo85WSlp.js deleted file mode 100644 index e3411b59..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-Uo85WSlp.js +++ /dev/null @@ -1 +0,0 @@ -import{ap as n,ao as a}from"./index-Dewca6JL.js";const e=!0,t="engine-v1.1.3",o=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),c=()=>n("/miniapp/engine/cancel");export{e as E,t as a,c,o as g,i as s}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-BXjEZp_d.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-BXjEZp_d.js deleted file mode 100644 index a0979c11..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-BXjEZp_d.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e,j as a}from"./index-Dewca6JL.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C08MtSql.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C08MtSql.js new file mode 100644 index 00000000..b1ef9592 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C08MtSql.js @@ -0,0 +1 @@ +import{r as e,j as a}from"./index-IeQIGfOC.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-wF7co_0F.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-wF7co_0F.js new file mode 100644 index 00000000..1d7d47ea --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-wF7co_0F.js @@ -0,0 +1 @@ +import{ap as n,ao as a}from"./index-IeQIGfOC.js";const o=!0,s=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),t=()=>n("/miniapp/engine/redownload"),p=()=>n("/miniapp/engine/cancel");export{o as E,p as c,s as g,t as r,i as s}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Dewca6JL.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-IeQIGfOC.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Dewca6JL.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-IeQIGfOC.js index cad80557..c9dfaaa2 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Dewca6JL.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-IeQIGfOC.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-BctFe39X.js","assets/Input-v4sTQ7Pz.js","assets/use-compitable-CcF_TVW8.js","assets/CheckboxGroup-Df5112cP.js","assets/_plugin-vue_export-helper-C8KY-gaw.js","assets/Spin-BbqDP5dl.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-BWuJr4AI.js","assets/RefreshOutline-AM6fn2f1.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-CAYRlNMN.js","assets/PulseOutline-B76LUJRI.js","assets/use-message-DoP8RQDr.js","assets/streamers-Bqfjqsa8.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-Uo85WSlp.js","assets/engine-state-BXjEZp_d.js","assets/VideocamOutline-EiwVCUcb.js","assets/FilmOutline-C3cZd2xG.js","assets/GitCompareOutline-B9U2QCIP.js","assets/CloudDownloadOutline-i6vXE3nl.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-Dpzh-nNm.js","assets/AddOutline-RKRa1cGv.js","assets/EmptyState-X3-6UyRF.js","assets/EmptyState-BJiq6Btv.css","assets/Select-Cl5vTXvX.js","assets/format-B8CnorUZ.js","assets/filename-template-DBJXvN0y.js","assets/Switch-BcQ8noQd.js","assets/SearchOutline-r0tEsj-I.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-SRhryImQ.js","assets/DownloadOutline-DxvLxbyx.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-C32h1q4d.js","assets/DocumentTextOutline-YbRT-tSM.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-CSQ6hh8U.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-Dcoelb-a.js","assets/SettingsView-T1R_3ITH.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-BjbMAX6a.js","assets/Input-1zXREyVM.js","assets/use-compitable-D5WZISuP.js","assets/CheckboxGroup-DIEr6wY4.js","assets/_plugin-vue_export-helper-BhKLKalr.js","assets/Spin-D2w1FlaT.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-BKOOfxKt.js","assets/RefreshOutline-D9KhQzcL.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-scECmWLS.js","assets/PulseOutline-CDhfZ1-d.js","assets/use-message-DtvhZdQK.js","assets/streamers-959wQihJ.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-wF7co_0F.js","assets/engine-state-C08MtSql.js","assets/VideocamOutline-Cf83Ptp8.js","assets/FilmOutline-BiokjmgW.js","assets/GitCompareOutline-CIgdGm-f.js","assets/CloudDownloadOutline-B3mrN2nS.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-BS7njuEF.js","assets/Switch-CM0aqR3N.js","assets/EmptyState-DLXMt06R.js","assets/EmptyState-BJiq6Btv.css","assets/Select-CtC43ppV.js","assets/format-B8CnorUZ.js","assets/AddOutline-BBW-Am9Z.js","assets/filename-template-DBJXvN0y.js","assets/SearchOutline-atP4ikMv.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-DQJVOvaX.js","assets/DownloadOutline-E2iASfAS.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-I_oin3xl.js","assets/DocumentTextOutline-ejgmikUf.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-ByV6k06l.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-7xwJcQmS.js","assets/SettingsView-CiZee7qJ.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function va(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Oe={},lr=[],co=()=>{},Cd=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),qe=Object.assign,Ca=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Em=Object.prototype.hasOwnProperty,Re=(e,t)=>Em.call(e,t),ge=Array.isArray,Uo=e=>On(e)==="[object Map]",mi=e=>On(e)==="[object Set]",ss=e=>On(e)==="[object Date]",ye=e=>typeof e=="function",Ve=e=>typeof e=="string",kt=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",xd=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),yd=Object.prototype.toString,On=e=>yd.call(e),_m=e=>On(e).slice(8,-1),Sd=e=>On(e)==="[object Object]",Bi=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ki=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},$m=/-\w/g,wt=ki(e=>e.replace($m,t=>t.slice(1).toUpperCase())),Rm=/\B([A-Z])/g,Cr=ki(e=>e.replace(Rm,"-$1").toLowerCase()),Di=ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),ml=ki(e=>e?`on${Di(e)}`:""),io=(e,t)=>!Object.is(e,t),gl=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},Im=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Am=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let cs;const Li=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ge(e)){const t={};for(let o=0;oo.startsWith("/*")?"":o).split(Hm).forEach(o=>{if(o){const r=o.split(Mm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function mr(e){let t="";if(Ve(e))t=e;else if(ge(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Om=e=>Ve(e)?e:e==null?"":ge(e)||Ie(e)&&(e.toString===yd||!ye(e.toString))?Td(e)?Om(e.value):JSON.stringify(e,Ed,2):String(e),Ed=(e,t)=>Td(t)?Ed(e,t.value):Uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[bl(r,i)+" =>"]=n,o),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bl(o))}:kt(t)?bl(t):Ie(t)&&!ge(t)&&!Sd(t)?String(t):t,bl=(e,t="")=>{var o;return kt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let it;class Wm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&it&&(it.active?(this.parent=it,this.index=(it.scopes||(it.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(it===this)it=this.prevScope;else{let t=it;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(pn){let t=pn;for(pn=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;hn;){let t=hn;for(hn=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Id(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ad(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Sa(r),jm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function Wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wl(e))))return;e.flags|=2;const t=e.dep,o=We,r=Xt;We=e,Xt=!0;try{Id(e);const n=e.fn(e._value);(t.version===0||io(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{We=o,Xt=r,Ad(e),e.flags&=-3}}function Sa(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Sa(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function jm(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Xt=!0;const Md=[];function fo(){Md.push(Xt),Xt=!1}function ho(){const e=Md.pop();Xt=e===void 0?!0:e}function fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=We;We=void 0;try{t()}finally{We=o}}}let yn=0;class Vm{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!Xt||We===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==We)o=this.activeLink=new Vm(We,this),We.deps?(o.prevDep=We.depsTail,We.depsTail.nextDep=o,We.depsTail=o):We.deps=We.depsTail=o,zd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=We.depsTail,o.nextDep=void 0,We.depsTail.nextDep=o,We.depsTail=o,We.deps===o&&(We.deps=r)}return o}trigger(t){this.version++,yn++,this.notify(t)}notify(t){xa();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ya()}}}function zd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zd(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const gi=new WeakMap,ur=Symbol(""),Nl=Symbol(""),Sn=Symbol("");function ht(e,t,o){if(Xt&&We){let r=gi.get(e);r||gi.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new wa),n.map=r,n.key=o),n.track()}}function To(e,t,o,r,n,i){const l=gi.get(e);if(!l){yn++;return}const a=s=>{s&&s.trigger()};if(xa(),t==="clear")l.forEach(a);else{const s=ge(e),d=s&&Bi(o);if(s&&o==="length"){const c=Number(r);l.forEach((u,f)=>{(f==="length"||f===Sn||!kt(f)&&f>=c)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),d&&a(l.get(Sn)),t){case"add":s?d&&a(l.get("length")):(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"delete":s||(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"set":Uo(e)&&a(l.get(ur));break}}ya()}function Gm(e,t){const o=gi.get(e);return o&&o.get(t)}function _r(e){const t=_e(e);return t===e||(ht(t,"iterate",Sn),Ft(e))?t:mo(e)?qo(e)?t.map(o=>Ko(jt(o))):t.map(Ko):t.map(jt)}function Wi(e){return ht(e=_e(e),"iterate",Sn),e}function oo(e,t){return mo(e)?Ko(qo(e)?jt(t):t):jt(t)}const Um={__proto__:null,[Symbol.iterator](){return Cl(this,Symbol.iterator,e=>oo(this,e))},concat(...e){return _r(this).concat(...e.map(t=>ge(t)?_r(t):t))},entries(){return Cl(this,"entries",e=>(e[1]=oo(this,e[1]),e))},every(e,t){return yo(this,"every",e,t,void 0,arguments)},filter(e,t){return yo(this,"filter",e,t,o=>o.map(r=>oo(this,r)),arguments)},find(e,t){return yo(this,"find",e,t,o=>oo(this,o),arguments)},findIndex(e,t){return yo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yo(this,"findLast",e,t,o=>oo(this,o),arguments)},findLastIndex(e,t){return yo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yo(this,"forEach",e,t,void 0,arguments)},includes(...e){return xl(this,"includes",e)},indexOf(...e){return xl(this,"indexOf",e)},join(e){return _r(this).join(e)},lastIndexOf(...e){return xl(this,"lastIndexOf",e)},map(e,t){return yo(this,"map",e,t,void 0,arguments)},pop(){return Jr(this,"pop")},push(...e){return Jr(this,"push",e)},reduce(e,...t){return ps(this,"reduce",e,t)},reduceRight(e,...t){return ps(this,"reduceRight",e,t)},shift(){return Jr(this,"shift")},some(e,t){return yo(this,"some",e,t,void 0,arguments)},splice(...e){return Jr(this,"splice",e)},toReversed(){return _r(this).toReversed()},toSorted(e){return _r(this).toSorted(e)},toSpliced(...e){return _r(this).toSpliced(...e)},unshift(...e){return Jr(this,"unshift",e)},values(){return Cl(this,"values",e=>oo(this,e))}};function Cl(e,t,o){const r=Wi(e),n=r[t],i=n.call(r);if(r!==e&&!Ft(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const l=Object.create(Object.getPrototypeOf(i));return l.next=()=>hs(i.next(),o),n!==Fd[t]&&Object.defineProperties(l,{return:{get(){const a=i.return;return typeof a=="function"?a.bind(i):a}},throw:{get(){const a=i.throw;return typeof a=="function"?a.bind(i):a}}}),l}i._next=i.next,i.next=()=>hs(i._next(),o)}return i}function hs(e,t){return e.done||(e.value=t(e.value)),e}const Fd=Array.prototype;function yo(e,t,o,r,n,i){const l=Wi(e),a=l!==e&&!Ft(e),s=l[t];if(s!==Fd[t]){const u=s.apply(e,i);return a?jt(u):u}let d=o;l!==e&&(a?d=function(u,f){return o.call(this,oo(e,u),f,e)}:o.length>2&&(d=function(u,f){return o.call(this,u,f,e)}));const c=s.call(l,d,r);return a&&n?n(c):c}function ps(e,t,o,r){const n=Wi(e),i=n!==e&&!Ft(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(d,c,u){return a&&(a=!1,d=oo(e,d)),o.call(this,d,oo(e,c),u,e)}):o.length>3&&(l=function(d,c,u){return o.call(this,d,c,u,e)}));const s=n[t](l,...r);return a?oo(e,s):s}function xl(e,t,o){const r=_e(e);ht(r,"iterate",Sn);const n=r[t](...o);return(n===-1||n===!1)&&Ni(o[0])?(o[0]=_e(o[0]),r[t](...o)):n}function Jr(e,t,o=[]){fo(),xa();const r=_e(e)[t].apply(e,o);return ya(),ho(),r}const qm=va("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function Km(e){kt(e)||(e=String(e));const t=_e(this);return ht(t,"has",e),t.hasOwnProperty(e)}class kd{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?ng:Wd:i?Od:Ld).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=ge(t);if(!n){let s;if(l&&(s=Um[o]))return s;if(o==="hasOwnProperty")return Km}const a=Reflect.get(t,o,ot(t)?t:r);if((kt(o)?Bd.has(o):qm(o))||(n||ht(t,"get",o),i))return a;if(ot(a)){const s=l&&Bi(o)?a:a.value;return n&&Ie(s)?po(s):s}return Ie(a)?n?po(a):xr(a):a}}class Dd extends kd{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=ge(t)&&Bi(o);if(!this._isShallow){const d=mo(i);if(!Ft(r)&&!mo(r)&&(i=_e(i),r=_e(r)),!l&&ot(i)&&!ot(r))return d||(i.value=r),!0}const a=l?Number(o)e,Yn=e=>Reflect.getPrototypeOf(e);function Qm(e,t,o){return function(...r){const n=this.__v_raw,i=_e(n),l=Uo(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,d=n[e](...r),c=o?jl:t?Ko:jt;return!t&&ht(i,"iterate",s?Nl:ur),qe(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:a?[c(u[0]),c(u[1])]:c(u),done:f}}})}}function Xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eg(e,t){const o={get(n){const i=this.__v_raw,l=_e(i),a=_e(n);e||(io(n,a)&&ht(l,"get",n),ht(l,"get",a));const{has:s}=Yn(l),d=t?jl:e?Ko:jt;if(s.call(l,n))return d(i.get(n));if(s.call(l,a))return d(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&ht(_e(n),"iterate",ur),n.size},has(n){const i=this.__v_raw,l=_e(i),a=_e(n);return e||(io(n,a)&&ht(l,"has",n),ht(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=_e(a),d=t?jl:e?Ko:jt;return!e&&ht(s,"iterate",ur),a.forEach((c,u)=>n.call(i,d(c),d(u),l))}};return qe(o,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(n){const i=_e(this),l=Yn(i),a=_e(n),s=!t&&!Ft(n)&&!mo(n)?a:n;return l.has.call(i,s)||io(n,s)&&l.has.call(i,n)||io(a,s)&&l.has.call(i,a)||(i.add(s),To(i,"add",s,s)),this},set(n,i){!t&&!Ft(i)&&!mo(i)&&(i=_e(i));const l=_e(this),{has:a,get:s}=Yn(l);let d=a.call(l,n);d||(n=_e(n),d=a.call(l,n));const c=s.call(l,n);return l.set(n,i),d?io(i,c)&&To(l,"set",n,i):To(l,"add",n,i),this},delete(n){const i=_e(this),{has:l,get:a}=Yn(i);let s=l.call(i,n);s||(n=_e(n),s=l.call(i,n)),a&&a.call(i,n);const d=i.delete(n);return s&&To(i,"delete",n,void 0),d},clear(){const n=_e(this),i=n.size!==0,l=n.clear();return i&&To(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Qm(n,e,t)}),o}function Pa(e,t){const o=eg(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_isShallow"?t:n==="__v_raw"?r:Reflect.get(Re(o,n)&&n in r?o:r,n,i)}const tg={get:Pa(!1,!1)},og={get:Pa(!1,!0)},rg={get:Pa(!0,!1)};const Ld=new WeakMap,Od=new WeakMap,Wd=new WeakMap,ng=new WeakMap;function ig(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xr(e){return mo(e)?e:Ta(e,!1,Xm,tg,Ld)}function Nd(e){return Ta(e,!1,Jm,og,Od)}function po(e){return Ta(e,!0,Zm,rg,Wd)}function Ta(e,t,o,r,n){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=ig(_m(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function qo(e){return mo(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Ni(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Vl(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&wd(e,"__v_skip",!0),e}const jt=e=>Ie(e)?xr(e):e,Ko=e=>Ie(e)?po(e):e;function ot(e){return e?e.__v_isRef===!0:!1}function se(e){return Vd(e,!1)}function jd(e){return Vd(e,!0)}function Vd(e,t){return ot(e)?e:new lg(e,t)}class lg{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:_e(t),this._value=o?t:jt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||Ft(t)||mo(t);t=r?t:_e(t),io(t,o)&&(this._rawValue=t,this._value=r?t:jt(t),this.dep.trigger())}}function Yt(e){return ot(e)?e.value:e}const ag={get:(e,t,o)=>t==="__v_raw"?e:Yt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return ot(n)&&!ot(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function Gd(e){return qo(e)?e:new Proxy(e,ag)}class sg{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=kt(o)?o:String(o),this._raw=_e(t);let n=!0,i=t;if(!ge(t)||kt(this._key)||!Bi(this._key))do n=!Ni(i)||Ft(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Yt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ot(this._raw[this._key])){const o=this._object[this._key];if(ot(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Gm(this._raw,this._key)}}class cg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function uo(e,t,o){return ot(e)?e:ye(e)?new cg(e):Ie(e)&&arguments.length>1?dg(e,t,o):se(e)}function dg(e,t,o){return new sg(e,t,o)}class ug{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Rd(this,!0),!0}get value(){const t=this.dep.track();return Hd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,o=!1){let r,n;return ye(e)?r=e:(r=e.get,n=e.set),new ug(r,n,o)}const Zn={},bi=new WeakMap;let or;function hg(e,t=!1,o=or){if(o){let r=bi.get(o);r||bi.set(o,r=[]),r.push(e)}}function pg(e,t,o=Oe){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,d=P=>n?P:Ft(P)||n===!1||n===0?Eo(P,1):Eo(P);let c,u,f,h,p=!1,g=!1;if(ot(e)?(u=()=>e.value,p=Ft(e)):qo(e)?(u=()=>d(e),p=!0):ge(e)?(g=!0,p=e.some(P=>qo(P)||Ft(P)),u=()=>e.map(P=>{if(ot(P))return P.value;if(qo(P))return d(P);if(ye(P))return s?s(P,2):P()})):ye(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){fo();try{f()}finally{ho()}}const P=or;or=c;try{return s?s(e,3,[h]):e(h)}finally{or=P}}:u=co,t&&n){const P=u,A=n===!0?1/0:n;u=()=>Eo(P(),A)}const b=Nm(),C=()=>{c.stop(),b&&b.active&&Ca(b.effects,c)};if(i&&t){const P=t;t=(...A)=>{try{return P(...A)}finally{C()}}}let y=g?new Array(e.length).fill(Zn):Zn;const T=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const A=c.run();if(P||n||p||(g?A.some((M,v)=>io(M,y[v])):io(A,y))){const M=or;fo();try{f&&f(),or=c;const v=[A,y===Zn?void 0:g&&y[0]===Zn?[]:y,h];y=A,s?s(t,3,v):t(...v)}finally{or=M,ho()}}}else c.run()};return a&&a(T),c=new _d(u),c.scheduler=l?()=>l(T,!1):T,h=P=>hg(P,!1,c),f=c.onStop=()=>{const P=bi.get(c);if(P){if(s)s(P,4);else for(const A of P)A();bi.delete(c)}},t?r?T(!0):y=c.run():l?l(T.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function Eo(e,t=1/0,o){if(t<=0||!Ie(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,ot(e))Eo(e.value,t,o);else if(ge(e))for(let r=0;r{Eo(r,t,o)});else if(Sd(e)){for(const r in e)Eo(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Eo(e[r],t,o)}return e}function Wn(e,t,o,r){try{return r?e(...r):e()}catch(n){ji(n,t,o)}}function Vt(e,t,o,r){if(ye(e)){const n=Wn(e,t,o,r);return n&&xd(n)&&n.catch(i=>{ji(i,t,o,void 0,!0)}),n}if(ge(e)){const n=[];for(let i=0;i>>1,n=yt[r],i=wn(n);i=wn(o)?yt.push(e):yt.splice(gg(t),0,e),e.flags|=1,qd()}}function qd(){vi||(vi=Ud.then(Xd))}function bg(e){if(!ge(e))Wo&&e.id===-1?Wo.splice(Ar+1,0,e):e.flags&1||(ro.push(e),e.flags|=1);else for(let t=0;t=t))continue;yt.splice(r,1),r=e?r-1:Ut,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Yd(e,t,o=0){if(ro.length){let r=ro,n=0;if(t){r=[];for(let l=0;lwn(l)-wn(a));if(ro.length=n,Wo){for(let l=0;le.id==null?e.flags&2?-1:1/0:e.id;function Xd(e){try{for(Ut=0;Ut{r._d&&wi(-1);const i=Ci(t),l=$o.length;let a;try{a=e(...n)}finally{for(let s=$o.length;s>l;s--)Ha();Ci(i),r._d&&wi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Gl(e,t){if(lt===null)return e;const o=Yi(lt),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ye(t)?t.call(r&&r.proxy):t}}const Cg=Symbol.for("v-scx"),xg=()=>De(Cg);function Gi(e,t){return Ea(e,null,t)}function Nt(e,t,o){return Ea(e,t,o)}function Ea(e,t,o=Oe){const{immediate:r,deep:n,flush:i,once:l}=o,a=qe({},o),s=t&&r||!t&&i!=="post";let d;if(In){if(i==="sync"){const h=xg();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=co,h.resume=co,h.pause=co,h}}const c=mt;a.call=(h,p,g)=>Vt(h,c,p,g);let u=!1;i==="post"?a.scheduler=h=>{h.i=c,ft(h,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Vi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=pg(e,t,a);return In&&(d?d.push(f):s&&f()),f}function yg(e,t,o){const r=this.proxy,n=Ve(e)?e.includes(".")?Jd(r,e):()=>r[e]:e.bind(r,r);let i;ye(t)?i=t:(i=t.handler,o=t);const l=jn(this),a=Ea(n,i.bind(r),o);return l(),a}function Jd(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,nr=e=>e&&(e.disabled||e.disabled===""),Sg=e=>e&&(e.defer||e.defer===""),ms=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ul=(e,t)=>{const o=e&&e.to;return Ve(o)?t?t(o):null:o},wg={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,d){const{mc:c,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b,parentNode:C}}=d,y=nr(t.props);let{dynamicChildren:T}=t;const P=(v,w,_)=>{v.shapeFlag&16&&c(v.children,w,_,n,i,l,a,s)},A=(v=t)=>{const w=nr(v.props),_=v.target=Ul(v.props,p),H=ql(_,v,g,h);_&&(l!=="svg"&&ms(_)?l="svg":l!=="mathml"&&gs(_)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(_),w||(P(v,_,H),an(v,!1)))},M=v=>{const w=()=>{if(Lo.get(v)===w){if(Lo.delete(v),nr(v.props)){const _=C(v.el)||o;P(v,_,v.anchor),an(v,!0)}A(v)}};Lo.set(v,w),ft(w,i)};if(e==null){const v=t.el=g(""),w=t.anchor=g("");if(h(v,o,r),h(w,o,r),Sg(t.props)||i&&i.pendingBranch){M(t);return}y&&(P(t,o,w),an(t,!0)),A()}else{t.el=e.el;const v=t.anchor=e.anchor,w=Lo.get(e);if(w){w.flags|=8,Lo.delete(e),M(t);return}t.targetStart=e.targetStart;const _=t.target=e.target,H=t.targetAnchor=e.targetAnchor,O=nr(e.props),$=O?o:_,K=O?v:H;if(l==="svg"||ms(_)?l="svg":(l==="mathml"||gs(_))&&(l="mathml"),T?(f(e.dynamicChildren,T,$,n,i,l,a),Aa(e,t,!0)):s||u(e,t,$,K,n,i,l,a,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jn(t,o,v,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=Ul(t.props,p);ie&&(t.target=ie,Jn(t,ie,null,d,0))}else O&&Jn(t,_,H,d,1);an(t,y)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:d,targetAnchor:c,target:u,props:f}=e,h=nr(f),p=i||!h,g=Lo.get(e);if(g&&(g.flags|=8,Lo.delete(e)),u&&(n(d),n(c)),i&&n(s),!g&&(h||u)&&l&16)for(let b=0;b{e.isMounted=!0}),Gt(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],tu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},Tg={name:"BaseTransition",props:tu,setup(e,{slots:t}){const o=Wr(),r=eu();return()=>{const n=t.default&&$a(t.default(),!0),i=n&&n.length?ou(n):o.subTree?db():void 0;if(!i)return;const l=_e(e),{mode:a}=l;if(r.isLeaving)return Sl(i);const s=xi(i);if(!s)return Sl(i);const d=Pn(s,l,r,o);s.type!==Ze&&_o(s,d);let c=o.subTree&&xi(o.subTree);if(c&&c.type!==Ze&&!ir(c,s)&&Tn(o.subTree)){let u=Pn(c,l,r,o);if(_o(c,u),a==="out-in"&&s.type!==Ze)return r.isLeaving=!0,u.afterLeave=()=>{if(r.isLeaving=!1,!(o.job.flags&8))if(o.effect.flags&2){const f=()=>{o.job.flags&8||o.update()};f.i=o,Vi(f)}else o.update();delete u.afterLeave,c=void 0},Sl(i);a==="in-out"&&s.type!==Ze?u.delayLeave=(f,h,p)=>{const g=ru(r,c);g[String(c.key)]=c,f[Wt]=()=>{h(),f[Wt]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function ou(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Ze){t=o;break}}return t}const Eg=Tg;function ru(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Pn(e,t,o,r){const{appear:n,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:u,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:y}=t,T=String(e.key),P=ru(o,e),A=(w,_)=>{w&&Vt(w,r,9,_)},M=(w,_)=>{const H=_[1];A(w,_),ge(w)?w.every(O=>O.length<=1)&&H():w.length<=1&&H()},v={mode:i,persisted:l,beforeEnter(w){let _=a;if(!o.isMounted)if(n)_=g||a;else return;w[Wt]&&w[Wt](!0);const H=P[T];if(H&&ir(e,H)){let O=H.el[Wt];if(!O){const $=Tn(H);O=$&&$.el[Wt]}O&&O()}A(_,[w])},enter(w){if(P[T]===e)return;let _=s,H=d,O=c;if(!o.isMounted)if(n)_=b||s,H=C||d,O=y||c;else return;let $=!1;w[Qr]=ie=>{$||($=!0,ie?A(O,[w]):A(H,[w]),v.delayedLeave&&v.delayedLeave(),w[Qr]=void 0)};const K=w[Qr].bind(null,!1);_?M(_,[w,K]):K()},leave(w,_){const H=String(e.key);if(w[Qr]&&w[Qr](!0),o.isUnmounting)return _();A(u,[w]);let O=!1;w[Wt]=K=>{O||(O=!0,_(),K?A(p,[w]):A(h,[w]),w[Wt]=void 0,P[H]===e&&delete P[H])};const $=w[Wt].bind(null,!1);P[H]=e,f?M(f,[w,$]):$()},clone(w){const _=Pn(w,t,o,r);return _.afterLeave=()=>{v.afterLeave&&v.afterLeave()},_.delayLeave=(H,O,$)=>{v.delayLeave?v.delayLeave(H,O,$):$()},_.delayedLeave=()=>{v.delayedLeave&&v.delayedLeave()},_}};return v}function Sl(e){if(qi(e))return e=go(e),e.children=null,e}function xi(e){if(!qi(e))return Ui(e.type)&&e.children?ou(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ye(o.default))return o.default()}}function _o(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;_o(Ui(o.type)&&xi(o)||o,t)}else if(e.shapeFlag&128){const o=e.suspense;if(o){const r=o.isHydrating?o.pendingBranch:o.activeBranch;r&&_o(r,t.clone(r))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===Te&&ge(e.children)){const o=vu(e.children,!1);o&&_o(o,t)}}function $a(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;imn(g,t&&(ge(t)?t[b]:t),o,r,n));return}if(Mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?Yi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,d=t&&t.r,c=a.refs===Oe?a.refs={}:a.refs,u=a.setupState,f=_e(u),h=u===Oe?Cd:g=>bs(c,g)?!1:Re(f,g),p=(g,b)=>!(b&&bs(c,b));if(d!=null&&d!==s){if(vs(t),Ve(d))c[d]=null,h(d)&&(u[d]=null);else if(ot(d)){const g=t;p(d,g.k)&&(d.value=null),g.k&&(c[g.k]=null)}}if(ye(s))Wn(s,a,12,[l,c]);else{const g=Ve(s),b=ot(s);if(g||b){const C=()=>{if(e.f){const y=g?h(s)?u[s]:c[s]:p()||!e.k?s.value:c[e.k];if(n)ge(y)&&Ca(y,i);else if(ge(y))y.includes(i)||y.push(i);else if(g)c[s]=[i],h(s)&&(u[s]=c[s]);else{const T=[i];p(s,e.k)&&(s.value=T),e.k&&(c[e.k]=T)}}else g?(c[s]=l,h(s)&&(u[s]=l)):b&&(p(s,e.k)&&(s.value=l),e.k&&(c[e.k]=l))};if(l){const y=()=>{C(),yi.delete(e)};y.id=-1,yi.set(e,y),ft(y,o)}else vs(e),C()}}}function vs(e){const t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}Li().requestIdleCallback;Li().cancelIdleCallback;const Mr=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function iu(e,t){au(e,"a",t)}function lu(e,t){au(e,"da",t)}function au(e,t,o=mt){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,r,o),o){let n=o.parent;for(;n&&n.parent;)qi(n.parent.vnode)&&_g(r,t,o,n),n=n.parent}}function _g(e,t,o,r){const n=En(t,e,r,!0),i=En("um",()=>Ca(r[t],n),o);i.flags=16}function En(e,t,o=mt,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{fo();const a=jn(o),s=Vt(t,o,e,l);return a(),ho(),s});return r?n.unshift(i):n.push(i),i}}const Ao=e=>(t,o=mt)=>{(!In||e==="sp")&&En(e,(...r)=>t(...r),o)},yr=Ao("bm"),bo=Ao("m"),$g=Ao("bu"),su=Ao("u"),Gt=Ao("bum"),cu=Ao("um"),Rg=Ao("sp"),Ig=Ao("rtg"),Ag=Ao("rtc");function Hg(e,t=mt){En("ec",e,t)}const du="components";function Mg(e,t){return fu(du,e,!0,t)||e}const uu=Symbol.for("v-ndc");function k_(e){return Ve(e)?fu(du,e,!1)||e:e||uu}function fu(e,t,o=!0,r=!1){const n=lt||mt;if(n){const i=n.type;{const a=vb(i,!1);if(a&&(a===t||a===wt(t)||a===Di(wt(t))))return i}const l=Cs(n[e]||i[e],t)||Cs(n.appContext[e],t);return!l&&r?i:l}}function Cs(e,t){return e&&(e[t]||e[wt(t)]||e[Di(wt(t))])}function D_(e,t,o,r){let n;const i=o,l=ge(e);if(l||Ve(e)){const a=l&&qo(e);let s=!1,d=!1;a&&(s=!Ft(e),d=mo(e),e=Wi(e)),n=new Array(e.length);for(let c=0,u=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,d=a.length;s0;return k(),ae(Te,null,[je("slot",d,r)],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=$o.length;k();let s;try{const d=l&&hu(l(o)),c=o.key||i||d&&d.key;s=ae(Te,{key:(c&&!kt(c)?c:`_${t}`)+(!d&&r?"_fb":"")},d||(r?r():[]),d&&e._===1?64:-2)}catch(d){for(let c=$o.length;c>a;c--)Ha();throw d}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function hu(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!hu(t.children)):!0)?e:null}const Kl=e=>e?Mu(e)?Yi(e):Kl(e.parent):null,gn=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kl(e.parent),$root:e=>Kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mu(e),$forceUpdate:e=>e.f||(e.f=()=>{Vi(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>yg.bind(e)}),wl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Re(e,t),Fg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(wl(r,t))return l[t]=1,r[t];if(n!==Oe&&Re(n,t))return l[t]=2,n[t];if(Re(i,t))return l[t]=3,i[t];if(o!==Oe&&Re(o,t))return l[t]=4,o[t];Yl&&(l[t]=0)}}const d=gn[t];let c,u;if(d)return t==="$attrs"&&ht(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(o!==Oe&&Re(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Re(u,t))return u[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return wl(n,t)?(n[t]=o,!0):r!==Oe&&Re(r,t)?(r[t]=o,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Oe&&a[0]!=="$"&&Re(e,a)||wl(t,a)||Re(i,a)||Re(r,a)||Re(gn,a)||Re(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Re(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function xs(e){return ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Yl=!0;function Bg(e){const t=mu(e),o=e.proxy,r=e.ctx;Yl=!1,t.beforeCreate&&ys(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:C,beforeUnmount:y,destroyed:T,unmounted:P,render:A,renderTracked:M,renderTriggered:v,errorCaptured:w,serverPrefetch:_,expose:H,inheritAttrs:O,components:$,directives:K,filters:ie}=t;if(d&&kg(d,r,null),l)for(const J in l){const ue=l[J];ye(ue)&&(r[J]=ue.bind(o))}if(n){const J=n.call(o,o);Ie(J)&&(e.data=xr(J))}if(Yl=!0,i)for(const J in i){const ue=i[J],He=ye(ue)?ue.bind(o,o):ye(ue.get)?ue.get.bind(o,o):co,$e=!ye(ue)&&ye(ue.set)?ue.set.bind(o):co,Le=X({get:He,set:$e});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Le.value,set:ke=>Le.value=ke})}if(a)for(const J in a)pu(a[J],r,o,J);if(s){const J=ye(s)?s.call(o):s;Reflect.ownKeys(J).forEach(ue=>{at(ue,J[ue])})}c&&ys(c,e,"c");function ce(J,ue){ge(ue)?ue.forEach(He=>J(He.bind(o))):ue&&J(ue.bind(o))}if(ce(yr,u),ce(bo,f),ce($g,h),ce(su,p),ce(iu,g),ce(lu,b),ce(Hg,w),ce(Ag,M),ce(Ig,v),ce(Gt,y),ce(cu,P),ce(Rg,_),ge(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(ue=>{Object.defineProperty(J,ue,{get:()=>o[ue],set:He=>o[ue]=He,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===co&&(e.render=A),O!=null&&(e.inheritAttrs=O),$&&(e.components=$),K&&(e.directives=K),_&&nu(e)}function kg(e,t,o=co){ge(e)&&(e=Xl(e));for(const r in e){const n=e[r];let i;Ie(n)?"default"in n?i=De(n.from||r,n.default,!0):i=De(n.from||r):i=De(n),ot(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ys(e,t,o){Vt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function pu(e,t,o,r){let n=r.includes(".")?Jd(o,r):()=>o[r];if(Ve(e)){const i=t[e];ye(i)&&Nt(n,i)}else if(ye(e))Nt(n,e.bind(o));else if(Ie(e))if(ge(e))e.forEach(i=>pu(i,t,o,r));else{const i=ye(e.handler)?e.handler.bind(o):t[e.handler];ye(i)&&Nt(n,i,e)}}function mu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(d=>Si(s,d,l,!0)),Si(s,t,l)),Ie(t)&&i.set(t,s),s}function Si(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Si(e,i,o,!0),n&&n.forEach(l=>Si(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=Dg[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Dg={data:Ss,props:ws,emits:ws,methods:sn,computed:sn,beforeCreate:Ct,created:Ct,beforeMount:Ct,mounted:Ct,beforeUpdate:Ct,updated:Ct,beforeDestroy:Ct,beforeUnmount:Ct,destroyed:Ct,unmounted:Ct,activated:Ct,deactivated:Ct,errorCaptured:Ct,serverPrefetch:Ct,components:sn,directives:sn,watch:Og,provide:Ss,inject:Lg};function Ss(e,t){return t?e?function(){return qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Lg(e,t){return sn(Xl(e),Xl(t))}function Xl(e){if(ge(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${Cr(t)}Modifiers`];function Vg(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Oe;let n=o;const i=t.startsWith("update:"),l=i&&jg(r,t.slice(7));l&&(l.trim&&(n=o.map(c=>Ve(c)?c.trim():c)),l.number&&(n=n.map(Im)));let a,s=r[a=ml(t)]||r[a=ml(wt(t))];!s&&i&&(s=r[a=ml(Cr(t))]),s&&Vt(s,e,6,n);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Vt(d,e,6,n)}}const Gg=new WeakMap;function bu(e,t,o=!1){const r=o?Gg:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!ye(e)){const s=d=>{const c=bu(d,t,!0);c&&(a=!0,qe(l,c))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(Ie(e)&&r.set(e,null),null):(ge(i)?i.forEach(s=>l[s]=null):qe(l,i),Ie(e)&&r.set(e,l),l)}function Ki(e,t){return!e||!zi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Cr(t))||Re(e,t))}function Ps(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:d,renderCache:c,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ci(e);let C,y;try{if(o.shapeFlag&4){const P=n||r,A=P;C=no(d.call(A,P,c,u,h,f,p)),y=a}else{const P=t;C=no(P.length>1?P(u,{attrs:a,slots:l,emit:s}):P(u,null)),y=t.props?a:Ug(a)}}catch(P){$o.length=0,ji(P,e,1),C=je(Ze)}let T=C;if(y&&g!==!1){const P=Object.keys(y),{shapeFlag:A}=T;P.length&&A&7&&(i&&P.some(Fi)&&(y=qg(y,i)),T=go(T,y,!1,!0))}if(o.dirs&&(T=go(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(o.dirs):o.dirs),o.transition){const P=Ui(T.type)&&xi(T)||T;_o(P,o.transition)}return C=T,Ci(b),C}function vu(e,t=!0){let o;for(let r=0;r{let t;for(const o in e)(o==="class"||o==="style"||zi(o))&&((t||(t={}))[o]=e[o]);return t},qg=(e,t)=>{const o={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Kg(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Ts(r,l,d):!!l;if(s&8){const c=t.dynamicProps;for(let u=0;uObject.create(xu),Su=e=>Object.getPrototypeOf(e)===xu;function Xg(e,t,o,r=!1){const n={},i=yu();e.propsDefaults=Object.create(null),wu(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:Nd(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Zg(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=_e(n),[s]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,h]=Pu(u,t,!0);qe(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Ie(e)&&r.set(e,lr),lr;if(ge(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Ia=e=>ge(e)?e.map(no):[no(e)],Qg=(e,t,o)=>{if(t._n)return t;const r=so((...n)=>Ia(t(...n)),o);return r._c=!1,r},Tu=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Ra(n))continue;const i=e[n];if(ye(i))t[n]=Qg(n,i,r);else if(i!=null){const l=Ia(i);t[n]=()=>l}}},Eu=(e,t)=>{const o=Ia(t);e.slots.default=()=>o},_u=(e,t,o)=>{for(const r in t)(o||!Ra(r))&&(e[r]=t[r])},eb=(e,t,o)=>{const r=e.slots=yu();if(e.vnode.shapeFlag&32){const n=t._;n?(_u(r,t,o),o&&wd(r,"_",n,!0)):Tu(t,r)}else t&&Eu(e,t)},tb=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Oe;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:_u(n,t,o):(i=!t.$stable,Tu(t,n)),l=t}else t&&(Eu(e,t),l={default:1});if(i)for(const a in n)!Ra(a)&&l[a]==null&&delete n[a]},ft=ab;function ob(e){return rb(e)}function rb(e,t){const o=Li();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=co,insertStaticContent:p}=e,g=(m,x,S,E=null,R=null,B=null,W=void 0,U=null,G=!!x.dynamicChildren)=>{if(m===x)return;m&&!ir(m,x)&&(E=z(m),ke(m,R,B,!0),m=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null),x.dynamicChildren&&m&&m.dynamicChildren&&m.dynamicChildren.hasOnce&&(x.dynamicChildren===lr&&(x.dynamicChildren=[]),x.dynamicChildren.hasOnce=!0);const{type:I,ref:Z,shapeFlag:q}=x;switch(I){case Nn:b(m,x,S,E);break;case Ze:C(m,x,S,E);break;case ci:m==null&&y(x,S,E,W);break;case Te:$(m,x,S,E,R,B,W,U,G);break;default:q&1?A(m,x,S,E,R,B,W,U,G):q&6?K(m,x,S,E,R,B,W,U,G):(q&64||q&128)&&I.process(m,x,S,E,R,B,W,U,G,L)}Z!=null&&R?mn(Z,m&&m.ref,B,x||m,!x):Z==null&&m&&m.ref!=null&&mn(m.ref,null,B,m,!0)},b=(m,x,S,E)=>{if(m==null)r(x.el=a(x.children),S,E);else{const R=x.el=m.el;x.children!==m.children&&d(R,x.children)}},C=(m,x,S,E)=>{m==null?r(x.el=s(x.children||""),S,E):x.el=m.el},y=(m,x,S,E)=>{[m.el,m.anchor]=p(m.children,x,S,E,m.el,m.anchor)},T=({el:m,anchor:x},S,E)=>{let R;for(;m&&m!==x;)R=f(m),r(m,S,E),m=R;r(x,S,E)},P=({el:m,anchor:x})=>{let S;for(;m&&m!==x;)S=f(m),n(m),m=S;n(x)},A=(m,x,S,E,R,B,W,U,G)=>{if(x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),m==null)M(x,S,E,R,B,W,U,G);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),_(m,x,R,B,W,U,G)}finally{I&&I._endPatch()}}},M=(m,x,S,E,R,B,W,U)=>{let G,I;const{props:Z,shapeFlag:q,transition:de,dirs:ve}=m;if(G=m.el=l(m.type,B,Z&&Z.is,Z),q&8?c(G,m.children):q&16&&w(m.children,G,null,E,R,Pl(m,B),W,U),ve&&Jo(m,null,E,"created"),v(G,m,m.scopeId,W,E),Z){for(const Me in Z)Me!=="value"&&!fn(Me)&&i(G,Me,null,Z[Me],B,E);"value"in Z&&i(G,"value",null,Z.value,B),(I=Z.onVnodeBeforeMount)&&Jt(I,E,m)}ve&&Jo(m,null,E,"beforeMount");const we=nb(R,de);we?de.beforeEnter(G):de&&!de.persisted&&(G[lb]=!0),r(G,x,S),((I=Z&&Z.onVnodeMounted)||we||ve)&&ft(()=>{I&&Jt(I,E,m),we&&de.enter(G),ve&&Jo(m,null,E,"mounted")},R)},v=(m,x,S,E,R)=>{if(S&&h(m,S),E)for(let B=0;B{for(let I=G;I{const U=x.el=m.el;let{patchFlag:G,dynamicChildren:I,dirs:Z}=x;G|=m.patchFlag&16;const q=m.props||Oe,de=x.props||Oe;let ve;if(S&&Qo(S,!1),(ve=de.onVnodeBeforeUpdate)&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"beforeUpdate"),S&&Qo(S,!0),I&&(!m.dynamicChildren||m.dynamicChildren.length!==I.length)&&(G=0,W=!1,I=null),(q.innerHTML&&de.innerHTML==null||q.textContent&&de.textContent==null)&&c(U,""),I?H(m.dynamicChildren,I,U,S,E,Pl(x,R),B):W||ue(m,x,U,null,S,E,Pl(x,R),B,!1),G>0){if(G&16)O(U,q,de,S,R);else if(G&2&&q.class!==de.class&&i(U,"class",null,de.class,R),G&4&&i(U,"style",q.style,de.style,R),G&8){const we=x.dynamicProps;for(let Me=0;Me{ve&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"updated")},E)},H=(m,x,S,E,R,B,W)=>{for(let U=0;U{if(x!==S){if(x!==Oe)for(const B in x)!fn(B)&&!(B in S)&&i(m,B,x[B],null,R,E);for(const B in S){if(fn(B))continue;const W=S[B],U=x[B];W!==U&&B!=="value"&&i(m,B,U,W,R,E)}"value"in S&&i(m,"value",x.value,S.value,R)}},$=(m,x,S,E,R,B,W,U,G)=>{const I=x.el=m?m.el:a(""),Z=x.anchor=m?m.anchor:a("");let{patchFlag:q,dynamicChildren:de,slotScopeIds:ve}=x;ve&&(U=U?U.concat(ve):ve),m==null?(r(I,S,E),r(Z,S,E),w(x.children||[],S,Z,R,B,W,U,G)):q>0&&q&64&&de&&m.dynamicChildren&&m.dynamicChildren.length===de.length?(H(m.dynamicChildren,de,S,R,B,W,U),(x.key!=null||R&&x===R.subTree)&&Aa(m,x,!0)):ue(m,x,S,Z,R,B,W,U,G)},K=(m,x,S,E,R,B,W,U,G)=>{x.slotScopeIds=U,m==null?x.shapeFlag&512?R.ctx.activate(x,S,E,W,G):ie(x,S,E,R,B,W,G):be(m,x,G)},ie=(m,x,S,E,R,B,W)=>{const U=m.component=hb(m,E,R);if(qi(m)&&(U.ctx.renderer=L),pb(U,!1,W),U.asyncDep){if(R&&R.registerDep(U,ce,W,B),!m.el){const G=U.subTree=je(Ze);C(null,G,x,S),m.placeholder=G.el}}else ce(U,m,x,S,R,B,W)},be=(m,x,S)=>{const E=x.component=m.component;if(Kg(m,x,S))if(E.asyncDep&&!E.asyncResolved){x.el=m.el,x.placeholder=m.placeholder,J(E,x,S);return}else E.next=x,E.update();else x.el=m.el,x.placeholder=m.placeholder,E.vnode=x},ce=(m,x,S,E,R,B,W)=>{const U=()=>{if(m.isMounted){let{next:q,bu:de,u:ve,parent:we,vnode:Me}=m;{const Et=$u(m);if(Et){q&&(q.el=Me.el,J(m,q,W)),Et.asyncDep.then(()=>{const At=()=>{m.job.flags&8||(R&&R.pendingBranch?ft(At,R):I())};At.flags=48,ft(At,R)});return}}let ze=q,Ge;Qo(m,!1),q?(q.el=Me.el,J(m,q,W)):q=Me,de&&gl(de),(Ge=q.props&&q.props.onVnodeBeforeUpdate)&&Jt(Ge,we,q,Me),Qo(m,!0);const Qe=Ps(m),It=m.subTree;m.subTree=Qe,g(It,Qe,u(It.el||bn(It)),z(It),m,R,B),q.el=Qe.el,ze===null&&Yg(m,Qe.el),ve&&ft(ve,R),(Ge=q.props&&q.props.onVnodeUpdated)&&ft(()=>Jt(Ge,we,q,Me),R)}else{let q;const{el:de,props:ve}=x,{bm:we,m:Me,parent:ze,root:Ge,type:Qe}=m,It=Mr(x);Qo(m,!1),we&&gl(we),!It&&(q=ve&&ve.onVnodeBeforeMount)&&Jt(q,ze,x),Qo(m,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(Qe,m.parent?m.parent.type:void 0);const Et=m.subTree=Ps(m);g(null,Et,S,E,m,R,B),x.el=Et.el}if(Me&&ft(Me,R),!It&&(q=ve&&ve.onVnodeMounted)){const Et=x;ft(()=>Jt(q,ze,Et),R)}(x.shapeFlag&256||ze&&Mr(ze.vnode)&&ze.vnode.shapeFlag&256)&&m.a&&ft(m.a,R),m.isMounted=!0,x=S=E=null}};m.scope.on();const G=m.effect=new _d(U);m.scope.off();const I=m.update=G.run.bind(G),Z=m.job=G.runIfDirty.bind(G);Z.i=m,Z.id=m.uid,G.scheduler=()=>Vi(Z),Qo(m,!0),I()},J=(m,x,S)=>{x.component=m;const E=m.vnode.props;m.vnode=x,m.next=null,Zg(m,x.props,E,S),tb(m,x.children,S),fo(),Kd(m),ho()},ue=(m,x,S,E,R,B,W,U,G=!1)=>{const I=m&&m.children,Z=m?m.shapeFlag:0,q=x.children,{patchFlag:de,shapeFlag:ve}=x;if(de>0){if(de&128){$e(I,q,S,E,R,B,W,U,G);return}else if(de&256){He(I,q,S,E,R,B,W,U,G);return}}ve&8?(Z&16&&Se(I,R,B),q!==I&&c(S,q)):Z&16?ve&16?$e(I,q,S,E,R,B,W,U,G):Se(I,R,B,!0):(Z&8&&c(S,""),ve&16&&w(q,S,E,R,B,W,U,G))},He=(m,x,S,E,R,B,W,U,G)=>{m=m||lr,x=x||lr;const I=m.length,Z=x.length,q=Math.min(I,Z);let de;for(de=0;deZ?Se(m,R,B,!0,!1,q):w(x,S,E,R,B,W,U,G,q)},$e=(m,x,S,E,R,B,W,U,G)=>{let I=0;const Z=x.length;let q=m.length-1,de=Z-1;for(;I<=q&&I<=de;){const ve=m[I],we=x[I]=G?Po(x[I]):no(x[I]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;I++}for(;I<=q&&I<=de;){const ve=m[q],we=x[de]=G?Po(x[de]):no(x[de]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;q--,de--}if(I>q){if(I<=de){const ve=de+1,we=vede)for(;I<=q;)ke(m[I],R,B,!0),I++;else{const ve=I,we=I,Me=new Map;for(I=we;I<=de;I++){const ct=x[I]=G?Po(x[I]):no(x[I]);ct.key!=null&&Me.set(ct.key,I)}let ze,Ge=0;const Qe=de-we+1;let It=!1,Et=0;const At=new Array(Qe);for(I=0;I=Qe){ke(ct,R,B,!0);continue}let N;if(ct.key!=null)N=Me.get(ct.key);else for(ze=we;ze<=de;ze++)if(At[ze-we]===0&&ir(ct,x[ze])){N=ze;break}N===void 0?ke(ct,R,B,!0):(At[N-we]=I+1,N>=Et?Et=N:It=!0,g(ct,x[N],S,null,R,B,W,U,G),Ge++)}const Xr=It?ib(At):lr;for(ze=Xr.length-1,I=Qe-1;I>=0;I--){const ct=we+I,N=x[ct],he=x[ct+1],xe=ct+1{const{el:B,type:W,transition:U,children:G,shapeFlag:I}=m;if(I&6){Le(m.component.subTree,x,S,E);return}if(I&128){m.suspense.move(x,S,E);return}if(I&64){W.move(m,x,S,L);return}if(W===Te){r(B,x,S);for(let q=0;qU.enter(B),R));else{const{leave:q,delayLeave:de,afterLeave:ve}=U,we=()=>{m.ctx.isUnmounted?n(B):r(B,x,S)},Me=()=>{const ze=B._isLeaving||!!B[Wt];B._isLeaving&&B[Wt](!0),U.persisted&&!ze?we():q(B,()=>{we(),ve&&ve()})};de?de(B,we,Me):Me()}else r(B,x,S)},ke=(m,x,S,E=!1,R=!1)=>{const{type:B,props:W,ref:U,children:G,dynamicChildren:I,shapeFlag:Z,patchFlag:q,dirs:de,cacheIndex:ve,memo:we}=m;if((q===-2||I&&I.hasOnce)&&(R=!1),U!=null&&(fo(),mn(U,null,S,m,!0),ho()),ve!=null&&(!m.ctx||m.ctx===x)&&(x.renderCache[ve]=void 0),Z&256&&x.ctx.deactivate(m))return;const Me=Z&1&&de,ze=!Mr(m);let Ge;if(ze&&(Ge=W&&W.onVnodeBeforeUnmount)&&Jt(Ge,x,m),Z&6)vt(m.component,S,E);else{if(Z&128){m.suspense.unmount(S,E);return}Me&&Jo(m,null,x,"beforeUnmount"),Z&64?m.type.remove(m,x,S,L,E):I&&!I.hasOnce&&(B!==Te||q>0&&q&64)?Se(I,x,S,!1,!0):(B===Te&&q&384||!R&&Z&16)&&Se(G,x,S),E&&nt(m)}const Qe=we!=null&&ve==null;(ze&&(Ge=W&&W.onVnodeUnmounted)||Me||Qe)&&ft(()=>{Ge&&Jt(Ge,x,m),Me&&Jo(m,null,x,"unmounted"),Qe&&(m.el=null)},S)},nt=m=>{const{type:x,el:S,anchor:E,transition:R}=m,B=x===Te;if(B&&!R){Je(S,E);return}if(x===ci){P(m),R&&!R.persisted&&R.afterLeave&&R.afterLeave();return}const W=B?Tn(m):m,U=()=>{B?u(S)&&Je(S,E):n(S),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(W&&W.shapeFlag&1&&R&&!R.persisted){const{leave:G,delayLeave:I}=R,Z=W.el,q=()=>G(Z,U);I?I(Z,U,q):q()}else U()},Je=(m,x)=>{let S;for(;m!==x;)S=f(m),n(m),m=S;n(x)},vt=(m,x,S)=>{const{bum:E,scope:R,job:B,subTree:W,um:U,m:G,a:I}=m;_s(G),_s(I),E&&gl(E),R.stop(),B?(B.flags|=8,ke(W,m,x,S)):W&&(W.transition=m.vnode.transition,ke(W,m,x,S)),U&&ft(U,x);const Z=()=>{m.isUnmounted=!0};Z.flags=16,ft(Z,x)},Se=(m,x,S,E=!1,R=!1,B=0)=>{for(let W=B;W{if(m.shapeFlag&6)return z(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=f(m.anchor||m.el),S=x&&x[Qd];return S?f(S):x},ee=(m,x,S)=>{const E=m&&x._vnode?void 0:m&&m.component?m.component.uid:fb();vg(()=>{m==null?x._vnode&&ke(x._vnode,null,null,!0):g(x._vnode||null,m,x,null,null,null,S),x._vnode=m},E)},L={p:g,um:ke,m:Le,r:nt,mt:ie,mc:w,pc:ue,pbc:H,n:z,o:e};return{render:ee,hydrate:void 0,createApp:Ng(ee)}}function Pl({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Qo({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Aa(e,t,o=!1){const r=e.children,n=t.children;if(ge(r)&&ge(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function $u(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$u(t)}function _s(e){if(e)for(let t=0;te.__isSuspense,lb=Symbol("_deferredEnter");function ab(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):bg(e)}const Te=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),ci=Symbol.for("v-stc"),$o=[];let Mt=null;function k(e=!1){$o.push(Mt=e?null:[])}function Ha(){$o.pop(),Mt=$o[$o.length-1]||null}let _n=1;function wi(e,t=!1){_n+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function Iu(e){return e.dynamicChildren=_n>0?Mt||lr:null,Ha(),_n>0&&Mt&&Mt.push(e),e}function pe(e,t,o,r,n,i){return Iu(Pe(e,t,o,r,n,i,!0))}function ae(e,t,o,r,n){return Iu(je(e,t,o,r,n,!0))}function Ro(e){return e?e.__v_isVNode===!0:!1}function ir(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,di=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||ot(e)||ye(e)?{i:lt,r:e,k:t,f:!!o}:e:null);function Pe(e,t=null,o=null,r=0,n=null,i=e===Te?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&di(t),scopeId:Zd,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:lt};return a?(Pi(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ve(o)?8:16),_n>0&&!l&&Mt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Mt.push(s),s}const je=sb;function sb(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===uu)&&(e=Ze),Ro(e)){const a=go(e,t,!0);return o&&Pi(a,o),_n>0&&!i&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(e)]=a:Mt.push(a)),a.patchFlag=-2,a}if(Cb(e)&&(e=e.__vccOpts),t){t=cb(t);let{class:a,style:s}=t;a&&!Ve(a)&&(t.class=mr(a)),Ie(s)&&(Ni(s)&&!ge(s)&&(s=qe({},s)),t.style=Be(s))}const l=Ve(e)?1:Ru(e)?128:Ui(e)?64:Ie(e)?4:ye(e)?2:0;return Pe(e,t,o,r,n,l,i,!0)}function cb(e){return e?Ni(e)?qe({},e):Su(e)?qe({},e[Fu]||e):e:null}function go(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,d=t?Bt(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Au(d),ref:t&&t.ref?o&&i?ge(i)?i.concat(di(t)):[i,di(t)]:di(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return s&&r&&_o(c,s.clone(c)),c}function $n(e=" ",t=0){return je(Nn,null,e,t)}function L_(e,t){const o=je(ci,null,e);return o.staticCount=t,o}function db(e="",t=!1){return t?(k(),ae(Ze,null,e)):je(Ze,null,e)}function no(e){return e==null||typeof e=="boolean"?je(Ze):ge(e)?je(Te,null,e.slice()):Ro(e)?Po(e):je(Nn,null,String(e))}function Po(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}function Pi(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Su(t)?t._ctx=lt:n===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ye(t)){if(r&65){Pi(e,{default:t});return}t={default:t,_ctx:lt},o=32}else t=String(t),r&64?(o=16,t=[$n(t)]):o=8;e.children=t,e.shapeFlag|=o}function Bt(...e){const t={};for(let o=0;omt||lt;let Ti,Rn;{const e=Li(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Ti=t("__VUE_INSTANCE_SETTERS__",o=>mt=o),Rn=t("__VUE_SSR_SETTERS__",o=>In=o)}const jn=e=>{const t=mt;return Ti(e),e.scope.on(),()=>{e.scope.off(),Ti(t)}},$s=()=>{mt&&mt.scope.off(),Ti(null)};function Mu(e){return e.vnode.shapeFlag&4}let In=!1;function pb(e,t=!1,o=!1){t&&Rn(t);const{props:r,children:n}=e.vnode,i=Mu(e);Xg(e,r,i,t),eb(e,n,o||t);const l=i?mb(e,t):void 0;return t&&Rn(!1),l}function mb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fg);const{setup:r}=o;if(r){fo();const n=e.setupContext=r.length>1?bb(e):null,i=jn(e),l=Wn(r,e,0,[e.props,n]),a=xd(l);if(ho(),i(),(a||e.sp)&&!Mr(e)&&nu(e),a){if(l.then($s,$s),t)return l.then(s=>{Rn(!0);try{Rs(e,s,t)}finally{Rn(!1)}}).catch(s=>{ji(s,e,0,void 0,!0),e.ssrRender=(d,c)=>c("")});e.asyncDep=l}else Rs(e,l)}else zu(e)}function Rs(e,t,o){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Gd(t)),zu(e)}function zu(e,t,o){const r=e.type;e.render||(e.render=r.render||co);{const n=jn(e);fo();try{Bg(e)}finally{ho(),n()}}}const Fu=Symbol(),gb={get(e,t){return ht(e,"get",""),t===Fu?e:e[t]}};function bb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,gb),slots:e.slots,emit:e.emit,expose:t}}function Yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gd(Vl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in gn)return gn[o](e)},has(t,o){return o in t||o in gn}})):e.proxy}function vb(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Cb(e){return ye(e)&&"__vccOpts"in e}const X=(e,t)=>fg(e,t,In);function Rt(e,t,o){try{wi(-1);const r=arguments.length;return r===2?Ie(t)&&!ge(t)?Ro(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Ro(o)&&(o=[o]),je(e,t,o))}finally{wi(1)}}const xb="3.5.45";let Jl;const Is=typeof window<"u"&&window.trustedTypes;if(Is)try{Jl=Is.createPolicy("vue",{createHTML:e=>e})}catch{}const Bu=Jl?e=>Jl.createHTML(e):e=>e,yb="http://www.w3.org/2000/svg",Sb="http://www.w3.org/1998/Math/MathML",wo=typeof document<"u"?document:null,As=wo&&wo.createElement("template"),wb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?wo.createElementNS(yb,e):t==="mathml"?wo.createElementNS(Sb,e):o?wo.createElement(e,{is:o}):wo.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{As.innerHTML=Bu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=As.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Fo="transition",en="animation",kr=Symbol("_vtc"),ku={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Du=qe({},tu,ku),Pb=e=>(e.displayName="Transition",e.props=Du,e),br=Pb((e,{slots:t})=>Rt(Eg,Lu(e),t)),er=(e,t=[])=>{ge(e)?e.forEach(o=>o(...t)):e&&e(...t)},Hs=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Lu(e){const t={};for(const $ in e)$ in ku||(t[$]=e[$]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:d=l,appearToClass:c=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(n),g=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:y,onEnterCancelled:T,onLeave:P,onLeaveCancelled:A,onBeforeAppear:M=C,onAppear:v=y,onAppearCancelled:w=T}=t,_=($,K,ie,be)=>{$._enterCancelled=be,Oo($,K?c:a),Oo($,K?d:l),ie&&ie()},H=($,K)=>{$._isLeaving=!1,Oo($,u),Oo($,h),Oo($,f),K&&K()},O=$=>(K,ie)=>{const be=$?v:y,ce=()=>_(K,$,ie);er(be,[K,ce]),Ms(()=>{Oo(K,$?s:i),to(K,$?c:a),Hs(be)||zs(K,r,g,ce)})};return qe(t,{onBeforeEnter($){er(C,[$]),to($,i),to($,l)},onBeforeAppear($){er(M,[$]),to($,s),to($,d)},onEnter:O(!1),onAppear:O(!0),onLeave($,K){$._isLeaving=!0;const ie=()=>H($,K);to($,u),$._enterCancelled?(to($,f),Ql($)):(Ql($),to($,f)),Ms(()=>{$._isLeaving&&(Oo($,u),to($,h),Hs(P)||zs($,r,b,ie))}),er(P,[$,ie])},onEnterCancelled($){_($,!1,void 0,!0),er(T,[$])},onAppearCancelled($){_($,!0,void 0,!0),er(w,[$])},onLeaveCancelled($){H($),er(A,[$])}})}function Tb(e){if(e==null)return null;if(Ie(e))return[Tl(e.enter),Tl(e.leave)];{const t=Tl(e);return[t,t]}}function Tl(e){return Am(e)}function to(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[kr]||(e[kr]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[kr];o&&(o.delete(t),o.size||(e[kr]=void 0))}function Ms(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eb=0;function zs(e,t,o,r){const n=e._endId=++Eb,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Ou(e,t);if(!l)return r();const d=l+"end";let c=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++c>=s&&u()};setTimeout(()=>{c(o[p]||"").split(", "),n=r(`${Fo}Delay`),i=r(`${Fo}Duration`),l=Fs(n,i),a=r(`${en}Delay`),s=r(`${en}Duration`),d=Fs(a,s);let c=null,u=0,f=0;t===Fo?l>0&&(c=Fo,u=l,f=i.length):t===en?d>0&&(c=en,u=d,f=s.length):(u=Math.max(l,d),c=u>0?l>d?Fo:en:null,f=c?c===Fo?i.length:s.length:0);const h=c===Fo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Fo}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:h}}function Fs(e,t){for(;e.lengthBs(o)+Bs(e[r])))}function Bs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ql(e){return(e?e.ownerDocument:document).body.offsetHeight}function _b(e,t,o){const r=e[kr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ei=Symbol("_vod"),Ma=Symbol("_vsh"),ks={name:"show",beforeMount(e,{value:t},{transition:o}){e[Ei]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),tn(e,!0),r.enter(e)):r.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[Ei]:"none",e[Ma]=!t}const $b=Symbol(""),Rb=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const r=e.style,n=Ve(o);let i=!1;if(o&&!n){if(t)if(Ve(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&cn(r,a,"")}else for(const l in t)o[l]==null&&cn(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?Hb(e,l,!Ve(t)&&t?t[l]:void 0,a)||cn(r,l,a):cn(r,l,"")}}else if(n){if(t!==o){const l=r[$b];l&&(o+=";"+l),r.cssText=o,i=Rb.test(o)}}else t&&e.removeAttribute("style");Ei in e&&((!n||t!==o)&&(e[Ei]=i?r.display:""),e[Ma]&&(r.display="none"))}const Qn=/\s*!important$/;function cn(e,t,o){if(ge(o))o.forEach(r=>cn(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Qn.test(o)?e.setProperty(t,o.replace(Qn,""),"important"):e.setProperty(t,o);else{const r=Ab(e,t);Qn.test(o)?e.setProperty(Cr(r),o.replace(Qn,""),"important"):e[r]=o}}const Ds=["Webkit","Moz","ms"],El={};function Ab(e,t){const o=El[t];if(o)return o;let r=wt(t);if(r!=="filter"&&r in e)return El[t]=r;r=Di(r);for(let n=0;n_l||(Lb.then(()=>_l=0),_l=Date.now());function Wb(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(ge(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nb=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?_b(e,r,l):t==="style"?Ib(e,o,r):zi(t)?Fi(t)||Fb(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jb(e,t,r,l))?(Ws(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Os(e,t,r,l,i,t!=="value")):e._isVueCE&&(Vb(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ve(r)))?Ws(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Os(e,t,r,l))};function jb(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&js(t)&&ye(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return js(t)&&Ve(o)?!1:t in e}function Vb(e,t){const o=e._def.props;if(!o)return!1;const r=wt(t);return Array.isArray(o)?o.some(n=>wt(n)===r):Object.keys(o).some(n=>wt(n)===r)}const Wu=new WeakMap,Nu=new WeakMap,_i=Symbol("_moveCb"),Vs=Symbol("_enterCb"),ea=new WeakMap,Gb=e=>(delete e.props.mode,e),Ub=Gb({name:"TransitionGroup",props:qe({},Du,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Wr(),r=eu();let n,i,l,a;const s=()=>(a===void 0&&(a=n.length>0&&ev(n[0].el,o.vnode.el,Gs(e))),a);return su(()=>{if(ea.delete(o),!s()){n=[],l=void 0;return}const d=Gs(e);n.forEach(Kb);const c=l&&Qb(l,o.vnode.el);l=void 0,n.forEach(f=>Yb(f,c));const u=n.filter(Xb);Ql(o.vnode.el),u.forEach(f=>{const h=f.el,p=h.style;to(h,d),p.transform=p.webkitTransform=p.transitionDuration="";const g=h[_i]=b=>{b&&b.target!==h||(!b||b.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",g),h[_i]=null,Oo(h,d))};h.addEventListener("transitionend",g)}),n=[]}),()=>{const d=_e(e),c=Lu(d);let u=d.tag||Te;if(n=[],a=void 0,i)for(let f=0;fr.willMove()&&r.item.contains(t));return o&&Xi(o.item,o)}function ev(e,t,o){const r=e.cloneNode(),n=e[kr];n&&n.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=Ou(r);return i.removeChild(r),l}const tv=["ctrl","shift","alt","meta"],ov={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tv.some(o=>e[`${o}Key`]&&!t.includes(o))},O_=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const t=nv().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=av(r);if(!n)return;const i=t._component;!ye(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,lv(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function lv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function av(e){return Ve(e)?document.querySelector(e):e}function sv(e){let t=".",o="__",r="--",n;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){n=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(C){g=C.bem.b,b=C.bem.els,C.bem.els=null},after(C){C.bem.b=g,C.bem.els=b},$({context:C,props:y}){return p=typeof p=="string"?p:p({context:C,props:y}),C.bem.b=p,`${y?.bPrefix||t}${C.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:C}){return p=typeof p=="string"?p:p({context:b,props:C}),b.bem.els=p.split(",").map(y=>y.trim()),b.bem.els.map(y=>`${C?.bPrefix||t}${b.bem.b}${o}${y}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=p.split(",").map(P=>P.trim());function y(P){return C.map(A=>`&${b?.bPrefix||t}${g.bem.b}${P!==void 0?`${o}${P}`:""}${r}${A}`).join(", ")}const T=g.bem.els;return T!==null?y(T[0]):y()}}}function d(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=g.bem.els;return`&:not(${b?.bPrefix||t}${g.bem.b}${C!==null&&C.length>0?`${o}${C[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>n(l(p[0]),p[1],p[2])),cE:((...p)=>n(a(p[0]),p[1],p[2])),cM:((...p)=>n(s(p[0]),p[1],p[2])),cNotM:((...p)=>n(d(p[0]),p[1],p[2]))}),i}function cv(e){let t=0;for(let o=0;o{let n=cv(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function fv(e,t){const o=[];return t.split(ju).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function hv(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=uv(t,o):t=fv(t,o))}),t.join(", ").replace(dv," ")}function qs(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function pv(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ei(e){return e?/^\s*@(s|m)/.test(e):!1}const mv=/[A-Z]/g;function Vu(e){return e.replace(mv,t=>"-"+t.toLowerCase())}function gv(e,t=" "){return typeof e=="object"&&e!==null?` { `+Object.entries(e).map(o=>t+` ${Vu(o[0])}: ${o[1]};`).join(` `)+` @@ -813,4 +813,4 @@ ${t} transform: translate(${t}, 0); `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: translate(0, 0); - `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-BctFe39X.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-BWuJr4AI.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-CAYRlNMN.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-Dpzh-nNm.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,3,30,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-SRhryImQ.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-C32h1q4d.js"),__vite__mapDeps([36,27,13,4,2,1,24,37,30,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-CSQ6hh8U.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-Dcoelb-a.js"),__vite__mapDeps([41,1,2,27,13,4,37,5,30,16,17,29,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,eP as b0,c2 as b1,Kt as b2,nl as b3,Nc as b4,Hi as b5,ja as b6,Wa as b7,Na as b8,An as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,wp as ba,Mi as bb,Ku as bc,Rv as bd,DS as be,Va as bf,Kr as bg,hi as bh,J_ as bi,hT as bj,Io as bk,X_ as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; + `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-BjbMAX6a.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-BKOOfxKt.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-scECmWLS.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-BS7njuEF.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,30,3,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-DQJVOvaX.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-I_oin3xl.js"),__vite__mapDeps([36,27,13,4,2,1,24,29,37,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-ByV6k06l.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-7xwJcQmS.js"),__vite__mapDeps([41,1,2,27,13,4,24,37,5,16,17,30,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,c2 as b0,Kt as b1,nl as b2,Nc as b3,Hi as b4,ja as b5,Wa as b6,Na as b7,An as b8,wp as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,Mi as ba,Ku as bb,Rv as bc,DS as bd,Va as be,Kr as bf,hi as bg,J_ as bh,hT as bi,Io as bj,X_ as bk,eP as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bqfjqsa8.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-959wQihJ.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bqfjqsa8.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-959wQihJ.js index 413768ed..f9d261e7 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-Bqfjqsa8.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-959wQihJ.js @@ -1,2 +1,2 @@ -import{ao as a,aV as t,ap as r,a_ as i}from"./index-Dewca6JL.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` +import{ao as a,aV as t,ap as r,a_ as i}from"./index-IeQIGfOC.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` `)}const p=s=>r("/v1/streamers",s),u=s=>t("/v1/streamers",s),d=s=>i(`/v1/streamers/${s}`),g=s=>t(`/v1/streamers/${s}/pause`),$=s=>`/v1/streamers/${s}/cover`;export{m as a,p as b,$ as c,o as d,d as e,c as g,l,v as p,g as t,u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CcF_TVW8.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D5WZISuP.js similarity index 76% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CcF_TVW8.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D5WZISuP.js index 5f6bf697..7d32c3da 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CcF_TVW8.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D5WZISuP.js @@ -1 +1 @@ -import{L as f,j as e}from"./index-Dewca6JL.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; +import{L as f,j as e}from"./index-IeQIGfOC.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DoP8RQDr.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DtvhZdQK.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DoP8RQDr.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DtvhZdQK.js index 86c7c1eb..fce07ffb 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DoP8RQDr.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DtvhZdQK.js @@ -1,4 +1,4 @@ -import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b2 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-Dewca6JL.js";import{f as Oe}from"./_plugin-vue_export-helper-C8KY-gaw.js";import{u as Mn,a as An}from"./use-compitable-CcF_TVW8.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` +import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b1 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-IeQIGfOC.js";import{f as Oe}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as Mn,a as An}from"./use-compitable-D5WZISuP.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html index 86368b19..92865d1a 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html @@ -5,7 +5,7 @@ Live Stream Recorder - + diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs index 430f8659..d8a716a7 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs @@ -43,6 +43,7 @@ export function createEngineDownloader({ let response = null; let lastSampleAt = 0; let lastSampleBytes = 0; + let forceMode = false; function supported() { return platform === 'win32' && arch === 'x64'; } function binaryExists() { return existsSync(finalPath); } @@ -50,8 +51,10 @@ export function createEngineDownloader({ function getStatus() { const plat = platform + '-' + arch; if (!supported()) return { state: 'unsupported', platform: plat, error: '当前系统暂无引擎版本' }; - if (binaryExists()) return { state: 'ready', version: download.version, path: finalPath, platform: plat }; + // force 重新下载期间旧引擎仍在盘上:内部下载状态必须先于 binaryExists() 暴露, + // 否则 UI 一直显示「已就绪」、进度条不出现,且 proxy 会误判为可再次触发。 if (state === 'downloading' || state === 'verifying') return { state, platform: plat, ...progress, error }; + if (binaryExists()) return { state: 'ready', version: download.version, path: finalPath, platform: plat }; if (state === 'failed') return { state, platform: plat, error }; if (!configured) return { state: 'missing', platform: plat, error: '引擎下载尚未配置' }; return { state: 'missing', platform: plat }; @@ -74,11 +77,33 @@ export function createEngineDownloader({ try { unlinkSync(partPath); } catch { /* ignore */ } state = 'failed'; error = '校验未通过,未安装'; + forceMode = false; return; } - renameSync(partPath, finalPath); + if (forceMode && existsSync(finalPath)) { + const backupPath = finalPath + '.old'; + try { + if (existsSync(backupPath)) unlinkSync(backupPath); + renameSync(finalPath, backupPath); + renameSync(partPath, finalPath); + unlinkSync(backupPath); + } catch (e) { + if (existsSync(backupPath) && !existsSync(finalPath)) { + try { renameSync(backupPath, finalPath); } catch { /* ignore */ } + } + try { unlinkSync(partPath); } catch { /* ignore */ } + state = 'failed'; + error = '替换失败:' + (e?.message || String(e)); + forceMode = false; + log('warn', 'engine replace failed: ' + error); + return; + } + } else { + renameSync(partPath, finalPath); + } state = 'ready'; error = ''; + forceMode = false; progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; try { await restartEngine(); } catch (e) { log('warn', 'engine restart after install failed: ' + (e?.message || e)); } } @@ -128,9 +153,10 @@ export function createEngineDownloader({ } finally { controller = null; response = null; } } - function start() { + function start(options = {}) { + const force = options.force === true; if (!supported()) { state = 'unsupported'; error = '当前系统暂无引擎版本'; return { ok: false, state }; } - if (binaryExists()) { state = 'ready'; return { ok: true, state }; } + if (binaryExists() && !force) { state = 'ready'; return { ok: false, state }; } if (state === 'downloading' || state === 'verifying') return { ok: false, state }; if (!configured) { error = '引擎下载尚未配置'; return { ok: false, state, error }; } const avail = freeBytes(dataDir); @@ -141,6 +167,7 @@ export function createEngineDownloader({ } state = 'downloading'; error = ''; + forceMode = force; progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; lastSampleAt = 0; lastSampleBytes = 0; @@ -154,6 +181,7 @@ export function createEngineDownloader({ try { controller?.abort(); } catch { /* ignore */ } state = 'missing'; error = ''; + forceMode = false; progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; } return { ok: true, state }; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs index ea82031a..50e7a203 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/proxy.mjs @@ -217,6 +217,13 @@ export function createProxy(deps) { } return json(res, 200, engineDownloader.start()); } + if (pathname === '/miniapp/engine/redownload' && req.method === 'POST') { + const before = engineDownloader.getStatus(); + if (before.state !== 'ready') { + return json(res, 409, { ok: false, state: before.state, error: '当前状态不可重新下载' }); + } + return json(res, 200, engineDownloader.start({ force: true })); + } if (pathname === '/miniapp/engine/cancel' && req.method === 'POST') { return json(res, 200, engineDownloader.cancel()); } From ba5ab6fec02ffd37d9c933d17e1ecb75927a6692 Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 14:20:06 +0800 Subject: [PATCH 05/10] docs: add third-party references section to package READMEs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - README.md: add ## References at the end; README.zh-CN.md: add the matching ## 引用. Both list only the third-party components whose license files are actually present in this package, copied verbatim from NOTICE/licenses. - State the on-demand engine model in the wording supplied for this change: no engine binary is bundled, download runs only on user choice via this project's HTTPS Release, and installation is checked against a fixed hash. - No other section, manifest, code, icon, or package file was touched. npm run check: package 0 errors, 2 pre-existing warnings; suite 113 pass / 0 fail / 2 skipped. No push, no fork, no PR. --- .../charlesnty612/live-stream-recorder/README.md | 15 +++++++++++++++ .../live-stream-recorder/README.zh-CN.md | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md index 5c7eea17..d1870a1f 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.md +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -44,3 +44,18 @@ On the **Settings** page choose one of two modes: ## Third-party notices This project's own code is MIT licensed (see `LICENSE`). Bundled and derived third-party components, their licenses, and attribution are listed in `NOTICE` and under `licenses/`. No recording engine, FFmpeg, or other executable binary is included in this package. + +## References + +This package bundles the following third-party components. Full license texts and notices are included under `licenses/`. + +- **rust-srec** + - Source: https://github.com/hua0512/rust-srec + - License: MIT OR Apache-2.0 (distributed here under Apache-2.0) + - Copyright: Copyright (c) 2025 the rust-srec project authors +- **Uncut** + - Source: https://github.com/blazejkustra/uncut + - License: MIT + - Copyright: Copyright (c) 2026 Błażej Kustra and Uncut contributors + +The recording engine is downloaded on demand instead of being shipped inside this package. When the Mini App detects that the engine is missing, it asks whether to download it; the same action is available from the engine panel in Settings. The download uses this project's own GitHub Release over HTTPS and is verified against a fixed SHA-256 before installation. Nothing is downloaded until you choose to, and no other network requests or telemetry are made. diff --git a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md index 97ee219b..925c5ff7 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md +++ b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md @@ -44,3 +44,18 @@ ## 第三方声明 本项目自有代码采用 MIT 许可证(见 `LICENSE`)。捆绑及派生的第三方组件、其许可证与出处见 `NOTICE` 和 `licenses/`。本包不含录制引擎、FFmpeg 或其它可执行二进制。 + +## 引用 + +本包内含以下第三方组件,完整许可证文本与声明见 `licenses/`。 + +- **rust-srec** + - 出处:https://github.com/hua0512/rust-srec + - 许可证:MIT OR Apache-2.0(本分发按 Apache-2.0 提供合规材料) + - 版权:Copyright (c) 2025 the rust-srec project authors +- **Uncut** + - 出处:https://github.com/blazejkustra/uncut + - 许可证:MIT + - 版权:Copyright (c) 2026 Błażej Kustra and Uncut contributors + +录播引擎不随包内嵌,改为按需下载:Mini App 检测到引擎缺失时会询问是否下载,设置页的引擎面板也提供同一入口。下载使用本项目自己的 GitHub Release(HTTPS),安装前用固定 SHA-256 校验。未选择下载前不会发起任何下载,除此之外不联网、无遥测。 From 45c752de920ed640a40aa3b6d666441d73feda32 Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 14:25:16 +0800 Subject: [PATCH 06/10] docs: correct attribution wording in package README references - Fix the opening sentence of both reference sections: the named components are linked by the on-demand engine; only their license texts and notices ship with this package. No code or resource file for them is in the payload. - Component entries and the closing engine paragraph stay byte-identical. - No other section or file was touched. npm run check: package 0 errors, 2 pre-existing warnings; suite 113 pass / 0 fail / 2 skipped. No push, no fork, no PR. --- plugins/charlesnty612/live-stream-recorder/README.md | 2 +- plugins/charlesnty612/live-stream-recorder/README.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md index d1870a1f..928ca356 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.md +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -47,7 +47,7 @@ This project's own code is MIT licensed (see `LICENSE`). Bundled and derived thi ## References -This package bundles the following third-party components. Full license texts and notices are included under `licenses/`. +The recording engine that is downloaded on demand links the following third-party components. Their license texts and notices are included under `licenses/`. - **rust-srec** - Source: https://github.com/hua0512/rust-srec diff --git a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md index 925c5ff7..9a1cc62d 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md +++ b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md @@ -47,7 +47,7 @@ ## 引用 -本包内含以下第三方组件,完整许可证文本与声明见 `licenses/`。 +按需下载的录播引擎链接了以下第三方组件,其许可文本与声明随包附于 `licenses/`。 - **rust-srec** - 出处:https://github.com/hua0512/rust-srec From 7bd37b86e699872a2109d6ce6ebd6e2836ed8eb8 Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 14:52:04 +0800 Subject: [PATCH 07/10] feat(live-stream-recorder): redownload EPERM-safe, neutral labels, frontend license audit\n\n- engine: unique .old- backup; only two renames are critical; cleanup best-effort with visible notice; ready keeps error text; injectable unlink/rename for tests\n- tests: 2 new EPERM cases + strengthened hash-mismatch assertion; mutation verified (2 fail when fix reverted)\n- ui: downloader/settings labels neutralized (values/keys/env untouched); engine panel shows notice and ready-state error\n- licenses: audit 22 bundled frontend packages; add licenses/frontend + NOTICE section 7; @juggle/resize-observer 3.4.0 is Apache-2.0 (non-MIT) with its text\n- community check: 0 errors, 2 pre-existing warnings; 115 tests, 113 pass, 0 fail, 2 skipped --- .../charlesnty612/live-stream-recorder/NOTICE | 50 +++++ .../live-stream-recorder/README.md | 6 +- .../live-stream-recorder/README.zh-CN.md | 6 +- .../licenses/frontend/MANIFEST.md | 56 +++++ .../frontend/async-validator/LICENSE.md | 9 + .../frontend/css-render--plugin-bem/LICENSE | 21 ++ .../frontend/css-render--vue3-ssr/LICENSE | 21 ++ .../licenses/frontend/css-render/LICENSE | 21 ++ .../licenses/frontend/date-fns/LICENSE.md | 21 ++ .../licenses/frontend/emotion--hash/LICENSE | 21 ++ .../licenses/frontend/evtd/LICENSE | 21 ++ .../frontend/juggle--resize-observer/LICENSE | 201 ++++++++++++++++++ .../licenses/frontend/lodash-es/LICENSE | 47 ++++ .../licenses/frontend/naive-ui/LICENSE | 21 ++ .../licenses/frontend/seemly/LICENSE | 21 ++ .../licenses/frontend/treemate/LICENSE | 21 ++ .../licenses/frontend/vdirs/LICENSE | 21 ++ .../frontend/vicons--ionicons5/LICENSE | 21 ++ .../licenses/frontend/vooks/LICENSE | 21 ++ .../licenses/frontend/vue--reactivity/LICENSE | 21 ++ .../frontend/vue--runtime-core/LICENSE | 21 ++ .../frontend/vue--runtime-dom/LICENSE | 21 ++ .../licenses/frontend/vue--shared/LICENSE | 21 ++ .../licenses/frontend/vue-router/LICENSE | 21 ++ .../licenses/frontend/vue/LICENSE | 21 ++ .../licenses/frontend/vueuc/LICENSE | 21 ++ ...ine-BBW-Am9Z.js => AddOutline-B3zs4SfZ.js} | 2 +- ...Shell-scECmWLS.js => AppShell-DbUrPyr3.js} | 2 +- ...-DIEr6wY4.js => CheckboxGroup-D0_230aG.js} | 2 +- ...nS.js => CloudDownloadOutline-SNfViS-K.js} | 2 +- ...kUf.js => DocumentTextOutline-DseBRj1r.js} | 2 +- ...2iASfAS.js => DownloadOutline-B8-YKzxV.js} | 2 +- ...ate-DLXMt06R.js => EmptyState-5zQu_Ia9.js} | 2 +- ...ne-BiokjmgW.js => FilmOutline-aQuldXl1.js} | 2 +- ...dGm-f.js => GitCompareOutline-CYx8moNZ.js} | 2 +- .../{Input-1zXREyVM.js => Input-B9LQLjz_.js} | 2 +- ...View-BjbMAX6a.js => LoginView-CgZHTqn3.js} | 2 +- ...e-CDhfZ1-d.js => PulseOutline-B6Qrxbd0.js} | 2 +- ...DQJVOvaX.js => RecordingsView-C0q9wGjN.js} | 2 +- ...D9KhQzcL.js => RefreshOutline-CjuuDK9l.js} | 2 +- ...View-I_oin3xl.js => RelayView-BkgkRPye.js} | 2 +- ...-atP4ikMv.js => SearchOutline-DiOWHHh0.js} | 2 +- ...{Select-CtC43ppV.js => Select-yKeAXmxd.js} | 2 +- ...OOfxKt.js => ServiceErrorView-D5h30p8f.js} | 2 +- .../client/assets/SettingsView-7xwJcQmS.js | 3 - .../client/assets/SettingsView-BYZ7Hiig.css | 1 + .../client/assets/SettingsView-CaYIvJoC.js | 3 + .../client/assets/SettingsView-CiZee7qJ.css | 1 - ...ByV6k06l.js => ShortVideoView-Bizgy-un.js} | 2 +- .../{Spin-D2w1FlaT.js => Spin-IfgPhZdn.js} | 2 +- ...-BS7njuEF.js => StreamersView-B0GCV62j.js} | 2 +- ...{Switch-CM0aqR3N.js => Switch-CwiTSVeN.js} | 2 +- ...f83Ptp8.js => VideocamOutline-Br_v12hA.js} | 2 +- ... => _plugin-vue_export-helper-B_0nS7Wj.js} | 2 +- ...{engine-wF7co_0F.js => engine-BukwEF_1.js} | 2 +- .../client/assets/engine-state-C08MtSql.js | 1 - .../client/assets/engine-state-zmQVlIbS.js | 1 + .../{index-IeQIGfOC.js => index-W7SBB4Eq.js} | 4 +- ...mers-959wQihJ.js => streamers-BpUYLHe6.js} | 2 +- ...D5WZISuP.js => use-compitable-D8hAoj1z.js} | 2 +- ...ge-DtvhZdQK.js => use-message-DkYn5b6o.js} | 2 +- .../miniapp/client/index.html | 2 +- .../miniapp/node/engine.mjs | 57 +++-- 63 files changed, 849 insertions(+), 54 deletions(-) create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/MANIFEST.md create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/async-validator/LICENSE.md create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--plugin-bem/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--vue3-ssr/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/date-fns/LICENSE.md create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/emotion--hash/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/evtd/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/juggle--resize-observer/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/lodash-es/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/naive-ui/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/seemly/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/treemate/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vdirs/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vicons--ionicons5/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vooks/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--reactivity/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-core/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-dom/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--shared/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue-router/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue/LICENSE create mode 100644 plugins/charlesnty612/live-stream-recorder/licenses/frontend/vueuc/LICENSE rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AddOutline-BBW-Am9Z.js => AddOutline-B3zs4SfZ.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AppShell-scECmWLS.js => AppShell-DbUrPyr3.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CheckboxGroup-DIEr6wY4.js => CheckboxGroup-D0_230aG.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CloudDownloadOutline-B3mrN2nS.js => CloudDownloadOutline-SNfViS-K.js} (92%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DocumentTextOutline-ejgmikUf.js => DocumentTextOutline-DseBRj1r.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DownloadOutline-E2iASfAS.js => DownloadOutline-B8-YKzxV.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{EmptyState-DLXMt06R.js => EmptyState-5zQu_Ia9.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{FilmOutline-BiokjmgW.js => FilmOutline-aQuldXl1.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{GitCompareOutline-CIgdGm-f.js => GitCompareOutline-CYx8moNZ.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Input-1zXREyVM.js => Input-B9LQLjz_.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{LoginView-BjbMAX6a.js => LoginView-CgZHTqn3.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{PulseOutline-CDhfZ1-d.js => PulseOutline-B6Qrxbd0.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RecordingsView-DQJVOvaX.js => RecordingsView-C0q9wGjN.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RefreshOutline-D9KhQzcL.js => RefreshOutline-CjuuDK9l.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RelayView-I_oin3xl.js => RelayView-BkgkRPye.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{SearchOutline-atP4ikMv.js => SearchOutline-DiOWHHh0.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Select-CtC43ppV.js => Select-yKeAXmxd.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ServiceErrorView-BKOOfxKt.js => ServiceErrorView-D5h30p8f.js} (94%) delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-7xwJcQmS.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-BYZ7Hiig.css create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CaYIvJoC.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CiZee7qJ.css rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ShortVideoView-ByV6k06l.js => ShortVideoView-Bizgy-un.js} (97%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Spin-D2w1FlaT.js => Spin-IfgPhZdn.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{StreamersView-BS7njuEF.js => StreamersView-B0GCV62j.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Switch-CM0aqR3N.js => Switch-CwiTSVeN.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{VideocamOutline-Cf83Ptp8.js => VideocamOutline-Br_v12hA.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{_plugin-vue_export-helper-BhKLKalr.js => _plugin-vue_export-helper-B_0nS7Wj.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{engine-wF7co_0F.js => engine-BukwEF_1.js} (73%) delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C08MtSql.js create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-zmQVlIbS.js rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{index-IeQIGfOC.js => index-W7SBB4Eq.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{streamers-959wQihJ.js => streamers-BpUYLHe6.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-compitable-D5WZISuP.js => use-compitable-D8hAoj1z.js} (76%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-message-DtvhZdQK.js => use-message-DkYn5b6o.js} (99%) diff --git a/plugins/charlesnty612/live-stream-recorder/NOTICE b/plugins/charlesnty612/live-stream-recorder/NOTICE index 359fc476..4a02a583 100644 --- a/plugins/charlesnty612/live-stream-recorder/NOTICE +++ b/plugins/charlesnty612/live-stream-recorder/NOTICE @@ -54,6 +54,56 @@ - 需保留声明:Copyright (c) 2010-2024 three.js authors - 许可文件:`resources/editor/graphic-libs/three.LICENSE.txt` +## 7. 前端打包依赖(随 Mini App 客户端载荷分发) + +以下库被 Vite 实际打进 `miniapp/client/` 的 JS/CSS 产物,随包分发;出处、许可证、版权行与 +许可文本落点的逐项审计见 `licenses/frontend/MANIFEST.md`。本节属于随包分发的第三方声明, +与 README 的 References / 引用一节(只讲按需下载引擎链接的 rust-srec、Uncut)用途不同。 + +- vue 3.5.45、@vue/runtime-core / @vue/runtime-dom / @vue/reactivity / @vue/shared 3.5.45 + - 出处:https://github.com/vuejs/core + - 许可:MIT;版权:Copyright (c) 2018-present, Yuxi (Evan) You + - 文本:`licenses/frontend/vue/LICENSE` 与各 `licenses/frontend/vue--*/LICENSE` +- vue-router 4.6.4 + - 出处:https://github.com/vuejs/router + - 许可:MIT;版权:Copyright (c) 2019-present Eduardo San Martin Morote + - 文本:`licenses/frontend/vue-router/LICENSE` +- naive-ui 2.45.3 + - 出处:https://github.com/tusen-ai/naive-ui + - 许可:MIT;版权:Copyright (c) 2021 TuSimple + - 文本:`licenses/frontend/naive-ui/LICENSE` +- @vicons/ionicons5 0.13.0 + - 出处:https://github.com/07akioni/vicons + - 许可:MIT(package.json license 字段;包内未随附 LICENSE 文件) + - 版权:author=07akioni;文本:`licenses/frontend/vicons--ionicons5/LICENSE` +- @css-render/plugin-bem / @css-render/vue3-ssr / css-render 0.15.14、vdirs 0.1.8、 + vooks 0.2.12、vueuc 0.4.66、evtd 0.2.4、seemly 0.3.10、treemate 0.3.11 + - 出处:https://github.com/07akioni/css-render 及各自仓库 + - 许可:MIT(package.json license 字段;前四个包未随附 LICENSE 文件) + - 版权:Copyright (c) 2020/2024 07akioni(逐项见审计表) + - 文本:`licenses/frontend//LICENSE` +- async-validator 4.2.5 + - 出处:https://github.com/yiminghe/async-validator + - 许可:MIT;版权:Copyright (c) 2014-present yiminghe + - 文本:`licenses/frontend/async-validator/LICENSE.md` +- lodash-es 4.18.1 + - 出处:https://github.com/lodash/lodash + - 许可:MIT;版权:Copyright OpenJS Foundation and other contributors + - 文本:`licenses/frontend/lodash-es/LICENSE` +- date-fns 4.4.0 + - 出处:https://github.com/date-fns/date-fns + - 许可:MIT;版权:Copyright (c) 2021 Sasha Koss and Lesha Koss + - 文本:`licenses/frontend/date-fns/LICENSE.md` +- @emotion/hash 0.8.0 + - 出处:https://github.com/emotion-js/emotion/tree/master/packages/hash + - 许可:MIT;版权:Copyright (c) Emotion team and other contributors + - 文本:`licenses/frontend/emotion--hash/LICENSE` +- **@juggle/resize-observer 3.4.0 — Apache-2.0(非 MIT,唯一例外)** + - 出处:https://github.com/juggle/resize-observer + - 许可:Apache-2.0;版权:Copyright 2019 JUGGLE LTD(随附 LICENSE 原文附录) + - 文本:`licenses/frontend/juggle--resize-observer/LICENSE` + - 影响:按 Apache-2.0 原文随包提供并保留声明;本项目未修改其源码,故无「标明修改」义务。 + ## Cargo.lock 直接依赖 Cargo.lock 中经 crates.io / git 引入的直接依赖,声明许可均为 MIT、Apache-2.0、 BSD-3-Clause、ISC、Unlicense 等 MIT 兼容的宽松许可(详见本报告的差异说明), diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md index 928ca356..4e8f4118 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.md +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -19,7 +19,7 @@ On the **Settings** page choose one of two modes: - **Sidecar (default).** Set `binaryPath` to your `biliup` executable, or place `biliup` / `biliup.exe` in `/bin/`, or put it on `PATH`. The app spawns `biliup server -b 127.0.0.1 -p --no-fleet --shutdown-on-stdin-eof` (older binaries fall back to `--relay-listen 127.0.0.1:0`) and proxies the UI to it over loopback. - **Remote.** Set `remote.baseUrl` to the `http(s)` address of an already-running biliup server, with optional none / cookie / Bearer-token authentication. Link-local and cloud-metadata addresses are rejected. -`ffmpeg`, `yt-dlp` and `streamlink` are optional tools used by biliup itself, not by this Mini App. +Optional external transcoding and stream-download tools are used by the recording engine itself, not by this Mini App. ## Tested environment @@ -34,7 +34,7 @@ On the **Settings** page choose one of two modes: - **Files read (client payload):** the package's own `miniapp/client/` static assets, served read-only. A local recording is read only when you open a supported file in MiniMax Code: the Host delivers its path, Node registers it as an opaque in-memory token (10-minute TTL), and the page reads it by token only -- the path is never echoed back. - **File types handled:** `.flv`, `.mp4`, `.mkv`, `.webm`, `.xml` (declared in `fileHandlers`). - **Network:** the Node entry listens only on the Host-assigned `context.listen` (loopback, dynamic port). In sidecar mode it connects to `http://127.0.0.1:`; in remote mode to the user-configured `baseUrl`. Outbound requests go only to that engine: a reverse proxy for `/v1/`, `/bili/`, `/static/`, WebSocket `/v1/ws/*`, and a 3-second `/v1/activity-events` poll. No third-party host is contacted directly by the page. There is no telemetry, update check, or analytics. -- **Spawned processes:** `biliup` / `biliup.exe` as a sidecar, including a startup `--help` capability probe, a `where` / `which biliup` PATH lookup, and `taskkill /PID /T /F` or `kill(-pid)` only as a shutdown fallback. `ffmpeg`, `yt-dlp` and `streamlink`, if used, are launched by biliup, not by this Mini App. +- **Spawned processes:** `biliup` / `biliup.exe` as a sidecar, including a startup `--help` capability probe, a `where` / `which biliup` PATH lookup, and `taskkill /PID /T /F` or `kill(-pid)` only as a shutdown fallback. Optional external transcoding and stream-download tools, if used, are launched by the recording engine, not by this Mini App. - **Agent turns / conversations:** none automatically. Two buttons call `window.miniapp.host.composer.append` to place text into the chat input for you to review and send: "Send diagnostics to Agent" (redacted log lines) and "Generate clip plan" (recording metadata and danmaku density peaks). Those prompts mention MCP tool names, but this package declares no MCP servers and calls no tools itself. No conversation is read. - **Tools / Connectors:** none. `apps`, `mcpServers`, `skills`, and every `permissions` grant except `device.notifications` are empty. - **Microphone / camera / Host navigation:** none. @@ -43,7 +43,7 @@ On the **Settings** page choose one of two modes: ## Third-party notices -This project's own code is MIT licensed (see `LICENSE`). Bundled and derived third-party components, their licenses, and attribution are listed in `NOTICE` and under `licenses/`. No recording engine, FFmpeg, or other executable binary is included in this package. +This project's own code is MIT licensed (see `LICENSE`). Bundled and derived third-party components, their licenses, and attribution are listed in `NOTICE` and under `licenses/`. No recording engine, external transcoding tool, or other executable binary is included in this package. ## References diff --git a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md index 9a1cc62d..1d62c49e 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md +++ b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md @@ -19,7 +19,7 @@ - **Sidecar(默认)**:把 `binaryPath` 指向你的 `biliup` 可执行文件,或把 `biliup` / `biliup.exe` 放到 `/bin/`,或加入 `PATH`。应用会拉起 `biliup server -b 127.0.0.1 -p <空闲端口> --no-fleet --shutdown-on-stdin-eof`(旧版降级为 `--relay-listen 127.0.0.1:0`),并通过回环地址代理界面。 - **Remote**:把 `remote.baseUrl` 设为正在运行的 biliup 服务的 `http(s)` 地址,认证可选 无 / Cookie / Bearer Token。链路本地与云元数据地址会被拒绝。 -`ffmpeg`、`yt-dlp`、`streamlink` 是 biliup 自身使用的可选工具,不属于本 Mini App。 +外部转码与流下载工具为录制引擎自选工具,不属于本 Mini App。 ## 测试环境 @@ -34,7 +34,7 @@ - **读取文件(客户端载荷)**:仅只读提供包内 `miniapp/client/` 静态资源。只有你在 MiniMax Code 里打开受支持的文件时才会读取本地录像:宿主投递路径,Node 登记为不透明内存 token(10 分钟有效),页面只按 token 读取——路径绝不回显。 - **处理的文件类型**:`.flv`、`.mp4`、`.mkv`、`.webm`、`.xml`(在 `fileHandlers` 中声明)。 - **网络**:Node 入口只监听宿主分配的 `context.listen`(回环、动态端口)。sidecar 模式连接 `http://127.0.0.1:<空闲端口>`;remote 模式连接用户配置的 `baseUrl`。出站请求只发往该引擎:`/v1/`、`/bili/`、`/static/` 的反向代理、WebSocket `/v1/ws/*`、每 3 秒一次的 `/v1/activity-events` 轮询。页面不直连任何第三方主机;无遥测、更新检查或统计。 -- **拉起的进程**:sidecar 模式的 `biliup` / `biliup.exe`,包括启动时的 `--help` 能力探测、`where` / `which biliup` 的 PATH 查询,以及仅在关闭兜底时使用的 `taskkill /PID /T /F` 或 `kill(-pid)`。`ffmpeg`、`yt-dlp`、`streamlink` 如被使用,由 biliup 而非本 Mini App 拉起。 +- **拉起的进程**:sidecar 模式的 `biliup` / `biliup.exe`,包括启动时的 `--help` 能力探测、`where` / `which biliup` 的 PATH 查询,以及仅在关闭兜底时使用的 `taskkill /PID /T /F` 或 `kill(-pid)`。外部转码与流下载工具如被使用,由录制引擎而非本 Mini App 拉起。 - **Agent 轮次 / 会话**:不会自动触发。两个按钮会调用 `window.miniapp.host.composer.append` 把文本放进输入框供你确认后发送:"把诊断交给 Agent"(脱敏日志)与"生成切片方案"(录像元数据与弹幕密度峰值)。这些提示词提到 MCP 工具名,但本包不声明任何 MCP 服务,也不自行调用工具。不读取任何会话。 - **工具 / Connector**:无。`apps`、`mcpServers`、`skills` 以及除 `device.notifications` 外的所有 `permissions` 授权均为空。 - **麦克风 / 摄像头 / 宿主导航读取**:无。 @@ -43,7 +43,7 @@ ## 第三方声明 -本项目自有代码采用 MIT 许可证(见 `LICENSE`)。捆绑及派生的第三方组件、其许可证与出处见 `NOTICE` 和 `licenses/`。本包不含录制引擎、FFmpeg 或其它可执行二进制。 +本项目自有代码采用 MIT 许可证(见 `LICENSE`)。捆绑及派生的第三方组件、其许可证与出处见 `NOTICE` 和 `licenses/`。本包不含录制引擎、外部转码工具或其它可执行二进制。 ## 引用 diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/MANIFEST.md b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/MANIFEST.md new file mode 100644 index 00000000..81423228 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/MANIFEST.md @@ -0,0 +1,56 @@ +# 前端打包依赖许可审计(dist-miniapp / Mini App 客户端载荷) + +本清单的审计对象是**真正被打进前端产物**的第三方库,不是 package.json 的开发依赖。 +版本取自 `web/node_modules//package.json`,许可证与版权行取自同目录 `license` 字段与 +LICENSE 文件原文;出现证据来自一次仅用于审计的 sourcemap 构建(`vite build --sourcemap`, +产物放在被 gitignore 的 `.review-logs/audit-build`,**不随包分发**)中各 `.js.map` 的 +`sources` 列表均含 `node_modules//...`。 + +| 组件 | 版本 | 许可证 | 版权行(原文) | 许可文本落点 | 产物证据 | +| --- | --- | --- | --- | --- | --- | +| vue | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue/LICENSE` | umbrella 包;LICENSE 覆盖下列 @vue/* 运行时包 | +| @vue/runtime-core | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue--runtime-core/LICENSE` | sourcemap sources | +| @vue/runtime-dom | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue--runtime-dom/LICENSE` | sourcemap sources | +| @vue/reactivity | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue--reactivity/LICENSE` | sourcemap sources | +| @vue/shared | 3.5.45 | MIT | Copyright (c) 2018-present, Yuxi (Evan) You | `licenses/frontend/vue--shared/LICENSE` | sourcemap sources | +| vue-router | 4.6.4 | MIT | Copyright (c) 2019-present Eduardo San Martin Morote | `licenses/frontend/vue-router/LICENSE` | sourcemap sources | +| naive-ui | 2.45.3 | MIT | Copyright (c) 2021 TuSimple | `licenses/frontend/naive-ui/LICENSE` | sourcemap sources | +| @vicons/ionicons5 | 0.13.0 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT,author=07akioni | `licenses/frontend/vicons--ionicons5/LICENSE` | sourcemap sources(34 个图标模块) | +| @css-render/plugin-bem | 0.15.14 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT,author=07akioni | `licenses/frontend/css-render--plugin-bem/LICENSE` | sourcemap sources | +| @css-render/vue3-ssr | 0.15.14 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT | `licenses/frontend/css-render--vue3-ssr/LICENSE` | sourcemap sources | +| css-render | 0.15.14 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT,author=07akioni | `licenses/frontend/css-render/LICENSE` | sourcemap sources | +| vdirs | 0.1.8 | MIT | 包内未随附 LICENSE 文件;package.json license=MIT,author=07akioni | `licenses/frontend/vdirs/LICENSE` | sourcemap sources | +| vooks | 0.2.12 | MIT | Copyright (c) 2020 07akioni | `licenses/frontend/vooks/LICENSE` | sourcemap sources | +| vueuc | 0.4.66 | MIT | Copyright (c) 2020 07akioni | `licenses/frontend/vueuc/LICENSE` | sourcemap sources | +| evtd | 0.2.4 | MIT | Copyright (c) 2020 07akioni | `licenses/frontend/evtd/LICENSE` | sourcemap sources | +| seemly | 0.3.10 | MIT | Copyright (c) 2024 07akioni | `licenses/frontend/seemly/LICENSE` | sourcemap sources | +| treemate | 0.3.11 | MIT | Copyright (c) 2020 07akioni | `licenses/frontend/treemate/LICENSE` | sourcemap sources | +| async-validator | 4.2.5 | MIT | Copyright (c) 2014-present yiminghe | `licenses/frontend/async-validator/LICENSE.md` | sourcemap sources | +| lodash-es | 4.18.1 | MIT | Copyright OpenJS Foundation and other contributors | `licenses/frontend/lodash-es/LICENSE` | sourcemap sources | +| date-fns | 4.4.0 | MIT | Copyright (c) 2021 Sasha Koss and Lesha Koss | `licenses/frontend/date-fns/LICENSE.md` | sourcemap sources | +| @emotion/hash | 0.8.0 | MIT | Copyright (c) Emotion team and other contributors | `licenses/frontend/emotion--hash/LICENSE` | sourcemap sources | +| @juggle/resize-observer | 3.4.0 | **Apache-2.0(非 MIT)** | `Copyright 2019 JUGGLE LTD`(LICENSE 原文附录) | `licenses/frontend/juggle--resize-observer/LICENSE` | sourcemap sources(23 个模块);`dist-miniapp/miniapp/client/assets/index-*.js` 命中 `ResizeObserver` | + +## 非 MIT 组件 + +- **@juggle/resize-observer 3.4.0 — Apache-2.0**。这是唯一非 MIT 的前端打包依赖, + 按实际许可证随包提供 Apache-2.0 原文;未标成 MIT。影响:Apache-2.0 要求保留许可与 + 版权声明、标明修改(本项目未修改其源码),并在 NOTICE 中列出;本清单与根 NOTICE 已满足。 + +## 许可文本缺失的包 + +5 个包(@css-render/plugin-bem、@css-render/vue3-ssr、@vicons/ionicons5、css-render、vdirs) +在 node_modules 内未随附 LICENSE 文件;其 `package.json` 的 `license` 字段均为 `MIT`。 +这些包的 `licenses/frontend//LICENSE` 为标准 MIT 文本,版权行取自 `package.json` 的 +`author` 字段并与同作者(07akioni)的相邻包保持一致。 + +## 归属说明 + +这些前端库是**随包分发的客户端载荷**,因此写入 NOTICE 与 `licenses/frontend/`。 +README 的 References / 引用一节只讲按需下载引擎所链接的组件(rust-srec、Uncut), +不包含本节内容。 + +## 目录名与 npm 包名的映射 + +社区包校验要求路径段只含 `[A-Za-z0-9._-]`,因此带 scope 的包目录用 `--` 代替 `@scope/`: +`@vue/runtime-core` → `vue--runtime-core`,`@css-render/plugin-bem` → `css-render--plugin-bem`,`@juggle/resize-observer` → `juggle--resize-observer`。上表「组件」列仍为真实 npm 包名。 diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/async-validator/LICENSE.md b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/async-validator/LICENSE.md new file mode 100644 index 00000000..1f5a0d9d --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/async-validator/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright (c) 2014-present yiminghe + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--plugin-bem/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--plugin-bem/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--plugin-bem/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--vue3-ssr/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--vue3-ssr/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render--vue3-ssr/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/css-render/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/date-fns/LICENSE.md b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/date-fns/LICENSE.md new file mode 100644 index 00000000..29c6e85f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/date-fns/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/emotion--hash/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/emotion--hash/LICENSE new file mode 100644 index 00000000..56e808de --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/emotion--hash/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Emotion team and other contributors + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/evtd/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/evtd/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/evtd/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/juggle--resize-observer/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/juggle--resize-observer/LICENSE new file mode 100644 index 00000000..d3731a5f --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/juggle--resize-observer/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 JUGGLE LTD + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/lodash-es/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/lodash-es/LICENSE new file mode 100644 index 00000000..77c42f14 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/lodash-es/LICENSE @@ -0,0 +1,47 @@ +Copyright OpenJS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +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. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/naive-ui/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/naive-ui/LICENSE new file mode 100644 index 00000000..cdebdbd1 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/naive-ui/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 TuSimple + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/seemly/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/seemly/LICENSE new file mode 100644 index 00000000..01641dea --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/seemly/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/treemate/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/treemate/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/treemate/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vdirs/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vdirs/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vdirs/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vicons--ionicons5/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vicons--ionicons5/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vicons--ionicons5/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vooks/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vooks/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vooks/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--reactivity/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--reactivity/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--reactivity/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-core/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-core/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-core/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-dom/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-dom/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--runtime-dom/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--shared/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--shared/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue--shared/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue-router/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue-router/LICENSE new file mode 100644 index 00000000..0c77562b --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue-router/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2019-present Eduardo San Martin Morote + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue/LICENSE new file mode 100644 index 00000000..15f1f7e7 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vue/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018-present, Yuxi (Evan) You + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vueuc/LICENSE b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vueuc/LICENSE new file mode 100644 index 00000000..bfa566c5 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/licenses/frontend/vueuc/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 07akioni + +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. diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-BBW-Am9Z.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-B3zs4SfZ.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-BBW-Am9Z.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-B3zs4SfZ.js index a591a606..42f1343e 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-BBW-Am9Z.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-B3zs4SfZ.js @@ -1,4 +1,4 @@ -import{W as de,a$ as Xe,L as Ye,A as et,O as Je,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b0 as Ke,Z as Se,r as G,aJ as tt,a7 as ve,j as F,a as Ae,n as qe,e as rt,b1 as nt,T as it,b2 as ze,ae as be,b as at,ac as st,F as Le,Q as ot,_ as Ve,af as U,b3 as lt}from"./index-IeQIGfOC.js";import{f as Fe}from"./_plugin-vue_export-helper-BhKLKalr.js";import{g as Ze}from"./use-message-DtvhZdQK.js";function ft(n,e,t){const r=de(n,null);if(r===null)return;const i=Xe()?.proxy;Ye(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}const ce=Je("n-form"),Qe=Je("n-form-item-insts");var dt=N("form",[B("inline",` +import{W as de,a$ as Xe,L as Ye,A as et,O as Je,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b0 as Ke,Z as Se,r as G,aJ as tt,a7 as ve,j as F,a as Ae,n as qe,e as rt,b1 as nt,T as it,b2 as ze,ae as be,b as at,ac as st,F as Le,Q as ot,_ as Ve,af as U,b3 as lt}from"./index-W7SBB4Eq.js";import{f as Fe}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{g as Ze}from"./use-message-DkYn5b6o.js";function ft(n,e,t){const r=de(n,null);if(r===null)return;const i=Xe()?.proxy;Ye(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}const ce=Je("n-form"),Qe=Je("n-form-item-insts");var dt=N("form",[B("inline",` width: 100%; display: inline-flex; align-items: flex-start; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-scECmWLS.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DbUrPyr3.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-scECmWLS.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DbUrPyr3.js index 83edd7a9..e30352c8 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-scECmWLS.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DbUrPyr3.js @@ -1 +1 @@ -import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-IeQIGfOC.js";import{T as J,P as ue}from"./PulseOutline-CDhfZ1-d.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as de}from"./use-message-DtvhZdQK.js";import{g as ce}from"./streamers-959wQihJ.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-wF7co_0F.js";import{e as f}from"./engine-state-C08MtSql.js";import{C as fe}from"./CheckboxGroup-DIEr6wY4.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-Cf83Ptp8.js";import{F as _e}from"./FilmOutline-BiokjmgW.js";import{G as ke}from"./GitCompareOutline-CIgdGm-f.js";import{C as ge}from"./CloudDownloadOutline-B3mrN2nS.js";import"./use-compitable-D5WZISuP.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; +import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-W7SBB4Eq.js";import{T as J,P as ue}from"./PulseOutline-B6Qrxbd0.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as de}from"./use-message-DkYn5b6o.js";import{g as ce}from"./streamers-BpUYLHe6.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-BukwEF_1.js";import{e as f}from"./engine-state-zmQVlIbS.js";import{C as fe}from"./CheckboxGroup-D0_230aG.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-Br_v12hA.js";import{F as _e}from"./FilmOutline-aQuldXl1.js";import{G as ke}from"./GitCompareOutline-CYx8moNZ.js";import{C as ge}from"./CloudDownloadOutline-SNfViS-K.js";import"./use-compitable-D8hAoj1z.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-DIEr6wY4.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-D0_230aG.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-DIEr6wY4.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-D0_230aG.js index 78dbfbdb..d5e200a8 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-DIEr6wY4.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-D0_230aG.js @@ -1,4 +1,4 @@ -import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,ba as se,bb as be,bc as he,d as ue,a8 as E,b1 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,bd as pe,aj as Ce,ac as ye,b2 as we,j as P,ad as T,W as ze,be as Re,bf as Se,af as j,ae as _e,O as De}from"./index-IeQIGfOC.js";import{u as Be}from"./use-compitable-D5WZISuP.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` +import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,ba as se,bb as be,bc as he,d as ue,a8 as E,b1 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,bd as pe,aj as Ce,ac as ye,b2 as we,j as P,ad as T,W as ze,be as Re,bf as Se,af as j,ae as _e,O as De}from"./index-W7SBB4Eq.js";import{u as Be}from"./use-compitable-D8hAoj1z.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` font-size: var(--n-font-size); outline: none; cursor: pointer; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-B3mrN2nS.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-SNfViS-K.js similarity index 92% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-B3mrN2nS.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-SNfViS-K.js index 2582a917..bb909d69 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-B3mrN2nS.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-SNfViS-K.js @@ -1 +1 @@ -import{d as e,o as r,c as t,a as o}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; +import{d as e,o as r,c as t,a as o}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-ejgmikUf.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-DseBRj1r.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-ejgmikUf.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-DseBRj1r.js index 69a5504a..caaae1c1 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-ejgmikUf.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-DseBRj1r.js @@ -1,4 +1,4 @@ -import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,bd as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b1 as te,R as ne,bi as Ee,bj as je,ay as re,az as le,bk as ie,ae as He}from"./index-IeQIGfOC.js";import{I as Le,u as Ke}from"./Input-1zXREyVM.js";import{u as Ge}from"./use-compitable-D5WZISuP.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` +import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,bd as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b1 as te,R as ne,bi as Ee,bj as je,ay as re,az as le,bk as ie,ae as He}from"./index-W7SBB4Eq.js";import{I as Le,u as Ke}from"./Input-B9LQLjz_.js";import{u as Ge}from"./use-compitable-D8hAoj1z.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-E2iASfAS.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-B8-YKzxV.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-E2iASfAS.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-B8-YKzxV.js index 9cc1b6cf..4e78b1e3 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-E2iASfAS.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-B8-YKzxV.js @@ -1 +1 @@ -import{d as e,c as r,a as o,o as t}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; +import{d as e,c as r,a as o,o as t}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-DLXMt06R.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-5zQu_Ia9.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-DLXMt06R.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-5zQu_Ia9.js index bf70bb3c..fa48d329 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-DLXMt06R.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-5zQu_Ia9.js @@ -1 +1 @@ -import{N as m,_ as l}from"./_plugin-vue_export-helper-BhKLKalr.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-IeQIGfOC.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; +import{N as m,_ as l}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-W7SBB4Eq.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BiokjmgW.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-aQuldXl1.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BiokjmgW.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-aQuldXl1.js index fc3c4361..7cf58f72 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-BiokjmgW.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-aQuldXl1.js @@ -1 +1 @@ -import{d as e,c as t,y as o,o as n}from"./index-IeQIGfOC.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; +import{d as e,c as t,y as o,o as n}from"./index-W7SBB4Eq.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CIgdGm-f.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CYx8moNZ.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CIgdGm-f.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CYx8moNZ.js index bf0e5d33..4fccbe03 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CIgdGm-f.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CYx8moNZ.js @@ -1 +1 @@ -import{d as e,o as r,c as n,y as t}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; +import{d as e,o as r,c as n,y as t}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-1zXREyVM.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-B9LQLjz_.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-1zXREyVM.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-B9LQLjz_.js index 0d11e3a5..b1e68ae9 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-1zXREyVM.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-B9LQLjz_.js @@ -1,4 +1,4 @@ -import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,ba as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,be as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,bd as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b1 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-IeQIGfOC.js";import{u as Or}from"./use-compitable-D5WZISuP.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` +import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,ba as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,be as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,bd as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b1 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-W7SBB4Eq.js";import{u as Or}from"./use-compitable-D8hAoj1z.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` flex-shrink: 0; height: 1em; width: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BjbMAX6a.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-CgZHTqn3.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BjbMAX6a.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-CgZHTqn3.js index cd7ce931..2d7b988a 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-BjbMAX6a.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-CgZHTqn3.js @@ -1 +1 @@ -import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-IeQIGfOC.js";import{I as L}from"./Input-1zXREyVM.js";import{C as G}from"./CheckboxGroup-DIEr6wY4.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-BhKLKalr.js";import{S as Q}from"./Spin-D2w1FlaT.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-D5WZISuP.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; +import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-W7SBB4Eq.js";import{I as L}from"./Input-B9LQLjz_.js";import{C as G}from"./CheckboxGroup-D0_230aG.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{S as Q}from"./Spin-IfgPhZdn.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-D8hAoj1z.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-CDhfZ1-d.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B6Qrxbd0.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-CDhfZ1-d.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B6Qrxbd0.js index cc3096c2..91baa4db 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-CDhfZ1-d.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B6Qrxbd0.js @@ -1 +1 @@ -import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-IeQIGfOC.js";import{p as v,P as f}from"./use-message-DtvhZdQK.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; +import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-W7SBB4Eq.js";import{p as v,P as f}from"./use-message-DkYn5b6o.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-DQJVOvaX.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-C0q9wGjN.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-DQJVOvaX.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-C0q9wGjN.js index 439409b2..e7aff15e 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-DQJVOvaX.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-C0q9wGjN.js @@ -1,4 +1,4 @@ -import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-CtC43ppV.js";import{u as mr,I as je}from"./Input-1zXREyVM.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-IeQIGfOC.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-DtvhZdQK.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-DLXMt06R.js";import{u as Ie}from"./use-compitable-D5WZISuP.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-BhKLKalr.js";import{S as Ge}from"./Spin-D2w1FlaT.js";import{d as Hr}from"./streamers-959wQihJ.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-BiokjmgW.js";import{D as rt}from"./DownloadOutline-E2iASfAS.js";import{R as Wr}from"./RefreshOutline-D9KhQzcL.js";import{S as qr}from"./SearchOutline-atP4ikMv.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` +import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-yKeAXmxd.js";import{u as mr,I as je}from"./Input-B9LQLjz_.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-W7SBB4Eq.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-DkYn5b6o.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-5zQu_Ia9.js";import{u as Ie}from"./use-compitable-D8hAoj1z.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{S as Ge}from"./Spin-IfgPhZdn.js";import{d as Hr}from"./streamers-BpUYLHe6.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-aQuldXl1.js";import{D as rt}from"./DownloadOutline-B8-YKzxV.js";import{R as Wr}from"./RefreshOutline-CjuuDK9l.js";import{S as qr}from"./SearchOutline-DiOWHHh0.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` box-shadow: var(--n-menu-box-shadow); `);const Ye={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:String,scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},at=hr(Ye);var Yr=re({name:"PopselectPanel",props:Ye,setup(e){const t=Ve(Ct),{mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedComponentPropsRef:m}=Be(e),v=A(()=>e.size||m?.value?.Popselect?.size||"medium"),C=be("Popselect","-pop-select",Xr,pt,t.props,r),F=A(()=>cr(e.options,ur("value","children")));function P(l,p){const{onUpdateValue:w,"onUpdate:value":k,onChange:N}=e;w&&X(w,l,p),k&&X(k,l,p),N&&X(N,l,p)}function f(l){b(l.key)}function M(l){!Ue(l,"action")&&!Ue(l,"empty")&&!Ue(l,"header")&&l.preventDefault()}function b(l){const{value:{getNode:p}}=F;if(e.multiple)if(Array.isArray(e.value)){const w=[],k=[];let N=!0;e.value.forEach(J=>{if(J===l){N=!1;return}const V=p(J);V&&(w.push(V.key),k.push(V.rawNode))}),N&&(w.push(l),k.push(p(l).rawNode)),P(w,k)}else{const w=p(l);w&&P([l],[w.rawNode])}else if(e.value===l&&e.cancelable)P(null,null);else{const w=p(l);w&&P(l,w.rawNode);const{"onUpdate:show":k,onUpdateShow:N}=t.props;k&&X(k,!1),N&&X(N,!1),t.setShow(!1)}De(()=>{t.syncPosition()})}Fe(Me(e,"options"),()=>{De(()=>{t.syncPosition()})});const R=A(()=>{const{self:{menuBoxShadow:l}}=C.value;return{"--n-menu-box-shadow":l}}),z=g?We("select",void 0,R,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:F,handleToggle:f,handleMenuMousedown:M,cssVars:g?void 0:R,themeClass:z?.themeClass,onRender:z?.onRender,mergedSize:v,scrollbarProps:t.props.scrollbarProps}},render(){return this.onRender?.(),n(),y(dr,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:H([`${this.mergedClsPrefix}-popselect-menu`,this.themeClass]),style:ce(this.cssVars),theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.mergedSize,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,scrollbarProps:this.scrollbarProps,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{_:1,header:Re(()=>this.$slots.header?.()||[]),action:Re(()=>this.$slots.action?.()||[]),empty:Re(()=>this.$slots.empty?.()||[])},8,["clsPrefix","nodeProps","class","style","theme","themeOverrides","multiple","treeMate","size","value","virtualScroll","scrollable","scrollbarProps","renderLabel","onToggle","onMouseenter","onMouseleave","onMousedown","showCheckmark"])}});const Kr={...be.props,...vt(Qe,["showArrow","arrow"]),placement:{...Qe.placement,default:"bottom"},trigger:{type:String,default:"hover"},...Ye,scrollbarProps:Object};var Jr=re({name:"Popselect",props:Kr,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Be(e),r=be("Popselect","-popselect",void 0,pt,e,t),g=B(null);function m(){g.value?.syncPosition()}function v(C){g.value?.setShow(C)}return Pe(Ct,{props:e,mergedThemeRef:r,syncPosition:m,setShow:v}),{syncPosition:m,setShow:v,popoverInstRef:g,mergedTheme:r}},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,g,m,v,C)=>{const{$attrs:F}=this;return n(),y(Yr,ge(F,{class:[F.class,r],style:[F.style,...m]},pr(this.$props,at),{ref:Nr(g),onMouseenter:Ke([v,F.onMouseenter]),onMouseleave:Ke([C,F.onMouseleave])}),{header:()=>this.$slots.header?.(),action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,["class","style","onMouseenter","onMouseleave"])}};return n(),y(Ar,ge(vt(this.$props,at),t,{internalDeactivateImmediately:!0}),{_:1,trigger:Re(()=>this.$slots.default?.())},16)}});const Qr={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function nt(e){const t=Qr[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}var ot=re({name:"Backward",render(){return(()=>{const e=xe("20cdf29399dd0749");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"})],-1))})()}}),st=re({name:"FastBackward",render(){return(()=>{const e=xe("9d0d04cc580afefa");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"})])])],-1))})()}}),it=re({name:"FastForward",render(){return(()=>{const e=xe("c2e477dd1211740a");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})])])],-1))})()}}),lt=re({name:"Forward",render(){return(()=>{const e=xe("6fb2c33c1e576c93");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"})],-1))})()}}),dt=re({name:"More",render(){return(()=>{const e=xe("e4a3e3d3803c676d");return e[0]||(e[0]=a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"})])])],-1))})()}});const ct=` background: var(--n-item-color-hover); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-D9KhQzcL.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CjuuDK9l.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-D9KhQzcL.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CjuuDK9l.js index 33e2bfcf..229b90f2 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-D9KhQzcL.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CjuuDK9l.js @@ -1 +1 @@ -import{d as n,c as t,a as o,o as r}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; +import{d as n,c as t,a as o,o as r}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-I_oin3xl.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-BkgkRPye.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-I_oin3xl.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-BkgkRPye.js index b83ef609..9d0d0802 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-I_oin3xl.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-BkgkRPye.js @@ -1 +1 @@ -import{T as R,S as M}from"./Select-CtC43ppV.js";import{I as re}from"./Input-1zXREyVM.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-IeQIGfOC.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as Ye,S as W}from"./Switch-CM0aqR3N.js";import{u as Ze}from"./use-message-DtvhZdQK.js";import{A as ue,F as Ke,a as w}from"./AddOutline-BBW-Am9Z.js";import{D as Qe,I as et}from"./DocumentTextOutline-ejgmikUf.js";import{d as tt}from"./streamers-959wQihJ.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-D9KhQzcL.js";import{G as nt}from"./GitCompareOutline-CIgdGm-f.js";import"./use-compitable-D5WZISuP.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ze(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ke),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; +import{T as R,S as M}from"./Select-yKeAXmxd.js";import{I as re}from"./Input-B9LQLjz_.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-W7SBB4Eq.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as Ye,S as W}from"./Switch-CwiTSVeN.js";import{u as Ze}from"./use-message-DkYn5b6o.js";import{A as ue,F as Ke,a as w}from"./AddOutline-B3zs4SfZ.js";import{D as Qe,I as et}from"./DocumentTextOutline-DseBRj1r.js";import{d as tt}from"./streamers-BpUYLHe6.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-CjuuDK9l.js";import{G as nt}from"./GitCompareOutline-CYx8moNZ.js";import"./use-compitable-D8hAoj1z.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ze(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ke),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-atP4ikMv.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-DiOWHHh0.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-atP4ikMv.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-DiOWHHh0.js index 2a27f997..b2dee0e1 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-atP4ikMv.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-DiOWHHh0.js @@ -1 +1 @@ -import{d as o,o as r,c as n,a as t}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; +import{d as o,o as r,c as n,a as t}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-CtC43ppV.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-yKeAXmxd.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-CtC43ppV.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-yKeAXmxd.js index 9041347a..b9ccd898 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-CtC43ppV.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-yKeAXmxd.js @@ -1,4 +1,4 @@ -import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-DtvhZdQK.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b1 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,bd as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-IeQIGfOC.js";import{u as Xt,S as ro}from"./Input-1zXREyVM.js";import{u as At,a as lo}from"./use-compitable-D5WZISuP.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` +import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-DkYn5b6o.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b1 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,bd as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-W7SBB4Eq.js";import{u as Xt,S as ro}from"./Input-B9LQLjz_.js";import{u as At,a as lo}from"./use-compitable-D8hAoj1z.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` display: flex; flex-direction: column; align-items: center; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BKOOfxKt.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-D5h30p8f.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BKOOfxKt.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-D5h30p8f.js index 4a7269c7..364d7390 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-BKOOfxKt.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-D5h30p8f.js @@ -1 +1 @@ -import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-IeQIGfOC.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-BhKLKalr.js";import{R as y}from"./RefreshOutline-D9KhQzcL.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; +import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-W7SBB4Eq.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{R as y}from"./RefreshOutline-CjuuDK9l.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-7xwJcQmS.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-7xwJcQmS.js deleted file mode 100644 index 1efd4344..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-7xwJcQmS.js +++ /dev/null @@ -1,3 +0,0 @@ -import{I as C}from"./Input-1zXREyVM.js";import{d as T,o as u,c as d,y as he,a as l,ao as F,aV as oe,b as Ce,A as Se,e as i,w as r,u as s,B as m,t as p,f as a,g as b,n as ze,i as B,F as Y,bg as Me,r as c,J as Be,ap as Ee,bh as Ue}from"./index-IeQIGfOC.js";import{S as D}from"./Select-CtC43ppV.js";import{N as g,_ as Ae}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as Ne,S as Q}from"./Switch-CM0aqR3N.js";import{u as Oe}from"./use-message-DtvhZdQK.js";import{I as $,D as De}from"./DocumentTextOutline-ejgmikUf.js";import{S as Pe}from"./Spin-D2w1FlaT.js";import{E as te,g as Fe,s as Te,c as Ve,r as qe}from"./engine-wF7co_0F.js";import{e as f}from"./engine-state-C08MtSql.js";import{v as Re}from"./filename-template-DBJXvN0y.js";import{e as x,i as P}from"./runtime-bridge-DmDzFGpU.js";import{V as X}from"./VideocamOutline-Cf83Ptp8.js";import{R as Ie}from"./RefreshOutline-D9KhQzcL.js";import"./use-compitable-D5WZISuP.js";const Le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=T({name:"ColorPaletteOutline",render:function(v,_){return u(),d("svg",Le,_[0]||(_[0]=[he('',6)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},$e=T({name:"KeyOutline",render:function(v,_){return u(),d("svg",Ge,_[0]||(_[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=T({name:"SaveOutline",render:function(v,_){return u(),d("svg",je,_[0]||(_[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ke={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Z=T({name:"ServerOutline",render:function(v,_){return u(),d("svg",Ke,_[0]||(_[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Je=()=>F("/v1/configuration"),We=S=>oe("/v1/configuration",S),Ye=[{label:"FFmpeg",value:"ffmpeg"},{label:"Stream Gears(推荐,边录边传)",value:"stream-gears"},{label:"Streamlink",value:"streamlink"},{label:"同步下载器 sync-downloader",value:"sync-downloader"},{label:"Mesio",value:"mesio"}],Qe=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Xe=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Ze=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],el={class:"page"},ll={class:"page-head"},sl={class:"toolbar"},nl={key:0,class:"loading"},tl={key:1,class:"error-panel"},il={class:"error-msg"},ol={key:2,class:"sections"},al={class:"section panel"},rl={class:"sec-head"},ul={class:"sec-icon accent"},dl={class:"fields"},pl={class:"field wide"},vl={class:"field wide"},fl={class:"field"},cl={class:"field"},ml={class:"field"},_l={class:"field"},yl={class:"section panel"},gl={class:"sec-head"},wl={class:"sec-icon cyan"},kl={class:"fields"},bl={class:"field"},xl={class:"field"},hl={class:"field wide"},Cl={class:"section panel"},Sl={class:"sec-head"},zl={class:"sec-icon live"},Ml={class:"fields"},Bl={class:"field"},El={class:"field"},Ul={class:"field switch-field"},Al={class:"field switch-field"},Nl={class:"field switch-field"},Ol={class:"section panel"},Dl={class:"sec-head"},Pl={class:"sec-icon live"},Fl={class:"fields"},Tl={class:"field wide"},Vl={class:"section panel"},ql={class:"sec-head"},Rl={class:"sec-icon muted"},Il={class:"readonly"},Ll={class:"mono"},Hl={class:"mono"},Gl={class:"mono"},$l={class:"mono"},jl={class:"section panel"},Kl={class:"sec-head"},Jl={class:"sec-icon cyan"},Wl={class:"engine-install"},Yl={class:"engine-status-row"},Ql={key:0,class:"readonly engine-detail"},Xl={class:"mono"},Zl={class:"mono"},es={key:1,class:"inline-hint"},ls={key:2,class:"inline-hint"},ss={key:3,class:"engine-progress"},ns={class:"progress-track"},ts={class:"mono"},is={class:"mono"},os={class:"mono"},as={class:"support-actions"},rs={key:4,class:"manual-list"},us={class:"section panel"},ds={class:"sec-head"},ps={class:"sec-icon accent"},vs={class:"fields"},fs={class:"field wide"},cs={class:"field wide"},ms={class:"field wide"},_s={class:"support-actions"},ys={key:0,class:"inline-hint"},gs={key:1,class:"readonly engine-status"},ws={class:"mono"},ks={class:"mono"},bs={key:2,class:"diagnostic-block"},xs={key:0,class:"inline-error"},hs={key:1,class:"inline-hint"},Cs={key:2,class:"diag-preview"},Ss={class:"support-actions"},zs={class:"support-note"},Ms={class:"section panel"},Bs={class:"sec-head"},Es={class:"sec-icon cyan"},Us={class:"fields"},As={class:"field wide"},Ns=T({__name:"SettingsView",setup(S){const v=Oe(),_=Ne(),y=c(null),E=c(!0),V=c(!1),q=c(""),t=Be({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function ee(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function j(){E.value=!0,q.value="";try{y.value=await Je(),ee(y.value)}catch(n){q.value=n instanceof Error?n.message:"读取配置失败"}finally{E.value=!1}}async function ae(){if(!y.value)return;const n=Re(t.filename_prefix);if(n){v.error(n);return}V.value=!0;try{const e={...y.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await We(e);y.value=o,ee(o),v.success("设置已保存并生效")}catch(e){v.error(x(e))}finally{V.value=!1}}const z=c(null),R=c("sidecar"),le=c(""),I=c(""),k=c(!1),U=c(""),h=c(!0),K=c(!1);let L;async function H(){if(!P()){h.value=!1,U.value="引擎连接模式仅在 MiniApp 中可用";return}k.value=!0,U.value="";try{const[n,e]=await Promise.all([F("/_miniapp/runtime-status"),F("/_miniapp/connection-config")]);z.value=n,R.value=e.mode==="remote"?"remote":"sidecar",le.value=e.binaryPath??"",I.value=e.ffmpegPath??"",h.value=!0}catch(n){z.value=null,h.value=!1,U.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{k.value=!1}}async function re(){if(P()){k.value=!0;try{await oe("/_miniapp/connection-config",{mode:R.value,ffmpegPath:I.value}),v.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await H()}catch(n){v.error(x(n))}finally{k.value=!1}}}async function ue(){if(P()){k.value=!0;try{await Ee("/_miniapp/engine/restart"),v.success("引擎重启指令已发送"),await H()}catch(n){v.error(x(n))}finally{k.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function J(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,M=0;for(;o>=1024&&M0?J(n)+"/s":"—"}async function A(){if(P())try{f.value=await Fe()}catch{f.value=null}}async function ne(){try{const n=await Te();!n.ok&&n.error&&v.error(n.error),await A()}catch(n){v.error(x(n))}}async function ve(){try{await Ve(),await A()}catch(n){v.error(x(n))}}async function fe(){_.warning({title:"重新下载录播引擎",content:"这会重新下载并替换当前引擎,下载和校验完成前不会移除现有引擎。继续吗?",positiveText:"重新下载",negativeText:"取消",onPositiveClick:async()=>{try{const n=await qe();!n.ok&&n.error&&v.error(n.error),await A()}catch(n){v.error(x(n))}}})}const w=c(""),W=c(!1),N=c(""),G=c(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",M=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+M+xe}async function me(){if(N.value="",!P()){w.value="",N.value="诊断日志仅在 MiniApp 中可用";return}W.value=!0;try{const[n,e]=await Promise.all([F("/_miniapp/diagnostics"),F("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?w.value=o.map(ce).join(` -`):e?.lastError?w.value="最近错误:"+e.lastError:w.value="暂无最近错误记录"}catch(n){N.value=x(n),w.value=""}finally{W.value=!1}}function _e(){if(!w.value)return;const n=new Blob([w.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function ye(){const n=w.value.trim();if(!n)return;const e=window.miniapp;if(!e?.host?.composer?.append){v.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: -`+n),v.success("已送入输入框,请确认后发送")}catch(o){v.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function we(n){Ue(n),v.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const O=c("default");function ke(){O.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{O.value=await Notification.requestPermission()}catch{}}return Ce(()=>{j(),H(),A(),me(),ke(),L=window.setInterval(()=>{A()},1500)}),Se(()=>{L!==void 0&&(window.clearInterval(L),L=void 0)}),(n,e)=>(u(),d("div",el,[l("div",ll,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",sl,[i(s(m),{disabled:E.value||V.value,onClick:j},{default:r(()=>[...e[19]||(e[19]=[a("重新读取",-1)])]),_:1},8,["disabled"]),i(s(m),{type:"primary",loading:V.value,disabled:E.value||!y.value,onClick:ae},{icon:r(()=>[i(s(g),null,{default:r(()=>[i(s(ie))]),_:1})]),default:r(()=>[e[20]||(e[20]=a(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),E.value?(u(),d("div",nl,[i(s(Pe),{size:"large"})])):q.value?(u(),d("div",tl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",il,p(q.value),1),i(s(m),{size:"small",onClick:j},{default:r(()=>[...e[22]||(e[22]=[a("重试",-1)])]),_:1})])):(u(),d("div",ol,[l("section",al,[l("header",rl,[l("span",ul,[i(s(g),{size:17},{default:r(()=>[i(s(Z))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",dl,[l("label",pl,[e[25]||(e[25]=l("span",null,[a("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(C),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",vl,[e[26]||(e[26]=l("span",null,[a("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(C),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",fl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s($),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:r(()=>[...e[28]||(e[28]=[a("GB",-1)])]),_:1},8,["value"])]),l("label",cl,[e[30]||(e[30]=l("span",null,[a("分段时间 "),l("em",null,"segment_time")],-1)),i(s(C),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",ml,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s($),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:r(()=>[...e[32]||(e[32]=[a("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",_l,[e[36]||(e[36]=l("span",null,[a("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s($),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:r(()=>[...e[35]||(e[35]=[a("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",yl,[l("header",gl,[l("span",wl,[i(s(g),{size:17},{default:r(()=>[i(s(X))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",kl,[l("label",bl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s($),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:r(()=>[...e[39]||(e[39]=[a("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",xl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(D),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Ye)},null,8,["value","options"])]),l("label",hl,[e[43]||(e[43]=l("span",null,[a("FFmpeg 路径(录制引擎) "),l("em",null,"ffmpeg_path")],-1)),i(s(C),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",Cl,[l("header",Sl,[l("span",zl,[i(s(g),{size:17},{default:r(()=>[i(s(X))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Ml,[l("label",Bl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(D),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(Qe)},null,8,["value","options"])]),l("label",El,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(D),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Xe)},null,8,["value","options"])]),l("div",Ul,[e[47]||(e[47]=l("span",null,[a("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Q),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Al,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Q),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Nl,[e[51]||(e[51]=l("span",null,[a("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Q),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Ol,[l("header",Dl,[l("span",Pl,[i(s(g),{size:17},{default:r(()=>[i(s($e))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Fl,[l("label",Tl,[e[54]||(e[54]=l("span",null,[a("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(C),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",Vl,[l("header",ql,[l("span",Rl,[i(s(g),{size:17},{default:r(()=>[i(s(Z))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Il,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Ll,p(y.value?.pool1_size??"—")+" / "+p(y.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Hl,p(y.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",Gl,p(y.value?.retention_hours?y.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",$l,p(y.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",jl,[l("header",Kl,[l("span",Jl,[i(s(g),{size:17},{default:r(()=>[i(s(X))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Wl,[l("div",Yl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,p(de(s(f)?.state)),1)]),s(f)?.state==="ready"?(u(),d("div",Ql,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Xl,p(s(f).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Zl,p(s(f).path||"—"),1)])])):s(f)?.error?(u(),d("div",es,p(s(f).error),1)):b("",!0),s(te)?b("",!0):(u(),d("div",ls,"引擎下载尚未配置")),s(f)?.state==="downloading"||s(f)?.state==="verifying"?(u(),d("div",ss,[l("div",ns,[l("div",{class:"progress-fill",style:ze({width:se()+"%"})},null,4)]),l("span",ts,p(se())+"%",1),l("span",is,p(J(s(f)?.bytesDownloaded||0))+" / "+p(J(s(f)?.bytesTotal||0)),1),l("span",os,p(pe()),1)])):b("",!0),l("div",as,[s(te)?s(f)?.state==="missing"?(u(),B(s(m),{key:1,type:"primary",onClick:ne},{default:r(()=>[...e[66]||(e[66]=[a("下载引擎",-1)])]),_:1})):s(f)?.state==="failed"?(u(),B(s(m),{key:2,type:"primary",onClick:ne},{default:r(()=>[...e[67]||(e[67]=[a("重新下载",-1)])]),_:1})):s(f)?.state==="ready"?(u(),B(s(m),{key:3,onClick:fe},{default:r(()=>[...e[68]||(e[68]=[a("重新下载",-1)])]),_:1})):s(f)?.state==="downloading"||s(f)?.state==="verifying"?(u(),B(s(m),{key:4,onClick:ve},{default:r(()=>[...e[69]||(e[69]=[a("取消",-1)])]),_:1})):b("",!0):(u(),B(s(m),{key:0,type:"primary",disabled:""},{default:r(()=>[...e[65]||(e[65]=[a("下载引擎",-1)])]),_:1})),i(s(m),{quaternary:"",onClick:e[15]||(e[15]=o=>K.value=!K.value)},{default:r(()=>[...e[70]||(e[70]=[a("手动安装说明",-1)])]),_:1})]),K.value?(u(),d("ol",rs,[...e[71]||(e[71]=[l("li",null,[a("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),a(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):b("",!0)])]),l("section",us,[l("header",ds,[l("span",ps,[i(s(g),{size:17},{default:r(()=>[i(s(Z))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",vs,[l("label",fs,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(D),{value:R.value,"onUpdate:value":e[16]||(e[16]=o=>R.value=o),options:s(Ze),disabled:!h.value},null,8,["value","options","disabled"])]),l("label",cs,[e[74]||(e[74]=l("span",null,"biliup-cli 路径(只读)",-1)),i(s(C),{value:le.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!h.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[a(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),a(" 的 "),l("code",null,"binaryPath"),a(" 字段。 ")],-1))]),l("label",ms,[e[76]||(e[76]=l("span",null,"FFmpeg 路径(Sidecar)",-1)),i(s(C),{value:I.value,"onUpdate:value":e[17]||(e[17]=o=>I.value=o),placeholder:"留空使用系统 PATH",disabled:!h.value},null,8,["value","disabled"])])]),l("div",_s,[i(s(m),{loading:k.value,onClick:H},{icon:r(()=>[i(s(g),null,{default:r(()=>[i(s(Ie))]),_:1})]),default:r(()=>[e[77]||(e[77]=a(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(m),{type:"primary",loading:k.value,disabled:!h.value,onClick:re},{icon:r(()=>[i(s(g),null,{default:r(()=>[i(s(ie))]),_:1})]),default:r(()=>[e[78]||(e[78]=a(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(m),{loading:k.value,disabled:!h.value,onClick:ue},{default:r(()=>[...e[79]||(e[79]=[a(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(m),{quaternary:"",onClick:e[18]||(e[18]=o=>G.value=!G.value)},{icon:r(()=>[i(s(g),null,{default:r(()=>[i(s(De))]),_:1})]),default:r(()=>[a(" "+p(G.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),U.value?(u(),d("div",ys,p(U.value),1)):b("",!0),z.value?(u(),d("div",gs,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ws,p(z.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,p(z.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",ks,p(z.value.pid??"—"),1)])])):b("",!0),G.value?(u(),d("div",bs,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),N.value?(u(),d("div",xs,p(N.value),1)):b("",!0),W.value?(u(),d("div",hs,"读取中…")):(u(),d("pre",Cs,p(w.value||"暂无诊断信息"),1)),l("div",Ss,[i(s(m),{size:"small",disabled:!w.value,onClick:_e},{default:r(()=>[...e[83]||(e[83]=[a("本地导出",-1)])]),_:1},8,["disabled"]),i(s(m),{size:"small",disabled:!w.value,onClick:ye},{default:r(()=>[...e[84]||(e[84]=[a("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):b("",!0),l("p",zs,[e[87]||(e[87]=a(" 通知权限: ",-1)),O.value==="granted"?(u(),d(Y,{key:0},[a("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):O.value==="denied"?(u(),d(Y,{key:1},[a("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):O.value==="unsupported"?(u(),d(Y,{key:2},[a("当前环境不支持系统通知。")],64)):(u(),B(s(m),{key:3,size:"tiny",quaternary:"",onClick:be},{default:r(()=>[...e[86]||(e[86]=[a("开启系统通知",-1)])]),_:1}))])]),l("section",Ms,[l("header",Bs,[l("span",Es,[i(s(g),{size:17},{default:r(()=>[i(s(He))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",Us,[l("label",As,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(D),{value:s(Me),options:ge,"onUpdate:value":we},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),Js=Ae(Ns,[["__scopeId","data-v-55cf96a7"]]);export{Js as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-BYZ7Hiig.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-BYZ7Hiig.css new file mode 100644 index 00000000..3de7f32a --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-BYZ7Hiig.css @@ -0,0 +1 @@ +.loading[data-v-82f82059]{display:grid;place-items:center;padding:90px 0}.sections[data-v-82f82059]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-82f82059]{padding:20px 22px 22px}.sec-head[data-v-82f82059]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-82f82059]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-82f82059]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-82f82059]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-82f82059]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-82f82059]{color:var(--muted)}.sec-head h2[data-v-82f82059]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-82f82059]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-82f82059]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-82f82059]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-82f82059]{grid-column:1 / -1}.field>span[data-v-82f82059]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-82f82059]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-82f82059]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-82f82059]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-82f82059]{grid-column:1 / -1}.readonly[data-v-82f82059]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-82f82059]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-82f82059]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-82f82059]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-82f82059]{font-size:13px;font-weight:600}.error-panel[data-v-82f82059]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-82f82059]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-82f82059]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-82f82059]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-82f82059]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-82f82059]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-82f82059]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-82f82059]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-82f82059]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}.engine-install[data-v-82f82059]{display:flex;flex-direction:column;gap:10px}.engine-status-row[data-v-82f82059]{display:flex;align-items:center;gap:10px;font-size:12.5px}.engine-status-row span[data-v-82f82059]{color:var(--muted)}.engine-status-row b[data-v-82f82059]{color:var(--text, #e6f1f5)}.engine-detail[data-v-82f82059]{display:grid;grid-template-columns:1fr 2fr;gap:8px 12px;font-size:11.5px}.engine-detail>div[data-v-82f82059]{display:flex;flex-direction:column;gap:4px}.engine-detail span[data-v-82f82059]{color:var(--muted)}.engine-detail b[data-v-82f82059]{overflow-wrap:anywhere}.engine-progress[data-v-82f82059]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--muted)}.progress-track[data-v-82f82059]{flex:1 1 180px;height:6px;border-radius:99px;overflow:hidden;background:#94c5d61f}.progress-fill[data-v-82f82059]{height:100%;background:var(--accent, #2dd4bf);transition:width .2s ease}.manual-list[data-v-82f82059]{margin:4px 0 0;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}@media(max-width:640px){.fields[data-v-82f82059],.readonly[data-v-82f82059],.engine-status[data-v-82f82059]{grid-template-columns:1fr}.section[data-v-82f82059]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CaYIvJoC.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CaYIvJoC.js new file mode 100644 index 00000000..2d25b0c3 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CaYIvJoC.js @@ -0,0 +1,3 @@ +import{I as C}from"./Input-B9LQLjz_.js";import{d as V,o as u,c as d,y as he,a as l,ao as T,aV as oe,b as Ce,A as Se,e as i,w as a,u as s,B as m,t as p,f as r,g as w,n as ze,i as B,F as Y,bg as Me,r as c,J as Be,ap as Ee,bh as Ue}from"./index-W7SBB4Eq.js";import{S as D}from"./Select-yKeAXmxd.js";import{N as g,_ as Ae}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as Ne,S as Q}from"./Switch-CwiTSVeN.js";import{u as Oe}from"./use-message-DkYn5b6o.js";import{I as j,D as De}from"./DocumentTextOutline-DseBRj1r.js";import{S as Pe}from"./Spin-IfgPhZdn.js";import{E as te,g as Te,s as Ve,c as qe,r as Re}from"./engine-BukwEF_1.js";import{e as v}from"./engine-state-zmQVlIbS.js";import{v as Ie}from"./filename-template-DBJXvN0y.js";import{e as x,i as P}from"./runtime-bridge-DmDzFGpU.js";import{V as X}from"./VideocamOutline-Br_v12hA.js";import{R as Le}from"./RefreshOutline-CjuuDK9l.js";import"./use-compitable-D8hAoj1z.js";const Fe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=V({name:"ColorPaletteOutline",render:function(f,_){return u(),d("svg",Fe,_[0]||(_[0]=[he('',6)]))}}),$e={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},je=V({name:"KeyOutline",render:function(f,_){return u(),d("svg",$e,_[0]||(_[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=V({name:"SaveOutline",render:function(f,_){return u(),d("svg",Ge,_[0]||(_[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ke={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Z=V({name:"ServerOutline",render:function(f,_){return u(),d("svg",Ke,_[0]||(_[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Je=()=>T("/v1/configuration"),We=S=>oe("/v1/configuration",S),Ye=[{label:"外部转码工具(需本机自行安装)",value:"ffmpeg"},{label:"内置下载器(边录边传,推荐)",value:"stream-gears"},{label:"外部流下载工具(需本机自行安装)",value:"streamlink"},{label:"内置下载器(同步模式)",value:"sync-downloader"},{label:"内置下载器(落盘录制)",value:"mesio"}],Qe=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Xe=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Ze=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],el={class:"page"},ll={class:"page-head"},sl={class:"toolbar"},nl={key:0,class:"loading"},tl={key:1,class:"error-panel"},il={class:"error-msg"},ol={key:2,class:"sections"},al={class:"section panel"},rl={class:"sec-head"},ul={class:"sec-icon accent"},dl={class:"fields"},pl={class:"field wide"},vl={class:"field wide"},fl={class:"field"},cl={class:"field"},ml={class:"field"},_l={class:"field"},yl={class:"section panel"},gl={class:"sec-head"},kl={class:"sec-icon cyan"},wl={class:"fields"},bl={class:"field"},xl={class:"field"},hl={class:"field wide"},Cl={class:"section panel"},Sl={class:"sec-head"},zl={class:"sec-icon live"},Ml={class:"fields"},Bl={class:"field"},El={class:"field"},Ul={class:"field switch-field"},Al={class:"field switch-field"},Nl={class:"field switch-field"},Ol={class:"section panel"},Dl={class:"sec-head"},Pl={class:"sec-icon live"},Tl={class:"fields"},Vl={class:"field wide"},ql={class:"section panel"},Rl={class:"sec-head"},Il={class:"sec-icon muted"},Ll={class:"readonly"},Fl={class:"mono"},Hl={class:"mono"},$l={class:"mono"},jl={class:"mono"},Gl={class:"section panel"},Kl={class:"sec-head"},Jl={class:"sec-icon cyan"},Wl={class:"engine-install"},Yl={class:"engine-status-row"},Ql={key:0,class:"readonly engine-detail"},Xl={class:"mono"},Zl={class:"mono"},es={key:1,class:"inline-hint"},ls={key:2,class:"inline-hint"},ss={key:3,class:"inline-hint"},ns={key:4,class:"engine-progress"},ts={class:"progress-track"},is={class:"mono"},os={class:"mono"},as={class:"mono"},rs={class:"support-actions"},us={key:5,class:"manual-list"},ds={class:"section panel"},ps={class:"sec-head"},vs={class:"sec-icon accent"},fs={class:"fields"},cs={class:"field wide"},ms={class:"field wide"},_s={class:"field wide"},ys={class:"support-actions"},gs={key:0,class:"inline-hint"},ks={key:1,class:"readonly engine-status"},ws={class:"mono"},bs={class:"mono"},xs={key:2,class:"diagnostic-block"},hs={key:0,class:"inline-error"},Cs={key:1,class:"inline-hint"},Ss={key:2,class:"diag-preview"},zs={class:"support-actions"},Ms={class:"support-note"},Bs={class:"section panel"},Es={class:"sec-head"},Us={class:"sec-icon cyan"},As={class:"fields"},Ns={class:"field wide"},Os=V({__name:"SettingsView",setup(S){const f=Oe(),_=Ne(),y=c(null),E=c(!0),q=c(!1),R=c(""),t=Be({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function ee(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function G(){E.value=!0,R.value="";try{y.value=await Je(),ee(y.value)}catch(n){R.value=n instanceof Error?n.message:"读取配置失败"}finally{E.value=!1}}async function ae(){if(!y.value)return;const n=Ie(t.filename_prefix);if(n){f.error(n);return}q.value=!0;try{const e={...y.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await We(e);y.value=o,ee(o),f.success("设置已保存并生效")}catch(e){f.error(x(e))}finally{q.value=!1}}const z=c(null),I=c("sidecar"),le=c(""),L=c(""),b=c(!1),U=c(""),h=c(!0),K=c(!1);let F;async function H(){if(!P()){h.value=!1,U.value="引擎连接模式仅在 MiniApp 中可用";return}b.value=!0,U.value="";try{const[n,e]=await Promise.all([T("/_miniapp/runtime-status"),T("/_miniapp/connection-config")]);z.value=n,I.value=e.mode==="remote"?"remote":"sidecar",le.value=e.binaryPath??"",L.value=e.ffmpegPath??"",h.value=!0}catch(n){z.value=null,h.value=!1,U.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{b.value=!1}}async function re(){if(P()){b.value=!0;try{await oe("/_miniapp/connection-config",{mode:I.value,ffmpegPath:L.value}),f.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await H()}catch(n){f.error(x(n))}finally{b.value=!1}}}async function ue(){if(P()){b.value=!0;try{await Ee("/_miniapp/engine/restart"),f.success("引擎重启指令已发送"),await H()}catch(n){f.error(x(n))}finally{b.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function J(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,M=0;for(;o>=1024&&M0?J(n)+"/s":"—"}async function A(){if(P())try{v.value=await Te()}catch{v.value=null}}async function ne(){try{const n=await Ve();!n.ok&&n.error&&f.error(n.error),await A()}catch(n){f.error(x(n))}}async function ve(){try{await qe(),await A()}catch(n){f.error(x(n))}}async function fe(){_.warning({title:"重新下载录播引擎",content:"这会重新下载并替换当前引擎,下载和校验完成前不会移除现有引擎。继续吗?",positiveText:"重新下载",negativeText:"取消",onPositiveClick:async()=>{try{const n=await Re();!n.ok&&n.error&&f.error(n.error),await A()}catch(n){f.error(x(n))}}})}const k=c(""),W=c(!1),N=c(""),$=c(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",M=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+M+xe}async function me(){if(N.value="",!P()){k.value="",N.value="诊断日志仅在 MiniApp 中可用";return}W.value=!0;try{const[n,e]=await Promise.all([T("/_miniapp/diagnostics"),T("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?k.value=o.map(ce).join(` +`):e?.lastError?k.value="最近错误:"+e.lastError:k.value="暂无最近错误记录"}catch(n){N.value=x(n),k.value=""}finally{W.value=!1}}function _e(){if(!k.value)return;const n=new Blob([k.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function ye(){const n=k.value.trim();if(!n)return;const e=window.miniapp;if(!e?.host?.composer?.append){f.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: +`+n),f.success("已送入输入框,请确认后发送")}catch(o){f.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function ke(n){Ue(n),f.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const O=c("default");function we(){O.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{O.value=await Notification.requestPermission()}catch{}}return Ce(()=>{G(),H(),A(),me(),we(),F=window.setInterval(()=>{A()},1500)}),Se(()=>{F!==void 0&&(window.clearInterval(F),F=void 0)}),(n,e)=>(u(),d("div",el,[l("div",ll,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",sl,[i(s(m),{disabled:E.value||q.value,onClick:G},{default:a(()=>[...e[19]||(e[19]=[r("重新读取",-1)])]),_:1},8,["disabled"]),i(s(m),{type:"primary",loading:q.value,disabled:E.value||!y.value,onClick:ae},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(ie))]),_:1})]),default:a(()=>[e[20]||(e[20]=r(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),E.value?(u(),d("div",nl,[i(s(Pe),{size:"large"})])):R.value?(u(),d("div",tl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",il,p(R.value),1),i(s(m),{size:"small",onClick:G},{default:a(()=>[...e[22]||(e[22]=[r("重试",-1)])]),_:1})])):(u(),d("div",ol,[l("section",al,[l("header",rl,[l("span",ul,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",dl,[l("label",pl,[e[25]||(e[25]=l("span",null,[r("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(C),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",vl,[e[26]||(e[26]=l("span",null,[r("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(C),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",fl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s(j),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:a(()=>[...e[28]||(e[28]=[r("GB",-1)])]),_:1},8,["value"])]),l("label",cl,[e[30]||(e[30]=l("span",null,[r("分段时间 "),l("em",null,"segment_time")],-1)),i(s(C),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",ml,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s(j),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:a(()=>[...e[32]||(e[32]=[r("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",_l,[e[36]||(e[36]=l("span",null,[r("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s(j),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:a(()=>[...e[35]||(e[35]=[r("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",yl,[l("header",gl,[l("span",kl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",wl,[l("label",bl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s(j),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:a(()=>[...e[39]||(e[39]=[r("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",xl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(D),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Ye)},null,8,["value","options"])]),l("label",hl,[e[43]||(e[43]=l("span",null,"外部转码工具路径(录制引擎)",-1)),i(s(C),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",Cl,[l("header",Sl,[l("span",zl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Ml,[l("label",Bl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(D),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(Qe)},null,8,["value","options"])]),l("label",El,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(D),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Xe)},null,8,["value","options"])]),l("div",Ul,[e[47]||(e[47]=l("span",null,[r("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Q),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Al,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Q),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Nl,[e[51]||(e[51]=l("span",null,[r("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Q),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Ol,[l("header",Dl,[l("span",Pl,[i(s(g),{size:17},{default:a(()=>[i(s(je))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Tl,[l("label",Vl,[e[54]||(e[54]=l("span",null,[r("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(C),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",ql,[l("header",Rl,[l("span",Il,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Ll,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Fl,p(y.value?.pool1_size??"—")+" / "+p(y.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Hl,p(y.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",$l,p(y.value?.retention_hours?y.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",jl,p(y.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Gl,[l("header",Kl,[l("span",Jl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Wl,[l("div",Yl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,p(de(s(v)?.state)),1)]),s(v)?.state==="ready"?(u(),d("div",Ql,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Xl,p(s(v).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Zl,p(s(v).path||"—"),1)])])):w("",!0),s(v)?.error?(u(),d("div",es,p(s(v).error),1)):w("",!0),s(v)?.notice?(u(),d("div",ls,p(s(v).notice),1)):w("",!0),s(te)?w("",!0):(u(),d("div",ss,"引擎下载尚未配置")),s(v)?.state==="downloading"||s(v)?.state==="verifying"?(u(),d("div",ns,[l("div",ts,[l("div",{class:"progress-fill",style:ze({width:se()+"%"})},null,4)]),l("span",is,p(se())+"%",1),l("span",os,p(J(s(v)?.bytesDownloaded||0))+" / "+p(J(s(v)?.bytesTotal||0)),1),l("span",as,p(pe()),1)])):w("",!0),l("div",rs,[s(te)?s(v)?.state==="missing"?(u(),B(s(m),{key:1,type:"primary",onClick:ne},{default:a(()=>[...e[66]||(e[66]=[r("下载引擎",-1)])]),_:1})):s(v)?.state==="failed"?(u(),B(s(m),{key:2,type:"primary",onClick:ne},{default:a(()=>[...e[67]||(e[67]=[r("重新下载",-1)])]),_:1})):s(v)?.state==="ready"?(u(),B(s(m),{key:3,onClick:fe},{default:a(()=>[...e[68]||(e[68]=[r("重新下载",-1)])]),_:1})):s(v)?.state==="downloading"||s(v)?.state==="verifying"?(u(),B(s(m),{key:4,onClick:ve},{default:a(()=>[...e[69]||(e[69]=[r("取消",-1)])]),_:1})):w("",!0):(u(),B(s(m),{key:0,type:"primary",disabled:""},{default:a(()=>[...e[65]||(e[65]=[r("下载引擎",-1)])]),_:1})),i(s(m),{quaternary:"",onClick:e[15]||(e[15]=o=>K.value=!K.value)},{default:a(()=>[...e[70]||(e[70]=[r("手动安装说明",-1)])]),_:1})]),K.value?(u(),d("ol",us,[...e[71]||(e[71]=[l("li",null,[r("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),r(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):w("",!0)])]),l("section",ds,[l("header",ps,[l("span",vs,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",fs,[l("label",cs,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(D),{value:I.value,"onUpdate:value":e[16]||(e[16]=o=>I.value=o),options:s(Ze),disabled:!h.value},null,8,["value","options","disabled"])]),l("label",ms,[e[74]||(e[74]=l("span",null,"biliup-cli 路径(只读)",-1)),i(s(C),{value:le.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!h.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[r(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),r(" 的 "),l("code",null,"binaryPath"),r(" 字段。 ")],-1))]),l("label",_s,[e[76]||(e[76]=l("span",null,"外部转码工具路径(Sidecar)",-1)),i(s(C),{value:L.value,"onUpdate:value":e[17]||(e[17]=o=>L.value=o),placeholder:"留空使用系统 PATH",disabled:!h.value},null,8,["value","disabled"])])]),l("div",ys,[i(s(m),{loading:b.value,onClick:H},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(Le))]),_:1})]),default:a(()=>[e[77]||(e[77]=r(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(m),{type:"primary",loading:b.value,disabled:!h.value,onClick:re},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(ie))]),_:1})]),default:a(()=>[e[78]||(e[78]=r(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(m),{loading:b.value,disabled:!h.value,onClick:ue},{default:a(()=>[...e[79]||(e[79]=[r(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(m),{quaternary:"",onClick:e[18]||(e[18]=o=>$.value=!$.value)},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(De))]),_:1})]),default:a(()=>[r(" "+p($.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),U.value?(u(),d("div",gs,p(U.value),1)):w("",!0),z.value?(u(),d("div",ks,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ws,p(z.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,p(z.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",bs,p(z.value.pid??"—"),1)])])):w("",!0),$.value?(u(),d("div",xs,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),N.value?(u(),d("div",hs,p(N.value),1)):w("",!0),W.value?(u(),d("div",Cs,"读取中…")):(u(),d("pre",Ss,p(k.value||"暂无诊断信息"),1)),l("div",zs,[i(s(m),{size:"small",disabled:!k.value,onClick:_e},{default:a(()=>[...e[83]||(e[83]=[r("本地导出",-1)])]),_:1},8,["disabled"]),i(s(m),{size:"small",disabled:!k.value,onClick:ye},{default:a(()=>[...e[84]||(e[84]=[r("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):w("",!0),l("p",Ms,[e[87]||(e[87]=r(" 通知权限: ",-1)),O.value==="granted"?(u(),d(Y,{key:0},[r("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):O.value==="denied"?(u(),d(Y,{key:1},[r("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):O.value==="unsupported"?(u(),d(Y,{key:2},[r("当前环境不支持系统通知。")],64)):(u(),B(s(m),{key:3,size:"tiny",quaternary:"",onClick:be},{default:a(()=>[...e[86]||(e[86]=[r("开启系统通知",-1)])]),_:1}))])]),l("section",Bs,[l("header",Es,[l("span",Us,[i(s(g),{size:17},{default:a(()=>[i(s(He))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",As,[l("label",Ns,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(D),{value:s(Me),options:ge,"onUpdate:value":ke},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),Ws=Ae(Os,[["__scopeId","data-v-82f82059"]]);export{Ws as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CiZee7qJ.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CiZee7qJ.css deleted file mode 100644 index 84b72a8f..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CiZee7qJ.css +++ /dev/null @@ -1 +0,0 @@ -.loading[data-v-55cf96a7]{display:grid;place-items:center;padding:90px 0}.sections[data-v-55cf96a7]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-55cf96a7]{padding:20px 22px 22px}.sec-head[data-v-55cf96a7]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-55cf96a7]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-55cf96a7]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-55cf96a7]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-55cf96a7]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-55cf96a7]{color:var(--muted)}.sec-head h2[data-v-55cf96a7]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-55cf96a7]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-55cf96a7]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-55cf96a7]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-55cf96a7]{grid-column:1 / -1}.field>span[data-v-55cf96a7]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-55cf96a7]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-55cf96a7]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-55cf96a7]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-55cf96a7]{grid-column:1 / -1}.readonly[data-v-55cf96a7]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-55cf96a7]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-55cf96a7]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-55cf96a7]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-55cf96a7]{font-size:13px;font-weight:600}.error-panel[data-v-55cf96a7]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-55cf96a7]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-55cf96a7]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-55cf96a7]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-55cf96a7]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-55cf96a7]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-55cf96a7]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-55cf96a7]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-55cf96a7]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}.engine-install[data-v-55cf96a7]{display:flex;flex-direction:column;gap:10px}.engine-status-row[data-v-55cf96a7]{display:flex;align-items:center;gap:10px;font-size:12.5px}.engine-status-row span[data-v-55cf96a7]{color:var(--muted)}.engine-status-row b[data-v-55cf96a7]{color:var(--text, #e6f1f5)}.engine-detail[data-v-55cf96a7]{display:grid;grid-template-columns:1fr 2fr;gap:8px 12px;font-size:11.5px}.engine-detail>div[data-v-55cf96a7]{display:flex;flex-direction:column;gap:4px}.engine-detail span[data-v-55cf96a7]{color:var(--muted)}.engine-detail b[data-v-55cf96a7]{overflow-wrap:anywhere}.engine-progress[data-v-55cf96a7]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--muted)}.progress-track[data-v-55cf96a7]{flex:1 1 180px;height:6px;border-radius:99px;overflow:hidden;background:#94c5d61f}.progress-fill[data-v-55cf96a7]{height:100%;background:var(--accent, #2dd4bf);transition:width .2s ease}.manual-list[data-v-55cf96a7]{margin:4px 0 0;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}@media(max-width:640px){.fields[data-v-55cf96a7],.readonly[data-v-55cf96a7],.engine-status[data-v-55cf96a7]{grid-template-columns:1fr}.section[data-v-55cf96a7]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-ByV6k06l.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Bizgy-un.js similarity index 97% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-ByV6k06l.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Bizgy-un.js index 9db69146..0104afee 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-ByV6k06l.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Bizgy-un.js @@ -1,4 +1,4 @@ -import{T as ee,S as pe}from"./Select-CtC43ppV.js";import{I as te}from"./Input-1zXREyVM.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b4 as ke,b5 as _e,b6 as xe,b7 as $e,b8 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,b9 as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-IeQIGfOC.js";import{C as ve}from"./CheckboxGroup-DIEr6wY4.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as Je}from"./use-message-DtvhZdQK.js";import{S as Ke}from"./Spin-D2w1FlaT.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-B3mrN2nS.js";import{S as et}from"./SearchOutline-atP4ikMv.js";import{V as tt}from"./VideocamOutline-Cf83Ptp8.js";import{D as me}from"./DownloadOutline-E2iASfAS.js";import{R as rt}from"./RefreshOutline-D9KhQzcL.js";import"./use-compitable-D5WZISuP.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} +import{T as ee,S as pe}from"./Select-yKeAXmxd.js";import{I as te}from"./Input-B9LQLjz_.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b4 as ke,b5 as _e,b6 as xe,b7 as $e,b8 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,b9 as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-W7SBB4Eq.js";import{C as ve}from"./CheckboxGroup-D0_230aG.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as Je}from"./use-message-DkYn5b6o.js";import{S as Ke}from"./Spin-IfgPhZdn.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-SNfViS-K.js";import{S as et}from"./SearchOutline-DiOWHHh0.js";import{V as tt}from"./VideocamOutline-Br_v12hA.js";import{D as me}from"./DownloadOutline-B8-YKzxV.js";import{R as rt}from"./RefreshOutline-CjuuDK9l.js";import"./use-compitable-D8hAoj1z.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} a ${h},${h} 0 1 1 ${f},-100 a ${h},${h} 0 1 1 0,${O}`,M=Math.PI*2*h;return{pathString:D,pathStyle:{stroke:u==="rail"?y:typeof t.fillColor=="object"?`url(#${k.value})`:y,strokeDasharray:`${Math.min(n,100)/100*(M-z)}px ${C*8}px`,strokeDashoffset:`-${z/2}px`,transformOrigin:p?"center":void 0,transform:p?`rotate(${p}deg)`:void 0}}}const x=()=>{const n=typeof t.fillColor=="object",p=n?t.fillColor.stops[0]:"",y=n?t.fillColor.stops[1]:"";return n&&(o(),s("defs",null,[r("linearGradient",{id:k.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[r("stop",{offset:"0%","stop-color":p},null,8,it),r("stop",{offset:"100%","stop-color":y},null,8,at)],8,ot)]))};return()=>{const{fillColor:n,railColor:p,strokeWidth:y,offsetDegree:u,status:z,percentage:C,showIndicator:q,indicatorTextColor:h,unit:B,gapOffsetDegree:g,clsPrefix:f}=t,{pathString:O,pathStyle:V}=I(100,0,p,"rail"),{pathString:D,pathStyle:M}=I(C,u,n,"fill"),A=100+y;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${f}-progress-graph-circle`),style:j({transform:g?`rotate(${g}deg)`:void 0})},[(o(),s("svg",{viewBox:`0 0 ${A} ${A}`},[N(()=>x()),r("g",null,[r("path",{class:w(`${f}-progress-graph-circle-rail`),d:O,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(V)},null,14,lt)]),r("g",null,[r("path",{class:w([`${f}-progress-graph-circle-fill`,C===0&&`${f}-progress-graph-circle-fill--empty`]),d:D,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(M)},null,14,nt)])],8,st))],6)],2),q?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),role:"none"},[N(()=>c.default())],2)):(o(),s(E,{key:1},[z!=="default"?(o(),s("div",{key:0,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>ct[z]},1032,["clsPrefix"]))],2)):(o(),s("div",{key:1,class:w(`${f}-progress-text`),style:j({color:h}),role:"none"},[r("span",{class:w(`${f}-progress-text__percentage`)},[N(()=>C)],2),r("span",{class:w(`${f}-progress-text__unit`)},[N(()=>B)],2)],6))],64))])):N(()=>null)],2)}}});const dt={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ft=H({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(t,{slots:c}){const k=W(()=>K(t.height)),I=W(()=>typeof t.fillColor=="object"?`linear-gradient(to right, ${t.fillColor?.stops[0]} , ${t.fillColor?.stops[1]})`:t.fillColor),x=W(()=>t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):""),n=W(()=>t.fillBorderRadius!==void 0?K(t.fillBorderRadius):t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:p,railColor:y,railStyle:u,percentage:z,unit:C,indicatorTextColor:q,status:h,showIndicator:B,processing:g,clsPrefix:f}=t;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w([`${f}-progress-graph-line`,{[`${f}-progress-graph-line--indicator-${p}`]:!0}])},[r("div",{class:w(`${f}-progress-graph-line-rail`),style:j([{backgroundColor:y,height:k.value,borderRadius:x.value},u])},[r("div",{class:w([`${f}-progress-graph-line-fill`,g&&`${f}-progress-graph-line-fill--processing`]),style:j({maxWidth:`${t.percentage}%`,background:I.value,height:k.value,lineHeight:k.value,borderRadius:n.value})},[p==="inside"?(o(),s("div",{key:0,class:w(`${f}-progress-graph-line-indicator`),style:j({color:q})},[c.default?(o(),s(E,{key:0},[N(()=>c.default())],64)):(o(),s(E,{key:1},[N(()=>`${z}${C}`)],64))],6)):N(()=>null)],6)],6)],2)],2),B&&p==="outside"?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),style:j({color:q}),role:"none"},[N(()=>c.default())],6)):(o(),s(E,{key:1},[h==="default"?(o(),s("div",{key:0,role:"none",class:w(`${f}-progress-icon ${f}-progress-icon--as-text`),style:j({color:q})},[N(()=>z),N(()=>C)],6)):(o(),s("div",{key:1,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>dt[h]},1032,["clsPrefix"]))],2))],64))])):N(()=>null)],2)}}});const pt=["id"],gt=["stop-color"],vt=["stop-color"],ht=["d","stroke-width"],yt=["d","stroke-width"],mt=["viewBox"];function be(t,c,k=100){return`m ${k/2} ${k/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var bt=H({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(t,{slots:c}){const k=W(()=>t.percentage.map((x,n)=>`${Math.PI*x/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*n)-t.circleGap*n)*2}, ${t.viewBoxWidth*8}`)),I=(x,n)=>{const p=t.fillColor[n],y=typeof p=="object"?p.stops[0]:"",u=typeof p=="object"?p.stops[1]:"";return typeof t.fillColor[n]=="object"&&(o(),s("linearGradient",{id:`gradient-${n}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},[r("stop",{offset:"0%","stop-color":y},null,8,gt),r("stop",{offset:"100%","stop-color":u},null,8,vt)],8,pt))};return()=>{const{viewBoxWidth:x,strokeWidth:n,circleGap:p,showIndicator:y,fillColor:u,railColor:z,railStyle:C,percentage:q,clsPrefix:h}=t;return o(),s("div",{class:w(`${h}-progress-content`),role:"none"},[r("div",{class:w(`${h}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${h}-progress-graph-circle`)},[(o(),s("svg",{viewBox:`0 0 ${x} ${x}`},[r("defs",null,[N(()=>q.map((B,g)=>I(B,g)))]),N(()=>q.map((B,g)=>(o(),s("g",{key:g},[r("path",{class:w(`${h}-progress-graph-circle-rail`),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j([{strokeDashoffset:0,stroke:z[g]},C[g]])},null,14,ht),r("path",{class:w([`${h}-progress-graph-circle-fill`,B===0&&`${h}-progress-graph-circle-fill--empty`]),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j({strokeDasharray:k.value[g],strokeDashoffset:0,stroke:typeof u[g]=="object"?`url(#gradient-${g})`:u[g]})},null,14,yt)]))))],8,mt))],2)],2),y&&c.default?(o(),s("div",{key:0},[r("div",{class:w(`${h}-progress-text`)},[N(()=>c.default())],2)])):N(()=>null)],2)}}}),wt=re([_("progress",{display:"inline-block"},[_("progress-icon",` color: var(--n-icon-color); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-D2w1FlaT.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-IfgPhZdn.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-D2w1FlaT.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-IfgPhZdn.js index d4f5bf56..c1a77f3c 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-D2w1FlaT.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-IfgPhZdn.js @@ -1,4 +1,4 @@ -import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-IeQIGfOC.js";import{a as K}from"./use-compitable-D5WZISuP.js";var L=b([b("@keyframes spin-rotate",` +import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-W7SBB4Eq.js";import{a as K}from"./use-compitable-D8hAoj1z.js";var L=b([b("@keyframes spin-rotate",` from { transform: rotate(0); } diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BS7njuEF.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B0GCV62j.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BS7njuEF.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B0GCV62j.js index 90001708..8e05b49c 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-BS7njuEF.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B0GCV62j.js @@ -1,4 +1,4 @@ -import{I as ce}from"./Input-1zXREyVM.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-IeQIGfOC.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-BhKLKalr.js";import{S as Kt,u as At}from"./Switch-CM0aqR3N.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-DtvhZdQK.js";import{S as jt}from"./Spin-D2w1FlaT.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-DLXMt06R.js";import{T as Vt,P as qt}from"./PulseOutline-CDhfZ1-d.js";import{h as Je,c as Gt,T as Pe,S as Jt}from"./Select-CtC43ppV.js";import{u as Xt}from"./use-compitable-D5WZISuP.js";import{a as je}from"./engine-state-C08MtSql.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-959wQihJ.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{F as pn,a as me,A as Xe}from"./AddOutline-BBW-Am9Z.js";import{v as vn}from"./filename-template-DBJXvN0y.js";import{C as fn}from"./CheckboxGroup-DIEr6wY4.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-Cf83Ptp8.js";import{R as Ye}from"./RefreshOutline-D9KhQzcL.js";import{S as wn}from"./SearchOutline-atP4ikMv.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Je({target:B},"dropdownOption")&&!Je({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` +import{I as ce}from"./Input-B9LQLjz_.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-W7SBB4Eq.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{S as Kt,u as At}from"./Switch-CwiTSVeN.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-DkYn5b6o.js";import{S as jt}from"./Spin-IfgPhZdn.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-5zQu_Ia9.js";import{T as Vt,P as qt}from"./PulseOutline-B6Qrxbd0.js";import{h as Je,c as Gt,T as Pe,S as Jt}from"./Select-yKeAXmxd.js";import{u as Xt}from"./use-compitable-D8hAoj1z.js";import{a as je}from"./engine-state-zmQVlIbS.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-BpUYLHe6.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{F as pn,a as me,A as Xe}from"./AddOutline-B3zs4SfZ.js";import{v as vn}from"./filename-template-DBJXvN0y.js";import{C as fn}from"./CheckboxGroup-D0_230aG.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-Br_v12hA.js";import{R as Ye}from"./RefreshOutline-CjuuDK9l.js";import{S as wn}from"./SearchOutline-DiOWHHh0.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Je({target:B},"dropdownOption")&&!Je({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` transform-origin: var(--v-transform-origin); background-color: var(--n-color); border-radius: var(--n-border-radius); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CM0aqR3N.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CwiTSVeN.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CM0aqR3N.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CwiTSVeN.js index 207ef466..a09b158d 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CM0aqR3N.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CwiTSVeN.js @@ -1,4 +1,4 @@ -import{aS as ve,W as ge,bl as we,a2 as X,a7 as a,ba as Y,a4 as A,a6 as l,a5 as Q,d as me,a8 as J,bm as E,o as u,c as m,a as p,R as r,P as n,n as q,aa as pe,bd as ye,r as H,ac as ke,j as P,ad as M,b1 as v,i as G,bn as xe,Q as Se,be as _e,bo as ze,af as g,bp as I,am as s,ae as $e}from"./index-IeQIGfOC.js";import{u as Be}from"./use-compitable-D5WZISuP.js";function Ke(){const e=ge(we,null);return e===null&&ve("use-dialog","No outer founded."),e}var Ce=X("switch",` +import{aS as ve,W as ge,bl as we,a2 as X,a7 as a,ba as Y,a4 as A,a6 as l,a5 as Q,d as me,a8 as J,bm as E,o as u,c as m,a as p,R as r,P as n,n as q,aa as pe,bd as ye,r as H,ac as ke,j as P,ad as M,b1 as v,i as G,bn as xe,Q as Se,be as _e,bo as ze,af as g,bp as I,am as s,ae as $e}from"./index-W7SBB4Eq.js";import{u as Be}from"./use-compitable-D8hAoj1z.js";function Ke(){const e=ge(we,null);return e===null&&ve("use-dialog","No outer founded."),e}var Ce=X("switch",` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Cf83Ptp8.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Br_v12hA.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Cf83Ptp8.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Br_v12hA.js index 9d1daa16..d4cc7d09 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Cf83Ptp8.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Br_v12hA.js @@ -1 +1 @@ -import{d as t,c as n,a as o,o as r}from"./index-IeQIGfOC.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; +import{d as t,c as n,a as o,o as r}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-BhKLKalr.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-B_0nS7Wj.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-BhKLKalr.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-B_0nS7Wj.js index ef96579b..daae6dd7 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-BhKLKalr.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-B_0nS7Wj.js @@ -1,4 +1,4 @@ -import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-IeQIGfOC.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` +import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-W7SBB4Eq.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` height: 1em; width: 1em; line-height: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-wF7co_0F.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-BukwEF_1.js similarity index 73% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-wF7co_0F.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-BukwEF_1.js index 1d7d47ea..049026ed 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-wF7co_0F.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-BukwEF_1.js @@ -1 +1 @@ -import{ap as n,ao as a}from"./index-IeQIGfOC.js";const o=!0,s=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),t=()=>n("/miniapp/engine/redownload"),p=()=>n("/miniapp/engine/cancel");export{o as E,p as c,s as g,t as r,i as s}; +import{ap as n,ao as a}from"./index-W7SBB4Eq.js";const o=!0,s=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),t=()=>n("/miniapp/engine/redownload"),p=()=>n("/miniapp/engine/cancel");export{o as E,p as c,s as g,t as r,i as s}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C08MtSql.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C08MtSql.js deleted file mode 100644 index b1ef9592..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-C08MtSql.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e,j as a}from"./index-IeQIGfOC.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-zmQVlIbS.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-zmQVlIbS.js new file mode 100644 index 00000000..ce56b9f1 --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-zmQVlIbS.js @@ -0,0 +1 @@ +import{r as e,j as a}from"./index-W7SBB4Eq.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-IeQIGfOC.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-W7SBB4Eq.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-IeQIGfOC.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-W7SBB4Eq.js index c9dfaaa2..1e16b71c 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-IeQIGfOC.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-W7SBB4Eq.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-BjbMAX6a.js","assets/Input-1zXREyVM.js","assets/use-compitable-D5WZISuP.js","assets/CheckboxGroup-DIEr6wY4.js","assets/_plugin-vue_export-helper-BhKLKalr.js","assets/Spin-D2w1FlaT.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-BKOOfxKt.js","assets/RefreshOutline-D9KhQzcL.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-scECmWLS.js","assets/PulseOutline-CDhfZ1-d.js","assets/use-message-DtvhZdQK.js","assets/streamers-959wQihJ.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-wF7co_0F.js","assets/engine-state-C08MtSql.js","assets/VideocamOutline-Cf83Ptp8.js","assets/FilmOutline-BiokjmgW.js","assets/GitCompareOutline-CIgdGm-f.js","assets/CloudDownloadOutline-B3mrN2nS.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-BS7njuEF.js","assets/Switch-CM0aqR3N.js","assets/EmptyState-DLXMt06R.js","assets/EmptyState-BJiq6Btv.css","assets/Select-CtC43ppV.js","assets/format-B8CnorUZ.js","assets/AddOutline-BBW-Am9Z.js","assets/filename-template-DBJXvN0y.js","assets/SearchOutline-atP4ikMv.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-DQJVOvaX.js","assets/DownloadOutline-E2iASfAS.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-I_oin3xl.js","assets/DocumentTextOutline-ejgmikUf.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-ByV6k06l.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-7xwJcQmS.js","assets/SettingsView-CiZee7qJ.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-CgZHTqn3.js","assets/Input-B9LQLjz_.js","assets/use-compitable-D8hAoj1z.js","assets/CheckboxGroup-D0_230aG.js","assets/_plugin-vue_export-helper-B_0nS7Wj.js","assets/Spin-IfgPhZdn.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-D5h30p8f.js","assets/RefreshOutline-CjuuDK9l.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-DbUrPyr3.js","assets/PulseOutline-B6Qrxbd0.js","assets/use-message-DkYn5b6o.js","assets/streamers-BpUYLHe6.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-BukwEF_1.js","assets/engine-state-zmQVlIbS.js","assets/VideocamOutline-Br_v12hA.js","assets/FilmOutline-aQuldXl1.js","assets/GitCompareOutline-CYx8moNZ.js","assets/CloudDownloadOutline-SNfViS-K.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-B0GCV62j.js","assets/Switch-CwiTSVeN.js","assets/EmptyState-5zQu_Ia9.js","assets/EmptyState-BJiq6Btv.css","assets/Select-yKeAXmxd.js","assets/format-B8CnorUZ.js","assets/AddOutline-B3zs4SfZ.js","assets/filename-template-DBJXvN0y.js","assets/SearchOutline-DiOWHHh0.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-C0q9wGjN.js","assets/DownloadOutline-B8-YKzxV.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-BkgkRPye.js","assets/DocumentTextOutline-DseBRj1r.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-Bizgy-un.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-CaYIvJoC.js","assets/SettingsView-BYZ7Hiig.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function va(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Oe={},lr=[],co=()=>{},Cd=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),qe=Object.assign,Ca=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Em=Object.prototype.hasOwnProperty,Re=(e,t)=>Em.call(e,t),ge=Array.isArray,Uo=e=>On(e)==="[object Map]",mi=e=>On(e)==="[object Set]",ss=e=>On(e)==="[object Date]",ye=e=>typeof e=="function",Ve=e=>typeof e=="string",kt=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",xd=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),yd=Object.prototype.toString,On=e=>yd.call(e),_m=e=>On(e).slice(8,-1),Sd=e=>On(e)==="[object Object]",Bi=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ki=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},$m=/-\w/g,wt=ki(e=>e.replace($m,t=>t.slice(1).toUpperCase())),Rm=/\B([A-Z])/g,Cr=ki(e=>e.replace(Rm,"-$1").toLowerCase()),Di=ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),ml=ki(e=>e?`on${Di(e)}`:""),io=(e,t)=>!Object.is(e,t),gl=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},Im=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Am=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let cs;const Li=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ge(e)){const t={};for(let o=0;oo.startsWith("/*")?"":o).split(Hm).forEach(o=>{if(o){const r=o.split(Mm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function mr(e){let t="";if(Ve(e))t=e;else if(ge(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Om=e=>Ve(e)?e:e==null?"":ge(e)||Ie(e)&&(e.toString===yd||!ye(e.toString))?Td(e)?Om(e.value):JSON.stringify(e,Ed,2):String(e),Ed=(e,t)=>Td(t)?Ed(e,t.value):Uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[bl(r,i)+" =>"]=n,o),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bl(o))}:kt(t)?bl(t):Ie(t)&&!ge(t)&&!Sd(t)?String(t):t,bl=(e,t="")=>{var o;return kt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let it;class Wm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&it&&(it.active?(this.parent=it,this.index=(it.scopes||(it.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(it===this)it=this.prevScope;else{let t=it;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(pn){let t=pn;for(pn=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;hn;){let t=hn;for(hn=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Id(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ad(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Sa(r),jm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function Wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wl(e))))return;e.flags|=2;const t=e.dep,o=We,r=Xt;We=e,Xt=!0;try{Id(e);const n=e.fn(e._value);(t.version===0||io(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{We=o,Xt=r,Ad(e),e.flags&=-3}}function Sa(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Sa(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function jm(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Xt=!0;const Md=[];function fo(){Md.push(Xt),Xt=!1}function ho(){const e=Md.pop();Xt=e===void 0?!0:e}function fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=We;We=void 0;try{t()}finally{We=o}}}let yn=0;class Vm{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!Xt||We===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==We)o=this.activeLink=new Vm(We,this),We.deps?(o.prevDep=We.depsTail,We.depsTail.nextDep=o,We.depsTail=o):We.deps=We.depsTail=o,zd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=We.depsTail,o.nextDep=void 0,We.depsTail.nextDep=o,We.depsTail=o,We.deps===o&&(We.deps=r)}return o}trigger(t){this.version++,yn++,this.notify(t)}notify(t){xa();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ya()}}}function zd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zd(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const gi=new WeakMap,ur=Symbol(""),Nl=Symbol(""),Sn=Symbol("");function ht(e,t,o){if(Xt&&We){let r=gi.get(e);r||gi.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new wa),n.map=r,n.key=o),n.track()}}function To(e,t,o,r,n,i){const l=gi.get(e);if(!l){yn++;return}const a=s=>{s&&s.trigger()};if(xa(),t==="clear")l.forEach(a);else{const s=ge(e),d=s&&Bi(o);if(s&&o==="length"){const c=Number(r);l.forEach((u,f)=>{(f==="length"||f===Sn||!kt(f)&&f>=c)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),d&&a(l.get(Sn)),t){case"add":s?d&&a(l.get("length")):(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"delete":s||(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"set":Uo(e)&&a(l.get(ur));break}}ya()}function Gm(e,t){const o=gi.get(e);return o&&o.get(t)}function _r(e){const t=_e(e);return t===e||(ht(t,"iterate",Sn),Ft(e))?t:mo(e)?qo(e)?t.map(o=>Ko(jt(o))):t.map(Ko):t.map(jt)}function Wi(e){return ht(e=_e(e),"iterate",Sn),e}function oo(e,t){return mo(e)?Ko(qo(e)?jt(t):t):jt(t)}const Um={__proto__:null,[Symbol.iterator](){return Cl(this,Symbol.iterator,e=>oo(this,e))},concat(...e){return _r(this).concat(...e.map(t=>ge(t)?_r(t):t))},entries(){return Cl(this,"entries",e=>(e[1]=oo(this,e[1]),e))},every(e,t){return yo(this,"every",e,t,void 0,arguments)},filter(e,t){return yo(this,"filter",e,t,o=>o.map(r=>oo(this,r)),arguments)},find(e,t){return yo(this,"find",e,t,o=>oo(this,o),arguments)},findIndex(e,t){return yo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yo(this,"findLast",e,t,o=>oo(this,o),arguments)},findLastIndex(e,t){return yo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yo(this,"forEach",e,t,void 0,arguments)},includes(...e){return xl(this,"includes",e)},indexOf(...e){return xl(this,"indexOf",e)},join(e){return _r(this).join(e)},lastIndexOf(...e){return xl(this,"lastIndexOf",e)},map(e,t){return yo(this,"map",e,t,void 0,arguments)},pop(){return Jr(this,"pop")},push(...e){return Jr(this,"push",e)},reduce(e,...t){return ps(this,"reduce",e,t)},reduceRight(e,...t){return ps(this,"reduceRight",e,t)},shift(){return Jr(this,"shift")},some(e,t){return yo(this,"some",e,t,void 0,arguments)},splice(...e){return Jr(this,"splice",e)},toReversed(){return _r(this).toReversed()},toSorted(e){return _r(this).toSorted(e)},toSpliced(...e){return _r(this).toSpliced(...e)},unshift(...e){return Jr(this,"unshift",e)},values(){return Cl(this,"values",e=>oo(this,e))}};function Cl(e,t,o){const r=Wi(e),n=r[t],i=n.call(r);if(r!==e&&!Ft(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const l=Object.create(Object.getPrototypeOf(i));return l.next=()=>hs(i.next(),o),n!==Fd[t]&&Object.defineProperties(l,{return:{get(){const a=i.return;return typeof a=="function"?a.bind(i):a}},throw:{get(){const a=i.throw;return typeof a=="function"?a.bind(i):a}}}),l}i._next=i.next,i.next=()=>hs(i._next(),o)}return i}function hs(e,t){return e.done||(e.value=t(e.value)),e}const Fd=Array.prototype;function yo(e,t,o,r,n,i){const l=Wi(e),a=l!==e&&!Ft(e),s=l[t];if(s!==Fd[t]){const u=s.apply(e,i);return a?jt(u):u}let d=o;l!==e&&(a?d=function(u,f){return o.call(this,oo(e,u),f,e)}:o.length>2&&(d=function(u,f){return o.call(this,u,f,e)}));const c=s.call(l,d,r);return a&&n?n(c):c}function ps(e,t,o,r){const n=Wi(e),i=n!==e&&!Ft(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(d,c,u){return a&&(a=!1,d=oo(e,d)),o.call(this,d,oo(e,c),u,e)}):o.length>3&&(l=function(d,c,u){return o.call(this,d,c,u,e)}));const s=n[t](l,...r);return a?oo(e,s):s}function xl(e,t,o){const r=_e(e);ht(r,"iterate",Sn);const n=r[t](...o);return(n===-1||n===!1)&&Ni(o[0])?(o[0]=_e(o[0]),r[t](...o)):n}function Jr(e,t,o=[]){fo(),xa();const r=_e(e)[t].apply(e,o);return ya(),ho(),r}const qm=va("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function Km(e){kt(e)||(e=String(e));const t=_e(this);return ht(t,"has",e),t.hasOwnProperty(e)}class kd{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?ng:Wd:i?Od:Ld).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=ge(t);if(!n){let s;if(l&&(s=Um[o]))return s;if(o==="hasOwnProperty")return Km}const a=Reflect.get(t,o,ot(t)?t:r);if((kt(o)?Bd.has(o):qm(o))||(n||ht(t,"get",o),i))return a;if(ot(a)){const s=l&&Bi(o)?a:a.value;return n&&Ie(s)?po(s):s}return Ie(a)?n?po(a):xr(a):a}}class Dd extends kd{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=ge(t)&&Bi(o);if(!this._isShallow){const d=mo(i);if(!Ft(r)&&!mo(r)&&(i=_e(i),r=_e(r)),!l&&ot(i)&&!ot(r))return d||(i.value=r),!0}const a=l?Number(o)e,Yn=e=>Reflect.getPrototypeOf(e);function Qm(e,t,o){return function(...r){const n=this.__v_raw,i=_e(n),l=Uo(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,d=n[e](...r),c=o?jl:t?Ko:jt;return!t&&ht(i,"iterate",s?Nl:ur),qe(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:a?[c(u[0]),c(u[1])]:c(u),done:f}}})}}function Xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eg(e,t){const o={get(n){const i=this.__v_raw,l=_e(i),a=_e(n);e||(io(n,a)&&ht(l,"get",n),ht(l,"get",a));const{has:s}=Yn(l),d=t?jl:e?Ko:jt;if(s.call(l,n))return d(i.get(n));if(s.call(l,a))return d(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&ht(_e(n),"iterate",ur),n.size},has(n){const i=this.__v_raw,l=_e(i),a=_e(n);return e||(io(n,a)&&ht(l,"has",n),ht(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=_e(a),d=t?jl:e?Ko:jt;return!e&&ht(s,"iterate",ur),a.forEach((c,u)=>n.call(i,d(c),d(u),l))}};return qe(o,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(n){const i=_e(this),l=Yn(i),a=_e(n),s=!t&&!Ft(n)&&!mo(n)?a:n;return l.has.call(i,s)||io(n,s)&&l.has.call(i,n)||io(a,s)&&l.has.call(i,a)||(i.add(s),To(i,"add",s,s)),this},set(n,i){!t&&!Ft(i)&&!mo(i)&&(i=_e(i));const l=_e(this),{has:a,get:s}=Yn(l);let d=a.call(l,n);d||(n=_e(n),d=a.call(l,n));const c=s.call(l,n);return l.set(n,i),d?io(i,c)&&To(l,"set",n,i):To(l,"add",n,i),this},delete(n){const i=_e(this),{has:l,get:a}=Yn(i);let s=l.call(i,n);s||(n=_e(n),s=l.call(i,n)),a&&a.call(i,n);const d=i.delete(n);return s&&To(i,"delete",n,void 0),d},clear(){const n=_e(this),i=n.size!==0,l=n.clear();return i&&To(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Qm(n,e,t)}),o}function Pa(e,t){const o=eg(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_isShallow"?t:n==="__v_raw"?r:Reflect.get(Re(o,n)&&n in r?o:r,n,i)}const tg={get:Pa(!1,!1)},og={get:Pa(!1,!0)},rg={get:Pa(!0,!1)};const Ld=new WeakMap,Od=new WeakMap,Wd=new WeakMap,ng=new WeakMap;function ig(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xr(e){return mo(e)?e:Ta(e,!1,Xm,tg,Ld)}function Nd(e){return Ta(e,!1,Jm,og,Od)}function po(e){return Ta(e,!0,Zm,rg,Wd)}function Ta(e,t,o,r,n){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=ig(_m(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function qo(e){return mo(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Ni(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Vl(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&wd(e,"__v_skip",!0),e}const jt=e=>Ie(e)?xr(e):e,Ko=e=>Ie(e)?po(e):e;function ot(e){return e?e.__v_isRef===!0:!1}function se(e){return Vd(e,!1)}function jd(e){return Vd(e,!0)}function Vd(e,t){return ot(e)?e:new lg(e,t)}class lg{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:_e(t),this._value=o?t:jt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||Ft(t)||mo(t);t=r?t:_e(t),io(t,o)&&(this._rawValue=t,this._value=r?t:jt(t),this.dep.trigger())}}function Yt(e){return ot(e)?e.value:e}const ag={get:(e,t,o)=>t==="__v_raw"?e:Yt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return ot(n)&&!ot(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function Gd(e){return qo(e)?e:new Proxy(e,ag)}class sg{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=kt(o)?o:String(o),this._raw=_e(t);let n=!0,i=t;if(!ge(t)||kt(this._key)||!Bi(this._key))do n=!Ni(i)||Ft(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Yt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ot(this._raw[this._key])){const o=this._object[this._key];if(ot(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Gm(this._raw,this._key)}}class cg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function uo(e,t,o){return ot(e)?e:ye(e)?new cg(e):Ie(e)&&arguments.length>1?dg(e,t,o):se(e)}function dg(e,t,o){return new sg(e,t,o)}class ug{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Rd(this,!0),!0}get value(){const t=this.dep.track();return Hd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,o=!1){let r,n;return ye(e)?r=e:(r=e.get,n=e.set),new ug(r,n,o)}const Zn={},bi=new WeakMap;let or;function hg(e,t=!1,o=or){if(o){let r=bi.get(o);r||bi.set(o,r=[]),r.push(e)}}function pg(e,t,o=Oe){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,d=P=>n?P:Ft(P)||n===!1||n===0?Eo(P,1):Eo(P);let c,u,f,h,p=!1,g=!1;if(ot(e)?(u=()=>e.value,p=Ft(e)):qo(e)?(u=()=>d(e),p=!0):ge(e)?(g=!0,p=e.some(P=>qo(P)||Ft(P)),u=()=>e.map(P=>{if(ot(P))return P.value;if(qo(P))return d(P);if(ye(P))return s?s(P,2):P()})):ye(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){fo();try{f()}finally{ho()}}const P=or;or=c;try{return s?s(e,3,[h]):e(h)}finally{or=P}}:u=co,t&&n){const P=u,A=n===!0?1/0:n;u=()=>Eo(P(),A)}const b=Nm(),C=()=>{c.stop(),b&&b.active&&Ca(b.effects,c)};if(i&&t){const P=t;t=(...A)=>{try{return P(...A)}finally{C()}}}let y=g?new Array(e.length).fill(Zn):Zn;const T=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const A=c.run();if(P||n||p||(g?A.some((M,v)=>io(M,y[v])):io(A,y))){const M=or;fo();try{f&&f(),or=c;const v=[A,y===Zn?void 0:g&&y[0]===Zn?[]:y,h];y=A,s?s(t,3,v):t(...v)}finally{or=M,ho()}}}else c.run()};return a&&a(T),c=new _d(u),c.scheduler=l?()=>l(T,!1):T,h=P=>hg(P,!1,c),f=c.onStop=()=>{const P=bi.get(c);if(P){if(s)s(P,4);else for(const A of P)A();bi.delete(c)}},t?r?T(!0):y=c.run():l?l(T.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function Eo(e,t=1/0,o){if(t<=0||!Ie(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,ot(e))Eo(e.value,t,o);else if(ge(e))for(let r=0;r{Eo(r,t,o)});else if(Sd(e)){for(const r in e)Eo(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Eo(e[r],t,o)}return e}function Wn(e,t,o,r){try{return r?e(...r):e()}catch(n){ji(n,t,o)}}function Vt(e,t,o,r){if(ye(e)){const n=Wn(e,t,o,r);return n&&xd(n)&&n.catch(i=>{ji(i,t,o,void 0,!0)}),n}if(ge(e)){const n=[];for(let i=0;i>>1,n=yt[r],i=wn(n);i=wn(o)?yt.push(e):yt.splice(gg(t),0,e),e.flags|=1,qd()}}function qd(){vi||(vi=Ud.then(Xd))}function bg(e){if(!ge(e))Wo&&e.id===-1?Wo.splice(Ar+1,0,e):e.flags&1||(ro.push(e),e.flags|=1);else for(let t=0;t=t))continue;yt.splice(r,1),r=e?r-1:Ut,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Yd(e,t,o=0){if(ro.length){let r=ro,n=0;if(t){r=[];for(let l=0;lwn(l)-wn(a));if(ro.length=n,Wo){for(let l=0;le.id==null?e.flags&2?-1:1/0:e.id;function Xd(e){try{for(Ut=0;Ut{r._d&&wi(-1);const i=Ci(t),l=$o.length;let a;try{a=e(...n)}finally{for(let s=$o.length;s>l;s--)Ha();Ci(i),r._d&&wi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Gl(e,t){if(lt===null)return e;const o=Yi(lt),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ye(t)?t.call(r&&r.proxy):t}}const Cg=Symbol.for("v-scx"),xg=()=>De(Cg);function Gi(e,t){return Ea(e,null,t)}function Nt(e,t,o){return Ea(e,t,o)}function Ea(e,t,o=Oe){const{immediate:r,deep:n,flush:i,once:l}=o,a=qe({},o),s=t&&r||!t&&i!=="post";let d;if(In){if(i==="sync"){const h=xg();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=co,h.resume=co,h.pause=co,h}}const c=mt;a.call=(h,p,g)=>Vt(h,c,p,g);let u=!1;i==="post"?a.scheduler=h=>{h.i=c,ft(h,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Vi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=pg(e,t,a);return In&&(d?d.push(f):s&&f()),f}function yg(e,t,o){const r=this.proxy,n=Ve(e)?e.includes(".")?Jd(r,e):()=>r[e]:e.bind(r,r);let i;ye(t)?i=t:(i=t.handler,o=t);const l=jn(this),a=Ea(n,i.bind(r),o);return l(),a}function Jd(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,nr=e=>e&&(e.disabled||e.disabled===""),Sg=e=>e&&(e.defer||e.defer===""),ms=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ul=(e,t)=>{const o=e&&e.to;return Ve(o)?t?t(o):null:o},wg={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,d){const{mc:c,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b,parentNode:C}}=d,y=nr(t.props);let{dynamicChildren:T}=t;const P=(v,w,_)=>{v.shapeFlag&16&&c(v.children,w,_,n,i,l,a,s)},A=(v=t)=>{const w=nr(v.props),_=v.target=Ul(v.props,p),H=ql(_,v,g,h);_&&(l!=="svg"&&ms(_)?l="svg":l!=="mathml"&&gs(_)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(_),w||(P(v,_,H),an(v,!1)))},M=v=>{const w=()=>{if(Lo.get(v)===w){if(Lo.delete(v),nr(v.props)){const _=C(v.el)||o;P(v,_,v.anchor),an(v,!0)}A(v)}};Lo.set(v,w),ft(w,i)};if(e==null){const v=t.el=g(""),w=t.anchor=g("");if(h(v,o,r),h(w,o,r),Sg(t.props)||i&&i.pendingBranch){M(t);return}y&&(P(t,o,w),an(t,!0)),A()}else{t.el=e.el;const v=t.anchor=e.anchor,w=Lo.get(e);if(w){w.flags|=8,Lo.delete(e),M(t);return}t.targetStart=e.targetStart;const _=t.target=e.target,H=t.targetAnchor=e.targetAnchor,O=nr(e.props),$=O?o:_,K=O?v:H;if(l==="svg"||ms(_)?l="svg":(l==="mathml"||gs(_))&&(l="mathml"),T?(f(e.dynamicChildren,T,$,n,i,l,a),Aa(e,t,!0)):s||u(e,t,$,K,n,i,l,a,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jn(t,o,v,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=Ul(t.props,p);ie&&(t.target=ie,Jn(t,ie,null,d,0))}else O&&Jn(t,_,H,d,1);an(t,y)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:d,targetAnchor:c,target:u,props:f}=e,h=nr(f),p=i||!h,g=Lo.get(e);if(g&&(g.flags|=8,Lo.delete(e)),u&&(n(d),n(c)),i&&n(s),!g&&(h||u)&&l&16)for(let b=0;b{e.isMounted=!0}),Gt(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],tu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},Tg={name:"BaseTransition",props:tu,setup(e,{slots:t}){const o=Wr(),r=eu();return()=>{const n=t.default&&$a(t.default(),!0),i=n&&n.length?ou(n):o.subTree?db():void 0;if(!i)return;const l=_e(e),{mode:a}=l;if(r.isLeaving)return Sl(i);const s=xi(i);if(!s)return Sl(i);const d=Pn(s,l,r,o);s.type!==Ze&&_o(s,d);let c=o.subTree&&xi(o.subTree);if(c&&c.type!==Ze&&!ir(c,s)&&Tn(o.subTree)){let u=Pn(c,l,r,o);if(_o(c,u),a==="out-in"&&s.type!==Ze)return r.isLeaving=!0,u.afterLeave=()=>{if(r.isLeaving=!1,!(o.job.flags&8))if(o.effect.flags&2){const f=()=>{o.job.flags&8||o.update()};f.i=o,Vi(f)}else o.update();delete u.afterLeave,c=void 0},Sl(i);a==="in-out"&&s.type!==Ze?u.delayLeave=(f,h,p)=>{const g=ru(r,c);g[String(c.key)]=c,f[Wt]=()=>{h(),f[Wt]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function ou(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Ze){t=o;break}}return t}const Eg=Tg;function ru(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Pn(e,t,o,r){const{appear:n,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:u,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:y}=t,T=String(e.key),P=ru(o,e),A=(w,_)=>{w&&Vt(w,r,9,_)},M=(w,_)=>{const H=_[1];A(w,_),ge(w)?w.every(O=>O.length<=1)&&H():w.length<=1&&H()},v={mode:i,persisted:l,beforeEnter(w){let _=a;if(!o.isMounted)if(n)_=g||a;else return;w[Wt]&&w[Wt](!0);const H=P[T];if(H&&ir(e,H)){let O=H.el[Wt];if(!O){const $=Tn(H);O=$&&$.el[Wt]}O&&O()}A(_,[w])},enter(w){if(P[T]===e)return;let _=s,H=d,O=c;if(!o.isMounted)if(n)_=b||s,H=C||d,O=y||c;else return;let $=!1;w[Qr]=ie=>{$||($=!0,ie?A(O,[w]):A(H,[w]),v.delayedLeave&&v.delayedLeave(),w[Qr]=void 0)};const K=w[Qr].bind(null,!1);_?M(_,[w,K]):K()},leave(w,_){const H=String(e.key);if(w[Qr]&&w[Qr](!0),o.isUnmounting)return _();A(u,[w]);let O=!1;w[Wt]=K=>{O||(O=!0,_(),K?A(p,[w]):A(h,[w]),w[Wt]=void 0,P[H]===e&&delete P[H])};const $=w[Wt].bind(null,!1);P[H]=e,f?M(f,[w,$]):$()},clone(w){const _=Pn(w,t,o,r);return _.afterLeave=()=>{v.afterLeave&&v.afterLeave()},_.delayLeave=(H,O,$)=>{v.delayLeave?v.delayLeave(H,O,$):$()},_.delayedLeave=()=>{v.delayedLeave&&v.delayedLeave()},_}};return v}function Sl(e){if(qi(e))return e=go(e),e.children=null,e}function xi(e){if(!qi(e))return Ui(e.type)&&e.children?ou(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ye(o.default))return o.default()}}function _o(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;_o(Ui(o.type)&&xi(o)||o,t)}else if(e.shapeFlag&128){const o=e.suspense;if(o){const r=o.isHydrating?o.pendingBranch:o.activeBranch;r&&_o(r,t.clone(r))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===Te&&ge(e.children)){const o=vu(e.children,!1);o&&_o(o,t)}}function $a(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;imn(g,t&&(ge(t)?t[b]:t),o,r,n));return}if(Mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?Yi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,d=t&&t.r,c=a.refs===Oe?a.refs={}:a.refs,u=a.setupState,f=_e(u),h=u===Oe?Cd:g=>bs(c,g)?!1:Re(f,g),p=(g,b)=>!(b&&bs(c,b));if(d!=null&&d!==s){if(vs(t),Ve(d))c[d]=null,h(d)&&(u[d]=null);else if(ot(d)){const g=t;p(d,g.k)&&(d.value=null),g.k&&(c[g.k]=null)}}if(ye(s))Wn(s,a,12,[l,c]);else{const g=Ve(s),b=ot(s);if(g||b){const C=()=>{if(e.f){const y=g?h(s)?u[s]:c[s]:p()||!e.k?s.value:c[e.k];if(n)ge(y)&&Ca(y,i);else if(ge(y))y.includes(i)||y.push(i);else if(g)c[s]=[i],h(s)&&(u[s]=c[s]);else{const T=[i];p(s,e.k)&&(s.value=T),e.k&&(c[e.k]=T)}}else g?(c[s]=l,h(s)&&(u[s]=l)):b&&(p(s,e.k)&&(s.value=l),e.k&&(c[e.k]=l))};if(l){const y=()=>{C(),yi.delete(e)};y.id=-1,yi.set(e,y),ft(y,o)}else vs(e),C()}}}function vs(e){const t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}Li().requestIdleCallback;Li().cancelIdleCallback;const Mr=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function iu(e,t){au(e,"a",t)}function lu(e,t){au(e,"da",t)}function au(e,t,o=mt){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,r,o),o){let n=o.parent;for(;n&&n.parent;)qi(n.parent.vnode)&&_g(r,t,o,n),n=n.parent}}function _g(e,t,o,r){const n=En(t,e,r,!0),i=En("um",()=>Ca(r[t],n),o);i.flags=16}function En(e,t,o=mt,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{fo();const a=jn(o),s=Vt(t,o,e,l);return a(),ho(),s});return r?n.unshift(i):n.push(i),i}}const Ao=e=>(t,o=mt)=>{(!In||e==="sp")&&En(e,(...r)=>t(...r),o)},yr=Ao("bm"),bo=Ao("m"),$g=Ao("bu"),su=Ao("u"),Gt=Ao("bum"),cu=Ao("um"),Rg=Ao("sp"),Ig=Ao("rtg"),Ag=Ao("rtc");function Hg(e,t=mt){En("ec",e,t)}const du="components";function Mg(e,t){return fu(du,e,!0,t)||e}const uu=Symbol.for("v-ndc");function k_(e){return Ve(e)?fu(du,e,!1)||e:e||uu}function fu(e,t,o=!0,r=!1){const n=lt||mt;if(n){const i=n.type;{const a=vb(i,!1);if(a&&(a===t||a===wt(t)||a===Di(wt(t))))return i}const l=Cs(n[e]||i[e],t)||Cs(n.appContext[e],t);return!l&&r?i:l}}function Cs(e,t){return e&&(e[t]||e[wt(t)]||e[Di(wt(t))])}function D_(e,t,o,r){let n;const i=o,l=ge(e);if(l||Ve(e)){const a=l&&qo(e);let s=!1,d=!1;a&&(s=!Ft(e),d=mo(e),e=Wi(e)),n=new Array(e.length);for(let c=0,u=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,d=a.length;s0;return k(),ae(Te,null,[je("slot",d,r)],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=$o.length;k();let s;try{const d=l&&hu(l(o)),c=o.key||i||d&&d.key;s=ae(Te,{key:(c&&!kt(c)?c:`_${t}`)+(!d&&r?"_fb":"")},d||(r?r():[]),d&&e._===1?64:-2)}catch(d){for(let c=$o.length;c>a;c--)Ha();throw d}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function hu(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!hu(t.children)):!0)?e:null}const Kl=e=>e?Mu(e)?Yi(e):Kl(e.parent):null,gn=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kl(e.parent),$root:e=>Kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mu(e),$forceUpdate:e=>e.f||(e.f=()=>{Vi(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>yg.bind(e)}),wl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Re(e,t),Fg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(wl(r,t))return l[t]=1,r[t];if(n!==Oe&&Re(n,t))return l[t]=2,n[t];if(Re(i,t))return l[t]=3,i[t];if(o!==Oe&&Re(o,t))return l[t]=4,o[t];Yl&&(l[t]=0)}}const d=gn[t];let c,u;if(d)return t==="$attrs"&&ht(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(o!==Oe&&Re(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Re(u,t))return u[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return wl(n,t)?(n[t]=o,!0):r!==Oe&&Re(r,t)?(r[t]=o,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Oe&&a[0]!=="$"&&Re(e,a)||wl(t,a)||Re(i,a)||Re(r,a)||Re(gn,a)||Re(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Re(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function xs(e){return ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Yl=!0;function Bg(e){const t=mu(e),o=e.proxy,r=e.ctx;Yl=!1,t.beforeCreate&&ys(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:C,beforeUnmount:y,destroyed:T,unmounted:P,render:A,renderTracked:M,renderTriggered:v,errorCaptured:w,serverPrefetch:_,expose:H,inheritAttrs:O,components:$,directives:K,filters:ie}=t;if(d&&kg(d,r,null),l)for(const J in l){const ue=l[J];ye(ue)&&(r[J]=ue.bind(o))}if(n){const J=n.call(o,o);Ie(J)&&(e.data=xr(J))}if(Yl=!0,i)for(const J in i){const ue=i[J],He=ye(ue)?ue.bind(o,o):ye(ue.get)?ue.get.bind(o,o):co,$e=!ye(ue)&&ye(ue.set)?ue.set.bind(o):co,Le=X({get:He,set:$e});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Le.value,set:ke=>Le.value=ke})}if(a)for(const J in a)pu(a[J],r,o,J);if(s){const J=ye(s)?s.call(o):s;Reflect.ownKeys(J).forEach(ue=>{at(ue,J[ue])})}c&&ys(c,e,"c");function ce(J,ue){ge(ue)?ue.forEach(He=>J(He.bind(o))):ue&&J(ue.bind(o))}if(ce(yr,u),ce(bo,f),ce($g,h),ce(su,p),ce(iu,g),ce(lu,b),ce(Hg,w),ce(Ag,M),ce(Ig,v),ce(Gt,y),ce(cu,P),ce(Rg,_),ge(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(ue=>{Object.defineProperty(J,ue,{get:()=>o[ue],set:He=>o[ue]=He,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===co&&(e.render=A),O!=null&&(e.inheritAttrs=O),$&&(e.components=$),K&&(e.directives=K),_&&nu(e)}function kg(e,t,o=co){ge(e)&&(e=Xl(e));for(const r in e){const n=e[r];let i;Ie(n)?"default"in n?i=De(n.from||r,n.default,!0):i=De(n.from||r):i=De(n),ot(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ys(e,t,o){Vt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function pu(e,t,o,r){let n=r.includes(".")?Jd(o,r):()=>o[r];if(Ve(e)){const i=t[e];ye(i)&&Nt(n,i)}else if(ye(e))Nt(n,e.bind(o));else if(Ie(e))if(ge(e))e.forEach(i=>pu(i,t,o,r));else{const i=ye(e.handler)?e.handler.bind(o):t[e.handler];ye(i)&&Nt(n,i,e)}}function mu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(d=>Si(s,d,l,!0)),Si(s,t,l)),Ie(t)&&i.set(t,s),s}function Si(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Si(e,i,o,!0),n&&n.forEach(l=>Si(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=Dg[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Dg={data:Ss,props:ws,emits:ws,methods:sn,computed:sn,beforeCreate:Ct,created:Ct,beforeMount:Ct,mounted:Ct,beforeUpdate:Ct,updated:Ct,beforeDestroy:Ct,beforeUnmount:Ct,destroyed:Ct,unmounted:Ct,activated:Ct,deactivated:Ct,errorCaptured:Ct,serverPrefetch:Ct,components:sn,directives:sn,watch:Og,provide:Ss,inject:Lg};function Ss(e,t){return t?e?function(){return qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Lg(e,t){return sn(Xl(e),Xl(t))}function Xl(e){if(ge(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${Cr(t)}Modifiers`];function Vg(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Oe;let n=o;const i=t.startsWith("update:"),l=i&&jg(r,t.slice(7));l&&(l.trim&&(n=o.map(c=>Ve(c)?c.trim():c)),l.number&&(n=n.map(Im)));let a,s=r[a=ml(t)]||r[a=ml(wt(t))];!s&&i&&(s=r[a=ml(Cr(t))]),s&&Vt(s,e,6,n);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Vt(d,e,6,n)}}const Gg=new WeakMap;function bu(e,t,o=!1){const r=o?Gg:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!ye(e)){const s=d=>{const c=bu(d,t,!0);c&&(a=!0,qe(l,c))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(Ie(e)&&r.set(e,null),null):(ge(i)?i.forEach(s=>l[s]=null):qe(l,i),Ie(e)&&r.set(e,l),l)}function Ki(e,t){return!e||!zi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Cr(t))||Re(e,t))}function Ps(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:d,renderCache:c,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ci(e);let C,y;try{if(o.shapeFlag&4){const P=n||r,A=P;C=no(d.call(A,P,c,u,h,f,p)),y=a}else{const P=t;C=no(P.length>1?P(u,{attrs:a,slots:l,emit:s}):P(u,null)),y=t.props?a:Ug(a)}}catch(P){$o.length=0,ji(P,e,1),C=je(Ze)}let T=C;if(y&&g!==!1){const P=Object.keys(y),{shapeFlag:A}=T;P.length&&A&7&&(i&&P.some(Fi)&&(y=qg(y,i)),T=go(T,y,!1,!0))}if(o.dirs&&(T=go(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(o.dirs):o.dirs),o.transition){const P=Ui(T.type)&&xi(T)||T;_o(P,o.transition)}return C=T,Ci(b),C}function vu(e,t=!0){let o;for(let r=0;r{let t;for(const o in e)(o==="class"||o==="style"||zi(o))&&((t||(t={}))[o]=e[o]);return t},qg=(e,t)=>{const o={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Kg(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Ts(r,l,d):!!l;if(s&8){const c=t.dynamicProps;for(let u=0;uObject.create(xu),Su=e=>Object.getPrototypeOf(e)===xu;function Xg(e,t,o,r=!1){const n={},i=yu();e.propsDefaults=Object.create(null),wu(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:Nd(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Zg(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=_e(n),[s]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,h]=Pu(u,t,!0);qe(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Ie(e)&&r.set(e,lr),lr;if(ge(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Ia=e=>ge(e)?e.map(no):[no(e)],Qg=(e,t,o)=>{if(t._n)return t;const r=so((...n)=>Ia(t(...n)),o);return r._c=!1,r},Tu=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Ra(n))continue;const i=e[n];if(ye(i))t[n]=Qg(n,i,r);else if(i!=null){const l=Ia(i);t[n]=()=>l}}},Eu=(e,t)=>{const o=Ia(t);e.slots.default=()=>o},_u=(e,t,o)=>{for(const r in t)(o||!Ra(r))&&(e[r]=t[r])},eb=(e,t,o)=>{const r=e.slots=yu();if(e.vnode.shapeFlag&32){const n=t._;n?(_u(r,t,o),o&&wd(r,"_",n,!0)):Tu(t,r)}else t&&Eu(e,t)},tb=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Oe;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:_u(n,t,o):(i=!t.$stable,Tu(t,n)),l=t}else t&&(Eu(e,t),l={default:1});if(i)for(const a in n)!Ra(a)&&l[a]==null&&delete n[a]},ft=ab;function ob(e){return rb(e)}function rb(e,t){const o=Li();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=co,insertStaticContent:p}=e,g=(m,x,S,E=null,R=null,B=null,W=void 0,U=null,G=!!x.dynamicChildren)=>{if(m===x)return;m&&!ir(m,x)&&(E=z(m),ke(m,R,B,!0),m=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null),x.dynamicChildren&&m&&m.dynamicChildren&&m.dynamicChildren.hasOnce&&(x.dynamicChildren===lr&&(x.dynamicChildren=[]),x.dynamicChildren.hasOnce=!0);const{type:I,ref:Z,shapeFlag:q}=x;switch(I){case Nn:b(m,x,S,E);break;case Ze:C(m,x,S,E);break;case ci:m==null&&y(x,S,E,W);break;case Te:$(m,x,S,E,R,B,W,U,G);break;default:q&1?A(m,x,S,E,R,B,W,U,G):q&6?K(m,x,S,E,R,B,W,U,G):(q&64||q&128)&&I.process(m,x,S,E,R,B,W,U,G,L)}Z!=null&&R?mn(Z,m&&m.ref,B,x||m,!x):Z==null&&m&&m.ref!=null&&mn(m.ref,null,B,m,!0)},b=(m,x,S,E)=>{if(m==null)r(x.el=a(x.children),S,E);else{const R=x.el=m.el;x.children!==m.children&&d(R,x.children)}},C=(m,x,S,E)=>{m==null?r(x.el=s(x.children||""),S,E):x.el=m.el},y=(m,x,S,E)=>{[m.el,m.anchor]=p(m.children,x,S,E,m.el,m.anchor)},T=({el:m,anchor:x},S,E)=>{let R;for(;m&&m!==x;)R=f(m),r(m,S,E),m=R;r(x,S,E)},P=({el:m,anchor:x})=>{let S;for(;m&&m!==x;)S=f(m),n(m),m=S;n(x)},A=(m,x,S,E,R,B,W,U,G)=>{if(x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),m==null)M(x,S,E,R,B,W,U,G);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),_(m,x,R,B,W,U,G)}finally{I&&I._endPatch()}}},M=(m,x,S,E,R,B,W,U)=>{let G,I;const{props:Z,shapeFlag:q,transition:de,dirs:ve}=m;if(G=m.el=l(m.type,B,Z&&Z.is,Z),q&8?c(G,m.children):q&16&&w(m.children,G,null,E,R,Pl(m,B),W,U),ve&&Jo(m,null,E,"created"),v(G,m,m.scopeId,W,E),Z){for(const Me in Z)Me!=="value"&&!fn(Me)&&i(G,Me,null,Z[Me],B,E);"value"in Z&&i(G,"value",null,Z.value,B),(I=Z.onVnodeBeforeMount)&&Jt(I,E,m)}ve&&Jo(m,null,E,"beforeMount");const we=nb(R,de);we?de.beforeEnter(G):de&&!de.persisted&&(G[lb]=!0),r(G,x,S),((I=Z&&Z.onVnodeMounted)||we||ve)&&ft(()=>{I&&Jt(I,E,m),we&&de.enter(G),ve&&Jo(m,null,E,"mounted")},R)},v=(m,x,S,E,R)=>{if(S&&h(m,S),E)for(let B=0;B{for(let I=G;I{const U=x.el=m.el;let{patchFlag:G,dynamicChildren:I,dirs:Z}=x;G|=m.patchFlag&16;const q=m.props||Oe,de=x.props||Oe;let ve;if(S&&Qo(S,!1),(ve=de.onVnodeBeforeUpdate)&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"beforeUpdate"),S&&Qo(S,!0),I&&(!m.dynamicChildren||m.dynamicChildren.length!==I.length)&&(G=0,W=!1,I=null),(q.innerHTML&&de.innerHTML==null||q.textContent&&de.textContent==null)&&c(U,""),I?H(m.dynamicChildren,I,U,S,E,Pl(x,R),B):W||ue(m,x,U,null,S,E,Pl(x,R),B,!1),G>0){if(G&16)O(U,q,de,S,R);else if(G&2&&q.class!==de.class&&i(U,"class",null,de.class,R),G&4&&i(U,"style",q.style,de.style,R),G&8){const we=x.dynamicProps;for(let Me=0;Me{ve&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"updated")},E)},H=(m,x,S,E,R,B,W)=>{for(let U=0;U{if(x!==S){if(x!==Oe)for(const B in x)!fn(B)&&!(B in S)&&i(m,B,x[B],null,R,E);for(const B in S){if(fn(B))continue;const W=S[B],U=x[B];W!==U&&B!=="value"&&i(m,B,U,W,R,E)}"value"in S&&i(m,"value",x.value,S.value,R)}},$=(m,x,S,E,R,B,W,U,G)=>{const I=x.el=m?m.el:a(""),Z=x.anchor=m?m.anchor:a("");let{patchFlag:q,dynamicChildren:de,slotScopeIds:ve}=x;ve&&(U=U?U.concat(ve):ve),m==null?(r(I,S,E),r(Z,S,E),w(x.children||[],S,Z,R,B,W,U,G)):q>0&&q&64&&de&&m.dynamicChildren&&m.dynamicChildren.length===de.length?(H(m.dynamicChildren,de,S,R,B,W,U),(x.key!=null||R&&x===R.subTree)&&Aa(m,x,!0)):ue(m,x,S,Z,R,B,W,U,G)},K=(m,x,S,E,R,B,W,U,G)=>{x.slotScopeIds=U,m==null?x.shapeFlag&512?R.ctx.activate(x,S,E,W,G):ie(x,S,E,R,B,W,G):be(m,x,G)},ie=(m,x,S,E,R,B,W)=>{const U=m.component=hb(m,E,R);if(qi(m)&&(U.ctx.renderer=L),pb(U,!1,W),U.asyncDep){if(R&&R.registerDep(U,ce,W,B),!m.el){const G=U.subTree=je(Ze);C(null,G,x,S),m.placeholder=G.el}}else ce(U,m,x,S,R,B,W)},be=(m,x,S)=>{const E=x.component=m.component;if(Kg(m,x,S))if(E.asyncDep&&!E.asyncResolved){x.el=m.el,x.placeholder=m.placeholder,J(E,x,S);return}else E.next=x,E.update();else x.el=m.el,x.placeholder=m.placeholder,E.vnode=x},ce=(m,x,S,E,R,B,W)=>{const U=()=>{if(m.isMounted){let{next:q,bu:de,u:ve,parent:we,vnode:Me}=m;{const Et=$u(m);if(Et){q&&(q.el=Me.el,J(m,q,W)),Et.asyncDep.then(()=>{const At=()=>{m.job.flags&8||(R&&R.pendingBranch?ft(At,R):I())};At.flags=48,ft(At,R)});return}}let ze=q,Ge;Qo(m,!1),q?(q.el=Me.el,J(m,q,W)):q=Me,de&&gl(de),(Ge=q.props&&q.props.onVnodeBeforeUpdate)&&Jt(Ge,we,q,Me),Qo(m,!0);const Qe=Ps(m),It=m.subTree;m.subTree=Qe,g(It,Qe,u(It.el||bn(It)),z(It),m,R,B),q.el=Qe.el,ze===null&&Yg(m,Qe.el),ve&&ft(ve,R),(Ge=q.props&&q.props.onVnodeUpdated)&&ft(()=>Jt(Ge,we,q,Me),R)}else{let q;const{el:de,props:ve}=x,{bm:we,m:Me,parent:ze,root:Ge,type:Qe}=m,It=Mr(x);Qo(m,!1),we&&gl(we),!It&&(q=ve&&ve.onVnodeBeforeMount)&&Jt(q,ze,x),Qo(m,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(Qe,m.parent?m.parent.type:void 0);const Et=m.subTree=Ps(m);g(null,Et,S,E,m,R,B),x.el=Et.el}if(Me&&ft(Me,R),!It&&(q=ve&&ve.onVnodeMounted)){const Et=x;ft(()=>Jt(q,ze,Et),R)}(x.shapeFlag&256||ze&&Mr(ze.vnode)&&ze.vnode.shapeFlag&256)&&m.a&&ft(m.a,R),m.isMounted=!0,x=S=E=null}};m.scope.on();const G=m.effect=new _d(U);m.scope.off();const I=m.update=G.run.bind(G),Z=m.job=G.runIfDirty.bind(G);Z.i=m,Z.id=m.uid,G.scheduler=()=>Vi(Z),Qo(m,!0),I()},J=(m,x,S)=>{x.component=m;const E=m.vnode.props;m.vnode=x,m.next=null,Zg(m,x.props,E,S),tb(m,x.children,S),fo(),Kd(m),ho()},ue=(m,x,S,E,R,B,W,U,G=!1)=>{const I=m&&m.children,Z=m?m.shapeFlag:0,q=x.children,{patchFlag:de,shapeFlag:ve}=x;if(de>0){if(de&128){$e(I,q,S,E,R,B,W,U,G);return}else if(de&256){He(I,q,S,E,R,B,W,U,G);return}}ve&8?(Z&16&&Se(I,R,B),q!==I&&c(S,q)):Z&16?ve&16?$e(I,q,S,E,R,B,W,U,G):Se(I,R,B,!0):(Z&8&&c(S,""),ve&16&&w(q,S,E,R,B,W,U,G))},He=(m,x,S,E,R,B,W,U,G)=>{m=m||lr,x=x||lr;const I=m.length,Z=x.length,q=Math.min(I,Z);let de;for(de=0;deZ?Se(m,R,B,!0,!1,q):w(x,S,E,R,B,W,U,G,q)},$e=(m,x,S,E,R,B,W,U,G)=>{let I=0;const Z=x.length;let q=m.length-1,de=Z-1;for(;I<=q&&I<=de;){const ve=m[I],we=x[I]=G?Po(x[I]):no(x[I]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;I++}for(;I<=q&&I<=de;){const ve=m[q],we=x[de]=G?Po(x[de]):no(x[de]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;q--,de--}if(I>q){if(I<=de){const ve=de+1,we=vede)for(;I<=q;)ke(m[I],R,B,!0),I++;else{const ve=I,we=I,Me=new Map;for(I=we;I<=de;I++){const ct=x[I]=G?Po(x[I]):no(x[I]);ct.key!=null&&Me.set(ct.key,I)}let ze,Ge=0;const Qe=de-we+1;let It=!1,Et=0;const At=new Array(Qe);for(I=0;I=Qe){ke(ct,R,B,!0);continue}let N;if(ct.key!=null)N=Me.get(ct.key);else for(ze=we;ze<=de;ze++)if(At[ze-we]===0&&ir(ct,x[ze])){N=ze;break}N===void 0?ke(ct,R,B,!0):(At[N-we]=I+1,N>=Et?Et=N:It=!0,g(ct,x[N],S,null,R,B,W,U,G),Ge++)}const Xr=It?ib(At):lr;for(ze=Xr.length-1,I=Qe-1;I>=0;I--){const ct=we+I,N=x[ct],he=x[ct+1],xe=ct+1{const{el:B,type:W,transition:U,children:G,shapeFlag:I}=m;if(I&6){Le(m.component.subTree,x,S,E);return}if(I&128){m.suspense.move(x,S,E);return}if(I&64){W.move(m,x,S,L);return}if(W===Te){r(B,x,S);for(let q=0;qU.enter(B),R));else{const{leave:q,delayLeave:de,afterLeave:ve}=U,we=()=>{m.ctx.isUnmounted?n(B):r(B,x,S)},Me=()=>{const ze=B._isLeaving||!!B[Wt];B._isLeaving&&B[Wt](!0),U.persisted&&!ze?we():q(B,()=>{we(),ve&&ve()})};de?de(B,we,Me):Me()}else r(B,x,S)},ke=(m,x,S,E=!1,R=!1)=>{const{type:B,props:W,ref:U,children:G,dynamicChildren:I,shapeFlag:Z,patchFlag:q,dirs:de,cacheIndex:ve,memo:we}=m;if((q===-2||I&&I.hasOnce)&&(R=!1),U!=null&&(fo(),mn(U,null,S,m,!0),ho()),ve!=null&&(!m.ctx||m.ctx===x)&&(x.renderCache[ve]=void 0),Z&256&&x.ctx.deactivate(m))return;const Me=Z&1&&de,ze=!Mr(m);let Ge;if(ze&&(Ge=W&&W.onVnodeBeforeUnmount)&&Jt(Ge,x,m),Z&6)vt(m.component,S,E);else{if(Z&128){m.suspense.unmount(S,E);return}Me&&Jo(m,null,x,"beforeUnmount"),Z&64?m.type.remove(m,x,S,L,E):I&&!I.hasOnce&&(B!==Te||q>0&&q&64)?Se(I,x,S,!1,!0):(B===Te&&q&384||!R&&Z&16)&&Se(G,x,S),E&&nt(m)}const Qe=we!=null&&ve==null;(ze&&(Ge=W&&W.onVnodeUnmounted)||Me||Qe)&&ft(()=>{Ge&&Jt(Ge,x,m),Me&&Jo(m,null,x,"unmounted"),Qe&&(m.el=null)},S)},nt=m=>{const{type:x,el:S,anchor:E,transition:R}=m,B=x===Te;if(B&&!R){Je(S,E);return}if(x===ci){P(m),R&&!R.persisted&&R.afterLeave&&R.afterLeave();return}const W=B?Tn(m):m,U=()=>{B?u(S)&&Je(S,E):n(S),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(W&&W.shapeFlag&1&&R&&!R.persisted){const{leave:G,delayLeave:I}=R,Z=W.el,q=()=>G(Z,U);I?I(Z,U,q):q()}else U()},Je=(m,x)=>{let S;for(;m!==x;)S=f(m),n(m),m=S;n(x)},vt=(m,x,S)=>{const{bum:E,scope:R,job:B,subTree:W,um:U,m:G,a:I}=m;_s(G),_s(I),E&&gl(E),R.stop(),B?(B.flags|=8,ke(W,m,x,S)):W&&(W.transition=m.vnode.transition,ke(W,m,x,S)),U&&ft(U,x);const Z=()=>{m.isUnmounted=!0};Z.flags=16,ft(Z,x)},Se=(m,x,S,E=!1,R=!1,B=0)=>{for(let W=B;W{if(m.shapeFlag&6)return z(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=f(m.anchor||m.el),S=x&&x[Qd];return S?f(S):x},ee=(m,x,S)=>{const E=m&&x._vnode?void 0:m&&m.component?m.component.uid:fb();vg(()=>{m==null?x._vnode&&ke(x._vnode,null,null,!0):g(x._vnode||null,m,x,null,null,null,S),x._vnode=m},E)},L={p:g,um:ke,m:Le,r:nt,mt:ie,mc:w,pc:ue,pbc:H,n:z,o:e};return{render:ee,hydrate:void 0,createApp:Ng(ee)}}function Pl({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Qo({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Aa(e,t,o=!1){const r=e.children,n=t.children;if(ge(r)&&ge(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function $u(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$u(t)}function _s(e){if(e)for(let t=0;te.__isSuspense,lb=Symbol("_deferredEnter");function ab(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):bg(e)}const Te=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),ci=Symbol.for("v-stc"),$o=[];let Mt=null;function k(e=!1){$o.push(Mt=e?null:[])}function Ha(){$o.pop(),Mt=$o[$o.length-1]||null}let _n=1;function wi(e,t=!1){_n+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function Iu(e){return e.dynamicChildren=_n>0?Mt||lr:null,Ha(),_n>0&&Mt&&Mt.push(e),e}function pe(e,t,o,r,n,i){return Iu(Pe(e,t,o,r,n,i,!0))}function ae(e,t,o,r,n){return Iu(je(e,t,o,r,n,!0))}function Ro(e){return e?e.__v_isVNode===!0:!1}function ir(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,di=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||ot(e)||ye(e)?{i:lt,r:e,k:t,f:!!o}:e:null);function Pe(e,t=null,o=null,r=0,n=null,i=e===Te?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&di(t),scopeId:Zd,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:lt};return a?(Pi(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ve(o)?8:16),_n>0&&!l&&Mt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Mt.push(s),s}const je=sb;function sb(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===uu)&&(e=Ze),Ro(e)){const a=go(e,t,!0);return o&&Pi(a,o),_n>0&&!i&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(e)]=a:Mt.push(a)),a.patchFlag=-2,a}if(Cb(e)&&(e=e.__vccOpts),t){t=cb(t);let{class:a,style:s}=t;a&&!Ve(a)&&(t.class=mr(a)),Ie(s)&&(Ni(s)&&!ge(s)&&(s=qe({},s)),t.style=Be(s))}const l=Ve(e)?1:Ru(e)?128:Ui(e)?64:Ie(e)?4:ye(e)?2:0;return Pe(e,t,o,r,n,l,i,!0)}function cb(e){return e?Ni(e)?qe({},e):Su(e)?qe({},e[Fu]||e):e:null}function go(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,d=t?Bt(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Au(d),ref:t&&t.ref?o&&i?ge(i)?i.concat(di(t)):[i,di(t)]:di(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return s&&r&&_o(c,s.clone(c)),c}function $n(e=" ",t=0){return je(Nn,null,e,t)}function L_(e,t){const o=je(ci,null,e);return o.staticCount=t,o}function db(e="",t=!1){return t?(k(),ae(Ze,null,e)):je(Ze,null,e)}function no(e){return e==null||typeof e=="boolean"?je(Ze):ge(e)?je(Te,null,e.slice()):Ro(e)?Po(e):je(Nn,null,String(e))}function Po(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}function Pi(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Su(t)?t._ctx=lt:n===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ye(t)){if(r&65){Pi(e,{default:t});return}t={default:t,_ctx:lt},o=32}else t=String(t),r&64?(o=16,t=[$n(t)]):o=8;e.children=t,e.shapeFlag|=o}function Bt(...e){const t={};for(let o=0;omt||lt;let Ti,Rn;{const e=Li(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Ti=t("__VUE_INSTANCE_SETTERS__",o=>mt=o),Rn=t("__VUE_SSR_SETTERS__",o=>In=o)}const jn=e=>{const t=mt;return Ti(e),e.scope.on(),()=>{e.scope.off(),Ti(t)}},$s=()=>{mt&&mt.scope.off(),Ti(null)};function Mu(e){return e.vnode.shapeFlag&4}let In=!1;function pb(e,t=!1,o=!1){t&&Rn(t);const{props:r,children:n}=e.vnode,i=Mu(e);Xg(e,r,i,t),eb(e,n,o||t);const l=i?mb(e,t):void 0;return t&&Rn(!1),l}function mb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fg);const{setup:r}=o;if(r){fo();const n=e.setupContext=r.length>1?bb(e):null,i=jn(e),l=Wn(r,e,0,[e.props,n]),a=xd(l);if(ho(),i(),(a||e.sp)&&!Mr(e)&&nu(e),a){if(l.then($s,$s),t)return l.then(s=>{Rn(!0);try{Rs(e,s,t)}finally{Rn(!1)}}).catch(s=>{ji(s,e,0,void 0,!0),e.ssrRender=(d,c)=>c("")});e.asyncDep=l}else Rs(e,l)}else zu(e)}function Rs(e,t,o){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Gd(t)),zu(e)}function zu(e,t,o){const r=e.type;e.render||(e.render=r.render||co);{const n=jn(e);fo();try{Bg(e)}finally{ho(),n()}}}const Fu=Symbol(),gb={get(e,t){return ht(e,"get",""),t===Fu?e:e[t]}};function bb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,gb),slots:e.slots,emit:e.emit,expose:t}}function Yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gd(Vl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in gn)return gn[o](e)},has(t,o){return o in t||o in gn}})):e.proxy}function vb(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Cb(e){return ye(e)&&"__vccOpts"in e}const X=(e,t)=>fg(e,t,In);function Rt(e,t,o){try{wi(-1);const r=arguments.length;return r===2?Ie(t)&&!ge(t)?Ro(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Ro(o)&&(o=[o]),je(e,t,o))}finally{wi(1)}}const xb="3.5.45";let Jl;const Is=typeof window<"u"&&window.trustedTypes;if(Is)try{Jl=Is.createPolicy("vue",{createHTML:e=>e})}catch{}const Bu=Jl?e=>Jl.createHTML(e):e=>e,yb="http://www.w3.org/2000/svg",Sb="http://www.w3.org/1998/Math/MathML",wo=typeof document<"u"?document:null,As=wo&&wo.createElement("template"),wb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?wo.createElementNS(yb,e):t==="mathml"?wo.createElementNS(Sb,e):o?wo.createElement(e,{is:o}):wo.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{As.innerHTML=Bu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=As.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Fo="transition",en="animation",kr=Symbol("_vtc"),ku={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Du=qe({},tu,ku),Pb=e=>(e.displayName="Transition",e.props=Du,e),br=Pb((e,{slots:t})=>Rt(Eg,Lu(e),t)),er=(e,t=[])=>{ge(e)?e.forEach(o=>o(...t)):e&&e(...t)},Hs=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Lu(e){const t={};for(const $ in e)$ in ku||(t[$]=e[$]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:d=l,appearToClass:c=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(n),g=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:y,onEnterCancelled:T,onLeave:P,onLeaveCancelled:A,onBeforeAppear:M=C,onAppear:v=y,onAppearCancelled:w=T}=t,_=($,K,ie,be)=>{$._enterCancelled=be,Oo($,K?c:a),Oo($,K?d:l),ie&&ie()},H=($,K)=>{$._isLeaving=!1,Oo($,u),Oo($,h),Oo($,f),K&&K()},O=$=>(K,ie)=>{const be=$?v:y,ce=()=>_(K,$,ie);er(be,[K,ce]),Ms(()=>{Oo(K,$?s:i),to(K,$?c:a),Hs(be)||zs(K,r,g,ce)})};return qe(t,{onBeforeEnter($){er(C,[$]),to($,i),to($,l)},onBeforeAppear($){er(M,[$]),to($,s),to($,d)},onEnter:O(!1),onAppear:O(!0),onLeave($,K){$._isLeaving=!0;const ie=()=>H($,K);to($,u),$._enterCancelled?(to($,f),Ql($)):(Ql($),to($,f)),Ms(()=>{$._isLeaving&&(Oo($,u),to($,h),Hs(P)||zs($,r,b,ie))}),er(P,[$,ie])},onEnterCancelled($){_($,!1,void 0,!0),er(T,[$])},onAppearCancelled($){_($,!0,void 0,!0),er(w,[$])},onLeaveCancelled($){H($),er(A,[$])}})}function Tb(e){if(e==null)return null;if(Ie(e))return[Tl(e.enter),Tl(e.leave)];{const t=Tl(e);return[t,t]}}function Tl(e){return Am(e)}function to(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[kr]||(e[kr]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[kr];o&&(o.delete(t),o.size||(e[kr]=void 0))}function Ms(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eb=0;function zs(e,t,o,r){const n=e._endId=++Eb,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Ou(e,t);if(!l)return r();const d=l+"end";let c=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++c>=s&&u()};setTimeout(()=>{c(o[p]||"").split(", "),n=r(`${Fo}Delay`),i=r(`${Fo}Duration`),l=Fs(n,i),a=r(`${en}Delay`),s=r(`${en}Duration`),d=Fs(a,s);let c=null,u=0,f=0;t===Fo?l>0&&(c=Fo,u=l,f=i.length):t===en?d>0&&(c=en,u=d,f=s.length):(u=Math.max(l,d),c=u>0?l>d?Fo:en:null,f=c?c===Fo?i.length:s.length:0);const h=c===Fo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Fo}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:h}}function Fs(e,t){for(;e.lengthBs(o)+Bs(e[r])))}function Bs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ql(e){return(e?e.ownerDocument:document).body.offsetHeight}function _b(e,t,o){const r=e[kr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ei=Symbol("_vod"),Ma=Symbol("_vsh"),ks={name:"show",beforeMount(e,{value:t},{transition:o}){e[Ei]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),tn(e,!0),r.enter(e)):r.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[Ei]:"none",e[Ma]=!t}const $b=Symbol(""),Rb=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const r=e.style,n=Ve(o);let i=!1;if(o&&!n){if(t)if(Ve(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&cn(r,a,"")}else for(const l in t)o[l]==null&&cn(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?Hb(e,l,!Ve(t)&&t?t[l]:void 0,a)||cn(r,l,a):cn(r,l,"")}}else if(n){if(t!==o){const l=r[$b];l&&(o+=";"+l),r.cssText=o,i=Rb.test(o)}}else t&&e.removeAttribute("style");Ei in e&&((!n||t!==o)&&(e[Ei]=i?r.display:""),e[Ma]&&(r.display="none"))}const Qn=/\s*!important$/;function cn(e,t,o){if(ge(o))o.forEach(r=>cn(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Qn.test(o)?e.setProperty(t,o.replace(Qn,""),"important"):e.setProperty(t,o);else{const r=Ab(e,t);Qn.test(o)?e.setProperty(Cr(r),o.replace(Qn,""),"important"):e[r]=o}}const Ds=["Webkit","Moz","ms"],El={};function Ab(e,t){const o=El[t];if(o)return o;let r=wt(t);if(r!=="filter"&&r in e)return El[t]=r;r=Di(r);for(let n=0;n_l||(Lb.then(()=>_l=0),_l=Date.now());function Wb(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(ge(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nb=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?_b(e,r,l):t==="style"?Ib(e,o,r):zi(t)?Fi(t)||Fb(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jb(e,t,r,l))?(Ws(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Os(e,t,r,l,i,t!=="value")):e._isVueCE&&(Vb(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ve(r)))?Ws(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Os(e,t,r,l))};function jb(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&js(t)&&ye(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return js(t)&&Ve(o)?!1:t in e}function Vb(e,t){const o=e._def.props;if(!o)return!1;const r=wt(t);return Array.isArray(o)?o.some(n=>wt(n)===r):Object.keys(o).some(n=>wt(n)===r)}const Wu=new WeakMap,Nu=new WeakMap,_i=Symbol("_moveCb"),Vs=Symbol("_enterCb"),ea=new WeakMap,Gb=e=>(delete e.props.mode,e),Ub=Gb({name:"TransitionGroup",props:qe({},Du,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Wr(),r=eu();let n,i,l,a;const s=()=>(a===void 0&&(a=n.length>0&&ev(n[0].el,o.vnode.el,Gs(e))),a);return su(()=>{if(ea.delete(o),!s()){n=[],l=void 0;return}const d=Gs(e);n.forEach(Kb);const c=l&&Qb(l,o.vnode.el);l=void 0,n.forEach(f=>Yb(f,c));const u=n.filter(Xb);Ql(o.vnode.el),u.forEach(f=>{const h=f.el,p=h.style;to(h,d),p.transform=p.webkitTransform=p.transitionDuration="";const g=h[_i]=b=>{b&&b.target!==h||(!b||b.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",g),h[_i]=null,Oo(h,d))};h.addEventListener("transitionend",g)}),n=[]}),()=>{const d=_e(e),c=Lu(d);let u=d.tag||Te;if(n=[],a=void 0,i)for(let f=0;fr.willMove()&&r.item.contains(t));return o&&Xi(o.item,o)}function ev(e,t,o){const r=e.cloneNode(),n=e[kr];n&&n.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=Ou(r);return i.removeChild(r),l}const tv=["ctrl","shift","alt","meta"],ov={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tv.some(o=>e[`${o}Key`]&&!t.includes(o))},O_=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const t=nv().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=av(r);if(!n)return;const i=t._component;!ye(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,lv(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function lv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function av(e){return Ve(e)?document.querySelector(e):e}function sv(e){let t=".",o="__",r="--",n;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){n=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(C){g=C.bem.b,b=C.bem.els,C.bem.els=null},after(C){C.bem.b=g,C.bem.els=b},$({context:C,props:y}){return p=typeof p=="string"?p:p({context:C,props:y}),C.bem.b=p,`${y?.bPrefix||t}${C.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:C}){return p=typeof p=="string"?p:p({context:b,props:C}),b.bem.els=p.split(",").map(y=>y.trim()),b.bem.els.map(y=>`${C?.bPrefix||t}${b.bem.b}${o}${y}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=p.split(",").map(P=>P.trim());function y(P){return C.map(A=>`&${b?.bPrefix||t}${g.bem.b}${P!==void 0?`${o}${P}`:""}${r}${A}`).join(", ")}const T=g.bem.els;return T!==null?y(T[0]):y()}}}function d(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=g.bem.els;return`&:not(${b?.bPrefix||t}${g.bem.b}${C!==null&&C.length>0?`${o}${C[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>n(l(p[0]),p[1],p[2])),cE:((...p)=>n(a(p[0]),p[1],p[2])),cM:((...p)=>n(s(p[0]),p[1],p[2])),cNotM:((...p)=>n(d(p[0]),p[1],p[2]))}),i}function cv(e){let t=0;for(let o=0;o{let n=cv(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function fv(e,t){const o=[];return t.split(ju).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function hv(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=uv(t,o):t=fv(t,o))}),t.join(", ").replace(dv," ")}function qs(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function pv(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ei(e){return e?/^\s*@(s|m)/.test(e):!1}const mv=/[A-Z]/g;function Vu(e){return e.replace(mv,t=>"-"+t.toLowerCase())}function gv(e,t=" "){return typeof e=="object"&&e!==null?` { `+Object.entries(e).map(o=>t+` ${Vu(o[0])}: ${o[1]};`).join(` `)+` @@ -813,4 +813,4 @@ ${t} transform: translate(${t}, 0); `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: translate(0, 0); - `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-BjbMAX6a.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-BKOOfxKt.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-scECmWLS.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-BS7njuEF.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,30,3,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-DQJVOvaX.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-I_oin3xl.js"),__vite__mapDeps([36,27,13,4,2,1,24,29,37,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-ByV6k06l.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-7xwJcQmS.js"),__vite__mapDeps([41,1,2,27,13,4,24,37,5,16,17,30,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,c2 as b0,Kt as b1,nl as b2,Nc as b3,Hi as b4,ja as b5,Wa as b6,Na as b7,An as b8,wp as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,Mi as ba,Ku as bb,Rv as bc,DS as bd,Va as be,Kr as bf,hi as bg,J_ as bh,hT as bi,Io as bj,X_ as bk,eP as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; + `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-CgZHTqn3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-D5h30p8f.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-DbUrPyr3.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-B0GCV62j.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,30,3,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-C0q9wGjN.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-BkgkRPye.js"),__vite__mapDeps([36,27,13,4,2,1,24,29,37,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-Bizgy-un.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-CaYIvJoC.js"),__vite__mapDeps([41,1,2,27,13,4,24,37,5,16,17,30,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,c2 as b0,Kt as b1,nl as b2,Nc as b3,Hi as b4,ja as b5,Wa as b6,Na as b7,An as b8,wp as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,Mi as ba,Ku as bb,Rv as bc,DS as bd,Va as be,Kr as bf,hi as bg,J_ as bh,hT as bi,Io as bj,X_ as bk,eP as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-959wQihJ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-BpUYLHe6.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-959wQihJ.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-BpUYLHe6.js index f9d261e7..ad9f7444 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-959wQihJ.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-BpUYLHe6.js @@ -1,2 +1,2 @@ -import{ao as a,aV as t,ap as r,a_ as i}from"./index-IeQIGfOC.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` +import{ao as a,aV as t,ap as r,a_ as i}from"./index-W7SBB4Eq.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` `)}const p=s=>r("/v1/streamers",s),u=s=>t("/v1/streamers",s),d=s=>i(`/v1/streamers/${s}`),g=s=>t(`/v1/streamers/${s}/pause`),$=s=>`/v1/streamers/${s}/cover`;export{m as a,p as b,$ as c,o as d,d as e,c as g,l,v as p,g as t,u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D5WZISuP.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D8hAoj1z.js similarity index 76% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D5WZISuP.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D8hAoj1z.js index 7d32c3da..38ad0d3c 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D5WZISuP.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D8hAoj1z.js @@ -1 +1 @@ -import{L as f,j as e}from"./index-IeQIGfOC.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; +import{L as f,j as e}from"./index-W7SBB4Eq.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DtvhZdQK.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DkYn5b6o.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DtvhZdQK.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DkYn5b6o.js index fce07ffb..4efb09df 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DtvhZdQK.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DkYn5b6o.js @@ -1,4 +1,4 @@ -import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b1 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-IeQIGfOC.js";import{f as Oe}from"./_plugin-vue_export-helper-BhKLKalr.js";import{u as Mn,a as An}from"./use-compitable-D5WZISuP.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` +import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b1 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-W7SBB4Eq.js";import{f as Oe}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as Mn,a as An}from"./use-compitable-D8hAoj1z.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html index 92865d1a..fc33e394 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html @@ -5,7 +5,7 @@ Live Stream Recorder - + diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs index d8a716a7..1df66557 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/engine.mjs @@ -30,6 +30,8 @@ export function createEngineDownloader({ freeBytes = defaultFreeBytes, restartEngine = async () => {}, log = () => {}, + unlink = unlinkSync, + rename = renameSync, configured = ENGINE_DOWNLOAD_CONFIGURED, download = DOWNLOAD, } = {}) { @@ -38,6 +40,7 @@ export function createEngineDownloader({ const partPath = finalPath + '.part'; let state = 'missing'; let error = ''; + let notice = ''; let progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; let controller = null; let response = null; @@ -53,9 +56,14 @@ export function createEngineDownloader({ if (!supported()) return { state: 'unsupported', platform: plat, error: '当前系统暂无引擎版本' }; // force 重新下载期间旧引擎仍在盘上:内部下载状态必须先于 binaryExists() 暴露, // 否则 UI 一直显示「已就绪」、进度条不出现,且 proxy 会误判为可再次触发。 - if (state === 'downloading' || state === 'verifying') return { state, platform: plat, ...progress, error }; - if (binaryExists()) return { state: 'ready', version: download.version, path: finalPath, platform: plat }; - if (state === 'failed') return { state, platform: plat, error }; + if (state === 'downloading' || state === 'verifying') return { state, platform: plat, ...progress, error, ...(notice ? { notice } : {}) }; + // 二进制仍在盘上时对外保持 ready,但把内部错误/提示一并带出,避免界面只显示「已就绪」。 + if (binaryExists()) return { + state: 'ready', version: download.version, path: finalPath, platform: plat, + ...(error ? { error } : {}), + ...(notice ? { notice } : {}), + }; + if (state === 'failed') return { state, platform: plat, error, ...(notice ? { notice } : {}) }; if (!configured) return { state: 'missing', platform: plat, error: '引擎下载尚未配置' }; return { state: 'missing', platform: plat }; } @@ -70,36 +78,59 @@ export function createEngineDownloader({ }); } + function nextBackupPath() { + const base = finalPath + '.old'; + const stamp = Date.now(); + let candidate = base + '-' + stamp; + let n = 1; + while (existsSync(candidate)) { + candidate = base + '-' + stamp + '-' + n; + n += 1; + } + return candidate; + } + async function verify() { state = 'verifying'; const digest = await hashFile(partPath); if (digest.toLowerCase() !== download.sha256.toLowerCase()) { - try { unlinkSync(partPath); } catch { /* ignore */ } + try { unlink(partPath); } catch { /* ignore */ } state = 'failed'; error = '校验未通过,未安装'; forceMode = false; return; } if (forceMode && existsSync(finalPath)) { - const backupPath = finalPath + '.old'; + // 备份名唯一化:不删除任何既有备份,因此不依赖数据目录的删除权限。 + const backupPath = nextBackupPath(); + // 关键步骤:仅两次 rename 决定替换成败;清理备份是成功之后的最力而为。 try { - if (existsSync(backupPath)) unlinkSync(backupPath); - renameSync(finalPath, backupPath); - renameSync(partPath, finalPath); - unlinkSync(backupPath); + rename(finalPath, backupPath); + rename(partPath, finalPath); } catch (e) { + // 回滚只用 rename:即便删除被拒也能把旧引擎放回原位。 if (existsSync(backupPath) && !existsSync(finalPath)) { - try { renameSync(backupPath, finalPath); } catch { /* ignore */ } + try { rename(backupPath, finalPath); } catch { /* ignore */ } } - try { unlinkSync(partPath); } catch { /* ignore */ } + try { unlink(partPath); } catch { /* ignore */ } state = 'failed'; error = '替换失败:' + (e?.message || String(e)); + notice = ''; forceMode = false; log('warn', 'engine replace failed: ' + error); return; } + // 尽力清理旧备份:失败只记日志 + 可见提示,不改 state、不跳过重启。 + notice = ''; + try { + unlink(backupPath); + } catch (e) { + notice = '旧引擎备份未能自动清理,请手动删除:' + backupPath; + log('warn', 'engine backup cleanup failed: ' + (e?.message || e) + '; backup=' + backupPath); + } } else { - renameSync(partPath, finalPath); + rename(partPath, finalPath); + notice = ''; } state = 'ready'; error = ''; @@ -167,6 +198,7 @@ export function createEngineDownloader({ } state = 'downloading'; error = ''; + notice = ''; forceMode = force; progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; lastSampleAt = 0; @@ -181,6 +213,7 @@ export function createEngineDownloader({ try { controller?.abort(); } catch { /* ignore */ } state = 'missing'; error = ''; + notice = ''; forceMode = false; progress = { bytesDownloaded: 0, bytesTotal: download.sizeBytes, speedBps: 0 }; } From 6251689c0939461e93e5384613ec975cecdd8eb2 Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 15:06:21 +0800 Subject: [PATCH 08/10] docs(live-stream-recorder): neutralize remaining engine/Microsoft display names\n\n- README.md / README.zh-CN.md: engine product name and Microsoft in user-visible prose replaced with neutral wording; config keys, values, path-resolution facts and References section untouched\n- rebuilt client: SettingsView label "biliup-cli path" -> neutral "engine CLI path (read-only)"; field and readonly attribute unchanged\n- verification: web typecheck 0, gates fast 11/11 0, build-miniapp 0, community check 0 errors (115 tests, 113 pass, 0 fail, 2 skipped)\n- mutation re-run with current 12-case test file: defective 9 pass/3 fail exit 1 (two EPERM cases red), restored 12 pass/0 fail exit 0; assertions unchanged --- .../charlesnty612/live-stream-recorder/README.md | 14 +++++++------- .../live-stream-recorder/README.zh-CN.md | 14 +++++++------- ...dOutline-B3zs4SfZ.js => AddOutline-DDWMaSa8.js} | 2 +- .../{AppShell-DbUrPyr3.js => AppShell-DH1IaDgc.js} | 2 +- ...Group-D0_230aG.js => CheckboxGroup-iTsKmCjZ.js} | 2 +- ...NfViS-K.js => CloudDownloadOutline-Cwn6t3sl.js} | 2 +- ...DseBRj1r.js => DocumentTextOutline-BvVIG18e.js} | 2 +- ...ine-B8-YKzxV.js => DownloadOutline-ZlR9MTyd.js} | 2 +- ...ptyState-5zQu_Ia9.js => EmptyState-CGA7qM0U.js} | 2 +- ...Outline-aQuldXl1.js => FilmOutline-DCmf1Zmt.js} | 2 +- ...e-CYx8moNZ.js => GitCompareOutline-4zZKl19q.js} | 2 +- .../{Input-B9LQLjz_.js => Input-DS3FhrY_.js} | 2 +- ...LoginView-CgZHTqn3.js => LoginView-DFTjbjn3.js} | 2 +- ...utline-B6Qrxbd0.js => PulseOutline-Da42XzaM.js} | 2 +- ...View-C0q9wGjN.js => RecordingsView-CS8l23Jb.js} | 2 +- ...line-CjuuDK9l.js => RefreshOutline-CIl2qHSI.js} | 2 +- ...RelayView-BkgkRPye.js => RelayView-h5lf4-Vn.js} | 2 +- ...tline-DiOWHHh0.js => SearchOutline-BOYIL3j0.js} | 2 +- .../{Select-yKeAXmxd.js => Select-P9AqjsDB.js} | 2 +- ...ew-D5h30p8f.js => ServiceErrorView-L-sskm9b.js} | 2 +- .../client/assets/SettingsView-BYZ7Hiig.css | 1 - ...gsView-CaYIvJoC.js => SettingsView-CJoqn3Jp.js} | 4 ++-- .../client/assets/SettingsView-Cfxh_2g_.css | 1 + ...View-Bizgy-un.js => ShortVideoView-Cq5T4anl.js} | 2 +- .../assets/{Spin-IfgPhZdn.js => Spin-CCColBh4.js} | 2 +- ...sView-B0GCV62j.js => StreamersView-B415Ci4w.js} | 2 +- .../{Switch-CwiTSVeN.js => Switch-C33rKL-M.js} | 2 +- ...ine-Br_v12hA.js => VideocamOutline-DoUnrAre.js} | 2 +- ...Wj.js => _plugin-vue_export-helper-DdbJvs3T.js} | 2 +- .../miniapp/client/assets/engine-state-Cu8p5L8n.js | 1 + .../miniapp/client/assets/engine-state-zmQVlIbS.js | 1 - .../{engine-BukwEF_1.js => engine-vojgPPhH.js} | 2 +- .../{index-W7SBB4Eq.js => index-Bmcyfv7z.js} | 4 ++-- ...streamers-BpUYLHe6.js => streamers-D5Y-fBfU.js} | 2 +- ...able-D8hAoj1z.js => use-compitable-CSVBov8c.js} | 2 +- ...message-DkYn5b6o.js => use-message-BaVpnNbE.js} | 2 +- .../live-stream-recorder/miniapp/client/index.html | 2 +- 37 files changed, 49 insertions(+), 49 deletions(-) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AddOutline-B3zs4SfZ.js => AddOutline-DDWMaSa8.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{AppShell-DbUrPyr3.js => AppShell-DH1IaDgc.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CheckboxGroup-D0_230aG.js => CheckboxGroup-iTsKmCjZ.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{CloudDownloadOutline-SNfViS-K.js => CloudDownloadOutline-Cwn6t3sl.js} (92%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DocumentTextOutline-DseBRj1r.js => DocumentTextOutline-BvVIG18e.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{DownloadOutline-B8-YKzxV.js => DownloadOutline-ZlR9MTyd.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{EmptyState-5zQu_Ia9.js => EmptyState-CGA7qM0U.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{FilmOutline-aQuldXl1.js => FilmOutline-DCmf1Zmt.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{GitCompareOutline-CYx8moNZ.js => GitCompareOutline-4zZKl19q.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Input-B9LQLjz_.js => Input-DS3FhrY_.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{LoginView-CgZHTqn3.js => LoginView-DFTjbjn3.js} (94%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{PulseOutline-B6Qrxbd0.js => PulseOutline-Da42XzaM.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RecordingsView-C0q9wGjN.js => RecordingsView-CS8l23Jb.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RefreshOutline-CjuuDK9l.js => RefreshOutline-CIl2qHSI.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{RelayView-BkgkRPye.js => RelayView-h5lf4-Vn.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{SearchOutline-DiOWHHh0.js => SearchOutline-BOYIL3j0.js} (89%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Select-yKeAXmxd.js => Select-P9AqjsDB.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ServiceErrorView-D5h30p8f.js => ServiceErrorView-L-sskm9b.js} (94%) delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-BYZ7Hiig.css rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{SettingsView-CaYIvJoC.js => SettingsView-CJoqn3Jp.js} (83%) create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Cfxh_2g_.css rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{ShortVideoView-Bizgy-un.js => ShortVideoView-Cq5T4anl.js} (97%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Spin-IfgPhZdn.js => Spin-CCColBh4.js} (96%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{StreamersView-B0GCV62j.js => StreamersView-B415Ci4w.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{Switch-CwiTSVeN.js => Switch-C33rKL-M.js} (98%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{VideocamOutline-Br_v12hA.js => VideocamOutline-DoUnrAre.js} (91%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{_plugin-vue_export-helper-B_0nS7Wj.js => _plugin-vue_export-helper-DdbJvs3T.js} (96%) create mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-Cu8p5L8n.js delete mode 100644 plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-zmQVlIbS.js rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{engine-BukwEF_1.js => engine-vojgPPhH.js} (73%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{index-W7SBB4Eq.js => index-Bmcyfv7z.js} (99%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{streamers-BpUYLHe6.js => streamers-D5Y-fBfU.js} (90%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-compitable-D8hAoj1z.js => use-compitable-CSVBov8c.js} (76%) rename plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/{use-message-DkYn5b6o.js => use-message-BaVpnNbE.js} (99%) diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md index 4e8f4118..e33065ee 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.md +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -2,9 +2,9 @@ [简体中文](README.zh-CN.md) -A native MiniMax Code Mini App that turns the biliup recording engine into a desktop-style workbench: monitor multiple livestream rooms, record them with danmaku capture, replay and clip recordings, back up short videos, and manage relay tasks -- all inside the chat client. +A native MiniMax Code Mini App that turns the recording engine into a desktop-style workbench: monitor multiple livestream rooms, record them with danmaku capture, replay and clip recordings, back up short videos, and manage relay tasks -- all inside the chat client. -This package is a **client/workbench only**. It does not bundle the recording engine. You must supply a `biliup` binary (sidecar mode) or point it at a running biliup server (remote mode). Without an engine the pages still open and show an `engine not ready` state instead of crashing. +This package is a **client/workbench only**. It does not bundle the recording engine. You must supply a recording-engine binary (sidecar mode) or point it at a running engine server (remote mode). Without an engine the pages still open and show an `engine not ready` state instead of crashing. ## Install and open @@ -16,25 +16,25 @@ This package is a **client/workbench only**. It does not bundle the recording en On the **Settings** page choose one of two modes: -- **Sidecar (default).** Set `binaryPath` to your `biliup` executable, or place `biliup` / `biliup.exe` in `/bin/`, or put it on `PATH`. The app spawns `biliup server -b 127.0.0.1 -p --no-fleet --shutdown-on-stdin-eof` (older binaries fall back to `--relay-listen 127.0.0.1:0`) and proxies the UI to it over loopback. -- **Remote.** Set `remote.baseUrl` to the `http(s)` address of an already-running biliup server, with optional none / cookie / Bearer-token authentication. Link-local and cloud-metadata addresses are rejected. +- **Sidecar (default).** Set `binaryPath` to your recording-engine executable, or place the engine executable under its original filename in `/bin/`, or put it on `PATH`. The app launches the engine in server mode with `-b 127.0.0.1 -p --no-fleet --shutdown-on-stdin-eof` (older engines fall back to `--relay-listen 127.0.0.1:0`) and proxies the UI to it over loopback. +- **Remote.** Set `remote.baseUrl` to the `http(s)` address of an already-running engine server, with optional none / cookie / Bearer-token authentication. Link-local and cloud-metadata addresses are rejected. Optional external transcoding and stream-download tools are used by the recording engine itself, not by this Mini App. ## Tested environment -- MiniMax Code 3.1.23 (exe 3.1.23.240) on Microsoft Windows 11 Pro (build 26200) x64. The package declares `engines.mcode: ">=3.1.20"` and `permissions`, which first require that client version. +- MiniMax Code 3.1.23 (exe 3.1.23.240) on Windows 11 Pro (build 26200) x64. The package declares `engines.mcode: ">=3.1.20"` and `permissions`, which first require that client version. - Client acceptance (2026-12-05, FilePanel Browser) exercised: cold start and readiness in 400-465 ms; Host-reserved `/__mavis/` returning 401 with no SPA fallback; private-route 404 interception; loopback-only network activity with zero external requests; the 584 px narrow-screen layout and both themes; the Settings diagnostics and notification permission controls. Two defects found during acceptance were fixed and re-verified. No recording engine or live stream source was available, so engine-dependent behavior was not exercised at runtime. - Source-project structural gates: `--fast` 11/11 and `--full` 14/14. Community-repository `npm run check` result is recorded in the pull request. - Not verified at runtime: real recording, process-tree teardown with a live engine, multi-session / sleep recovery, remote 401 handling, large-file range playback, and local-file open routing. See the pull request for the full list. ## Data & access -- **Files read/written (Node):** `context.dataDir/miniapp-config.json` is created (mode `0600` where supported) and written when configuration changes. It stores `mode`, optional `binaryPath`, `ffmpegPath`, `renderToolsDir`, `desktopToken`, and `remote.{baseUrl, authMode, username, appPassword, token}`. Secret fields are blanked in the API response and replaced with `has*` flags. The binary is probed for existence at the configured path, `/bin/biliup[.exe]`, and on `PATH`; no file there is copied into the package. +- **Files read/written (Node):** `context.dataDir/miniapp-config.json` is created (mode `0600` where supported) and written when configuration changes. It stores `mode`, optional `binaryPath`, `ffmpegPath`, `renderToolsDir`, `desktopToken`, and `remote.{baseUrl, authMode, username, appPassword, token}`. Secret fields are blanked in the API response and replaced with `has*` flags. The binary is probed for existence at the configured path, inside `/bin/` under its original filename, and on `PATH`; no file there is copied into the package. - **Files read (client payload):** the package's own `miniapp/client/` static assets, served read-only. A local recording is read only when you open a supported file in MiniMax Code: the Host delivers its path, Node registers it as an opaque in-memory token (10-minute TTL), and the page reads it by token only -- the path is never echoed back. - **File types handled:** `.flv`, `.mp4`, `.mkv`, `.webm`, `.xml` (declared in `fileHandlers`). - **Network:** the Node entry listens only on the Host-assigned `context.listen` (loopback, dynamic port). In sidecar mode it connects to `http://127.0.0.1:`; in remote mode to the user-configured `baseUrl`. Outbound requests go only to that engine: a reverse proxy for `/v1/`, `/bili/`, `/static/`, WebSocket `/v1/ws/*`, and a 3-second `/v1/activity-events` poll. No third-party host is contacted directly by the page. There is no telemetry, update check, or analytics. -- **Spawned processes:** `biliup` / `biliup.exe` as a sidecar, including a startup `--help` capability probe, a `where` / `which biliup` PATH lookup, and `taskkill /PID /T /F` or `kill(-pid)` only as a shutdown fallback. Optional external transcoding and stream-download tools, if used, are launched by the recording engine, not by this Mini App. +- **Spawned processes:** the recording-engine executable as a sidecar, including a startup `--help` capability probe, a `where` / `which` PATH lookup for the engine executable, and `taskkill /PID /T /F` or `kill(-pid)` only as a shutdown fallback. Optional external transcoding and stream-download tools, if used, are launched by the recording engine, not by this Mini App. - **Agent turns / conversations:** none automatically. Two buttons call `window.miniapp.host.composer.append` to place text into the chat input for you to review and send: "Send diagnostics to Agent" (redacted log lines) and "Generate clip plan" (recording metadata and danmaku density peaks). Those prompts mention MCP tool names, but this package declares no MCP servers and calls no tools itself. No conversation is read. - **Tools / Connectors:** none. `apps`, `mcpServers`, `skills`, and every `permissions` grant except `device.notifications` are empty. - **Microphone / camera / Host navigation:** none. diff --git a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md index 1d62c49e..9a3f7f61 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md +++ b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md @@ -2,9 +2,9 @@ [English](README.md) -原生 MiniMax Code Mini App,把 biliup 录制引擎变成桌面式工作台:在聊天客户端里监控多个直播房间、录制并保存弹幕、回看与切片、备份短视频、管理转播任务。 +原生 MiniMax Code Mini App,把录制引擎变成桌面式工作台:在聊天客户端里监控多个直播房间、录制并保存弹幕、回看与切片、备份短视频、管理转播任务。 -本包**只是客户端/工作台**,不捆绑录制引擎。你需要自备 `biliup` 可执行文件(sidecar 模式),或指向一个正在运行的 biliup 服务(remote 模式)。没有引擎时页面照常打开并显示 `engine not ready` 状态,不会崩溃。 +本包**只是客户端/工作台**,不捆绑录制引擎。你需要自备录制引擎可执行文件(sidecar 模式),或指向一个正在运行的引擎服务(remote 模式)。没有引擎时页面照常打开并显示 `engine not ready` 状态,不会崩溃。 ## 安装与打开 @@ -16,25 +16,25 @@ 在**设置**页选择两种模式之一: -- **Sidecar(默认)**:把 `binaryPath` 指向你的 `biliup` 可执行文件,或把 `biliup` / `biliup.exe` 放到 `/bin/`,或加入 `PATH`。应用会拉起 `biliup server -b 127.0.0.1 -p <空闲端口> --no-fleet --shutdown-on-stdin-eof`(旧版降级为 `--relay-listen 127.0.0.1:0`),并通过回环地址代理界面。 -- **Remote**:把 `remote.baseUrl` 设为正在运行的 biliup 服务的 `http(s)` 地址,认证可选 无 / Cookie / Bearer Token。链路本地与云元数据地址会被拒绝。 +- **Sidecar(默认)**:把 `binaryPath` 指向你的录制引擎可执行文件,或把引擎可执行文件按原文件名放到 `/bin/`,或加入 `PATH`。应用会以 server 模式拉起引擎并传入 `-b 127.0.0.1 -p <空闲端口> --no-fleet --shutdown-on-stdin-eof`(旧版降级为 `--relay-listen 127.0.0.1:0`),并通过回环地址代理界面。 +- **Remote**:把 `remote.baseUrl` 设为正在运行的引擎服务的 `http(s)` 地址,认证可选 无 / Cookie / Bearer Token。链路本地与云元数据地址会被拒绝。 外部转码与流下载工具为录制引擎自选工具,不属于本 Mini App。 ## 测试环境 -- MiniMax Code 3.1.23(exe 3.1.23.240),Microsoft Windows 11 Pro(build 26200)x64。本包声明 `engines.mcode: ">=3.1.20"` 与 `permissions`,这些特性从该版本起可用。 +- MiniMax Code 3.1.23(exe 3.1.23.240),Windows 11 Pro(build 26200)x64。本包声明 `engines.mcode: ">=3.1.20"` 与 `permissions`,这些特性从该版本起可用。 - 客户端验收(2026-12-05,FilePanel Browser):冷启动与就绪 400–465 ms;宿主保留路径 `/__mavis/` 返回 401 且无 SPA 回退;私有路由 404 拦截;仅回环网络、零外部请求;584 px 窄屏布局与两套主题;设置页诊断与通知权限控件。验收中发现的两个缺陷已修复并复验。验收环境没有录制引擎与直播源,依赖引擎的行为未在运行态验证。 - 源项目结构门禁:11/11。`npm run check` 结果见 PR 描述。 - 未在运行态验证:真实录制、有活引擎时的进程树回收、多会话/休眠恢复、远端 401、大文件拖动播放、本地文件投递。完整列表见 PR。 ## 数据与访问 -- **读写文件(Node)**:`context.dataDir/miniapp-config.json` 在配置变化时创建(支持时权限 `0600`)并写入,存放 `mode`、可选的 `binaryPath`、`ffmpegPath`、`renderToolsDir`、`desktopToken` 及 `remote.{baseUrl, authMode, username, appPassword, token}`。敏感字段在 API 响应中置空并以 `has*` 标志替代。引擎二进制只做存在性探测(配置路径、`/bin/biliup[.exe]`、`PATH`),不会拷进包里。 +- **读写文件(Node)**:`context.dataDir/miniapp-config.json` 在配置变化时创建(支持时权限 `0600`)并写入,存放 `mode`、可选的 `binaryPath`、`ffmpegPath`、`renderToolsDir`、`desktopToken` 及 `remote.{baseUrl, authMode, username, appPassword, token}`。敏感字段在 API 响应中置空并以 `has*` 标志替代。引擎二进制只做存在性探测(配置路径、`/bin/` 下按原文件名的引擎可执行文件、`PATH`),不会拷进包里。 - **读取文件(客户端载荷)**:仅只读提供包内 `miniapp/client/` 静态资源。只有你在 MiniMax Code 里打开受支持的文件时才会读取本地录像:宿主投递路径,Node 登记为不透明内存 token(10 分钟有效),页面只按 token 读取——路径绝不回显。 - **处理的文件类型**:`.flv`、`.mp4`、`.mkv`、`.webm`、`.xml`(在 `fileHandlers` 中声明)。 - **网络**:Node 入口只监听宿主分配的 `context.listen`(回环、动态端口)。sidecar 模式连接 `http://127.0.0.1:<空闲端口>`;remote 模式连接用户配置的 `baseUrl`。出站请求只发往该引擎:`/v1/`、`/bili/`、`/static/` 的反向代理、WebSocket `/v1/ws/*`、每 3 秒一次的 `/v1/activity-events` 轮询。页面不直连任何第三方主机;无遥测、更新检查或统计。 -- **拉起的进程**:sidecar 模式的 `biliup` / `biliup.exe`,包括启动时的 `--help` 能力探测、`where` / `which biliup` 的 PATH 查询,以及仅在关闭兜底时使用的 `taskkill /PID /T /F` 或 `kill(-pid)`。外部转码与流下载工具如被使用,由录制引擎而非本 Mini App 拉起。 +- **拉起的进程**:sidecar 模式的录制引擎可执行文件,包括启动时的 `--help` 能力探测、`where` / `which` 对引擎可执行文件的 PATH 查询,以及仅在关闭兜底时使用的 `taskkill /PID /T /F` 或 `kill(-pid)`。外部转码与流下载工具如被使用,由录制引擎而非本 Mini App 拉起。 - **Agent 轮次 / 会话**:不会自动触发。两个按钮会调用 `window.miniapp.host.composer.append` 把文本放进输入框供你确认后发送:"把诊断交给 Agent"(脱敏日志)与"生成切片方案"(录像元数据与弹幕密度峰值)。这些提示词提到 MCP 工具名,但本包不声明任何 MCP 服务,也不自行调用工具。不读取任何会话。 - **工具 / Connector**:无。`apps`、`mcpServers`、`skills` 以及除 `device.notifications` 外的所有 `permissions` 授权均为空。 - **麦克风 / 摄像头 / 宿主导航读取**:无。 diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-B3zs4SfZ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-DDWMaSa8.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-B3zs4SfZ.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-DDWMaSa8.js index 42f1343e..1a22833e 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-B3zs4SfZ.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AddOutline-DDWMaSa8.js @@ -1,4 +1,4 @@ -import{W as de,a$ as Xe,L as Ye,A as et,O as Je,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b0 as Ke,Z as Se,r as G,aJ as tt,a7 as ve,j as F,a as Ae,n as qe,e as rt,b1 as nt,T as it,b2 as ze,ae as be,b as at,ac as st,F as Le,Q as ot,_ as Ve,af as U,b3 as lt}from"./index-W7SBB4Eq.js";import{f as Fe}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{g as Ze}from"./use-message-DkYn5b6o.js";function ft(n,e,t){const r=de(n,null);if(r===null)return;const i=Xe()?.proxy;Ye(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}const ce=Je("n-form"),Qe=Je("n-form-item-insts");var dt=N("form",[B("inline",` +import{W as de,a$ as Xe,L as Ye,A as et,O as Je,a2 as N,a6 as B,a4 as ie,d as Me,a8 as xe,o as O,c as $,R as _,P as I,aa as Ie,as as Re,b0 as Ke,Z as Se,r as G,aJ as tt,a7 as ve,j as F,a as Ae,n as qe,e as rt,b1 as nt,T as it,b2 as ze,ae as be,b as at,ac as st,F as Le,Q as ot,_ as Ve,af as U,b3 as lt}from"./index-Bmcyfv7z.js";import{f as Fe}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{g as Ze}from"./use-message-BaVpnNbE.js";function ft(n,e,t){const r=de(n,null);if(r===null)return;const i=Xe()?.proxy;Ye(t,a),a(t.value),et(()=>{a(void 0,t.value)});function a(l,c){if(!r)return;const m=r[e];c!==void 0&&s(m,c),l!==void 0&&o(m,l)}function s(l,c){l[c]||(l[c]=[]),l[c].splice(l[c].findIndex(m=>m===i),1)}function o(l,c){l[c]||(l[c]=[]),~l[c].findIndex(m=>m===i)||l[c].push(i)}}const ce=Je("n-form"),Qe=Je("n-form-item-insts");var dt=N("form",[B("inline",` width: 100%; display: inline-flex; align-items: flex-start; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DbUrPyr3.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DH1IaDgc.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DbUrPyr3.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DH1IaDgc.js index e30352c8..ce0294fc 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DbUrPyr3.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/AppShell-DH1IaDgc.js @@ -1 +1 @@ -import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-W7SBB4Eq.js";import{T as J,P as ue}from"./PulseOutline-B6Qrxbd0.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as de}from"./use-message-DkYn5b6o.js";import{g as ce}from"./streamers-BpUYLHe6.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-BukwEF_1.js";import{e as f}from"./engine-state-zmQVlIbS.js";import{C as fe}from"./CheckboxGroup-D0_230aG.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-Br_v12hA.js";import{F as _e}from"./FilmOutline-aQuldXl1.js";import{G as ke}from"./GitCompareOutline-CYx8moNZ.js";import{C as ge}from"./CloudDownloadOutline-SNfViS-K.js";import"./use-compitable-D8hAoj1z.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; +import{d as L,o,c as u,y as se,a as e,i as O,w as l,z as R,u as t,t as d,g as h,f as m,e as i,B as V,r as C,b as z,A as ae,F as U,C as q,D as T,j as B,E as W,T as re,q as le,k as ie}from"./index-Bmcyfv7z.js";import{T as J,P as ue}from"./PulseOutline-Da42XzaM.js";import{_ as K,N as I}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as de}from"./use-message-BaVpnNbE.js";import{g as ce}from"./streamers-D5Y-fBfU.js";import{i as M,e as P}from"./runtime-bridge-DmDzFGpU.js";import{E as H,s as pe,c as ve,g as me}from"./engine-vojgPPhH.js";import{e as f}from"./engine-state-Cu8p5L8n.js";import{C as fe}from"./CheckboxGroup-iTsKmCjZ.js";import{l as he}from"./logo-X-myaeP_.js";import{V as we}from"./VideocamOutline-DoUnrAre.js";import{F as _e}from"./FilmOutline-DCmf1Zmt.js";import{G as ke}from"./GitCompareOutline-4zZKl19q.js";import{C as ge}from"./CloudDownloadOutline-Cwn6t3sl.js";import"./use-compitable-CSVBov8c.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ye=L({name:"ExpandOutline",render:function(_,a){return o(),u("svg",be,a[0]||(a[0]=[se('',8)]))}}),Ce={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xe=L({name:"LogOutOutline",render:function(_,a){return o(),u("svg",Ce,a[0]||(a[0]=[e("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ee=L({name:"SettingsOutline",render:function(_,a){return o(),u("svg",Se,a[0]||(a[0]=[e("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Me={class:"engine-dialog"},Oe={key:0,class:"hint"},Le={key:1,class:"hint"},Ne={key:2,class:"hint"},De={key:3,class:"manual-list"},je={class:"dialog-actions"},Be=L({__name:"EngineInstallDialog",props:{show:{type:Boolean},status:{}},emits:["download","later"],setup(x,{emit:_}){const a=x,k=_,S=C(!1),g=C(!1);function b(){if(S.value)try{localStorage.setItem("lsr-engine-never-prompt","1")}catch{}}function c(){b(),k("later")}function y(){b(),k("download")}return(A,n)=>{const E=R("n-modal");return o(),O(E,{show:a.show,preset:"card",bordered:!1,style:{width:"620px","max-width":"92vw"},title:"安装录播引擎"},{default:l(()=>[e("div",Me,[n[7]||(n[7]=e("p",null,"录播引擎不随包分发:社区限制单文件 16 MiB,引擎约 97 MB。",-1)),n[8]||(n[8]=e("p",null,"点击下载后,将从本项目发布页下载 Windows x64 版。",-1)),n[9]||(n[9]=e("p",null,"下载完成后会校验 SHA-256,校验不通过不会安装。",-1)),t(H)?a.status?.state==="unsupported"?(o(),u("div",Le,"当前系统暂无引擎版本,请按手动方式安装。")):a.status?.error?(o(),u("div",Ne,d(a.status.error),1)):h("",!0):(o(),u("div",Oe,"引擎下载尚未配置")),g.value?(o(),u("ol",De,[...n[2]||(n[2]=[e("li",null,[m("把引擎可执行文件放到插件数据目录的 "),e("code",null,"bin/"),m(" 子目录。")],-1),e("li",null,"或在配置里指定引擎可执行文件的路径。",-1),e("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):h("",!0),e("div",je,[i(t(fe),{checked:S.value,"onUpdate:checked":n[0]||(n[0]=N=>S.value=N)},{default:l(()=>[...n[3]||(n[3]=[m("不再提示",-1)])]),_:1},8,["checked"]),n[6]||(n[6]=e("span",{class:"spacer"},null,-1)),i(t(V),{quaternary:"",onClick:n[1]||(n[1]=N=>g.value=!g.value)},{default:l(()=>[m(d(g.value?"收起手动说明":"我自己安装"),1)]),_:1}),i(t(V),{quaternary:"",onClick:c},{default:l(()=>[...n[4]||(n[4]=[m("稍后再说",-1)])]),_:1}),i(t(V),{type:"primary",disabled:!t(H)||a.status?.state==="unsupported",onClick:y},{default:l(()=>[...n[5]||(n[5]=[m(" 下载并安装 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),Ie=K(Be,[["__scopeId","data-v-31ffe3eb"]]),Ae={class:"shell"},$e={class:"sidebar"},Ve={class:"brand"},ze={class:"brand-mark"},Te=["src"],Pe={class:"nav"},Re={class:"nav-copy"},He={class:"nav-label"},Fe={class:"nav-hint"},Ge={class:"side-foot"},Ue={class:"server-line"},qe={key:0,class:"mono ver"},We={class:"user-card"},Je={class:"avatar"},Ke={class:"user-meta"},Qe={class:"user-name"},Xe={class:"user-role"},Ye={class:"main"},Ze={class:"topbar"},et={class:"crumb"},tt={class:"crumb-current"},nt={class:"top-actions"},ot={class:"tab-bar","aria-label":"主导航"},st={key:0,class:"offline-banner",role:"alert"},at={key:1,class:"engine-banner",role:"alert"},rt={key:0,class:"engine-banner-note"},lt=L({__name:"AppShell",setup(x){const _=ie(),a=de(),{me:k,loadMe:S,signOut:g}=le(),b=C(""),c=C(!0),y=C(!1),A=C(!1);let n;const E=[{name:"live",label:"直播监控",icon:we,hint:"主播与录制状态"},{name:"recordings",label:"录像库",icon:_e,hint:"场次与文件"},{name:"relay",label:"直播转播",icon:ke,hint:"同步推送到视频号/抖音/快手"},{name:"shortvideo",label:"作品备份",icon:ge,hint:"抖音单条视频/图集"},{name:"settings",label:"录制设置",icon:Ee,hint:"保存、画质与抖音参数"}],N=B(()=>E.find(r=>r.name===_.name)?.label??"直播监控"),$=B(()=>k.value?.auth_enabled===!1),F=B(()=>$.value?"本机用户":k.value?.username??"未登录"),Q=B(()=>{if($.value)return"本机模式";const r=k.value?.role;return r==="admin"?"管理员":r==="operator"?"协作者":r==="viewer"?"只读":r??""});async function X(){try{await S()}catch{c.value=!1}try{const r=await ce();b.value=r.version??"",c.value=!0}catch{c.value=!1}}z(X);function Y(){try{return localStorage.getItem("lsr-engine-never-prompt")==="1"}catch{return!1}}async function D(){if(M())try{const r=await me();f.value=r,!A.value&&!Y()&&r.state!=="ready"&&(A.value=!0,y.value=!0)}catch{f.value=null}}async function G(){y.value=!1;try{await pe(),await D()}catch(r){a.error(P(r))}}function Z(){y.value=!1}async function ee(){try{await ve(),await D()}catch(r){a.error(P(r))}}function te(){if(!M()||!window.miniapp?.window?.update)return;const s=window.miniapp.window.getState?.()?.modeChangeReloadsPage===!0;if(s)try{sessionStorage.setItem("lsr-popout-draft",window.location.hash)}catch{}window.miniapp.window.update({mode:"window",width:1200,height:800}).then(w=>{if(s&&w.mode!=="window")try{sessionStorage.removeItem("lsr-popout-draft")}catch{}}).catch(w=>{a.error(P(w))})}let j=null;function ne(){if(!(!M()||typeof EventSource>"u"))try{j=new EventSource("/_miniapp/events"),j.onmessage=r=>{try{const s=JSON.parse(r.data);if(s.type&&s.type!=="activity")return;const v=s.kind??"";if(v!=="start"&&v!=="end"&&v!=="file"&&v!=="render"||typeof Notification>"u"||Notification.permission!=="granted")return;const w=v==="start"?"直播已开播":v==="render"?"压制完成":"录制完成";new Notification(w,{body:s.text||"Live Stream Recorder 事件通知"})}catch{}}}catch{}}z(ne),z(()=>{D(),n=window.setInterval(()=>{D()},1500)}),ae(()=>{j?.close(),j=null,n!==void 0&&(window.clearInterval(n),n=void 0)});async function oe(){await g(),a.success("已退出登录")}return(r,s)=>{const v=R("router-link"),w=R("router-view");return o(),u("div",Ae,[e("aside",$e,[e("div",Ve,[e("div",ze,[e("img",{src:t(he),alt:"Live Stream Recorder"},null,8,Te)]),s[0]||(s[0]=e("div",{class:"brand-text"},[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-sub"},"直播录屏助手")],-1))]),e("nav",Pe,[(o(),u(U,null,q(E,p=>i(v,{key:p.name,to:{name:p.name},class:"nav-item","active-class":"active"},{default:l(()=>[i(t(I),{size:19,class:"nav-icon"},{default:l(()=>[(o(),O(W(p.icon)))]),_:2},1024),e("span",Re,[e("span",He,d(p.label),1),e("span",Fe,d(p.hint),1)])]),_:2},1032,["to"])),64))]),e("div",Ge,[e("div",Ue,[e("span",{class:T(["dot",{off:!c.value}])},null,2),e("span",null,d(c.value?"录制服务已连接":"录制服务未连接"),1),b.value?(o(),u("span",qe,"v"+d(b.value),1)):h("",!0)]),e("div",We,[e("div",Je,d(F.value.slice(0,1).toUpperCase()),1),e("div",Ke,[e("div",Qe,d(F.value),1),e("div",Xe,d(Q.value),1)]),$.value?h("",!0):(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn","aria-label":"退出登录",onClick:oe},[i(t(I),{size:18},{default:l(()=>[i(t(xe))]),_:1})])]),default:l(()=>[s[1]||(s[1]=m(" 退出登录 ",-1))]),_:1}))])])]),e("main",Ye,[e("header",Ze,[e("div",et,[i(t(I),{size:15,class:"crumb-icon"},{default:l(()=>[i(t(ue))]),_:1}),s[2]||(s[2]=e("span",{class:"crumb-root"},"Live Stream Recorder",-1)),s[3]||(s[3]=e("span",{class:"crumb-sep"},"/",-1)),e("span",tt,d(N.value),1)]),e("div",nt,[t(M)()?(o(),O(t(J),{key:0,trigger:"hover"},{trigger:l(()=>[e("button",{class:"icon-btn top-popout","aria-label":"弹出独立窗口",onClick:te},[i(t(I),{size:18},{default:l(()=>[i(t(ye))]),_:1})])]),default:l(()=>[s[4]||(s[4]=m(" 弹出独立窗口 ",-1))]),_:1})):h("",!0),e("span",{class:T(["top-status",{off:!c.value}])},[e("span",{class:T(["dot",{off:!c.value}])},null,2),m(" "+d(c.value?"服务在线":"服务离线"),1)],2)])]),e("nav",ot,[(o(),u(U,null,q(E,p=>i(v,{key:"tab-"+p.name,to:{name:p.name},class:"tab-item","active-class":"active"},{default:l(()=>[m(d(p.label),1)]),_:2},1032,["to"])),64))]),c.value?h("",!0):(o(),u("div",st," 未连接录制服务:请检查后端是否运行,登录状态可能已失效 ")),t(M)()&&t(f)&&t(f).state!=="ready"?(o(),u("div",at,[s[5]||(s[5]=e("span",null,"未安装录播引擎,录制功能不可用",-1)),t(H)?t(f).state==="missing"||t(f).state==="failed"?(o(),u("button",{key:1,class:"engine-banner-action",type:"button",onClick:G},"立即安装")):t(f).state==="downloading"||t(f).state==="verifying"?(o(),u("button",{key:2,class:"engine-banner-action",type:"button",onClick:ee},"取消下载")):h("",!0):(o(),u("span",rt,"引擎下载尚未配置"))])):h("",!0),i(w,null,{default:l(({Component:p})=>[i(re,{name:"page-fade",mode:"out-in"},{default:l(()=>[(o(),O(W(p)))]),_:2},1024)]),_:1})]),i(Ie,{show:y.value,status:t(f),onDownload:G,onLater:Z},null,8,["show","status"])])}}}),Ct=K(lt,[["__scopeId","data-v-6108b203"]]);export{Ct as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-D0_230aG.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-iTsKmCjZ.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-D0_230aG.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-iTsKmCjZ.js index d5e200a8..ef423e10 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-D0_230aG.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CheckboxGroup-iTsKmCjZ.js @@ -1,4 +1,4 @@ -import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,ba as se,bb as be,bc as he,d as ue,a8 as E,b1 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,bd as pe,aj as Ce,ac as ye,b2 as we,j as P,ad as T,W as ze,be as Re,bf as Se,af as j,ae as _e,O as De}from"./index-W7SBB4Eq.js";import{u as Be}from"./use-compitable-D8hAoj1z.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` +import{N as V,a as k,a4 as l,a2 as r,a6 as h,a7 as s,ba as se,bb as be,bc as he,d as ue,a8 as E,b1 as ke,o as _,c as D,R as w,P as u,e as fe,K as ve,n as xe,aa as me,r as N,Y as ge,bd as pe,aj as Ce,ac as ye,b2 as we,j as P,ad as T,W as ze,be as Re,bf as Se,af as j,ae as _e,O as De}from"./index-Bmcyfv7z.js";import{u as Be}from"./use-compitable-CSVBov8c.js";var $e=()=>(()=>{const e=V("75be776d8875fa17");return e[0]||(e[0]=k("svg",{viewBox:"0 0 64 64",class:"check-icon"},[k("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})],-1))})(),Me=()=>(()=>{const e=V("c6eed899356c8404");return e[0]||(e[0]=k("svg",{viewBox:"0 0 100 100",class:"line-icon"},[k("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})],-1))})(),Te=l([r("checkbox",` font-size: var(--n-font-size); outline: none; cursor: pointer; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-SNfViS-K.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Cwn6t3sl.js similarity index 92% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-SNfViS-K.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Cwn6t3sl.js index bb909d69..4f67ef5f 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-SNfViS-K.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/CloudDownloadOutline-Cwn6t3sl.js @@ -1 +1 @@ -import{d as e,o as r,c as t,a as o}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; +import{d as e,o as r,c as t,a as o}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},u=e({name:"CloudDownloadOutline",render:function(i,n){return r(),t("svg",l,n[0]||(n[0]=[o("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2c-60 5.7-112 35.88-112 98.4S70 336 136 336h56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 400.1l64 63.9l64-63.9"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 224v224.03"},null,-1)]))}});export{u as C}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-DseBRj1r.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BvVIG18e.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-DseBRj1r.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BvVIG18e.js index caaae1c1..1b183cc1 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-DseBRj1r.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DocumentTextOutline-BvVIG18e.js @@ -1,4 +1,4 @@ -import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,bd as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b1 as te,R as ne,bi as Ee,bj as je,ay as re,az as le,bk as ie,ae as He}from"./index-W7SBB4Eq.js";import{I as Le,u as Ke}from"./Input-B9LQLjz_.js";import{u as Ge}from"./use-compitable-D8hAoj1z.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` +import{d as T,N as se,a as m,a4 as Oe,a2 as Z,a8 as de,o,c as C,i as v,P as L,aa as Fe,bd as Ae,r as k,Y as b,L as Ue,aj as _e,j as ze,ad as x,au as $e,K as ee,b1 as te,R as ne,bi as Ee,bj as je,ay as re,az as le,bk as ie,ae as He}from"./index-Bmcyfv7z.js";import{I as Le,u as Ke}from"./Input-DS3FhrY_.js";import{u as Ge}from"./use-compitable-CSVBov8c.js";var We=T({name:"Add",render(){return(()=>{const e=se("b30130fbba5c5b23");return e[0]||(e[0]=m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),Xe=T({name:"Remove",render(){return(()=>{const e=se("a77472467b8adb0a");return e[0]||(e[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-B8-YKzxV.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-ZlR9MTyd.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-B8-YKzxV.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-ZlR9MTyd.js index 4e78b1e3..0cbe51e2 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-B8-YKzxV.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/DownloadOutline-ZlR9MTyd.js @@ -1 +1 @@ -import{d as e,c as r,a as o,o as t}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; +import{d as e,c as r,a as o,o as t}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"DownloadOutline",render:function(i,n){return t(),r("svg",l,n[0]||(n[0]=[o("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}});export{d as D}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-5zQu_Ia9.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CGA7qM0U.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-5zQu_Ia9.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CGA7qM0U.js index fa48d329..5134c0cc 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-5zQu_Ia9.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/EmptyState-CGA7qM0U.js @@ -1 +1 @@ -import{N as m,_ as l}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-W7SBB4Eq.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; +import{N as m,_ as l}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{d as i,c,D as d,a as e,t as o,e as _,u as r,w as h,g as n,o as a,i as p,E as f,aU as v}from"./index-Bmcyfv7z.js";function w(t){return s=>{s?t.value=s.$el:t.value=null}}const y={class:"tile-top"},S={class:"tile-label"},$={key:0,class:"tile-icon"},k={class:"tile-value mono"},B={key:0,class:"tile-hint"},C=i({__name:"StatTile",props:{label:{},value:{},hint:{},icon:{},tone:{default:"default"}},setup(t){return(s,u)=>(a(),c("div",{class:d(["tile",t.tone])},[e("div",y,[e("span",S,o(t.label),1),t.icon?(a(),c("span",$,[_(r(m),{size:17},{default:h(()=>[(a(),p(f(t.icon)))]),_:1})])):n("",!0)]),e("div",k,o(t.value),1),t.hint?(a(),c("div",B,o(t.hint),1)):n("",!0)],2))}}),z=l(C,[["__scopeId","data-v-f06fd78c"]]),E="/app/assets/empty-live-dVnauh0o.jpg",N=["src"],g={class:"copy"},x={key:0},V={class:"actions"},b=i({__name:"EmptyState",props:{title:{},description:{},compact:{type:Boolean,default:!1}},setup(t){return(s,u)=>(a(),c("div",{class:d(["empty",{compact:t.compact}])},[e("img",{class:"art",src:r(E),alt:""},null,8,N),e("div",g,[e("h3",null,o(t.title),1),t.description?(a(),c("p",x,o(t.description),1)):n("",!0),e("div",V,[v(s.$slots,"default",{},void 0,!0)])])],2))}}),T=l(b,[["__scopeId","data-v-6c717026"]]);export{T as E,z as S,w as c}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-aQuldXl1.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-DCmf1Zmt.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-aQuldXl1.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-DCmf1Zmt.js index 7cf58f72..50e0f217 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-aQuldXl1.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/FilmOutline-DCmf1Zmt.js @@ -1 +1 @@ -import{d as e,c as t,y as o,o as n}from"./index-W7SBB4Eq.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; +import{d as e,c as t,y as o,o as n}from"./index-Bmcyfv7z.js";const i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=e({name:"FilmOutline",render:function(h,r){return n(),t("svg",i,r[0]||(r[0]=[o('',11)]))}});export{c as F}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CYx8moNZ.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-4zZKl19q.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CYx8moNZ.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-4zZKl19q.js index 4fccbe03..71eae6e9 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-CYx8moNZ.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/GitCompareOutline-4zZKl19q.js @@ -1 +1 @@ -import{d as e,o as r,c as n,y as t}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; +import{d as e,o as r,c as n,y as t}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=e({name:"GitCompareOutline",render:function(s,o){return r(),n("svg",l,o[0]||(o[0]=[t('',6)]))}});export{d as G}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-B9LQLjz_.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DS3FhrY_.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-B9LQLjz_.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DS3FhrY_.js index b1e68ae9..18dd9bed 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-B9LQLjz_.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Input-DS3FhrY_.js @@ -1,4 +1,4 @@ -import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,ba as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,be as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,bd as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b1 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-W7SBB4Eq.js";import{u as Or}from"./use-compitable-D8hAoj1z.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` +import{W as Ee,j as P,bH as xr,bI as wr,bJ as yr,d as V,N as te,a as g,bK as Cr,a2 as b,a4 as S,a7 as a,ba as zr,o as l,c as v,e as Sr,P as h,R as d,ay as G,be as kr,bL as Ie,ae as pe,i as y,az as re,bn as _r,O as Rr,a6 as A,a5 as j,L as ve,r as w,bM as Ar,a8 as Me,aD as Pr,Q as _e,n as Q,aa as Fr,bN as Br,bd as $r,Y as Re,b as Er,a$ as Ir,ax as Ae,aj as Mr,ac as Tr,au as Pe,K as Fe,ad as C,M as Be,b1 as ee,F as he,bt as Lr,bO as Vr,af as fe,by as Dr,Z as Wr}from"./index-Bmcyfv7z.js";import{u as Or}from"./use-compitable-CSVBov8c.js";function Kr(o){const{mergedLocaleRef:f,mergedDateLocaleRef:m}=Ee(xr,null)||{},z=P(()=>f?.value?.[o]??wr[o]);return{dateLocaleRef:P(()=>m?.value??yr),localeRef:z}}var Nr=V({name:"Eye",render(){return(()=>{const o=te("ae479a1970012861");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),g("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"})],-1))})()}}),Hr=V({name:"EyeOff",render(){return(()=>{const o=te("2c06203b450ce879");return o[0]||(o[0]=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[g("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),g("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),g("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),g("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),g("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"})],-1))})()}}),Ur=Cr("clear",()=>(()=>{const o=te("c93f8499adf26ca3");return o[0]||(o[0]=g("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{fill:"currentColor","fill-rule":"nonzero"},[g("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"})])])],-1))})()),jr=b("base-clear",` flex-shrink: 0; height: 1em; width: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-CgZHTqn3.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DFTjbjn3.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-CgZHTqn3.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DFTjbjn3.js index 2d7b988a..1f57c13f 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-CgZHTqn3.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/LoginView-DFTjbjn3.js @@ -1 +1 @@ -import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-W7SBB4Eq.js";import{I as L}from"./Input-B9LQLjz_.js";import{C as G}from"./CheckboxGroup-D0_230aG.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{S as Q}from"./Spin-IfgPhZdn.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-D8hAoj1z.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; +import{d as x,o as n,c as u,a as e,b as I,u as s,n as U,e as o,F as V,w as a,f as z,t as m,g,h as A,i as T,B as $,r as i,j as S,k as D,l as F,m as P,p as q,q as Y,s as H,v as J}from"./index-Bmcyfv7z.js";import{I as L}from"./Input-DS3FhrY_.js";import{C as G}from"./CheckboxGroup-iTsKmCjZ.js";import{N as h,_ as K}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{S as Q}from"./Spin-CCColBh4.js";import{l as W}from"./logo-X-myaeP_.js";import"./use-compitable-CSVBov8c.js";const X={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},O=x({name:"LockClosedOutline",render:function(w,r){return n(),u("svg",X,r[0]||(r[0]=[e("path",{d:"M336 208v-95a80 80 0 0 0-160 0v95",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("rect",{x:"96",y:"208",width:"320",height:"272",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Z={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ee=x({name:"PersonOutline",render:function(w,r){return n(),u("svg",Z,r[0]||(r[0]=[e("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),e("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},se=x({name:"ShieldCheckmarkOutline",render:function(w,r){return n(),u("svg",te,r[0]||(r[0]=[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 176L225.2 304L176 255.8"},null,-1),e("path",{d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),oe="/app/assets/login-art-Ct2j8Jdv.jpg",le={class:"login"},re={class:"hero-content"},ne={class:"brand"},ae=["src"],ie={class:"form-side"},ue={class:"form-card"},de={key:0,class:"checking"},ve={class:"form-head"},pe={class:"kicker"},ce={key:0,class:"init-error",role:"alert"},me={class:"field"},fe={class:"field"},we={key:0,class:"field"},ke={key:2,class:"error"},ge=x({__name:"LoginView",setup(_){const w=D(),r=F(),{loadMe:M}=Y(),B=i(!0),l=i(!1),f=i(""),v=i(""),y=i(""),C=i(!0),k=i(!1),p=i(""),b=i(""),j=S(()=>H(w.query.next,window.location.origin)),N=S(()=>l.value?"创建管理员账号":"登录录屏助手"),E=S(()=>l.value?"首次使用,请设置一个管理账号。账号仅保存在本机录制服务中。":"使用录制服务的管理员账号登录,管理监控与录像。");async function R(){if(p.value="",!f.value.trim()||!v.value){p.value="请填写用户名和密码";return}if(l.value&&v.value!==y.value){p.value="两次输入的密码不一致";return}if(!k.value){k.value=!0;try{l.value?await P(f.value.trim(),v.value):await q(f.value.trim(),v.value,C.value),await M(!0),await r.replace(j.value)}catch(c){p.value=c instanceof Error?c.message:"操作失败"}finally{k.value=!1}}}return I(async()=>{try{l.value=!await J()}catch(c){b.value=c instanceof Error?c.message:"无法连接录制服务",l.value=!1}finally{B.value=!1}}),(c,t)=>(n(),u("div",le,[e("section",{class:"hero",style:U({backgroundImage:`url(${s(oe)})`})},[t[7]||(t[7]=e("div",{class:"hero-shade"},null,-1)),e("div",re,[e("div",ne,[e("img",{src:s(W),alt:"",class:"brand-logo"},null,8,ae),t[4]||(t[4]=e("div",null,[e("div",{class:"brand-name"},"Live Stream Recorder"),e("div",{class:"brand-en"},"Live Stream Recorder")],-1))]),t[5]||(t[5]=e("div",{class:"hero-copy"},[e("h1",null,"不错过每一场直播"),e("p",null," 抖音、快手、B站、虎牙、斗鱼多平台值守。开播自动录制,断流自动重连, 下播按场次归档。 "),e("div",{class:"hero-points"},[e("span",null,"7×24 自动监控"),e("span",null,"原画直录"),e("span",null,"场次归档")])],-1)),t[6]||(t[6]=e("div",{class:"hero-foot mono"},"LOCAL FIRST · NO CLOUD · YOUR DATA STAYS HERE",-1))])],4),e("section",ie,[e("div",ue,[B.value?(n(),u("div",de,[o(s(Q),{size:"small"}),t[8]||(t[8]=e("span",null,"正在连接录制服务…",-1))])):(n(),u(V,{key:1},[e("div",ve,[e("div",pe,[o(s(h),{size:14},{default:a(()=>[o(s(se))]),_:1}),z(" "+m(l.value?"首次初始化":"安全登录"),1)]),e("h2",null,m(N.value),1),e("p",null,m(E.value),1)]),b.value?(n(),u("div",ce,[t[9]||(t[9]=e("div",{class:"init-error-title"},"初始化检查失败",-1)),e("div",null,m(b.value),1),t[10]||(t[10]=e("div",{class:"init-error-hint"}," 如果是桌面客户端,请关闭后重新打开;服务器部署请确认录制服务已启动。 ",-1))])):g("",!0),e("form",{class:"form",onSubmit:A(R,["prevent"])},[e("label",me,[t[11]||(t[11]=e("span",null,"用户名",-1)),o(s(L),{value:f.value,"onUpdate:value":t[0]||(t[0]=d=>f.value=d),placeholder:"admin",size:"large","input-props":{autocomplete:"username"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(ee))]),_:1})]),_:1},8,["value"])]),e("label",fe,[t[12]||(t[12]=e("span",null,"密码",-1)),o(s(L),{value:v.value,"onUpdate:value":t[1]||(t[1]=d=>v.value=d),type:"password","show-password-on":"click",placeholder:"请输入密码",size:"large","input-props":{autocomplete:l.value?"new-password":"current-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value","input-props"])]),l.value?(n(),u("label",we,[t[13]||(t[13]=e("span",null,"确认密码",-1)),o(s(L),{value:y.value,"onUpdate:value":t[2]||(t[2]=d=>y.value=d),type:"password","show-password-on":"click",placeholder:"再输入一次",size:"large","input-props":{autocomplete:"new-password"}},{prefix:a(()=>[o(s(h),{size:16},{default:a(()=>[o(s(O))]),_:1})]),_:1},8,["value"])])):g("",!0),l.value?g("",!0):(n(),T(s(G),{key:1,checked:C.value,"onUpdate:checked":t[3]||(t[3]=d=>C.value=d)},{default:a(()=>[...t[14]||(t[14]=[z("保持登录状态",-1)])]),_:1},8,["checked"])),p.value?(n(),u("div",ke,m(p.value),1)):g("",!0),o(s($),{type:"primary",size:"large",block:"",loading:k.value,"attr-type":"submit"},{default:a(()=>[z(m(l.value?"创建账号并进入":"登录"),1)]),_:1},8,["loading"])],32),t[15]||(t[15]=e("div",{class:"tip"}," 账号与录制数据全部保存在本机,不会上传到云端。 ",-1))],64))])])]))}}),Se=K(ge,[["__scopeId","data-v-18fa6f23"]]);export{Se as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B6Qrxbd0.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-Da42XzaM.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B6Qrxbd0.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-Da42XzaM.js index 91baa4db..bbc136a1 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-B6Qrxbd0.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/PulseOutline-Da42XzaM.js @@ -1 +1 @@ -import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-W7SBB4Eq.js";import{p as v,P as f}from"./use-message-DkYn5b6o.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; +import{d as n,a8 as l,S as p,aa as a,j as u,r as c,ar as d,c as h,a as s,o as m}from"./index-Bmcyfv7z.js";import{p as v,P as f}from"./use-message-BaVpnNbE.js";const w={...v,...l.props};var T=n({name:"Tooltip",props:w,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:r}=a(e),o=l("Tooltip","-tooltip",void 0,d,e,r),t=c(null);return{syncPosition(){t.value.syncPosition()},setShow(i){t.value.setShow(i)},popoverRef:t,mergedTheme:o,popoverThemeOverrides:u(()=>o.value.self)}},render(){const{mergedTheme:e,internalExtraClass:r}=this;return p(f,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"},this.$slots)}});const k={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},g=n({name:"PulseOutline",render:function(r,o){return m(),h("svg",k,o[0]||(o[0]=[s("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M48 320h64l64-256l64 384l64-224l32 96h64"},null,-1),s("circle",{cx:"432",cy:"320",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}});export{g as P,T}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-C0q9wGjN.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-CS8l23Jb.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-C0q9wGjN.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-CS8l23Jb.js index e7aff15e..daa130ba 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-C0q9wGjN.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RecordingsView-CS8l23Jb.js @@ -1,4 +1,4 @@ -import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-yKeAXmxd.js";import{u as mr,I as je}from"./Input-B9LQLjz_.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-W7SBB4Eq.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-DkYn5b6o.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-5zQu_Ia9.js";import{u as Ie}from"./use-compitable-D8hAoj1z.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{S as Ge}from"./Spin-IfgPhZdn.js";import{d as Hr}from"./streamers-BpUYLHe6.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-aQuldXl1.js";import{D as rt}from"./DownloadOutline-B8-YKzxV.js";import{R as Wr}from"./RefreshOutline-CjuuDK9l.js";import{S as qr}from"./SearchOutline-DiOWHHh0.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` +import{a as dr,c as cr,b as ur,h as Ue,S as ht,T as Le}from"./Select-P9AqjsDB.js";import{u as mr,I as je}from"./Input-DS3FhrY_.js";import{O as fr,a2 as U,as as hr,d as re,o as n,i as y,V as Re,n as ce,P as H,W as Ve,aa as Be,a8 as be,at as pt,L as Fe,au as De,ae as Me,ac as We,j as A,ad as X,Q as ge,av as vt,aw as Ke,a9 as pr,r as B,Z as Pe,N as xe,a,a4 as S,a6 as q,a5 as vr,c as u,R as L,ax as Te,aj as gt,F as te,ay as gr,az as ke,aA as br,af as ee,aB as He,aC as Je,T as bt,S as wr,aD as wt,aE as qe,aF as yr,aG as Xe,A as yt,aH as kr,aI as Cr,a1 as xr,X as Sr,a0 as zr,aJ as Oe,a7 as ve,aK as _r,aL as Fr,aM as Pr,aN as Mr,aO as Br,aP as $r,aQ as Rr,aR as Tr,aS as Ir,ap as kt,ao as Ee,b as Or,e as O,w as D,u as d,B as Se,g as Ce,f as se,t as E,C as Ne,aT as Er}from"./index-Bmcyfv7z.js";import{p as Qe,P as Ar,b as Ur,u as Lr}from"./use-message-BaVpnNbE.js";import{c as Nr,S as $e,E as jr}from"./EmptyState-CGA7qM0U.js";import{u as Ie}from"./use-compitable-CSVBov8c.js";import{f as Ze,N as ze,_ as Dr}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{S as Ge}from"./Spin-CCColBh4.js";import{d as Hr}from"./streamers-D5Y-fBfU.js";import{b as ie,d as _e,c as et}from"./format-B8CnorUZ.js";import{i as Vr}from"./runtime-bridge-DmDzFGpU.js";import{F as tt}from"./FilmOutline-DCmf1Zmt.js";import{D as rt}from"./DownloadOutline-ZlR9MTyd.js";import{R as Wr}from"./RefreshOutline-CIl2qHSI.js";import{S as qr}from"./SearchOutline-BOYIL3j0.js";const Ct=fr("n-popselect");var Xr=U("popselect-menu",` box-shadow: var(--n-menu-box-shadow); `);const Ye={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:String,scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},at=hr(Ye);var Yr=re({name:"PopselectPanel",props:Ye,setup(e){const t=Ve(Ct),{mergedClsPrefixRef:r,inlineThemeDisabled:g,mergedComponentPropsRef:m}=Be(e),v=A(()=>e.size||m?.value?.Popselect?.size||"medium"),C=be("Popselect","-pop-select",Xr,pt,t.props,r),F=A(()=>cr(e.options,ur("value","children")));function P(l,p){const{onUpdateValue:w,"onUpdate:value":k,onChange:N}=e;w&&X(w,l,p),k&&X(k,l,p),N&&X(N,l,p)}function f(l){b(l.key)}function M(l){!Ue(l,"action")&&!Ue(l,"empty")&&!Ue(l,"header")&&l.preventDefault()}function b(l){const{value:{getNode:p}}=F;if(e.multiple)if(Array.isArray(e.value)){const w=[],k=[];let N=!0;e.value.forEach(J=>{if(J===l){N=!1;return}const V=p(J);V&&(w.push(V.key),k.push(V.rawNode))}),N&&(w.push(l),k.push(p(l).rawNode)),P(w,k)}else{const w=p(l);w&&P([l],[w.rawNode])}else if(e.value===l&&e.cancelable)P(null,null);else{const w=p(l);w&&P(l,w.rawNode);const{"onUpdate:show":k,onUpdateShow:N}=t.props;k&&X(k,!1),N&&X(N,!1),t.setShow(!1)}De(()=>{t.syncPosition()})}Fe(Me(e,"options"),()=>{De(()=>{t.syncPosition()})});const R=A(()=>{const{self:{menuBoxShadow:l}}=C.value;return{"--n-menu-box-shadow":l}}),z=g?We("select",void 0,R,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:F,handleToggle:f,handleMenuMousedown:M,cssVars:g?void 0:R,themeClass:z?.themeClass,onRender:z?.onRender,mergedSize:v,scrollbarProps:t.props.scrollbarProps}},render(){return this.onRender?.(),n(),y(dr,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:H([`${this.mergedClsPrefix}-popselect-menu`,this.themeClass]),style:ce(this.cssVars),theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.mergedSize,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,scrollbarProps:this.scrollbarProps,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{_:1,header:Re(()=>this.$slots.header?.()||[]),action:Re(()=>this.$slots.action?.()||[]),empty:Re(()=>this.$slots.empty?.()||[])},8,["clsPrefix","nodeProps","class","style","theme","themeOverrides","multiple","treeMate","size","value","virtualScroll","scrollable","scrollbarProps","renderLabel","onToggle","onMouseenter","onMouseleave","onMousedown","showCheckmark"])}});const Kr={...be.props,...vt(Qe,["showArrow","arrow"]),placement:{...Qe.placement,default:"bottom"},trigger:{type:String,default:"hover"},...Ye,scrollbarProps:Object};var Jr=re({name:"Popselect",props:Kr,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Be(e),r=be("Popselect","-popselect",void 0,pt,e,t),g=B(null);function m(){g.value?.syncPosition()}function v(C){g.value?.setShow(C)}return Pe(Ct,{props:e,mergedThemeRef:r,syncPosition:m,setShow:v}),{syncPosition:m,setShow:v,popoverInstRef:g,mergedTheme:r}},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,g,m,v,C)=>{const{$attrs:F}=this;return n(),y(Yr,ge(F,{class:[F.class,r],style:[F.style,...m]},pr(this.$props,at),{ref:Nr(g),onMouseenter:Ke([v,F.onMouseenter]),onMouseleave:Ke([C,F.onMouseleave])}),{header:()=>this.$slots.header?.(),action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,["class","style","onMouseenter","onMouseleave"])}};return n(),y(Ar,ge(vt(this.$props,at),t,{internalDeactivateImmediately:!0}),{_:1,trigger:Re(()=>this.$slots.default?.())},16)}});const Qr={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function nt(e){const t=Qr[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}var ot=re({name:"Backward",render(){return(()=>{const e=xe("20cdf29399dd0749");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"})],-1))})()}}),st=re({name:"FastBackward",render(){return(()=>{const e=xe("9d0d04cc580afefa");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"})])])],-1))})()}}),it=re({name:"FastForward",render(){return(()=>{const e=xe("c2e477dd1211740a");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})])])],-1))})()}}),lt=re({name:"Forward",render(){return(()=>{const e=xe("6fb2c33c1e576c93");return e[0]||(e[0]=a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"})],-1))})()}}),dt=re({name:"More",render(){return(()=>{const e=xe("e4a3e3d3803c676d");return e[0]||(e[0]=a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"})])])],-1))})()}});const ct=` background: var(--n-item-color-hover); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CjuuDK9l.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CIl2qHSI.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CjuuDK9l.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CIl2qHSI.js index 229b90f2..15149304 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CjuuDK9l.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RefreshOutline-CIl2qHSI.js @@ -1 +1 @@ -import{d as n,c as t,a as o,o as r}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; +import{d as n,c as t,a as o,o as r}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=n({name:"RefreshOutline",render:function(i,e){return r(),t("svg",l,e[0]||(e[0]=[o("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}});export{d as R}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-BkgkRPye.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-h5lf4-Vn.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-BkgkRPye.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-h5lf4-Vn.js index 9d0d0802..0b0bb903 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-BkgkRPye.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/RelayView-h5lf4-Vn.js @@ -1 +1 @@ -import{T as R,S as M}from"./Select-yKeAXmxd.js";import{I as re}from"./Input-B9LQLjz_.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-W7SBB4Eq.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as Ye,S as W}from"./Switch-CwiTSVeN.js";import{u as Ze}from"./use-message-DkYn5b6o.js";import{A as ue,F as Ke,a as w}from"./AddOutline-B3zs4SfZ.js";import{D as Qe,I as et}from"./DocumentTextOutline-DseBRj1r.js";import{d as tt}from"./streamers-BpUYLHe6.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-CjuuDK9l.js";import{G as nt}from"./GitCompareOutline-CYx8moNZ.js";import"./use-compitable-D8hAoj1z.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ze(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ke),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; +import{T as R,S as M}from"./Select-P9AqjsDB.js";import{I as re}from"./Input-DS3FhrY_.js";import{d as B,o as c,c as m,a as r,y as Ie,ao as je,aV as Le,ap as ve,aW as Pe,aX as qe,aY as Fe,aZ as Ae,an as ie,a_ as De,b as Ve,A as He,e as o,w as n,u as a,B as _,F as H,C as G,aq as de,r as g,f as p,D as Ge,t as u,g as C,i as We,J as Je,j as S}from"./index-Bmcyfv7z.js";import{N as y,_ as Xe}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as Ye,S as W}from"./Switch-C33rKL-M.js";import{u as Ze}from"./use-message-BaVpnNbE.js";import{A as ue,F as Ke,a as w}from"./AddOutline-DDWMaSa8.js";import{D as Qe,I as et}from"./DocumentTextOutline-BvVIG18e.js";import{d as tt}from"./streamers-D5Y-fBfU.js";import{r as lt,b as at,d as ot}from"./format-B8CnorUZ.js";import{R as ce}from"./RefreshOutline-CIl2qHSI.js";import{G as nt}from"./GitCompareOutline-4zZKl19q.js";import"./use-compitable-CSVBov8c.js";const st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rt=B({name:"CloseOutline",render:function(d,b){return c(),m("svg",st,b[0]||(b[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),it={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dt=B({name:"PlayForwardOutline",render:function(d,b){return c(),m("svg",it,b[0]||(b[0]=[r("path",{d:"M32 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113C45 123.8 32 132.24 32 145.52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),r("path",{d:"M260.57 145.52v221c0 13.28 13 21.72 23.63 15.35l188.87-113c9.24-5.53 9.24-20.07 0-25.6l-188.87-113c-10.64-6.47-23.63 1.97-23.63 15.25z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ct=B({name:"TrashOutline",render:function(d,b){return c(),m("svg",ut,b[0]||(b[0]=[Ie('',6)]))}}),pt=()=>je("/v1/relay"),mt=f=>ve("/v1/relay",f),pe=(f,d)=>Le(`/v1/relay/${f}`,d),vt=f=>De(`/v1/relay/${f}`),ft=f=>ve(`/v1/relay/${f}/restart`);async function bt(f){const d=await fetch(`${Pe}/v1/relay/${f}/log`,{credentials:"include",headers:qe()});if(!d.ok){const b=await d.text().catch(()=>"");let x=b.trim();try{const k=JSON.parse(b);x=k.message??k.error??x}catch{}if(d.status===401){const k=Fe(d)?"host-expired":Ae(d)?"desktop-token":"session";throw new ie(401,x||"登录已失效",k)}throw new ie(d.status,x||`HTTP ${d.status}`)}return d.text()}const $=8,J={height:{min:144,max:4320},bitrate_kbps:{min:100,max:5e4},fps:{min:5,max:120}},X=[{value:"video",label:"微信视频号",hint:"微信「视频号助手」→ 直播管理 → 推流地址 / 推流码,拼成 rtmp://…/streamkey",placeholder:"rtmp://push.weixin.qq.com/live/xxxxxx"},{value:"douyin",label:"抖音",hint:"「抖音直播伴侣」→ 设置 → 推流;地址每次开播都会刷新",placeholder:"rtmp://push-douyin-pub.douyinstatic.com/live/xxxxxx"},{value:"kuaishou",label:"快手",hint:"「快手直播伴侣」→ 推流设置,复制服务器地址与推流码拼成完整地址",placeholder:"rtmp://rtmp-push.kuaishou.com/live/xxxxxx"},{value:"custom",label:"自定义 / 其他 RTMP",hint:"支持任何接受 RTMP 推流的服务,例如自建 SRS、B站直播姬、虎牙开播工具",placeholder:"rtmp://your-server/live/streamkey"}],Y=[{label:"跟随录制",value:"follow_recording",hint:"直播间开播并开始录制后推送"},{label:"独立拉流",value:"standalone",hint:"不录制也推送,自己解析直播直链"}],Z=[{label:"原样转发",value:"copy",hint:"不重新编码,最省 CPU"},{label:"转码兼容",value:"transcode",hint:"源是 H.265 或目标平台不接受时选它,吃 CPU"}],me=[{label:"跟随源",value:"inherit",hint:"沿用源流的音频"},{label:"补静音",value:"silent",hint:"源没有声音导致推流失败时选它"}],gt=[{label:"720p",value:720},{label:"1080p",value:1080},{label:"1440p",value:1440},{label:"2160p",value:2160}],_t=[{label:"25",value:25},{label:"30",value:30},{label:"60",value:60}],ht={class:"page"},yt={class:"page-head"},wt={class:"toolbar"},xt={class:"notice"},kt={key:0,class:"relay-list"},Ct={class:"relay-main"},$t={class:"relay-title-row"},Mt={class:"relay-title"},Tt={key:0,class:"relay-since mono"},Ut={key:0,class:"relay-stats mono"},Ot={class:"relay-meta"},St={class:"relay-from"},zt={class:"relay-created"},Nt={class:"target-list"},Rt=["title"],Bt={key:0,class:"target-message"},Et={key:1,class:"target-stats mono"},It={key:0,class:"target-row target-empty"},jt={key:1,class:"relay-message"},Lt={class:"relay-actions"},Pt={key:1,class:"empty"},qt={class:"modal-title"},Ft={class:"hint"},At={class:"hint"},Dt={class:"target-editor"},Vt={key:0,class:"hint target-limit"},Ht={class:"hint"},Gt={class:"hint"},Wt={class:"transcode-grid"},Jt={class:"transcode-cell"},Xt={class:"transcode-cell"},Yt={class:"transcode-cell"},Zt={class:"hint"},Kt={class:"modal-foot"},Qt={class:"log-head"},el={class:"modal-sub"},tl={class:"log-view"},ll=B({__name:"RelayView",setup(f){const d=Ze(),b=Ye(),x=g([]),k=g([]),E=g(!1),T=g(!1),O=g(!1),U=g(null),I=g(null),j=g(!1),L=g(!1),P=g(""),K=g(""),q=g(null),s=Je({streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:{height:1080,bitrate_kbps:4500,fps:30},targets:[]}),fe=S(()=>X.find(t=>t.value===s.platform)?.hint??"");function be(t){return t.index!==void 0?"留空表示不修改原地址":X.find(e=>e.value===s.platform)?.placeholder??""}const ge=S(()=>Y.find(t=>t.value===s.source_mode)?.hint??""),_e=S(()=>Z.find(t=>t.value===s.video_mode)?.hint??""),he=S(()=>me.find(t=>t.value===s.audio_mode)?.hint??""),ye=S(()=>k.value.map(t=>({label:t.remark||t.url,value:t.id}))),we={relaying:{label:"转播中",type:"success"},waiting:{label:"等待开播",type:"default"},retrying:{label:"重试中",type:"warning"},error:{label:"转播失败",type:"error"},disabled:{label:"已停用",type:"default"}};function z(t){return we[t]??{label:t,type:"default"}}function xe(t){return Y.find(e=>e.value===t)?.label??t}function ke(t){return Z.find(e=>e.value===t)?.label??t}let F=!1,N=!1,A=!1;async function h(t=!1){if(!N){if(F){t||(A=!0);return}F=!0,t||(E.value=!0);try{x.value=await pt()}catch(e){t||d.error(e instanceof Error?e.message:"读取转播任务失败")}finally{F=!1,E.value=!1,A&&!N&&(A=!1,h(!0))}}}async function Ce(){try{k.value=await tt()}catch{k.value=[]}}function $e(){return{height:1080,bitrate_kbps:4500,fps:30}}function Me(){const t=Number(s.transcode.height),e=Number(s.transcode.bitrate_kbps),l=Number(s.transcode.fps),i=[{label:"分辨率",value:t,...J.height,unit:""},{label:"码率",value:e,...J.bitrate_kbps,unit:" kbps"},{label:"帧率",value:l,...J.fps,unit:""}];for(const v of i)if(!Number.isFinite(v.value)||v.valuev.max)return d.warning(`${v.label}需在 ${v.min} - ${v.max}${v.unit} 之间`),null;return{height:t,bitrate_kbps:e,fps:l}}function Q(){U.value=null,Object.assign(s,{streamer_id:null,name:"",enabled:!0,platform:"video",source_mode:"follow_recording",video_mode:"copy",audio_mode:"inherit",transcode:$e(),targets:[{url:"",enabled:!0}]}),T.value=!0}function Te(t){U.value=t,Object.assign(s,{streamer_id:t.streamer_id,name:t.name,enabled:t.enabled,platform:"custom",source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:{height:t.transcode.height,bitrate_kbps:t.transcode.bitrate_kbps,fps:t.transcode.fps},targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled}))}),T.value=!0}function Ue(){if(s.targets.length>=$){d.warning(`最多 ${$} 路目标`);return}s.targets.push({url:"",enabled:!0})}function Oe(t){s.targets.length<=1||s.targets.splice(t,1)}async function Se(){const t=s.streamer_id;if(!t){d.warning("请选择源直播间");return}if(!s.targets.length){d.warning("至少保留一路推流地址");return}if(s.targets.length>$){d.warning(`最多 ${$} 路目标`);return}const e=Me();if(!e)return;for(const i of s.targets){const v=i.url.trim();if(!v){if(i.index!==void 0)continue;d.warning("请填写推流地址");return}if(!/^rtmps?:\/\//i.test(v)){d.warning("推流地址需以 rtmp:// 或 rtmps:// 开头");return}}const l={name:s.name.trim(),streamer_id:t,targets:s.targets.map(i=>({index:i.index,url:i.url.trim(),enabled:i.enabled})),source_mode:s.source_mode,video_mode:s.video_mode,audio_mode:s.audio_mode,transcode:e,enabled:s.enabled};O.value=!0;try{U.value?(await pe(U.value.id,l),d.success("转播任务已更新")):(await mt(l),d.success("转播任务已添加,开播后自动推送")),T.value=!1,await h(!0)}catch(i){d.error(i instanceof Error?i.message:"保存失败")}finally{O.value=!1}}const D=g(new Set);async function ze(t){if(!D.value.has(t.id)){D.value.add(t.id);try{await pe(t.id,{name:t.name,streamer_id:t.streamer_id,targets:t.targets.map(e=>({index:e.index,url:"",enabled:e.enabled})),source_mode:t.source_mode,video_mode:t.video_mode,audio_mode:t.audio_mode,transcode:t.transcode,enabled:!t.enabled}),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"操作失败")}finally{D.value.delete(t.id)}}}async function Ne(t){I.value=t.id;try{await ft(t.id),d.success("已重启转播"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"重启失败")}finally{I.value=null}}function Re(t){b.warning({title:"删除转播任务",content:`确定删除「${t.name}」?正在转播的推送会立即停止,录像不受影响。`,positiveText:"删除",negativeText:"取消",positiveButtonProps:{type:"error"},onPositiveClick:async()=>{try{await vt(t.id),d.success("已删除"),await h(!0)}catch(e){d.error(e instanceof Error?e.message:"删除失败")}}})}async function ee(t){L.value=!0;try{P.value=await bt(t)}catch(e){P.value=e instanceof Error?e.message:"读取日志失败"}finally{L.value=!1}}function Be(t){K.value=t.name,q.value=t.id,j.value=!0,ee(t.id)}function Ee(){q.value!==null&&ee(q.value)}function te(t){const e=t.stats?.uptime_ms??0,l=e>0?e:t.since?Date.now()-t.since:0;return l<=0?"":`已推 ${at(l)}`}function le(t){return t?t.uptime_ms>0||t.bytes>0||t.kbps>0||t.drop_frames>0||t.speed>0:!1}function ae(t,e){const l=[];return t.kbps>0&&l.push(`码率 ${(t.kbps/1e3).toFixed(1)} Mbps`),t.bytes>0&&l.push(`已推 ${ot(t.bytes)}`),t.drop_frames>0?l.push(`丢帧 ${t.drop_frames}`):l.length&&l.push("丢帧 0"),e&&t.speed>0&&l.push(`速度 ${t.speed.toFixed(2)}x`),l}function oe(t){return le(t)?ae(t,!0).join(" · "):""}function ne(t){return le(t)?ae(t,!1).join(" · "):""}let V;function se(){document.visibilityState==="visible"&&h(!0)}return Ve(async()=>{await Promise.all([h(),Ce()]),!N&&(V=window.setInterval(()=>{document.visibilityState==="visible"&&h(!0)},5e3),document.addEventListener("visibilitychange",se))}),He(()=>{N=!0,V&&window.clearInterval(V),document.removeEventListener("visibilitychange",se)}),(t,e)=>(c(),m("div",ht,[r("div",yt,[e[15]||(e[15]=r("div",null,[r("h1",{class:"page-title"},"直播转播"),r("p",{class:"page-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路")],-1)),r("div",wt,[o(a(_),{quaternary:"",circle:"",loading:E.value,"aria-label":"刷新",onClick:e[0]||(e[0]=l=>h())},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),_:1},8,["loading"]),o(a(_),{type:"primary",onClick:Q},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[14]||(e[14]=p(" 添加转播 ",-1))]),_:1})])]),r("div",xt,[o(a(y),{size:16},{default:n(()=>[o(a(nt))]),_:1}),e[16]||(e[16]=r("span",null," 转播是「拉流 → 转发,不修改画面」:每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。只转播本人或已授权内容;推流地址含密钥,请勿外传。 ",-1))]),x.value.length?(c(),m("div",kt,[(c(!0),m(H,null,G(x.value,l=>(c(),m("article",{key:l.id,class:Ge(["relay-card",{active:l.state==="relaying"}])},[r("div",Ct,[r("div",$t,[r("span",Mt,u(l.name),1),o(a(R),{size:"small",round:"",bordered:!1,type:z(l.state).type},{default:n(()=>[p(u(z(l.state).label),1)]),_:2},1032,["type"]),te(l)?(c(),m("span",Tt,u(te(l)),1)):C("",!0)]),oe(l.stats)?(c(),m("div",Ut,[e[17]||(e[17]=r("span",{class:"stats-label"},"汇总",-1)),p(" "+u(oe(l.stats)),1)])):C("",!0),r("div",Ot,[r("span",St,"来源:"+u(l.streamer_name),1),o(a(R),{size:"tiny",round:"",bordered:!1,type:"info"},{default:n(()=>[p(u(xe(l.source_mode)),1)]),_:2},1024),o(a(R),{size:"tiny",round:"",bordered:!1},{default:n(()=>[p(u(ke(l.video_mode)),1)]),_:2},1024),r("span",zt,"创建于 "+u(a(lt)(l.created_at)),1)]),r("ul",Nt,[(c(!0),m(H,null,G(l.targets,i=>(c(),m("li",{key:i.index,class:"target-row"},[r("span",{class:"target-host mono",title:i.host},"→ "+u(i.host),9,Rt),o(a(R),{size:"tiny",round:"",bordered:!1,type:z(i.state).type},{default:n(()=>[p(u(z(i.state).label),1)]),_:2},1032,["type"]),i.message?(c(),m("span",Bt,u(i.message),1)):C("",!0),ne(i.stats)?(c(),m("span",Et,u(ne(i.stats)),1)):C("",!0)]))),128)),l.targets.length?C("",!0):(c(),m("li",It,"没有目标地址"))]),l.message?(c(),m("div",jt,u(l.message),1)):C("",!0)]),r("div",Lt,[o(a(W),{value:l.enabled,size:"small","onUpdate:value":i=>ze(l)},{checked:n(()=>[...e[18]||(e[18]=[p("启用",-1)])]),unchecked:n(()=>[...e[19]||(e[19]=[p("停用",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Te(l)},{default:n(()=>[...e[20]||(e[20]=[p("编辑",-1)])]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",onClick:i=>Be(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(Qe))]),_:1})]),default:n(()=>[e[21]||(e[21]=p(" 日志 ",-1))]),_:1},8,["onClick"]),o(a(_),{size:"small",quaternary:"",loading:I.value===l.id,onClick:i=>Ne(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(dt))]),_:1})]),default:n(()=>[e[22]||(e[22]=p(" 重启 ",-1))]),_:1},8,["loading","onClick"]),o(a(_),{size:"small",quaternary:"",type:"error",onClick:i=>Re(l)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ct))]),_:1})]),default:n(()=>[e[23]||(e[23]=p(" 删除 ",-1))]),_:1},8,["onClick"])])],2))),128))])):(c(),m("div",Pt,[e[25]||(e[25]=r("div",{class:"empty-title"},"还没有转播任务",-1)),e[26]||(e[26]=r("div",{class:"empty-sub"}," 先在「直播监控」添加直播间,再创建转播;「独立拉流」不需要录制。每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路。 ",-1)),o(a(_),{type:"primary",onClick:Q},{default:n(()=>[...e[24]||(e[24]=[p("添加转播",-1)])]),_:1})])),o(a(de),{show:T.value,"onUpdate:show":e[12]||(e[12]=l=>T.value=l),preset:"card",style:{width:"680px",maxWidth:"92vw"},bordered:!1,"mask-closable":!O.value},{header:n(()=>[r("div",null,[r("div",qt,u(U.value?"编辑转播任务":"添加转播任务"),1),e[27]||(e[27]=r("div",{class:"modal-sub"},"每个目标一个独立推流进程,各自拉源、各自重连;任一路失败不影响其他路",-1))])]),footer:n(()=>[r("div",Kt,[o(a(_),{quaternary:"",disabled:O.value,onClick:e[11]||(e[11]=l=>T.value=!1)},{default:n(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1},8,["disabled"]),o(a(_),{type:"primary",loading:O.value,onClick:Se},{default:n(()=>[p(u(U.value?"保存修改":"开始转播"),1)]),_:1},8,["loading"])])]),default:n(()=>[o(a(Ke),{"label-placement":"top"},{default:n(()=>[o(a(w),{label:"源直播间"},{default:n(()=>[o(a(M),{value:s.streamer_id,"onUpdate:value":e[1]||(e[1]=l=>s.streamer_id=l),options:ye.value,filterable:"",placeholder:"选择一个已在监控的直播间"},null,8,["value","options"])]),_:1}),o(a(w),{label:"源方式"},{feedback:n(()=>[r("span",Ft,u(ge.value),1)]),default:n(()=>[o(a(M),{value:s.source_mode,"onUpdate:value":e[2]||(e[2]=l=>s.source_mode=l),options:a(Y).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"目标平台"},{feedback:n(()=>[r("span",At,u(fe.value),1)]),default:n(()=>[o(a(M),{value:s.platform,"onUpdate:value":e[3]||(e[3]=l=>s.platform=l),options:a(X).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"推流地址(含推流码)"},{feedback:n(()=>[r("span",Ht,"整段粘贴;保存后界面只显示到 app 名,密钥会隐去;最多 "+u(a($))+" 路",1)]),default:n(()=>[r("div",Dt,[(c(!0),m(H,null,G(s.targets,(l,i)=>(c(),m("div",{key:i,class:"target-edit-row"},[o(a(re),{value:l.url,"onUpdate:value":v=>l.url=v,placeholder:be(l),class:"target-input",clearable:""},null,8,["value","onUpdate:value","placeholder"]),o(a(W),{value:l.enabled,"onUpdate:value":v=>l.enabled=v,size:"small"},{checked:n(()=>[...e[28]||(e[28]=[p("推送",-1)])]),unchecked:n(()=>[...e[29]||(e[29]=[p("停推",-1)])]),_:1},8,["value","onUpdate:value"]),o(a(_),{size:"small",quaternary:"",circle:"","aria-label":"删除这一路",disabled:s.targets.length<=1,onClick:v=>Oe(i)},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(rt))]),_:1})]),_:1},8,["disabled","onClick"])]))),128)),o(a(_),{size:"small",dashed:"",disabled:s.targets.length>=a($),onClick:Ue},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ue))]),_:1})]),default:n(()=>[e[30]||(e[30]=p(" 添加一路目标 ",-1))]),_:1},8,["disabled"]),s.targets.length>=a($)?(c(),m("span",Vt," 最多 "+u(a($))+" 路目标 ",1)):C("",!0)])]),_:1}),o(a(w),{label:"视频方式"},{feedback:n(()=>[r("span",Gt,u(_e.value),1)]),default:n(()=>[o(a(M),{value:s.video_mode,"onUpdate:value":e[4]||(e[4]=l=>s.video_mode=l),options:a(Z).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),s.video_mode==="transcode"?(c(),We(a(w),{key:0,label:"转码参数"},{default:n(()=>[r("div",Wt,[r("div",Jt,[e[31]||(e[31]=r("span",{class:"transcode-label"},"分辨率",-1)),o(a(M),{value:s.transcode.height,"onUpdate:value":e[5]||(e[5]=l=>s.transcode.height=l),options:a(gt)},null,8,["value","options"])]),r("div",Xt,[e[32]||(e[32]=r("span",{class:"transcode-label"},"码率(kbps)",-1)),o(a(et),{value:s.transcode.bitrate_kbps,"onUpdate:value":e[6]||(e[6]=l=>s.transcode.bitrate_kbps=l),min:1e3,max:12e3,step:500},null,8,["value"])]),r("div",Yt,[e[33]||(e[33]=r("span",{class:"transcode-label"},"帧率",-1)),o(a(M),{value:s.transcode.fps,"onUpdate:value":e[7]||(e[7]=l=>s.transcode.fps=l),options:a(_t)},null,8,["value","options"])])])]),_:1})):C("",!0),o(a(w),{label:"音频方式"},{feedback:n(()=>[r("span",Zt,u(he.value),1)]),default:n(()=>[o(a(M),{value:s.audio_mode,"onUpdate:value":e[8]||(e[8]=l=>s.audio_mode=l),options:a(me).map(({value:l,label:i})=>({value:l,label:i}))},null,8,["value","options"])]),_:1}),o(a(w),{label:"任务名称"},{default:n(()=>[o(a(re),{value:s.name,"onUpdate:value":e[9]||(e[9]=l=>s.name=l),placeholder:"可选,例如:视频号同步",clearable:""},null,8,["value"])]),_:1}),o(a(w),{label:"启用"},{default:n(()=>[o(a(W),{value:s.enabled,"onUpdate:value":e[10]||(e[10]=l=>s.enabled=l)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["show","mask-closable"]),o(a(de),{show:j.value,"onUpdate:show":e[13]||(e[13]=l=>j.value=l),preset:"card",style:{width:"760px",maxWidth:"92vw"},bordered:!1},{header:n(()=>[r("div",Qt,[r("div",null,[e[35]||(e[35]=r("div",{class:"modal-title"},"转播日志",-1)),r("div",el,u(K.value),1)]),o(a(_),{size:"small",quaternary:"",loading:L.value,onClick:Ee},{icon:n(()=>[o(a(y),null,{default:n(()=>[o(a(ce))]),_:1})]),default:n(()=>[e[36]||(e[36]=p(" 刷新 ",-1))]),_:1},8,["loading"])])]),default:n(()=>[r("pre",tl,u(P.value||"暂无日志"),1)]),_:1},8,["show"])]))}}),bl=Xe(ll,[["__scopeId","data-v-a2d58258"]]);export{bl as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-DiOWHHh0.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-BOYIL3j0.js similarity index 89% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-DiOWHHh0.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-BOYIL3j0.js index b2dee0e1..4965fc29 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-DiOWHHh0.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SearchOutline-BOYIL3j0.js @@ -1 +1 @@ -import{d as o,o as r,c as n,a as t}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; +import{d as o,o as r,c as n,a as t}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},c=o({name:"SearchOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[t("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)]))}});export{c as S}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-yKeAXmxd.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-P9AqjsDB.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-yKeAXmxd.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-P9AqjsDB.js index b9ccd898..e7482c77 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-yKeAXmxd.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Select-P9AqjsDB.js @@ -1,4 +1,4 @@ -import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-DkYn5b6o.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b1 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,bd as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-W7SBB4Eq.js";import{u as Xt,S as ro}from"./Input-B9LQLjz_.js";import{u as At,a as lo}from"./use-compitable-D8hAoj1z.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` +import{c as jt,d as On,e as rt,i as Tt,f as Mn,P as In,b as kt,B as Bn,V as _n,a as An}from"./use-message-BaVpnNbE.js";import{d as ve,N as zt,a as ce,a2 as V,a7 as D,a4 as fe,a8 as Ce,o as u,c as k,P as M,F as ae,R as T,i as Z,az as Ut,n as Ne,aa as Ge,bs as En,ac as qe,j as E,af as re,Y as Be,r as A,Z as lt,W as Ft,S as we,Q as ze,bt as It,bu as Gt,b as Ye,bv as $n,bw as Ln,am as St,bp as je,ae as ie,au as Pt,aU as Nn,a6 as le,a5 as Ie,b1 as it,aR as Dn,aj as Ot,ad as pe,bx as Kn,by as Le,bz as Bt,O as Vn,bA as gt,L as _e,A as qt,U as $e,aw as bt,T as Yt,a3 as Zt,bn as Wn,aD as Hn,ay as jn,bB as Un,bC as Gn,bD as qn,ax as Yn,e as Zn,V as Te,bd as Xn,aM as Qn,bE as Jn,bF as eo,aB as to,aC as no,aI as _t,bG as oo}from"./index-Bmcyfv7z.js";import{u as Xt,S as ro}from"./Input-DS3FhrY_.js";import{u as At,a as lo}from"./use-compitable-CSVBov8c.js";function Ue(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}var io=ve({name:"Empty",render(){return(()=>{const e=zt("15c1a247ae156450");return e[0]||(e[0]=ce("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ce("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),ce("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"})],-1))})()}}),ao=V("empty",` display: flex; flex-direction: column; align-items: center; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-D5h30p8f.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-L-sskm9b.js similarity index 94% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-D5h30p8f.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-L-sskm9b.js index 364d7390..73278413 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-D5h30p8f.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ServiceErrorView-L-sskm9b.js @@ -1 +1 @@ -import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-W7SBB4Eq.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{R as y}from"./RefreshOutline-CjuuDK9l.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; +import{d as _,o as l,c as a,a as o,e as s,w as n,u as r,f as p,F as m,t as w,g,B as v,r as x,j as R,k as S,l as T,x as z,s as D}from"./index-Bmcyfv7z.js";import{N as c,_ as O}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{R as y}from"./RefreshOutline-CIl2qHSI.js";const V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},A=_({name:"WarningOutline",render:function(f,d){return l(),a("svg",V,d[0]||(d[0]=[o("path",{d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M250.26 195.39l5.74 122l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M256 397.25a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)]))}}),B={class:"service-error"},I={class:"card",role:"alert"},P={class:"kicker"},L={key:0,class:"result",role:"status"},h={class:"actions"},j={key:0,class:"result",role:"status"},H={class:"actions"},M=_({__name:"ServiceErrorView",setup(E){const f=S(),d=T(),i=x(!1),t=x(""),C=R(()=>f.query.reason==="host-expired");function N(){window.location.reload()}async function k(){if(!i.value){i.value=!0,t.value="";try{const u=await z();if(u==="ok"){const e=D(f.query.next,window.location.origin);await d.replace(e);return}u==="host-expired"?t.value="连接凭据已更新,请刷新页面。":u==="desktop-token"?t.value="令牌仍无效,请完全关闭客户端后重新打开。":u==="session"?t.value="当前是账号会话失效,请重新登录。":t.value="无法连接本地录制服务,请确认服务已启动。"}finally{i.value=!1}}}return(u,e)=>(l(),a("div",B,[o("div",I,[o("div",P,[s(r(c),{size:15},{default:n(()=>[s(r(A))]),_:1}),e[0]||(e[0]=p(" 本地服务未就绪 ",-1))]),C.value?(l(),a(m,{key:0},[e[3]||(e[3]=o("h1",null,"连接凭据已更新",-1)),e[4]||(e[4]=o("p",null," 宿主服务的访问凭据在页面打开后发生了更新(通常是服务重启或休眠恢复)。 请刷新当前页面以取得新的凭据,无需重新登录。 ",-1)),t.value?(l(),a("div",L,w(t.value),1)):g("",!0),o("div",h,[s(r(v),{type:"primary",size:"large",onClick:N},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[1]||(e[1]=p(" 刷新页面 ",-1))]),_:1}),s(r(v),{size:"large",loading:i.value,onClick:k},{default:n(()=>[...e[2]||(e[2]=[p("重新检测",-1)])]),_:1},8,["loading"])]),e[5]||(e[5]=o("p",{class:"foot mono"},"HOST CREDENTIAL EXPIRED · RELOAD PAGE",-1))],64)):(l(),a(m,{key:1},[e[7]||(e[7]=o("h1",null,"桌面服务令牌无效",-1)),e[8]||(e[8]=o("p",null," 客户端与本地录制服务之间的令牌已失效(通常是客户端重启或升级后残留的旧页面)。 请关闭并重新打开客户端,不要在当前页面继续操作。 ",-1)),t.value?(l(),a("div",j,w(t.value),1)):g("",!0),o("div",H,[s(r(v),{type:"primary",size:"large",loading:i.value,onClick:k},{icon:n(()=>[s(r(c),null,{default:n(()=>[s(r(y))]),_:1})]),default:n(()=>[e[6]||(e[6]=p(" 重新检测 ",-1))]),_:1},8,["loading"])]),e[9]||(e[9]=o("p",{class:"foot mono"},"DESKTOP TOKEN INVALID · RESTART THE APP",-1))],64))])]))}}),W=O(M,[["__scopeId","data-v-123136ea"]]);export{W as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-BYZ7Hiig.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-BYZ7Hiig.css deleted file mode 100644 index 3de7f32a..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-BYZ7Hiig.css +++ /dev/null @@ -1 +0,0 @@ -.loading[data-v-82f82059]{display:grid;place-items:center;padding:90px 0}.sections[data-v-82f82059]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-82f82059]{padding:20px 22px 22px}.sec-head[data-v-82f82059]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-82f82059]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-82f82059]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-82f82059]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-82f82059]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-82f82059]{color:var(--muted)}.sec-head h2[data-v-82f82059]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-82f82059]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-82f82059]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-82f82059]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-82f82059]{grid-column:1 / -1}.field>span[data-v-82f82059]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-82f82059]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-82f82059]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-82f82059]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-82f82059]{grid-column:1 / -1}.readonly[data-v-82f82059]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-82f82059]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-82f82059]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-82f82059]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-82f82059]{font-size:13px;font-weight:600}.error-panel[data-v-82f82059]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-82f82059]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-82f82059]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-82f82059]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-82f82059]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-82f82059]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-82f82059]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-82f82059]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-82f82059]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}.engine-install[data-v-82f82059]{display:flex;flex-direction:column;gap:10px}.engine-status-row[data-v-82f82059]{display:flex;align-items:center;gap:10px;font-size:12.5px}.engine-status-row span[data-v-82f82059]{color:var(--muted)}.engine-status-row b[data-v-82f82059]{color:var(--text, #e6f1f5)}.engine-detail[data-v-82f82059]{display:grid;grid-template-columns:1fr 2fr;gap:8px 12px;font-size:11.5px}.engine-detail>div[data-v-82f82059]{display:flex;flex-direction:column;gap:4px}.engine-detail span[data-v-82f82059]{color:var(--muted)}.engine-detail b[data-v-82f82059]{overflow-wrap:anywhere}.engine-progress[data-v-82f82059]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--muted)}.progress-track[data-v-82f82059]{flex:1 1 180px;height:6px;border-radius:99px;overflow:hidden;background:#94c5d61f}.progress-fill[data-v-82f82059]{height:100%;background:var(--accent, #2dd4bf);transition:width .2s ease}.manual-list[data-v-82f82059]{margin:4px 0 0;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}@media(max-width:640px){.fields[data-v-82f82059],.readonly[data-v-82f82059],.engine-status[data-v-82f82059]{grid-template-columns:1fr}.section[data-v-82f82059]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CaYIvJoC.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CJoqn3Jp.js similarity index 83% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CaYIvJoC.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CJoqn3Jp.js index 2d25b0c3..61029f0f 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CaYIvJoC.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-CJoqn3Jp.js @@ -1,3 +1,3 @@ -import{I as C}from"./Input-B9LQLjz_.js";import{d as V,o as u,c as d,y as he,a as l,ao as T,aV as oe,b as Ce,A as Se,e as i,w as a,u as s,B as m,t as p,f as r,g as w,n as ze,i as B,F as Y,bg as Me,r as c,J as Be,ap as Ee,bh as Ue}from"./index-W7SBB4Eq.js";import{S as D}from"./Select-yKeAXmxd.js";import{N as g,_ as Ae}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as Ne,S as Q}from"./Switch-CwiTSVeN.js";import{u as Oe}from"./use-message-DkYn5b6o.js";import{I as j,D as De}from"./DocumentTextOutline-DseBRj1r.js";import{S as Pe}from"./Spin-IfgPhZdn.js";import{E as te,g as Te,s as Ve,c as qe,r as Re}from"./engine-BukwEF_1.js";import{e as v}from"./engine-state-zmQVlIbS.js";import{v as Ie}from"./filename-template-DBJXvN0y.js";import{e as x,i as P}from"./runtime-bridge-DmDzFGpU.js";import{V as X}from"./VideocamOutline-Br_v12hA.js";import{R as Le}from"./RefreshOutline-CjuuDK9l.js";import"./use-compitable-D8hAoj1z.js";const Fe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=V({name:"ColorPaletteOutline",render:function(f,_){return u(),d("svg",Fe,_[0]||(_[0]=[he('',6)]))}}),$e={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},je=V({name:"KeyOutline",render:function(f,_){return u(),d("svg",$e,_[0]||(_[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=V({name:"SaveOutline",render:function(f,_){return u(),d("svg",Ge,_[0]||(_[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ke={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Z=V({name:"ServerOutline",render:function(f,_){return u(),d("svg",Ke,_[0]||(_[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Je=()=>T("/v1/configuration"),We=S=>oe("/v1/configuration",S),Ye=[{label:"外部转码工具(需本机自行安装)",value:"ffmpeg"},{label:"内置下载器(边录边传,推荐)",value:"stream-gears"},{label:"外部流下载工具(需本机自行安装)",value:"streamlink"},{label:"内置下载器(同步模式)",value:"sync-downloader"},{label:"内置下载器(落盘录制)",value:"mesio"}],Qe=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Xe=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Ze=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],el={class:"page"},ll={class:"page-head"},sl={class:"toolbar"},nl={key:0,class:"loading"},tl={key:1,class:"error-panel"},il={class:"error-msg"},ol={key:2,class:"sections"},al={class:"section panel"},rl={class:"sec-head"},ul={class:"sec-icon accent"},dl={class:"fields"},pl={class:"field wide"},vl={class:"field wide"},fl={class:"field"},cl={class:"field"},ml={class:"field"},_l={class:"field"},yl={class:"section panel"},gl={class:"sec-head"},kl={class:"sec-icon cyan"},wl={class:"fields"},bl={class:"field"},xl={class:"field"},hl={class:"field wide"},Cl={class:"section panel"},Sl={class:"sec-head"},zl={class:"sec-icon live"},Ml={class:"fields"},Bl={class:"field"},El={class:"field"},Ul={class:"field switch-field"},Al={class:"field switch-field"},Nl={class:"field switch-field"},Ol={class:"section panel"},Dl={class:"sec-head"},Pl={class:"sec-icon live"},Tl={class:"fields"},Vl={class:"field wide"},ql={class:"section panel"},Rl={class:"sec-head"},Il={class:"sec-icon muted"},Ll={class:"readonly"},Fl={class:"mono"},Hl={class:"mono"},$l={class:"mono"},jl={class:"mono"},Gl={class:"section panel"},Kl={class:"sec-head"},Jl={class:"sec-icon cyan"},Wl={class:"engine-install"},Yl={class:"engine-status-row"},Ql={key:0,class:"readonly engine-detail"},Xl={class:"mono"},Zl={class:"mono"},es={key:1,class:"inline-hint"},ls={key:2,class:"inline-hint"},ss={key:3,class:"inline-hint"},ns={key:4,class:"engine-progress"},ts={class:"progress-track"},is={class:"mono"},os={class:"mono"},as={class:"mono"},rs={class:"support-actions"},us={key:5,class:"manual-list"},ds={class:"section panel"},ps={class:"sec-head"},vs={class:"sec-icon accent"},fs={class:"fields"},cs={class:"field wide"},ms={class:"field wide"},_s={class:"field wide"},ys={class:"support-actions"},gs={key:0,class:"inline-hint"},ks={key:1,class:"readonly engine-status"},ws={class:"mono"},bs={class:"mono"},xs={key:2,class:"diagnostic-block"},hs={key:0,class:"inline-error"},Cs={key:1,class:"inline-hint"},Ss={key:2,class:"diag-preview"},zs={class:"support-actions"},Ms={class:"support-note"},Bs={class:"section panel"},Es={class:"sec-head"},Us={class:"sec-icon cyan"},As={class:"fields"},Ns={class:"field wide"},Os=V({__name:"SettingsView",setup(S){const f=Oe(),_=Ne(),y=c(null),E=c(!0),q=c(!1),R=c(""),t=Be({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function ee(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function G(){E.value=!0,R.value="";try{y.value=await Je(),ee(y.value)}catch(n){R.value=n instanceof Error?n.message:"读取配置失败"}finally{E.value=!1}}async function ae(){if(!y.value)return;const n=Ie(t.filename_prefix);if(n){f.error(n);return}q.value=!0;try{const e={...y.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await We(e);y.value=o,ee(o),f.success("设置已保存并生效")}catch(e){f.error(x(e))}finally{q.value=!1}}const z=c(null),I=c("sidecar"),le=c(""),L=c(""),b=c(!1),U=c(""),h=c(!0),K=c(!1);let F;async function H(){if(!P()){h.value=!1,U.value="引擎连接模式仅在 MiniApp 中可用";return}b.value=!0,U.value="";try{const[n,e]=await Promise.all([T("/_miniapp/runtime-status"),T("/_miniapp/connection-config")]);z.value=n,I.value=e.mode==="remote"?"remote":"sidecar",le.value=e.binaryPath??"",L.value=e.ffmpegPath??"",h.value=!0}catch(n){z.value=null,h.value=!1,U.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{b.value=!1}}async function re(){if(P()){b.value=!0;try{await oe("/_miniapp/connection-config",{mode:I.value,ffmpegPath:L.value}),f.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await H()}catch(n){f.error(x(n))}finally{b.value=!1}}}async function ue(){if(P()){b.value=!0;try{await Ee("/_miniapp/engine/restart"),f.success("引擎重启指令已发送"),await H()}catch(n){f.error(x(n))}finally{b.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function J(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,M=0;for(;o>=1024&&M0?J(n)+"/s":"—"}async function A(){if(P())try{v.value=await Te()}catch{v.value=null}}async function ne(){try{const n=await Ve();!n.ok&&n.error&&f.error(n.error),await A()}catch(n){f.error(x(n))}}async function ve(){try{await qe(),await A()}catch(n){f.error(x(n))}}async function fe(){_.warning({title:"重新下载录播引擎",content:"这会重新下载并替换当前引擎,下载和校验完成前不会移除现有引擎。继续吗?",positiveText:"重新下载",negativeText:"取消",onPositiveClick:async()=>{try{const n=await Re();!n.ok&&n.error&&f.error(n.error),await A()}catch(n){f.error(x(n))}}})}const k=c(""),W=c(!1),N=c(""),$=c(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",M=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+M+xe}async function me(){if(N.value="",!P()){k.value="",N.value="诊断日志仅在 MiniApp 中可用";return}W.value=!0;try{const[n,e]=await Promise.all([T("/_miniapp/diagnostics"),T("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?k.value=o.map(ce).join(` +import{I as C}from"./Input-DS3FhrY_.js";import{d as V,o as u,c as d,y as he,a as l,ao as T,aV as oe,b as Ce,A as Se,e as i,w as a,u as s,B as m,t as p,f as r,g as w,n as ze,i as B,F as Y,bg as Me,r as c,J as Be,ap as Ee,bh as Ue}from"./index-Bmcyfv7z.js";import{S as D}from"./Select-P9AqjsDB.js";import{N as g,_ as Ae}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as Ne,S as Q}from"./Switch-C33rKL-M.js";import{u as Oe}from"./use-message-BaVpnNbE.js";import{I as j,D as De}from"./DocumentTextOutline-BvVIG18e.js";import{S as Pe}from"./Spin-CCColBh4.js";import{E as te,g as Te,s as Ve,c as qe,r as Re}from"./engine-vojgPPhH.js";import{e as v}from"./engine-state-Cu8p5L8n.js";import{v as Ie}from"./filename-template-DBJXvN0y.js";import{e as x,i as P}from"./runtime-bridge-DmDzFGpU.js";import{V as X}from"./VideocamOutline-DoUnrAre.js";import{R as Le}from"./RefreshOutline-CIl2qHSI.js";import"./use-compitable-CSVBov8c.js";const Fe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},He=V({name:"ColorPaletteOutline",render:function(f,_){return u(),d("svg",Fe,_[0]||(_[0]=[he('',6)]))}}),$e={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},je=V({name:"KeyOutline",render:function(f,_){return u(),d("svg",$e,_[0]||(_[0]=[l("path",{d:"M218.1 167.17c0 13 0 25.6 4.1 37.4c-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 0 0-6.7 15c0 8.5 5.2 16.7 9.6 21.3c6.6 6.9 34.8 33 40 28c15.4-15 18.5-19 24.8-25.2c9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4s15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2c5-4.6 8.6-8.9 8.7-15.6c.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5s22.8-15.5 24.1-21.6s-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4c15.5 6.7 29.6 9.4 47.7 9.4c68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 1 1-32-32a32 32 0 0 1 32 32z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ie=V({name:"SaveOutline",render:function(f,_){return u(),d("svg",Ge,_[0]||(_[0]=[l("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ke={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Z=V({name:"ServerOutline",render:function(f,_){return u(),d("svg",Ke,_[0]||(_[0]=[l("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),l("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Je=()=>T("/v1/configuration"),We=S=>oe("/v1/configuration",S),Ye=[{label:"外部转码工具(需本机自行安装)",value:"ffmpeg"},{label:"内置下载器(边录边传,推荐)",value:"stream-gears"},{label:"外部流下载工具(需本机自行安装)",value:"streamlink"},{label:"内置下载器(同步模式)",value:"sync-downloader"},{label:"内置下载器(落盘录制)",value:"mesio"}],Qe=[{label:"原画 origin",value:"origin"},{label:"超清 uhd",value:"uhd"},{label:"高清 hd",value:"hd"},{label:"标清 sd",value:"sd"},{label:"流畅 ld",value:"ld"}],Xe=[{label:"FLV(推荐)",value:"flv"},{label:"HLS",value:"hls"}],Ze=[{label:"Sidecar(内置引擎)",value:"sidecar"},{label:"外部常驻服务 / 远端实例",value:"remote"}],el={class:"page"},ll={class:"page-head"},sl={class:"toolbar"},nl={key:0,class:"loading"},tl={key:1,class:"error-panel"},il={class:"error-msg"},ol={key:2,class:"sections"},al={class:"section panel"},rl={class:"sec-head"},ul={class:"sec-icon accent"},dl={class:"fields"},pl={class:"field wide"},vl={class:"field wide"},fl={class:"field"},cl={class:"field"},ml={class:"field"},_l={class:"field"},yl={class:"section panel"},gl={class:"sec-head"},kl={class:"sec-icon cyan"},wl={class:"fields"},bl={class:"field"},xl={class:"field"},hl={class:"field wide"},Cl={class:"section panel"},Sl={class:"sec-head"},zl={class:"sec-icon live"},Ml={class:"fields"},Bl={class:"field"},El={class:"field"},Ul={class:"field switch-field"},Al={class:"field switch-field"},Nl={class:"field switch-field"},Ol={class:"section panel"},Dl={class:"sec-head"},Pl={class:"sec-icon live"},Tl={class:"fields"},Vl={class:"field wide"},ql={class:"section panel"},Rl={class:"sec-head"},Il={class:"sec-icon muted"},Ll={class:"readonly"},Fl={class:"mono"},Hl={class:"mono"},$l={class:"mono"},jl={class:"mono"},Gl={class:"section panel"},Kl={class:"sec-head"},Jl={class:"sec-icon cyan"},Wl={class:"engine-install"},Yl={class:"engine-status-row"},Ql={key:0,class:"readonly engine-detail"},Xl={class:"mono"},Zl={class:"mono"},es={key:1,class:"inline-hint"},ls={key:2,class:"inline-hint"},ss={key:3,class:"inline-hint"},ns={key:4,class:"engine-progress"},ts={class:"progress-track"},is={class:"mono"},os={class:"mono"},as={class:"mono"},rs={class:"support-actions"},us={key:5,class:"manual-list"},ds={class:"section panel"},ps={class:"sec-head"},vs={class:"sec-icon accent"},fs={class:"fields"},cs={class:"field wide"},ms={class:"field wide"},_s={class:"field wide"},ys={class:"support-actions"},gs={key:0,class:"inline-hint"},ks={key:1,class:"readonly engine-status"},ws={class:"mono"},bs={class:"mono"},xs={key:2,class:"diagnostic-block"},hs={key:0,class:"inline-error"},Cs={key:1,class:"inline-hint"},Ss={key:2,class:"diag-preview"},zs={class:"support-actions"},Ms={class:"support-note"},Bs={class:"section panel"},Es={class:"sec-head"},Us={class:"sec-icon cyan"},As={class:"fields"},Ns={class:"field wide"},Os=V({__name:"SettingsView",setup(S){const f=Oe(),_=Ne(),y=c(null),E=c(!0),q=c(!1),R=c(""),t=Be({sync_save_dir:"",filename_prefix:"",file_size_gb:2.5,segment_time:"",filtering_threshold:1,min_free_space_gb:0,checker_sleep:10,downloader:"stream-gears",ffmpeg_path:"",douyin_quality:"origin",douyin_protocol:"flv",douyin_true_origin:!0,douyin_double_screen:!1,douyin_danmaku:!1,kuaishou_cookie:""});function ee(n){t.sync_save_dir=n.sync_save_dir??"",t.filename_prefix=n.filename_prefix??"",t.file_size_gb=Number(((n.file_size??262144e4)/1024/1024/1024).toFixed(3)),t.segment_time=n.segment_time??"",t.filtering_threshold=n.filtering_threshold??1,t.min_free_space_gb=Number(((n.min_free_space??0)/1024/1024/1024).toFixed(2)),t.checker_sleep=n.checker_sleep??10,t.downloader=n.downloader??"stream-gears",t.ffmpeg_path=n.ffmpeg_path??"",t.douyin_quality=n.douyin_quality??"origin",t.douyin_protocol=n.douyin_protocol??"flv",t.douyin_true_origin=n.douyin_true_origin??!0,t.douyin_double_screen=n.douyin_double_screen??!1,t.douyin_danmaku=n.douyin_danmaku??!1,t.kuaishou_cookie=n.kuaishou_cookie??""}async function G(){E.value=!0,R.value="";try{y.value=await Je(),ee(y.value)}catch(n){R.value=n instanceof Error?n.message:"读取配置失败"}finally{E.value=!1}}async function ae(){if(!y.value)return;const n=Ie(t.filename_prefix);if(n){f.error(n);return}q.value=!0;try{const e={...y.value,sync_save_dir:t.sync_save_dir.trim()||null,filename_prefix:t.filename_prefix.trim()||null,file_size:Math.round(t.file_size_gb*1024*1024*1024),segment_time:t.segment_time.trim()||null,filtering_threshold:t.filtering_threshold??1,min_free_space:Math.round((t.min_free_space_gb||0)*1024*1024*1024)||null,checker_sleep:t.checker_sleep||10,downloader:t.downloader,ffmpeg_path:t.ffmpeg_path.trim()||null,douyin_quality:t.douyin_quality,douyin_protocol:t.douyin_protocol,douyin_true_origin:t.douyin_true_origin,douyin_double_screen:t.douyin_double_screen,douyin_danmaku:t.douyin_danmaku,kuaishou_cookie:t.kuaishou_cookie.trim()||null},o=await We(e);y.value=o,ee(o),f.success("设置已保存并生效")}catch(e){f.error(x(e))}finally{q.value=!1}}const z=c(null),I=c("sidecar"),le=c(""),L=c(""),b=c(!1),U=c(""),h=c(!0),K=c(!1);let F;async function H(){if(!P()){h.value=!1,U.value="引擎连接模式仅在 MiniApp 中可用";return}b.value=!0,U.value="";try{const[n,e]=await Promise.all([T("/_miniapp/runtime-status"),T("/_miniapp/connection-config")]);z.value=n,I.value=e.mode==="remote"?"remote":"sidecar",le.value=e.binaryPath??"",L.value=e.ffmpegPath??"",h.value=!0}catch(n){z.value=null,h.value=!1,U.value=x(n)||"读取引擎状态失败(接口尚未就绪)"}finally{b.value=!1}}async function re(){if(P()){b.value=!0;try{await oe("/_miniapp/connection-config",{mode:I.value,ffmpegPath:L.value}),f.success("引擎连接配置已保存(引擎路径不在页面里改),重启引擎后生效"),await H()}catch(n){f.error(x(n))}finally{b.value=!1}}}async function ue(){if(P()){b.value=!0;try{await Ee("/_miniapp/engine/restart"),f.success("引擎重启指令已发送"),await H()}catch(n){f.error(x(n))}finally{b.value=!1}}}function de(n){switch(n){case"ready":return"已就绪";case"downloading":return"下载中";case"verifying":return"校验中";case"failed":return"校验失败";case"unsupported":return"当前系统不支持";case"missing":return"未安装";default:return"未知"}}function J(n){if(!Number.isFinite(n)||n<=0)return"0 B";const e=["B","KB","MB","GB"];let o=n,M=0;for(;o>=1024&&M0?J(n)+"/s":"—"}async function A(){if(P())try{v.value=await Te()}catch{v.value=null}}async function ne(){try{const n=await Ve();!n.ok&&n.error&&f.error(n.error),await A()}catch(n){f.error(x(n))}}async function ve(){try{await qe(),await A()}catch(n){f.error(x(n))}}async function fe(){_.warning({title:"重新下载录播引擎",content:"这会重新下载并替换当前引擎,下载和校验完成前不会移除现有引擎。继续吗?",positiveText:"重新下载",negativeText:"取消",onPositiveClick:async()=>{try{const n=await Re();!n.ok&&n.error&&f.error(n.error),await A()}catch(n){f.error(x(n))}}})}const k=c(""),W=c(!1),N=c(""),$=c(!1);function ce(n){const e=typeof n?.ts=="string"?n.ts:"",o=typeof n?.level=="string"?n.level:"info",M=typeof n?.message=="string"?n.message:"",xe=typeof n?.fields=="string"&&n.fields?" "+n.fields:"";return(e?e+" ":"")+"["+o+"] "+M+xe}async function me(){if(N.value="",!P()){k.value="",N.value="诊断日志仅在 MiniApp 中可用";return}W.value=!0;try{const[n,e]=await Promise.all([T("/_miniapp/diagnostics"),T("/_miniapp/runtime-status").catch(()=>null)]),o=Array.isArray(n?.lines)?n.lines:[];o.length?k.value=o.map(ce).join(` `):e?.lastError?k.value="最近错误:"+e.lastError:k.value="暂无最近错误记录"}catch(n){N.value=x(n),k.value=""}finally{W.value=!1}}function _e(){if(!k.value)return;const n=new Blob([k.value],{type:"text/plain;charset=utf-8"}),e=URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="live-stream-recorder-diagnostics.txt",o.click(),URL.revokeObjectURL(e)}async function ye(){const n=k.value.trim();if(!n)return;const e=window.miniapp;if(!e?.host?.composer?.append){f.warning("当前环境不支持交给 Agent 诊断");return}try{await e.host.composer.append(`请帮我诊断 Live Stream Recorder 的以下问题: -`+n),f.success("已送入输入框,请确认后发送")}catch(o){f.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function ke(n){Ue(n),f.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const O=c("default");function we(){O.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{O.value=await Notification.requestPermission()}catch{}}return Ce(()=>{G(),H(),A(),me(),we(),F=window.setInterval(()=>{A()},1500)}),Se(()=>{F!==void 0&&(window.clearInterval(F),F=void 0)}),(n,e)=>(u(),d("div",el,[l("div",ll,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",sl,[i(s(m),{disabled:E.value||q.value,onClick:G},{default:a(()=>[...e[19]||(e[19]=[r("重新读取",-1)])]),_:1},8,["disabled"]),i(s(m),{type:"primary",loading:q.value,disabled:E.value||!y.value,onClick:ae},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(ie))]),_:1})]),default:a(()=>[e[20]||(e[20]=r(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),E.value?(u(),d("div",nl,[i(s(Pe),{size:"large"})])):R.value?(u(),d("div",tl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",il,p(R.value),1),i(s(m),{size:"small",onClick:G},{default:a(()=>[...e[22]||(e[22]=[r("重试",-1)])]),_:1})])):(u(),d("div",ol,[l("section",al,[l("header",rl,[l("span",ul,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",dl,[l("label",pl,[e[25]||(e[25]=l("span",null,[r("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(C),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",vl,[e[26]||(e[26]=l("span",null,[r("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(C),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",fl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s(j),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:a(()=>[...e[28]||(e[28]=[r("GB",-1)])]),_:1},8,["value"])]),l("label",cl,[e[30]||(e[30]=l("span",null,[r("分段时间 "),l("em",null,"segment_time")],-1)),i(s(C),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",ml,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s(j),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:a(()=>[...e[32]||(e[32]=[r("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",_l,[e[36]||(e[36]=l("span",null,[r("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s(j),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:a(()=>[...e[35]||(e[35]=[r("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",yl,[l("header",gl,[l("span",kl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",wl,[l("label",bl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s(j),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:a(()=>[...e[39]||(e[39]=[r("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",xl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(D),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Ye)},null,8,["value","options"])]),l("label",hl,[e[43]||(e[43]=l("span",null,"外部转码工具路径(录制引擎)",-1)),i(s(C),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",Cl,[l("header",Sl,[l("span",zl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Ml,[l("label",Bl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(D),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(Qe)},null,8,["value","options"])]),l("label",El,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(D),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Xe)},null,8,["value","options"])]),l("div",Ul,[e[47]||(e[47]=l("span",null,[r("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Q),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Al,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Q),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Nl,[e[51]||(e[51]=l("span",null,[r("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Q),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Ol,[l("header",Dl,[l("span",Pl,[i(s(g),{size:17},{default:a(()=>[i(s(je))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Tl,[l("label",Vl,[e[54]||(e[54]=l("span",null,[r("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(C),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",ql,[l("header",Rl,[l("span",Il,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Ll,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Fl,p(y.value?.pool1_size??"—")+" / "+p(y.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Hl,p(y.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",$l,p(y.value?.retention_hours?y.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",jl,p(y.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Gl,[l("header",Kl,[l("span",Jl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Wl,[l("div",Yl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,p(de(s(v)?.state)),1)]),s(v)?.state==="ready"?(u(),d("div",Ql,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Xl,p(s(v).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Zl,p(s(v).path||"—"),1)])])):w("",!0),s(v)?.error?(u(),d("div",es,p(s(v).error),1)):w("",!0),s(v)?.notice?(u(),d("div",ls,p(s(v).notice),1)):w("",!0),s(te)?w("",!0):(u(),d("div",ss,"引擎下载尚未配置")),s(v)?.state==="downloading"||s(v)?.state==="verifying"?(u(),d("div",ns,[l("div",ts,[l("div",{class:"progress-fill",style:ze({width:se()+"%"})},null,4)]),l("span",is,p(se())+"%",1),l("span",os,p(J(s(v)?.bytesDownloaded||0))+" / "+p(J(s(v)?.bytesTotal||0)),1),l("span",as,p(pe()),1)])):w("",!0),l("div",rs,[s(te)?s(v)?.state==="missing"?(u(),B(s(m),{key:1,type:"primary",onClick:ne},{default:a(()=>[...e[66]||(e[66]=[r("下载引擎",-1)])]),_:1})):s(v)?.state==="failed"?(u(),B(s(m),{key:2,type:"primary",onClick:ne},{default:a(()=>[...e[67]||(e[67]=[r("重新下载",-1)])]),_:1})):s(v)?.state==="ready"?(u(),B(s(m),{key:3,onClick:fe},{default:a(()=>[...e[68]||(e[68]=[r("重新下载",-1)])]),_:1})):s(v)?.state==="downloading"||s(v)?.state==="verifying"?(u(),B(s(m),{key:4,onClick:ve},{default:a(()=>[...e[69]||(e[69]=[r("取消",-1)])]),_:1})):w("",!0):(u(),B(s(m),{key:0,type:"primary",disabled:""},{default:a(()=>[...e[65]||(e[65]=[r("下载引擎",-1)])]),_:1})),i(s(m),{quaternary:"",onClick:e[15]||(e[15]=o=>K.value=!K.value)},{default:a(()=>[...e[70]||(e[70]=[r("手动安装说明",-1)])]),_:1})]),K.value?(u(),d("ol",us,[...e[71]||(e[71]=[l("li",null,[r("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),r(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):w("",!0)])]),l("section",ds,[l("header",ps,[l("span",vs,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",fs,[l("label",cs,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(D),{value:I.value,"onUpdate:value":e[16]||(e[16]=o=>I.value=o),options:s(Ze),disabled:!h.value},null,8,["value","options","disabled"])]),l("label",ms,[e[74]||(e[74]=l("span",null,"biliup-cli 路径(只读)",-1)),i(s(C),{value:le.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!h.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[r(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),r(" 的 "),l("code",null,"binaryPath"),r(" 字段。 ")],-1))]),l("label",_s,[e[76]||(e[76]=l("span",null,"外部转码工具路径(Sidecar)",-1)),i(s(C),{value:L.value,"onUpdate:value":e[17]||(e[17]=o=>L.value=o),placeholder:"留空使用系统 PATH",disabled:!h.value},null,8,["value","disabled"])])]),l("div",ys,[i(s(m),{loading:b.value,onClick:H},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(Le))]),_:1})]),default:a(()=>[e[77]||(e[77]=r(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(m),{type:"primary",loading:b.value,disabled:!h.value,onClick:re},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(ie))]),_:1})]),default:a(()=>[e[78]||(e[78]=r(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(m),{loading:b.value,disabled:!h.value,onClick:ue},{default:a(()=>[...e[79]||(e[79]=[r(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(m),{quaternary:"",onClick:e[18]||(e[18]=o=>$.value=!$.value)},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(De))]),_:1})]),default:a(()=>[r(" "+p($.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),U.value?(u(),d("div",gs,p(U.value),1)):w("",!0),z.value?(u(),d("div",ks,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ws,p(z.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,p(z.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",bs,p(z.value.pid??"—"),1)])])):w("",!0),$.value?(u(),d("div",xs,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),N.value?(u(),d("div",hs,p(N.value),1)):w("",!0),W.value?(u(),d("div",Cs,"读取中…")):(u(),d("pre",Ss,p(k.value||"暂无诊断信息"),1)),l("div",zs,[i(s(m),{size:"small",disabled:!k.value,onClick:_e},{default:a(()=>[...e[83]||(e[83]=[r("本地导出",-1)])]),_:1},8,["disabled"]),i(s(m),{size:"small",disabled:!k.value,onClick:ye},{default:a(()=>[...e[84]||(e[84]=[r("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):w("",!0),l("p",Ms,[e[87]||(e[87]=r(" 通知权限: ",-1)),O.value==="granted"?(u(),d(Y,{key:0},[r("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):O.value==="denied"?(u(),d(Y,{key:1},[r("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):O.value==="unsupported"?(u(),d(Y,{key:2},[r("当前环境不支持系统通知。")],64)):(u(),B(s(m),{key:3,size:"tiny",quaternary:"",onClick:be},{default:a(()=>[...e[86]||(e[86]=[r("开启系统通知",-1)])]),_:1}))])]),l("section",Bs,[l("header",Es,[l("span",Us,[i(s(g),{size:17},{default:a(()=>[i(s(He))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",As,[l("label",Ns,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(D),{value:s(Me),options:ge,"onUpdate:value":ke},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),Ws=Ae(Os,[["__scopeId","data-v-82f82059"]]);export{Ws as default}; +`+n),f.success("已送入输入框,请确认后发送")}catch(o){f.error(x(o))}}const ge=[{label:"跟随宿主(默认)",value:"host"},{label:"固定经典暗色",value:"classic"}];function ke(n){Ue(n),f.success(n==="classic"?"已固定经典暗色":"已切换为跟随宿主主题")}const O=c("default");function we(){O.value=typeof Notification>"u"?"unsupported":Notification.permission}async function be(){if(!(typeof Notification>"u"))try{O.value=await Notification.requestPermission()}catch{}}return Ce(()=>{G(),H(),A(),me(),we(),F=window.setInterval(()=>{A()},1500)}),Se(()=>{F!==void 0&&(window.clearInterval(F),F=void 0)}),(n,e)=>(u(),d("div",el,[l("div",ll,[e[21]||(e[21]=l("div",null,[l("h1",{class:"page-title"},"录制设置"),l("p",{class:"page-sub"},"修改后立即作用于后续录制,正在录制的直播间会在下一段生效")],-1)),l("div",sl,[i(s(m),{disabled:E.value||q.value,onClick:G},{default:a(()=>[...e[19]||(e[19]=[r("重新读取",-1)])]),_:1},8,["disabled"]),i(s(m),{type:"primary",loading:q.value,disabled:E.value||!y.value,onClick:ae},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(ie))]),_:1})]),default:a(()=>[e[20]||(e[20]=r(" 保存设置 ",-1))]),_:1},8,["loading","disabled"])])]),E.value?(u(),d("div",nl,[i(s(Pe),{size:"large"})])):R.value?(u(),d("div",tl,[e[23]||(e[23]=l("div",{class:"error-title"},"配置读取失败",-1)),l("div",il,p(R.value),1),i(s(m),{size:"small",onClick:G},{default:a(()=>[...e[22]||(e[22]=[r("重试",-1)])]),_:1})])):(u(),d("div",ol,[l("section",al,[l("header",rl,[l("span",ul,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[24]||(e[24]=l("div",null,[l("h2",null,"存储与文件"),l("p",null,"录像保存位置、命名与分段策略")],-1))]),l("div",dl,[l("label",pl,[e[25]||(e[25]=l("span",null,[r("额外保存目录 "),l("em",null,"sync_save_dir")],-1)),i(s(C),{value:t.sync_save_dir,"onUpdate:value":e[0]||(e[0]=o=>t.sync_save_dir=o),placeholder:"例如 D:\\\\录像(留空使用服务默认目录)"},null,8,["value"])]),l("label",vl,[e[26]||(e[26]=l("span",null,[r("文件名前缀 "),l("em",null,"filename_prefix")],-1)),i(s(C),{value:t.filename_prefix,"onUpdate:value":e[1]||(e[1]=o=>t.filename_prefix=o),placeholder:"可选,例如 {streamer}_%Y-%m-%d_%H-%M-%S"},null,8,["value"]),e[27]||(e[27]=l("small",null,"支持 {streamer} / {title} / {url} 与时间占位符;字面量 % 写成 %%。",-1))]),l("label",fl,[e[29]||(e[29]=l("span",null,"分段大小(GB)",-1)),i(s(j),{value:t.file_size_gb,"onUpdate:value":e[2]||(e[2]=o=>t.file_size_gb=o),min:.1,max:200,step:.5,style:{width:"100%"}},{suffix:a(()=>[...e[28]||(e[28]=[r("GB",-1)])]),_:1},8,["value"])]),l("label",cl,[e[30]||(e[30]=l("span",null,[r("分段时间 "),l("em",null,"segment_time")],-1)),i(s(C),{value:t.segment_time,"onUpdate:value":e[3]||(e[3]=o=>t.segment_time=o),placeholder:"例如 00:30:00,留空不按时长分段"},null,8,["value"]),e[31]||(e[31]=l("small",null,"实际以关键帧对齐为准,可能比设置值略长。",-1))]),l("label",ml,[e[33]||(e[33]=l("span",null,"碎片过滤阈值(MB)",-1)),i(s(j),{value:t.filtering_threshold,"onUpdate:value":e[4]||(e[4]=o=>t.filtering_threshold=o),min:0,max:1e3,style:{width:"100%"}},{suffix:a(()=>[...e[32]||(e[32]=[r("MB",-1)])]),_:1},8,["value"]),e[34]||(e[34]=l("small",null,"小于该大小的录像段会被当作碎片删除;0 表示不过滤。",-1))]),l("label",_l,[e[36]||(e[36]=l("span",null,[r("磁盘最低可用空间 "),l("em",null,"min_free_space")],-1)),i(s(j),{value:t.min_free_space_gb,"onUpdate:value":e[5]||(e[5]=o=>t.min_free_space_gb=o),min:0,max:500,step:1,style:{width:"100%"}},{suffix:a(()=>[...e[35]||(e[35]=[r("GB",-1)])]),_:1},8,["value"]),e[37]||(e[37]=l("small",null,"可用空间低于该值时按最旧优先删除已录完分段;0 = 不启用。",-1))])])]),l("section",yl,[l("header",gl,[l("span",kl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[38]||(e[38]=l("div",null,[l("h2",null,"监控与下载"),l("p",null,"开播检测频率和录制引擎")],-1))]),l("div",wl,[l("label",bl,[e[40]||(e[40]=l("span",null,"检测间隔(秒)",-1)),i(s(j),{value:t.checker_sleep,"onUpdate:value":e[6]||(e[6]=o=>t.checker_sleep=o),min:3,max:600,style:{width:"100%"}},{suffix:a(()=>[...e[39]||(e[39]=[r("秒",-1)])]),_:1},8,["value"]),e[41]||(e[41]=l("small",null,"过短容易被平台限流,建议 10–30 秒。",-1))]),l("label",xl,[e[42]||(e[42]=l("span",null,"下载器",-1)),i(s(D),{value:t.downloader,"onUpdate:value":e[7]||(e[7]=o=>t.downloader=o),options:s(Ye)},null,8,["value","options"])]),l("label",hl,[e[43]||(e[43]=l("span",null,"外部转码工具路径(录制引擎)",-1)),i(s(C),{value:t.ffmpeg_path,"onUpdate:value":e[8]||(e[8]=o=>t.ffmpeg_path=o),placeholder:"留空自动查找 PATH"},null,8,["value"])])])]),l("section",Cl,[l("header",Sl,[l("span",zl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[44]||(e[44]=l("div",null,[l("h2",null,"抖音专用"),l("p",null,"画质、协议与真原画开关")],-1))]),l("div",Ml,[l("label",Bl,[e[45]||(e[45]=l("span",null,"录制画质",-1)),i(s(D),{value:t.douyin_quality,"onUpdate:value":e[9]||(e[9]=o=>t.douyin_quality=o),options:s(Qe)},null,8,["value","options"])]),l("label",El,[e[46]||(e[46]=l("span",null,"直播协议",-1)),i(s(D),{value:t.douyin_protocol,"onUpdate:value":e[10]||(e[10]=o=>t.douyin_protocol=o),options:s(Xe)},null,8,["value","options"])]),l("div",Ul,[e[47]||(e[47]=l("span",null,[r("真原画 "),l("em",null,"douyin_true_origin")],-1)),i(s(Q),{value:t.douyin_true_origin,"onUpdate:value":e[11]||(e[11]=o=>t.douyin_true_origin=o)},null,8,["value"]),e[48]||(e[48]=l("small",null,"绕过“假原画”,优先取 HEVC 原始码流。",-1))]),l("div",Al,[e[49]||(e[49]=l("span",null,"双屏 / 连屏直播",-1)),i(s(Q),{value:t.douyin_double_screen,"onUpdate:value":e[12]||(e[12]=o=>t.douyin_double_screen=o)},null,8,["value"]),e[50]||(e[50]=l("small",null,"合演、连麦场景开启。",-1))]),l("div",Nl,[e[51]||(e[51]=l("span",null,[r("录制弹幕 "),l("em",null,"douyin_danmaku")],-1)),i(s(Q),{value:t.douyin_danmaku,"onUpdate:value":e[13]||(e[13]=o=>t.douyin_danmaku=o)},null,8,["value"]),e[52]||(e[52]=l("small",null,"同时保存直播间聊天与礼物消息。",-1))])])]),l("section",Ol,[l("header",Dl,[l("span",Pl,[i(s(g),{size:17},{default:a(()=>[i(s(je))]),_:1})]),e[53]||(e[53]=l("div",null,[l("h2",null,"快手专用"),l("p",null,"Cookie 可选,遇到“请求过快”时再填")],-1))]),l("div",Tl,[l("label",Vl,[e[54]||(e[54]=l("span",null,[r("登录 Cookie "),l("em",null,"kuaishou_cookie")],-1)),i(s(C),{value:t.kuaishou_cookie,"onUpdate:value":e[14]||(e[14]=o=>t.kuaishou_cookie=o),type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"留空则匿名访问;被限流时从浏览器复制完整 Cookie 粘进来"},null,8,["value"]),e[55]||(e[55]=l("small",null,"只在本机保存。",-1))])])]),l("section",ql,[l("header",Rl,[l("span",Il,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[56]||(e[56]=l("div",null,[l("h2",null,"当前运行信息"),l("p",null,"只读,来自录制服务")],-1))]),l("div",Ll,[l("div",null,[e[57]||(e[57]=l("span",null,"并发录制池",-1)),l("b",Fl,p(y.value?.pool1_size??"—")+" / "+p(y.value?.pool2_size??"—"),1)]),l("div",null,[e[58]||(e[58]=l("span",null,"线程数",-1)),l("b",Hl,p(y.value?.threads??"—"),1)]),l("div",null,[e[59]||(e[59]=l("span",null,"投稿后保留",-1)),l("b",$l,p(y.value?.retention_hours?y.value.retention_hours+" 小时":"0(不额外延迟)"),1)]),l("div",null,[e[60]||(e[60]=l("span",null,"合并阈值",-1)),l("b",jl,p(y.value?.live_merge_minutes??"—")+" 分钟",1)])])]),l("section",Gl,[l("header",Kl,[l("span",Jl,[i(s(g),{size:17},{default:a(()=>[i(s(X))]),_:1})]),e[61]||(e[61]=l("div",null,[l("h2",null,"录播引擎安装"),l("p",null,"引擎不随包分发,按需下载并校验;不会静默下载或更新")],-1))]),l("div",Wl,[l("div",Yl,[e[62]||(e[62]=l("span",null,"状态",-1)),l("b",null,p(de(s(v)?.state)),1)]),s(v)?.state==="ready"?(u(),d("div",Ql,[l("div",null,[e[63]||(e[63]=l("span",null,"版本",-1)),l("b",Xl,p(s(v).version||"—"),1)]),l("div",null,[e[64]||(e[64]=l("span",null,"路径",-1)),l("b",Zl,p(s(v).path||"—"),1)])])):w("",!0),s(v)?.error?(u(),d("div",es,p(s(v).error),1)):w("",!0),s(v)?.notice?(u(),d("div",ls,p(s(v).notice),1)):w("",!0),s(te)?w("",!0):(u(),d("div",ss,"引擎下载尚未配置")),s(v)?.state==="downloading"||s(v)?.state==="verifying"?(u(),d("div",ns,[l("div",ts,[l("div",{class:"progress-fill",style:ze({width:se()+"%"})},null,4)]),l("span",is,p(se())+"%",1),l("span",os,p(J(s(v)?.bytesDownloaded||0))+" / "+p(J(s(v)?.bytesTotal||0)),1),l("span",as,p(pe()),1)])):w("",!0),l("div",rs,[s(te)?s(v)?.state==="missing"?(u(),B(s(m),{key:1,type:"primary",onClick:ne},{default:a(()=>[...e[66]||(e[66]=[r("下载引擎",-1)])]),_:1})):s(v)?.state==="failed"?(u(),B(s(m),{key:2,type:"primary",onClick:ne},{default:a(()=>[...e[67]||(e[67]=[r("重新下载",-1)])]),_:1})):s(v)?.state==="ready"?(u(),B(s(m),{key:3,onClick:fe},{default:a(()=>[...e[68]||(e[68]=[r("重新下载",-1)])]),_:1})):s(v)?.state==="downloading"||s(v)?.state==="verifying"?(u(),B(s(m),{key:4,onClick:ve},{default:a(()=>[...e[69]||(e[69]=[r("取消",-1)])]),_:1})):w("",!0):(u(),B(s(m),{key:0,type:"primary",disabled:""},{default:a(()=>[...e[65]||(e[65]=[r("下载引擎",-1)])]),_:1})),i(s(m),{quaternary:"",onClick:e[15]||(e[15]=o=>K.value=!K.value)},{default:a(()=>[...e[70]||(e[70]=[r("手动安装说明",-1)])]),_:1})]),K.value?(u(),d("ol",us,[...e[71]||(e[71]=[l("li",null,[r("把引擎可执行文件放到插件数据目录的 "),l("code",null,"bin/"),r(" 子目录。")],-1),l("li",null,"或在配置里指定引擎可执行文件的路径。",-1),l("li",null,"或把引擎可执行文件所在目录加入系统 PATH。",-1)])])):w("",!0)])]),l("section",ds,[l("header",ps,[l("span",vs,[i(s(g),{size:17},{default:a(()=>[i(s(Z))]),_:1})]),e[72]||(e[72]=l("div",null,[l("h2",null,"MiniApp 引擎连接模式"),l("p",null,"选择内置 Sidecar 或外部常驻服务,配置引擎与工具路径")],-1))]),l("div",fs,[l("label",cs,[e[73]||(e[73]=l("span",null,"运行模式",-1)),i(s(D),{value:I.value,"onUpdate:value":e[16]||(e[16]=o=>I.value=o),options:s(Ze),disabled:!h.value},null,8,["value","options","disabled"])]),l("label",ms,[e[74]||(e[74]=l("span",null,"引擎命令行路径(只读)",-1)),i(s(C),{value:le.value,readonly:"",placeholder:"留空自动探测 PATH",disabled:!h.value},null,8,["value","disabled"]),e[75]||(e[75]=l("small",{class:"inline-hint"},[r(" 引擎路径不在页面里改:控制接口按 RCE 取舍拒绝改写可执行路径(发了也会被丢弃)。 要换二进制请直接编辑数据目录下的 "),l("code",null,"miniapp-config.json"),r(" 的 "),l("code",null,"binaryPath"),r(" 字段。 ")],-1))]),l("label",_s,[e[76]||(e[76]=l("span",null,"外部转码工具路径(Sidecar)",-1)),i(s(C),{value:L.value,"onUpdate:value":e[17]||(e[17]=o=>L.value=o),placeholder:"留空使用系统 PATH",disabled:!h.value},null,8,["value","disabled"])])]),l("div",ys,[i(s(m),{loading:b.value,onClick:H},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(Le))]),_:1})]),default:a(()=>[e[77]||(e[77]=r(" 刷新状态 ",-1))]),_:1},8,["loading"]),i(s(m),{type:"primary",loading:b.value,disabled:!h.value,onClick:re},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(ie))]),_:1})]),default:a(()=>[e[78]||(e[78]=r(" 保存配置 ",-1))]),_:1},8,["loading","disabled"]),i(s(m),{loading:b.value,disabled:!h.value,onClick:ue},{default:a(()=>[...e[79]||(e[79]=[r(" 重启引擎 ",-1)])]),_:1},8,["loading","disabled"]),i(s(m),{quaternary:"",onClick:e[18]||(e[18]=o=>$.value=!$.value)},{icon:a(()=>[i(s(g),null,{default:a(()=>[i(s(De))]),_:1})]),default:a(()=>[r(" "+p($.value?"收起诊断日志":"查看诊断日志"),1)]),_:1})]),U.value?(u(),d("div",gs,p(U.value),1)):w("",!0),z.value?(u(),d("div",ks,[l("div",null,[e[80]||(e[80]=l("span",null,"引擎模式",-1)),l("b",ws,p(z.value.mode??"—"),1)]),l("div",null,[e[81]||(e[81]=l("span",null,"就绪状态",-1)),l("b",null,p(z.value.ready?"已就绪":"未就绪"),1)]),l("div",null,[e[82]||(e[82]=l("span",null,"进程 PID",-1)),l("b",bs,p(z.value.pid??"—"),1)])])):w("",!0),$.value?(u(),d("div",xs,[e[85]||(e[85]=l("p",{class:"support-note"},"纯本地脱敏诊断信息,不会上传到任何服务器。",-1)),N.value?(u(),d("div",hs,p(N.value),1)):w("",!0),W.value?(u(),d("div",Cs,"读取中…")):(u(),d("pre",Ss,p(k.value||"暂无诊断信息"),1)),l("div",zs,[i(s(m),{size:"small",disabled:!k.value,onClick:_e},{default:a(()=>[...e[83]||(e[83]=[r("本地导出",-1)])]),_:1},8,["disabled"]),i(s(m),{size:"small",disabled:!k.value,onClick:ye},{default:a(()=>[...e[84]||(e[84]=[r("交给 Agent 诊断",-1)])]),_:1},8,["disabled"])])])):w("",!0),l("p",Ms,[e[87]||(e[87]=r(" 通知权限: ",-1)),O.value==="granted"?(u(),d(Y,{key:0},[r("已开启,开播 / 录完 / 压制完成会收到系统通知。")],64)):O.value==="denied"?(u(),d(Y,{key:1},[r("已被浏览器关闭,设置页无法重新开启;请在宿主通知设置中恢复。")],64)):O.value==="unsupported"?(u(),d(Y,{key:2},[r("当前环境不支持系统通知。")],64)):(u(),B(s(m),{key:3,size:"tiny",quaternary:"",onClick:be},{default:a(()=>[...e[86]||(e[86]=[r("开启系统通知",-1)])]),_:1}))])]),l("section",Bs,[l("header",Es,[l("span",Us,[i(s(g),{size:17},{default:a(()=>[i(s(He))]),_:1})]),e[88]||(e[88]=l("div",null,[l("h2",null,"外观主题偏好"),l("p",null,"跟随宿主或固定经典暗色")],-1))]),l("div",As,[l("label",Ns,[e[89]||(e[89]=l("span",null,"主题模式",-1)),i(s(D),{value:s(Me),options:ge,"onUpdate:value":ke},null,8,["value"]),e[90]||(e[90]=l("small",null,"「跟随宿主」会实时同步宿主的明暗主题与中英文语言;「固定经典暗色」始终使用原版深色主题。",-1))])])])]))]))}}),Ws=Ae(Os,[["__scopeId","data-v-4325c122"]]);export{Ws as default}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Cfxh_2g_.css b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Cfxh_2g_.css new file mode 100644 index 00000000..2840d08e --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/SettingsView-Cfxh_2g_.css @@ -0,0 +1 @@ +.loading[data-v-4325c122]{display:grid;place-items:center;padding:90px 0}.sections[data-v-4325c122]{display:flex;flex-direction:column;gap:16px;max-width:980px}.section[data-v-4325c122]{padding:20px 22px 22px}.sec-head[data-v-4325c122]{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.sec-icon[data-v-4325c122]{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:#94c5d60f;border:1px solid var(--line)}.sec-icon.accent[data-v-4325c122]{color:var(--accent);background:#2dd4bf14;border-color:#2dd4bf33}.sec-icon.cyan[data-v-4325c122]{color:var(--accent-2);background:#7dd3fc14;border-color:#7dd3fc33}.sec-icon.live[data-v-4325c122]{color:#ff8095;background:#ff4d6d14;border-color:#ff4d6d33}.sec-icon.muted[data-v-4325c122]{color:var(--muted)}.sec-head h2[data-v-4325c122]{margin:0;font-size:14.5px;font-weight:650}.sec-head p[data-v-4325c122]{margin:3px 0 0;font-size:11.5px;color:var(--muted)}.fields[data-v-4325c122]{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;padding-top:18px}.field[data-v-4325c122]{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide[data-v-4325c122]{grid-column:1 / -1}.field>span[data-v-4325c122]{font-size:12px;color:var(--text);font-weight:550}.field em[data-v-4325c122]{font-style:normal;font-size:10px;color:var(--muted-2);margin-left:5px;font-family:var(--mono)}.field small[data-v-4325c122]{font-size:10.5px;color:var(--muted-2);line-height:1.55}.switch-field[data-v-4325c122]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:#94c5d608}.switch-field>small[data-v-4325c122]{grid-column:1 / -1}.readonly[data-v-4325c122]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:16px}.engine-status[data-v-4325c122]{grid-template-columns:repeat(3,1fr)}.readonly>div[data-v-4325c122]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:#94c5d60a;border:1px solid var(--line)}.readonly span[data-v-4325c122]{font-size:10.5px;color:var(--muted-2)}.readonly b[data-v-4325c122]{font-size:13px;font-weight:600}.error-panel[data-v-4325c122]{padding:28px;border-radius:14px;border:1px solid rgba(248,113,113,.28);background:#f871710f}.error-title[data-v-4325c122]{font-weight:650;color:var(--danger-text)}.error-msg[data-v-4325c122]{margin:7px 0 14px;font-size:12px;color:var(--muted)}.support-note[data-v-4325c122]{margin:16px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}.support-actions[data-v-4325c122]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.inline-error[data-v-4325c122]{margin-top:12px;padding:10px 12px;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:#f871710f;color:var(--danger-text);font-size:12px;line-height:1.6}.inline-hint[data-v-4325c122]{margin-top:12px;font-size:11.5px;color:var(--muted)}.diagnostic-block[data-v-4325c122]{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.diag-preview[data-v-4325c122]{margin:12px 0 0;padding:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;background:#94c5d60a;font-size:11.5px;line-height:1.6;color:var(--muted)}.engine-install[data-v-4325c122]{display:flex;flex-direction:column;gap:10px}.engine-status-row[data-v-4325c122]{display:flex;align-items:center;gap:10px;font-size:12.5px}.engine-status-row span[data-v-4325c122]{color:var(--muted)}.engine-status-row b[data-v-4325c122]{color:var(--text, #e6f1f5)}.engine-detail[data-v-4325c122]{display:grid;grid-template-columns:1fr 2fr;gap:8px 12px;font-size:11.5px}.engine-detail>div[data-v-4325c122]{display:flex;flex-direction:column;gap:4px}.engine-detail span[data-v-4325c122]{color:var(--muted)}.engine-detail b[data-v-4325c122]{overflow-wrap:anywhere}.engine-progress[data-v-4325c122]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11.5px;color:var(--muted)}.progress-track[data-v-4325c122]{flex:1 1 180px;height:6px;border-radius:99px;overflow:hidden;background:#94c5d61f}.progress-fill[data-v-4325c122]{height:100%;background:var(--accent, #2dd4bf);transition:width .2s ease}.manual-list[data-v-4325c122]{margin:4px 0 0;padding-left:20px;font-size:11.5px;line-height:1.8;color:var(--muted)}@media(max-width:640px){.fields[data-v-4325c122],.readonly[data-v-4325c122],.engine-status[data-v-4325c122]{grid-template-columns:1fr}.section[data-v-4325c122]{padding:16px 14px 18px}} diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Bizgy-un.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Cq5T4anl.js similarity index 97% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Bizgy-un.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Cq5T4anl.js index 0104afee..087f17e6 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Bizgy-un.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/ShortVideoView-Cq5T4anl.js @@ -1,4 +1,4 @@ -import{T as ee,S as pe}from"./Select-yKeAXmxd.js";import{I as te}from"./Input-B9LQLjz_.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b4 as ke,b5 as _e,b6 as xe,b7 as $e,b8 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,b9 as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-W7SBB4Eq.js";import{C as ve}from"./CheckboxGroup-D0_230aG.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as Je}from"./use-message-DkYn5b6o.js";import{S as Ke}from"./Spin-IfgPhZdn.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-SNfViS-K.js";import{S as et}from"./SearchOutline-DiOWHHh0.js";import{V as tt}from"./VideocamOutline-Br_v12hA.js";import{D as me}from"./DownloadOutline-B8-YKzxV.js";import{R as rt}from"./RefreshOutline-CjuuDK9l.js";import"./use-compitable-D8hAoj1z.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} +import{T as ee,S as pe}from"./Select-P9AqjsDB.js";import{I as te}from"./Input-DS3FhrY_.js";import{d as H,o,c as s,a as r,n as j,P as w,R as N,F as E,i as S,j as W,b4 as ke,b5 as _e,b6 as xe,b7 as $e,b8 as Ae,az as Ce,a4 as re,a2 as _,a6 as X,a8 as Se,aE as ue,aa as Ee,ac as Ue,b9 as Ge,af as ge,ap as Q,ao as ze,a_ as Le,r as P,b as Xe,A as Fe,e as d,w as v,u as l,B as T,t as b,g as R,C as de,aq as Ye,f as $,D as He}from"./index-Bmcyfv7z.js";import{C as ve}from"./CheckboxGroup-iTsKmCjZ.js";import{f as K,N as F,_ as Qe}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as Je}from"./use-message-BaVpnNbE.js";import{S as Ke}from"./Spin-CCColBh4.js";import{c as he,d as ye}from"./format-B8CnorUZ.js";import{C as Ze}from"./CloudDownloadOutline-Cwn6t3sl.js";import{S as et}from"./SearchOutline-BOYIL3j0.js";import{V as tt}from"./VideocamOutline-DoUnrAre.js";import{D as me}from"./DownloadOutline-ZlR9MTyd.js";import{R as rt}from"./RefreshOutline-CIl2qHSI.js";import"./use-compitable-CSVBov8c.js";const ot=["id"],it=["stop-color"],at=["stop-color"],st=["viewBox"],lt=["d","stroke-width"],nt=["d","stroke-width"],ct={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ut=H({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(t,{slots:c}){const k=W(()=>{const n="gradient",{fillColor:p}=t;return typeof p=="object"?`${n}-${Ae(JSON.stringify(p))}`:n});function I(n,p,y,u){const{gapDegree:z,viewBoxWidth:C,strokeWidth:q}=t,h=50,B=0,g=h,f=0,O=100,V=50+q/2,D=`M ${V},${V} m ${B},${g} a ${h},${h} 0 1 1 ${f},-100 a ${h},${h} 0 1 1 0,${O}`,M=Math.PI*2*h;return{pathString:D,pathStyle:{stroke:u==="rail"?y:typeof t.fillColor=="object"?`url(#${k.value})`:y,strokeDasharray:`${Math.min(n,100)/100*(M-z)}px ${C*8}px`,strokeDashoffset:`-${z/2}px`,transformOrigin:p?"center":void 0,transform:p?`rotate(${p}deg)`:void 0}}}const x=()=>{const n=typeof t.fillColor=="object",p=n?t.fillColor.stops[0]:"",y=n?t.fillColor.stops[1]:"";return n&&(o(),s("defs",null,[r("linearGradient",{id:k.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[r("stop",{offset:"0%","stop-color":p},null,8,it),r("stop",{offset:"100%","stop-color":y},null,8,at)],8,ot)]))};return()=>{const{fillColor:n,railColor:p,strokeWidth:y,offsetDegree:u,status:z,percentage:C,showIndicator:q,indicatorTextColor:h,unit:B,gapOffsetDegree:g,clsPrefix:f}=t,{pathString:O,pathStyle:V}=I(100,0,p,"rail"),{pathString:D,pathStyle:M}=I(C,u,n,"fill"),A=100+y;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${f}-progress-graph-circle`),style:j({transform:g?`rotate(${g}deg)`:void 0})},[(o(),s("svg",{viewBox:`0 0 ${A} ${A}`},[N(()=>x()),r("g",null,[r("path",{class:w(`${f}-progress-graph-circle-rail`),d:O,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(V)},null,14,lt)]),r("g",null,[r("path",{class:w([`${f}-progress-graph-circle-fill`,C===0&&`${f}-progress-graph-circle-fill--empty`]),d:D,"stroke-width":y,"stroke-linecap":"round",fill:"none",style:j(M)},null,14,nt)])],8,st))],6)],2),q?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),role:"none"},[N(()=>c.default())],2)):(o(),s(E,{key:1},[z!=="default"?(o(),s("div",{key:0,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>ct[z]},1032,["clsPrefix"]))],2)):(o(),s("div",{key:1,class:w(`${f}-progress-text`),style:j({color:h}),role:"none"},[r("span",{class:w(`${f}-progress-text__percentage`)},[N(()=>C)],2),r("span",{class:w(`${f}-progress-text__unit`)},[N(()=>B)],2)],6))],64))])):N(()=>null)],2)}}});const dt={success:(o(),S($e)),error:(o(),S(xe)),warning:(o(),S(_e)),info:(o(),S(ke))};var ft=H({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(t,{slots:c}){const k=W(()=>K(t.height)),I=W(()=>typeof t.fillColor=="object"?`linear-gradient(to right, ${t.fillColor?.stops[0]} , ${t.fillColor?.stops[1]})`:t.fillColor),x=W(()=>t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):""),n=W(()=>t.fillBorderRadius!==void 0?K(t.fillBorderRadius):t.railBorderRadius!==void 0?K(t.railBorderRadius):t.height!==void 0?K(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:p,railColor:y,railStyle:u,percentage:z,unit:C,indicatorTextColor:q,status:h,showIndicator:B,processing:g,clsPrefix:f}=t;return o(),s("div",{class:w(`${f}-progress-content`),role:"none"},[r("div",{class:w(`${f}-progress-graph`),"aria-hidden":!0},[r("div",{class:w([`${f}-progress-graph-line`,{[`${f}-progress-graph-line--indicator-${p}`]:!0}])},[r("div",{class:w(`${f}-progress-graph-line-rail`),style:j([{backgroundColor:y,height:k.value,borderRadius:x.value},u])},[r("div",{class:w([`${f}-progress-graph-line-fill`,g&&`${f}-progress-graph-line-fill--processing`]),style:j({maxWidth:`${t.percentage}%`,background:I.value,height:k.value,lineHeight:k.value,borderRadius:n.value})},[p==="inside"?(o(),s("div",{key:0,class:w(`${f}-progress-graph-line-indicator`),style:j({color:q})},[c.default?(o(),s(E,{key:0},[N(()=>c.default())],64)):(o(),s(E,{key:1},[N(()=>`${z}${C}`)],64))],6)):N(()=>null)],6)],6)],2)],2),B&&p==="outside"?(o(),s("div",{key:0},[c.default?(o(),s("div",{key:0,class:w(`${f}-progress-custom-content`),style:j({color:q}),role:"none"},[N(()=>c.default())],6)):(o(),s(E,{key:1},[h==="default"?(o(),s("div",{key:0,role:"none",class:w(`${f}-progress-icon ${f}-progress-icon--as-text`),style:j({color:q})},[N(()=>z),N(()=>C)],6)):(o(),s("div",{key:1,class:w(`${f}-progress-icon`),"aria-hidden":!0},[(o(),S(Ce,{clsPrefix:f},{default:()=>dt[h]},1032,["clsPrefix"]))],2))],64))])):N(()=>null)],2)}}});const pt=["id"],gt=["stop-color"],vt=["stop-color"],ht=["d","stroke-width"],yt=["d","stroke-width"],mt=["viewBox"];function be(t,c,k=100){return`m ${k/2} ${k/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var bt=H({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(t,{slots:c}){const k=W(()=>t.percentage.map((x,n)=>`${Math.PI*x/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*n)-t.circleGap*n)*2}, ${t.viewBoxWidth*8}`)),I=(x,n)=>{const p=t.fillColor[n],y=typeof p=="object"?p.stops[0]:"",u=typeof p=="object"?p.stops[1]:"";return typeof t.fillColor[n]=="object"&&(o(),s("linearGradient",{id:`gradient-${n}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},[r("stop",{offset:"0%","stop-color":y},null,8,gt),r("stop",{offset:"100%","stop-color":u},null,8,vt)],8,pt))};return()=>{const{viewBoxWidth:x,strokeWidth:n,circleGap:p,showIndicator:y,fillColor:u,railColor:z,railStyle:C,percentage:q,clsPrefix:h}=t;return o(),s("div",{class:w(`${h}-progress-content`),role:"none"},[r("div",{class:w(`${h}-progress-graph`),"aria-hidden":!0},[r("div",{class:w(`${h}-progress-graph-circle`)},[(o(),s("svg",{viewBox:`0 0 ${x} ${x}`},[r("defs",null,[N(()=>q.map((B,g)=>I(B,g)))]),N(()=>q.map((B,g)=>(o(),s("g",{key:g},[r("path",{class:w(`${h}-progress-graph-circle-rail`),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j([{strokeDashoffset:0,stroke:z[g]},C[g]])},null,14,ht),r("path",{class:w([`${h}-progress-graph-circle-fill`,B===0&&`${h}-progress-graph-circle-fill--empty`]),d:be(x/2-n/2*(1+2*g)-p*g,n,x),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:j({strokeDasharray:k.value[g],strokeDashoffset:0,stroke:typeof u[g]=="object"?`url(#gradient-${g})`:u[g]})},null,14,yt)]))))],8,mt))],2)],2),y&&c.default?(o(),s("div",{key:0},[r("div",{class:w(`${h}-progress-text`)},[N(()=>c.default())],2)])):N(()=>null)],2)}}}),wt=re([_("progress",{display:"inline-block"},[_("progress-icon",` color: var(--n-icon-color); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-IfgPhZdn.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CCColBh4.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-IfgPhZdn.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CCColBh4.js index c1a77f3c..31e1f1b1 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-IfgPhZdn.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Spin-CCColBh4.js @@ -1,4 +1,4 @@ -import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-W7SBB4Eq.js";import{a as K}from"./use-compitable-D8hAoj1z.js";var L=b([b("@keyframes spin-rotate",` +import{a4 as b,a2 as a,aK as $,a6 as g,d as w,bq as T,a8 as k,o as d,c as u,R as p,P as i,a as z,n as m,i as B,bn as R,e as P,aa as V,ac as N,ax as W,j as y,r as _,T as j,br as E,bp as I,af as O}from"./index-Bmcyfv7z.js";import{a as K}from"./use-compitable-CSVBov8c.js";var L=b([b("@keyframes spin-rotate",` from { transform: rotate(0); } diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B0GCV62j.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B415Ci4w.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B0GCV62j.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B415Ci4w.js index 8e05b49c..8f56928f 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B0GCV62j.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/StreamersView-B415Ci4w.js @@ -1,4 +1,4 @@ -import{I as ce}from"./Input-B9LQLjz_.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-W7SBB4Eq.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{S as Kt,u as At}from"./Switch-CwiTSVeN.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-DkYn5b6o.js";import{S as jt}from"./Spin-IfgPhZdn.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-5zQu_Ia9.js";import{T as Vt,P as qt}from"./PulseOutline-B6Qrxbd0.js";import{h as Je,c as Gt,T as Pe,S as Jt}from"./Select-yKeAXmxd.js";import{u as Xt}from"./use-compitable-D8hAoj1z.js";import{a as je}from"./engine-state-zmQVlIbS.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-BpUYLHe6.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{F as pn,a as me,A as Xe}from"./AddOutline-B3zs4SfZ.js";import{v as vn}from"./filename-template-DBJXvN0y.js";import{C as fn}from"./CheckboxGroup-D0_230aG.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-Br_v12hA.js";import{R as Ye}from"./RefreshOutline-CjuuDK9l.js";import{S as wn}from"./SearchOutline-DiOWHHh0.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Je({target:B},"dropdownOption")&&!Je({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` +import{I as ce}from"./Input-DS3FhrY_.js";import{G as mt,H as ht,A as Ie,I as wt,J as yt,K as _e,L as Be,M as Se,d as V,N as bt,a as o,O as Fe,o as l,c,P as ee,r as _,i as E,Q as be,R as J,S as Me,U as Re,F as X,V as Qe,T as gt,W as pe,X as et,Y as $e,j as x,Z as he,_ as kt,$ as xt,a0 as _t,a1 as St,a2 as ne,a3 as Ct,a4 as fe,a5 as He,a6 as ae,a7 as se,a8 as Oe,a9 as $t,aa as tt,ab as Pt,ac as Rt,ad as Ke,ae as le,af as ie,ag as zt,ah as Nt,ai as It,n as Ve,aj as Bt,ak as Mt,al as Ot,am as qe,D as ue,f as L,t as S,b as De,u,g as G,e as y,w as g,B as Q,an as Ge,ao as nt,ap as ge,C as ze,aq as Et}from"./index-Bmcyfv7z.js";import{N as de,_ as ke}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{S as Kt,u as At}from"./Switch-C33rKL-M.js";import{V as Lt,a as Tt,B as Ft,r as Dt,p as ot,P as Ut,u as Ue}from"./use-message-BaVpnNbE.js";import{S as jt}from"./Spin-CCColBh4.js";import{c as Wt,S as we,E as Ht}from"./EmptyState-CGA7qM0U.js";import{T as Vt,P as qt}from"./PulseOutline-Da42XzaM.js";import{h as Je,c as Gt,T as Pe,S as Jt}from"./Select-P9AqjsDB.js";import{u as Xt}from"./use-compitable-CSVBov8c.js";import{a as je}from"./engine-state-Cu8p5L8n.js";import{p as Yt,a as Zt,c as Qt,u as en,b as tn,l as nn,d as on,g as rn,t as an,e as ln}from"./streamers-D5Y-fBfU.js";import{p as Ne,a as sn,f as un,b as dn,c as rt,r as cn}from"./format-B8CnorUZ.js";import{F as pn,a as me,A as Xe}from"./AddOutline-DDWMaSa8.js";import{v as vn}from"./filename-template-DBJXvN0y.js";import{C as fn}from"./CheckboxGroup-iTsKmCjZ.js";import{i as mn}from"./runtime-bridge-DmDzFGpU.js";import{V as hn}from"./VideocamOutline-DoUnrAre.js";import{R as Ye}from"./RefreshOutline-CIl2qHSI.js";import{S as wn}from"./SearchOutline-BOYIL3j0.js";function yn(e={},s){const t=yt({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:r}=e,d=v=>{switch(v.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach($=>{if($!==v.key)return;const k=i[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},b=v=>{switch(v.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}r!==void 0&&Object.keys(r).forEach($=>{if($!==v.key)return;const k=r[$];if(typeof k=="function")k(v);else{const{stop:z=!1,prevent:f=!1}=k;z&&v.stopPropagation(),f&&v.preventDefault(),k.handler(v)}})},p=()=>{(s===void 0||s.value)&&(_e("keydown",document,d),_e("keyup",document,b)),s!==void 0&&Be(s,v=>{v?(_e("keydown",document,d),_e("keyup",document,b)):(Se("keydown",document,d),Se("keyup",document,b))})};return mt()?(ht(p),Ie(()=>{(s===void 0||s.value)&&(Se("keydown",document,d),Se("keyup",document,b))})):p(),wt(t)}var bn=V({name:"ChevronRight",render(){return(()=>{const e=bt("6ab04425f4fcb756");return e[0]||(e[0]=o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"})],-1))})()}});function gn(e,s="default",t=[]){const i=e.$slots[s];return i===void 0?t:i()}const We=Fe("n-dropdown-menu"),Ee=Fe("n-dropdown"),Ze=Fe("n-dropdown-option");var at=V({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return l(),c("div",{class:ee(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Te(e,s){return e.type==="submenu"||e.type===void 0&&e[s]!==void 0}function kn(e){return e.type==="group"}function lt(e){return e.type==="divider"}function xn(e){return e.type==="render"}function _n(e,s,t){const i=_(e.value);let r=null;return Be(e,d=>{r!==null&&window.clearTimeout(r),d===!0?t&&!t.value?i.value=!0:r=window.setTimeout(()=>{i.value=!0},s):i.value=!1}),i}var st=V({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const s=pe(Ee),{hoverKeyRef:t,keyboardKeyRef:i,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:d,activeKeyPathRef:b,animatedRef:p,mergedShowRef:v,renderLabelRef:$,renderIconRef:k,labelFieldRef:z,childrenFieldRef:f,renderOptionRef:T,nodePropsRef:M,menuPropsRef:O}=s,F=pe(Ze,null),D=pe(We),K=pe(et),W=x(()=>e.tmNode.rawNode),N=x(()=>{const{value:h}=f;return Te(e.tmNode.rawNode,h)}),R=x(()=>{const{disabled:h}=e.tmNode;return h}),H=x(()=>{if(!N.value)return!1;const{key:h,disabled:B}=e.tmNode;if(B)return!1;const{value:q}=t,{value:re}=i,{value:C}=r,{value:m}=d;return q!==null?m.includes(h):re!==null?m.includes(h)&&m[m.length-1]!==h:C!==null?m.includes(h):!1}),Z=x(()=>i.value===null&&!p.value),te=_n(H,300,Z),oe=x(()=>!!F?.enteringSubmenuRef.value),Y=_(!1);he(Ze,{enteringSubmenuRef:Y});function P(){Y.value=!0}function a(){Y.value=!1}function n(){const{parentKey:h,tmNode:B}=e;B.disabled||v.value&&(r.value=h,i.value=null,t.value=B.key)}function w(){const{tmNode:h}=e;h.disabled||v.value&&t.value!==h.key&&n()}function I(h){if(e.tmNode.disabled||!v.value)return;const{relatedTarget:B}=h;B&&!Je({target:B},"dropdownOption")&&!Je({target:B},"scrollbarRail")&&(t.value=null)}function A(){const{value:h}=N,{tmNode:B}=e;v.value&&!h&&!B.disabled&&(s.doSelect(B.key,B.rawNode),s.doUpdateShow(!1))}return{labelField:z,renderLabel:$,renderIcon:k,siblingHasIcon:D.showIconRef,siblingHasSubmenu:D.hasSubmenuRef,menuProps:O,popoverBody:K,animated:p,mergedShowSubmenu:x(()=>te.value&&!oe.value),rawNode:W,hasSubmenu:N,pending:$e(()=>{const{value:h}=d,{key:B}=e.tmNode;return h.includes(B)}),childActive:$e(()=>{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q{const{value:h}=b,{key:B}=e.tmNode,q=h.findIndex(re=>B===re);return q===-1?!1:q===h.length-1}),mergedDisabled:R,renderOption:T,nodeProps:M,handleClick:A,handleMouseMove:w,handleMouseEnter:n,handleMouseLeave:I,handleSubmenuBeforeEnter:P,handleSubmenuAfterEnter:a}},render(){const{animated:e,rawNode:s,mergedShowSubmenu:t,clsPrefix:i,siblingHasIcon:r,siblingHasSubmenu:d,renderLabel:b,renderIcon:p,renderOption:v,nodeProps:$,props:k,scrollable:z}=this;let f=null;if(t){const F=this.menuProps?.(s,s.children);f=(D=>(l(),E(it,be({key:1},F,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,["clsPrefix","scrollable","tmNodes","parentKey"])))()}const T={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},M=$?.(s),O=(l(),c("div",be({class:[`${i}-dropdown-option`,M?.class],"data-dropdown-option":!0},M),[J(()=>Me("div",be(T,k),[(l(),c("div",{class:ee([`${i}-dropdown-option-body__prefix`,r&&`${i}-dropdown-option-body__prefix--show-icon`])},[J(()=>[p?p(s):Re(s.icon)])],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee(`${i}-dropdown-option-body__label`)},[b?(l(),c(X,{key:0},[J(()=>b(s))],64)):(l(),c(X,{key:1},[J(()=>Re(s[this.labelField]??s.title))],64))],2)),(l(),c("div",{"data-dropdown-option":!0,class:ee([`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(l(),E(de,{key:0},{_:1,default:Qe(()=>(l(),E(bn)))})):J(()=>null)],2))])),this.hasSubmenu?(l(),E(Ft,{key:0},{default:()=>[(l(),E(Lt,null,{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-offset-container`)},[(l(),E(Tt,{show:this.mergedShowSubmenu,placement:this.placement,to:z&&this.popoverBody||void 0,teleportDisabled:!z},{default:()=>(l(),c("div",{class:ee(`${i}-dropdown-menu-wrapper`)},[e?(l(),E(gt,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f},1032,["onBeforeEnter","onAfterEnter"])):(l(),c(X,{key:1},[J(()=>f)],64))],2))},1032,["show","placement","to","teleportDisabled"]))],2))},1024))]},1024)):J(()=>null)],16));return v?v({node:O,option:s}):O}}),Sn=V({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:s}=pe(We),{renderLabelRef:t,labelFieldRef:i,nodePropsRef:r,renderOptionRef:d}=pe(Ee);return{labelField:i,showIcon:e,hasSubmenu:s,renderLabel:t,nodeProps:r,renderOption:d}},render(){const{clsPrefix:e,hasSubmenu:s,showIcon:t,nodeProps:i,renderLabel:r,renderOption:d}=this,{rawNode:b}=this.tmNode,p=(l(),c("div",be({class:`${e}-dropdown-option`},i?.(b)),[o("div",{class:ee(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[o("div",{"data-dropdown-option":!0,class:ee([`${e}-dropdown-option-body__prefix`,t&&`${e}-dropdown-option-body__prefix--show-icon`])},[J(()=>Re(b.icon))],2),o("div",{class:ee(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[r?(l(),c(X,{key:0},[J(()=>r(b))],64)):(l(),c(X,{key:1},[J(()=>Re(b.title??b[this.labelField]))],64))],2),o("div",{class:ee([`${e}-dropdown-option-body__suffix`,s&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return d?d({node:p,option:b}):p}}),Cn=V({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:s,clsPrefix:t}=this,{children:i}=e;return l(),c(X,null,[(l(),E(Sn,{clsPrefix:t,tmNode:e,key:e.key},null,8,["clsPrefix","tmNode"])),J(()=>i?.map(r=>{const{rawNode:d}=r;return d.show===!1?null:lt(d)?Me(at,{clsPrefix:t,key:r.key}):r.isGroup?(kt("dropdown","`group` node is not allowed to be put in `group` node."),null):(l(),E(st,{clsPrefix:t,tmNode:r,parentKey:s,key:r.key},null,8,["clsPrefix","tmNode","parentKey"]))}))],64)}}),$n=V({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:s}}=this.tmNode;return Me("div",s,[e?.()])}}),it=V({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:s,childrenFieldRef:t}=pe(Ee);he(We,{showIconRef:x(()=>{const r=s.value;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>r?r(p):p.icon);const{rawNode:b}=d;return r?r(b):b.icon})}),hasSubmenuRef:x(()=>{const{value:r}=t;return e.tmNodes.some(d=>{if(d.isGroup)return d.children?.some(({rawNode:p})=>Te(p,r));const{rawNode:b}=d;return Te(b,r)})})});const i=_(null);return he(_t,null),he(St,null),he(et,i),{bodyRef:i}},render(){const{parentKey:e,clsPrefix:s,scrollable:t}=this,i=this.tmNodes.map(r=>{const{rawNode:d}=r;return d.show===!1?null:xn(d)?(l(),E($n,{tmNode:r,key:r.key},null,8,["tmNode"])):lt(d)?(l(),E(at,{clsPrefix:s,key:r.key},null,8,["clsPrefix"])):kn(d)?(l(),E(Cn,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key},null,8,["clsPrefix","tmNode","parentKey"])):(l(),E(st,{clsPrefix:s,tmNode:r,parentKey:e,key:r.key,props:d.props,scrollable:t},null,8,["clsPrefix","tmNode","parentKey","props","scrollable"]))});return l(),c("div",{class:ee([`${s}-dropdown-menu`,t&&`${s}-dropdown-menu--scrollable`]),ref:"bodyRef"},[t?(l(),E(xt,{key:0,contentClass:`${s}-dropdown-menu__content`},{default:()=>i},1032,["contentClass"])):(l(),c(X,{key:1},[J(()=>i)],64)),this.showArrow?(l(),c(X,{key:2},[J(()=>Dt({clsPrefix:s,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):J(()=>null)],2)}}),Pn=ne("dropdown-menu",` transform-origin: var(--v-transform-origin); background-color: var(--n-color); border-radius: var(--n-border-radius); diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CwiTSVeN.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-C33rKL-M.js similarity index 98% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CwiTSVeN.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-C33rKL-M.js index a09b158d..1acbc305 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-CwiTSVeN.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/Switch-C33rKL-M.js @@ -1,4 +1,4 @@ -import{aS as ve,W as ge,bl as we,a2 as X,a7 as a,ba as Y,a4 as A,a6 as l,a5 as Q,d as me,a8 as J,bm as E,o as u,c as m,a as p,R as r,P as n,n as q,aa as pe,bd as ye,r as H,ac as ke,j as P,ad as M,b1 as v,i as G,bn as xe,Q as Se,be as _e,bo as ze,af as g,bp as I,am as s,ae as $e}from"./index-W7SBB4Eq.js";import{u as Be}from"./use-compitable-D8hAoj1z.js";function Ke(){const e=ge(we,null);return e===null&&ve("use-dialog","No outer founded."),e}var Ce=X("switch",` +import{aS as ve,W as ge,bl as we,a2 as X,a7 as a,ba as Y,a4 as A,a6 as l,a5 as Q,d as me,a8 as J,bm as E,o as u,c as m,a as p,R as r,P as n,n as q,aa as pe,bd as ye,r as H,ac as ke,j as P,ad as M,b1 as v,i as G,bn as xe,Q as Se,be as _e,bo as ze,af as g,bp as I,am as s,ae as $e}from"./index-Bmcyfv7z.js";import{u as Be}from"./use-compitable-CSVBov8c.js";function Ke(){const e=ge(we,null);return e===null&&ve("use-dialog","No outer founded."),e}var Ce=X("switch",` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Br_v12hA.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DoUnrAre.js similarity index 91% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Br_v12hA.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DoUnrAre.js index d4cc7d09..6f55f6d7 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-Br_v12hA.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/VideocamOutline-DoUnrAre.js @@ -1 +1 @@ -import{d as t,c as n,a as o,o as r}from"./index-W7SBB4Eq.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; +import{d as t,c as n,a as o,o as r}from"./index-Bmcyfv7z.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},d=t({name:"VideocamOutline",render:function(s,e){return r(),n("svg",l,e[0]||(e[0]=[o("path",{d:"M374.79 308.78L457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),o("path",{d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}});export{d as V}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-B_0nS7Wj.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DdbJvs3T.js similarity index 96% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-B_0nS7Wj.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DdbJvs3T.js index daae6dd7..539f76f7 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-B_0nS7Wj.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/_plugin-vue_export-helper-DdbJvs3T.js @@ -1,4 +1,4 @@ -import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-W7SBB4Eq.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` +import{a2 as _,a6 as l,a4 as u,d as b,a8 as p,_ as v,S as m,Q as y,aa as $,ac as x,j as a,co as C}from"./index-Bmcyfv7z.js";const z=/^(\d|\.)+$/,d=/(\d|\.)+/;function R(e,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const t=(e+n)*r;return t===0?"0":`${t}px`}else if(typeof e=="string")if(z.test(e)){const t=(Number(e)+n)*r;return o?t===0?"0":`${t}px`:`${t}`}else{const t=d.exec(e);return t?e.replace(d,String((Number(t[0])+n)*r)):e}return e}var S=_("icon",` height: 1em; width: 1em; line-height: 1em; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-Cu8p5L8n.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-Cu8p5L8n.js new file mode 100644 index 00000000..c00575ef --- /dev/null +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-Cu8p5L8n.js @@ -0,0 +1 @@ +import{r as e,j as a}from"./index-Bmcyfv7z.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-zmQVlIbS.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-zmQVlIbS.js deleted file mode 100644 index ce56b9f1..00000000 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-state-zmQVlIbS.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e,j as a}from"./index-W7SBB4Eq.js";const t=e(null),n=a(()=>t.value?.state==="ready");export{n as a,t as e}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-BukwEF_1.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-vojgPPhH.js similarity index 73% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-BukwEF_1.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-vojgPPhH.js index 049026ed..9ac59aba 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-BukwEF_1.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/engine-vojgPPhH.js @@ -1 +1 @@ -import{ap as n,ao as a}from"./index-W7SBB4Eq.js";const o=!0,s=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),t=()=>n("/miniapp/engine/redownload"),p=()=>n("/miniapp/engine/cancel");export{o as E,p as c,s as g,t as r,i as s}; +import{ap as n,ao as a}from"./index-Bmcyfv7z.js";const o=!0,s=()=>a("/miniapp/engine/status"),i=()=>n("/miniapp/engine/download"),t=()=>n("/miniapp/engine/redownload"),p=()=>n("/miniapp/engine/cancel");export{o as E,p as c,s as g,t as r,i as s}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-W7SBB4Eq.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Bmcyfv7z.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-W7SBB4Eq.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Bmcyfv7z.js index 1e16b71c..0a6d082b 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-W7SBB4Eq.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/index-Bmcyfv7z.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-CgZHTqn3.js","assets/Input-B9LQLjz_.js","assets/use-compitable-D8hAoj1z.js","assets/CheckboxGroup-D0_230aG.js","assets/_plugin-vue_export-helper-B_0nS7Wj.js","assets/Spin-IfgPhZdn.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-D5h30p8f.js","assets/RefreshOutline-CjuuDK9l.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-DbUrPyr3.js","assets/PulseOutline-B6Qrxbd0.js","assets/use-message-DkYn5b6o.js","assets/streamers-BpUYLHe6.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-BukwEF_1.js","assets/engine-state-zmQVlIbS.js","assets/VideocamOutline-Br_v12hA.js","assets/FilmOutline-aQuldXl1.js","assets/GitCompareOutline-CYx8moNZ.js","assets/CloudDownloadOutline-SNfViS-K.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-B0GCV62j.js","assets/Switch-CwiTSVeN.js","assets/EmptyState-5zQu_Ia9.js","assets/EmptyState-BJiq6Btv.css","assets/Select-yKeAXmxd.js","assets/format-B8CnorUZ.js","assets/AddOutline-B3zs4SfZ.js","assets/filename-template-DBJXvN0y.js","assets/SearchOutline-DiOWHHh0.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-C0q9wGjN.js","assets/DownloadOutline-B8-YKzxV.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-BkgkRPye.js","assets/DocumentTextOutline-DseBRj1r.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-Bizgy-un.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-CaYIvJoC.js","assets/SettingsView-BYZ7Hiig.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-DFTjbjn3.js","assets/Input-DS3FhrY_.js","assets/use-compitable-CSVBov8c.js","assets/CheckboxGroup-iTsKmCjZ.js","assets/_plugin-vue_export-helper-DdbJvs3T.js","assets/Spin-CCColBh4.js","assets/logo-X-myaeP_.js","assets/LoginView-BgEHpUPB.css","assets/ServiceErrorView-L-sskm9b.js","assets/RefreshOutline-CIl2qHSI.js","assets/ServiceErrorView-3yOnzd5g.css","assets/AppShell-DH1IaDgc.js","assets/PulseOutline-Da42XzaM.js","assets/use-message-BaVpnNbE.js","assets/streamers-D5Y-fBfU.js","assets/runtime-bridge-DmDzFGpU.js","assets/engine-vojgPPhH.js","assets/engine-state-Cu8p5L8n.js","assets/VideocamOutline-DoUnrAre.js","assets/FilmOutline-DCmf1Zmt.js","assets/GitCompareOutline-4zZKl19q.js","assets/CloudDownloadOutline-Cwn6t3sl.js","assets/AppShell-BaeOOu0H.css","assets/StreamersView-B415Ci4w.js","assets/Switch-C33rKL-M.js","assets/EmptyState-CGA7qM0U.js","assets/EmptyState-BJiq6Btv.css","assets/Select-P9AqjsDB.js","assets/format-B8CnorUZ.js","assets/AddOutline-DDWMaSa8.js","assets/filename-template-DBJXvN0y.js","assets/SearchOutline-BOYIL3j0.js","assets/StreamersView-BKuNqWdg.css","assets/RecordingsView-CS8l23Jb.js","assets/DownloadOutline-ZlR9MTyd.js","assets/RecordingsView-g6Rw4_09.css","assets/RelayView-h5lf4-Vn.js","assets/DocumentTextOutline-BvVIG18e.js","assets/RelayView-D751WEBC.css","assets/ShortVideoView-Cq5T4anl.js","assets/ShortVideoView-cKyh5vit.css","assets/SettingsView-CJoqn3Jp.js","assets/SettingsView-Cfxh_2g_.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();function va(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Oe={},lr=[],co=()=>{},Cd=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),qe=Object.assign,Ca=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Em=Object.prototype.hasOwnProperty,Re=(e,t)=>Em.call(e,t),ge=Array.isArray,Uo=e=>On(e)==="[object Map]",mi=e=>On(e)==="[object Set]",ss=e=>On(e)==="[object Date]",ye=e=>typeof e=="function",Ve=e=>typeof e=="string",kt=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",xd=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),yd=Object.prototype.toString,On=e=>yd.call(e),_m=e=>On(e).slice(8,-1),Sd=e=>On(e)==="[object Object]",Bi=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fn=va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ki=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},$m=/-\w/g,wt=ki(e=>e.replace($m,t=>t.slice(1).toUpperCase())),Rm=/\B([A-Z])/g,Cr=ki(e=>e.replace(Rm,"-$1").toLowerCase()),Di=ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),ml=ki(e=>e?`on${Di(e)}`:""),io=(e,t)=>!Object.is(e,t),gl=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},Im=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Am=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let cs;const Li=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ge(e)){const t={};for(let o=0;oo.startsWith("/*")?"":o).split(Hm).forEach(o=>{if(o){const r=o.split(Mm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function mr(e){let t="";if(Ve(e))t=e;else if(ge(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Om=e=>Ve(e)?e:e==null?"":ge(e)||Ie(e)&&(e.toString===yd||!ye(e.toString))?Td(e)?Om(e.value):JSON.stringify(e,Ed,2):String(e),Ed=(e,t)=>Td(t)?Ed(e,t.value):Uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[bl(r,i)+" =>"]=n,o),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bl(o))}:kt(t)?bl(t):Ie(t)&&!ge(t)&&!Sd(t)?String(t):t,bl=(e,t="")=>{var o;return kt(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let it;class Wm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&it&&(it.active?(this.parent=it,this.index=(it.scopes||(it.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){const r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(it===this)it=this.prevScope;else{let t=it;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(pn){let t=pn;for(pn=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;hn;){let t=hn;for(hn=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Id(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ad(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Sa(r),jm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function Wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wl(e))))return;e.flags|=2;const t=e.dep,o=We,r=Xt;We=e,Xt=!0;try{Id(e);const n=e.fn(e._value);(t.version===0||io(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{We=o,Xt=r,Ad(e),e.flags&=-3}}function Sa(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)Sa(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function jm(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Xt=!0;const Md=[];function fo(){Md.push(Xt),Xt=!1}function ho(){const e=Md.pop();Xt=e===void 0?!0:e}function fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=We;We=void 0;try{t()}finally{We=o}}}let yn=0;class Vm{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!We||!Xt||We===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==We)o=this.activeLink=new Vm(We,this),We.deps?(o.prevDep=We.depsTail,We.depsTail.nextDep=o,We.depsTail=o):We.deps=We.depsTail=o,zd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=We.depsTail,o.nextDep=void 0,We.depsTail.nextDep=o,We.depsTail=o,We.deps===o&&(We.deps=r)}return o}trigger(t){this.version++,yn++,this.notify(t)}notify(t){xa();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ya()}}}function zd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zd(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const gi=new WeakMap,ur=Symbol(""),Nl=Symbol(""),Sn=Symbol("");function ht(e,t,o){if(Xt&&We){let r=gi.get(e);r||gi.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new wa),n.map=r,n.key=o),n.track()}}function To(e,t,o,r,n,i){const l=gi.get(e);if(!l){yn++;return}const a=s=>{s&&s.trigger()};if(xa(),t==="clear")l.forEach(a);else{const s=ge(e),d=s&&Bi(o);if(s&&o==="length"){const c=Number(r);l.forEach((u,f)=>{(f==="length"||f===Sn||!kt(f)&&f>=c)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),d&&a(l.get(Sn)),t){case"add":s?d&&a(l.get("length")):(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"delete":s||(a(l.get(ur)),Uo(e)&&a(l.get(Nl)));break;case"set":Uo(e)&&a(l.get(ur));break}}ya()}function Gm(e,t){const o=gi.get(e);return o&&o.get(t)}function _r(e){const t=_e(e);return t===e||(ht(t,"iterate",Sn),Ft(e))?t:mo(e)?qo(e)?t.map(o=>Ko(jt(o))):t.map(Ko):t.map(jt)}function Wi(e){return ht(e=_e(e),"iterate",Sn),e}function oo(e,t){return mo(e)?Ko(qo(e)?jt(t):t):jt(t)}const Um={__proto__:null,[Symbol.iterator](){return Cl(this,Symbol.iterator,e=>oo(this,e))},concat(...e){return _r(this).concat(...e.map(t=>ge(t)?_r(t):t))},entries(){return Cl(this,"entries",e=>(e[1]=oo(this,e[1]),e))},every(e,t){return yo(this,"every",e,t,void 0,arguments)},filter(e,t){return yo(this,"filter",e,t,o=>o.map(r=>oo(this,r)),arguments)},find(e,t){return yo(this,"find",e,t,o=>oo(this,o),arguments)},findIndex(e,t){return yo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yo(this,"findLast",e,t,o=>oo(this,o),arguments)},findLastIndex(e,t){return yo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yo(this,"forEach",e,t,void 0,arguments)},includes(...e){return xl(this,"includes",e)},indexOf(...e){return xl(this,"indexOf",e)},join(e){return _r(this).join(e)},lastIndexOf(...e){return xl(this,"lastIndexOf",e)},map(e,t){return yo(this,"map",e,t,void 0,arguments)},pop(){return Jr(this,"pop")},push(...e){return Jr(this,"push",e)},reduce(e,...t){return ps(this,"reduce",e,t)},reduceRight(e,...t){return ps(this,"reduceRight",e,t)},shift(){return Jr(this,"shift")},some(e,t){return yo(this,"some",e,t,void 0,arguments)},splice(...e){return Jr(this,"splice",e)},toReversed(){return _r(this).toReversed()},toSorted(e){return _r(this).toSorted(e)},toSpliced(...e){return _r(this).toSpliced(...e)},unshift(...e){return Jr(this,"unshift",e)},values(){return Cl(this,"values",e=>oo(this,e))}};function Cl(e,t,o){const r=Wi(e),n=r[t],i=n.call(r);if(r!==e&&!Ft(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const l=Object.create(Object.getPrototypeOf(i));return l.next=()=>hs(i.next(),o),n!==Fd[t]&&Object.defineProperties(l,{return:{get(){const a=i.return;return typeof a=="function"?a.bind(i):a}},throw:{get(){const a=i.throw;return typeof a=="function"?a.bind(i):a}}}),l}i._next=i.next,i.next=()=>hs(i._next(),o)}return i}function hs(e,t){return e.done||(e.value=t(e.value)),e}const Fd=Array.prototype;function yo(e,t,o,r,n,i){const l=Wi(e),a=l!==e&&!Ft(e),s=l[t];if(s!==Fd[t]){const u=s.apply(e,i);return a?jt(u):u}let d=o;l!==e&&(a?d=function(u,f){return o.call(this,oo(e,u),f,e)}:o.length>2&&(d=function(u,f){return o.call(this,u,f,e)}));const c=s.call(l,d,r);return a&&n?n(c):c}function ps(e,t,o,r){const n=Wi(e),i=n!==e&&!Ft(e);let l=o,a=!1;n!==e&&(i?(a=r.length===0,l=function(d,c,u){return a&&(a=!1,d=oo(e,d)),o.call(this,d,oo(e,c),u,e)}):o.length>3&&(l=function(d,c,u){return o.call(this,d,c,u,e)}));const s=n[t](l,...r);return a?oo(e,s):s}function xl(e,t,o){const r=_e(e);ht(r,"iterate",Sn);const n=r[t](...o);return(n===-1||n===!1)&&Ni(o[0])?(o[0]=_e(o[0]),r[t](...o)):n}function Jr(e,t,o=[]){fo(),xa();const r=_e(e)[t].apply(e,o);return ya(),ho(),r}const qm=va("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function Km(e){kt(e)||(e=String(e));const t=_e(this);return ht(t,"has",e),t.hasOwnProperty(e)}class kd{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?ng:Wd:i?Od:Ld).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=ge(t);if(!n){let s;if(l&&(s=Um[o]))return s;if(o==="hasOwnProperty")return Km}const a=Reflect.get(t,o,ot(t)?t:r);if((kt(o)?Bd.has(o):qm(o))||(n||ht(t,"get",o),i))return a;if(ot(a)){const s=l&&Bi(o)?a:a.value;return n&&Ie(s)?po(s):s}return Ie(a)?n?po(a):xr(a):a}}class Dd extends kd{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const l=ge(t)&&Bi(o);if(!this._isShallow){const d=mo(i);if(!Ft(r)&&!mo(r)&&(i=_e(i),r=_e(r)),!l&&ot(i)&&!ot(r))return d||(i.value=r),!0}const a=l?Number(o)e,Yn=e=>Reflect.getPrototypeOf(e);function Qm(e,t,o){return function(...r){const n=this.__v_raw,i=_e(n),l=Uo(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,d=n[e](...r),c=o?jl:t?Ko:jt;return!t&&ht(i,"iterate",s?Nl:ur),qe(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:a?[c(u[0]),c(u[1])]:c(u),done:f}}})}}function Xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eg(e,t){const o={get(n){const i=this.__v_raw,l=_e(i),a=_e(n);e||(io(n,a)&&ht(l,"get",n),ht(l,"get",a));const{has:s}=Yn(l),d=t?jl:e?Ko:jt;if(s.call(l,n))return d(i.get(n));if(s.call(l,a))return d(i.get(a));i!==l&&i.get(n)},get size(){const n=this.__v_raw;return!e&&ht(_e(n),"iterate",ur),n.size},has(n){const i=this.__v_raw,l=_e(i),a=_e(n);return e||(io(n,a)&&ht(l,"has",n),ht(l,"has",a)),n===a?i.has(n):i.has(n)||i.has(a)},forEach(n,i){const l=this,a=l.__v_raw,s=_e(a),d=t?jl:e?Ko:jt;return!e&&ht(s,"iterate",ur),a.forEach((c,u)=>n.call(i,d(c),d(u),l))}};return qe(o,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(n){const i=_e(this),l=Yn(i),a=_e(n),s=!t&&!Ft(n)&&!mo(n)?a:n;return l.has.call(i,s)||io(n,s)&&l.has.call(i,n)||io(a,s)&&l.has.call(i,a)||(i.add(s),To(i,"add",s,s)),this},set(n,i){!t&&!Ft(i)&&!mo(i)&&(i=_e(i));const l=_e(this),{has:a,get:s}=Yn(l);let d=a.call(l,n);d||(n=_e(n),d=a.call(l,n));const c=s.call(l,n);return l.set(n,i),d?io(i,c)&&To(l,"set",n,i):To(l,"add",n,i),this},delete(n){const i=_e(this),{has:l,get:a}=Yn(i);let s=l.call(i,n);s||(n=_e(n),s=l.call(i,n)),a&&a.call(i,n);const d=i.delete(n);return s&&To(i,"delete",n,void 0),d},clear(){const n=_e(this),i=n.size!==0,l=n.clear();return i&&To(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Qm(n,e,t)}),o}function Pa(e,t){const o=eg(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_isShallow"?t:n==="__v_raw"?r:Reflect.get(Re(o,n)&&n in r?o:r,n,i)}const tg={get:Pa(!1,!1)},og={get:Pa(!1,!0)},rg={get:Pa(!0,!1)};const Ld=new WeakMap,Od=new WeakMap,Wd=new WeakMap,ng=new WeakMap;function ig(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xr(e){return mo(e)?e:Ta(e,!1,Xm,tg,Ld)}function Nd(e){return Ta(e,!1,Jm,og,Od)}function po(e){return Ta(e,!0,Zm,rg,Wd)}function Ta(e,t,o,r,n){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=n.get(e);if(i)return i;const l=ig(_m(e));if(l===0)return e;const a=new Proxy(e,l===2?r:o);return n.set(e,a),a}function qo(e){return mo(e)?qo(e.__v_raw):!!(e&&e.__v_isReactive)}function mo(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Ni(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Vl(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&wd(e,"__v_skip",!0),e}const jt=e=>Ie(e)?xr(e):e,Ko=e=>Ie(e)?po(e):e;function ot(e){return e?e.__v_isRef===!0:!1}function se(e){return Vd(e,!1)}function jd(e){return Vd(e,!0)}function Vd(e,t){return ot(e)?e:new lg(e,t)}class lg{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:_e(t),this._value=o?t:jt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||Ft(t)||mo(t);t=r?t:_e(t),io(t,o)&&(this._rawValue=t,this._value=r?t:jt(t),this.dep.trigger())}}function Yt(e){return ot(e)?e.value:e}const ag={get:(e,t,o)=>t==="__v_raw"?e:Yt(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return ot(n)&&!ot(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function Gd(e){return qo(e)?e:new Proxy(e,ag)}class sg{constructor(t,o,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=kt(o)?o:String(o),this._raw=_e(t);let n=!0,i=t;if(!ge(t)||kt(this._key)||!Bi(this._key))do n=!Ni(i)||Ft(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Yt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ot(this._raw[this._key])){const o=this._object[this._key];if(ot(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Gm(this._raw,this._key)}}class cg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function uo(e,t,o){return ot(e)?e:ye(e)?new cg(e):Ie(e)&&arguments.length>1?dg(e,t,o):se(e)}function dg(e,t,o){return new sg(e,t,o)}class ug{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return Rd(this,!0),!0}get value(){const t=this.dep.track();return Hd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,o=!1){let r,n;return ye(e)?r=e:(r=e.get,n=e.set),new ug(r,n,o)}const Zn={},bi=new WeakMap;let or;function hg(e,t=!1,o=or){if(o){let r=bi.get(o);r||bi.set(o,r=[]),r.push(e)}}function pg(e,t,o=Oe){const{immediate:r,deep:n,once:i,scheduler:l,augmentJob:a,call:s}=o,d=P=>n?P:Ft(P)||n===!1||n===0?Eo(P,1):Eo(P);let c,u,f,h,p=!1,g=!1;if(ot(e)?(u=()=>e.value,p=Ft(e)):qo(e)?(u=()=>d(e),p=!0):ge(e)?(g=!0,p=e.some(P=>qo(P)||Ft(P)),u=()=>e.map(P=>{if(ot(P))return P.value;if(qo(P))return d(P);if(ye(P))return s?s(P,2):P()})):ye(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){fo();try{f()}finally{ho()}}const P=or;or=c;try{return s?s(e,3,[h]):e(h)}finally{or=P}}:u=co,t&&n){const P=u,A=n===!0?1/0:n;u=()=>Eo(P(),A)}const b=Nm(),C=()=>{c.stop(),b&&b.active&&Ca(b.effects,c)};if(i&&t){const P=t;t=(...A)=>{try{return P(...A)}finally{C()}}}let y=g?new Array(e.length).fill(Zn):Zn;const T=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const A=c.run();if(P||n||p||(g?A.some((M,v)=>io(M,y[v])):io(A,y))){const M=or;fo();try{f&&f(),or=c;const v=[A,y===Zn?void 0:g&&y[0]===Zn?[]:y,h];y=A,s?s(t,3,v):t(...v)}finally{or=M,ho()}}}else c.run()};return a&&a(T),c=new _d(u),c.scheduler=l?()=>l(T,!1):T,h=P=>hg(P,!1,c),f=c.onStop=()=>{const P=bi.get(c);if(P){if(s)s(P,4);else for(const A of P)A();bi.delete(c)}},t?r?T(!0):y=c.run():l?l(T.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function Eo(e,t=1/0,o){if(t<=0||!Ie(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,ot(e))Eo(e.value,t,o);else if(ge(e))for(let r=0;r{Eo(r,t,o)});else if(Sd(e)){for(const r in e)Eo(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Eo(e[r],t,o)}return e}function Wn(e,t,o,r){try{return r?e(...r):e()}catch(n){ji(n,t,o)}}function Vt(e,t,o,r){if(ye(e)){const n=Wn(e,t,o,r);return n&&xd(n)&&n.catch(i=>{ji(i,t,o,void 0,!0)}),n}if(ge(e)){const n=[];for(let i=0;i>>1,n=yt[r],i=wn(n);i=wn(o)?yt.push(e):yt.splice(gg(t),0,e),e.flags|=1,qd()}}function qd(){vi||(vi=Ud.then(Xd))}function bg(e){if(!ge(e))Wo&&e.id===-1?Wo.splice(Ar+1,0,e):e.flags&1||(ro.push(e),e.flags|=1);else for(let t=0;t=t))continue;yt.splice(r,1),r=e?r-1:Ut,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Yd(e,t,o=0){if(ro.length){let r=ro,n=0;if(t){r=[];for(let l=0;lwn(l)-wn(a));if(ro.length=n,Wo){for(let l=0;le.id==null?e.flags&2?-1:1/0:e.id;function Xd(e){try{for(Ut=0;Ut{r._d&&wi(-1);const i=Ci(t),l=$o.length;let a;try{a=e(...n)}finally{for(let s=$o.length;s>l;s--)Ha();Ci(i),r._d&&wi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Gl(e,t){if(lt===null)return e;const o=Yi(lt),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ye(t)?t.call(r&&r.proxy):t}}const Cg=Symbol.for("v-scx"),xg=()=>De(Cg);function Gi(e,t){return Ea(e,null,t)}function Nt(e,t,o){return Ea(e,t,o)}function Ea(e,t,o=Oe){const{immediate:r,deep:n,flush:i,once:l}=o,a=qe({},o),s=t&&r||!t&&i!=="post";let d;if(In){if(i==="sync"){const h=xg();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=co,h.resume=co,h.pause=co,h}}const c=mt;a.call=(h,p,g)=>Vt(h,c,p,g);let u=!1;i==="post"?a.scheduler=h=>{h.i=c,ft(h,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Vi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=pg(e,t,a);return In&&(d?d.push(f):s&&f()),f}function yg(e,t,o){const r=this.proxy,n=Ve(e)?e.includes(".")?Jd(r,e):()=>r[e]:e.bind(r,r);let i;ye(t)?i=t:(i=t.handler,o=t);const l=jn(this),a=Ea(n,i.bind(r),o);return l(),a}function Jd(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport,nr=e=>e&&(e.disabled||e.disabled===""),Sg=e=>e&&(e.defer||e.defer===""),ms=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ul=(e,t)=>{const o=e&&e.to;return Ve(o)?t?t(o):null:o},wg={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,l,a,s,d){const{mc:c,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b,parentNode:C}}=d,y=nr(t.props);let{dynamicChildren:T}=t;const P=(v,w,_)=>{v.shapeFlag&16&&c(v.children,w,_,n,i,l,a,s)},A=(v=t)=>{const w=nr(v.props),_=v.target=Ul(v.props,p),H=ql(_,v,g,h);_&&(l!=="svg"&&ms(_)?l="svg":l!=="mathml"&&gs(_)&&(l="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(_),w||(P(v,_,H),an(v,!1)))},M=v=>{const w=()=>{if(Lo.get(v)===w){if(Lo.delete(v),nr(v.props)){const _=C(v.el)||o;P(v,_,v.anchor),an(v,!0)}A(v)}};Lo.set(v,w),ft(w,i)};if(e==null){const v=t.el=g(""),w=t.anchor=g("");if(h(v,o,r),h(w,o,r),Sg(t.props)||i&&i.pendingBranch){M(t);return}y&&(P(t,o,w),an(t,!0)),A()}else{t.el=e.el;const v=t.anchor=e.anchor,w=Lo.get(e);if(w){w.flags|=8,Lo.delete(e),M(t);return}t.targetStart=e.targetStart;const _=t.target=e.target,H=t.targetAnchor=e.targetAnchor,O=nr(e.props),$=O?o:_,K=O?v:H;if(l==="svg"||ms(_)?l="svg":(l==="mathml"||gs(_))&&(l="mathml"),T?(f(e.dynamicChildren,T,$,n,i,l,a),Aa(e,t,!0)):s||u(e,t,$,K,n,i,l,a,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jn(t,o,v,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=Ul(t.props,p);ie&&(t.target=ie,Jn(t,ie,null,d,0))}else O&&Jn(t,_,H,d,1);an(t,y)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:d,targetAnchor:c,target:u,props:f}=e,h=nr(f),p=i||!h,g=Lo.get(e);if(g&&(g.flags|=8,Lo.delete(e)),u&&(n(d),n(c)),i&&n(s),!g&&(h||u)&&l&16)for(let b=0;b{e.isMounted=!0}),Gt(()=>{e.isUnmounting=!0}),e}const Ot=[Function,Array],tu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},Tg={name:"BaseTransition",props:tu,setup(e,{slots:t}){const o=Wr(),r=eu();return()=>{const n=t.default&&$a(t.default(),!0),i=n&&n.length?ou(n):o.subTree?db():void 0;if(!i)return;const l=_e(e),{mode:a}=l;if(r.isLeaving)return Sl(i);const s=xi(i);if(!s)return Sl(i);const d=Pn(s,l,r,o);s.type!==Ze&&_o(s,d);let c=o.subTree&&xi(o.subTree);if(c&&c.type!==Ze&&!ir(c,s)&&Tn(o.subTree)){let u=Pn(c,l,r,o);if(_o(c,u),a==="out-in"&&s.type!==Ze)return r.isLeaving=!0,u.afterLeave=()=>{if(r.isLeaving=!1,!(o.job.flags&8))if(o.effect.flags&2){const f=()=>{o.job.flags&8||o.update()};f.i=o,Vi(f)}else o.update();delete u.afterLeave,c=void 0},Sl(i);a==="in-out"&&s.type!==Ze?u.delayLeave=(f,h,p)=>{const g=ru(r,c);g[String(c.key)]=c,f[Wt]=()=>{h(),f[Wt]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function ou(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Ze){t=o;break}}return t}const Eg=Tg;function ru(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Pn(e,t,o,r){const{appear:n,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:u,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:y}=t,T=String(e.key),P=ru(o,e),A=(w,_)=>{w&&Vt(w,r,9,_)},M=(w,_)=>{const H=_[1];A(w,_),ge(w)?w.every(O=>O.length<=1)&&H():w.length<=1&&H()},v={mode:i,persisted:l,beforeEnter(w){let _=a;if(!o.isMounted)if(n)_=g||a;else return;w[Wt]&&w[Wt](!0);const H=P[T];if(H&&ir(e,H)){let O=H.el[Wt];if(!O){const $=Tn(H);O=$&&$.el[Wt]}O&&O()}A(_,[w])},enter(w){if(P[T]===e)return;let _=s,H=d,O=c;if(!o.isMounted)if(n)_=b||s,H=C||d,O=y||c;else return;let $=!1;w[Qr]=ie=>{$||($=!0,ie?A(O,[w]):A(H,[w]),v.delayedLeave&&v.delayedLeave(),w[Qr]=void 0)};const K=w[Qr].bind(null,!1);_?M(_,[w,K]):K()},leave(w,_){const H=String(e.key);if(w[Qr]&&w[Qr](!0),o.isUnmounting)return _();A(u,[w]);let O=!1;w[Wt]=K=>{O||(O=!0,_(),K?A(p,[w]):A(h,[w]),w[Wt]=void 0,P[H]===e&&delete P[H])};const $=w[Wt].bind(null,!1);P[H]=e,f?M(f,[w,$]):$()},clone(w){const _=Pn(w,t,o,r);return _.afterLeave=()=>{v.afterLeave&&v.afterLeave()},_.delayLeave=(H,O,$)=>{v.delayLeave?v.delayLeave(H,O,$):$()},_.delayedLeave=()=>{v.delayedLeave&&v.delayedLeave()},_}};return v}function Sl(e){if(qi(e))return e=go(e),e.children=null,e}function xi(e){if(!qi(e))return Ui(e.type)&&e.children?ou(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ye(o.default))return o.default()}}function _o(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const o=e.component.subTree;_o(Ui(o.type)&&xi(o)||o,t)}else if(e.shapeFlag&128){const o=e.suspense;if(o){const r=o.isHydrating?o.pendingBranch:o.activeBranch;r&&_o(r,t.clone(r))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===Te&&ge(e.children)){const o=vu(e.children,!1);o&&_o(o,t)}}function $a(e,t=!1,o){let r=[],n=0;for(let i=0;i1)for(let i=0;imn(g,t&&(ge(t)?t[b]:t),o,r,n));return}if(Mr(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?Yi(r.component):r.el,l=n?null:i,{i:a,r:s}=e,d=t&&t.r,c=a.refs===Oe?a.refs={}:a.refs,u=a.setupState,f=_e(u),h=u===Oe?Cd:g=>bs(c,g)?!1:Re(f,g),p=(g,b)=>!(b&&bs(c,b));if(d!=null&&d!==s){if(vs(t),Ve(d))c[d]=null,h(d)&&(u[d]=null);else if(ot(d)){const g=t;p(d,g.k)&&(d.value=null),g.k&&(c[g.k]=null)}}if(ye(s))Wn(s,a,12,[l,c]);else{const g=Ve(s),b=ot(s);if(g||b){const C=()=>{if(e.f){const y=g?h(s)?u[s]:c[s]:p()||!e.k?s.value:c[e.k];if(n)ge(y)&&Ca(y,i);else if(ge(y))y.includes(i)||y.push(i);else if(g)c[s]=[i],h(s)&&(u[s]=c[s]);else{const T=[i];p(s,e.k)&&(s.value=T),e.k&&(c[e.k]=T)}}else g?(c[s]=l,h(s)&&(u[s]=l)):b&&(p(s,e.k)&&(s.value=l),e.k&&(c[e.k]=l))};if(l){const y=()=>{C(),yi.delete(e)};y.id=-1,yi.set(e,y),ft(y,o)}else vs(e),C()}}}function vs(e){const t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}Li().requestIdleCallback;Li().cancelIdleCallback;const Mr=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function iu(e,t){au(e,"a",t)}function lu(e,t){au(e,"da",t)}function au(e,t,o=mt){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,r,o),o){let n=o.parent;for(;n&&n.parent;)qi(n.parent.vnode)&&_g(r,t,o,n),n=n.parent}}function _g(e,t,o,r){const n=En(t,e,r,!0),i=En("um",()=>Ca(r[t],n),o);i.flags=16}function En(e,t,o=mt,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{fo();const a=jn(o),s=Vt(t,o,e,l);return a(),ho(),s});return r?n.unshift(i):n.push(i),i}}const Ao=e=>(t,o=mt)=>{(!In||e==="sp")&&En(e,(...r)=>t(...r),o)},yr=Ao("bm"),bo=Ao("m"),$g=Ao("bu"),su=Ao("u"),Gt=Ao("bum"),cu=Ao("um"),Rg=Ao("sp"),Ig=Ao("rtg"),Ag=Ao("rtc");function Hg(e,t=mt){En("ec",e,t)}const du="components";function Mg(e,t){return fu(du,e,!0,t)||e}const uu=Symbol.for("v-ndc");function k_(e){return Ve(e)?fu(du,e,!1)||e:e||uu}function fu(e,t,o=!0,r=!1){const n=lt||mt;if(n){const i=n.type;{const a=vb(i,!1);if(a&&(a===t||a===wt(t)||a===Di(wt(t))))return i}const l=Cs(n[e]||i[e],t)||Cs(n.appContext[e],t);return!l&&r?i:l}}function Cs(e,t){return e&&(e[t]||e[wt(t)]||e[Di(wt(t))])}function D_(e,t,o,r){let n;const i=o,l=ge(e);if(l||Ve(e)){const a=l&&qo(e);let s=!1,d=!1;a&&(s=!Ft(e),d=mo(e),e=Wi(e)),n=new Array(e.length);for(let c=0,u=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);n=new Array(a.length);for(let s=0,d=a.length;s0;return k(),ae(Te,null,[je("slot",d,r)],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const a=$o.length;k();let s;try{const d=l&&hu(l(o)),c=o.key||i||d&&d.key;s=ae(Te,{key:(c&&!kt(c)?c:`_${t}`)+(!d&&r?"_fb":"")},d||(r?r():[]),d&&e._===1?64:-2)}catch(d){for(let c=$o.length;c>a;c--)Ha();throw d}finally{l&&l._c&&(l._d=!0)}return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),s}function hu(e){return e.some(t=>Ro(t)?!(t.type===Ze||t.type===Te&&!hu(t.children)):!0)?e:null}const Kl=e=>e?Mu(e)?Yi(e):Kl(e.parent):null,gn=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kl(e.parent),$root:e=>Kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mu(e),$forceUpdate:e=>e.f||(e.f=()=>{Vi(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>yg.bind(e)}),wl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Re(e,t),Fg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(wl(r,t))return l[t]=1,r[t];if(n!==Oe&&Re(n,t))return l[t]=2,n[t];if(Re(i,t))return l[t]=3,i[t];if(o!==Oe&&Re(o,t))return l[t]=4,o[t];Yl&&(l[t]=0)}}const d=gn[t];let c,u;if(d)return t==="$attrs"&&ht(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(o!==Oe&&Re(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Re(u,t))return u[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return wl(n,t)?(n[t]=o,!0):r!==Oe&&Re(r,t)?(r[t]=o,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:l}},a){let s;return!!(o[a]||e!==Oe&&a[0]!=="$"&&Re(e,a)||wl(t,a)||Re(i,a)||Re(r,a)||Re(gn,a)||Re(n.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Re(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function xs(e){return ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Yl=!0;function Bg(e){const t=mu(e),o=e.proxy,r=e.ctx;Yl=!1,t.beforeCreate&&ys(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:l,watch:a,provide:s,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:C,beforeUnmount:y,destroyed:T,unmounted:P,render:A,renderTracked:M,renderTriggered:v,errorCaptured:w,serverPrefetch:_,expose:H,inheritAttrs:O,components:$,directives:K,filters:ie}=t;if(d&&kg(d,r,null),l)for(const J in l){const ue=l[J];ye(ue)&&(r[J]=ue.bind(o))}if(n){const J=n.call(o,o);Ie(J)&&(e.data=xr(J))}if(Yl=!0,i)for(const J in i){const ue=i[J],He=ye(ue)?ue.bind(o,o):ye(ue.get)?ue.get.bind(o,o):co,$e=!ye(ue)&&ye(ue.set)?ue.set.bind(o):co,Le=X({get:He,set:$e});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Le.value,set:ke=>Le.value=ke})}if(a)for(const J in a)pu(a[J],r,o,J);if(s){const J=ye(s)?s.call(o):s;Reflect.ownKeys(J).forEach(ue=>{at(ue,J[ue])})}c&&ys(c,e,"c");function ce(J,ue){ge(ue)?ue.forEach(He=>J(He.bind(o))):ue&&J(ue.bind(o))}if(ce(yr,u),ce(bo,f),ce($g,h),ce(su,p),ce(iu,g),ce(lu,b),ce(Hg,w),ce(Ag,M),ce(Ig,v),ce(Gt,y),ce(cu,P),ce(Rg,_),ge(H))if(H.length){const J=e.exposed||(e.exposed={});H.forEach(ue=>{Object.defineProperty(J,ue,{get:()=>o[ue],set:He=>o[ue]=He,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===co&&(e.render=A),O!=null&&(e.inheritAttrs=O),$&&(e.components=$),K&&(e.directives=K),_&&nu(e)}function kg(e,t,o=co){ge(e)&&(e=Xl(e));for(const r in e){const n=e[r];let i;Ie(n)?"default"in n?i=De(n.from||r,n.default,!0):i=De(n.from||r):i=De(n),ot(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function ys(e,t,o){Vt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function pu(e,t,o,r){let n=r.includes(".")?Jd(o,r):()=>o[r];if(Ve(e)){const i=t[e];ye(i)&&Nt(n,i)}else if(ye(e))Nt(n,e.bind(o));else if(Ie(e))if(ge(e))e.forEach(i=>pu(i,t,o,r));else{const i=ye(e.handler)?e.handler.bind(o):t[e.handler];ye(i)&&Nt(n,i,e)}}function mu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(d=>Si(s,d,l,!0)),Si(s,t,l)),Ie(t)&&i.set(t,s),s}function Si(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Si(e,i,o,!0),n&&n.forEach(l=>Si(e,l,o,!0));for(const l in t)if(!(r&&l==="expose")){const a=Dg[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Dg={data:Ss,props:ws,emits:ws,methods:sn,computed:sn,beforeCreate:Ct,created:Ct,beforeMount:Ct,mounted:Ct,beforeUpdate:Ct,updated:Ct,beforeDestroy:Ct,beforeUnmount:Ct,destroyed:Ct,unmounted:Ct,activated:Ct,deactivated:Ct,errorCaptured:Ct,serverPrefetch:Ct,components:sn,directives:sn,watch:Og,provide:Ss,inject:Lg};function Ss(e,t){return t?e?function(){return qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Lg(e,t){return sn(Xl(e),Xl(t))}function Xl(e){if(ge(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${Cr(t)}Modifiers`];function Vg(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Oe;let n=o;const i=t.startsWith("update:"),l=i&&jg(r,t.slice(7));l&&(l.trim&&(n=o.map(c=>Ve(c)?c.trim():c)),l.number&&(n=n.map(Im)));let a,s=r[a=ml(t)]||r[a=ml(wt(t))];!s&&i&&(s=r[a=ml(Cr(t))]),s&&Vt(s,e,6,n);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Vt(d,e,6,n)}}const Gg=new WeakMap;function bu(e,t,o=!1){const r=o?Gg:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let l={},a=!1;if(!ye(e)){const s=d=>{const c=bu(d,t,!0);c&&(a=!0,qe(l,c))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(Ie(e)&&r.set(e,null),null):(ge(i)?i.forEach(s=>l[s]=null):qe(l,i),Ie(e)&&r.set(e,l),l)}function Ki(e,t){return!e||!zi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,Cr(t))||Re(e,t))}function Ps(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:l,attrs:a,emit:s,render:d,renderCache:c,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ci(e);let C,y;try{if(o.shapeFlag&4){const P=n||r,A=P;C=no(d.call(A,P,c,u,h,f,p)),y=a}else{const P=t;C=no(P.length>1?P(u,{attrs:a,slots:l,emit:s}):P(u,null)),y=t.props?a:Ug(a)}}catch(P){$o.length=0,ji(P,e,1),C=je(Ze)}let T=C;if(y&&g!==!1){const P=Object.keys(y),{shapeFlag:A}=T;P.length&&A&7&&(i&&P.some(Fi)&&(y=qg(y,i)),T=go(T,y,!1,!0))}if(o.dirs&&(T=go(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(o.dirs):o.dirs),o.transition){const P=Ui(T.type)&&xi(T)||T;_o(P,o.transition)}return C=T,Ci(b),C}function vu(e,t=!0){let o;for(let r=0;r{let t;for(const o in e)(o==="class"||o==="style"||zi(o))&&((t||(t={}))[o]=e[o]);return t},qg=(e,t)=>{const o={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Kg(e,t,o){const{props:r,children:n,component:i}=e,{props:l,children:a,patchFlag:s}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Ts(r,l,d):!!l;if(s&8){const c=t.dynamicProps;for(let u=0;uObject.create(xu),Su=e=>Object.getPrototypeOf(e)===xu;function Xg(e,t,o,r=!1){const n={},i=yu();e.propsDefaults=Object.create(null),wu(e,t,n,i);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);o?e.props=r?n:Nd(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Zg(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:l}}=e,a=_e(n),[s]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,h]=Pu(u,t,!0);qe(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Ie(e)&&r.set(e,lr),lr;if(ge(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Ia=e=>ge(e)?e.map(no):[no(e)],Qg=(e,t,o)=>{if(t._n)return t;const r=so((...n)=>Ia(t(...n)),o);return r._c=!1,r},Tu=(e,t,o)=>{const r=e._ctx;for(const n in e){if(Ra(n))continue;const i=e[n];if(ye(i))t[n]=Qg(n,i,r);else if(i!=null){const l=Ia(i);t[n]=()=>l}}},Eu=(e,t)=>{const o=Ia(t);e.slots.default=()=>o},_u=(e,t,o)=>{for(const r in t)(o||!Ra(r))&&(e[r]=t[r])},eb=(e,t,o)=>{const r=e.slots=yu();if(e.vnode.shapeFlag&32){const n=t._;n?(_u(r,t,o),o&&wd(r,"_",n,!0)):Tu(t,r)}else t&&Eu(e,t)},tb=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,l=Oe;if(r.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:_u(n,t,o):(i=!t.$stable,Tu(t,n)),l=t}else t&&(Eu(e,t),l={default:1});if(i)for(const a in n)!Ra(a)&&l[a]==null&&delete n[a]},ft=ab;function ob(e){return rb(e)}function rb(e,t){const o=Li();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:l,createText:a,createComment:s,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=co,insertStaticContent:p}=e,g=(m,x,S,E=null,R=null,B=null,W=void 0,U=null,G=!!x.dynamicChildren)=>{if(m===x)return;m&&!ir(m,x)&&(E=z(m),ke(m,R,B,!0),m=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null),x.dynamicChildren&&m&&m.dynamicChildren&&m.dynamicChildren.hasOnce&&(x.dynamicChildren===lr&&(x.dynamicChildren=[]),x.dynamicChildren.hasOnce=!0);const{type:I,ref:Z,shapeFlag:q}=x;switch(I){case Nn:b(m,x,S,E);break;case Ze:C(m,x,S,E);break;case ci:m==null&&y(x,S,E,W);break;case Te:$(m,x,S,E,R,B,W,U,G);break;default:q&1?A(m,x,S,E,R,B,W,U,G):q&6?K(m,x,S,E,R,B,W,U,G):(q&64||q&128)&&I.process(m,x,S,E,R,B,W,U,G,L)}Z!=null&&R?mn(Z,m&&m.ref,B,x||m,!x):Z==null&&m&&m.ref!=null&&mn(m.ref,null,B,m,!0)},b=(m,x,S,E)=>{if(m==null)r(x.el=a(x.children),S,E);else{const R=x.el=m.el;x.children!==m.children&&d(R,x.children)}},C=(m,x,S,E)=>{m==null?r(x.el=s(x.children||""),S,E):x.el=m.el},y=(m,x,S,E)=>{[m.el,m.anchor]=p(m.children,x,S,E,m.el,m.anchor)},T=({el:m,anchor:x},S,E)=>{let R;for(;m&&m!==x;)R=f(m),r(m,S,E),m=R;r(x,S,E)},P=({el:m,anchor:x})=>{let S;for(;m&&m!==x;)S=f(m),n(m),m=S;n(x)},A=(m,x,S,E,R,B,W,U,G)=>{if(x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),m==null)M(x,S,E,R,B,W,U,G);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),_(m,x,R,B,W,U,G)}finally{I&&I._endPatch()}}},M=(m,x,S,E,R,B,W,U)=>{let G,I;const{props:Z,shapeFlag:q,transition:de,dirs:ve}=m;if(G=m.el=l(m.type,B,Z&&Z.is,Z),q&8?c(G,m.children):q&16&&w(m.children,G,null,E,R,Pl(m,B),W,U),ve&&Jo(m,null,E,"created"),v(G,m,m.scopeId,W,E),Z){for(const Me in Z)Me!=="value"&&!fn(Me)&&i(G,Me,null,Z[Me],B,E);"value"in Z&&i(G,"value",null,Z.value,B),(I=Z.onVnodeBeforeMount)&&Jt(I,E,m)}ve&&Jo(m,null,E,"beforeMount");const we=nb(R,de);we?de.beforeEnter(G):de&&!de.persisted&&(G[lb]=!0),r(G,x,S),((I=Z&&Z.onVnodeMounted)||we||ve)&&ft(()=>{I&&Jt(I,E,m),we&&de.enter(G),ve&&Jo(m,null,E,"mounted")},R)},v=(m,x,S,E,R)=>{if(S&&h(m,S),E)for(let B=0;B{for(let I=G;I{const U=x.el=m.el;let{patchFlag:G,dynamicChildren:I,dirs:Z}=x;G|=m.patchFlag&16;const q=m.props||Oe,de=x.props||Oe;let ve;if(S&&Qo(S,!1),(ve=de.onVnodeBeforeUpdate)&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"beforeUpdate"),S&&Qo(S,!0),I&&(!m.dynamicChildren||m.dynamicChildren.length!==I.length)&&(G=0,W=!1,I=null),(q.innerHTML&&de.innerHTML==null||q.textContent&&de.textContent==null)&&c(U,""),I?H(m.dynamicChildren,I,U,S,E,Pl(x,R),B):W||ue(m,x,U,null,S,E,Pl(x,R),B,!1),G>0){if(G&16)O(U,q,de,S,R);else if(G&2&&q.class!==de.class&&i(U,"class",null,de.class,R),G&4&&i(U,"style",q.style,de.style,R),G&8){const we=x.dynamicProps;for(let Me=0;Me{ve&&Jt(ve,S,x,m),Z&&Jo(x,m,S,"updated")},E)},H=(m,x,S,E,R,B,W)=>{for(let U=0;U{if(x!==S){if(x!==Oe)for(const B in x)!fn(B)&&!(B in S)&&i(m,B,x[B],null,R,E);for(const B in S){if(fn(B))continue;const W=S[B],U=x[B];W!==U&&B!=="value"&&i(m,B,U,W,R,E)}"value"in S&&i(m,"value",x.value,S.value,R)}},$=(m,x,S,E,R,B,W,U,G)=>{const I=x.el=m?m.el:a(""),Z=x.anchor=m?m.anchor:a("");let{patchFlag:q,dynamicChildren:de,slotScopeIds:ve}=x;ve&&(U=U?U.concat(ve):ve),m==null?(r(I,S,E),r(Z,S,E),w(x.children||[],S,Z,R,B,W,U,G)):q>0&&q&64&&de&&m.dynamicChildren&&m.dynamicChildren.length===de.length?(H(m.dynamicChildren,de,S,R,B,W,U),(x.key!=null||R&&x===R.subTree)&&Aa(m,x,!0)):ue(m,x,S,Z,R,B,W,U,G)},K=(m,x,S,E,R,B,W,U,G)=>{x.slotScopeIds=U,m==null?x.shapeFlag&512?R.ctx.activate(x,S,E,W,G):ie(x,S,E,R,B,W,G):be(m,x,G)},ie=(m,x,S,E,R,B,W)=>{const U=m.component=hb(m,E,R);if(qi(m)&&(U.ctx.renderer=L),pb(U,!1,W),U.asyncDep){if(R&&R.registerDep(U,ce,W,B),!m.el){const G=U.subTree=je(Ze);C(null,G,x,S),m.placeholder=G.el}}else ce(U,m,x,S,R,B,W)},be=(m,x,S)=>{const E=x.component=m.component;if(Kg(m,x,S))if(E.asyncDep&&!E.asyncResolved){x.el=m.el,x.placeholder=m.placeholder,J(E,x,S);return}else E.next=x,E.update();else x.el=m.el,x.placeholder=m.placeholder,E.vnode=x},ce=(m,x,S,E,R,B,W)=>{const U=()=>{if(m.isMounted){let{next:q,bu:de,u:ve,parent:we,vnode:Me}=m;{const Et=$u(m);if(Et){q&&(q.el=Me.el,J(m,q,W)),Et.asyncDep.then(()=>{const At=()=>{m.job.flags&8||(R&&R.pendingBranch?ft(At,R):I())};At.flags=48,ft(At,R)});return}}let ze=q,Ge;Qo(m,!1),q?(q.el=Me.el,J(m,q,W)):q=Me,de&&gl(de),(Ge=q.props&&q.props.onVnodeBeforeUpdate)&&Jt(Ge,we,q,Me),Qo(m,!0);const Qe=Ps(m),It=m.subTree;m.subTree=Qe,g(It,Qe,u(It.el||bn(It)),z(It),m,R,B),q.el=Qe.el,ze===null&&Yg(m,Qe.el),ve&&ft(ve,R),(Ge=q.props&&q.props.onVnodeUpdated)&&ft(()=>Jt(Ge,we,q,Me),R)}else{let q;const{el:de,props:ve}=x,{bm:we,m:Me,parent:ze,root:Ge,type:Qe}=m,It=Mr(x);Qo(m,!1),we&&gl(we),!It&&(q=ve&&ve.onVnodeBeforeMount)&&Jt(q,ze,x),Qo(m,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(Qe,m.parent?m.parent.type:void 0);const Et=m.subTree=Ps(m);g(null,Et,S,E,m,R,B),x.el=Et.el}if(Me&&ft(Me,R),!It&&(q=ve&&ve.onVnodeMounted)){const Et=x;ft(()=>Jt(q,ze,Et),R)}(x.shapeFlag&256||ze&&Mr(ze.vnode)&&ze.vnode.shapeFlag&256)&&m.a&&ft(m.a,R),m.isMounted=!0,x=S=E=null}};m.scope.on();const G=m.effect=new _d(U);m.scope.off();const I=m.update=G.run.bind(G),Z=m.job=G.runIfDirty.bind(G);Z.i=m,Z.id=m.uid,G.scheduler=()=>Vi(Z),Qo(m,!0),I()},J=(m,x,S)=>{x.component=m;const E=m.vnode.props;m.vnode=x,m.next=null,Zg(m,x.props,E,S),tb(m,x.children,S),fo(),Kd(m),ho()},ue=(m,x,S,E,R,B,W,U,G=!1)=>{const I=m&&m.children,Z=m?m.shapeFlag:0,q=x.children,{patchFlag:de,shapeFlag:ve}=x;if(de>0){if(de&128){$e(I,q,S,E,R,B,W,U,G);return}else if(de&256){He(I,q,S,E,R,B,W,U,G);return}}ve&8?(Z&16&&Se(I,R,B),q!==I&&c(S,q)):Z&16?ve&16?$e(I,q,S,E,R,B,W,U,G):Se(I,R,B,!0):(Z&8&&c(S,""),ve&16&&w(q,S,E,R,B,W,U,G))},He=(m,x,S,E,R,B,W,U,G)=>{m=m||lr,x=x||lr;const I=m.length,Z=x.length,q=Math.min(I,Z);let de;for(de=0;deZ?Se(m,R,B,!0,!1,q):w(x,S,E,R,B,W,U,G,q)},$e=(m,x,S,E,R,B,W,U,G)=>{let I=0;const Z=x.length;let q=m.length-1,de=Z-1;for(;I<=q&&I<=de;){const ve=m[I],we=x[I]=G?Po(x[I]):no(x[I]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;I++}for(;I<=q&&I<=de;){const ve=m[q],we=x[de]=G?Po(x[de]):no(x[de]);if(ir(ve,we))g(ve,we,S,null,R,B,W,U,G);else break;q--,de--}if(I>q){if(I<=de){const ve=de+1,we=vede)for(;I<=q;)ke(m[I],R,B,!0),I++;else{const ve=I,we=I,Me=new Map;for(I=we;I<=de;I++){const ct=x[I]=G?Po(x[I]):no(x[I]);ct.key!=null&&Me.set(ct.key,I)}let ze,Ge=0;const Qe=de-we+1;let It=!1,Et=0;const At=new Array(Qe);for(I=0;I=Qe){ke(ct,R,B,!0);continue}let N;if(ct.key!=null)N=Me.get(ct.key);else for(ze=we;ze<=de;ze++)if(At[ze-we]===0&&ir(ct,x[ze])){N=ze;break}N===void 0?ke(ct,R,B,!0):(At[N-we]=I+1,N>=Et?Et=N:It=!0,g(ct,x[N],S,null,R,B,W,U,G),Ge++)}const Xr=It?ib(At):lr;for(ze=Xr.length-1,I=Qe-1;I>=0;I--){const ct=we+I,N=x[ct],he=x[ct+1],xe=ct+1{const{el:B,type:W,transition:U,children:G,shapeFlag:I}=m;if(I&6){Le(m.component.subTree,x,S,E);return}if(I&128){m.suspense.move(x,S,E);return}if(I&64){W.move(m,x,S,L);return}if(W===Te){r(B,x,S);for(let q=0;qU.enter(B),R));else{const{leave:q,delayLeave:de,afterLeave:ve}=U,we=()=>{m.ctx.isUnmounted?n(B):r(B,x,S)},Me=()=>{const ze=B._isLeaving||!!B[Wt];B._isLeaving&&B[Wt](!0),U.persisted&&!ze?we():q(B,()=>{we(),ve&&ve()})};de?de(B,we,Me):Me()}else r(B,x,S)},ke=(m,x,S,E=!1,R=!1)=>{const{type:B,props:W,ref:U,children:G,dynamicChildren:I,shapeFlag:Z,patchFlag:q,dirs:de,cacheIndex:ve,memo:we}=m;if((q===-2||I&&I.hasOnce)&&(R=!1),U!=null&&(fo(),mn(U,null,S,m,!0),ho()),ve!=null&&(!m.ctx||m.ctx===x)&&(x.renderCache[ve]=void 0),Z&256&&x.ctx.deactivate(m))return;const Me=Z&1&&de,ze=!Mr(m);let Ge;if(ze&&(Ge=W&&W.onVnodeBeforeUnmount)&&Jt(Ge,x,m),Z&6)vt(m.component,S,E);else{if(Z&128){m.suspense.unmount(S,E);return}Me&&Jo(m,null,x,"beforeUnmount"),Z&64?m.type.remove(m,x,S,L,E):I&&!I.hasOnce&&(B!==Te||q>0&&q&64)?Se(I,x,S,!1,!0):(B===Te&&q&384||!R&&Z&16)&&Se(G,x,S),E&&nt(m)}const Qe=we!=null&&ve==null;(ze&&(Ge=W&&W.onVnodeUnmounted)||Me||Qe)&&ft(()=>{Ge&&Jt(Ge,x,m),Me&&Jo(m,null,x,"unmounted"),Qe&&(m.el=null)},S)},nt=m=>{const{type:x,el:S,anchor:E,transition:R}=m,B=x===Te;if(B&&!R){Je(S,E);return}if(x===ci){P(m),R&&!R.persisted&&R.afterLeave&&R.afterLeave();return}const W=B?Tn(m):m,U=()=>{B?u(S)&&Je(S,E):n(S),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(W&&W.shapeFlag&1&&R&&!R.persisted){const{leave:G,delayLeave:I}=R,Z=W.el,q=()=>G(Z,U);I?I(Z,U,q):q()}else U()},Je=(m,x)=>{let S;for(;m!==x;)S=f(m),n(m),m=S;n(x)},vt=(m,x,S)=>{const{bum:E,scope:R,job:B,subTree:W,um:U,m:G,a:I}=m;_s(G),_s(I),E&&gl(E),R.stop(),B?(B.flags|=8,ke(W,m,x,S)):W&&(W.transition=m.vnode.transition,ke(W,m,x,S)),U&&ft(U,x);const Z=()=>{m.isUnmounted=!0};Z.flags=16,ft(Z,x)},Se=(m,x,S,E=!1,R=!1,B=0)=>{for(let W=B;W{if(m.shapeFlag&6)return z(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=f(m.anchor||m.el),S=x&&x[Qd];return S?f(S):x},ee=(m,x,S)=>{const E=m&&x._vnode?void 0:m&&m.component?m.component.uid:fb();vg(()=>{m==null?x._vnode&&ke(x._vnode,null,null,!0):g(x._vnode||null,m,x,null,null,null,S),x._vnode=m},E)},L={p:g,um:ke,m:Le,r:nt,mt:ie,mc:w,pc:ue,pbc:H,n:z,o:e};return{render:ee,hydrate:void 0,createApp:Ng(ee)}}function Pl({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Qo({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Aa(e,t,o=!1){const r=e.children,n=t.children;if(ge(r)&&ge(n))for(let i=0;i>1,e[o[a]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function $u(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$u(t)}function _s(e){if(e)for(let t=0;te.__isSuspense,lb=Symbol("_deferredEnter");function ab(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):bg(e)}const Te=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),ci=Symbol.for("v-stc"),$o=[];let Mt=null;function k(e=!1){$o.push(Mt=e?null:[])}function Ha(){$o.pop(),Mt=$o[$o.length-1]||null}let _n=1;function wi(e,t=!1){_n+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function Iu(e){return e.dynamicChildren=_n>0?Mt||lr:null,Ha(),_n>0&&Mt&&Mt.push(e),e}function pe(e,t,o,r,n,i){return Iu(Pe(e,t,o,r,n,i,!0))}function ae(e,t,o,r,n){return Iu(je(e,t,o,r,n,!0))}function Ro(e){return e?e.__v_isVNode===!0:!1}function ir(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,di=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||ot(e)||ye(e)?{i:lt,r:e,k:t,f:!!o}:e:null);function Pe(e,t=null,o=null,r=0,n=null,i=e===Te?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&di(t),scopeId:Zd,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:lt};return a?(Pi(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ve(o)?8:16),_n>0&&!l&&Mt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Mt.push(s),s}const je=sb;function sb(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===uu)&&(e=Ze),Ro(e)){const a=go(e,t,!0);return o&&Pi(a,o),_n>0&&!i&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(e)]=a:Mt.push(a)),a.patchFlag=-2,a}if(Cb(e)&&(e=e.__vccOpts),t){t=cb(t);let{class:a,style:s}=t;a&&!Ve(a)&&(t.class=mr(a)),Ie(s)&&(Ni(s)&&!ge(s)&&(s=qe({},s)),t.style=Be(s))}const l=Ve(e)?1:Ru(e)?128:Ui(e)?64:Ie(e)?4:ye(e)?2:0;return Pe(e,t,o,r,n,l,i,!0)}function cb(e){return e?Ni(e)?qe({},e):Su(e)?qe({},e[Fu]||e):e:null}function go(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:l,children:a,transition:s}=e,d=t?Bt(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Au(d),ref:t&&t.ref?o&&i?ge(i)?i.concat(di(t)):[i,di(t)]:di(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return s&&r&&_o(c,s.clone(c)),c}function $n(e=" ",t=0){return je(Nn,null,e,t)}function L_(e,t){const o=je(ci,null,e);return o.staticCount=t,o}function db(e="",t=!1){return t?(k(),ae(Ze,null,e)):je(Ze,null,e)}function no(e){return e==null||typeof e=="boolean"?je(Ze):ge(e)?je(Te,null,e.slice()):Ro(e)?Po(e):je(Nn,null,String(e))}function Po(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}function Pi(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!Su(t)?t._ctx=lt:n===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ye(t)){if(r&65){Pi(e,{default:t});return}t={default:t,_ctx:lt},o=32}else t=String(t),r&64?(o=16,t=[$n(t)]):o=8;e.children=t,e.shapeFlag|=o}function Bt(...e){const t={};for(let o=0;omt||lt;let Ti,Rn;{const e=Li(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(l=>l(i)):n[0](i)}};Ti=t("__VUE_INSTANCE_SETTERS__",o=>mt=o),Rn=t("__VUE_SSR_SETTERS__",o=>In=o)}const jn=e=>{const t=mt;return Ti(e),e.scope.on(),()=>{e.scope.off(),Ti(t)}},$s=()=>{mt&&mt.scope.off(),Ti(null)};function Mu(e){return e.vnode.shapeFlag&4}let In=!1;function pb(e,t=!1,o=!1){t&&Rn(t);const{props:r,children:n}=e.vnode,i=Mu(e);Xg(e,r,i,t),eb(e,n,o||t);const l=i?mb(e,t):void 0;return t&&Rn(!1),l}function mb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fg);const{setup:r}=o;if(r){fo();const n=e.setupContext=r.length>1?bb(e):null,i=jn(e),l=Wn(r,e,0,[e.props,n]),a=xd(l);if(ho(),i(),(a||e.sp)&&!Mr(e)&&nu(e),a){if(l.then($s,$s),t)return l.then(s=>{Rn(!0);try{Rs(e,s,t)}finally{Rn(!1)}}).catch(s=>{ji(s,e,0,void 0,!0),e.ssrRender=(d,c)=>c("")});e.asyncDep=l}else Rs(e,l)}else zu(e)}function Rs(e,t,o){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Gd(t)),zu(e)}function zu(e,t,o){const r=e.type;e.render||(e.render=r.render||co);{const n=jn(e);fo();try{Bg(e)}finally{ho(),n()}}}const Fu=Symbol(),gb={get(e,t){return ht(e,"get",""),t===Fu?e:e[t]}};function bb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,gb),slots:e.slots,emit:e.emit,expose:t}}function Yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gd(Vl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in gn)return gn[o](e)},has(t,o){return o in t||o in gn}})):e.proxy}function vb(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Cb(e){return ye(e)&&"__vccOpts"in e}const X=(e,t)=>fg(e,t,In);function Rt(e,t,o){try{wi(-1);const r=arguments.length;return r===2?Ie(t)&&!ge(t)?Ro(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Ro(o)&&(o=[o]),je(e,t,o))}finally{wi(1)}}const xb="3.5.45";let Jl;const Is=typeof window<"u"&&window.trustedTypes;if(Is)try{Jl=Is.createPolicy("vue",{createHTML:e=>e})}catch{}const Bu=Jl?e=>Jl.createHTML(e):e=>e,yb="http://www.w3.org/2000/svg",Sb="http://www.w3.org/1998/Math/MathML",wo=typeof document<"u"?document:null,As=wo&&wo.createElement("template"),wb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?wo.createElementNS(yb,e):t==="mathml"?wo.createElementNS(Sb,e):o?wo.createElement(e,{is:o}):wo.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>wo.createTextNode(e),createComment:e=>wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const l=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{As.innerHTML=Bu(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=As.content;if(r==="svg"||r==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Fo="transition",en="animation",kr=Symbol("_vtc"),ku={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Du=qe({},tu,ku),Pb=e=>(e.displayName="Transition",e.props=Du,e),br=Pb((e,{slots:t})=>Rt(Eg,Lu(e),t)),er=(e,t=[])=>{ge(e)?e.forEach(o=>o(...t)):e&&e(...t)},Hs=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Lu(e){const t={};for(const $ in e)$ in ku||(t[$]=e[$]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:d=l,appearToClass:c=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(n),g=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:y,onEnterCancelled:T,onLeave:P,onLeaveCancelled:A,onBeforeAppear:M=C,onAppear:v=y,onAppearCancelled:w=T}=t,_=($,K,ie,be)=>{$._enterCancelled=be,Oo($,K?c:a),Oo($,K?d:l),ie&&ie()},H=($,K)=>{$._isLeaving=!1,Oo($,u),Oo($,h),Oo($,f),K&&K()},O=$=>(K,ie)=>{const be=$?v:y,ce=()=>_(K,$,ie);er(be,[K,ce]),Ms(()=>{Oo(K,$?s:i),to(K,$?c:a),Hs(be)||zs(K,r,g,ce)})};return qe(t,{onBeforeEnter($){er(C,[$]),to($,i),to($,l)},onBeforeAppear($){er(M,[$]),to($,s),to($,d)},onEnter:O(!1),onAppear:O(!0),onLeave($,K){$._isLeaving=!0;const ie=()=>H($,K);to($,u),$._enterCancelled?(to($,f),Ql($)):(Ql($),to($,f)),Ms(()=>{$._isLeaving&&(Oo($,u),to($,h),Hs(P)||zs($,r,b,ie))}),er(P,[$,ie])},onEnterCancelled($){_($,!1,void 0,!0),er(T,[$])},onAppearCancelled($){_($,!0,void 0,!0),er(w,[$])},onLeaveCancelled($){H($),er(A,[$])}})}function Tb(e){if(e==null)return null;if(Ie(e))return[Tl(e.enter),Tl(e.leave)];{const t=Tl(e);return[t,t]}}function Tl(e){return Am(e)}function to(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[kr]||(e[kr]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[kr];o&&(o.delete(t),o.size||(e[kr]=void 0))}function Ms(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eb=0;function zs(e,t,o,r){const n=e._endId=++Eb,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Ou(e,t);if(!l)return r();const d=l+"end";let c=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++c>=s&&u()};setTimeout(()=>{c(o[p]||"").split(", "),n=r(`${Fo}Delay`),i=r(`${Fo}Duration`),l=Fs(n,i),a=r(`${en}Delay`),s=r(`${en}Duration`),d=Fs(a,s);let c=null,u=0,f=0;t===Fo?l>0&&(c=Fo,u=l,f=i.length):t===en?d>0&&(c=en,u=d,f=s.length):(u=Math.max(l,d),c=u>0?l>d?Fo:en:null,f=c?c===Fo?i.length:s.length:0);const h=c===Fo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Fo}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:h}}function Fs(e,t){for(;e.lengthBs(o)+Bs(e[r])))}function Bs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ql(e){return(e?e.ownerDocument:document).body.offsetHeight}function _b(e,t,o){const r=e[kr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ei=Symbol("_vod"),Ma=Symbol("_vsh"),ks={name:"show",beforeMount(e,{value:t},{transition:o}){e[Ei]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),tn(e,!0),r.enter(e)):r.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[Ei]:"none",e[Ma]=!t}const $b=Symbol(""),Rb=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const r=e.style,n=Ve(o);let i=!1;if(o&&!n){if(t)if(Ve(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&cn(r,a,"")}else for(const l in t)o[l]==null&&cn(r,l,"");for(const l in o){l==="display"&&(i=!0);const a=o[l];a!=null?Hb(e,l,!Ve(t)&&t?t[l]:void 0,a)||cn(r,l,a):cn(r,l,"")}}else if(n){if(t!==o){const l=r[$b];l&&(o+=";"+l),r.cssText=o,i=Rb.test(o)}}else t&&e.removeAttribute("style");Ei in e&&((!n||t!==o)&&(e[Ei]=i?r.display:""),e[Ma]&&(r.display="none"))}const Qn=/\s*!important$/;function cn(e,t,o){if(ge(o))o.forEach(r=>cn(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Qn.test(o)?e.setProperty(t,o.replace(Qn,""),"important"):e.setProperty(t,o);else{const r=Ab(e,t);Qn.test(o)?e.setProperty(Cr(r),o.replace(Qn,""),"important"):e[r]=o}}const Ds=["Webkit","Moz","ms"],El={};function Ab(e,t){const o=El[t];if(o)return o;let r=wt(t);if(r!=="filter"&&r in e)return El[t]=r;r=Di(r);for(let n=0;n_l||(Lb.then(()=>_l=0),_l=Date.now());function Wb(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;const n=o.value;if(ge(n)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const l=n.slice(),a=[r];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nb=(e,t,o,r,n,i)=>{const l=n==="svg";t==="class"?_b(e,r,l):t==="style"?Ib(e,o,r):zi(t)?Fi(t)||Fb(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jb(e,t,r,l))?(Ws(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Os(e,t,r,l,i,t!=="value")):e._isVueCE&&(Vb(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ve(r)))?Ws(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Os(e,t,r,l))};function jb(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&js(t)&&ye(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return js(t)&&Ve(o)?!1:t in e}function Vb(e,t){const o=e._def.props;if(!o)return!1;const r=wt(t);return Array.isArray(o)?o.some(n=>wt(n)===r):Object.keys(o).some(n=>wt(n)===r)}const Wu=new WeakMap,Nu=new WeakMap,_i=Symbol("_moveCb"),Vs=Symbol("_enterCb"),ea=new WeakMap,Gb=e=>(delete e.props.mode,e),Ub=Gb({name:"TransitionGroup",props:qe({},Du,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Wr(),r=eu();let n,i,l,a;const s=()=>(a===void 0&&(a=n.length>0&&ev(n[0].el,o.vnode.el,Gs(e))),a);return su(()=>{if(ea.delete(o),!s()){n=[],l=void 0;return}const d=Gs(e);n.forEach(Kb);const c=l&&Qb(l,o.vnode.el);l=void 0,n.forEach(f=>Yb(f,c));const u=n.filter(Xb);Ql(o.vnode.el),u.forEach(f=>{const h=f.el,p=h.style;to(h,d),p.transform=p.webkitTransform=p.transitionDuration="";const g=h[_i]=b=>{b&&b.target!==h||(!b||b.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",g),h[_i]=null,Oo(h,d))};h.addEventListener("transitionend",g)}),n=[]}),()=>{const d=_e(e),c=Lu(d);let u=d.tag||Te;if(n=[],a=void 0,i)for(let f=0;fr.willMove()&&r.item.contains(t));return o&&Xi(o.item,o)}function ev(e,t,o){const r=e.cloneNode(),n=e[kr];n&&n.forEach(a=>{a.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=Ou(r);return i.removeChild(r),l}const tv=["ctrl","shift","alt","meta"],ov={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tv.some(o=>e[`${o}Key`]&&!t.includes(o))},O_=(e,t)=>{if(!e)return e;const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let l=0;l{const t=nv().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=av(r);if(!n)return;const i=t._component;!ye(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=o(n,!1,lv(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t});function lv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function av(e){return Ve(e)?document.querySelector(e):e}function sv(e){let t=".",o="__",r="--",n;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){n=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(C){g=C.bem.b,b=C.bem.els,C.bem.els=null},after(C){C.bem.b=g,C.bem.els=b},$({context:C,props:y}){return p=typeof p=="string"?p:p({context:C,props:y}),C.bem.b=p,`${y?.bPrefix||t}${C.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:C}){return p=typeof p=="string"?p:p({context:b,props:C}),b.bem.els=p.split(",").map(y=>y.trim()),b.bem.els.map(y=>`${C?.bPrefix||t}${b.bem.b}${o}${y}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=p.split(",").map(P=>P.trim());function y(P){return C.map(A=>`&${b?.bPrefix||t}${g.bem.b}${P!==void 0?`${o}${P}`:""}${r}${A}`).join(", ")}const T=g.bem.els;return T!==null?y(T[0]):y()}}}function d(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const C=g.bem.els;return`&:not(${b?.bPrefix||t}${g.bem.b}${C!==null&&C.length>0?`${o}${C[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>n(l(p[0]),p[1],p[2])),cE:((...p)=>n(a(p[0]),p[1],p[2])),cM:((...p)=>n(s(p[0]),p[1],p[2])),cNotM:((...p)=>n(d(p[0]),p[1],p[2]))}),i}function cv(e){let t=0;for(let o=0;o{let n=cv(r);if(n){if(n===1){e.forEach(l=>{o.push(r.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+r)});return}let i=[r];for(;n--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function fv(e,t){const o=[];return t.split(ju).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function hv(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=uv(t,o):t=fv(t,o))}),t.join(", ").replace(dv," ")}function qs(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function pv(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ei(e){return e?/^\s*@(s|m)/.test(e):!1}const mv=/[A-Z]/g;function Vu(e){return e.replace(mv,t=>"-"+t.toLowerCase())}function gv(e,t=" "){return typeof e=="object"&&e!==null?` { `+Object.entries(e).map(o=>t+` ${Vu(o[0])}: ${o[1]};`).join(` `)+` @@ -813,4 +813,4 @@ ${t} transform: translate(${t}, 0); `),D("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: translate(0, 0); - `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-CgZHTqn3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-D5h30p8f.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-DbUrPyr3.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-B0GCV62j.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,30,3,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-C0q9wGjN.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-BkgkRPye.js"),__vite__mapDeps([36,27,13,4,2,1,24,29,37,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-Bizgy-un.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-CaYIvJoC.js"),__vite__mapDeps([41,1,2,27,13,4,24,37,5,16,17,30,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,c2 as b0,Kt as b1,nl as b2,Nc as b3,Hi as b4,ja as b5,Wa as b6,Na as b7,An as b8,wp as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,Mi as ba,Ku as bb,Rv as bc,DS as bd,Va as be,Kr as bf,hi as bg,J_ as bh,hT as bi,Io as bj,X_ as bk,eP as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; + `)])}const NP="n-notification-api",jP={...Pt.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean};var VP=Ae({name:"NotificationProvider",props:jP,setup(e){const{mergedClsPrefixRef:t}=Mo(e),o=se([]),r={},n=new Set;function i(h){const p=nl(),g=()=>{n.add(p),r[p]&&r[p].hide()},b=xr({...h,key:p,destroy:g,hide:g,deactivate:g}),{max:C}=e;if(C&&o.value.length-n.size>=C){let y=!1,T=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),y=!0);break}T++}y||o.value.splice(T,1)}return o.value.push(b),b}const l=["info","success","warning","error"].map(h=>p=>i({...p,type:h}));function a(h){n.delete(h),o.value.splice(o.value.findIndex(p=>p.key===h),1)}const s=Pt("Notification","-notification",WP,cp,e,t),d={create:i,info:l[0],success:l[1],warning:l[2],error:l[3],open:u,destroyAll:f},c=se(0);at(NP,d),at(ul,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c});function u(h){return i(h)}function f(){Object.values(o.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:a},d)},render(){const{placement:e}=this;return k(),pe(Te,null,[te(()=>this.$slots.default?.()),this.notificationList.length?(k(),ae(_a,{key:0,to:this.to??"body"},[(k(),ae(zP,{class:le(this.containerClass),style:Be(this.containerStyle),scrollable:this.scrollable&&e!=="top"&&e!=="bottom",placement:e},{default:()=>this.notificationList.map(t=>(k(),ae(OP,Bt({ref:o=>{const r=t.key;o===null?delete this.notificationRefs[r]:this.notificationRefs[r]=o}},Ka(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover}),null,16,["internalKey","onInternalAfterLeave","keepAliveOnHover"])))},1032,["class","style","scrollable","placement"]))],8,["to"])):te(()=>null)],64)}});function dp(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const GP={name:"Divider",common:V,self:dp},UP={name:"Divider",common:j,self:dp};function up(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:l,dividerColor:a,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:l,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:h,resizableTriggerColorHover:p}}const qP={name:"Drawer",common:V,peers:{Scrollbar:st},self:up},KP={name:"Drawer",common:j,peers:{Scrollbar:gt},self:up};var fp={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const YP={name:"DynamicInput",common:j,peers:{Input:Dt,Button:Tt},self(){return fp}};function XP(){return fp}const ZP={name:"DynamicInput",common:V,peers:{Input:Lt,Button:bt},self:XP};var hp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const pp={name:"Space",self(){return hp}};function JP(){return hp}const mp={name:"Space",self:JP},QP={name:"DynamicTags",common:j,peers:{Input:Dt,Button:Tt,Tag:th,Space:pp},self(){return{inputWidth:"64px"}}};function e2(){return{inputWidth:"64px"}}const t2={name:"DynamicTags",common:V,peers:{Input:Lt,Button:bt,Tag:oh,Space:mp},self:e2},o2={name:"Element",common:j},r2={name:"Element",common:V};var gp={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const n2={name:"Flex",self(){return gp}};function i2(){return gp}const l2={name:"Flex",self:i2},a2={name:"ButtonGroup",common:j};var s2={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function bp(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:l,lineHeight:a,textColor3:s}=e;return{...s2,blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:a,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:l,feedbackTextColor:s}}const c2={name:"Form",common:V,self:bp},d2={name:"Form",common:j,self:bp},u2={name:"GradientText",common:j,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:l,successColorSuppl:a,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:l,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:a}}},f2={name:"InputNumber",common:j,peers:{Button:Tt,Input:Dt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function vp(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const h2={name:"InputOtp",common:V,peers:{Input:Lt},self:vp},p2={name:"InputOtp",common:j,peers:{Input:Dt},self:vp},m2={name:"Layout",common:j,peers:{Scrollbar:gt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:l,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Y(o,l),siderToggleBarColorHover:Y(o,a),__invertScrollbar:"false"}}};function Cp(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:l,fontSize:a,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:Y(r,s),colorPopover:n,colorHoverPopover:Y(n,s),borderColor:i,borderColorModal:Y(r,i),borderColorPopover:Y(n,i),borderRadius:l,fontSize:a}}const g2={name:"List",common:V,self:Cp},b2={name:"List",common:j,self:Cp},v2={name:"Log",common:j,peers:{Scrollbar:gt,Code:Ph},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},C2={name:"Mention",common:j,peers:{InternalSelectMenu:Un,Input:Dt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function x2(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function xp(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:d}=e;return{borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a,...x2("#BBB",r,"#FFF","#AAA")}}const y2={name:"Menu",common:V,peers:{Tooltip:cl,Dropdown:Ya},self:xp},S2={name:"Menu",common:j,peers:{Tooltip:sl,Dropdown:Xa},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=xp(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}};var w2={iconSize:"22px"};function yp(e){const{fontSize:t,warningColor:o}=e;return{...w2,fontSize:t,iconColor:o}}const P2={name:"Popconfirm",common:V,peers:{Button:bt,Popover:Tr},self:yp},T2={name:"Popconfirm",common:j,peers:{Button:Tt,Popover:Er},self:yp};function Sp(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:l,fontSize:a,fontWeight:s}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:s,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const wp={name:"Progress",common:V,self:Sp},Pp={name:"Progress",common:j,self(e){const t=Sp(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},E2={name:"Rate",common:j,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var _2={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tp(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:l,lineHeight:a,fontWeightStrong:s}=e;return{..._2,lineHeight:a,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:l}}const $2={name:"Result",common:V,self:Tp},R2={name:"Result",common:j,self:Tp};var Ep={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const I2={name:"Slider",common:j,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:l,cardColor:a,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return{...Ep,fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:l,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}};function _p(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:l,primaryColor:a,fontSize:s}=e;return{fontSize:s,textColor:a,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:l,color:a,opacitySpinning:t}}const A2={name:"Spin",common:V,self:_p},H2={name:"Spin",common:j,self:_p};function $p(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const M2={name:"Statistic",common:V,self:$p},z2={name:"Statistic",common:j,self:$p};var F2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Rp(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:l,textColor2:a}=e;return{...F2,stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:l,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i}}const B2={name:"Steps",common:V,self:Rp},k2={name:"Steps",common:j,self:Rp};var Ip={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const D2={name:"Switch",common:j,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:l}=e;return{...Ip,iconColor:l,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(n,{alpha:.3})}`}}};var L2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Ap(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:l,textColor1:a,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return{...L2,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:Y(o,t),borderColorModal:Y(r,t),borderColorPopover:Y(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:Y(o,l),tdColorStripedModal:Y(r,l),tdColorStripedPopover:Y(n,l),thColor:Y(o,i),thColorModal:Y(r,i),thColorPopover:Y(n,i),thTextColor:a,tdTextColor:s,thFontWeight:c}}const O2={name:"Table",common:V,self:Ap},W2={name:"Table",common:j,self:Ap};var N2={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Hp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:b}=e;return{...N2,colorSegment:d,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:l,closeColorHover:a,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:b}}const j2={name:"Tabs",common:V,peers:{Button:bt},self:Hp},V2={name:"Tabs",common:j,peers:{Button:Tt},self(e){const t=Hp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Mp(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const G2={name:"Thing",common:V,self:Mp},U2={name:"Thing",common:j,self:Mp};var zp={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const q2={name:"Timeline",common:j,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}};var Fp={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const K2={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T,dividerColor:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:P,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:C,closeIconColorHover:y,closeIconColorPressed:T}}};function Bp(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:l,textColor2:a,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:F(i,{alpha:.1}),arrowColor:l,nodeTextColor:a,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const kp={name:"Tree",common:V,peers:{Checkbox:Kr,Scrollbar:st,Empty:zo},self:Bp},Dp={name:"Tree",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Empty:wr},self(e){const{primaryColor:t}=e,o=Bp(e);return o.nodeColorActive=F(t,{alpha:.15}),o}},Y2={name:"TreeSelect",common:j,peers:{Tree:Dp,Empty:wr,InternalSelection:Oa}};var X2={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Lp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return{...X2,aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"}}const Z2={name:"Typography",common:V,self:Lp},J2={name:"Typography",common:j,self:Lp};function Op(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:l,actionColor:a,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const Q2={name:"Upload",common:V,peers:{Button:bt,Progress:wp},self:Op},eT={name:"Upload",common:j,peers:{Button:Tt,Progress:Pp},self(e){const{errorColor:t}=e,o=Op(e);return o.itemColorHoverError=F(t,{alpha:.09}),o}},tT={name:"Watermark",common:j,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function oT(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const rT={name:"FloatButtonGroup",common:V,self:oT};function nT(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,borderRadius:s}=e;return{color:t,colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const iT={name:"FloatButton",common:V,self:nT};function lT(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:l}=e;return{fontWeight:l,rotate:"252deg",colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(n,{alpha:.6}),colorEndError:n,colorStartSuccess:F(o,{alpha:.6}),colorEndSuccess:o}}const aT={name:"GradientText",common:V,self:lT};function Wp(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:l,cardColor:a,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:a,textColor:l,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const sT={name:"Heatmap",common:V,self:Wp};function Np(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const cT={name:"IconWrapper",common:V,self:Np};function dT(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uT={name:"Image",common:V,peers:{Tooltip:cl},self:dT};function fT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const hT={name:"InputNumber",common:V,peers:{Button:bt,Input:Lt},self:fT};function pT(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:l,headerColor:n,headerColorInverted:d,footerColor:l,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Y(r,a),siderToggleBarColorHover:Y(r,s),__invertScrollbar:"true"}}const mT={name:"Layout",common:V,peers:{Scrollbar:st},self:pT};var jp={extraFontSize:"12px",width:"440px"};function gT(e){const{fontWeight:t,iconColorDisabled:o,iconColor:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,cardColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:b,hoverColor:C}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:b,listColor:u,headerColor:Y(u,f),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:b,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:C,titleFontWeight:t,iconColor:r,iconColorDisabled:o}}const bT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:gT};function vT(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const CT={name:"Log",common:V,peers:{Scrollbar:st,Code:Th},self:vT};function Vp(){return{}}const xT={name:"Marquee",common:V,self:Vp};function yT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ST={name:"Mention",common:V,peers:{InternalSelectMenu:Gn,Input:Lt},self:yT};var wT={titleFontSize:"18px",backSize:"22px"};function Gp(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:l,primaryColorPressed:a}=e;return{...wT,titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:l,backColorPressed:a,subtitleTextColor:r}}const PT={name:"PageHeader",common:V,self:Gp};function TT(e){return{borderRadius:e.borderRadius}}const ET={name:"QrCode",common:V,self:TT};function _T(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const $T={name:"Rate",common:V,self:_T};function RT(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}const IT={name:"Skeleton",common:V,self:RT};function AT(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:n,baseColor:i,cardColor:l,modalColor:a,popoverColor:s,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return{...Ep,fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:a,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""}}const HT={name:"Slider",common:V,self:AT};function MT(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const zT={name:"Split",common:V,self:MT};function FT(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return{...Ip,iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}const BT={name:"Switch",common:V,self:FT};function kT(e){const{textColor3:t,infoColor:o,errorColor:r,successColor:n,warningColor:i,textColor1:l,textColor2:a,railColor:s,fontWeightStrong:d,fontSize:c}=e;return{...zp,contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:l,contentTextColor:a,metaTextColor:t,lineColor:s}}const DT={name:"Timeline",common:V,self:kT};function LT(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:l,borderRadius:a,cardColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:f,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}=e;return{...Fp,itemHeightSmall:l,itemHeightMedium:l,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:a,dividerColor:p,borderColor:p,listColor:s,headerColor:Y(s,d),titleTextColor:c,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:g,titleFontWeight:t,closeColorHover:b,closeColorPressed:C,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:P}}const OT={name:"Transfer",common:V,peers:{Checkbox:Kr,Scrollbar:st,Input:Lt,Empty:zo,Button:bt},self:LT};function WT(e){const{popoverColor:t,boxShadow2:o,borderRadius:r,heightMedium:n,dividerColor:i,textColor2:l}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:r,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:l,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:l,headerPadding:"8px 12px"}}const NT={name:"TreeSelect",common:V,peers:{Tree:kp,Empty:zo,InternalSelection:qa},self:WT},jT={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},VT={name:"ButtonGroup",common:V},GT={name:"Row",common:V},Up=()=>({}),UT={name:"Equation",common:V,self:Up},qT={name:"light",common:V,Alert:IS,Anchor:FS,AutoComplete:XS,Avatar:uh,AvatarGroup:QS,BackTop:rw,Badge:cw,Breadcrumb:uw,Button:bt,ButtonGroup:VT,Calendar:vw,Card:Ga,Carousel:Pw,Cascader:_w,Checkbox:Kr,Code:Th,Collapse:Aw,CollapseTransition:Mw,ColorPicker:zw,DataTable:jw,DatePicker:Yw,Descriptions:Jw,Dialog:Za,Divider:GP,Drawer:qP,Dropdown:Ya,DynamicInput:ZP,DynamicTags:t2,Element:r2,Empty:zo,Equation:UT,Ellipsis:Nh,Flex:l2,Form:c2,GradientText:aT,Heatmap:sT,Icon:Gw,IconWrapper:cT,Image:uT,Input:Lt,InputNumber:hT,InputOtp:h2,Layout:mT,LegacyTransfer:bT,List:g2,LoadingBar:xP,Log:CT,Menu:y2,Mention:ST,Message:ip,Modal:rp,Notification:cp,PageHeader:PT,Pagination:Fh,Popconfirm:P2,Popover:Tr,Popselect:Ih,Progress:wp,QrCode:ET,Radio:jh,Rate:$T,Row:GT,Result:$2,Scrollbar:st,Skeleton:IT,Select:Hh,Slider:HT,Space:mp,Spin:A2,Statistic:M2,Steps:B2,Switch:BT,Table:O2,Tabs:j2,Tag:oh,Thing:G2,TimePicker:qh,Timeline:DT,Tooltip:cl,Transfer:OT,Tree:kp,TreeSelect:NT,Typography:Z2,Upload:Q2,Watermark:jT,Split:zT,FloatButton:iT,FloatButtonGroup:rT,Marquee:xT},KT={name:"AvatarGroup",common:j,peers:{Avatar:fh},self:hh},YT={name:"Calendar",common:j,peers:{Button:Tt},self:bh},XT={name:"Carousel",common:j,self:xh},ZT={name:"CollapseTransition",common:j,self:_h},JT={name:"ColorPicker",common:j,peers:{Input:Dt,Button:Tt},self:$h},QT={name:"Row",common:j},eE={name:"PageHeader",common:j,self:Gp},tE={name:"FloatButton",common:j,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:l,primaryColorPressed:a,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:l,colorPrimaryPressed:a,textColorPrimary:s,borderRadiusSquare:d}}},oE={name:"IconWrapper",common:j,self:Np},rE={name:"Image",common:j,peers:{Tooltip:sl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},nE={name:"Transfer",common:j,peers:{Checkbox:Yr,Scrollbar:gt,Input:Dt,Empty:wr,Button:Tt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:l,heightLarge:a,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:b}=e;return{...jp,itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:l,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t}}},iE={name:"Marquee",common:j,self:Vp},lE={name:"QrCode",common:j,self:e=>({borderRadius:e.borderRadius})},aE={name:"Skeleton",common:j,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},sE={name:"Split",common:j},cE={name:"Equation",common:j,self:Up},dE={name:"FloatButtonGroup",common:j,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},uE={name:"Heatmap",common:j,self(e){return{...Wp(e),activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"}}},fE={name:"dark",common:j,Alert:$S,Anchor:BS,AutoComplete:ZS,Avatar:fh,AvatarGroup:KT,BackTop:ew,Badge:nw,Breadcrumb:fw,Button:Tt,ButtonGroup:a2,Calendar:YT,Card:Ch,Carousel:XT,Cascader:$w,Checkbox:Yr,Code:Ph,Collapse:Hw,CollapseTransition:ZT,ColorPicker:JT,DataTable:Vw,DatePicker:Xw,Descriptions:Qw,Dialog:Qh,Divider:UP,Drawer:KP,Dropdown:Xa,DynamicInput:YP,DynamicTags:QP,Element:o2,Empty:wr,Ellipsis:Wh,Equation:cE,Flex:n2,Form:d2,GradientText:u2,Heatmap:uE,Icon:Uw,IconWrapper:oE,Image:rE,Input:Dt,InputNumber:f2,InputOtp:p2,LegacyTransfer:nE,Layout:m2,List:b2,LoadingBar:vP,Log:v2,Menu:S2,Mention:C2,Message:SP,Modal:iP,Notification:MP,PageHeader:eE,Pagination:Bh,Popconfirm:T2,Popover:Er,Popselect:Rh,Progress:Pp,QrCode:lE,Radio:Oh,Rate:E2,Result:R2,Row:QT,Scrollbar:gt,Select:Mh,Skeleton:aE,Slider:I2,Space:pp,Spin:H2,Statistic:z2,Steps:k2,Switch:D2,Table:W2,Tabs:V2,Tag:th,Thing:U2,TimePicker:Kh,Timeline:q2,Tooltip:sl,Transfer:K2,Tree:Dp,TreeSelect:Y2,Typography:J2,Upload:eT,Watermark:tT,Split:sE,FloatButton:tE,FloatButtonGroup:dE,Marquee:iE},qp="lsr-appearance-mode",hE="lsr-appearance-change";function pE(){try{return localStorage.getItem(qp)==="classic"?"classic":"host"}catch{return"host"}}const hi=se(pE());function J_(e){hi.value=e;try{localStorage.setItem(qp,e)}catch{}window.dispatchEvent(new CustomEvent(hE,{detail:{mode:e}}))}const mE=Ae({__name:"App",setup(e){const t={common:{primaryColor:"#2DD4BF",primaryColorHover:"#5EEAD4",primaryColorPressed:"#14B8A6",primaryColorSuppl:"#2DD4BF",infoColor:"#7DD3FC",successColor:"#34D399",warningColor:"#FBBF24",errorColor:"#F87171",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#070b0f",cardColor:"#0f1720",modalColor:"#0f1720",popoverColor:"#111c26",tableColor:"#0f1720",inputColor:"rgba(7, 11, 15, 0.6)",borderColor:"rgba(148, 197, 214, 0.14)",dividerColor:"rgba(148, 197, 214, 0.12)",textColorBase:"#E8F2F6",textColor1:"#E8F2F6",textColor2:"#B7CBD5",textColor3:"#8BA3B0"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},o={common:{primaryColor:"#0D9488",primaryColorHover:"#14B8A6",primaryColorPressed:"#0F766E",primaryColorSuppl:"#0D9488",infoColor:"#0284C7",successColor:"#059669",warningColor:"#D97706",errorColor:"#DC2626",borderRadius:"10px",fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif',bodyColor:"#F5F7FA",cardColor:"#FFFFFF",modalColor:"#FFFFFF",popoverColor:"#FFFFFF",tableColor:"#FFFFFF",inputColor:"#FFFFFF",borderColor:"rgba(15, 23, 42, 0.12)",dividerColor:"rgba(15, 23, 42, 0.10)",textColorBase:"#1E293B",textColor1:"#1E293B",textColor2:"#475569",textColor3:"#64748B"},Button:{borderRadiusMedium:"9px",fontWeight:"600"},Card:{borderRadius:"14px"},Modal:{borderRadius:"16px"},Input:{borderRadius:"9px"},Tag:{borderRadius:"7px"}},r=se(null),n=se("zh-CN"),i=X(()=>hi.value==="classic"||r.value==="dark"),l=X(()=>i.value?fE:qT),a=X(()=>i.value?t:o),s=X(()=>n.value.toLowerCase().startsWith("en")),d=X(()=>hi.value==="classic"?Xs:s.value?Iv:Xs),c=X(()=>hi.value==="classic"?ec:s.value?VC:ec);Nt(i,g=>{document.documentElement.dataset.theme=g?"dark":"light"},{immediate:!0});let u,f;function h(g){try{sessionStorage.setItem("miniapp-opened-files",JSON.stringify(g))}catch{}const b=window.__DESKTOP_TOKEN__;fetch("/_miniapp/opened-file",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",...b?{"X-Desktop-Token":b}:{}},body:JSON.stringify(g)}).catch(()=>{}),window.location.hash="#/recordings"}function p(){u?.(),f?.(),u=void 0,f=void 0}return bo(()=>{const g=window.miniapp;g?.host?.ui?.subscribe&&(u=g.host.ui.subscribe(b=>{(b.theme==="light"||b.theme==="dark")&&(r.value=b.theme),b.language&&(n.value=b.language)})),g?.files?.subscribe&&(f=g.files.subscribe(b=>h(b))),window.addEventListener("pagehide",p)}),Gt(()=>{p(),window.removeEventListener("pagehide",p)}),(g,b)=>{const C=Mg("router-view");return k(),ae(Yt(Bw),{theme:l.value,"theme-overrides":a.value,locale:d.value,"date-locale":c.value},{default:so(()=>[je(Yt(AP),null,{default:so(()=>[je(Yt(bP),null,{default:so(()=>[je(Yt(VP),null,{default:so(()=>[je(C)]),_:1})]),_:1})]),_:1})]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}}),gE="modulepreload",bE=function(e){return"/app/"+e},ed={},ko=function(t,o,r){let n=Promise.resolve();if(o&&o.length>0){let s=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");n=s(o.map(d=>{if(d=bE(d),d in ed)return;ed[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":gE,c||(f.as="script"),f.crossOrigin="",f.href=d,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return n.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};const Hr=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const Fe=Object.assign;function Bl(e,t){const o={};for(const r in t){const n=t[r];o[r]=Zt(n)?n.map(e):e(n)}return o}const xn=()=>{},Zt=Array.isArray;function td(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}const Yp=/#/g,CE=/&/g,xE=/\//g,yE=/=/g,SE=/\?/g,Xp=/\+/g,wE=/%5B/g,PE=/%5D/g,Zp=/%5E/g,TE=/%60/g,Jp=/%7B/g,EE=/%7C/g,Qp=/%7D/g,_E=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(EE,"|").replace(wE,"[").replace(PE,"]")}function $E(e){return ts(e).replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function pa(e){return ts(e).replace(Xp,"%2B").replace(_E,"+").replace(Yp,"%23").replace(CE,"%26").replace(TE,"`").replace(Jp,"{").replace(Qp,"}").replace(Zp,"^")}function RE(e){return pa(e).replace(yE,"%3D")}function IE(e){return ts(e).replace(Yp,"%23").replace(SE,"%3F")}function AE(e){return IE(e).replace(xE,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const HE=/\/$/,ME=e=>e.replace(HE,"");function kl(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(r=t.slice(0,s),i=t.slice(s,a>0?a:t.length),n=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=kE(r??t,o),{fullPath:r+i+l,path:r,query:n,hash:Ln(l)}}function zE(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function od(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FE(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Lr(t.matched[r],o.matched[n])&&em(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function em(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!BE(e[o],t[o]))return!1;return!0}function BE(e,t){return Zt(e)?rd(e,t):Zt(t)?rd(t,e):e?.valueOf()===t?.valueOf()}function rd(e,t){return Zt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function kE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(l).join("/")}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ma=(function(e){return e.pop="pop",e.push="push",e})({}),Dl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function DE(e){if(!e)if(Hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const LE=/^[^#]+#/;function OE(e,t){return e.replace(LE,"#")+t}function WE(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const fl=()=>({left:window.scrollX,top:window.scrollY});function NE(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=WE(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const ga=new Map;function jE(e,t){ga.set(e,t)}function VE(e){const t=ga.get(e);return ga.delete(e),t}function GE(e){return typeof e=="string"||e&&typeof e=="object"}function tm(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const om=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function Or(e,t){return Fe(new Error,{type:e,[om]:!0},t)}function So(e,t){return e instanceof Error&&om in e&&(t==null||!!(e.type&t))}const UE=["params","query","hash"];function qE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of UE)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function KE(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&pa(n)):[r&&pa(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function YE(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=Zt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const XE=Symbol(""),ld=Symbol(""),hl=Symbol(""),os=Symbol(""),ba=Symbol("");function ln(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function No(e,t,o,r,n,i=l=>l()){const l=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((a,s)=>{const d=f=>{f===!1?s(Or(Ke.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):GE(f)?s(Or(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&r.enterCallbacks[n]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(r&&r.instances[n],t,o,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>s(f))})}function Ll(e,t,o,r,n=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(Kp(s)){const d=(s.__vccOpts||s)[t];d&&i.push(No(d,o,r,l,a,n))}else{let d=s();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=vE(c)?c.default:c;l.mods[a]=c,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&No(f,o,r,l,a,n)()}))}}return i}function ZE(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lLr(d,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(d=>Lr(d,s))||n.push(s))}return[o,r,n]}let JE=()=>location.protocol+"//"+location.host;function rm(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),od(a,"")}return od(o,e)+r+n}function QE(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const h=rm(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else r(h);n.forEach(C=>{C(o.value,p,{delta:b,type:ma.pop,direction:b?b>0?Dl.forward:Dl.back:Dl.unknown})})};function s(){l=o.value}function d(f){n.push(f);const h=()=>{const p=n.indexOf(f);p>-1&&n.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:fl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:d,destroy:u}}function ad(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?fl():null}}function e_(e){const{history:t,location:o}=window,r={value:rm(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,d,c){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:JE()+e+s;try{t[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(h){console.error(h),o[c?"replace":"assign"](f)}}function l(s,d){i(s,Fe({},t.state,ad(n.value.back,s,n.value.forward,!0),d,{position:n.value.position}),!0),r.value=s}function a(s,d){const c=Fe({},n.value,t.state,{forward:s,scroll:fl()});i(c.current,c,!0),i(s,Fe({},ad(r.value,s,null),{position:c.position+1},d),!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function t_(e){e=DE(e);const t=e_(e),o=QE(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=Fe({location:"",base:e,go:r,createHref:OE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function o_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),t_(e)}let dr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var tt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(tt||{});const r_={type:dr.Static,value:""},n_=/[a-zA-Z0-9_]/;function i_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${d}": ${h}`)}let o=tt.Static,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,d="",c="";function u(){d&&(o===tt.Static?i.push({type:dr.Static,value:d}):o===tt.Param||o===tt.ParamRegExp||o===tt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:dr.Param,value:d,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=s}for(;at.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function nm(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const d_={strict:!1,end:!0,sensitive:!1};function u_(e,t,o){const r=s_(i_(e.path),o),n=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function f_(e,t){const o=[],r=new Map;t=td(d_,t);function n(u){return r.get(u)}function i(u,f,h){const p=!h,g=ud(u);g.aliasOf=h&&h.record;const b=td(t,u),C=[g];if("alias"in u){const P=typeof u.alias=="string"?[u.alias]:u.alias;for(const A of P)C.push(ud(Fe({},g,{components:h?h.record.components:g.components,path:A,aliasOf:h?h.record:g})))}let y,T;for(const P of C){const{path:A}=P;if(f&&A[0]!=="/"){const M=f.record.path,v=M[M.length-1]==="/"?"":"/";P.path=f.record.path+(A&&v+A)}if(y=u_(P,f,b),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&u.name&&!fd(y)&&l(u.name)),im(y)&&s(y),g.children){const M=g.children;for(let v=0;v{l(T)}:xn}function l(u){if(tm(u)){const f=r.get(u);f&&(r.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=m_(u,o);o.splice(f,0,u),u.record.name&&!fd(u)&&r.set(u.record.name,u)}function d(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=Fe(dd(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&dd(u.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(T=>T.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?r.get(f.name):o.find(T=>T.re.test(f.path)),!h)throw Or(Ke.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=Fe({},f.params,u.params),g=h.stringify(p)}const C=[];let y=h;for(;y;)C.unshift(y.record),y=y.parent;return{name:b,path:g,params:p,matched:C,meta:p_(C)}}e.forEach(u=>i(u));function c(){o.length=0,r.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function dd(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function ud(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:h_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function h_(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function p_(e){return e.reduce((t,o)=>Fe(t,o.meta),{})}function m_(e,t){let o=0,r=t.length;for(;o!==r;){const i=o+r>>1;nm(e,t[i])<0?r=i:o=i+1}const n=g_(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function g_(e){let t=e;for(;t=t.parent;)if(im(t)&&nm(e,t)===0)return t}function im({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function hd(e){const t=De(hl),o=De(os),r=X(()=>{const s=Yt(e.to);return t.resolve(s)}),n=X(()=>{const{matched:s}=r.value,{length:d}=s,c=s[d-1],u=o.matched;if(!c||!u.length)return-1;const f=u.findIndex(Lr.bind(null,c));if(f>-1)return f;const h=pd(s[d-2]);return d>1&&pd(c)===h&&u[u.length-1].path!==h?u.findIndex(Lr.bind(null,s[d-2])):f}),i=X(()=>n.value>-1&&y_(o.params,r.value.params)),l=X(()=>n.value>-1&&n.value===o.matched.length-1&&em(o.params,r.value.params));function a(s={}){if(x_(s)){const d=t[Yt(e.replace)?"replace":"push"](Yt(e.to)).catch(xn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}function b_(e){return e.length===1?e[0]:e}const v_=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:hd,setup(e,{slots:t}){const o=xr(hd(e)),{options:r}=De(hl),n=X(()=>({[md(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[md(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&b_(t.default(o));return e.custom?i:Rt("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),C_=v_;function x_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y_(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!Zt(n)||n.length!==r.length||r.some((i,l)=>i.valueOf()!==n[l].valueOf()))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const md=(e,t,o)=>e??t??o,S_=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=De(ba),n=X(()=>e.route||r.value),i=De(ld,0),l=X(()=>{let d=Yt(i);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=X(()=>n.value.matched[l.value]);at(ld,X(()=>l.value+1)),at(XE,a),at(ba,n);const s=se();return Nt(()=>[s.value,a.value,e.name],([d,c,u],[f,h,p])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!Lr(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=n.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return gd(o.default,{Component:f,route:d});const h=u.props[c],p=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Rt(f,Fe({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return gd(o.default,{Component:b,route:d})||b}}});function gd(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const w_=S_;function P_(e){const t=f_(e.routes,e),o=e.parseQuery||KE,r=e.stringifyQuery||id,n=e.history,i=ln(),l=ln(),a=ln(),s=jd(Do);let d=Do;Hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bl.bind(null,z=>""+z),u=Bl.bind(null,AE),f=Bl.bind(null,Ln);function h(z,ee){let L,fe;return tm(z)?(L=t.getRecordMatcher(z),fe=ee):fe=z,t.addRoute(fe,L)}function p(z){const ee=t.getRecordMatcher(z);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(z=>z.record)}function b(z){return!!t.getRecordMatcher(z)}function C(z,ee){if(ee=Fe({},ee||s.value),typeof z=="string"){const E=kl(o,z,ee.path),R=t.resolve({path:E.path},ee),B=n.createHref(E.fullPath);return Fe(E,R,{params:f(R.params),hash:Ln(E.hash),redirectedFrom:void 0,href:B})}let L;if(z.path!=null)L=Fe({},z,{path:kl(o,z.path,ee.path).path});else{const E=Fe({},z.params);for(const R in E)E[R]==null&&delete E[R];L=Fe({},z,{params:u(E)}),ee.params=u(ee.params)}const fe=t.resolve(L,ee),m=z.hash||"";fe.params=c(f(fe.params));const x=zE(r,Fe({},z,{hash:$E(m),path:fe.path})),S=n.createHref(x);return Fe({fullPath:x,hash:m,query:r===id?YE(z.query):z.query||{}},fe,{redirectedFrom:void 0,href:S})}function y(z){return typeof z=="string"?kl(o,z,s.value.path):Fe({},z)}function T(z,ee){if(d!==z)return Or(Ke.NAVIGATION_CANCELLED,{from:ee,to:z})}function P(z){return v(z)}function A(z){return P(Fe(y(z),{replace:!0}))}function M(z,ee){const L=z.matched[z.matched.length-1];if(L&&L.redirect){const{redirect:fe}=L;let m=typeof fe=="function"?fe(z,ee):fe;return typeof m=="string"&&(m=m.includes("?")||m.includes("#")?m=y(m):{path:m},m.params={}),Fe({query:z.query,hash:z.hash,params:m.path!=null?{}:z.params},m)}}function v(z,ee){const L=d=C(z),fe=s.value,m=z.state,x=z.force,S=z.replace===!0,E=M(L,fe);if(E)return v(Fe(y(E),{state:typeof E=="object"?Fe({},m,E.state):m,force:x,replace:S}),ee||L);const R=L;R.redirectedFrom=ee;let B;return!x&&FE(r,fe,L)&&(B=Or(Ke.NAVIGATION_DUPLICATED,{to:R,from:fe}),Le(fe,fe,!0,!1)),(B?Promise.resolve(B):H(R,fe)).catch(W=>So(W)?So(W,Ke.NAVIGATION_GUARD_REDIRECT)?W:$e(W):ue(W,R,fe)).then(W=>{if(W){if(So(W,Ke.NAVIGATION_GUARD_REDIRECT))return v(Fe({replace:S},y(W.to),{state:typeof W.to=="object"?Fe({},m,W.to.state):m,force:x}),ee||R)}else W=$(R,fe,!0,S,m);return O(R,fe,W),W})}function w(z,ee){const L=T(z,ee);return L?Promise.reject(L):Promise.resolve()}function _(z){const ee=Je.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(z):z()}function H(z,ee){let L;const[fe,m,x]=ZE(z,ee);L=Ll(fe.reverse(),"beforeRouteLeave",z,ee);for(const E of fe)E.leaveGuards.forEach(R=>{L.push(No(R,z,ee))});const S=w.bind(null,z,ee);return L.push(S),Se(L).then(()=>{L=[];for(const E of i.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).then(()=>{L=Ll(m,"beforeRouteUpdate",z,ee);for(const E of m)E.updateGuards.forEach(R=>{L.push(No(R,z,ee))});return L.push(S),Se(L)}).then(()=>{L=[];for(const E of x)if(E.beforeEnter)if(Zt(E.beforeEnter))for(const R of E.beforeEnter)L.push(No(R,z,ee));else L.push(No(E.beforeEnter,z,ee));return L.push(S),Se(L)}).then(()=>(z.matched.forEach(E=>E.enterCallbacks={}),L=Ll(x,"beforeRouteEnter",z,ee,_),L.push(S),Se(L))).then(()=>{L=[];for(const E of l.list())L.push(No(E,z,ee));return L.push(S),Se(L)}).catch(E=>So(E,Ke.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function O(z,ee,L){a.list().forEach(fe=>_(()=>fe(z,ee,L)))}function $(z,ee,L,fe,m){const x=T(z,ee);if(x)return x;const S=ee===Do,E=Hr?history.state:{};L&&(fe||S?n.replace(z.fullPath,Fe({scroll:S&&E&&E.scroll},m)):n.push(z.fullPath,m)),s.value=z,Le(z,ee,L,S),$e()}let K;function ie(){K||(K=n.listen((z,ee,L)=>{if(!vt.listening)return;const fe=C(z),m=M(fe,vt.currentRoute.value);if(m){v(Fe(m,{replace:!0,force:!0}),fe).catch(xn);return}d=fe;const x=s.value;Hr&&jE(nd(x.fullPath,L.delta),fl()),H(fe,x).catch(S=>So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?S:So(S,Ke.NAVIGATION_GUARD_REDIRECT)?(v(Fe(y(S.to),{force:!0}),fe).then(E=>{So(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ma.pop&&n.go(-1,!1)}).catch(xn),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ue(S,fe,x))).then(S=>{S=S||$(fe,x,!1),S&&(L.delta&&!So(S,Ke.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===ma.pop&&So(S,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),O(fe,x,S)}).catch(xn)}))}let be=ln(),ce=ln(),J;function ue(z,ee,L){$e(z);const fe=ce.list();return fe.length?fe.forEach(m=>m(z,ee,L)):console.error(z),Promise.reject(z)}function He(){return J&&s.value!==Do?Promise.resolve():new Promise((z,ee)=>{be.add([z,ee])})}function $e(z){return J||(J=!z,ie(),be.list().forEach(([ee,L])=>z?L(z):ee()),be.reset()),z}function Le(z,ee,L,fe){const{scrollBehavior:m}=e;if(!Hr||!m)return Promise.resolve();const x=!L&&VE(nd(z.fullPath,0))||(fe||!L)&&history.state&&history.state.scroll||null;return gr().then(()=>m(z,ee,x)).then(S=>S&&NE(S)).catch(S=>ue(S,z,ee))}const ke=z=>n.go(z);let nt;const Je=new Set,vt={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:C,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:ce.add,isReady:He,install(z){z.component("RouterLink",C_),z.component("RouterView",w_),z.config.globalProperties.$router=vt,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Yt(s)}),Hr&&!nt&&s.value===Do&&(nt=!0,P(n.location).catch(fe=>{}));const ee={};for(const fe in Do)Object.defineProperty(ee,fe,{get:()=>s.value[fe],enumerable:!0});z.provide(hl,vt),z.provide(os,Nd(ee)),z.provide(ba,s);const L=z.unmount;Je.add(z),z.unmount=function(){Je.delete(z),Je.size<1&&(d=Do,K&&K(),K=null,s.value=Do,nt=!1,J=!1),L()}}};function Se(z){return z.reduce((ee,L)=>ee.then(()=>_(L)),Promise.resolve())}return vt}function Q_(){return De(hl)}function e$(e){return De(os)}const T_="X-Desktop-Token",E_="x-biliup-auth",__="desktop-token",$_="X-MiniApp-Proxy";function R_(){return typeof window>"u"?!1:(window.__DESKTOP_TOKEN__??"")!==""}function rs(){const e=window.__DESKTOP_TOKEN__;return e?{[T_]:e}:{}}function ns(e){return typeof window>"u"||typeof window.miniapp>"u"?!1:e.status===401&&!e.headers.has($_)}function lm(e){return e.status===401&&e.headers.get(E_)===__}function is(e){return lm(e)||e.status===401&&R_()}function am(e,t,o="/live",r="/login"){if(typeof e!="string"||e===""||e.startsWith("//"))return o;let n;try{n=new URL(e,t)}catch{return o}return n.origin!==new URL(t).origin||n.pathname===r?o:`${n.pathname}${n.search}${n.hash}`}const ls="";class Go extends Error{status;authSource;constructor(t,o,r){super(o),this.status=t,this.authSource=r}}function I_(){if(window.location.hash.startsWith("#/login"))return;const e=window.location.hash.replace(/^#/,"")||"/live",t=am(e,window.location.origin);window.location.hash=`#/login?next=${encodeURIComponent(t)}`}function bd(e){const t=e?`#/service-error?reason=${encodeURIComponent(e)}`:"#/service-error";window.location.hash!==t&&(window.location.hash=t)}async function pl(e,t={}){const o=new Headers(t.headers);for(const[i,l]of Object.entries(rs()))o.set(i,l);t.body&&!o.has("Content-Type")&&o.set("Content-Type","application/json; charset=utf-8");const r=await fetch(ls+e,{credentials:"include",...t,headers:o});if(r.status===401){if(ns(r))throw bd("host-expired"),new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(r))throw bd(),new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");z_(),I_();const i=await r.clone().text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(401,l||"登录已失效","session")}if(!r.ok){const i=await r.text().catch(()=>"");let l=i.trim();try{const a=JSON.parse(i);l=a.message??a.error??l}catch{}throw new Go(r.status,l||`HTTP ${r.status}`)}if(r.status===204)return;const n=await r.text();if(n)try{return JSON.parse(n)}catch{return n}}const A_=e=>pl(e),as=(e,t)=>pl(e,{method:"POST",body:t===void 0?void 0:JSON.stringify(t)}),t$=(e,t)=>pl(e,{method:"PUT",body:t===void 0?void 0:JSON.stringify(t)}),o$=e=>pl(e,{method:"DELETE"});async function r$(){let e;try{e=await fetch(`${ls}/v1/me`,{credentials:"include",headers:rs()})}catch{return"network"}return e.ok?"ok":e.status===401?ns(e)?"host-expired":lm(e)||is(e)?"desktop-token":"session":"network"}const H_=()=>A_("/v1/me");async function n$(){const e=await fetch(`${ls}/v1/users/biliup`,{credentials:"include",headers:rs()});if(e.status===404)return!1;if(ns(e))throw new Go(401,"连接凭据已更新,请刷新页面","host-expired");if(is(e))throw new Go(401,"桌面服务令牌无效,请重启客户端","desktop-token");if(e.status!==200&&e.status!==401)throw new Go(e.status,`无法确认管理员状态(HTTP ${e.status})`);return!0}const i$=(e,t,o=!0)=>as("/v1/users/login",{username:e,password:t,remember:o}),l$=(e,t)=>as("/v1/users/register",{username:e,password:t}),M_=()=>as("/v1/logout"),rr=se(null),Ol=se(!1);let pi=!1;function z_(){rr.value=null,pi=!1}function F_(){async function e(o=!1){if(pi&&!o&&rr.value)return rr.value;Ol.value=!0;try{return rr.value=await H_(),pi=!0,rr.value}finally{Ol.value=!1}}async function t(){try{await M_()}finally{rr.value=null,pi=!1,window.location.hash="#/login"}}return{me:rr,loading:Ol,loadMe:e,signOut:t}}const B_=[{path:"/login",name:"login",component:()=>ko(()=>import("./LoginView-DFTjbjn3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),meta:{public:!0}},{path:"/service-error",name:"service-error",component:()=>ko(()=>import("./ServiceErrorView-L-sskm9b.js"),__vite__mapDeps([8,4,9,10])),meta:{public:!0}},{path:"/",component:()=>ko(()=>import("./AppShell-DH1IaDgc.js"),__vite__mapDeps([11,12,13,4,2,14,15,16,17,3,6,18,19,20,21,22])),children:[{path:"",redirect:"/live"},{path:"live",name:"live",component:()=>ko(()=>import("./StreamersView-B415Ci4w.js"),__vite__mapDeps([23,1,2,4,24,13,5,25,26,12,27,17,14,28,29,30,3,15,18,9,31,32]))},{path:"recordings",name:"recordings",component:()=>ko(()=>import("./RecordingsView-CS8l23Jb.js"),__vite__mapDeps([33,27,13,4,2,1,25,26,5,14,28,15,19,34,9,31,35]))},{path:"relay",name:"relay",component:()=>ko(()=>import("./RelayView-h5lf4-Vn.js"),__vite__mapDeps([36,27,13,4,2,1,24,29,37,14,28,9,20,38]))},{path:"shortvideo",name:"shortvideo",component:()=>ko(()=>import("./ShortVideoView-Cq5T4anl.js"),__vite__mapDeps([39,27,13,4,2,1,3,5,28,21,31,18,34,9,40]))},{path:"settings",name:"settings",component:()=>ko(()=>import("./SettingsView-CJoqn3Jp.js"),__vite__mapDeps([41,1,2,27,13,4,24,37,5,16,17,30,15,18,9,42]))}]},{path:"/:pathMatch(.*)*",redirect:"/live"}],sm=P_({history:o_(),routes:B_});function vd(e){const t={path:"/login",query:{next:e.fullPath}};return t.query.next=am(t.query.next,window.location.origin),t}sm.beforeEach(async e=>{if(e.meta.public)return!0;try{const{me:t,loadMe:o}=F_();if(await o(),t.value)return!0}catch(t){return t instanceof Go&&t.status===401?t.authSource==="host-expired"?{path:"/service-error",query:{reason:"host-expired"}}:t.authSource==="desktop-token"?"/service-error":vd(e):!0}return vd(e)});iv(mE).use(sm).mount("#app");export{Y_ as $,Gt as A,fa as B,D_ as C,mr as D,k_ as E,Te as F,Df as G,yr as H,po as I,xr as J,St as K,Nt as L,rt as M,Ur as N,j_ as O,le as P,Bt as Q,te as R,Rt as S,br as T,Ht as U,Tf as V,De as W,H1 as X,ca as Y,at as Z,zn as _,Pe as a,Wr as a$,I1 as a0,R1 as a1,oe as a2,JS as a3,D as a4,oa as a5,ne as a6,re as a7,Pt as a8,kn as a9,Fh as aA,Gl as aB,ks as aC,ll as aD,Bn as aE,xS as aF,G_ as aG,tw as aH,U1 as aI,Zo as aJ,jf as aK,X1 as aL,Nf as aM,aP as aN,Rw as aO,Y1 as aP,qP as aQ,al as aR,Xy as aS,R_ as aT,zg as aU,t$ as aV,ls as aW,rs as aX,ns as aY,is as aZ,o$ as a_,Mo as aa,Ya as ab,Pr as ac,cr as ad,uo as ae,Ce as af,Kn as ag,Ai as ah,Ze as ai,qr as aj,mp as ak,V_ as al,gc as am,Go as an,A_ as ao,as as ap,hP as aq,cl as ar,tl as as,Ih as at,gr as au,Ka as av,jc as aw,Gi as ax,wc as ay,il as az,bo as b,ff as b$,c2 as b0,Kt as b1,nl as b2,Nc as b3,Hi as b4,ja as b5,Wa as b6,Na as b7,An as b8,wp as b9,Lc as bA,Gn as bB,Tc as bC,qa as bD,Da as bE,Z_ as bF,Hh as bG,Yo as bH,Iv as bI,VC as bJ,qn as bK,rl as bL,q_ as bM,KS as bN,Lt as bO,Fa as bP,Nr as bQ,T0 as bR,nf as bS,ka as bT,P0 as bU,$i as bV,tx as bW,Vr as bX,ey as bY,Vn as bZ,dx as b_,Mi as ba,Ku as bb,Rv as bc,DS as bd,Va as be,Kr as bf,hi as bg,J_ as bh,hT as bi,Io as bj,X_ as bk,eP as bl,j1 as bm,sh as bn,BT as bo,i1 as bp,US as bq,A2 as br,zo as bs,Oc as bt,ol as bu,iu as bv,lu as bw,oh as bx,jo as by,Wc as bz,pe as c,Dr as c0,Ji as c1,pc as c2,sf as c3,Gr as c4,df as c5,jr as c6,Sr as c7,rf as c8,of as c9,ra as ca,tf as cb,Uy as cc,ox as cd,Lf as ce,_c as cf,K_ as cg,Tv as ch,N_ as ci,Tr as cj,U_ as ck,go as cl,Nn as cm,wP as cn,Gw as co,Ae as d,je as e,$n as f,db as g,O_ as h,ae as i,X as j,e$ as k,Q_ as l,l$ as m,Be as n,k as o,i$ as p,F_ as q,se as r,am as s,Om as t,Yt as u,n$ as v,so as w,r$ as x,L_ as y,Mg as z}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-BpUYLHe6.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-D5Y-fBfU.js similarity index 90% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-BpUYLHe6.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-D5Y-fBfU.js index ad9f7444..b1494c8e 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-BpUYLHe6.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/streamers-D5Y-fBfU.js @@ -1,2 +1,2 @@ -import{ao as a,aV as t,ap as r,a_ as i}from"./index-W7SBB4Eq.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` +import{ao as a,aV as t,ap as r,a_ as i}from"./index-Bmcyfv7z.js";const o=()=>a("/v1/streamers"),c=()=>a("/v1/overview"),l=()=>a("/v1/streamers/capabilities");function v(s){return s.kind==="capability_unavailable"?"平台能力不可用":"查询失败"}function m(s){const e=[s.message];return s.hint&&e.push(`建议:${s.hint}`),e.push(`已连续失败 ${s.failures} 次,约每 ${s.retry_in_secs} 秒重试一次`),e.join(` `)}const p=s=>r("/v1/streamers",s),u=s=>t("/v1/streamers",s),d=s=>i(`/v1/streamers/${s}`),g=s=>t(`/v1/streamers/${s}/pause`),$=s=>`/v1/streamers/${s}/cover`;export{m as a,p as b,$ as c,o as d,d as e,c as g,l,v as p,g as t,u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D8hAoj1z.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CSVBov8c.js similarity index 76% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D8hAoj1z.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CSVBov8c.js index 38ad0d3c..a617fea6 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-D8hAoj1z.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-compitable-CSVBov8c.js @@ -1 +1 @@ -import{L as f,j as e}from"./index-W7SBB4Eq.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; +import{L as f,j as e}from"./index-Bmcyfv7z.js";function a(u,n){return f(u,r=>{r!==void 0&&(n.value=r)}),e(()=>u.value===void 0?n.value:u.value)}function t(u,n){return e(()=>{for(const r of n)if(u[r]!==void 0)return u[r];return u[n[n.length-1]]})}export{t as a,a as u}; diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DkYn5b6o.js b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-BaVpnNbE.js similarity index 99% rename from plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DkYn5b6o.js rename to plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-BaVpnNbE.js index 4efb09df..42d475f8 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-DkYn5b6o.js +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/assets/use-message-BaVpnNbE.js @@ -1,4 +1,4 @@ -import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b1 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-W7SBB4Eq.js";import{f as Oe}from"./_plugin-vue_export-helper-B_0nS7Wj.js";import{u as Mn,a as An}from"./use-compitable-D8hAoj1z.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` +import{bP as ye,bQ as $e,bR as Nt,bS as Wt,bT as Ne,bU as kt,bV as K,bW as pt,bX as We,bY as Ht,bZ as vt,b_ as te,b$ as Ie,c0 as Ge,c1 as Xt,c2 as Ve,c3 as je,c4 as ge,c5 as Kt,c6 as Ze,c7 as Yt,c8 as Ut,c9 as Gt,ca as Vt,cb as jt,cc as Zt,cd as qt,O as gt,b as ke,A as ue,ce as Qt,W as F,a0 as mt,a1 as wt,X as bt,Y as le,r as P,K as J,M as G,d as de,cf as Jt,Z as ae,a$ as Rt,aB as xe,cg as qe,ch as en,S as V,aP as yt,aL as tn,bu as nn,L as re,au as rn,ae as j,aM as $t,a4 as H,a2 as D,a5 as Me,a7 as Ae,a6 as me,ci as on,a8 as He,o as B,i as oe,V as an,T as sn,aa as ln,cj as un,aj as dn,ax as xt,ac as fn,j as ie,bm as Qe,aF as cn,Q as hn,c as U,R as Y,b1 as Ce,n as q,P as Q,F as pn,$ as vn,aI as Je,aC as gn,a as mn,bE as Re,ck as wn,cl as bn,cm as yn,ad as ce,a9 as $n,aS as xn,cn as Sn}from"./index-Bmcyfv7z.js";import{f as Oe}from"./_plugin-vue_export-helper-DdbJvs3T.js";import{u as Mn,a as An}from"./use-compitable-CSVBov8c.js";var ze=ye($e,"WeakMap"),Cn=Nt(Object.keys,Object),On=Object.prototype,En=On.hasOwnProperty;function _n(e){if(!Wt(e))return Cn(e);var t=[];for(var n in Object(e))En.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return Ne(e)?kt(e):_n(e)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pt(e)?!0:Pn.test(e)||!Bn.test(e)||t!=null&&e in Object(t)}var Tn="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ye.Cache||We),n}Ye.Cache=We;var In=500;function zn(e){var t=Ye(e,function(r){return n.size===In&&n.clear(),r}),n=t.cache;return t}var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ln,function(n,r,o,a){t.push(o?a.replace(Dn,"$1"):r||n)}),t});function St(e,t){return K(e)?e:Ke(e,t)?[e]:Fn(Ht(e))}function Se(e){if(typeof e=="string"||pt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mt(e,t){t=St(t,e);for(var n=0,r=t.length;e!=null&&nu))return!1;var w=a.get(e),p=a.get(t);if(w&&p)return w==t&&p==e;var m=-1,l=!0,f=n&or?new we:void 0;for(a.set(e,t),a.set(t,e);++me(...Et.get(e))),be=[]}function Zr(e,...t){Et.set(e,t),!be.includes(e)&&be.push(e)===1&&requestAnimationFrame(jr)}const Oo=gt("n-internal-select-menu"),qr=gt("n-internal-select-menu-body");let R,se;const Qr=()=>{var e,t;R=Qt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,R!==void 0?R.then(()=>{se=!0}):se=!0};Qr();function Jr(e){if(se)return;let t=!1;ke(()=>{se||R?.then(()=>{t||e()})}),ue(()=>{t=!0})}const _t="__disabled__";function ee(e){const t=F(mt,null),n=F(wt,null),r=F(bt,null),o=F(qr,null),a=P();if(typeof document<"u"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};ke(()=>{J("fullscreenchange",document,i)}),ue(()=>{G("fullscreenchange",document,i)})}return le(()=>{const{to:i}=e;return i!==void 0?i===!1?_t:i===!0?a.value||"body":i:t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:i??(a.value||"body")})}ee.tdkey=_t;ee.propTo={type:[String,Object,Boolean],default:void 0};let _e;function Rr(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}let k=null;function Bt(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function eo(e,t){const n=Bt();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Be(e){const t=e.getBoundingClientRect(),n=Bt();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function to(e){return e.nodeType===9?null:e.parentNode}function Pt(e){if(e===null)return null;const t=to(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Pt(t)}const no=de({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=Rt())===null||t===void 0?void 0:t.proxy);const n=F("VBinder",null),r=P(null),o=d=>{r.value=d,n&&e.syncTargetWithParent&&n.setTargetRef(d)};let a=[];const i=()=>{let d=r.value;for(;d=Pt(d),d!==null;)a.push(d);for(const $ of a)J("scroll",$,m,!0)},u=()=>{for(const d of a)G("scroll",d,m,!0);a=[]},s=new Set,w=d=>{s.size===0&&i(),s.has(d)||s.add(d)},p=d=>{s.has(d)&&s.delete(d),s.size===0&&u()},m=()=>{Zr(l)},l=()=>{s.forEach(d=>d())},f=new Set,v=d=>{f.size===0&&J("resize",window,b),f.has(d)||f.add(d)},c=d=>{f.has(d)&&f.delete(d),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(d=>d())};return ue(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:w,removeScrollListener:p,addResizeListener:v,removeResizeListener:c}},render(){return Jt("binder",this.$slots)}}),ro=de({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=F("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xe(qe("follower",this.$slots),[[t]]):qe("follower",this.$slots)}}),Z="@@mmoContext",oo={mounted(e,{value:t}){e[Z]={handler:void 0},typeof t=="function"&&(e[Z].handler=t,J("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Z];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,J("mousemoveoutside",e,t)):(e[Z].handler=t,J("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Z];t&&G("mousemoveoutside",e,t),e[Z].handler=void 0}},{c:pe}=en(),ao="vueuc-style",ve={top:"bottom",bottom:"top",left:"right",right:"left"},ft={start:"end",center:"center",end:"start"},Pe={top:"height",bottom:"height",left:"width",right:"width"},io={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},so={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lo={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ct={top:!0,bottom:!1,left:!0,right:!1},ht={top:"end",bottom:"start",left:"end",right:"start"};function uo(e,t,n,r,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,u]=e.split("-");let s=u??"center",w={top:0,left:0};const p=(f,v,c)=>{let b=0,d=0;const $=n[f]-t[v]-t[f];return $>0&&r&&(c?d=ct[v]?$:-$:b=ct[v]?$:-$),{left:b,top:d}},m=i==="left"||i==="right";if(s!=="center"){const f=lo[e],v=ve[f],c=Pe[f];if(n[c]>t[c]){if(t[f]+t[c]t[v]&&(s=ft[u])}else{const f=i==="bottom"||i==="top"?"left":"top",v=ve[f],c=Pe[f],b=(n[c]-t[c])/2;(t[f]t[v]?(s=ht[f],w=p(c,f,m)):(s=ht[v],w=p(c,v,m)))}let l=i;return t[i] *",{pointerEvents:"all"})])]),po=de({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=F("VBinder"),n=le(()=>e.enabled!==void 0?e.enabled:e.show),r=P(null),o=P(null),a=()=>{const{syncTrigger:l}=e;l.includes("scroll")&&t.addScrollListener(s),l.includes("resize")&&t.addResizeListener(s)},i=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ke(()=>{n.value&&(s(),a())});const u=nn();ho.mount({id:"vueuc/binder",head:!0,anchorMetaName:ao,ssr:u}),ue(()=>{i()}),Jr(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const l=r.value;if(l===null)return;const f=t.targetRef,{x:v,y:c,overlap:b}=e,d=v!==void 0&&c!==void 0?eo(v,c):Be(f);l.style.setProperty("--v-target-width",`${Math.round(d.width)}px`),l.style.setProperty("--v-target-height",`${Math.round(d.height)}px`);const{width:$,minWidth:T,placement:O,internalShift:I,flip:N}=e;l.setAttribute("v-placement",O),b?l.setAttribute("v-overlap",""):l.removeAttribute("v-overlap");const{style:z}=l;$==="target"?z.width=`${d.width}px`:$!==void 0?z.width=$:z.width="",T==="target"?z.minWidth=`${d.width}px`:T!==void 0?z.minWidth=T:z.minWidth="";const ne=Be(l),y=Be(o.value),{left:S,top:g,placement:C}=uo(O,d,ne,I,N,b),W=fo(C,b),{left:h,top:A,transform:M}=co(C,y,d,g,S,b);l.setAttribute("v-placement",C),l.style.setProperty("--v-offset-left",`${Math.round(S)}px`),l.style.setProperty("--v-offset-top",`${Math.round(g)}px`),l.style.transform=`translateX(${h}) translateY(${A}) ${M}`,l.style.setProperty("--v-transform-origin",W),l.style.transformOrigin=W};re(n,l=>{l?(a(),w()):i()});const w=()=>{rn().then(s).catch(l=>console.error(l))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(l=>{re(j(e,l),s)}),["teleportDisabled"].forEach(l=>{re(j(e,l),w)}),re(j(e,"syncTrigger"),l=>{l.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),l.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const p=$t(),m=le(()=>{const{to:l}=e;if(l!==void 0)return l;p.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:s}},render(){return V(tn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=V("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[V("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xe(n,[[yt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Te={top:"bottom",bottom:"top",left:"right",right:"left"},x="var(--n-arrow-height) * 1.414";var vo=H([D("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html index fc33e394..ac660d85 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/client/index.html @@ -5,7 +5,7 @@ Live Stream Recorder - + From d716e6b563a340b2cb8900d68270b68f68cbd139 Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 15:59:33 +0800 Subject: [PATCH 09/10] =?UTF-8?q?fix(live-stream-recorder):=20=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E6=A0=B9=20README=20=E6=96=87=E6=A1=88=E4=B8=8E?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9B=AE=E5=BD=95=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根 README.md / README.zh-CN.md:Live Stream Recorder 表格行改为「引擎在你同意后 按需下载」,不含第三方引擎产品名;其余行列一字未动。 - 包内 README.md / README.zh-CN.md 的 State location:写明持久配置在宿主 dataDir, 独立启动落到包内 .data/,且无环境变量可改写这两处位置。 - 包内 miniapp/node/server.mjs(构建产物副本):与源同步,去掉 AMOEBA_PLUGIN_ROOT 覆盖,逐字节一致。 社区 npm run check:本包 0 errors / 2 warnings(即约定保留的 /__mavis/ 404 守卫与 net 探端口两条);全局 tests 115 / pass 113 / fail 0 / skipped 2。 仅本地提交,未推送、未建 PR、未 rebase/merge main。 --- README.md | 2 +- README.zh-CN.md | 2 +- plugins/charlesnty612/live-stream-recorder/README.md | 2 +- plugins/charlesnty612/live-stream-recorder/README.zh-CN.md | 2 +- .../live-stream-recorder/miniapp/node/server.mjs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index abe92dd2..51473b8b 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques | MiniApp | What it does | Author | | --- | --- | --- | -| [Live Stream Recorder](plugins/charlesnty612/live-stream-recorder/) | A native workbench for multi-platform livestream recording, danmaku analysis and highlight clipping; requires a user-supplied biliup engine | [charlesnty612](https://github.com/charlesnty612) | +| [Live Stream Recorder](plugins/charlesnty612/live-stream-recorder/) | A native workbench for multi-platform livestream recording, danmaku analysis and highlight clipping; the recording engine is downloaded on demand after you agree | [charlesnty612](https://github.com/charlesnty612) | | [Work Group](plugins/liuhaolin07/miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8/) | A chat-style work group where several MiniMax Code Agents reply in one thread, mention each other to hand work over, and ask you for tool approvals and answers as cards in the page | [liuhaolin07](https://github.com/liuhaolin07) | | [Prompt Enhancer](plugins/skypata/prompt-enhancer/) | Rewrite a one-line request into a complete prompt for a coding assistant; the model list and reasoning levels come from MiniMax Code's own configuration, and the rewrite runs on your signed-in account | [skypata](https://github.com/skypata) | | [Postman Lite](plugins/ssugarr/postman-lite/) | A lightweight local API request tool: build requests, send them through a local proxy that sidesteps browser CORS limits, and inspect responses, with collections kept as plain JSON | [ssugarr](https://github.com/ssugarr) | diff --git a/README.zh-CN.md b/README.zh-CN.md index 012c991f..21eebf9b 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -57,7 +57,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求 | MiniApp | 功能 | 作者 | | --- | --- | --- | -| [Live Stream Recorder](plugins/charlesnty612/live-stream-recorder/) | 多平台直播录制、弹幕分析与高能切片原生工作台;需自备 biliup 录制引擎 | [charlesnty612](https://github.com/charlesnty612) | +| [Live Stream Recorder](plugins/charlesnty612/live-stream-recorder/) | 多平台直播录制、弹幕分析与高能切片原生工作台;录制引擎在你同意后按需下载 | [charlesnty612](https://github.com/charlesnty612) | | [工作群](plugins/liuhaolin07/miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8/README.zh-CN.md) | 聊天式工作群:多个 MiniMax Code Agent 在同一个群里回复、互相 @ 接力,工具审批和提问以卡片形式在页面里完成 | [liuhaolin07](https://github.com/liuhaolin07) | | [提示词增强器](plugins/skypata/prompt-enhancer/) | 把一句话改写成可以直接交给编码助手的完整提示词,模型清单与推理等级取自 MiniMax Code 自己的配置,改写走你已登录的账号 | [skypata](https://github.com/skypata) | | [Postman Lite](plugins/ssugarr/postman-lite/README.zh-CN.md) | 轻量的本地 API 请求工具:构建请求、通过本地代理转发(绕过浏览器 CORS 限制)、查看响应,集合以纯 JSON 保存 | [ssugarr](https://github.com/ssugarr) | diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md index e33065ee..46e73043 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.md +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -39,7 +39,7 @@ Optional external transcoding and stream-download tools are used by the recordin - **Tools / Connectors:** none. `apps`, `mcpServers`, `skills`, and every `permissions` grant except `device.notifications` are empty. - **Microphone / camera / Host navigation:** none. - **Notifications:** yes. The Settings page reads `Notification.permission` and calls `Notification.requestPermission()` when you click "Enable system notifications"; this is declared as `permissions.device: ["notifications"]`. Delivery of livestream events depends on a running engine and was not verified. -- **State location:** durable config in `context.dataDir/miniapp-config.json`; opened-file tokens live in memory only and are cleared on dispose. No other state is written outside the Host-provided data directory. +- **State location:** durable config in `context.dataDir/miniapp-config.json`; opened-file tokens live in memory only and are cleared on dispose. When the Host provides no data directory (standalone start), config falls back to `.data/` inside the package directory. No other state is written anywhere, and no environment variable can change these locations. ## Third-party notices diff --git a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md index 9a3f7f61..ff8b6b9c 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md +++ b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md @@ -39,7 +39,7 @@ - **工具 / Connector**:无。`apps`、`mcpServers`、`skills` 以及除 `device.notifications` 外的所有 `permissions` 授权均为空。 - **麦克风 / 摄像头 / 宿主导航读取**:无。 - **通知**:有。设置页读取 `Notification.permission`,点击"开启系统通知"时调用 `Notification.requestPermission()`;已声明为 `permissions.device: ["notifications"]`。直播事件的实际送达依赖运行中的引擎,未验证。 -- **状态存放位置**:持久配置在 `context.dataDir/miniapp-config.json`;打开文件的 token 只存在内存中,dispose 时清空。宿主提供的数据目录之外不写入其它状态。 +- **状态存放位置**:持久配置在 `context.dataDir/miniapp-config.json`;打开文件的 token 只存在内存中,dispose 时清空。宿主未提供数据目录(独立启动)时回落到包目录内的 `.data/`;除此之外不写入任何其它状态,也没有任何环境变量能改写这些位置。 ## 第三方声明 diff --git a/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs b/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs index 62c6c981..f1823e06 100644 --- a/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs +++ b/plugins/charlesnty612/live-stream-recorder/miniapp/node/server.mjs @@ -10,8 +10,8 @@ import { createEngineDownloader } from './engine.mjs'; import { createProxy } from './proxy.mjs'; const HERE = dirname(fileURLToPath(import.meta.url)); -// 插件根 = miniapp/node/ 的上两级;优先用宿主提供的 pluginRoot/dataDir。 -const PLUGIN_ROOT = process.env.AMOEBA_PLUGIN_ROOT || join(HERE, '..', '..'); +// 插件根 = miniapp/node/ 的上两级,仅由文件位置推导;数据目录优先用宿主提供的 context.dataDir。 +const PLUGIN_ROOT = join(HERE, '..', '..'); const CLIENT_ROOT = join(HERE, '..', 'client'); function normalizeListen(listen) { From 122405776bed9ca93203f3392f65af1ac4a5d338 Mon Sep 17 00:00:00 2001 From: charlesnty612 Date: Sun, 6 Dec 2026 16:26:51 +0800 Subject: [PATCH 10/10] docs(live-stream-recorder): state the producing model in package READMEs --- plugins/charlesnty612/live-stream-recorder/README.md | 5 +++++ plugins/charlesnty612/live-stream-recorder/README.zh-CN.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/plugins/charlesnty612/live-stream-recorder/README.md b/plugins/charlesnty612/live-stream-recorder/README.md index 46e73043..c9049db2 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.md +++ b/plugins/charlesnty612/live-stream-recorder/README.md @@ -59,3 +59,8 @@ The recording engine that is downloaded on demand links the following third-part - Copyright: Copyright (c) 2026 Błażej Kustra and Uncut contributors The recording engine is downloaded on demand instead of being shipped inside this package. When the Mini App detects that the engine is missing, it asks whether to download it; the same action is available from the engine panel in Settings. The download uses this project's own GitHub Release over HTTPS and is verified against a fixed SHA-256 before installation. Nothing is downloaded until you choose to, and no other network requests or telemetry are made. + +## Model + +This package was produced with MiniMax-M4. + diff --git a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md index ff8b6b9c..91cca968 100644 --- a/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md +++ b/plugins/charlesnty612/live-stream-recorder/README.zh-CN.md @@ -59,3 +59,8 @@ - 版权:Copyright (c) 2026 Błażej Kustra and Uncut contributors 录播引擎不随包内嵌,改为按需下载:Mini App 检测到引擎缺失时会询问是否下载,设置页的引擎面板也提供同一入口。下载使用本项目自己的 GitHub Release(HTTPS),安装前用固定 SHA-256 校验。未选择下载前不会发起任何下载,除此之外不联网、无遥测。 + +## 模型 + +本包由 MiniMax-M4 生成。 +