draftboard 0.0.1__tar.gz → 0.0.2__tar.gz
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.
- {draftboard-0.0.1 → draftboard-0.0.2}/PKG-INFO +1 -1
- {draftboard-0.0.1 → draftboard-0.0.2}/pyproject.toml +1 -1
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/api.py +7 -3
- draftboard-0.0.2/src/draftboard/static/404.html +1 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/__next.__PAGE__.txt +7 -6
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/__next._full.txt +5 -4
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/__next._tree.txt +1 -1
- draftboard-0.0.2/src/draftboard/static/_next/static/chunks/1o5k4hsaw-ze-.js +1 -0
- draftboard-0.0.2/src/draftboard/static/_next/static/chunks/2s0bp9g8gcrmu.js +1 -0
- draftboard-0.0.1/src/draftboard/static/_next/static/chunks/3u8gxd9uztfzl.js → draftboard-0.0.2/src/draftboard/static/_next/static/chunks/35ixl-9s3l8lo.js +2 -2
- draftboard-0.0.2/src/draftboard/static/_next/static/media/icon.3rgcbsq7up5-i.svg +15 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_not-found/__next._full.txt +3 -2
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_not-found/__next._not-found/__PAGE__.txt +5 -4
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_not-found/__next._tree.txt +1 -1
- draftboard-0.0.2/src/draftboard/static/_not-found.html +1 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_not-found.txt +3 -2
- draftboard-0.0.2/src/draftboard/static/icon.svg +15 -0
- draftboard-0.0.2/src/draftboard/static/index.html +1 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/index.txt +5 -4
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/p/__placeholder__/__next._full.txt +6 -5
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/p/__placeholder__/__next._tree.txt +1 -1
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/p/__placeholder__/__next.p/$d$id/__PAGE__.txt +8 -7
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/p/__placeholder__/preview/__next._full.txt +3 -2
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/p/__placeholder__/preview/__next._tree.txt +1 -1
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/p/__placeholder__/preview/__next.p/$d$id/preview/__PAGE__.txt +5 -4
- draftboard-0.0.2/src/draftboard/static/p/__placeholder__/preview.html +1 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/p/__placeholder__/preview.txt +3 -2
- draftboard-0.0.2/src/draftboard/static/p/__placeholder__.html +1 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/p/__placeholder__.txt +6 -5
- {draftboard-0.0.1 → draftboard-0.0.2}/uv.lock +1 -1
- draftboard-0.0.1/src/draftboard/static/404.html +0 -1
- draftboard-0.0.1/src/draftboard/static/_next/static/chunks/0oheds1fsp9jx.js +0 -1
- draftboard-0.0.1/src/draftboard/static/_next/static/chunks/24xul4hawiu8l.js +0 -1
- draftboard-0.0.1/src/draftboard/static/_not-found.html +0 -1
- draftboard-0.0.1/src/draftboard/static/index.html +0 -1
- draftboard-0.0.1/src/draftboard/static/p/__placeholder__/preview.html +0 -1
- draftboard-0.0.1/src/draftboard/static/p/__placeholder__.html +0 -1
- {draftboard-0.0.1 → draftboard-0.0.2}/.env.example +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/.gitignore +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/.python-version +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/examples/integration_export.pptx +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/examples/sample_deck.json +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/examples/sample_deck.pptx +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/scripts/probe_render.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/__init__.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/__main__.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/agent.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/measure.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/models.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/pptx_export.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/render.py +0 -0
- {draftboard-0.0.1/src/draftboard/static/_next/static/0t_Cdsf-nvbYcwqDy78ch → draftboard-0.0.2/src/draftboard/static/_next/static/N-dcyVhSAwTCNiqIlFvU6}/_buildManifest.js +0 -0
- {draftboard-0.0.1/src/draftboard/static/_next/static/0t_Cdsf-nvbYcwqDy78ch → draftboard-0.0.2/src/draftboard/static/_next/static/N-dcyVhSAwTCNiqIlFvU6}/_clientMiddlewareManifest.js +0 -0
- {draftboard-0.0.1/src/draftboard/static/_next/static/0t_Cdsf-nvbYcwqDy78ch → draftboard-0.0.2/src/draftboard/static/_next/static/N-dcyVhSAwTCNiqIlFvU6}/_ssgManifest.js +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_next/static/chunks/0cz1d0mv5g_q7.js +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_next/static/chunks/1vsonpqt4u2rw.js +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_next/static/chunks/2r7iycbt4s29o.js +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_next/static/chunks/2utugak-w5oge.css +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_next/static/chunks/39_j1bdzreq0m.js +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_next/static/chunks/3qfy96eoyh-ek.js +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_next/static/chunks/3v_59l1qr_8dp.js +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/static/_next/static/chunks/turbopack-2u1d16houkiyo.js +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/storage.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/tasks.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/themes.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/src/draftboard/tools.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/__init__.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/conftest.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/fixtures/decks/long_title.json +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/fixtures/decks/many_bullets.json +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/fixtures/decks/mixed_punctuation.json +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/fixtures/decks/near_full_body.json +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/fixtures/decks/overflow_body.json +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/fixtures/decks/overflow_title.json +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/fixtures/decks/overlong_url.json +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/synthetic_fonts.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_api.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_m0.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_measure.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_models.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_pipeline.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_pptx_export.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_regression_decks.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_storage.py +0 -0
- {draftboard-0.0.1 → draftboard-0.0.2}/tests/test_tools.py +0 -0
|
@@ -829,7 +829,7 @@ def preview_image(project_id: str, name: str):
|
|
|
829
829
|
# ── Single-Port Frontend Hosting (Next.js static export + fallback) ──────────
|
|
830
830
|
|
|
831
831
|
|
|
832
|
-
@app.
|
|
832
|
+
@app.api_route("/", methods=["GET", "HEAD"])
|
|
833
833
|
def index():
|
|
834
834
|
return FileResponse(_web_dir() / "index.html")
|
|
835
835
|
|
|
@@ -843,7 +843,7 @@ def next_static_assets(subpath: str):
|
|
|
843
843
|
return FileResponse(target)
|
|
844
844
|
|
|
845
845
|
|
|
846
|
-
@app.
|
|
846
|
+
@app.api_route("/p/{rest_of_path:path}", methods=["GET", "HEAD"])
|
|
847
847
|
def frontend_project_routes(rest_of_path: str):
|
|
848
848
|
web_root = _web_dir().resolve()
|
|
849
849
|
cleaned = rest_of_path.strip("/")
|
|
@@ -890,12 +890,16 @@ def frontend_project_routes(rest_of_path: str):
|
|
|
890
890
|
return Response(content=body, media_type=media_type)
|
|
891
891
|
|
|
892
892
|
|
|
893
|
-
@app.
|
|
893
|
+
@app.api_route("/{filename}", methods=["GET", "HEAD"])
|
|
894
894
|
def frontend_root_files(filename: str):
|
|
895
895
|
if "/" in filename or filename.startswith("api"):
|
|
896
896
|
raise HTTPException(404, "资源不存在")
|
|
897
897
|
web_root = _web_dir().resolve()
|
|
898
898
|
target = (web_root / filename).resolve()
|
|
899
|
+
if filename == "favicon.ico" and not target.is_file():
|
|
900
|
+
svg_icon = web_root / "icon.svg"
|
|
901
|
+
if svg_icon.is_file():
|
|
902
|
+
return FileResponse(svg_icon, media_type="image/svg+xml")
|
|
899
903
|
if not target.is_relative_to(web_root) or not target.is_file():
|
|
900
904
|
raise HTTPException(404, "资源不存在")
|
|
901
905
|
return FileResponse(target)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/2utugak-w5oge.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3v_59l1qr_8dp.js"/><script src="/_next/static/chunks/2r7iycbt4s29o.js" async=""></script><script src="/_next/static/chunks/39_j1bdzreq0m.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/3qfy96eoyh-ek.js" async=""></script><meta name="robots" content="noindex"/><title>Draftboard · AI 演示文稿工作台</title><meta name="description" content="以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"/><link rel="icon" href="/icon.svg?icon.3rgcbsq7up5-i.svg" sizes="any" type="image/svg+xml"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="min-h-screen bg-[#f5f5f7] text-[#1d1d1f]"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3v_59l1qr_8dp.js","static/chunks/2r7iycbt4s29o.js","static/chunks/39_j1bdzreq0m.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3v_59l1qr_8dp.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/3qfy96eoyh-ek.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n8:I[97367,[\"$2\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nb:\"ViewportBoundary\"\nc:I[97367,[\"$2\"],\"$b\"]\ne:\"MetadataBoundary\"\nf:I[97367,[\"$2\"],\"$e\"]\n11:I[68027,[\"$2\"],\"default\",1]\n:HL[\"/_next/static/chunks/2utugak-w5oge.css\",\"style\"]\n6:X\n7:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],\"p\":false,\"v\":null}}]]\n5:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$6\"},\"c\":\"$Q7\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2utugak-w5oge.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3qfy96eoyh-ek.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]\",\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q5\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"$Lf\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$11\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2utugak-w5oge.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"N-dcyVhSAwTCNiqIlFvU6\"}\n6:C\nd:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n12:I[27201,[\"$2\"],\"IconMark\"]\na:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"Draftboard · AI 演示文稿工作台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.3rgcbsq7up5-i.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L12\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
3:I[39756,["$2"],"default"]
|
|
4
4
|
4:I[37457,["$2"],"default"]
|
|
5
5
|
8:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
-
9:"/_next/static/chunks/
|
|
6
|
+
9:"/_next/static/chunks/1o5k4hsaw-ze-.js"
|
|
7
7
|
a:I[31713,["$2","$9"],"default"]
|
|
8
8
|
d:I[97367,["$2"],"OutletBoundary"]
|
|
9
9
|
e:"$Sreact.suspense"
|
|
@@ -11,17 +11,18 @@ e:"$Sreact.suspense"
|
|
|
11
11
|
12:I[97367,["$2"],"$11"]
|
|
12
12
|
13:"MetadataBoundary"
|
|
13
13
|
14:I[97367,["$2"],"$13"]
|
|
14
|
+
15:I[27201,["$2"],"IconMark"]
|
|
14
15
|
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
15
16
|
6:X
|
|
16
|
-
7:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$L8",null,{"Component":"$a","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@b","$@c"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/
|
|
17
|
-
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]]}],"p":"$@5","v":null,"s":"$6"},"c":"$Q7"},"h":{"r":["$","$1","h",{"children":[null,["$","$L12",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L14",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$e",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]}]}],null]}],null]}],"p":"$@
|
|
17
|
+
7:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$L8",null,{"Component":"$a","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@b","$@c"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/1o5k4hsaw-ze-.js","async":true}]],["$","$Ld",null,{"children":["$","$e",null,{"name":"Next.MetadataOutlet","children":"$@f"}]}]]}],"p":"$@10","v":null,"s":"$6"}}]]
|
|
18
|
+
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]]}],"p":"$@5","v":null,"s":"$6"},"c":"$Q7"},"h":{"r":["$","$1","h",{"children":[null,["$","$L12",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L14",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$e",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}],["$","link","2",{"rel":"icon","href":"/icon.svg?icon.3rgcbsq7up5-i.svg","sizes":"any","type":"image/svg+xml"}],["$","$L15","3",{}]]}]}],null]}],null]}],"p":"$@16","v":null,"s":"$6"}},"a":"$@17","u":"$@18","b":"N-dcyVhSAwTCNiqIlFvU6"}
|
|
18
19
|
b:{}
|
|
19
20
|
c:"$7:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
20
21
|
f:null
|
|
21
22
|
6:300
|
|
22
|
-
|
|
23
|
+
18:true
|
|
23
24
|
6:C
|
|
24
|
-
|
|
25
|
+
17:0
|
|
25
26
|
5:"$undefined"
|
|
26
|
-
|
|
27
|
+
16:"$undefined"
|
|
27
28
|
10:"$undefined"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
3:I[39756,["$2"],"default"]
|
|
4
4
|
4:I[37457,["$2"],"default"]
|
|
5
5
|
6:I[47257,["$2"],"ClientPageRoot"]
|
|
6
|
-
7:"/_next/static/chunks/
|
|
6
|
+
7:"/_next/static/chunks/1o5k4hsaw-ze-.js"
|
|
7
7
|
8:I[31713,["$2","$7"],"default"]
|
|
8
8
|
b:I[97367,["$2"],"OutletBoundary"]
|
|
9
9
|
c:"$Sreact.suspense"
|
|
@@ -13,10 +13,11 @@ f:I[97367,["$2"],"$e"]
|
|
|
13
13
|
12:I[97367,["$2"],"$11"]
|
|
14
14
|
14:I[68027,["$2"],"default",1]
|
|
15
15
|
:HL["/_next/static/chunks/2utugak-w5oge.css","style"]
|
|
16
|
-
5:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$L6",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/
|
|
17
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q5"},"h":{"r":["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","$L12",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$c",null,{"name":"Next.Metadata","children":"$L13"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$14",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"
|
|
16
|
+
5:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$L6",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/1o5k4hsaw-ze-.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],"p":false,"v":null}}]]
|
|
17
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3qfy96eoyh-ek.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"className":"min-h-screen bg-[#f5f5f7] text-[#1d1d1f]","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q5"},"h":{"r":["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","$L12",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$c",null,{"name":"Next.Metadata","children":"$L13"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$14",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2utugak-w5oge.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"N-dcyVhSAwTCNiqIlFvU6"}
|
|
18
18
|
9:{}
|
|
19
19
|
a:"$5:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
20
20
|
10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
21
|
+
15:I[27201,["$2"],"IconMark"]
|
|
21
22
|
d:null
|
|
22
|
-
13:[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}]]
|
|
23
|
+
13:[["$","title","0",{"children":"Draftboard · AI 演示文稿工作台"}],["$","meta","1",{"name":"description","content":"以原始材料为唯一依据,基于确定性排版引擎的 AI 演示文稿工作台"}],["$","link","2",{"rel":"icon","href":"/icon.svg?icon.3rgcbsq7up5-i.svg","sizes":"any","type":"image/svg+xml"}],["$","$L15","3",{}]]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31713,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(18566),a=e.i(71645),s=e.i(89664),o=e.i(62368),i=e.i(56420);let l={name:"pencil",size:24,node:[["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"}]]};l.node;let c=(0,i.f)(l);var u=e.i(77071);let d={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};d.node;let f=(0,i.f)(d);var p=e.i(59659),h=e.i(63676),m=e.i(54858);function x(){let[e,r]=(0,a.useState)("checking"),[n,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!0;async function t(){let t=performance.now();try{let n=new AbortController,a=setTimeout(()=>n.abort(),3500),o=await fetch("/api/projects",{signal:n.signal,cache:"no-store"});if(clearTimeout(a),!e)return;o.ok?(r("online"),s(Math.round(performance.now()-t))):(r("offline"),s(null))}catch{if(!e)return;r("offline"),s(null)}}t();let n=setInterval(t,8e3);return()=>{e=!1,clearInterval(n)}},[]),(0,t.jsxs)("div",{title:"online"===e?`后端已连接 \xb7 ${n??0}ms`:"offline"===e?"未检测到后端服务,请启动 draftboard serve":"检测连接中…",className:"inline-flex items-center gap-1.5 text-[12px] font-medium text-[#6e6e73] select-none",children:[(0,t.jsx)("span",{className:`w-2 h-2 rounded-full ${"online"===e?"bg-[#34c759]":"offline"===e?"bg-[#ff3b30]":"bg-[#ff9500] animate-pulse"}`}),(0,t.jsx)("span",{children:"online"===e?"服务就绪":"offline"===e?"服务离线":"连接中"})]})}var g=e.i(74119);let b=[{bg:"#F5F5F7",title:"#1D1D1F",sub:"#6E6E73",accent:"#0071E3",tag:"PRESENTATION"},{bg:"#0F2922",title:"#F4F7F5",sub:"#9FB8AF",accent:"#2E7D63",tag:"DECK STUDIO"},{bg:"#111113",title:"#FFFFFF",sub:"#A1A1A6",accent:"#2997FF",tag:"KEYNOTE"},{bg:"#23221F",title:"#F4F1EA",sub:"#B8B2A6",accent:"#B4533C",tag:"EDITORIAL"}];function y(e){let t=e.trim();if(!t)return"";if(/^[A-Za-z0-9_-]+$/.test(t))return t.slice(0,48);let r=t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),n=Math.random().toString(36).substring(2,6);if(r.length>=2)return`${r.slice(0,24)}-${n}`;let a=Math.abs(t.split("").reduce((e,t)=>31*e+t.charCodeAt(0)|0,0)).toString(36);return`deck-${a.slice(0,4)}-${n}`}e.s(["default",0,function(){let e=(0,n.useRouter)(),[i,l]=(0,a.useState)([]),[d,j]=(0,a.useState)(""),[v,w]=(0,a.useState)(!1),[N,k]=(0,a.useState)(""),[_,F]=(0,a.useState)(""),[C,E]=(0,a.useState)(!1),[S,$]=(0,a.useState)(""),[A,P]=(0,a.useState)(!1),[M,T]=(0,a.useState)(!1),[D,O]=(0,a.useState)(null),[z,B]=(0,a.useState)(""),[L,R]=(0,a.useState)(null),I=(0,a.useMemo)(()=>y(N),[N]),U=C?_.trim():I;async function Z(){try{let e=((await (0,m.k)("/api/projects")).projects||[]).map(e=>({project_id:e.project_id||"",name:e.name||e.project_id||"",stage:e.stage||"empty",stage_label:e.stage_label||"待上传素材",slide_count:e.slide_count||0,materials_count:e.materials_count||0,insufficient_evidence_count:e.insufficient_evidence_count||0,download_available:!!e.download_available,mtime:e.mtime||Date.now()/1e3})).sort((e,t)=>t.mtime-e.mtime);l(e);let t=e.filter(e=>"empty"===e.stage&&!e.materials_count);t.length>0&&Promise.all(t.map(async e=>{try{let t=await (0,m.k)(`/api/projects/${e.project_id}`);return{...e,name:t.name||e.name,download_available:t.download_available}}catch{return e}})).then(e=>{l(t=>t.map(t=>e.find(e=>e.project_id===t.project_id)||t))})}finally{T(!0)}}async function H(t){t&&t.preventDefault(),$("");let r=N.trim();if(!r)return void $("请输入文稿名称");let n=U.trim();if(!/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/.test(n))return void $("目录标识只能包含字母、数字、下划线和连字符,且以字母或数字开头");P(!0);try{await (0,m.k)("/api/projects",(0,m.Z)("POST",{project_id:n,name:r})),k(""),F(""),E(!1),w(!1),e.push(`/p/${n}`)}catch(e){$(e.message)}finally{P(!1)}}async function W(e){let t=z.trim();if(!t)return void O(null);try{await (0,m.k)(`/api/projects/${e}`,(0,m.Z)("PATCH",{name:t})),l(r=>r.map(r=>r.project_id===e?{...r,name:t}:r))}catch(e){$(e.message)}finally{O(null)}}async function K(e){try{await (0,m.k)(`/api/projects/${e}`,{method:"DELETE"}),l(t=>t.filter(t=>t.project_id!==e)),R(null)}catch(e){$(e.message)}}(0,a.useEffect)(()=>{Z().catch(e=>$(e.message))},[]);let V=(0,a.useMemo)(()=>{if(!d.trim())return i;let e=d.toLowerCase();return i.filter(t=>t.name.toLowerCase().includes(e)||t.project_id.toLowerCase().includes(e))},[i,d]);return(0,t.jsxs)("div",{className:"min-h-screen flex flex-col bg-[#f5f5f7] text-[#1d1d1f]",children:[(0,t.jsxs)("header",{className:"h-[52px] apple-glass border-b border-black/[0.07] px-6 flex items-center justify-between gap-4 sticky top-0 z-30",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(r.default,{href:"/",className:"hover:opacity-85 transition-opacity shrink-0",title:"Draftboard",children:(0,t.jsx)(g.f,{className:"w-7 h-7"})}),(0,t.jsx)("span",{className:"font-semibold text-[15px] tracking-[-0.015em] text-[#1d1d1f]",children:"Draftboard"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(x,{}),i.length>0&&(0,t.jsx)("button",{type:"button",onClick:()=>{w(e=>!e),$("")},className:"px-4 py-1.5 rounded-full bg-[#0071e3] hover:bg-[#0077ed] text-white text-[13px] font-medium transition-colors cursor-pointer flex items-center gap-1.5 shadow-[0_1px_2px_rgba(0,113,227,0.22)]",children:v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.X,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:"取消"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.f,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:"新建文稿"})]})})]})]}),(0,t.jsxs)("main",{className:"flex-1 max-w-[1120px] w-full mx-auto px-6 sm:px-8 py-12 space-y-10",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-[32px] font-semibold tracking-[-0.03em] text-[#1d1d1f]",children:"文稿"}),(0,t.jsx)("p",{className:"text-[15px] text-[#6e6e73]",children:"以原始材料为唯一依据,编译清晰、原生可编辑的演示文稿。"})]}),i.length>3&&(0,t.jsxs)("div",{className:"relative w-full sm:w-64",children:[(0,t.jsx)(f,{className:"w-4 h-4 absolute left-3.5 top-2.5 text-[#86868b]"}),(0,t.jsx)("input",{value:d,onChange:e=>j(e.target.value),placeholder:"搜索文稿…",className:"w-full text-[13.5px] bg-white border border-black/[0.08] rounded-full pl-9 pr-4 py-1.5 text-[#1d1d1f] placeholder-[#86868b] focus:outline-none focus:border-[#0071e3] transition-colors"})]})]}),v&&(0,t.jsxs)("section",{className:"bg-white rounded-2xl p-6 slide-shadow max-w-2xl space-y-4",children:[(0,t.jsx)("div",{className:"text-[15px] font-semibold text-[#1d1d1f]",children:"新建演示文稿"}),(0,t.jsxs)("form",{onSubmit:H,className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2.5",children:[(0,t.jsx)("input",{placeholder:"输入文稿名称,例如:2026 年度技术架构评审",value:N,onChange:e=>{k(e.target.value),C||F(y(e.target.value))},disabled:A,autoFocus:!0,className:"flex-1 text-[15px] bg-[#f5f5f7] focus:bg-white border border-transparent focus:border-[#0071e3] focus:ring-4 focus:ring-[#0071e3]/10 rounded-xl px-4 py-2.5 text-[#1d1d1f] placeholder-[#86868b] outline-none transition-all"}),(0,t.jsx)("button",{type:"submit",disabled:A||!N.trim(),className:"px-5 py-2.5 rounded-full bg-[#0071e3] hover:bg-[#0077ed] text-white text-[14px] font-medium transition-colors disabled:opacity-40 shrink-0 cursor-pointer",children:A?"创建中…":"创建并打开"})]}),N.trim()&&(0,t.jsxs)("div",{className:"flex items-center justify-between text-[12px] text-[#86868b] px-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 font-mono",children:[(0,t.jsx)("span",{children:"标识:"}),C?(0,t.jsx)("input",{value:_,onChange:e=>F(e.target.value),className:"bg-[#f5f5f7] border border-black/10 rounded-lg px-2 py-0.5 text-[12px] text-[#1d1d1f] outline-none focus:border-[#0071e3]"}):(0,t.jsx)("span",{className:"text-[#424245]",children:U})]}),(0,t.jsx)("button",{type:"button",onClick:()=>E(e=>!e),className:"text-[#0071e3] hover:underline cursor-pointer",children:C?"自动生成":"自定义标识"})]}),S&&(0,t.jsx)("div",{className:"text-[13px] text-[#d70015]",children:S})]})]}),i.length>0?(0,t.jsx)("section",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:V.map((e,n)=>{let a=b[n%b.length],i="ready"===e.stage?"text-[#248a3d]":"confirmed"===e.stage?"text-[#0071e3]":"outline_draft"===e.stage?"text-[#b25000]":"text-[#6e6e73]";return(0,t.jsxs)("div",{className:"group space-y-3",children:[(0,t.jsxs)(r.default,{href:`/p/${e.project_id}`,className:"block aspect-[16/9] rounded-[14px] overflow-hidden slide-shadow group-hover:-translate-y-1 transition-all duration-200 p-6 flex flex-col justify-between relative",style:{backgroundColor:a.bg},children:[(0,t.jsx)("div",{className:"text-[10px] font-semibold tracking-[0.12em]",style:{color:a.accent},children:a.tag}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"text-[18px] font-bold tracking-tight line-clamp-2 leading-snug",style:{color:a.title},children:e.name}),(0,t.jsxs)("div",{className:"text-[12px] font-mono opacity-80",style:{color:a.sub},children:[e.materials_count>0?`${e.materials_count} 份素材`:"尚未导入素材",e.insufficient_evidence_count>0?` \xb7 ${e.insufficient_evidence_count} 处待补充`:""]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"w-6 h-[2.5px] rounded-full",style:{backgroundColor:a.accent}}),(0,t.jsx)("span",{className:"text-[11px] tabular-nums",style:{color:a.sub},children:e.slide_count>0?`${e.slide_count} 页`:"空白"})]})]}),(0,t.jsxs)("div",{className:"px-1 space-y-1",children:[D===e.project_id?(0,t.jsxs)("form",{onSubmit:t=>{t.preventDefault(),W(e.project_id)},className:"flex items-center gap-1.5",children:[(0,t.jsx)("input",{value:z,onChange:e=>B(e.target.value),autoFocus:!0,className:"flex-1 min-w-0 text-[14.5px] font-semibold bg-white border border-[#0071e3] rounded-lg px-2.5 py-1 text-[#1d1d1f] outline-none"}),(0,t.jsx)("button",{type:"submit",className:"p-1.5 rounded-lg bg-[#0071e3] text-white cursor-pointer",title:"保存名称",children:(0,t.jsx)(s.f,{className:"w-3.5 h-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>O(null),className:"p-1.5 rounded-lg bg-black/[0.05] text-[#6e6e73] cursor-pointer",title:"取消",children:(0,t.jsx)(h.X,{className:"w-3.5 h-3.5"})})]}):L===e.project_id?(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 py-0.5 px-2 rounded-xl bg-[#fff2f2] border border-[#ff3b30]/20",children:[(0,t.jsx)("span",{className:"text-[12.5px] font-medium text-[#d70015] truncate",children:"确认删除此文稿?"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:()=>void K(e.project_id),className:"px-2.5 py-0.5 rounded-full bg-[#ff3b30] text-white text-[12px] font-medium cursor-pointer",children:"删除"}),(0,t.jsx)("button",{type:"button",onClick:()=>R(null),className:"px-2 py-0.5 rounded-full text-[#6e6e73] hover:text-[#1d1d1f] text-[12px] cursor-pointer",children:"取消"})]})]}):(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(r.default,{href:`/p/${e.project_id}`,className:"text-[15.5px] font-semibold text-[#1d1d1f] group-hover:text-[#0071e3] transition-colors truncate",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{R(null),O(e.project_id),B(e.name)},className:"text-[#86868b] hover:text-[#1d1d1f] p-1 rounded-full hover:bg-black/[0.05] opacity-0 group-hover:opacity-100 transition-all cursor-pointer",title:"重命名文稿",children:(0,t.jsx)(c,{className:"w-3.5 h-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>{O(null),R(e.project_id)},className:"text-[#86868b] hover:text-[#d70015] p-1 rounded-full hover:bg-black/[0.05] opacity-0 group-hover:opacity-100 transition-all cursor-pointer",title:"删除文稿",children:(0,t.jsx)(p.f,{className:"w-3.5 h-3.5"})}),e.download_available&&(0,t.jsx)("a",{href:`/api/projects/${e.project_id}/download`,download:!0,className:"text-[#86868b] hover:text-[#1d1d1f] p-1 rounded-full hover:bg-black/[0.05] transition-colors",title:"下载 PPTX",children:(0,t.jsx)(o.f,{className:"w-3.5 h-3.5"})})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-[13px] text-[#6e6e73]",children:[(0,t.jsxs)("span",{children:[e.slide_count>0?`${e.slide_count} 页 \xb7 `:"",function(e){if(!e)return"—";let t=Date.now(),r=e<1e11?1e3*e:e,n=Math.floor((t-r)/1e3);if(n<60)return"刚刚更新";let a=Math.floor(n/60);if(a<60)return`${a} 分钟前`;let s=Math.floor(a/60);if(s<24)return`${s} 小时前`;let o=Math.floor(s/24);if(o<7)return`${o} 天前`;let i=new Date(r);return`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`}(e.mtime)]}),(0,t.jsx)("span",{className:`font-medium ${i}`,children:e.stage_label})]})]})]},e.project_id)})}):M?(0,t.jsxs)("section",{className:"bg-white rounded-[20px] p-10 sm:p-14 slide-shadow max-w-xl mx-auto text-center space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h2",{className:"text-[22px] font-semibold tracking-[-0.02em] text-[#1d1d1f]",children:"创建你的第一份演示文稿"}),(0,t.jsx)("p",{className:"text-[14.5px] text-[#6e6e73] leading-relaxed",children:"命名一个项目,拖入笔记或图片,Draftboard 将为你提炼可溯源大纲并导出原生 PPTX。"})]}),(0,t.jsxs)("form",{onSubmit:H,className:"space-y-3 text-left max-w-md mx-auto",children:[(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2.5",children:[(0,t.jsx)("input",{placeholder:"文稿名称(例如:2026 技术复盘)",value:N,onChange:e=>{k(e.target.value),C||F(y(e.target.value))},disabled:A,autoFocus:!0,className:"flex-1 text-[15px] bg-[#f5f5f7] focus:bg-white border border-transparent focus:border-[#0071e3] focus:ring-4 focus:ring-[#0071e3]/10 rounded-xl px-4 py-2.5 text-[#1d1d1f] placeholder-[#86868b] outline-none transition-all"}),(0,t.jsx)("button",{type:"submit",disabled:A||!N.trim(),className:"px-5 py-2.5 rounded-full bg-[#0071e3] hover:bg-[#0077ed] text-white text-[14px] font-medium transition-colors disabled:opacity-40 shrink-0 cursor-pointer",children:A?"创建中…":"开始创作"})]}),S&&(0,t.jsx)("div",{className:"text-[13px] text-[#d70015]",children:S})]})]}):null]})]})}],31713)},74119,e=>{"use strict";var t=e.i(43476);e.s(["f",0,function({className:e="w-7 h-7"}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none",className:e,"aria-label":"Draftboard",children:[(0,t.jsx)("rect",{width:"64",height:"64",rx:"16",fill:"#111113"}),(0,t.jsx)("path",{fill:"#FFFFFF",fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H20.5C26.8 18 30.5 22.8 30.5 32C30.5 41.2 26.8 46 20.5 46H11V18ZM15.8 22.6V41.4H20.2C23.7 41.4 25.6 38.4 25.6 32C25.6 25.6 23.7 22.6 20.2 22.6H15.8Z"}),(0,t.jsx)("path",{fill:"#FFFFFF",fillRule:"evenodd",clipRule:"evenodd",d:"M34 18H44.5C49.4 18 52.3 20.8 52.3 25.1C52.3 28.2 50.6 30.5 47.8 31.4C51.2 32.3 53.2 34.9 53.2 38.6C53.2 43.3 49.9 46 44.8 46H34V18ZM38.8 22.4V29.6H44C46.2 29.6 47.5 28.3 47.5 26C47.5 23.7 46.2 22.4 44 22.4H38.8ZM38.8 33.8V41.6H44.4C46.9 41.6 48.3 40.2 48.3 37.7C48.3 35.2 46.9 33.8 44.4 33.8H38.8Z"})]})}])},54858,e=>{"use strict";async function t(e,t){let r=await fetch(e,t);if(!r.ok){let e=r.statusText;try{e=(await r.json()).detail||e}catch{}throw Error(e)}return r.json()}e.s(["B",0,[{id:"keynote_light",name:"苹果白",description:"纯净画布 · 极简黑字",swatches:{bg:"#FBFBFD",cover_bg:"#F5F5F7",title:"#1D1D1F",cover_title:"#1D1D1F",body:"#424245",cover_body:"#6E6E73",accent:"#0071E3",muted:"#86868B",divider:"#E5E5EA",surface:"#FFFFFF"}},{id:"keynote_dark",name:"深空钛黑",description:"发布会暗黑 · 银灰层次",swatches:{bg:"#111113",cover_bg:"#000000",title:"#F5F5F7",cover_title:"#FFFFFF",body:"#A1A1A6",cover_body:"#86868B",accent:"#2997FF",muted:"#6E6E73",divider:"#262629",surface:"#1C1C1F"}},{id:"nordic_pine",name:"松柏森绿",description:"深松封面 · 象牙正文",swatches:{bg:"#FAFBF9",cover_bg:"#0F2922",title:"#10241E",cover_title:"#F4F7F5",body:"#3D4F49",cover_body:"#9FB8AF",accent:"#2E7D63",muted:"#7E948C",divider:"#E3EAE6",surface:"#F2F6F4"}},{id:"gallery_sand",name:"美术馆暖石",description:"亚麻纸感 · 陶土点缀",swatches:{bg:"#F4F1EA",cover_bg:"#23221F",title:"#1F1E1B",cover_title:"#F4F1EA",body:"#4F4B45",cover_body:"#B8B2A6",accent:"#B4533C",muted:"#948E84",divider:"#E3DDD2",surface:"#ECE7DD"}}],"k",0,t,"Z",0,function(e,t){return{method:e,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}}])},56420,62368,e=>{"use strict";var t=e.i(71645);let r=(...e)=>{let t=new Set;for(let r of e)if("string"==typeof r)for(let e of r.split(/\s+/))e&&t.add(e);return[...t].join(" ")},n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},a=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:s,width:o,height:i,strokeWidth:l,absoluteStrokeWidth:c,nonScalingStroke:u,className:d="",children:f,iconNode:p=[],icon:h={node:p,aliases:[],size:24},...m},x)=>{let{size:g=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,nonScalingStroke:j=!1,color:v="currentColor",className:w=""}=(0,t.useContext)(a)??{},N=!!f||(e=>{if(null==e||"object"!=typeof e)return!1;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(t.startsWith("aria-")||"role"===t||"title"===t)&&null!=e[t])return!0;return!1})(m),[k,_,F=[]]=function(e,t={}){return function(e,t={}){let a=t.attributeNames??{},s=e=>a[e]??e,o=e.size??e.width??n.width,i=e.size??e.height??n.height,l=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],c=[...e.name?[`lucide-${e.name}`]:[],...l],u=t.className?.split(" ").filter(Boolean)??[],d=!1===t.includeDefaultClasses?r(...u):r("lucide",...c,...u),f=t.absoluteStrokeWidth?Number(t.strokeWidth??n["stroke-width"])*Number(e.size??e.width??n.width)/Number(t.size??t.width??n.width):t.strokeWidth??n["stroke-width"];return["svg",{...Object.entries(n).reduce((e,[t,r])=>(e[s(t)]=r,e),{}),..."color"in t&&t.color&&{[s("stroke")]:t.color},..."size"in t&&null!=t.size&&{[s("width")]:t.size,[s("height")]:t.size},..."width"in t&&null!=t.width&&{[s("width")]:t.width},..."height"in t&&null!=t.height&&{[s("height")]:t.height},[s("stroke-width")]:f,...d&&{[s("class")]:d},[s("viewBox")]:`0 0 ${o} ${i}`,...!1===t.hasA11yProp?{[s("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,n,a]=e,o=t.nonScalingStroke?{[s("vector-effect")]:"non-scaling-stroke",...n}:n;return a?[r,o,a]:[r,o]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(h,{color:e??v,width:o??s??g,height:i??s??g,strokeWidth:l??b,absoluteStrokeWidth:c??y,nonScalingStroke:u??j,className:r(w,d),hasA11yProp:N,attributes:m});return(0,t.createElement)(k,{ref:x,..._},[...F.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(f)?f:[f]])});function o(e,r=[],n=[]){let a,i="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:(e.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join("-").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,r,n):e,l=(0,t.forwardRef)(({className:e,...r},n)=>(0,t.createElement)(s,{ref:n,icon:i,className:e,...r}));return i.name&&(l.displayName=(a=(e=>{let t="",r=!1;for(let n of e){if("-"===n||"_"===n||n<=" "){r=t.length>0;continue}0===t.length?t+=n.toLowerCase():t+=r?n.toUpperCase():n,r=!1}return t})(i.name)).charAt(0).toUpperCase()+a.slice(1)),l}e.s(["f",0,o],56420);let i={name:"download",size:24,node:[["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"}]]};i.node;let l=o(i);e.s(["f",0,l],62368)},89664,77071,e=>{"use strict";var t=e.i(56420);let r={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],89664);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],77071)},59659,e=>{"use strict";var t=e.i(56420);let r={name:"trash",size:24,node:[["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"}]],aliases:["trash-2"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],59659)},63676,e=>{"use strict";var t=e.i(56420);let r={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};r.node;let n=(0,t.f)(r);e.s(["X",0,n],63676)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(90809),o=e.r(43476),i=s._(e.r(71645)),l=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),f=e.r(5550),p=e.r(88540),h=e.r(91949),m=e.r(73668),x=e.r(9396);function g(t){var r;let n,a,s,[g,y]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,i.useRef)(null),{href:v,as:w,children:N,prefetch:k=null,passHref:_,replace:F,shallow:C,scroll:E,onClick:S,onMouseEnter:$,onTouchStart:A,legacyBehavior:P=!1,onNavigate:M,transitionTypes:T,ref:D,unstable_dynamicOnHover:O,...z}=t;n=N,P&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let B=i.default.useContext(c.AppRouterContext),L=!1!==k,R=!1===k?"none":!0===k?"full":"auto",I="none"!==R?"auto"===R?x.FetchStrategy.PPR:x.FetchStrategy.Full:x.FetchStrategy.PPR,U="string"==typeof(r=w||v)?r:(0,l.formatUrl)(r);if(P){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");a=i.default.Children.only(n)}let Z=P?a&&"object"==typeof a&&a.ref:D,H,W=i.default.useCallback(e=>(null!==B&&(j.current=(0,h.mountLinkInstance)(e,U,B,I,L,y,H)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[L,U,B,I,y,H]),K={ref:(0,u.useMergedRef)(W,Z),onClick(t){P||"function"!=typeof S||S(t),P&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,a,s,o,i,l="none"){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{navigate:d}=e.r(32916);d(r,a?"replace":"push",!1===s?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,i,l)}}(t,U,j,F,E,M,T,R)},onMouseEnter(e){P||"function"!=typeof $||$(e),P&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),B&&L&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){P||"function"!=typeof A||A(e),P&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),B&&L&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,d.isAbsoluteUrl)(U)?K.href=U:P&&!_&&("a"!==a.type||"href"in a.props)||(K.href=(0,f.addBasePath)(U)),s=P?i.default.cloneElement(a,K):(0,o.jsx)("a",{...z,...K,children:n}),(0,o.jsx)(b.Provider,{value:g,children:s})}let b=(0,i.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return i(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(18967),a=e.r(52817);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return x},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=["CLS","FCP","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&i.test(e)};function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.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 t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,x=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},18566,(e,t,r)=>{t.exports=e.r(76562)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74119,e=>{"use strict";var t=e.i(43476);e.s(["f",0,function({className:e="w-7 h-7"}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none",className:e,"aria-label":"Draftboard",children:[(0,t.jsx)("rect",{width:"64",height:"64",rx:"16",fill:"#111113"}),(0,t.jsx)("path",{fill:"#FFFFFF",fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H20.5C26.8 18 30.5 22.8 30.5 32C30.5 41.2 26.8 46 20.5 46H11V18ZM15.8 22.6V41.4H20.2C23.7 41.4 25.6 38.4 25.6 32C25.6 25.6 23.7 22.6 20.2 22.6H15.8Z"}),(0,t.jsx)("path",{fill:"#FFFFFF",fillRule:"evenodd",clipRule:"evenodd",d:"M34 18H44.5C49.4 18 52.3 20.8 52.3 25.1C52.3 28.2 50.6 30.5 47.8 31.4C51.2 32.3 53.2 34.9 53.2 38.6C53.2 43.3 49.9 46 44.8 46H34V18ZM38.8 22.4V29.6H44C46.2 29.6 47.5 28.3 47.5 26C47.5 23.7 46.2 22.4 44 22.4H38.8ZM38.8 33.8V41.6H44.4C46.9 41.6 48.3 40.2 48.3 37.7C48.3 35.2 46.9 33.8 44.4 33.8H38.8Z"})]})}])},54858,e=>{"use strict";async function t(e,t){let r=await fetch(e,t);if(!r.ok){let e=r.statusText;try{e=(await r.json()).detail||e}catch{}throw Error(e)}return r.json()}e.s(["B",0,[{id:"keynote_light",name:"苹果白",description:"纯净画布 · 极简黑字",swatches:{bg:"#FBFBFD",cover_bg:"#F5F5F7",title:"#1D1D1F",cover_title:"#1D1D1F",body:"#424245",cover_body:"#6E6E73",accent:"#0071E3",muted:"#86868B",divider:"#E5E5EA",surface:"#FFFFFF"}},{id:"keynote_dark",name:"深空钛黑",description:"发布会暗黑 · 银灰层次",swatches:{bg:"#111113",cover_bg:"#000000",title:"#F5F5F7",cover_title:"#FFFFFF",body:"#A1A1A6",cover_body:"#86868B",accent:"#2997FF",muted:"#6E6E73",divider:"#262629",surface:"#1C1C1F"}},{id:"nordic_pine",name:"松柏森绿",description:"深松封面 · 象牙正文",swatches:{bg:"#FAFBF9",cover_bg:"#0F2922",title:"#10241E",cover_title:"#F4F7F5",body:"#3D4F49",cover_body:"#9FB8AF",accent:"#2E7D63",muted:"#7E948C",divider:"#E3EAE6",surface:"#F2F6F4"}},{id:"gallery_sand",name:"美术馆暖石",description:"亚麻纸感 · 陶土点缀",swatches:{bg:"#F4F1EA",cover_bg:"#23221F",title:"#1F1E1B",cover_title:"#F4F1EA",body:"#4F4B45",cover_body:"#B8B2A6",accent:"#B4533C",muted:"#948E84",divider:"#E3DDD2",surface:"#ECE7DD"}}],"k",0,t,"Z",0,function(e,t){return{method:e,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}}])},56420,62368,e=>{"use strict";var t=e.i(71645);let r=(...e)=>{let t=new Set;for(let r of e)if("string"==typeof r)for(let e of r.split(/\s+/))e&&t.add(e);return[...t].join(" ")},n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},o=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:i,width:a,height:s,strokeWidth:l,absoluteStrokeWidth:u,nonScalingStroke:c,className:d="",children:f,iconNode:h=[],icon:p={node:h,aliases:[],size:24},...y},g)=>{let{size:m=24,strokeWidth:v=2,absoluteStrokeWidth:b=!1,nonScalingStroke:F=!1,color:w="currentColor",className:k=""}=(0,t.useContext)(o)??{},E=!!f||(e=>{if(null==e||"object"!=typeof e)return!1;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(t.startsWith("aria-")||"role"===t||"title"===t)&&null!=e[t])return!0;return!1})(y),[C,_,j=[]]=function(e,t={}){return function(e,t={}){let o=t.attributeNames??{},i=e=>o[e]??e,a=e.size??e.width??n.width,s=e.size??e.height??n.height,l=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],u=[...e.name?[`lucide-${e.name}`]:[],...l],c=t.className?.split(" ").filter(Boolean)??[],d=!1===t.includeDefaultClasses?r(...c):r("lucide",...u,...c),f=t.absoluteStrokeWidth?Number(t.strokeWidth??n["stroke-width"])*Number(e.size??e.width??n.width)/Number(t.size??t.width??n.width):t.strokeWidth??n["stroke-width"];return["svg",{...Object.entries(n).reduce((e,[t,r])=>(e[i(t)]=r,e),{}),..."color"in t&&t.color&&{[i("stroke")]:t.color},..."size"in t&&null!=t.size&&{[i("width")]:t.size,[i("height")]:t.size},..."width"in t&&null!=t.width&&{[i("width")]:t.width},..."height"in t&&null!=t.height&&{[i("height")]:t.height},[i("stroke-width")]:f,...d&&{[i("class")]:d},[i("viewBox")]:`0 0 ${a} ${s}`,...!1===t.hasA11yProp?{[i("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,n,o]=e,a=t.nonScalingStroke?{[i("vector-effect")]:"non-scaling-stroke",...n}:n;return o?[r,a,o]:[r,a]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(p,{color:e??w,width:a??i??m,height:s??i??m,strokeWidth:l??v,absoluteStrokeWidth:u??b,nonScalingStroke:c??F,className:r(k,d),hasA11yProp:E,attributes:y});return(0,t.createElement)(C,{ref:g,..._},[...j.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(f)?f:[f]])});function a(e,r=[],n=[]){let o,s="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:(e.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join("-").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,r,n):e,l=(0,t.forwardRef)(({className:e,...r},n)=>(0,t.createElement)(i,{ref:n,icon:s,className:e,...r}));return s.name&&(l.displayName=(o=(e=>{let t="",r=!1;for(let n of e){if("-"===n||"_"===n||n<=" "){r=t.length>0;continue}0===t.length?t+=n.toLowerCase():t+=r?n.toUpperCase():n,r=!1}return t})(s.name)).charAt(0).toUpperCase()+o.slice(1)),l}e.s(["f",0,a],56420);let s={name:"download",size:24,node:[["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"}]]};s.node;let l=a(s);e.s(["f",0,l],62368)},89664,77071,e=>{"use strict";var t=e.i(56420);let r={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],89664);let o={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};o.node;let i=(0,t.f)(o);e.s(["f",0,i],77071)},41120,e=>{"use strict";var t=e.i(56420);let r={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],41120)},59659,e=>{"use strict";var t=e.i(56420);let r={name:"trash",size:24,node:[["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"}]],aliases:["trash-2"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],59659)},63676,e=>{"use strict";var t=e.i(56420);let r={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};r.node;let n=(0,t.f)(r);e.s(["X",0,n],63676)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(90809),a=e.r(43476),s=i._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),y=e.r(73668),g=e.r(9396);function m(t){var r;let n,o,i,[m,b]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),F=(0,s.useRef)(null),{href:w,as:k,children:E,prefetch:C=null,passHref:_,replace:j,shallow:S,scroll:P,onClick:x,onMouseEnter:M,onTouchStart:A,legacyBehavior:N=!1,onNavigate:O,transitionTypes:B,ref:T,unstable_dynamicOnHover:L,...R}=t;n=E,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let z=s.default.useContext(u.AppRouterContext),D=!1!==C,$=!1===C?"none":!0===C?"full":"auto",U="none"!==$?"auto"===$?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,I="string"==typeof(r=k||w)?r:(0,l.formatUrl)(r);if(N){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=s.default.Children.only(n)}let H=N?o&&"object"==typeof o&&o.ref:T,W,V=s.default.useCallback(e=>(null!==z&&(F.current=(0,p.mountLinkInstance)(e,I,z,U,D,b,W)),()=>{F.current&&((0,p.unmountLinkForCurrentNavigation)(F.current),F.current=null),(0,p.unmountPrefetchableInstance)(e)}),[D,I,z,U,b,W]),Z={ref:(0,c.useMergedRef)(V,H),onClick(t){N||"function"!=typeof x||x(t),N&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!z||t.defaultPrevented||function(t,r,n,o,i,a,s,l="none"){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,y.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{navigate:d}=e.r(32916);d(r,o?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,s,l)}}(t,I,F,j,P,O,B,$)},onMouseEnter(e){N||"function"!=typeof M||M(e),N&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),z&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){N||"function"!=typeof A||A(e),N&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),z&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(I)?Z.href=I:N&&!_&&("a"!==o.type||"href"in o.props)||(Z.href=(0,f.addBasePath)(I)),i=N?s.default.cloneElement(o,Z):(0,a.jsx)("a",{...R,...Z,children:n}),(0,a.jsx)(v.Provider,{value:m,children:i})}let v=(0,s.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${o}${c}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),o=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return F},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return y},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return k}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let y="u">typeof performance,g=y&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class F extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function k(e){return JSON.stringify({message:e.message,stack:e.stack})}},18566,(e,t,r)=>{t.exports=e.r(76562)}]);
|