most-box 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -13
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/__next.__PAGE__.txt +6 -6
- package/out/__next._full.txt +15 -15
- package/out/__next._head.txt +3 -3
- package/out/__next._index.txt +7 -7
- package/out/__next._tree.txt +4 -4
- package/out/_next/static/chunks/00t5ddkkjek9v.js +1 -0
- package/out/_next/static/chunks/0hodisxqbtmye.js +1 -0
- package/out/_next/static/chunks/0jinrmgt26crz.js +1 -0
- package/out/_next/static/chunks/0mslhkdi-msxv.js +1 -0
- package/out/_next/static/chunks/1h-f81ddyfcmx.css +1 -0
- package/out/_next/static/chunks/1x76jmdus29em.js +1 -0
- package/out/_next/static/chunks/22vt64m0krmev.js +1 -0
- package/out/_next/static/chunks/{0vmjat-s4a3yj.css → 258tyt1xt34p4.css} +1 -1
- package/out/_next/static/chunks/266xuv6ts5889.js +5 -0
- package/out/_next/static/chunks/26hcvxjw9do9d.js +1 -0
- package/out/_next/static/chunks/{0nwdp-n94owg0.css → 2jnstwjg45vfp.css} +1 -1
- package/out/_next/static/chunks/2o-0n-9r5u1oh.js +1 -0
- package/out/_next/static/chunks/2pkm-6u9yq_cq.js +1 -0
- package/out/_next/static/chunks/31zdi2pl6em6-.css +1 -0
- package/out/_next/static/chunks/393isf5crmqic.js +1 -0
- package/out/_next/static/chunks/3e9ia0hs-pqvs.css +1 -0
- package/out/_next/static/chunks/3ej6im7cbakx3.js +1 -0
- package/out/_next/static/chunks/3ejz1mdljwwqf.css +1 -0
- package/out/_next/static/chunks/{0s7i7nfr9j3b1.js → 3m7_o1ihz8ay_.js} +1 -1
- package/out/_next/static/chunks/3qm2vbylm324o.css +1 -0
- package/out/_next/static/chunks/3uxltn4677hjy.js +1 -0
- package/out/_next/static/chunks/3w2qk10_udrd9.js +1 -0
- package/out/_next/static/chunks/3xl0fq2d3dle6.js +1 -0
- package/out/_next/static/chunks/{23kls47vn_rpg.css → 440es_b4nw-7c.css} +2 -2
- package/out/_next/static/chunks/{turbopack-026p0g9v9_pva.js → turbopack-3vvza9m6839dy.js} +1 -1
- package/out/_not-found/__next._full.txt +12 -12
- package/out/_not-found/__next._head.txt +3 -3
- package/out/_not-found/__next._index.txt +7 -7
- package/out/_not-found/__next._not-found.__PAGE__.txt +4 -4
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found/index.html +2 -2
- package/out/_not-found/index.txt +12 -12
- package/out/admin/__next._full.txt +13 -13
- package/out/admin/__next._head.txt +3 -3
- package/out/admin/__next._index.txt +7 -7
- package/out/admin/__next._tree.txt +2 -2
- package/out/admin/__next.admin.__PAGE__.txt +4 -4
- package/out/admin/__next.admin.txt +3 -3
- package/out/admin/index.html +2 -2
- package/out/admin/index.txt +13 -13
- package/out/app/__next._full.txt +13 -13
- package/out/app/__next._head.txt +3 -3
- package/out/app/__next._index.txt +7 -7
- package/out/app/__next._tree.txt +2 -2
- package/out/app/__next.app.__PAGE__.txt +4 -4
- package/out/app/__next.app.txt +3 -3
- package/out/app/index.html +2 -2
- package/out/app/index.txt +13 -13
- package/out/chat/__next._full.txt +14 -14
- package/out/chat/__next._head.txt +3 -3
- package/out/chat/__next._index.txt +7 -7
- package/out/chat/__next._tree.txt +3 -3
- package/out/chat/__next.chat.__PAGE__.txt +4 -4
- package/out/chat/__next.chat.txt +4 -4
- package/out/chat/index.html +2 -2
- package/out/chat/index.txt +14 -14
- package/out/chat/join/__next._full.txt +14 -14
- package/out/chat/join/__next._head.txt +3 -3
- package/out/chat/join/__next._index.txt +7 -7
- package/out/chat/join/__next._tree.txt +3 -3
- package/out/chat/join/__next.chat.join.__PAGE__.txt +4 -4
- package/out/chat/join/__next.chat.join.txt +3 -3
- package/out/chat/join/__next.chat.txt +4 -4
- package/out/chat/join/index.html +2 -2
- package/out/chat/join/index.txt +14 -14
- package/out/demo/__next._full.txt +17 -16
- package/out/demo/__next._head.txt +3 -3
- package/out/demo/__next._index.txt +7 -7
- package/out/demo/__next._tree.txt +6 -5
- package/out/demo/__next.demo.__PAGE__.txt +8 -7
- package/out/demo/__next.demo.txt +3 -3
- package/out/demo/index.html +3 -3
- package/out/demo/index.txt +17 -16
- package/out/download/__next._full.txt +37 -33
- package/out/download/__next._head.txt +3 -3
- package/out/download/__next._index.txt +7 -7
- package/out/download/__next._tree.txt +3 -3
- package/out/download/__next.download.__PAGE__.txt +6 -6
- package/out/download/__next.download.txt +3 -3
- package/out/download/index.html +2 -2
- package/out/download/index.txt +37 -33
- package/out/game/__next._full.txt +11 -11
- package/out/game/__next._head.txt +3 -3
- package/out/game/__next._index.txt +7 -7
- package/out/game/__next._tree.txt +2 -2
- package/out/game/__next.game.__PAGE__.txt +2 -2
- package/out/game/__next.game.txt +3 -3
- package/out/game/gandengyan/__next._full.txt +14 -14
- package/out/game/gandengyan/__next._head.txt +3 -3
- package/out/game/gandengyan/__next._index.txt +7 -7
- package/out/game/gandengyan/__next._tree.txt +3 -3
- package/out/game/gandengyan/__next.game.gandengyan.__PAGE__.txt +5 -5
- package/out/game/gandengyan/__next.game.gandengyan.txt +3 -3
- package/out/game/gandengyan/__next.game.txt +3 -3
- package/out/game/gandengyan/index.html +2 -2
- package/out/game/gandengyan/index.txt +14 -14
- package/out/game/index.html +1 -1
- package/out/game/index.txt +11 -11
- package/out/game/zhajinhua/__next._full.txt +14 -13
- package/out/game/zhajinhua/__next._head.txt +3 -3
- package/out/game/zhajinhua/__next._index.txt +7 -7
- package/out/game/zhajinhua/__next._tree.txt +3 -2
- package/out/game/zhajinhua/__next.game.txt +3 -3
- package/out/game/zhajinhua/__next.game.zhajinhua.__PAGE__.txt +5 -4
- package/out/game/zhajinhua/__next.game.zhajinhua.txt +3 -3
- package/out/game/zhajinhua/index.html +2 -2
- package/out/game/zhajinhua/index.txt +14 -13
- package/out/index.html +2 -2
- package/out/index.txt +15 -15
- package/out/note/__next._full.txt +13 -13
- package/out/note/__next._head.txt +3 -3
- package/out/note/__next._index.txt +7 -7
- package/out/note/__next._tree.txt +2 -2
- package/out/note/__next.note.__PAGE__.txt +4 -4
- package/out/note/__next.note.txt +3 -3
- package/out/note/index.html +2 -2
- package/out/note/index.txt +13 -13
- package/out/ping/__next._full.txt +14 -14
- package/out/ping/__next._head.txt +3 -3
- package/out/ping/__next._index.txt +7 -7
- package/out/ping/__next._tree.txt +3 -3
- package/out/ping/__next.ping.__PAGE__.txt +5 -5
- package/out/ping/__next.ping.txt +3 -3
- package/out/ping/index.html +2 -2
- package/out/ping/index.txt +14 -14
- package/out/web3/__next._full.txt +14 -14
- package/out/web3/__next._head.txt +3 -3
- package/out/web3/__next._index.txt +7 -7
- package/out/web3/__next._tree.txt +3 -3
- package/out/web3/__next.web3.__PAGE__.txt +4 -4
- package/out/web3/__next.web3.txt +4 -4
- package/out/web3/ed25519/__next._full.txt +12 -12
- package/out/web3/ed25519/__next._head.txt +3 -3
- package/out/web3/ed25519/__next._index.txt +7 -7
- package/out/web3/ed25519/__next._tree.txt +3 -3
- package/out/web3/ed25519/__next.web3.ed25519.__PAGE__.txt +2 -2
- package/out/web3/ed25519/__next.web3.ed25519.txt +3 -3
- package/out/web3/ed25519/__next.web3.txt +4 -4
- package/out/web3/ed25519/index.html +1 -1
- package/out/web3/ed25519/index.txt +12 -12
- package/out/web3/index.html +2 -2
- package/out/web3/index.txt +14 -14
- package/out/web3/tools/__next._full.txt +12 -12
- package/out/web3/tools/__next._head.txt +3 -3
- package/out/web3/tools/__next._index.txt +7 -7
- package/out/web3/tools/__next._tree.txt +3 -3
- package/out/web3/tools/__next.web3.tools.__PAGE__.txt +2 -2
- package/out/web3/tools/__next.web3.tools.txt +3 -3
- package/out/web3/tools/__next.web3.txt +4 -4
- package/out/web3/tools/index.html +1 -1
- package/out/web3/tools/index.txt +12 -12
- package/package.json +1 -1
- package/server/src/core/gameRoom.js +12 -0
- package/server/src/core/zhajinhua.js +82 -14
- package/server/src/games/gandengyan.js +39 -0
- package/server/src/http/app.js +66 -1
- package/server/src/http/nodeStatus.js +18 -0
- package/server/src/index.js +667 -165
- package/out/_next/static/chunks/0-ryc9icn6dql.css +0 -1
- package/out/_next/static/chunks/088-v8tzobg5g.js +0 -1
- package/out/_next/static/chunks/0g9303i8psy6z.js +0 -1
- package/out/_next/static/chunks/10p6-qnuk3p9x.js +0 -1
- package/out/_next/static/chunks/1ei8b9nw-ea8p.css +0 -1
- package/out/_next/static/chunks/2524ggtr3e4fp.js +0 -1
- package/out/_next/static/chunks/2fmkcw8ui5xp3.js +0 -5
- package/out/_next/static/chunks/2mcmt4yla_xle.js +0 -1
- package/out/_next/static/chunks/2nbju8t9-ux58.css +0 -1
- package/out/_next/static/chunks/2v7_4ps1l4a8o.css +0 -1
- package/out/_next/static/chunks/2vk2ln79gpvm4.js +0 -1
- package/out/_next/static/chunks/37msy2-4ucgts.js +0 -1
- package/out/_next/static/chunks/384w3w4qvhw61.js +0 -1
- package/out/_next/static/chunks/3aa-weedhv4e0.js +0 -1
- package/out/_next/static/chunks/3erbaukgkw8f2.js +0 -1
- package/out/_next/static/chunks/3fea100s764m-.js +0 -1
- package/out/_next/static/chunks/3qj5xz_d4cbk6.js +0 -1
- /package/out/_next/static/{NPIlpdzQWkiVZpgfhlypH → TXy93SnAZQ7OQ-aVUkmHa}/_buildManifest.js +0 -0
- /package/out/_next/static/{NPIlpdzQWkiVZpgfhlypH → TXy93SnAZQ7OQ-aVUkmHa}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{NPIlpdzQWkiVZpgfhlypH → TXy93SnAZQ7OQ-aVUkmHa}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -20,13 +20,19 @@
|
|
|
20
20
|
|
|
21
21
|
## 演示
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
在线 Web 入口:[Most.Box](https://Most.Box)
|
|
24
|
+
|
|
25
|
+
> Web 入口只负责连接已有 MostBox 节点;要在本机发布、下载、校验和持续做种,优先使用桌面客户端,或在本机运行 `npx most-box@latest` 启动完整节点。
|
|
24
26
|
|
|
25
27
|
## 🚀 立即使用
|
|
26
28
|
|
|
27
|
-
###
|
|
29
|
+
### 方式一:桌面客户端(推荐)
|
|
30
|
+
|
|
31
|
+
前往 [Most.Box 下载页](https://Most.Box/download) 下载客户端,支持 Windows、macOS 和 Linux。桌面端内置本地 MostBox 节点,提供完整 P2P 文件分享、下载校验和持续做种能力,无需单独安装 Node.js。
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
### 方式二:npm 包
|
|
34
|
+
|
|
35
|
+
适合开发、自托管或临时启动本机节点。请先安装 Node.js >= 22.12,然后运行:
|
|
30
36
|
|
|
31
37
|
```bash
|
|
32
38
|
npx most-box@latest
|
|
@@ -36,15 +42,12 @@ npx most-box@latest
|
|
|
36
42
|
|
|
37
43
|
浏览器自动访问 **http://localhost:1976**
|
|
38
44
|
|
|
39
|
-
### 方式二:桌面客户端
|
|
40
|
-
|
|
41
|
-
前往 [Most.Box](https://Most.Box/download) 下载客户端,支持 Windows、macOS 和 Linux。
|
|
42
|
-
|
|
43
45
|
## 需求
|
|
44
46
|
|
|
45
47
|
- 使用桌面客户端:无需单独安装 Node.js。
|
|
46
48
|
- 使用 `npx most-box@latest` 或本地源码开发:建议 Node.js >= 22.12。当前 Next.js 16 需要 Node.js >= 20.9,Electron 42 开发/打包需要 Node.js >= 22.12。
|
|
47
|
-
- MostBox Web
|
|
49
|
+
- MostBox Web 界面只连接已有节点;在线入口或单独打开的浏览器页面不会替你启动 P2P 节点。
|
|
50
|
+
- MostBox 会创建本地身份用于本机数据隔离和 API 签名;这不是云端注册账号。
|
|
48
51
|
|
|
49
52
|
## 开发
|
|
50
53
|
|
|
@@ -67,7 +70,7 @@ npm run test:unit # 只运行单元测试
|
|
|
67
70
|
|
|
68
71
|
| 场景 | 方式 | 访问地址 |
|
|
69
72
|
| -------- | ------------------------------------- | ----------------------- |
|
|
70
|
-
| 本地 | `npx most-box`
|
|
73
|
+
| 本地 | 桌面客户端或 `npx most-box@latest` | `http://localhost:1976` |
|
|
71
74
|
| 远程管理 | SSH 隧道 + `/admin/` | `http://localhost:1976` |
|
|
72
75
|
| 外网 | Caddy 反向代理 | `https://your-domain` |
|
|
73
76
|
|
|
@@ -126,7 +129,7 @@ mostbox.example.com {
|
|
|
126
129
|
|
|
127
130
|
### 如何分享文件给其他人?
|
|
128
131
|
|
|
129
|
-
1. 打开 MostBox Web 界面
|
|
132
|
+
1. 打开 MostBox 桌面客户端,或运行 `npx most-box@latest` 后打开本机 Web 界面
|
|
130
133
|
2. 使用本地身份登录
|
|
131
134
|
3. 上传文件或文件夹
|
|
132
135
|
4. 点击「复制链接」获取 `most://<cid>` 链接
|
|
@@ -163,15 +166,17 @@ mostbox.example.com {
|
|
|
163
166
|
|
|
164
167
|
### 如何在其他设备上下载文件?
|
|
165
168
|
|
|
166
|
-
|
|
169
|
+
优先安装桌面客户端;桌面端内置完整 P2P 节点,无需 Node.js。
|
|
170
|
+
|
|
171
|
+
如果要用 npm 入口,请确保设备已安装 Node.js >= 22.12 后运行:
|
|
167
172
|
|
|
168
173
|
```bash
|
|
169
|
-
npx most-box
|
|
174
|
+
npx most-box@latest
|
|
170
175
|
```
|
|
171
176
|
|
|
172
177
|
浏览器访问 `http://localhost:1976`,输入链接即可下载。
|
|
173
178
|
|
|
174
|
-
|
|
179
|
+
在线 Web 入口只能连接已有节点;它本身不提供本机发布、下载校验或持续做种能力。
|
|
175
180
|
|
|
176
181
|
## 路线图
|
|
177
182
|
|
package/out/404/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh-CN" data-scroll-behavior="smooth"><head><meta charSet="UTF-8"/><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN" data-scroll-behavior="smooth"><head><meta charSet="UTF-8"/><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/440es_b4nw-7c.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/2vm9uslik2wfi.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0az8vxg2gfuhm.js"/><script src="/_next/static/chunks/3m7_o1ihz8ay_.js" async=""></script><script src="/_next/static/chunks/3oe03qxgd_rid.js" async=""></script><script src="/_next/static/chunks/3w4o9hklow6fg.js" async=""></script><script src="/_next/static/chunks/27jktro2p5rq9.js" async=""></script><script src="/_next/static/chunks/turbopack-3vvza9m6839dy.js" async=""></script><script src="/_next/static/chunks/0hodisxqbtmye.js" async=""></script><script src="/_next/static/chunks/0jinrmgt26crz.js" async=""></script><script src="/_next/static/chunks/2im7c515bo69p.js" async=""></script><script src="/_next/static/chunks/3g0c367tk4esf.js" async=""></script><script src="/_next/static/chunks/1v-molv0hbcjl.js" async=""></script><meta name="robots" content="noindex"/><link rel="icon" href="/logo.svg" type="image/svg+xml"/><meta name="theme-color" content="#5e6ad2"/><title>MostBox</title><meta name="description" content="P2P 文件分享,无需注册"/><script>
|
|
2
2
|
(function() {
|
|
3
3
|
var theme = localStorage.getItem('theme');
|
|
4
4
|
if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
window.onunhandledrejection = function(event) {
|
|
13
13
|
console.error('[Unhandled Promise Rejection]', event.reason);
|
|
14
14
|
};
|
|
15
|
-
</script><div class="not-found-page"><div class="not-found-card"><div class="not-found-icon"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-compass" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"></path></svg></div><h1 class="not-found-title">页面未找到</h1><p class="not-found-desc">你访问的页面似乎已经迷失在 P2P 网络中了</p><div class="not-found-actions"><button class="btn btn-secondary"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg>上一页</button><a class="btn btn-primary" href="/"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-house" aria-hidden="true"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg>回首页</a></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0az8vxg2gfuhm.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[14232,[\"/_next/static/chunks/
|
|
15
|
+
</script><div class="not-found-page"><div class="not-found-card"><div class="not-found-icon"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-compass" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"></path></svg></div><h1 class="not-found-title">页面未找到</h1><p class="not-found-desc">你访问的页面似乎已经迷失在 P2P 网络中了</p><div class="not-found-actions"><button class="btn btn-secondary"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg>上一页</button><a class="btn btn-primary" href="/"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-house" aria-hidden="true"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg>回首页</a></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0az8vxg2gfuhm.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[14232,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"ErrorBoundary\"]\n3:I[52925,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"default\"]\n4:I[39756,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"default\"]\n5:I[37457,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"default\"]\n6:I[36768,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\",\"/_next/static/chunks/1v-molv0hbcjl.js\"],\"default\"]\n7:I[47257,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"ClientPageRoot\"]\na:I[97367,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\ne:I[97367,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"ViewportBoundary\"]\n10:I[97367,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"MetadataBoundary\"]\n12:I[68027,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/440es_b4nw-7c.css\",\"style\"]\n:HL[\"/_next/static/chunks/2vm9uslik2wfi.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/440es_b4nw-7c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2vm9uslik2wfi.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0hodisxqbtmye.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0jinrmgt26crz.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2im7c515bo69p.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/3g0c367tk4esf.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"data-scroll-behavior\":\"smooth\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"charSet\":\"UTF-8\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1.0\"}],[\"$\",\"link\",null,{\"rel\":\"icon\",\"href\":\"/logo.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#5e6ad2\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n (function() {\\n var theme = localStorage.getItem('theme');\\n if (theme === 'dark' || (!theme \u0026\u0026 window.matchMedia('(prefers-color-scheme: dark)').matches)) {\\n document.documentElement.setAttribute('data-theme', 'dark');\\n }\\n })();\\n \"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"$L3\",null,{}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n window.onerror = function(message, source, lineno, colno, error) {\\n console.error('[Global Error]', { message, source, lineno, colno, error });\\n };\\n window.onunhandledrejection = function(event) {\\n console.error('[Unhandled Promise Rejection]', event.reason);\\n };\\n \"}}],[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"$L6\",null,{}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L7\",null,{\"Component\":\"$6\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/1v-molv0hbcjl.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,null]},null,false,\"$@d\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L11\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$12\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/440es_b4nw-7c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2vm9uslik2wfi.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"TXy93SnAZQ7OQ-aVUkmHa\"}\n"])</script><script>self.__next_f.push([1,"13:[]\nd:\"$W13\"\n8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"c:null\n11:[[\"$\",\"title\",\"0\",{\"children\":\"MostBox\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"P2P 文件分享,无需注册\"}]]\n"])</script></body></html>
|
package/out/404.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh-CN" data-scroll-behavior="smooth"><head><meta charSet="UTF-8"/><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN" data-scroll-behavior="smooth"><head><meta charSet="UTF-8"/><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/440es_b4nw-7c.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/2vm9uslik2wfi.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0az8vxg2gfuhm.js"/><script src="/_next/static/chunks/3m7_o1ihz8ay_.js" async=""></script><script src="/_next/static/chunks/3oe03qxgd_rid.js" async=""></script><script src="/_next/static/chunks/3w4o9hklow6fg.js" async=""></script><script src="/_next/static/chunks/27jktro2p5rq9.js" async=""></script><script src="/_next/static/chunks/turbopack-3vvza9m6839dy.js" async=""></script><script src="/_next/static/chunks/0hodisxqbtmye.js" async=""></script><script src="/_next/static/chunks/0jinrmgt26crz.js" async=""></script><script src="/_next/static/chunks/2im7c515bo69p.js" async=""></script><script src="/_next/static/chunks/3g0c367tk4esf.js" async=""></script><script src="/_next/static/chunks/1v-molv0hbcjl.js" async=""></script><meta name="robots" content="noindex"/><link rel="icon" href="/logo.svg" type="image/svg+xml"/><meta name="theme-color" content="#5e6ad2"/><title>MostBox</title><meta name="description" content="P2P 文件分享,无需注册"/><script>
|
|
2
2
|
(function() {
|
|
3
3
|
var theme = localStorage.getItem('theme');
|
|
4
4
|
if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
window.onunhandledrejection = function(event) {
|
|
13
13
|
console.error('[Unhandled Promise Rejection]', event.reason);
|
|
14
14
|
};
|
|
15
|
-
</script><div class="not-found-page"><div class="not-found-card"><div class="not-found-icon"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-compass" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"></path></svg></div><h1 class="not-found-title">页面未找到</h1><p class="not-found-desc">你访问的页面似乎已经迷失在 P2P 网络中了</p><div class="not-found-actions"><button class="btn btn-secondary"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg>上一页</button><a class="btn btn-primary" href="/"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-house" aria-hidden="true"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg>回首页</a></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0az8vxg2gfuhm.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[14232,[\"/_next/static/chunks/
|
|
15
|
+
</script><div class="not-found-page"><div class="not-found-card"><div class="not-found-icon"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-compass" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"></path></svg></div><h1 class="not-found-title">页面未找到</h1><p class="not-found-desc">你访问的页面似乎已经迷失在 P2P 网络中了</p><div class="not-found-actions"><button class="btn btn-secondary"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg>上一页</button><a class="btn btn-primary" href="/"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-house" aria-hidden="true"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg>回首页</a></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0az8vxg2gfuhm.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[14232,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"ErrorBoundary\"]\n3:I[52925,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"default\"]\n4:I[39756,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"default\"]\n5:I[37457,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"default\"]\n6:I[36768,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\",\"/_next/static/chunks/1v-molv0hbcjl.js\"],\"default\"]\n7:I[47257,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"ClientPageRoot\"]\na:I[97367,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\ne:I[97367,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"ViewportBoundary\"]\n10:I[97367,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"MetadataBoundary\"]\n12:I[68027,[\"/_next/static/chunks/0hodisxqbtmye.js\",\"/_next/static/chunks/0jinrmgt26crz.js\",\"/_next/static/chunks/2im7c515bo69p.js\",\"/_next/static/chunks/3g0c367tk4esf.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/440es_b4nw-7c.css\",\"style\"]\n:HL[\"/_next/static/chunks/2vm9uslik2wfi.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/440es_b4nw-7c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2vm9uslik2wfi.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0hodisxqbtmye.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0jinrmgt26crz.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2im7c515bo69p.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/3g0c367tk4esf.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"data-scroll-behavior\":\"smooth\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"charSet\":\"UTF-8\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1.0\"}],[\"$\",\"link\",null,{\"rel\":\"icon\",\"href\":\"/logo.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#5e6ad2\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n (function() {\\n var theme = localStorage.getItem('theme');\\n if (theme === 'dark' || (!theme \u0026\u0026 window.matchMedia('(prefers-color-scheme: dark)').matches)) {\\n document.documentElement.setAttribute('data-theme', 'dark');\\n }\\n })();\\n \"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"$L3\",null,{}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n window.onerror = function(message, source, lineno, colno, error) {\\n console.error('[Global Error]', { message, source, lineno, colno, error });\\n };\\n window.onunhandledrejection = function(event) {\\n console.error('[Unhandled Promise Rejection]', event.reason);\\n };\\n \"}}],[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"$L6\",null,{}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L7\",null,{\"Component\":\"$6\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/1v-molv0hbcjl.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,null]},null,false,\"$@d\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L11\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$12\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/440es_b4nw-7c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2vm9uslik2wfi.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"TXy93SnAZQ7OQ-aVUkmHa\"}\n"])</script><script>self.__next_f.push([1,"13:[]\nd:\"$W13\"\n8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"c:null\n11:[[\"$\",\"title\",\"0\",{\"children\":\"MostBox\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"P2P 文件分享,无需注册\"}]]\n"])</script></body></html>
|
package/out/__next.__PAGE__.txt
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[47257,["/_next/static/chunks/
|
|
3
|
-
3:I[31713,["/_next/static/chunks/
|
|
4
|
-
6:I[97367,["/_next/static/chunks/
|
|
2
|
+
2:I[47257,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"ClientPageRoot"]
|
|
3
|
+
3:I[31713,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js","/_next/static/chunks/0mslhkdi-msxv.js"],"default"]
|
|
4
|
+
6:I[97367,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
|
-
:HL["/_next/static/chunks/
|
|
7
|
-
:HL["/_next/static/chunks/
|
|
8
|
-
0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
6
|
+
:HL["/_next/static/chunks/258tyt1xt34p4.css","style"]
|
|
7
|
+
:HL["/_next/static/chunks/1h-f81ddyfcmx.css","style"]
|
|
8
|
+
0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/258tyt1xt34p4.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/1h-f81ddyfcmx.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0mslhkdi-msxv.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"TXy93SnAZQ7OQ-aVUkmHa"}
|
|
9
9
|
4:{}
|
|
10
10
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
11
11
|
8:null
|
package/out/__next._full.txt
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[14232,["/_next/static/chunks/
|
|
3
|
-
3:I[52925,["/_next/static/chunks/
|
|
4
|
-
4:I[39756,["/_next/static/chunks/
|
|
5
|
-
5:I[37457,["/_next/static/chunks/
|
|
6
|
-
6:I[36768,["/_next/static/chunks/
|
|
7
|
-
7:I[47257,["/_next/static/chunks/
|
|
8
|
-
8:I[31713,["/_next/static/chunks/
|
|
9
|
-
b:I[97367,["/_next/static/chunks/
|
|
2
|
+
2:I[14232,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"ErrorBoundary"]
|
|
3
|
+
3:I[52925,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"default"]
|
|
4
|
+
4:I[39756,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"default"]
|
|
5
|
+
5:I[37457,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"default"]
|
|
6
|
+
6:I[36768,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js","/_next/static/chunks/1v-molv0hbcjl.js"],"default"]
|
|
7
|
+
7:I[47257,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"ClientPageRoot"]
|
|
8
|
+
8:I[31713,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js","/_next/static/chunks/0mslhkdi-msxv.js"],"default"]
|
|
9
|
+
b:I[97367,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"OutletBoundary"]
|
|
10
10
|
c:"$Sreact.suspense"
|
|
11
|
-
e:I[97367,["/_next/static/chunks/
|
|
12
|
-
10:I[97367,["/_next/static/chunks/
|
|
13
|
-
12:I[68027,["/_next/static/chunks/
|
|
14
|
-
:HL["/_next/static/chunks/
|
|
11
|
+
e:I[97367,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"ViewportBoundary"]
|
|
12
|
+
10:I[97367,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"MetadataBoundary"]
|
|
13
|
+
12:I[68027,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"default",1]
|
|
14
|
+
:HL["/_next/static/chunks/440es_b4nw-7c.css","style"]
|
|
15
15
|
:HL["/_next/static/chunks/2vm9uslik2wfi.css","style"]
|
|
16
16
|
:HC["/",""]
|
|
17
|
-
:HL["/_next/static/chunks/
|
|
18
|
-
:HL["/_next/static/chunks/
|
|
19
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
17
|
+
:HL["/_next/static/chunks/258tyt1xt34p4.css","style"]
|
|
18
|
+
:HL["/_next/static/chunks/1h-f81ddyfcmx.css","style"]
|
|
19
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/440es_b4nw-7c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/2vm9uslik2wfi.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0hodisxqbtmye.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0jinrmgt26crz.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/2im7c515bo69p.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/3g0c367tk4esf.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"data-scroll-behavior":"smooth","children":[["$","head",null,{"children":[["$","meta",null,{"charSet":"UTF-8"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0"}],["$","link",null,{"rel":"icon","href":"/logo.svg","type":"image/svg+xml"}],["$","meta",null,{"name":"theme-color","content":"#5e6ad2"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n var theme = localStorage.getItem('theme');\n if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {\n document.documentElement.setAttribute('data-theme', 'dark');\n }\n })();\n "}}]]}],["$","body",null,{"children":["$","$L2",null,{"children":[["$","$L3",null,{}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n window.onerror = function(message, source, lineno, colno, error) {\n console.error('[Global Error]', { message, source, lineno, colno, error });\n };\n window.onunhandledrejection = function(event) {\n console.error('[Unhandled Promise Rejection]', event.reason);\n };\n "}}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","$L6",null,{}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/258tyt1xt34p4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/1h-f81ddyfcmx.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0mslhkdi-msxv.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$L11"}]}]}],null]}],false]],"m":"$undefined","G":["$12",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/440es_b4nw-7c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/2vm9uslik2wfi.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"TXy93SnAZQ7OQ-aVUkmHa"}
|
|
20
20
|
9:{}
|
|
21
21
|
a:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
22
22
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/out/__next._head.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[97367,["/_next/static/chunks/
|
|
3
|
-
3:I[97367,["/_next/static/chunks/
|
|
2
|
+
2:I[97367,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"ViewportBoundary"]
|
|
3
|
+
3:I[97367,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
|
-
0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"MostBox"}],["$","meta","1",{"name":"description","content":"P2P 文件分享,无需注册"}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
5
|
+
0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"MostBox"}],["$","meta","1",{"name":"description","content":"P2P 文件分享,无需注册"}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"TXy93SnAZQ7OQ-aVUkmHa"}
|
package/out/__next._index.txt
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[14232,["/_next/static/chunks/
|
|
3
|
-
3:I[52925,["/_next/static/chunks/
|
|
4
|
-
4:I[39756,["/_next/static/chunks/
|
|
5
|
-
5:I[37457,["/_next/static/chunks/
|
|
6
|
-
6:I[36768,["/_next/static/chunks/
|
|
7
|
-
:HL["/_next/static/chunks/
|
|
2
|
+
2:I[14232,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"ErrorBoundary"]
|
|
3
|
+
3:I[52925,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"default"]
|
|
4
|
+
4:I[39756,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"default"]
|
|
5
|
+
5:I[37457,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js"],"default"]
|
|
6
|
+
6:I[36768,["/_next/static/chunks/0hodisxqbtmye.js","/_next/static/chunks/0jinrmgt26crz.js","/_next/static/chunks/2im7c515bo69p.js","/_next/static/chunks/3g0c367tk4esf.js","/_next/static/chunks/1v-molv0hbcjl.js"],"default"]
|
|
7
|
+
:HL["/_next/static/chunks/440es_b4nw-7c.css","style"]
|
|
8
8
|
:HL["/_next/static/chunks/2vm9uslik2wfi.css","style"]
|
|
9
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
9
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/440es_b4nw-7c.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/2vm9uslik2wfi.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0hodisxqbtmye.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0jinrmgt26crz.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/2im7c515bo69p.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/3g0c367tk4esf.js","async":true}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"data-scroll-behavior":"smooth","children":[["$","head",null,{"children":[["$","meta",null,{"charSet":"UTF-8"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0"}],["$","link",null,{"rel":"icon","href":"/logo.svg","type":"image/svg+xml"}],["$","meta",null,{"name":"theme-color","content":"#5e6ad2"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n var theme = localStorage.getItem('theme');\n if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {\n document.documentElement.setAttribute('data-theme', 'dark');\n }\n })();\n "}}]]}],["$","body",null,{"children":["$","$L2",null,{"children":[["$","$L3",null,{}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n window.onerror = function(message, source, lineno, colno, error) {\n console.error('[Global Error]', { message, source, lineno, colno, error });\n };\n window.onunhandledrejection = function(event) {\n console.error('[Unhandled Promise Rejection]', event.reason);\n };\n "}}],["$","$L4",null,{"parallelRouterKey":"children","template":["$","$L5",null,{}],"notFound":[["$","$L6",null,{}],[]]}]]}]}]]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"TXy93SnAZQ7OQ-aVUkmHa"}
|
package/out/__next._tree.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
:HL["/_next/static/chunks/
|
|
1
|
+
:HL["/_next/static/chunks/440es_b4nw-7c.css","style"]
|
|
2
2
|
:HL["/_next/static/chunks/2vm9uslik2wfi.css","style"]
|
|
3
3
|
:HC["/",""]
|
|
4
|
-
:HL["/_next/static/chunks/
|
|
5
|
-
:HL["/_next/static/chunks/
|
|
6
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"
|
|
4
|
+
:HL["/_next/static/chunks/258tyt1xt34p4.css","style"]
|
|
5
|
+
:HL["/_next/static/chunks/1h-f81ddyfcmx.css","style"]
|
|
6
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"TXy93SnAZQ7OQ-aVUkmHa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31214,e=>{"use strict";let t=(0,e.i(56420).default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);e.s(["Cloud",0,t],31214)},11241,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],11241)},96699,e=>{"use strict";let t=(0,e.i(56420).default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,t],96699)},35965,e=>{"use strict";let t=(0,e.i(56420).default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,t],35965)},59665,5142,e=>{"use strict";var t=e.i(18050),n=e.i(71645);let a=(0,e.i(56420).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);function r(e=!1,t={}){let[a,s]=(0,n.useState)(e),i=(0,n.useCallback)(()=>{s(e=>e||(t.onOpen?.(),!0))},[t.onOpen]),l=(0,n.useCallback)(()=>{s(e=>e?(t.onClose?.(),!1):e)},[t.onClose]);return[a,{open:i,close:l,toggle:(0,n.useCallback)(()=>{a?l():i()},[l,i,a]),set:s}]}e.s(["useDisclosure",0,r],5142);let s=(0,n.createContext)(null);e.s(["default",0,function({sidebar:e,className:i="",headerTitle:l,headerRight:o,sidebarToggleReplacement:c,defaultHide:u=!1,children:d}){let[h,p]=r(!1),[f,m]=(0,n.useState)(u),y=(0,n.useRef)(u),x=function(e,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){let[a,r]=(0,n.useState)(t?void 0:!!("u">typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches);return(0,n.useEffect)(()=>{try{if("matchMedia"in window){let t=window.matchMedia(e);r(t.matches);let n=e=>r(e.matches);return t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}}}catch(e){return}},[e]),a||!1}("(max-width: 768px)"),j=(0,n.useCallback)((e={})=>{p.close(),e.collapse&&m(!0)},[p]);(0,n.useEffect)(()=>{u!==y.current&&(u?j({collapse:!0}):m(!1),y.current=u)},[u,j]);let b=()=>{x?p.open():m(!1)};return(0,t.jsx)(s.Provider,{value:{closeSidebar:j,openSidebar:b,isSidebarVisible:x?h:!f},children:(0,t.jsxs)("div",{className:["app-layout",i].filter(Boolean).join(" "),children:[(0,t.jsx)("div",{className:`sidebar-overlay ${h?"visible":""}`,onClick:()=>j()}),(0,t.jsx)("div",{className:`sidebar ${h?"open":""} ${f?"collapsed":""}`,children:e({closeSidebar:j,openSidebar:b})}),(0,t.jsxs)("div",{className:"main-content",children:[(0,t.jsxs)("header",{className:"app-header",children:[(0,t.jsxs)("div",{className:"header-left",children:[c??(0,t.jsx)("button",{onClick:()=>{x?p.toggle():m(!f)},className:"btn btn-icon sidebar-toggle-btn","aria-label":x?"打开菜单":f?"展开侧边栏":"收起侧边栏",children:(0,t.jsx)(a,{size:16})}),l]}),(0,t.jsx)("div",{className:"header-right",children:o})]}),d]})]})})},"useAppShell",0,function(){let e=(0,n.useContext)(s);if(!e)throw Error("useAppShell must be used within AppShell");return e}],59665)},48119,e=>{"use strict";let t=(0,e.i(56420).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",0,t],48119)},67784,e=>{"use strict";let t=(0,e.i(56420).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,t],67784)},27648,e=>{"use strict";var t=e.i(18050),n=e.i(71645),a=e.i(67784),r=e.i(48119);e.i(4121);var s=e.i(20885),i=e.i(88361),l=e.i(93957),o=e.i(71192);e.s(["default",0,function({className:e=""}){let c=(0,o.useUserStore)(e=>e.identity),u=(0,o.useUserStore)(e=>e.openLoginModal),d=(0,o.useUserStore)(e=>e.logoutUser),[h,p]=(0,n.useState)(!1);return(0,t.jsxs)("div",{className:`chat-sidebar-footer sidebar-account ${e}`,children:[(0,t.jsxs)("div",{className:"user-info",children:[(0,t.jsx)("img",{className:"user-avatar-img",src:(0,l.generateAvatar)(c?.address,c?.avatar),alt:"avatar"}),(0,t.jsx)("span",{className:"user-name",title:c?.address,children:c?.displayName||"未登录"})]}),c?(0,t.jsx)(s.ActionMenu,{ariaLabel:"账号操作",placement:"top-end",items:[{key:"logout",label:"退出",icon:(0,t.jsx)(a.LogOut,{size:16}),onSelect:()=>p(!0)}],renderTrigger:e=>(0,t.jsx)("button",{...e,className:"btn btn-icon account-menu-trigger","aria-label":"更多操作",title:"更多操作",children:(0,t.jsx)(r.MoreHorizontal,{size:16})})}):(0,t.jsx)("button",{className:"btn btn-primary login-btn",onClick:u,children:"登录"}),h&&(0,t.jsx)(i.ConfirmModal,{title:"退出登录",message:"确定要退出当前账号吗?",confirmText:"退出",danger:!0,onConfirm:()=>{d(),p(!1)},onClose:()=>p(!1)})]})}])},39626,e=>{"use strict";var t=e.i(18050);let n=(0,e.i(56420).default)("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);var a=e.i(59665);e.s(["default",0,function({label:e="打开侧边栏",className:r="",variant:s="primary"}){let{isSidebarVisible:i,openSidebar:l}=(0,a.useAppShell)();return i?null:(0,t.jsxs)("button",{type:"button",className:`btn ${"primary"===s?"btn-primary":""} sidebar-open-hint ${r}`.trim(),onClick:l,children:[(0,t.jsx)(n,{size:16}),e]})}],39626)},10566,e=>{"use strict";let t=(0,e.i(56420).default)("notebook-pen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]);e.s(["NotebookPen",0,t],10566)},25981,e=>{"use strict";let t=(0,e.i(56420).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],25981)},16327,e=>{"use strict";let t=(0,e.i(56420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],16327)},6537,77816,e=>{"use strict";let t=(0,e.i(56420).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",0,t],6537);var n=e.i(22315);function a(e){let t;if(!e)return"";let a=(0,n.default)(Number(e)),r=a.hour();return t=r>=0&&r<3?"凌晨":r>=3&&r<6?"拂晓":r>=6&&r<9?"早晨":r>=9&&r<12?"上午":r>=12&&r<15?"下午":r>=15&&r<18?"傍晚":r>=18&&r<21?"晚上":"深夜",a.format(`YYYY年M月D日 ${t}h:m`)}e.s(["formatDate",0,a,"formatTime",0,a],77816)},22315,(e,t,n)=>{e.e,t.exports=function(){"use strict";var e="millisecond",t="second",n="minute",a="hour",r="week",s="month",i="quarter",l="year",o="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var m="$isDayjsObject",y=function(e){return e instanceof g||!(!e||!e[m])},x=function e(t,n,a){var r;if(!t)return p;if("string"==typeof t){var s=t.toLowerCase();f[s]&&(r=s),n&&(f[s]=n,r=s);var i=t.split("-");if(!r&&i.length>1)return e(i[0])}else{var l=t.name;f[l]=t,r=l}return!a&&r&&(p=r),r||!a&&p},j=function(e,t){if(y(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new g(n)},b={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(n/60),2,"0")+":"+h(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(a,s),i=n-r<0,l=t.clone().add(a+(i?-1:1),s);return+(-(a+(n-r)/(i?r-l:l-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:s,y:l,w:r,d:"day",D:o,h:a,m:n,s:t,ms:e,Q:i})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=x,b.i=y,b.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var g=function(){function h(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var p=h.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(u);if(a){var r=a[2]-1||0,s=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)):new Date(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return b},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(e,t){var n=j(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return j(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<j(e)},p.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,i){var c=this,u=!!b.u(i)||i,d=b.p(e),h=function(e,t){var n=b.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf("day")},p=function(e,t){return b.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,m=this.$M,y=this.$D,x="set"+(this.$u?"UTC":"");switch(d){case l:return u?h(1,0):h(31,11);case s:return u?h(1,m):h(0,m+1);case r:var j=this.$locale().weekStart||0,g=(f<j?f+7:f)-j;return h(u?y-g:y+(6-g),m);case"day":case o:return p(x+"Hours",0);case a:return p(x+"Minutes",1);case n:return p(x+"Seconds",2);case t:return p(x+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(r,i){var c,u=b.p(r),d="set"+(this.$u?"UTC":""),h=((c={}).day=d+"Date",c[o]=d+"Date",c[s]=d+"Month",c[l]=d+"FullYear",c[a]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],p="day"===u?this.$D+(i-this.$W):i;if(u===s||u===l){var f=this.clone().set(o,1);f.$d[h](p),f.init(),this.$d=f.set(o,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[b.p(e)]()},p.add=function(e,i){var o,c=this;e=Number(e);var u=b.p(i),d=function(t){var n=j(c);return b.w(n.date(n.date()+Math.round(t*e)),c)};if(u===s)return this.set(s,this.$M+e);if(u===l)return this.set(l,this.$y+e);if("day"===u)return d(1);if(u===r)return d(7);var h=((o={})[n]=6e4,o[a]=36e5,o[t]=1e3,o)[u]||1,p=this.$d.getTime()+e*h;return b.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var a=e||"YYYY-MM-DDTHH:mm:ssZ",r=b.z(this),s=this.$H,i=this.$m,l=this.$M,o=n.weekdays,u=n.months,h=n.meridiem,p=function(e,n,r,s){return e&&(e[n]||e(t,a))||r[n].slice(0,s)},f=function(e){return b.s(s%12||12,e,"0")},m=h||function(e,t,n){var a=e<12?"AM":"PM";return n?a.toLowerCase():a};return a.replace(d,function(e,a){return a||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return l+1;case"MM":return b.s(l+1,2,"0");case"MMM":return p(n.monthsShort,l,u,3);case"MMMM":return p(u,l);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,o,2);case"ddd":return p(n.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(s,i,!0);case"A":return m(s,i,!1);case"m":return String(i);case"mm":return b.s(i,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,o,c){var u,d=this,h=b.p(o),p=j(e),f=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,y=function(){return b.m(d,p)};switch(h){case l:u=y()/12;break;case s:u=y();break;case i:u=y()/3;break;case r:u=(m-f)/6048e5;break;case"day":u=(m-f)/864e5;break;case a:u=m/36e5;break;case n:u=m/6e4;break;case t:u=m/1e3;break;default:u=m}return c?u:b.a(u)},p.daysInMonth=function(){return this.endOf(s).$D},p.$locale=function(){return f[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),a=x(e,t,!0);return a&&(n.$L=a),n},p.clone=function(){return b.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},h}(),v=g.prototype;return j.prototype=v,[["$ms",e],["$s",t],["$m",n],["$H",a],["$W","day"],["$M",s],["$y",l],["$D",o]].forEach(function(e){v[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),j.extend=function(e,t){return e.$i||(e(t,g,j),e.$i=!0),j},j.locale=x,j.isDayjs=y,j.unix=function(e){return j(1e3*e)},j.en=f[p],j.Ls=f,j.p={},j}()},53138,e=>{"use strict";let t=(0,e.i(56420).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,t],53138)},51757,e=>{"use strict";let t=(0,e.i(56420).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],51757)},56522,e=>{"use strict";let t=(0,e.i(56420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],56522)},62368,e=>{"use strict";let t=(0,e.i(56420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],62368)},66595,e=>{"use strict";let t=(0,e.i(56420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],66595)},26091,e=>{"use strict";let t=(0,e.i(56420).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],26091)},73474,e=>{"use strict";let t=(0,e.i(56420).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],73474)},77071,e=>{"use strict";let t=(0,e.i(56420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},26067,e=>{"use strict";let t=(0,e.i(56420).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["Folder",0,t],26067)},67927,e=>{"use strict";let t=(0,e.i(56420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],67927)},32391,60923,86512,e=>{"use strict";var t=e.i(18050),n=e.i(71645),a=e.i(53138),r=e.i(51757),s=e.i(31214),i=e.i(62368),l=e.i(48119),o=e.i(25981),c=e.i(71192);e.s(["NoteMoreMenu",0,function({sync:e}){let u=(0,n.useRef)(null),[d,h]=(0,n.useState)(!1),p=(0,c.useUserStore)(e=>e.wallet),f=null!==e.action;async function m(e){h(!1),await e()}return(0,n.useEffect)(()=>{if(d)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){u.current?.contains(e.target)||h(!1)}},[d]),(0,t.jsxs)("div",{className:"note-more",ref:u,children:[(0,t.jsx)("button",{className:"btn btn-icon note-more-trigger",onClick:()=>h(e=>!e),title:"更多","aria-label":"更多",children:(0,t.jsx)(l.MoreHorizontal,{size:16})}),d&&(0,t.jsxs)("div",{className:"note-more-menu",children:[(0,t.jsxs)("div",{className:`ui-notice note-sync-status ${e.hasConflict?"warning conflict":""}`,children:[(0,t.jsx)("span",{className:`ui-icon-tile note-sync-status-icon ${e.hasConflict?"warning":""}`,children:e.hasConflict?(0,t.jsx)(a.AlertTriangle,{size:16}):"synced"===e.status?(0,t.jsx)(r.CheckCircle2,{size:16}):(0,t.jsx)(s.Cloud,{size:16})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"云同步"}),(0,t.jsx)("small",{children:e.statusLabel})]})]}),(0,t.jsxs)("button",{className:"note-more-item",onClick:()=>m(e.exportLocalBackup),disabled:!p||f,children:[(0,t.jsx)(o.Upload,{size:16}),"本地导出"]}),(0,t.jsxs)("button",{className:"note-more-item",onClick:()=>m(e.importLocalBackup),disabled:!p||f,children:[(0,t.jsx)(i.Download,{size:16}),"本地导入"]})]})]})}],32391);var u=e.i(16327),d=e.i(67927),h=e.i(26067),p=e.i(63676);e.i(4121);var f=e.i(57667),m=e.i(3789);e.s(["NoteMoveModal",0,function({target:e,directories:a,onMove:r,onClose:s}){let i=(0,m.normalizeNotePath)(e.path||""),l="directory"===e.type?(0,m.normalizeNotePath)(e.path?`${e.path}/${e.name}`:e.name):(0,m.getNoteFullPath)(e),o=a.filter(t=>"directory"!==e.type||t.path!==l&&!t.path.startsWith(`${l}/`)),[c,y]=(0,n.useState)(i),[x,j]=(0,n.useState)(""),[b,g]=(0,n.useState)(new Set),v=(0,m.normalizeNotePath)(x),k=x.trim()?v:c,w=(0,m.normalizeNotePath)(k)===i,N=new Map;for(let e of o){let t=N.get(e.parentPath)||[];t.push(e),N.set(e.parentPath,t)}let S=o.filter(e=>{if(!e.parentPath)return!0;let t=e.parentPath.split("/").filter(Boolean);return t.every((e,n)=>b.has(t.slice(0,n+1).join("/")))}),M=[{label:"全部笔记",path:""},...c.split("/").filter(Boolean).map((e,t,n)=>({label:e,path:n.slice(0,t+1).join("/")}))];function $(e){y((0,m.normalizeNotePath)(e)),j("")}return(0,t.jsx)(f.ModalOverlay,{onClose:s,children:(0,t.jsxs)("div",{className:"note-move-modal",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"modal-header",children:[(0,t.jsx)("h3",{children:"移动笔记"}),(0,t.jsx)("button",{className:"btn btn-icon",onClick:s,children:(0,t.jsx)(p.X,{size:18})})]}),(0,t.jsxs)("div",{className:"note-move-target",children:[(0,t.jsx)("span",{children:"正在移动"}),(0,t.jsx)("strong",{children:e.name})]}),(0,t.jsx)("div",{className:"note-move-path",children:M.map((e,a)=>(0,t.jsxs)(n.default.Fragment,{children:[a>0&&(0,t.jsx)("span",{children:"/"}),(0,t.jsx)("button",{type:"button",onClick:()=>$(e.path),children:e.label})]},e.path||"root"))}),(0,t.jsxs)("div",{className:"note-move-folder-list",children:[(0,t.jsxs)("button",{type:"button",className:`note-move-folder-item ${""===c?"selected":""}`,onClick:()=>$(""),children:[(0,t.jsx)("span",{className:"note-move-folder-spacer"}),(0,t.jsx)(h.Folder,{className:"note-move-folder-icon",size:16}),(0,t.jsx)("span",{children:"全部笔记"})]}),0===o.length?(0,t.jsx)("p",{className:"note-move-empty",children:"还没有可选文件夹"}):S.map(e=>{let n=N.has(e.path),a=b.has(e.path);return(0,t.jsxs)("button",{type:"button",className:`note-move-folder-item note-move-depth-${Math.min(e.depth,4)} ${c===e.path?"selected":""}`,onClick:()=>{var t;$(t=e.path),N.has(t)&&g(e=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n})},children:[n?a?(0,t.jsx)(u.ChevronDown,{className:"note-move-expander",size:14}):(0,t.jsx)(d.ChevronRight,{className:"note-move-expander",size:14}):(0,t.jsx)("span",{className:"note-move-folder-spacer"}),(0,t.jsx)(h.Folder,{className:"note-move-folder-icon",size:16}),(0,t.jsx)("span",{children:e.name}),e.parentPath&&(0,t.jsx)("small",{children:e.parentPath})]},e.path)})]}),(0,t.jsx)("input",{className:"input input-compact",value:x,onChange:e=>j(e.target.value),placeholder:"或输入新目录路径,如 文章/摘录"}),(0,t.jsxs)("div",{className:"note-move-destination",children:["目标位置:",k||"全部笔记"]}),(0,t.jsxs)("div",{className:"modal-actions",children:[(0,t.jsx)("button",{className:"btn btn-secondary",onClick:s,children:"取消"}),(0,t.jsx)("button",{className:"btn btn-primary",onClick:function(){w||r(k)},disabled:w,children:"移动"})]})]})})}],60923);var y=e.i(11241),x=e.i(27648);e.s(["NoteSidebar",0,function({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sidebar-header sidebar-header-link",onClick:()=>{window.location.href="/"},children:[(0,t.jsx)(y.ArrowLeft,{size:18}),(0,t.jsx)("h1",{children:"MOST PEOPLE"})]}),e,(0,t.jsx)(x.default,{})]})}],86512)},67585,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let a=e.r(32061);function r({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new a.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},9885,(e,t,n)=>{"use strict";function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return a}})},52157,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return o}});let a=e.r(18050),r=e.r(74080),s=e.r(63599),i=e.r(9885),l=e.r(43369);function o({moduleIds:e}){if("u">typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let a=t.reactLoadableManifest;for(let t of e){if(!a[t])continue;let e=a[t].files;n.push(...e)}}if(0===n.length)return null;let c=(0,l.getAssetTokenQuery)();return(0,a.jsx)(a.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,i.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,r.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return c}});let a=e.r(18050),r=e.r(71645),s=e.r(67585),i=e.r(52157);function l(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},n=(0,r.lazy)(()=>t.loader().then(l)),c=t.loading;function u(e){let l=c?(0,a.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?r.Suspense:r.Fragment,d=t.ssr?(0,a.jsxs)(a.Fragment,{children:["u"<typeof window?(0,a.jsx)(i.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(n,{...e})]}):(0,a.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(n,{...e})});return(0,a.jsx)(u,{...o?{fallback:l}:{},children:d})}return u.displayName="LoadableComponent",u}},70703,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}});let a=e.r(55682)._(e.r(69093));function r(e,t){let n={};"function"==typeof e&&(n.loader=e);let r={...n,...t};return(0,a.default)({...r,modules:r.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},58559,e=>{"use strict";var t=e.i(18050),n=e.i(71645),a=e.i(70703),r=e.i(18566),s=e.i(56420);let i=(0,s.default)("pencil-ruler",[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13",key:"orapub"}],["path",{d:"m8 6 2-2",key:"115y1s"}],["path",{d:"m18 16 2-2",key:"ee94s4"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17",key:"cfq27r"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);var l=e.i(72382),o=e.i(26091),c=e.i(26067);let u=(0,s.default)("move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]);var d=e.i(6537),h=e.i(96699),p=e.i(10566),f=e.i(77071),m=e.i(56522),y=e.i(66595),x=e.i(35965),j=e.i(73474),b=e.i(63676),g=e.i(59665),v=e.i(39626);e.i(4121);var k=e.i(88361),w=e.i(47910),N=e.i(3593),S=e.i(71192),M=e.i(66112),$=e.i(77816),C=e.i(3789),z=e.i(32391),D=e.i(60923),P=e.i(86512);let O="https://api.most.box/auth/backup";async function T(e,t){let n=await e.clone().json().catch(()=>null);return n?.error||t}function A(e,t){return(0,M.mostEncode)(JSON.stringify({notes:e||[]}),t)}function L(e,t){if(!String(e||"").startsWith("mp://1"))throw Error("无效的备份数据格式");let n=(0,M.mostDecode)(e,t);if(!n)throw Error("解密失败,请确认当前 Web3 登录账号正确");let a=JSON.parse(n);if(!Array.isArray(a.notes))throw Error("备份数据缺少 notes");return a}async function _(e){return(0,C.calculateNoteCid)(JSON.stringify({notes:e||[]}))}async function E(e,t,n=O){let a=Date.now().toString(),r=new URL(n).pathname,s=`${a}:${String(t).toUpperCase()}:${r}`,{address:i,signature:l}=await (0,M.mostSignMessage)(e.danger,s);return{Authorization:`${i},${a},${l}`}}async function U(e,t){let n=JSON.stringify({notes:t||[]}),a=await (0,C.calculateNoteCid)(n);return{cid:a,body:A(t,e.danger),headers:{"Content-Type":"text/plain","x-backup-cid":a,...await E(e,"PUT",O)}}}async function R(e,t,n=O){let a=await U(e,t),r=await fetch(n,{method:"PUT",headers:a.headers,body:a.body});if(!r.ok)throw Error(await T(r,"云备份失败"));return{cid:a.cid}}async function H(e,t=O){let n=await fetch(t,{method:"GET",headers:await E(e,"GET",t)});if(404===n.status)return{found:!1,cid:"",time:0,notes:[]};if(!n.ok)throw Error(await T(n,"云端恢复失败"));let a=await n.text();if(!a)throw Error("云端无备份数据");let r=L(a,e.danger);return{found:!0,cid:n.headers.get("x-backup-cid")||"",time:Number(n.headers.get("x-backup-time")||0),notes:r.notes}}let F=!1,W="",Y="";function I(e,t){return e instanceof Error?e.message:t}let B=(0,a.default)(()=>e.A(71504).then(e=>e.MilkdownEditor),{loadableGenerated:{modules:[36975]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"note-editor-loading",children:"加载编辑器..."})});function V(e,t){return e instanceof Error?e.message:t}function q(){let e=(0,r.useRouter)(),a=(0,r.useSearchParams)(),s=(0,n.useRef)(null),O=function(){let e=(0,S.useUserStore)(e=>e.wallet),t=(0,S.useUserStore)(e=>e.openLoginModal),a=(0,N.useAppStore)(e=>e.addToast),r=(0,N.useAppStore)(e=>e.notes),s=(0,N.useAppStore)(e=>e.importNotes),i=(0,N.useAppStore)(e=>e.localDataReady),[l,o]=(0,n.useState)(null),[c,u]=(0,n.useState)(e?"idle":"disabled"),[d,h]=(0,n.useState)(F),[p,f]=(0,n.useState)(!1),m=(0,n.useRef)(0),y=(0,n.useCallback)(e=>{F=e,h(e)},[]),x=(0,n.useCallback)((e=!1)=>{let n=S.useUserStore.getState().wallet;return n||(e||t(),null)},[a,t]),j=(0,n.useCallback)(async(e={})=>{let{silent:t=!1,confirmConflict:n=!0}=e,r=x(t);if(!r)return u("disabled"),!1;if(F&&n&&!window.confirm("本地数据与云端不一致,本地修改将会覆盖云端数据,是否继续?"))return t||a("已取消同步","info"),u("conflict"),!1;o("save"),u("uploading");try{let e=N.useAppStore.getState().notes;return W=(await R(r,e)).cid,Y=r.address,y(!1),u("synced"),t||a("云端备份已更新","success"),!0}catch(e){return u("error"),t?console.info(I(e,"云备份失败")):a(I(e,"云备份失败"),"error"),!1}finally{o(null)}},[a,x,y]),b=(0,n.useCallback)(async(e={})=>{let{manual:t=!1,uploadWhenMissing:n=!1}=e,r=x(!t);if(!r)return u("disabled"),!1;o(t?"restore":"sync"),u(t?"restoring":"checking");try{let e=await H(r),i=N.useAppStore.getState().notes;if(!e.found){if(y(!1),Y=r.address,n&&i.length>0)return o(null),j({silent:!0,confirmConflict:!1});return u(i.length>0?"idle":"synced"),t&&a("云端暂无备份","info"),!1}let l=e.notes||[],c=await _(i),d=e.cid||await _(l);if(i.length>0&&c!==d&&!window.confirm("云端备份与本地笔记不一致。恢复会覆盖本地笔记,是否继续?"))return y(!0),u("conflict"),t&&a("已取消恢复","info"),!1;return c!==d&&s(l),W=d,Y=r.address,y(!1),u("synced"),t&&a("已从云端恢复","success"),!0}catch(e){return u("error"),t?a(I(e,"云端恢复失败"),"error"):console.info(I(e,"云端恢复失败")),!1}finally{o(null)}},[a,s,x,y,j]),g=(0,n.useCallback)(()=>{let e=x(!1);if(e)try{let t=N.useAppStore.getState().notes,n=A(t,e.danger),r=new Blob([n],{type:"text/plain"}),s=URL.createObjectURL(r),i=document.createElement("a");i.href=s,i.download=`${e.address.slice(-4)}-most-notes-${new Date().toISOString().slice(0,10)}.txt`,i.click(),URL.revokeObjectURL(s),a("笔记已导出到本地","success")}catch(e){a(I(e,"导出失败"),"error")}},[a,x]),v=(0,n.useCallback)(()=>{let e=x(!1);if(!e)return;let t=document.createElement("input");t.type="file",t.accept=".txt",t.onchange=t=>{let n=t.target.files?.[0];if(!n)return;let r=new FileReader;r.onload=async()=>{try{let t=r.result,n=L(t,e.danger);if(N.useAppStore.getState().notes.length>0&&!window.confirm("恢复将覆盖当前本地笔记,是否继续?"))return void a("已取消恢复","info");s(n.notes),a("已从本地恢复笔记","success"),await j({silent:!0})}catch(e){a(I(e,"导入失败"),"error")}},r.readAsText(n)},t.click()},[a,s,x,j]);(0,n.useEffect)(()=>{if(!i)return;if(!e){Y="",W="",f(!1),y(!1),u("disabled");return}if(Y===e.address){f(!0),u(F?"conflict":"synced");return}let t=!1;return f(!1),b({manual:!1,uploadWhenMissing:!0}).finally(()=>{t||f(!0)}),()=>{t=!0}},[i,b,y,e]),(0,n.useEffect)(()=>{if(!e||!i||!p||(m.current+=1,m.current<=1))return;let t=window.setTimeout(async()=>{let e=N.useAppStore.getState().notes;await _(e)!==W&&await j({silent:!0})},900);return()=>window.clearTimeout(t)},[p,i,r,j,e]);let k=(0,n.useMemo)(()=>(function(e){switch(e){case"disabled":return"未登录";case"checking":return"检查中";case"uploading":return"同步中";case"restoring":return"恢复中";case"synced":return"已同步";case"conflict":return"有冲突";case"error":return"同步失败";default:return"待同步"}})(c),[c]);return{action:l,status:c,statusLabel:k,hasConflict:d,uploadNow:j,restoreFromCloud:b,exportLocalBackup:g,importLocalBackup:v}}(),T=(0,N.useAppStore)(e=>e.addToast),E=(0,N.useAppStore)(e=>e.isDarkMode),U=(0,N.useAppStore)(e=>e.setIsDarkMode),q=(0,S.useUserStore)(e=>e.wallet),J=(0,S.useUserStore)(e=>e.openLoginModal),Z=(0,N.useAppStore)(e=>e.notes),G=(0,N.useAppStore)(e=>e.notesPath),K=(0,N.useAppStore)(e=>e.setNotesPath),X=(0,N.useAppStore)(e=>e.saveNote),Q=(0,N.useAppStore)(e=>e.deleteNote),ee=(0,N.useAppStore)(e=>e.renameNote),et=(0,N.useAppStore)(e=>e.localDataReady),en=a.get("cid")||"",ea=Z.find(e=>e.cid===en),er=!!en,es=er&&"edit"===a.get("mode"),[ei,el]=(0,n.useState)(""),[eo,ec]=(0,n.useState)(null),[eu,ed]=(0,n.useState)(null),[eh,ep]=(0,n.useState)(null),[ef,em]=(0,n.useState)(""),[ey,ex]=(0,n.useState)(""),[ej,eb]=(0,n.useState)(""),[eg,ev]=(0,n.useState)(""),[ek,ew]=(0,n.useState)(""),[eN,eS]=(0,n.useState)(""),[eM,e$]=(0,n.useState)(!1),[eC,ez]=(0,n.useState)(""),[eD,eP]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!en){em(""),ex("");return}if(!ea){em(""),ex(et?"笔记不存在":"");return}if(ea.content.startsWith("mp://1")){if(!q){em(""),ex("请先登录 Web3 账号以解密此笔记");return}let e=(0,M.mostDecode)(ea.content,q.danger);if(!e){em(""),ex("无法解密,请确认当前 Web3 账号正确");return}em(e),ex("");return}em(ea.content||""),ex("")},[en,et,ea,q]),(0,n.useEffect)(()=>{if(!es)return void eP(!1);if(!en||!ea){ev(""),ew(""),eS(""),e$(!1),ez(et?"笔记不存在":"");return}if(ev(ea.name),ew(ea.path||""),e$(!0===ea.isSecret||ea.content.startsWith("mp://1")),ea.content.startsWith("mp://1")){if(!q){eS(""),ez("请先登录 Web3 账号以解密此笔记");return}let e=(0,M.mostDecode)(ea.content,q.danger);if(!e){eS(""),ez("无法解密,请确认当前 Web3 账号正确");return}eS(e),ez("");return}eS(ea.content||""),ez("")},[en,es,et,ea,q]),(0,n.useEffect)(()=>{eb(ea?.name||"")},[ea?.cid,ea?.name]);let eO=(0,n.useMemo)(()=>(0,C.filterNotesByPath)(Z,G,ei),[Z,G,ei]),eT=eO.filter(e=>"file"===e.type).length,eA=ea?.isSecret===!0||ea?.content.startsWith("mp://1")===!0,eL=(0,n.useMemo)(()=>{let e=G.split("/").filter(Boolean);return[{label:"全部笔记",path:""},...e.map((t,n)=>({label:t,path:e.slice(0,n+1).join("/")}))]},[G]),e_=(0,n.useMemo)(()=>(function(e){let t=new Set;for(let n of e){let e=(0,C.normalizeNotePath)(n.path).split("/").filter(Boolean);for(let n=0;n<e.length;n+=1)t.add(e.slice(0,n+1).join("/"))}return Array.from(t).sort((e,t)=>e.localeCompare(t,"zh-CN")).map(e=>{let t=e.split("/");return{path:e,name:t[t.length-1]||e,parentPath:t.slice(0,-1).join("/"),depth:Math.max(t.length-1,0)}})})(Z),[Z]);function eE(){return!!q||(J(),!1)}async function eU(){if(eE()){if(!ea)return void T("笔记不存在","error");if(!eg.trim())return void T("请输入笔记名称","warning");eP(!0);try{let t=s.current?.getMarkdown()??eN,n=eM?(0,M.mostEncode)(t,q.danger):t,a=await X({cid:ea.cid,name:eg,path:ek,content:n,isSecret:eM});eS(t),T("笔记已保存","success"),await O.uploadNow({silent:!0}),e.replace(`/note/?cid=${encodeURIComponent(a)}`)}catch(e){T(V(e,"保存失败"),"error")}finally{eP(!1)}}}async function eR(){if(!eE()||!ea)return;let e=ej.trim();if(!e){eb(ea.name),T("请输入笔记名称","warning");return}if(e!==ea.name)try{ee((0,C.getNoteFullPath)(ea),ea.path,e),T("已重命名","success"),await O.uploadNow({silent:!0})}catch(e){eb(ea.name),T(V(e,"重命名失败"),"error")}}async function eH(e){if(eh)try{ee("directory"===eh.type?(0,C.normalizeNotePath)(eh.path?`${eh.path}/${eh.name}`:eh.name):(0,C.getNoteFullPath)(eh),e,eh.name),ep(null),T("已移动","success"),await O.uploadNow({silent:!0})}catch(e){T(V(e,"移动失败"),"error")}}let eF=(0,t.jsxs)("div",{className:"note-header-title",children:[(0,t.jsx)("h2",{className:"header-title",children:"笔记"}),(0,t.jsxs)("span",{children:[Z.length," 篇"]})]}),eW=(0,t.jsxs)("div",{className:"note-theme-wrap",children:[(0,t.jsx)("button",{className:"btn btn-icon",onClick:()=>U(!E),title:"切换主题","aria-label":"切换主题",children:E?(0,t.jsx)(x.Sun,{size:16}):(0,t.jsx)(h.Moon,{size:16})}),(0,t.jsx)(z.NoteMoreMenu,{sync:O})]}),eY=(0,t.jsxs)("section",{className:"note-list-panel note-sidebar-list","aria-label":"笔记列表",children:[(0,t.jsxs)("div",{className:"note-list-header",children:[(0,t.jsx)("div",{className:"note-current-location",children:(0,t.jsx)("div",{className:"note-breadcrumbs",children:eL.map((e,a)=>(0,t.jsxs)(n.Fragment,{children:[a>0&&(0,t.jsx)("span",{children:"/"}),(0,t.jsx)("button",{onClick:()=>K(e.path),children:e.label})]},e.path||"root"))})}),(0,t.jsxs)("span",{className:"note-count",children:[eT," 篇"]})]}),(0,t.jsxs)("div",{className:"note-search",children:[(0,t.jsx)(y.Search,{size:16}),(0,t.jsx)("input",{className:"input input-flex",value:ei,onChange:e=>el(e.target.value),placeholder:"搜索笔记"})]}),0===eO.length?(0,t.jsxs)("div",{className:"ui-empty-state note-empty-state",children:[(0,t.jsx)(p.NotebookPen,{size:32}),(0,t.jsx)("p",{children:ei?"未找到笔记":"还没有笔记"})]}):(0,t.jsx)("div",{className:"note-list",children:eO.map(n=>(0,t.jsx)("article",{className:`ui-list-item note-list-item ${"file"===n.type&&n.cid===en?"active":""}`,children:(0,t.jsxs)("button",{className:`ui-list-item-main note-list-item-main ${"directory"===n.type?"folder":""}`,onClick:()=>{if("directory"===n.type)K((0,C.normalizeNotePath)(n.path?`${n.path}/${n.name}`:n.name));else e.push(`/note/?cid=${encodeURIComponent(n.cid)}`)},children:[(0,t.jsx)("span",{className:`ui-list-icon note-list-icon ${"directory"===n.type?"warning":""}`,children:"directory"===n.type?(0,t.jsx)(c.Folder,{size:18}):n.isSecret?(0,t.jsx)(d.Lock,{size:18}):(0,t.jsx)(o.FileText,{size:18})}),(0,t.jsxs)("span",{className:"ui-list-copy note-list-copy",children:[(0,t.jsx)("span",{className:"ui-list-title note-list-name",children:n.name}),"file"===n.type?(0,t.jsx)("span",{className:"ui-list-desc note-list-preview",children:n.isSecret||n.content.startsWith("mp://1")?"私密内容已加密":String(n.content||"").replace(/```[\s\S]*?```/g," ").replace(/!\[[^\]]*]\([^)]*\)/g," ").replace(/\[([^\]]+)]\([^)]*\)/g,"$1").replace(/[#>*_`~|-]/g," ").replace(/\s+/g," ").trim()||"空白笔记"}):(0,t.jsx)("span",{className:"ui-list-desc note-list-preview",children:"文件夹"})]}),"file"===n.type&&(0,t.jsx)("span",{className:"ui-list-meta note-list-date",children:(0,$.formatDate)(n.updated_at)})]})},`${n.cid}:${n.path}:${n.name}`))}),(0,t.jsx)("div",{className:"note-create-btn",children:(0,t.jsxs)("button",{className:"btn",onClick:function(){eE()&&ec({title:"新建笔记",placeholder:"笔记名称",confirmText:"创建",onConfirm:async t=>{if(eE())try{let n=await X({name:t,path:G,content:"",isSecret:!1});ec(null),T("笔记已创建","success"),await O.uploadNow({silent:!0}),e.push(`/note/?cid=${encodeURIComponent(n)}&mode=edit`)}catch(e){T(V(e,"创建失败"),"error")}}})},children:[(0,t.jsx)(f.Plus,{size:16}),"新笔记"]})})]});return(0,t.jsxs)(g.default,{sidebar:()=>(0,t.jsx)(P.NoteSidebar,{children:eY}),headerTitle:eF,headerRight:eW,children:[(0,t.jsx)("main",{className:`note-page note-browser-page ${er?"has-editor":""}`,children:(0,t.jsx)("section",{className:"note-workspace",children:(0,t.jsx)("section",{className:"note-editor-panel","aria-label":es?"笔记编辑器":"笔记阅读器",children:er?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"note-editor-panel-header",children:[(0,t.jsxs)("div",{className:"note-editor-title-area",children:[es?(0,t.jsx)("input",{className:"note-title-input",value:eg,onChange:e=>ev(e.target.value),placeholder:"笔记名称",disabled:!ea}):ea?(0,t.jsx)("input",{className:"note-title-input",value:ej,onBlur:eR,onChange:e=>eb(e.target.value),onKeyDown:e=>{"Enter"===e.key&&e.currentTarget.blur(),"Escape"===e.key&&(eb(ea.name),e.currentTarget.blur())},placeholder:"笔记名称",title:"重命名"}):(0,t.jsx)("h3",{children:"未命名笔记"}),ea&&(0,t.jsxs)("div",{className:"note-editor-info",children:[(0,t.jsx)("span",{children:es?"编辑模式":"阅读模式"}),(0,t.jsx)("span",{children:es?eM?"私密":"公开":eA?"私密":"公开"}),(0,t.jsx)("span",{children:(0,$.formatDate)(ea.updated_at)})]})]}),(0,t.jsxs)("div",{className:"note-editor-actions",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-icon",onClick:es?function(){e.push(ea?`/note/?cid=${encodeURIComponent(ea.cid)}`:"/note/")}:()=>e.push("/note/"),title:es?"取消":"关闭","aria-label":es?"取消":"关闭",children:(0,t.jsx)(b.X,{size:16})}),es?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:`btn btn-sm ${eM?"btn-warning":"btn-secondary"}`,onClick:()=>e$(!eM),disabled:!ea,children:[eM?(0,t.jsx)(d.Lock,{size:16}):(0,t.jsx)(l.Eye,{size:16}),eM?"私密":"公开"]}),(0,t.jsxs)("button",{className:"btn btn-sm btn-primary",onClick:eU,disabled:eD||!!eC||!ea,children:[(0,t.jsx)(m.Save,{size:16}),eD?"保存中":"保存"]})]}):ea&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",className:"btn btn-icon",onClick:()=>{eE()&&ep(ea)},title:"移动","aria-label":"移动",children:(0,t.jsx)(u,{size:16})}),(0,t.jsx)("button",{type:"button",className:"btn btn-icon note-editor-action-danger",onClick:()=>(function(t){if(!eE())return;let n="directory"===t.type;ed({title:n?"删除文件夹":"删除笔记",message:`确定要删除「${t.name}」吗?此操作不可撤销。`,confirmText:"删除",onConfirm:async()=>{Q(n?void 0:t.cid,t.path,t.name),ed(null),T("已删除","success"),await O.uploadNow({silent:!0}),"file"===t.type&&t.cid===en&&e.push("/note/")}})})(ea),title:"删除","aria-label":"删除",children:(0,t.jsx)(j.Trash2,{size:16})}),(0,t.jsxs)("button",{type:"button",className:"btn btn-sm btn-primary",onClick:()=>{e.push(`/note/?cid=${encodeURIComponent(ea.cid)}&mode=edit`)},disabled:!!ey,title:"编辑","aria-label":"编辑",children:[(0,t.jsx)(i,{size:16}),"编辑"]})]})]})]}),es?eC?(0,t.jsxs)("div",{className:"note-empty-state editor-error",children:[(0,t.jsx)(d.Lock,{size:36}),(0,t.jsx)("p",{children:eC})]}):ea?(0,t.jsx)("div",{className:"note-editor-frame editing",children:(0,t.jsx)(B,{ref:s,content:eN,onChange:eS,className:"milkdown-editor"})}):(0,t.jsxs)("div",{className:"note-empty-state editor-error",children:[(0,t.jsx)(p.NotebookPen,{size:36}),(0,t.jsx)("p",{children:et?"笔记不存在":"加载中..."})]}):ey?(0,t.jsxs)("div",{className:"ui-empty-state note-empty-state editor-error",children:[(0,t.jsx)(d.Lock,{size:36}),(0,t.jsx)("p",{children:ey})]}):ea?(0,t.jsx)("div",{className:"note-editor-frame reading",children:(0,t.jsx)(B,{content:ef,readOnly:!0,className:"milkdown-editor"})}):(0,t.jsxs)("div",{className:"ui-empty-state note-empty-state editor-error",children:[(0,t.jsx)(p.NotebookPen,{size:36}),(0,t.jsx)("p",{children:et?"笔记不存在":"加载中..."})]})]}):(0,t.jsxs)("div",{className:"ui-empty-state note-editor-empty",children:[(0,t.jsx)("div",{className:"ui-empty-icon note-editor-empty-icon",children:(0,t.jsx)(p.NotebookPen,{size:32})}),(0,t.jsx)("h3",{className:"ui-empty-title",children:"没有打开的笔记"}),(0,t.jsx)("p",{className:"ui-empty-desc",children:Z.length>0?"选择一篇笔记继续":"创建第一篇笔记"}),(0,t.jsx)(v.default,{label:"打开笔记列表",variant:"default"})]})})})}),eo&&(0,t.jsx)(w.InputModal,{title:eo.title,placeholder:eo.placeholder,defaultValue:eo.defaultValue,confirmText:eo.confirmText,onConfirm:eo.onConfirm,onClose:()=>ec(null)}),eu&&(0,t.jsx)(k.ConfirmModal,{title:eu.title,message:eu.message,confirmText:eu.confirmText,danger:!0,onConfirm:eu.onConfirm,onClose:()=>ed(null)}),eh&&(0,t.jsx)(D.NoteMoveModal,{target:eh,directories:e_,onMove:eH,onClose:()=>ep(null)})]})}e.s(["default",0,function(){return(0,t.jsx)(n.Suspense,{fallback:(0,t.jsx)("div",{className:"note-editor-loading",children:"加载中..."}),children:(0,t.jsx)(q,{})})}],58559)},71504,e=>{e.v(t=>Promise.all(["static/chunks/3r5wf57k0gys9.js","static/chunks/0o-o9af-grvj8.js","static/chunks/2uget3ephe4e3.js","static/chunks/3fj0amtzqae6f.js"].map(t=>e.l(t))).then(()=>t(36975)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},18967,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return P},MissingStaticPage:function(){return b},NormalizeError:function(){return E},PageNotFoundError:function(){return x},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return s},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return y},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return S}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let r,t=!1;return(...n)=>(t||(t=!0,r=e(...n)),r)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>a.test(e);function c(){let{protocol:e,hostname:r,port:t}=window.location;return`${e}//${r}${t?":"+t:""}`}function l(){let{href:e}=window.location,r=c();return e.substring(r.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let r=e.split("?");return r[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(r[1]?`?${r.slice(1).join("?")}`:"")}async function y(e,r){let t=r.res||r.ctx&&r.ctx.res;if(!e.getInitialProps)return r.ctx&&r.Component?{pageProps:await y(r.Component,r.ctx)}:{};let n=await e.getInitialProps(r);if(t&&f(t))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,m=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class E extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class b extends Error{constructor(e,r){super(),this.message=`Failed to load static file for page: ${e} ${r}`}}class P extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},98183,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});function s(e){let r={};for(let[t,n]of e.entries()){let e=r[t];void 0===e?r[t]=n:Array.isArray(e)?e.push(n):r[t]=[e,n]}return r}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let r=new URLSearchParams;for(let[t,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)r.append(t,i(e));else r.set(t,i(n));return r}function u(e,...r){for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}},18566,(e,r,t)=>{r.exports=e.r(76562)},41220,e=>{"use strict";let r=(0,e.i(56420).default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);e.s(["Server",0,r],41220)},14232,e=>{"use strict";var r=e.i(18050),t=e.i(71645);class n extends t.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){console.error("[ErrorBoundary]",e,r)}handleReload=()=>{window.location.reload()};render(){return this.state.hasError?(0,r.jsxs)("div",{className:"error-boundary-page",children:[(0,r.jsx)("h1",{className:"error-boundary-title",children:"出错了"}),(0,r.jsx)("p",{className:"error-boundary-desc",children:"发生了意外错误,请尝试重新加载页面"}),(0,r.jsx)("button",{onClick:this.handleReload,className:"error-boundary-btn",children:"重新加载"})]}):this.props.children}}e.s(["ErrorBoundary",0,n])},52925,e=>{"use strict";var r=e.i(18050),t=e.i(71645),n=e.i(18566),o=e.i(3593),s=e.i(71192);e.i(4121);var i=e.i(80809),a=e.i(79952),u=e.i(19767);e.s(["default",0,function(){let e=(0,n.usePathname)(),c="/demo"===e||e.startsWith("/demo/"),l=(0,o.useAppStore)(e=>e.checkBackend),d=(0,o.useAppStore)(e=>e.initializeLocalData),f=(0,s.useUserStore)(e=>e.initializeUser),p=(0,s.useUserStore)(e=>e.identity),y=(0,o.useAppStore)(e=>e.loadUserNotes),h=(0,o.useAppStore)(e=>e.resetAppState),m=(0,o.useAppStore)(e=>e.toasts),g=(0,o.useAppStore)(e=>e.removeToast);return((0,t.useEffect)(()=>{c||(d(),f(),l())},[l,d,f,c]),(0,t.useEffect)(()=>{c||(p?y(p.address):h())},[p?.address,c,y,h]),c)?null:(0,r.jsxs)(r.Fragment,{children:[m.map((e,t)=>(0,r.jsx)(i.Toast,{message:e.message,type:e.type,onDone:()=>g(e.id),index:t},e.id)),(0,r.jsx)(a.default,{}),(0,r.jsx)(u.default,{})]})}])}]);
|