wrong-notebook 2026.10.30 → 2026.10.31-2
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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +2 -0
- package/.next/build-manifest.json +14 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +40 -1
- package/.next/server/app/_global-error/page.js +3 -3
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin/page.js +2 -2
- package/.next/server/app/admin/page.js.nft.json +1 -1
- package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin/user/[id]/page.js +2 -2
- package/.next/server/app/admin/user/[id]/page.js.nft.json +1 -1
- package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/api/admin/dashboard/route.js +13 -13
- package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/migrate-tags/route.js +5 -5
- package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/system-reset/route.js +5 -4
- package/.next/server/app/api/admin/system-reset/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/users/[id]/detail/route.js +13 -13
- package/.next/server/app/api/admin/users/[id]/detail/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/users/[id]/route.js +4 -4
- package/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/users/route.js +6 -6
- package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/models/route.js +9 -9
- package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/test/route.js +11 -11
- package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
- package/.next/server/app/api/analytics/route.js +13 -13
- package/.next/server/app/api/analytics/route.js.nft.json +1 -1
- package/.next/server/app/api/analyze/route.js +13 -12
- package/.next/server/app/api/analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/[...nextauth]/route.js +3 -3
- package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/delete/route.js +5 -4
- package/.next/server/app/api/error-items/[id]/delete/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/figure/route.js +15 -14
- package/.next/server/app/api/error-items/[id]/figure/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/fix-latex/route.js +14 -13
- package/.next/server/app/api/error-items/[id]/fix-latex/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/geogebra/route.js +14 -13
- package/.next/server/app/api/error-items/[id]/geogebra/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/image/route.js +4 -4
- package/.next/server/app/api/error-items/[id]/image/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/notes/route.js +5 -4
- package/.next/server/app/api/error-items/[id]/notes/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/practice-records/route.js +5 -5
- package/.next/server/app/api/error-items/[id]/practice-records/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/reanswer/route.js +15 -14
- package/.next/server/app/api/error-items/[id]/reanswer/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/retag/route.js +14 -13
- package/.next/server/app/api/error-items/[id]/retag/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/route.js +5 -5
- package/.next/server/app/api/error-items/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +15 -14
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/svg-animation/route.js +15 -14
- package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/batch-delete/route.js +5 -4
- package/.next/server/app/api/error-items/batch-delete/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/clear/route.js +5 -4
- package/.next/server/app/api/error-items/clear/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/list/route.js +6 -5
- package/.next/server/app/api/error-items/list/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/route.js +16 -16
- package/.next/server/app/api/error-items/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/short/[shortId]/route.js +5 -5
- package/.next/server/app/api/error-items/short/[shortId]/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/similarity/route.js +4 -4
- package/.next/server/app/api/error-items/similarity/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +17 -16
- package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/results/route.js +15 -14
- package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/retry/route.js +15 -14
- package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/route.js +15 -14
- package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/route.js +13 -12
- package/.next/server/app/api/exams/route.js.nft.json +1 -1
- package/.next/server/app/api/export/route.js +6 -6
- package/.next/server/app/api/export/route.js.nft.json +1 -1
- package/.next/server/app/api/geogebra-analyze/route.js +13 -12
- package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/health/route.js +2 -2
- package/.next/server/app/api/health/route.js.nft.json +1 -1
- package/.next/server/app/api/import/route.js +18 -17
- package/.next/server/app/api/import/route.js.nft.json +1 -1
- package/.next/server/app/api/initialize/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/initialize/route/build-manifest.json +12 -0
- package/.next/server/app/api/initialize/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/initialize/route.js +12 -0
- package/.next/server/app/api/initialize/route.js.map +5 -0
- package/.next/server/app/api/initialize/route.js.nft.json +1 -0
- package/.next/server/app/api/initialize/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/logs/frontend/route.js +5 -4
- package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/checkin/route.js +6 -6
- package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/login/route.js +5 -5
- package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/route.js +6 -6
- package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/retag/route.js +16 -15
- package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/route.js +5 -4
- package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/route.js +6 -5
- package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
- package/.next/server/app/api/openclaw/batch-upload/route.js +15 -14
- package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/generate/route.js +15 -14
- package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/grade/route.js +12 -12
- package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/[id]/route.js +13 -13
- package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/route.js +13 -13
- package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
- package/.next/server/app/api/reanswer/route.js +13 -12
- package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
- package/.next/server/app/api/register/route.js +5 -4
- package/.next/server/app/api/register/route.js.nft.json +1 -1
- package/.next/server/app/api/register/status/route.js +5 -3
- package/.next/server/app/api/register/status/route.js.nft.json +1 -1
- package/.next/server/app/api/requests/[id]/route.js +5 -5
- package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/review/due/route.js +13 -13
- package/.next/server/app/api/review/due/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js +7 -7
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/route.js +5 -5
- package/.next/server/app/api/setup/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/practice/clear/route.js +5 -4
- package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/practice/route.js +6 -6
- package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/route.js +4 -4
- package/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/stats/route.js +4 -4
- package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/suggestions/route.js +4 -4
- package/.next/server/app/api/tags/suggestions/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route.js +6 -5
- package/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/[id]/route.js +7 -7
- package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/batch/route.js +9 -8
- package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/route.js +8 -8
- package/.next/server/app/api/tts/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/status/route.js +7 -7
- package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
- package/.next/server/app/api/user/route.js +13 -13
- package/.next/server/app/api/user/route.js.nft.json +1 -1
- package/.next/server/app/api/version/route.js +2 -2
- package/.next/server/app/api/version/route.js.nft.json +1 -1
- package/.next/server/app/error-items/[id]/page.js +2 -2
- package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
- package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/exams/[id]/page.js +2 -2
- package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
- package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/exams/[id]/print/page.js +2 -2
- package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
- package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
- package/.next/server/app/exams/page.js +2 -2
- package/.next/server/app/exams/page.js.nft.json +1 -1
- package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js +2 -2
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/initialize/page/app-paths-manifest.json +3 -0
- package/.next/server/app/initialize/page/build-manifest.json +22 -0
- package/.next/server/app/initialize/page/next-font-manifest.json +11 -0
- package/.next/server/app/initialize/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/initialize/page/server-reference-manifest.json +4 -0
- package/.next/server/app/initialize/page.js +14 -0
- package/.next/server/app/initialize/page.js.map +5 -0
- package/.next/server/app/initialize/page.js.nft.json +1 -0
- package/.next/server/app/initialize/page_client-reference-manifest.js +3 -0
- package/.next/server/app/login/page.js +2 -2
- package/.next/server/app/login/page.js.nft.json +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/notebooks/[id]/add/page.js +2 -2
- package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
- package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
- package/.next/server/app/notebooks/[id]/page.js +2 -2
- package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
- package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/notebooks/page.js +2 -2
- package/.next/server/app/notebooks/page.js.nft.json +1 -1
- package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/practice/page.js +2 -2
- package/.next/server/app/practice/page.js.nft.json +1 -1
- package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
- package/.next/server/app/print-preview/page.js +2 -2
- package/.next/server/app/print-preview/page.js.nft.json +1 -1
- package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
- package/.next/server/app/register/page.js +2 -2
- package/.next/server/app/register/page.js.nft.json +1 -1
- package/.next/server/app/register/page_client-reference-manifest.js +1 -1
- package/.next/server/app/review/page.js +2 -2
- package/.next/server/app/review/page.js.nft.json +1 -1
- package/.next/server/app/review/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup/page.js +2 -2
- package/.next/server/app/setup/page.js.nft.json +1 -1
- package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/stats/page.js +2 -2
- package/.next/server/app/stats/page.js.nft.json +1 -1
- package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tags/page.js +2 -2
- package/.next/server/app/tags/page.js.nft.json +1 -1
- package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +2 -0
- package/.next/server/chunks/{[externals]__1oyo6y4k5ao25._.js → [externals]__00gsgx0wu9vi4._.js} +1 -1
- package/.next/server/chunks/[externals]__0c36n-dcv5nqc._.js +3 -0
- package/.next/server/chunks/[externals]__0r_d96aqau--y._.js +3 -0
- package/.next/server/chunks/[externals]__0t1do1irr2px5._.js +3 -0
- package/.next/server/chunks/{[externals]__04n7qbralh87n._.js → [externals]__1_ij0r5wb4t30._.js} +1 -1
- package/.next/server/chunks/[externals]__1anmfgb7av8ou._.js +3 -0
- package/.next/server/chunks/{[externals]__0jzwjtlwxxyw6._.js → [externals]__1lhov-pp9xqtz._.js} +1 -1
- package/.next/server/chunks/[externals]_node_process_0dvtjkttigk0k._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__00bm6ctglztc6._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__14hy-qeyktudc._.js → [root-of-the-server]__01r1erfsa_no0._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__07ku06p8ztq1g._.js → [root-of-the-server]__02bkgmsvvpgbn._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__024r-wywnoxyp._.js → [root-of-the-server]__02h9d-jzqj4jc._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__05q3msyjhb-j7._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__05vih96sbx1om._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__06nk0robdprys._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__07h2t-yzug3sg._.js → [root-of-the-server]__07dm5fr9tvnrn._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__08djb4rf84-rn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__09jqnx_673l93._.js +68 -0
- package/.next/server/chunks/[root-of-the-server]__09z4bfwu-9yvs._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0_9ctojy3l6c5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0_uvtfu0yr-na._.js +33 -0
- package/.next/server/chunks/[root-of-the-server]__0btfk_sy3o9wa._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0j6f-2sb1zvv-._.js → [root-of-the-server]__0bu50xf4g3rn9._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0rnwilu01f1tc._.js → [root-of-the-server]__0byjfpj2jd58b._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0d-7snynttgf8._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0d-k9ke0ab1db._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0e0qdqkz3jles._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__10s5jgr6l7shg._.js → [root-of-the-server]__0e__jjjf812j0._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0f6h3h6s6tevl._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__14-k7ayd3a8_l._.js → [root-of-the-server]__0g5lbqntkfu-4._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0gbs3uc-1wo62._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0gs7-3gi0pdws._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0odzrih6i03_7._.js → [root-of-the-server]__0gx_zjzm5qgpy._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0hm2dh8ziz93k._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0i3-ol6ehhndm._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0iarbrdd95e-l._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__08d7_pq6_q2gg._.js → [root-of-the-server]__0jjprmuxd9qs1._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0jn95s6x8yat-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0js5-zgrcuwh3._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__08thdsjzsvn6f._.js → [root-of-the-server]__0lt6jfx01vune._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0m749pvxq5lfv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0m8bcdajibej0._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__00tywaxi-8b1l._.js → [root-of-the-server]__0mq39j3mkge8x._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1gx-b_vxyk--4._.js → [root-of-the-server]__0mz6f-h1xkunr._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0n8gneckcpd95._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0nbmu4su_1fb6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0nujsu6qbn-8o._.js +33 -0
- package/.next/server/chunks/[root-of-the-server]__0p1v7id5tq9qu._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0q083sqdrq0iw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0qv5f-aznfbwz._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1h-b09z-j8jp8._.js → [root-of-the-server]__0r438lr8n1t9g._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0rdqfinadfyh1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js +6 -6
- package/.next/server/chunks/[root-of-the-server]__0u5ihs_obekst._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__06xho6u8le3e7._.js → [root-of-the-server]__0ulqz3-khwsss._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0uqvlglad9q0i._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1_gkx5xy1-3em._.js → [root-of-the-server]__0v3y7_fc4q7mu._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0vz0xv_w6vbpq._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0w9jdzsq8ac3f._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0xcolv22y96_c._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0ld-3rbaj1m8-._.js → [root-of-the-server]__1-hfmp3groi95._.js} +27 -27
- package/.next/server/chunks/[root-of-the-server]__10-orm2n71xqa._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__10zt_0h-5wrjx._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0-b-yvjz48rkt._.js → [root-of-the-server]__11-6zqeermj9a._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__111jxitdjhuoj._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1g038brpx-jta._.js → [root-of-the-server]__123dnz_qrx_4x._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__13kqbfb17y3bb._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1h8y4ve4ddvy5._.js → [root-of-the-server]__144bps7ptlcyi._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__06j_-j4ftb5db._.js → [root-of-the-server]__1499m7hr136cz._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__15qkqztuygnfg._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__16eyl8sayqafi._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17tl0fx9bcvnz._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__18z_cczwqkonn._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__04q1m399dcul6._.js → [root-of-the-server]__19h_colcppf_d._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1bl85bz9gz7rm._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1cdvl8l8bm9y2._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1difhrtsofqaf._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1enjcnw44fa68._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1f9x9qtsx92o-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ff3h7ockrpdf._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1gchlcjngobdc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1gweth6y-8kb7._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__208t95lee6s99._.js → [root-of-the-server]__1gyiwzftbxnxk._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1i2xhya11pb1c._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1jim3r90l2x5u._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1l-2u-q625i2a._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ldgzla7sdl4g._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1mjujo3osgtnm._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1nxfr-1oji1ma._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1oa6zmgy0bz87._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1p3r_x5ii95sv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ptzu7aqoga2n._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1qwiiilhyoxmw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1r33ci5xcutn_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1s-y00c3-nc_-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1sf2oa2wkqf_0._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1f8bfi9fgos0g._.js → [root-of-the-server]__1si5zy-sdtem-._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1xs41k4v-on1y._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1y2h9r822ft62._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1yii00-p0pyb7._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1yr38xpsck7j-._.js +3 -0
- package/.next/server/chunks/_0-ne-bwuvd_6w._.js +1 -1
- package/.next/server/chunks/_0_rhee7wb6tcg._.js +1 -1
- package/.next/server/chunks/_0a7_sds_l6vgw._.js +5 -5
- package/.next/server/chunks/_0b7ljlcl6h_ro._.js +5 -5
- package/.next/server/chunks/_0d66myj_8567o._.js +1 -1
- package/.next/server/chunks/{_0q-x4ftphyse4._.js → _0gn3jgq5nrxsz._.js} +2 -2
- package/.next/server/chunks/_0qaoat396e0_3._.js +1 -1
- package/.next/server/chunks/_0wegi_sv1s4wx._.js +1 -1
- package/.next/server/chunks/_14w9nrdlajz24._.js +1 -1
- package/.next/server/chunks/{_1btq785jvvco6._.js → _176np74lk54yh._.js} +2 -2
- package/.next/server/chunks/_1b7qjlv0nxovi._.js +1 -1
- package/.next/server/chunks/_1m-yyz-pl9-03._.js +1 -1
- package/.next/server/chunks/_1muwmr6j76v3m._.js +3 -0
- package/.next/server/chunks/_1vtmdpk7p4al9._.js +1 -1
- package/.next/server/chunks/_next-internal_server_app_api_initialize_route_actions_1bd9rtmznpeiv.js +3 -0
- package/.next/server/chunks/node_modules_@anthropic-ai_sdk_1nnmjtbtp2rc6._.js +1 -1
- package/.next/server/chunks/src_0bhf345rd7jho._.js +3 -0
- package/.next/server/chunks/src_lib_02ktrqkdh6_xt._.js +3 -0
- package/.next/server/chunks/{src_lib_1wh1pqmstnzzt._.js → src_lib_031_wmb3hj645._.js} +2 -2
- package/.next/server/chunks/src_lib_0au5a9-5rxkab._.js +3 -0
- package/.next/server/chunks/src_lib_0d7kmnt7v2np8._.js +3 -0
- package/.next/server/chunks/src_lib_0nylv32ppnzk1._.js +3 -0
- package/.next/server/chunks/src_lib_0ximwux0rcb__._.js +3 -0
- package/.next/server/chunks/src_lib_10is5pyogge95._.js +3 -0
- package/.next/server/chunks/src_lib_13hd5uoi-53hn._.js +3 -0
- package/.next/server/chunks/src_lib_1h4xeb9lyx31r._.js +3 -0
- package/.next/server/chunks/src_lib_1qy5aajgog9r2._.js +1 -1
- package/.next/server/chunks/src_lib_1squodf4swo_a._.js +3 -0
- package/.next/server/chunks/src_lib_1uei_xjjj3g7_._.js +3 -0
- package/.next/server/chunks/src_lib_api-errors_ts_1gfd4ojz7efro._.js +3 -0
- package/.next/server/chunks/src_lib_background-tasks_ts_02j9z7pcmiqfj._.js +3 -0
- package/.next/server/chunks/src_lib_constants_pagination_ts_0tz3fg9ib3b-w._.js +3 -0
- package/.next/server/chunks/src_lib_initialization_ts_0uk331d512nu-._.js +57 -0
- package/.next/server/chunks/src_lib_minimax-code_checkin_ts_1j1mpuxc1vgoz._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__01kx6r00ld-i3._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06epb5zt8i9nl._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0zqp_pztbsqqc._.js → [root-of-the-server]__09gkts39mwkt7._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__09nzl4il765_h._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1uw-g6-ij61rl._.js → [root-of-the-server]__0g3m2_o67ezes._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1xufj5ntr9bm3._.js → [root-of-the-server]__0gpba1ifag5cz._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0ik_fqcvo5l-d._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1qpe9xti5ipq0._.js → [root-of-the-server]__0imb483i37k9-._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0jg0uiu38i5wt._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0l_a_z149v59o._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0lhmylur63dzg._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0oytrwzt_5qpb._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0p9ee02rz9njl._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0fl_sbe1q-l5j._.js → [root-of-the-server]__0qtqn7_slrnax._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0rgld9k_-8w_i._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0u9zu26bwv2sw._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__101mpt9jhd3bj._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__11oag3aoydip3._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__12_3pzn1_i3p7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__12upjtzbfyt0p._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__19q4cpy9jtu0k._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1aqinuht44szz._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1exslx8xrlonp._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1hcp3uk2sxb8s._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1ojkbjq8khldj._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1a50a5t_t8z_e._.js → [root-of-the-server]__1u0_l34j65qiv._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1upuqpqeyi3o6._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1y--gqu4r-u7n._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__20o0en_6ej3fx._.js +3 -0
- package/.next/server/chunks/ssr/_0-ach07vhfvmq._.js +3 -0
- package/.next/server/chunks/ssr/_02d_2cjn8qw3w._.js +3 -0
- package/.next/server/chunks/ssr/_0am6ugw1ulqzu._.js +3 -0
- package/.next/server/chunks/ssr/_0cmd1ubdlo_by._.js +3 -0
- package/.next/server/chunks/ssr/_0ixj0qb0-qgg2._.js +3 -0
- package/.next/server/chunks/ssr/_0k_0zrnuw5zgx._.js +3 -0
- package/.next/server/chunks/ssr/_0l21zysfjab-0._.js +3 -0
- package/.next/server/chunks/ssr/_0lex0cqdz7zpi._.js +3 -0
- package/.next/server/chunks/ssr/_0pf9e0usy7ohp._.js +3 -0
- package/.next/server/chunks/ssr/_0rd-teluypcd2._.js +1 -1
- package/.next/server/chunks/ssr/_0rwqz_j892v12._.js +3 -0
- package/.next/server/chunks/ssr/_0tqz2g6uwot_g._.js +3 -0
- package/.next/server/chunks/ssr/_0tr-7klbcz1r7._.js +3 -0
- package/.next/server/chunks/ssr/_10da9s0zjn9du._.js +3 -0
- package/.next/server/chunks/ssr/_11xqn1cgzpe6k._.js +1 -1
- package/.next/server/chunks/ssr/_12t46t1u_n1k-._.js +3 -0
- package/.next/server/chunks/ssr/_16dhqh84g_-pd._.js +32 -0
- package/.next/server/chunks/ssr/_1hp7fzio98dms._.js +3 -0
- package/.next/server/chunks/ssr/_1l077fud26z-i._.js +3 -0
- package/.next/server/chunks/ssr/_1m9s9225s4ark._.js +3 -0
- package/.next/server/chunks/ssr/_1qgg_ll5hkjaf._.js +8 -0
- package/.next/server/chunks/ssr/_1sy8ii-gy-3z_._.js +3 -0
- package/.next/server/chunks/ssr/_1ti86x9v9qlrp._.js +3 -0
- package/.next/server/chunks/ssr/_1ux6eqqkupo6v._.js +8 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_initialize_page_actions_1nt69gawi6f37.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_00hekemtvh207._.js → node_modules_0efju2pv0_0yw._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_next_dist_1g0hsq_f-fygr._.js → node_modules_11z4lth_9u_hn._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0meo4vt9kfbts._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1da2oxrj0qf5v._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1ez-_7m3ru8ad._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_circle-alert_mjs_0i9c9zsf1d3_1._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_play_mjs_1al5hft92dlrg._.js +4 -0
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_printer_mjs_0jbt269gi19_7._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0g591s5nyuj20.js +3 -0
- package/.next/server/chunks/ssr/src_0_rgx1hl-1b6i._.js +1 -1
- package/.next/server/chunks/ssr/{src_components_04xv7f-d7_fyc._.js → src_0hbb4l46hkkx0._.js} +2 -2
- package/.next/server/chunks/ssr/src_0wxvmqdi_0uno._.js +1 -1
- package/.next/server/chunks/ssr/src_1-cqlnizwbrvz._.js +3 -0
- package/.next/server/chunks/ssr/src_1gayunqs8u2e2._.js +1 -1
- package/.next/server/chunks/ssr/src_app_admin_page_tsx_0ublbd0w90cx_._.js +1 -1
- package/.next/server/chunks/ssr/src_app_admin_user_[id]_page_tsx_0zidp-8hr5upa._.js +1 -1
- package/.next/server/chunks/ssr/src_app_error-items_[id]_page_tsx_04xwwdmyh7_9q._.js +1 -1
- package/.next/server/chunks/ssr/src_app_exams_[id]_page_tsx_0xcjflkgkwzgd._.js +1 -1
- package/.next/server/chunks/ssr/src_app_exams_[id]_print_page_tsx_1i-xvhk8ul1l1._.js +6 -6
- package/.next/server/chunks/ssr/src_app_exams_page_tsx_17_d4_gy2i1ds._.js +1 -1
- package/.next/server/chunks/ssr/src_app_initialize_page_tsx_0v79s64spkms8._.js +3 -0
- package/.next/server/chunks/ssr/src_app_login_page_tsx_0yrgg2z_juzv9._.js +1 -1
- package/.next/server/chunks/ssr/src_app_notebooks_[id]_add_page_tsx_179tow1ql6vc_._.js +1 -1
- package/.next/server/chunks/ssr/src_app_notebooks_[id]_page_tsx_08njm-5-txm8_._.js +1 -1
- package/.next/server/chunks/ssr/src_app_notebooks_page_tsx_1p9src5gnz_40._.js +1 -1
- package/.next/server/chunks/ssr/src_app_page_tsx_1chiuahujsxm1._.js +1 -1
- package/.next/server/chunks/ssr/src_app_practice_page_tsx_10gnx53v3kpzb._.js +1 -1
- package/.next/server/chunks/ssr/src_app_print-preview_page_tsx_001yt-fzrj7tf._.js +1 -1
- package/.next/server/chunks/ssr/src_app_register_page_tsx_0l87b3754fa2j._.js +1 -1
- package/.next/server/chunks/ssr/src_app_review_page_tsx_1rq4ygvo_szv0._.js +1 -1
- package/.next/server/chunks/ssr/src_app_setup_page_tsx_0szlnxow_9skp._.js +1 -1
- package/.next/server/chunks/ssr/src_components_1lbiuzxejiwvf._.js +1 -1
- package/.next/server/chunks/ssr/src_components_difficulty-stars_tsx_1af9qqfurq7_t._.js +1 -1
- package/.next/server/chunks/ssr/src_components_error-list_error-item-card_tsx_1zsiqsrj-jjd7._.js +1 -1
- package/.next/server/chunks/ssr/src_components_mastery-panel_tsx_1--j5c7mhomdp._.js +1 -1
- package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +10 -10
- package/.next/server/chunks/ssr/src_components_settings_duplicate-threshold-setting_tsx_06bbmwo1pkaim._.js +1 -1
- package/.next/server/chunks/ssr/src_components_tag-input_tsx_0b9sxffna5c9i._.js +1 -1
- package/.next/server/chunks/ssr/src_components_ui_checkbox_tsx_0xdylzmai9n53._.js +1 -1
- package/.next/server/chunks/ssr/src_components_ui_dialog_tsx_1tn-i_6d3rhzt._.js +1 -1
- package/.next/server/chunks/ssr/src_lib_api-client_ts_04r2_ex-gua5i._.js +3 -0
- package/.next/server/functions-config-manifest.json +9 -0
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/middleware-build-manifest.js +14 -3
- package/.next/server/middleware-manifest.json +2 -32
- package/.next/server/middleware.js +5 -0
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +4 -0
- package/.next/server/pages/500.html +1 -1
- package/.next/server/preview-props.json +3 -3
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/005nxzvjw9q29.js +1 -0
- package/.next/static/chunks/00rs-o61dxfug.js +1 -0
- package/.next/static/chunks/{02bal925qbinj.js → 01lfibj7hk--1.js} +1 -1
- package/.next/static/chunks/0dlm3crujtk0q.js +1 -0
- package/.next/static/chunks/0em3sfxbygjk8.js +1 -0
- package/.next/static/chunks/{2h685ie6ojjd6.js → 0eoaf9_eucdfm.js} +1 -1
- package/.next/static/chunks/0s11n1c35xok3.js +1 -0
- package/.next/static/chunks/0u8qed0gsmuyb.js +1 -0
- package/.next/static/chunks/10hj0kjrsv_ea.js +1 -0
- package/.next/static/chunks/17fdu98fkgo_3.js +1 -0
- package/.next/static/chunks/17fy-zs1a1djj.js +1 -0
- package/.next/static/chunks/18wxnbx_vshlv.js +1 -0
- package/.next/static/chunks/1d-up0qu0abfy.js +1 -0
- package/.next/static/chunks/1eiokd8-xan7t.js +6 -0
- package/.next/static/chunks/1jg7_r1zx3afu.js +1 -0
- package/.next/static/chunks/1ptb9vuc0d3rg.js +1 -0
- package/.next/static/chunks/2_vszrn30uhv4.css +3 -0
- package/.next/static/chunks/2agtko4ygutd5.js +1 -0
- package/.next/static/chunks/{0p-3zwi9dqdk8.js → 2igkwpp45e7is.js} +1 -1
- package/.next/static/chunks/2m69r4jnazewv.js +191 -0
- package/.next/static/chunks/2mw4064uh0j9h.js +1 -0
- package/.next/static/chunks/2olkrktzfd5ih.js +1 -0
- package/.next/static/chunks/2qy-miqy2qmzd.js +4 -0
- package/.next/static/chunks/2vgyg-z4vzd60.js +1 -0
- package/.next/static/chunks/393urxlf6frd1.js +1 -0
- package/.next/static/chunks/39r5304q8nhrr.js +1 -0
- package/.next/static/chunks/3bvflzs_j0a7o.js +1 -0
- package/.next/static/chunks/3eommddspd-ux.js +1 -0
- package/.next/static/chunks/3j49r9o2bivkf.js +1 -0
- package/.next/static/chunks/3j8kn9zjrlp3t.js +1 -0
- package/.next/static/chunks/3u2t8l45o5ai-.js +33 -0
- package/README.en.md +539 -0
- package/README.md +1 -1
- package/bin/wrong-notebook.js +1 -1
- package/launcher.js +2 -2
- package/package.json +1 -1
- package/prisma/migrations/20261031000000_add_query_indexes/migration.sql +16 -0
- package/prisma/schema.prisma +9 -0
- package/prisma/seed.db +0 -0
- package/server.js +1 -1
- package/.next/server/chunks/[externals]__1242krpdwt3fy._.js +0 -3
- package/.next/server/chunks/[externals]__1pplcusjo3ok7._.js +0 -3
- package/.next/server/chunks/[externals]_fs_0pplqgcyv2l7l._.js +0 -3
- package/.next/server/chunks/[externals]_fs_1d5jh8vp8y6zt._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0-t1auf1a8_or._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__003ii50e63ws5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__00rgirsp29kma._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__02bjw2uriv5fd._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__02v0ig608r6y0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__03ru8t856rgvl._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0aganwocduyac._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0an9s6-nn3kpq._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0duevucfb62_h._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0g-kb21pws7qu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0gvvuk0avtpy9._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__0iq2agc-dlcyc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0juklkqip-kat._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0kwkbvjwb6ms2._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0lgsw0kfw-jqc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0m257tbsmg_jc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0mtgqo3_a6ft3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0orbb3gvf9h5l._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0rt84iswe-353._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__0sg1yp-qgcx3j._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ssa-hz8b3v1i._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0uvuljzm78r8b._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0vn353txu1ok5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0w12wrduqkml_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0wmczeyrx2y7f._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0xe-f_x7j4c7y._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0xicme9m81rzt._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0yx12uf2avp6d._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0zq53ytq2jm_b._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-jk6umz3qs6r._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__10ffg2l-u0zof._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11n5u21llw3hz._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1222jdedtloy5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__13ybp1up1_pp_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__15v_gsaqeo7q-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__16c0c0-pt6gz4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__16h8j4mow34et._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__18vii2hl-fo31._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__190oggsfw-98b._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1_fxjdqa7fwwc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ar95f9mysi15._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ban_cu4u5ktr._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1bvjyahgm4s-0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1h2nhu8op07o7._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ixfwffo1gqy1._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1jcp2-lix6if6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1kff0rbt3ym95._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1krabeg6sihbm._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1mn88gcnj5c8i._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1n2uvss8wfueo._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1nsrbw9jntgo8._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1onv3pfwsqytl._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1pulvd2ac2agx._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1q9pzdlt18lp0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1sw3rkr-79ykm._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1thdx6loe3xd4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ukn55clu33ii._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1uz66pjshld-e._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1vbqkl7rn1dbm._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1wnku4diwmv6z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1y7job8gfr7ww._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1yaxekogcfb41._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1yhu07loxowr5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1zp57dov6qagu._.js +0 -3
- package/.next/server/chunks/src_03_og0nynnyx2._.js +0 -3
- package/.next/server/chunks/src_lib_01n35ubnvj7qr._.js +0 -3
- package/.next/server/chunks/src_lib_0csk5er_yd1v8._.js +0 -3
- package/.next/server/chunks/src_lib_0if7dmbrjhhw_._.js +0 -3
- package/.next/server/chunks/src_lib_0whd_w99i5vmm._.js +0 -3
- package/.next/server/chunks/src_lib_1-tw3_3nqx6ug._.js +0 -3
- package/.next/server/chunks/src_lib_1k0xki4wmn54_._.js +0 -3
- package/.next/server/chunks/src_lib_1ki8_85_ajoqn._.js +0 -3
- package/.next/server/chunks/src_lib_1p0k3ud1vrwmg._.js +0 -3
- package/.next/server/chunks/src_lib_1wm8ay-jqxakc._.js +0 -3
- package/.next/server/chunks/src_lib_211d4nepy8zds._.js +0 -3
- package/.next/server/chunks/src_lib_auth-utils_ts_20i7biv4dj8pm._.js +0 -3
- package/.next/server/chunks/src_lib_current-user_ts_20jgxch2zjmt3._.js +0 -3
- package/.next/server/chunks/src_lib_tag-recognition_ts_1wkzrdiapau86._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__03jq7w4crcz_u._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__05d1gc-h-sk6z._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__06cr_rl6w07mf._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0d-q1qjhzf_nt._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0egzlmtf23a_j._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0s0807tegp2v8._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0snw-y9tp0_06._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0u-q2sah-le20._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0uulvxrtw9ld4._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0wbg4fz5qe7h-._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__102i99h9qhhnc._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__14c291vzuew0p._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__18ej8rcn5j4hs._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__18sucwsgl0hdl._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1_zton0k4t3va._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1gulcy2-2jrfj._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1hcwd0rtvz96c._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1kh02fdj3kar7._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1qwt10yvul4gg._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1vkia8gjeangv._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1yy2y09x1rvba._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1zh2txrawxztj._.js +0 -3
- package/.next/server/chunks/ssr/_00np6xqvkg6u-._.js +0 -32
- package/.next/server/chunks/ssr/_05alwt3w7oor-._.js +0 -3
- package/.next/server/chunks/ssr/_06k5kn4q-1k90._.js +0 -3
- package/.next/server/chunks/ssr/_08fq-uch-l1g6._.js +0 -8
- package/.next/server/chunks/ssr/_0h6qsip9mphaq._.js +0 -3
- package/.next/server/chunks/ssr/_0iy-5lwc8jb9d._.js +0 -3
- package/.next/server/chunks/ssr/_0lpyto7r47jl8._.js +0 -3
- package/.next/server/chunks/ssr/_0ms6yihjxbuy1._.js +0 -3
- package/.next/server/chunks/ssr/_0n_xmfdlu07f9._.js +0 -3
- package/.next/server/chunks/ssr/_0p61m7hr-1evu._.js +0 -3
- package/.next/server/chunks/ssr/_0vq069p6upfdb._.js +0 -3
- package/.next/server/chunks/ssr/_0xyykn-ar3ujn._.js +0 -3
- package/.next/server/chunks/ssr/_0z-gzl29_yrkq._.js +0 -3
- package/.next/server/chunks/ssr/_10gxtgntt3mjd._.js +0 -3
- package/.next/server/chunks/ssr/_17edi6l2a0p76._.js +0 -8
- package/.next/server/chunks/ssr/_19ktk2l66yngc._.js +0 -3
- package/.next/server/chunks/ssr/_1g8mzz6qxv2mr._.js +0 -3
- package/.next/server/chunks/ssr/_1pnt2b76-xt6_._.js +0 -3
- package/.next/server/chunks/ssr/_1tg3c_6clbzhd._.js +0 -3
- package/.next/server/chunks/ssr/_1yaa5p1rk6i7c._.js +0 -3
- package/.next/server/chunks/ssr/_20-x85_onge5x._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_004qzwkmt-_w5._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0th0mlz3ys-17._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_15-zi1i74qu9j._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1tz6jn4lbq7wr._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_play_0upz8-7p5gttr.js +0 -4
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_printer_0pprvafgadlwd.js +0 -3
- package/.next/server/chunks/ssr/src_components_practice-result-picker_tsx_06jytymet6adu._.js +0 -3
- package/.next/server/edge/chunks/[root-of-the-server]__1osrt2u3yic3e._.js +0 -3
- package/.next/server/edge/chunks/_1s0wgnupch4sb._.js +0 -3
- package/.next/server/edge/chunks/node_modules_0um8zwzayafzq._.js +0 -13
- package/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_0dxg4rr5z738i.js +0 -3
- package/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_0dzf5yhexv02u.js +0 -3
- package/.next/static/chunks/00n2-r3ac3dh5.js +0 -2
- package/.next/static/chunks/00o1s_nir_tbc.js +0 -191
- package/.next/static/chunks/0a6399ins-4-q.js +0 -1
- package/.next/static/chunks/0kh-fx3tssh5w.js +0 -1
- package/.next/static/chunks/0p2fh98qaki45.js +0 -1
- package/.next/static/chunks/0r7n8__w9jr5w.js +0 -1
- package/.next/static/chunks/0znojfm3iv2d7.js +0 -1
- package/.next/static/chunks/1c46asvnosb8-.js +0 -1
- package/.next/static/chunks/1cdwoh8b2ub-t.js +0 -1
- package/.next/static/chunks/1epmdj8kqwbz4.js +0 -1
- package/.next/static/chunks/1fl98iro7y1bv.js +0 -1
- package/.next/static/chunks/1r7yfcltcmwkh.js +0 -1
- package/.next/static/chunks/20x7-uv1sk708.js +0 -3
- package/.next/static/chunks/24gum0cmhhv7z.js +0 -1
- package/.next/static/chunks/26qq8907b9j3d.js +0 -1
- package/.next/static/chunks/2cf27aonkij9_.css +0 -3
- package/.next/static/chunks/2fr8ktozrvacg.js +0 -1
- package/.next/static/chunks/2mawf08h1jfc8.js +0 -1
- package/.next/static/chunks/2r4ddp7izc9sh.js +0 -1
- package/.next/static/chunks/2t6ygiu56xwkx.js +0 -1
- package/.next/static/chunks/2ucdm1a-llop_.js +0 -1
- package/.next/static/chunks/2uobd1ff4vknn.js +0 -33
- package/.next/static/chunks/2ysjbje-zsbdp.js +0 -1
- package/.next/static/chunks/341etzsqr_b1v.js +0 -6
- package/.next/static/chunks/3icoc8gklzn52.js +0 -1
- package/.next/static/chunks/3jb_u6u63wui6.js +0 -1
- package/.next/static/chunks/3tc0l--v631lz.js +0 -1
- package/.next/static/chunks/3wxogk-dqqw8w.js +0 -1
- /package/.next/static/{4KSCavDaw8kyhSyGiE86P → NAW_XaqZEUvPxbVIgnnoN}/_buildManifest.js +0 -0
- /package/.next/static/{4KSCavDaw8kyhSyGiE86P → NAW_XaqZEUvPxbVIgnnoN}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{4KSCavDaw8kyhSyGiE86P → NAW_XaqZEUvPxbVIgnnoN}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,666696,658512,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(522016),a=e.i(469937),i=e.i(846968),o=e.i(487486),l=e.i(515288),c=e.i(257428),s=e.i(111110),u=e.i(215519),h=e.i(306831),d=e.i(990745),f=e.i(713059),p=e.i(328010);let g={}.hasOwnProperty,v={}.hasOwnProperty;var m=e.i(583664),x=e.i(432066),k=e.i(586281),b=e.i(997803),C=e.i(400110);function y(e){if(60!==e.charCodeAt(0))return;let t=e.charCodeAt(1);if(33===t){let t=e.charCodeAt(2);return 45===t?2:91===t?5:(0,b.B)(t)?4:void 0}if(63===t)return 3;let n=47===t,r=n?2:1,a=r,i=e.charCodeAt(a);if(!(0,b.B)(i))return;for(;45===i||(0,b.O)(i);)i=e.charCodeAt(++a);let o=e.slice(r,a).toLowerCase();return!n&&47!==i&&C.M.includes(o)?1:C.y.includes(o)?6:7}let w=[function(e,t,n,r){if("code"===t.type&&(0,x.f)(t,r)&&("list"===e.type||e.type===t.type&&(0,x.f)(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&(0,k.f)(t,r)))return;if("html"===e.type){let t=y(e.value);if(void 0===t||6===t||7===t)return 1}if("paragraph"===e.type&&"html"===t.type){let e=y(t.value);if(void 0===e||7===e)return 1}return+!!n.spread}}],A=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],j=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\r",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\r",after:"\\r",inConstruct:"phrasing"},{character:"\n",before:"\\n",inConstruct:"phrasing"},{character:"\n",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:A},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:A},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:A},{atBreak:!0,character:"+",after:"(?:[ \r\n])"},{atBreak:!0,character:"-",after:"(?:[ \r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:A},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:A},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:A},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:A},{atBreak:!0,character:"~"},{character:"<",inConstruct:"autolink"},{character:">",inConstruct:"autolink"},{character:"",inConstruct:"autolink"}],N=-1;for(;++N<33;)j.push({character:String.fromCharCode(N),inConstruct:"autolink"});var S=e.i(35198);function T(e){return e.label||!e.identifier?e.label||"":(0,S.f)(e.identifier)}function B(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((e.beforeNode?"^":t?"("+t+")":"")+(/[$()*+.?[\\\]^{|}]/.test(e.character)?"\\":"")+e.character+(e.afterNode?"$":e.after?"(?:"+e.after+")":""),e.unicode?"gu":"g")}return e._compiled}var M=e.i(682523);function z(e){let t=e.codePointAt(0);return void 0===t?"":String.fromCodePoint(t)}function L(e){let t=e.codePointAt(e.length-2);return void 0!==t&&t>65535?e.slice(-2):e.slice(-1)}var F=e.i(177049);function P(e,t,n){let r=(0,M.f)(e),a=(0,M.f)(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}let $=new Map([["*",!1],["_",!0]]);function _(e,t,n){let r=[],a=new Map,i=new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let l=e[o].value.charAt(0),c=$.get(l),s=o+1;for(;s<e.length&&e[s].attention&&e[s].value.charAt(0)===l;)s++;let u=o?e[o-1].value:t,h=(0,M.f)(u.charCodeAt(u.length-1)),d=(0,M.f)((s<e.length?e[s].value:n).charCodeAt(0)),f=!d||2===d&&!!h,p=!h||2===h&&!!d,g={tokens:e.slice(o,s),markers:[],start:0,end:0,open:c?f&&(!!h||!p):f,close:c?p&&(!!d||!f):p,split:void 0!==c};for(let e of g.tokens){a.set(e,[...g.tokens]),i.set(e,g);let t=e.value.length;for(;t--;)g.markers.push(e)}g.end=g.markers.length,r.push(g),o=s}for(function(e,t){let n=0;for(;n<e.length;){let r=e[n],a=r.tokens[0].value.charAt(0),i=r.end-r.start,o=r.close&&i?n:0;for(;o--;){let n=e[o],l=n.end-n.start;if(n.tokens[0].value.charAt(0)===a&&n.open&&l&&(r.split?!((n.close||r.open)&&i%3)||(l+i)%3:l===n.markers.length&&l===i)){let e=r.split?l>1&&i>1?2:1:i,a=n.markers.slice(n.end-e,n.end),o=r.markers.slice(r.start,r.start+e),c=a[0],s=o[0];if(c===a[e-1]&&c.value.length===e&&s===o[e-1]&&s.value.length===e&&c.attention===s.attention)t.delete(c),t.delete(s);else{let e=[...new Set([...a,...o])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}n.end-=e,r.start+=e;break}}(-1===o||r.start===r.end)&&n++}}(r,a),o=-1;++o<e.length;){let t=a.get(e[o]);if(t)return{attention:function(e,t,n){let r=new Set;for(let a of e){let e=n.get(a);if(e&&a.attention&&t.some(e=>e.attention===a.attention))for(let t of e.tokens)r.add(t.attention)}let a=[];for(let t of e)t.attention&&r.delete(t.attention)&&a.push(t.attention);return a.reverse(),a}(e,t,i),index:o}}}function I(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?z(n.value):L(n.value),a=(0,F.f)(r.codePointAt(0));n.value=t?a+n.value.slice(r.length):n.value.slice(0,n.value.length-r.length)+a}function O(e,t,n,r){let a,i=[],o=L(n),l=-1;for(;++l<e.length;){let n=e[l];if("string"==typeof n){let e={value:n,attention:void 0};a&&a===z(n)&&I([e],!0),a=void 0,i.push(e),e.value&&(o=L(e.value));continue}let c=t.get(n)||n.sequences[0],s=c.charAt(0),u=e[l+1],h=o,d=z(void 0===u?r:"string"==typeof u?u:t.get(u)||u.sequences[0]),f=O(n.children,t,c,c),p=f.length>0?f[0].value:"",g=P(h.charCodeAt(h.length-1),p.charCodeAt(0),s);g.inside&&I(f,!0);let v=f.length>0?L(f[f.length-1].value):"",m=P(d.charCodeAt(0),v.charCodeAt(v.length-1),s);m.inside&&I(f,!1),g.outside&&"\n"!==h&&"\r"!==h&&I(i,!1),m.outside&&(a=d),i.push({value:c,attention:n},...f,{value:c,attention:n}),o=c.charAt(c.length-1)}return i}function q(e,t,n){let r=new Map,a=O(e,r,t,n),i=a,o=_(i,t,n);for(;o;){let l=function(e,t,n,r,a){for(let i of n.attention){let o=t.get(i)||i.sequences[0];for(let l of i.sequences){if(l===o)continue;let c=new Map(t);c.set(i,l);let s=O(e,c,r,a),u=_(s,r,a);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:s}}}}(e,r,o,t,n);if(!l){i=a;break}r=l.chosen,i=l.tokens,o=l.mistake}let l="";for(let e of i)l+=e.value;return l}let E=/\r?\n|\r/g;function R(e,t){let n,r=[],a=0,i=0;for(;n=E.exec(e);)o(e.slice(a,n.index)),r.push(n[0]),a=n.index+n[0].length,i++;return o(e.slice(a)),r.join("");function o(e){r.push(t(e,i,!e))}}var G=e.i(454751);let U={}.hasOwnProperty;function D(e,t){return!e||!!t&&("string"==typeof e?e===t.type:e.includes(t.type))}function Q(e,t){return e-t}function Z(e,t){let n,r=/\\(?=[!-/:-@[-`{-~])/g,a=[],i=[],o=e+t,l=-1,c=0;for(;n=r.exec(o);)a.push(n.index);for(;++l<a.length;)c!==a[l]&&i.push(e.slice(c,a[l])),i.push("\\"),c=a[l];return i.push(e.slice(c)),i.join("")}function K(e){let t=e||{},n=t.now||{},r=t.lineShift||0,a=n.line||1,i=n.column||1;return{move:function(e){let t=e||"",n=t.split(/\r?\n|\r/g),o=n[n.length-1];return a+=n.length-1,i=1===n.length?i+o.length:1+o.length+r,t},current:function(){return{now:{line:a,column:i},lineShift:r}},shift:function(e){r+=e}}}function Y(e){throw Error("Cannot handle value `"+e+"`, expected node")}function H(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function J(e,t){if("definition"===e.type&&e.type===t.type)return 0}function V(e,t){return q(function e(t,n,r){let a=n.indexStack,i=t.children||[],o=[],l=-1,c=r.before;a.push(-1);let s=n.createTracker(r);for(;++l<i.length;){let u,h=i[l];if(a[a.length-1]=l,l+1<i.length){let e=n.handle.handlers[i[l+1].type];e&&e.peek&&(e=e.peek),u=e?z(e(i[l+1],t,n,{before:"",after:"",...s.current()})):""}else u=r.after;let d=o[o.length-1];"string"==typeof d&&("\r"===c||"\n"===c)&&"html"===h.type&&7!==y(h.value)&&(o[o.length-1]=d.replace(/(\r?\n|\r)$/," "),c=" ",(s=n.createTracker(r)).move(q(o,r.before,r.after)));let f=n.handle.handlers[h.type];if(f&&f.attention){let{construct:t,markers:r,sizes:a}=f.attention(h,n),i=function(e,t,n){if(0===t.length)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(0===n.length)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let a of t){if(1!==a.length)throw Error("Cannot serialize `"+e+"` as attention with `"+a+"` as marker, expected a single ascii character");if(!(0,b.c)(a.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+a+"` as marker, expected ascii punctuation");for(let e of n)r.push(a.repeat(e))}return r}(h.type,r,a),l=i[0],u=n.enter(t);s.move(l);let d=e(h,n,{...s.current(),before:l,after:l});s.move(q(d,l,l)),s.move(l),u(),o.push({children:d,sequences:i}),c=l.charAt(l.length-1)}else{let e=n.handle(h,t,n,{...s.current(),after:u,before:c});if(!e)continue;s.move(e),o.push(e),c=L(e)}}return a.pop(),o}(e,this,t),t.before,t.after)}function W(e,t){return function(e,t,n){let r=t.indexStack,a=e.children||[],i=t.createTracker(n),o=[],l=-1;for(r.push(-1);++l<a.length;){let n=a[l];r[r.length-1]=l,o.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),l<a.length-1&&o.push(i.move(function(e,t,n,r){let a=r.join.length;for(;a--;){let i=r.join[a](e,t,n,r);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n<!---->\n\n"}return"\n\n"}(n,a[l+1],e,t)))}return r.pop(),o.join("")}(e,this,t)}function X(e,t){return function(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),a=[],i=[],o={},l=e.stack.includes("autolink"),c=n.before?n.before.length:0,s=r.length-(n.after?n.after.length:0),u=-1;for(;++u<e.unsafe.length;){let t,i=e.unsafe[u];if(!(0,G.f)(e.stack,i)||!D(i.beforeNode,n.beforeNode)||!D(i.afterNode,n.afterNode))continue;let l=e.compilePattern(i),h=i.beforeNode?c:0,d=r.slice(h,i.afterNode?s:void 0);for(;t=l.exec(d);){let e="before"in i||!!i.atBreak,n="after"in i,r=h+t.index+(e?t[1].length:0);U.call(o,r)?(o[r].before&&!e&&(o[r].before=!1),o[r].after&&!n&&(o[r].after=!1)):(a.push(r),o[r]={before:e,after:n})}}a.sort(Q);let h=c;for(u=-1;++u<a.length;){let e=a[u];if(!(e<h)&&!(e>=s)){if("_"===r.charAt(e)&&e>0&&void 0===(0,M.f)(r.charCodeAt(e-1))&&!U.call(o,e-1)&&!(e-1===c&&/[*_]/.test(r.charAt(c-1)))){let t=e+1;for(;t<s&&"_"===r.charAt(t);)t++;let n=t-e-1;if(a[u+n]===t-1&&t<r.length&&void 0===(0,M.f)(r.charCodeAt(t))&&!U.call(o,t)&&!(t===s-1&&/[*_]/.test(r.charAt(s)))){u+=n;continue}}if((!(e+1<s)||a[u+1]!==e+1||!o[e].after||o[e+1].before||o[e+1].after)&&(a[u-1]!==e-1||!o[e].before||o[e-1].before||o[e-1].after)){if(h!==e){let t=r.slice(h,e);i.push(l?t:Z(t,"\\"))}h=e,l?(i.push("%"+r.charCodeAt(e).toString(16).toUpperCase().padStart(2,"0")),h++):!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push((0,F.f)(r.charCodeAt(e))),h++):i.push("\\")}}}let d=r.slice(h,s);return i.push(l?d:Z(d,n.after)),i.join("")}(this,e,t)}let ee=(0,e.i(175765).f)().use(f.f).use(function(e){let t=this;t.compiler=function(n){var r;let a,i;return r={...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]},!function e(t,n){var r,a,i,o;let l,c=-1;if(n.extensions)for(;++c<n.extensions.length;)e(t,n.extensions[c]);for(l in n)if(v.call(n,l))switch(l){case"extensions":break;case"unsafe":case"join":r=t[l],(a=n[l])&&r.push(...a);break;case"handlers":i=t[l],(o=n[l])&&Object.assign(i,o);break;default:t.options[l]=n[l]}return t}(a={associationId:T,bulletCurrent:void 0,bulletLastUsed:void 0,containerPhrasing:V,containerFlow:W,createTracker:K,compilePattern:B,enter:function(e){return a.stack.push(e),function(){a.stack.pop()}},handlers:{...m.f},handle:void 0,indentLines:R,indexStack:[],join:[...w],options:{},safe:X,stack:[],unsafe:[...j]},r||{}),a.options.tightDefinitions&&a.join.push(J),a.handle=function(e,t){let n=t||{};function r(t,...n){let a=r.invalid,i=r.handlers;if(t&&g.call(t,e)){let n=String(t[e]);a=g.call(i,n)?i[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:Y,unknown:H,handlers:a.handlers}),(i=a.handle((0,p.f)(n)?{type:"root",children:[n]}:n,void 0,a,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0}))&&10!==i.charCodeAt(i.length-1)&&13!==i.charCodeAt(i.length-1)&&(i+="\n"),i}}).freeze(),et={blockquote:el,break:function(){return{type:"text",value:"\n"}},code:ec,definition:ec,delete:el,emphasis:el,footnoteReference:ec,footnoteDefinition:ec,heading:function(e){return{type:"paragraph",children:e.children}},html:ec,image:ei,imageReference:ei,inlineCode:eo,list:el,listItem:el,link:el,linkReference:el,strong:el,table:ec,tableCell:ec,text:eo,thematicBreak:ec,toml:ec,yaml:ec},en={},er=[];function ea(e){let t={...et},n=e||en,r=n.keep||er,a=n.remove||er,i=-1;for(;++i<a.length;){let e=a[i];"string"==typeof e?t[e]=ec:t[e[0]]=e[1]}let o={};if(0===r.length)o=t;else{let e;for(e in t)r.includes(e)||(o[e]=t[e]);for(i=-1;++i<r.length;)if(!Object.hasOwn(t,e=r[i]))throw Error("Unknown node type `"+e+"` in `keep`, use a replace tuple with a handle instead: `remove: [['"+e+"', handle]]`")}return function(e){return l(e)};function l(e){let t=e.type,n=e;if(Object.hasOwn(o,t)){let e=o[t];e&&(n=e(n)||void 0)}return(n=Array.isArray(n)?c(n):n)&&"children"in n&&(n.children=c(n.children)),n}function c(e){let t=-1,n=[];for(;++t<e.length;){let r=l(e[t]);Array.isArray(r)?n.push(...c(r)):r&&n.push(r)}var r=n;let a,i=-1,o=[];for(;++i<r.length;){let e=r[i];a&&e.type===a.type&&"value"in e&&"value"in a?a.value+=e.value:(o.push(e),a=e)}return o}}function ei(e){let t="title"in e?e.title:"",n=e.alt||t||"";return n?{type:"text",value:n}:void 0}function eo(e){return{type:"text",value:e.value}}function el(e){return e.children}function ec(){}var es=e.i(201276),eu=e.i(62825);e.s(["f",0,function({item:e,selectMode:f,selected:p,onToggleSelect:g,selectedTag:v,onTagClick:m}){let x,{t:k,language:b}=(0,s.b)(),{timeZone:C}=(0,u.M)(),[y,w]=(0,n.useState)(!1),A=(0,d.f)(e),j=A.length-3,N=e.masteryStatus??"new";return(0,t.jsxs)("div",{className:"relative animate-in fade-in duration-300",children:[f&&(0,t.jsx)("div",{className:"absolute top-2 left-2 z-10",onClick:e=>{e.preventDefault(),e.stopPropagation(),g()},children:(0,t.jsx)(c.f,{checked:p,"aria-label":k.questionSimilarity.selectQuestion.replace("{id}",e.shortId||e.id),className:"h-5 w-5 border-2 bg-background shadow-sm"})}),(0,t.jsx)(r.default,{href:f?"#":`/error-items/${e.id}`,onClick:e=>f&&e.preventDefault(),children:(0,t.jsxs)(l.N,{className:`h-full cursor-pointer gap-2 rounded-2xl border-l-4 pt-4 transition-all duration-200 hover:-translate-y-1 hover:bg-muted/60 hover:shadow-lg ${i.o[N]} ${f&&p?"ring-2 ring-primary":"hover:border-y-foreground/25 hover:border-r-foreground/25"}`,children:[(0,t.jsx)(l.Y,{className:"pb-0",children:(0,t.jsxs)("div",{className:`flex justify-between items-start ${f?"pl-7":""}`,children:[(0,t.jsx)(i.x,{status:N}),(0,t.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:["number"==typeof e.masteryProbability&&(0,t.jsxs)("span",{title:k.mastery.probability,children:[Math.round(100*e.masteryProbability),"%"]}),e.shortId&&(0,t.jsx)("span",{className:"font-mono",children:e.shortId}),(0,h.r)(e.createdAt,"MM/dd",C)]})]})}),(0,t.jsxs)(l.O,{children:[(0,t.jsx)("div",{className:"text-sm line-clamp-3",children:(x=function(e){if(!e)return"";try{let t=e.replace(/\\_/g,"_"),n=ee().use(ea).processSync(t);return t=(t=String(n)).replace(/\\left/g,"").replace(/\\right/g,"").replace(/\\begin\{.*?\}/g,"").replace(/\\end\{.*?\}/g,"").replace(/\\text\{.*?\}/g,"").replace(/\\mbox\{.*?\}/g,"").replace(/\\frac\s*\{([^{}]+)\}\s*\{([^{}]+)\}/g,"$1/$2").replace(/\\sqrt\s*\{([^{}]+)\}/g,"√$1").replace(/\^\{([^{}]+)\}/g,"^$1").replace(/_\{([^{}]+)\}/g,"_$1").replace(/\\times/g,"×").replace(/\\div/g,"÷").replace(/\\cdot/g,"·").replace(/\\le/g,"≤").replace(/\\ge/g,"≥").replace(/\\neq/g,"≠").replace(/\\approx/g,"≈").replace(/\\pm/g,"±").replace(/\\infty/g,"∞").replace(/\\circ/g,"°").replace(/\\triangle/g,"△").replace(/\\angle/g,"∠").replace(/\\because/g,"∵").replace(/\\therefore/g,"∴").replace(/\$/g,"").replace(/\\/g,"").trim()}catch(t){return es.f.error("[Markdown]","Failed to strip markdown",{error:t}),e}}((e.questionText||"").split("\n\n")[0])).length>80?x.substring(0,80)+"...":x}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-3",children:[(0,t.jsx)(o.f,{variant:"secondary",className:"text-xs",children:(0,eu.i)(e.mistakeStatus,b)}),(0,t.jsx)(a.f,{value:e.difficultyStars,showUnrated:!1})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 mt-3",children:[(y?A:A.slice(0,3)).map(e=>(0,t.jsx)(o.f,{variant:v===e?"default":"outline",className:`text-xs cursor-pointer transition-colors ${v===e?"":"bg-background hover:border-foreground/40 hover:bg-foreground/10"}`,onClick:t=>{t.preventDefault(),m(e)},children:e},e)),j>0&&(0,t.jsx)(o.f,{variant:"secondary",className:"text-xs cursor-pointer hover:bg-secondary/80 transition-colors",title:y?k.notebooks?.collapseTagsTooltip||"Click to collapse":(k.notebooks?.expandTagsTooltip||"Click to expand {count} tags").replace("{count}",j.toString()),onClick:e=>{e.preventDefault(),e.stopPropagation(),w(!y)},children:y?k.notebooks?.collapseTags||"Collapse":(k.notebooks?.expandTags||"+{count} more").replace("{count}",j.toString())})]})]})]})})]})}],666696);var eh=e.i(519455),ed=e.i(475254);let ef=(0,ed.f)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var ep=e.i(463059);let eg=(0,ed.f)("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),ev=(0,ed.f)("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);var em=e.i(469817);e.s(["f",0,function({page:e,totalPages:n,onPageChange:r,total:a,pageSize:i}){let{t:o}=(0,s.b)();if(n<=1)return null;let l=e>1,c=e<n,u=(()=>{let t=[];if(n<=em.u)for(let e=1;e<=n;e++)t.push(e);else{t.push(1),e>3&&t.push("ellipsis");let r=Math.max(2,e-1),a=Math.min(n-1,e+1);for(let e=r;e<=a;e++)t.push(e);e<n-2&&t.push("ellipsis"),t.push(n)}return t})();return(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 py-4",children:[void 0!==a&&void 0!==i&&(0,t.jsx)("div",{className:"text-sm text-muted-foreground order-2 sm:order-1",children:(o.pagination?.showing||"Showing {start}-{end} of {total}").replace("{start}",((e-1)*i+1).toString()).replace("{end}",Math.min(e*i,a).toString()).replace("{total}",a.toString())}),(0,t.jsxs)("div",{className:"flex items-center gap-1 order-1 sm:order-2",children:[(0,t.jsx)(eh.f,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(1),disabled:!l,title:o.pagination?.first||"First page",children:(0,t.jsx)(eg,{className:"h-4 w-4"})}),(0,t.jsx)(eh.f,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(e-1),disabled:!l,title:o.pagination?.prev||"Previous page",children:(0,t.jsx)(ef,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"hidden sm:flex items-center gap-1",children:u.map((n,a)=>"ellipsis"===n?(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."},`ellipsis-${a}`):(0,t.jsx)(eh.f,{variant:n===e?"default":"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(n),children:n},n))}),(0,t.jsxs)("span",{className:"sm:hidden text-sm px-2",children:[e," / ",n]}),(0,t.jsx)(eh.f,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(e+1),disabled:!c,title:o.pagination?.next||"Next page",children:(0,t.jsx)(ep.f,{className:"h-4 w-4"})}),(0,t.jsx)(eh.f,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(n),disabled:!c,title:o.pagination?.last||"Last page",children:(0,t.jsx)(ev,{className:"h-4 w-4"})})]})]})}],658512)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,666696,658512,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(522016),a=e.i(469937),i=e.i(846968),o=e.i(487486),l=e.i(515288),c=e.i(257428),s=e.i(111110),u=e.i(215519),h=e.i(306831),d=e.i(990745),f=e.i(713059),p=e.i(328010);let g={}.hasOwnProperty,v={}.hasOwnProperty;var m=e.i(583664),x=e.i(432066),k=e.i(586281),b=e.i(997803),C=e.i(400110);function y(e){if(60!==e.charCodeAt(0))return;let t=e.charCodeAt(1);if(33===t){let t=e.charCodeAt(2);return 45===t?2:91===t?5:(0,b.B)(t)?4:void 0}if(63===t)return 3;let n=47===t,r=n?2:1,a=r,i=e.charCodeAt(a);if(!(0,b.B)(i))return;for(;45===i||(0,b.O)(i);)i=e.charCodeAt(++a);let o=e.slice(r,a).toLowerCase();return!n&&47!==i&&C.M.includes(o)?1:C.y.includes(o)?6:7}let w=[function(e,t,n,r){if("code"===t.type&&(0,x.f)(t,r)&&("list"===e.type||e.type===t.type&&(0,x.f)(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&(0,k.f)(t,r)))return;if("html"===e.type){let t=y(e.value);if(void 0===t||6===t||7===t)return 1}if("paragraph"===e.type&&"html"===t.type){let e=y(t.value);if(void 0===e||7===e)return 1}return+!!n.spread}}],A=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],j=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\r",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\r",after:"\\r",inConstruct:"phrasing"},{character:"\n",before:"\\n",inConstruct:"phrasing"},{character:"\n",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:A},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:A},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:A},{atBreak:!0,character:"+",after:"(?:[ \r\n])"},{atBreak:!0,character:"-",after:"(?:[ \r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:A},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:A},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:A},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:A},{atBreak:!0,character:"~"},{character:"<",inConstruct:"autolink"},{character:">",inConstruct:"autolink"},{character:"",inConstruct:"autolink"}],N=-1;for(;++N<33;)j.push({character:String.fromCharCode(N),inConstruct:"autolink"});var S=e.i(35198);function z(e){return e.label||!e.identifier?e.label||"":(0,S.f)(e.identifier)}function T(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((e.beforeNode?"^":t?"("+t+")":"")+(/[$()*+.?[\\\]^{|}]/.test(e.character)?"\\":"")+e.character+(e.afterNode?"$":e.after?"(?:"+e.after+")":""),e.unicode?"gu":"g")}return e._compiled}var B=e.i(682523);function M(e){let t=e.codePointAt(0);return void 0===t?"":String.fromCodePoint(t)}function L(e){let t=e.codePointAt(e.length-2);return void 0!==t&&t>65535?e.slice(-2):e.slice(-1)}var $=e.i(177049);function F(e,t,n){let r=(0,B.f)(e),a=(0,B.f)(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}let P=new Map([["*",!1],["_",!0]]);function _(e,t,n){let r=[],a=new Map,i=new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let l=e[o].value.charAt(0),c=P.get(l),s=o+1;for(;s<e.length&&e[s].attention&&e[s].value.charAt(0)===l;)s++;let u=o?e[o-1].value:t,h=(0,B.f)(u.charCodeAt(u.length-1)),d=(0,B.f)((s<e.length?e[s].value:n).charCodeAt(0)),f=!d||2===d&&!!h,p=!h||2===h&&!!d,g={tokens:e.slice(o,s),markers:[],start:0,end:0,open:c?f&&(!!h||!p):f,close:c?p&&(!!d||!f):p,split:void 0!==c};for(let e of g.tokens){a.set(e,[...g.tokens]),i.set(e,g);let t=e.value.length;for(;t--;)g.markers.push(e)}g.end=g.markers.length,r.push(g),o=s}for(function(e,t){let n=0;for(;n<e.length;){let r=e[n],a=r.tokens[0].value.charAt(0),i=r.end-r.start,o=r.close&&i?n:0;for(;o--;){let n=e[o],l=n.end-n.start;if(n.tokens[0].value.charAt(0)===a&&n.open&&l&&(r.split?!((n.close||r.open)&&i%3)||(l+i)%3:l===n.markers.length&&l===i)){let e=r.split?l>1&&i>1?2:1:i,a=n.markers.slice(n.end-e,n.end),o=r.markers.slice(r.start,r.start+e),c=a[0],s=o[0];if(c===a[e-1]&&c.value.length===e&&s===o[e-1]&&s.value.length===e&&c.attention===s.attention)t.delete(c),t.delete(s);else{let e=[...new Set([...a,...o])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}n.end-=e,r.start+=e;break}}(-1===o||r.start===r.end)&&n++}}(r,a),o=-1;++o<e.length;){let t=a.get(e[o]);if(t)return{attention:function(e,t,n){let r=new Set;for(let a of e){let e=n.get(a);if(e&&a.attention&&t.some(e=>e.attention===a.attention))for(let t of e.tokens)r.add(t.attention)}let a=[];for(let t of e)t.attention&&r.delete(t.attention)&&a.push(t.attention);return a.reverse(),a}(e,t,i),index:o}}}function I(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?M(n.value):L(n.value),a=(0,$.f)(r.codePointAt(0));n.value=t?a+n.value.slice(r.length):n.value.slice(0,n.value.length-r.length)+a}function q(e,t,n,r){let a,i=[],o=L(n),l=-1;for(;++l<e.length;){let n=e[l];if("string"==typeof n){let e={value:n,attention:void 0};a&&a===M(n)&&I([e],!0),a=void 0,i.push(e),e.value&&(o=L(e.value));continue}let c=t.get(n)||n.sequences[0],s=c.charAt(0),u=e[l+1],h=o,d=M(void 0===u?r:"string"==typeof u?u:t.get(u)||u.sequences[0]),f=q(n.children,t,c,c),p=f.length>0?f[0].value:"",g=F(h.charCodeAt(h.length-1),p.charCodeAt(0),s);g.inside&&I(f,!0);let v=f.length>0?L(f[f.length-1].value):"",m=F(d.charCodeAt(0),v.charCodeAt(v.length-1),s);m.inside&&I(f,!1),g.outside&&"\n"!==h&&"\r"!==h&&I(i,!1),m.outside&&(a=d),i.push({value:c,attention:n},...f,{value:c,attention:n}),o=c.charAt(c.length-1)}return i}function O(e,t,n){let r=new Map,a=q(e,r,t,n),i=a,o=_(i,t,n);for(;o;){let l=function(e,t,n,r,a){for(let i of n.attention){let o=t.get(i)||i.sequences[0];for(let l of i.sequences){if(l===o)continue;let c=new Map(t);c.set(i,l);let s=q(e,c,r,a),u=_(s,r,a);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:s}}}}(e,r,o,t,n);if(!l){i=a;break}r=l.chosen,i=l.tokens,o=l.mistake}let l="";for(let e of i)l+=e.value;return l}let E=/\r?\n|\r/g;function R(e,t){let n,r=[],a=0,i=0;for(;n=E.exec(e);)o(e.slice(a,n.index)),r.push(n[0]),a=n.index+n[0].length,i++;return o(e.slice(a)),r.join("");function o(e){r.push(t(e,i,!e))}}var G=e.i(454751);let U={}.hasOwnProperty;function D(e,t){return!e||!!t&&("string"==typeof e?e===t.type:e.includes(t.type))}function Z(e,t){return e-t}function Q(e,t){let n,r=/\\(?=[!-/:-@[-`{-~])/g,a=[],i=[],o=e+t,l=-1,c=0;for(;n=r.exec(o);)a.push(n.index);for(;++l<a.length;)c!==a[l]&&i.push(e.slice(c,a[l])),i.push("\\"),c=a[l];return i.push(e.slice(c)),i.join("")}function K(e){let t=e||{},n=t.now||{},r=t.lineShift||0,a=n.line||1,i=n.column||1;return{move:function(e){let t=e||"",n=t.split(/\r?\n|\r/g),o=n[n.length-1];return a+=n.length-1,i=1===n.length?i+o.length:1+o.length+r,t},current:function(){return{now:{line:a,column:i},lineShift:r}},shift:function(e){r+=e}}}function Y(e){throw Error("Cannot handle value `"+e+"`, expected node")}function H(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function J(e,t){if("definition"===e.type&&e.type===t.type)return 0}function V(e,t){return O(function e(t,n,r){let a=n.indexStack,i=t.children||[],o=[],l=-1,c=r.before;a.push(-1);let s=n.createTracker(r);for(;++l<i.length;){let u,h=i[l];if(a[a.length-1]=l,l+1<i.length){let e=n.handle.handlers[i[l+1].type];e&&e.peek&&(e=e.peek),u=e?M(e(i[l+1],t,n,{before:"",after:"",...s.current()})):""}else u=r.after;let d=o[o.length-1];"string"==typeof d&&("\r"===c||"\n"===c)&&"html"===h.type&&7!==y(h.value)&&(o[o.length-1]=d.replace(/(\r?\n|\r)$/," "),c=" ",(s=n.createTracker(r)).move(O(o,r.before,r.after)));let f=n.handle.handlers[h.type];if(f&&f.attention){let{construct:t,markers:r,sizes:a}=f.attention(h,n),i=function(e,t,n){if(0===t.length)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(0===n.length)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let a of t){if(1!==a.length)throw Error("Cannot serialize `"+e+"` as attention with `"+a+"` as marker, expected a single ascii character");if(!(0,b.c)(a.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+a+"` as marker, expected ascii punctuation");for(let e of n)r.push(a.repeat(e))}return r}(h.type,r,a),l=i[0],u=n.enter(t);s.move(l);let d=e(h,n,{...s.current(),before:l,after:l});s.move(O(d,l,l)),s.move(l),u(),o.push({children:d,sequences:i}),c=l.charAt(l.length-1)}else{let e=n.handle(h,t,n,{...s.current(),after:u,before:c});if(!e)continue;s.move(e),o.push(e),c=L(e)}}return a.pop(),o}(e,this,t),t.before,t.after)}function W(e,t){return function(e,t,n){let r=t.indexStack,a=e.children||[],i=t.createTracker(n),o=[],l=-1;for(r.push(-1);++l<a.length;){let n=a[l];r[r.length-1]=l,o.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),l<a.length-1&&o.push(i.move(function(e,t,n,r){let a=r.join.length;for(;a--;){let i=r.join[a](e,t,n,r);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n<!---->\n\n"}return"\n\n"}(n,a[l+1],e,t)))}return r.pop(),o.join("")}(e,this,t)}function X(e,t){return function(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),a=[],i=[],o={},l=e.stack.includes("autolink"),c=n.before?n.before.length:0,s=r.length-(n.after?n.after.length:0),u=-1;for(;++u<e.unsafe.length;){let t,i=e.unsafe[u];if(!(0,G.f)(e.stack,i)||!D(i.beforeNode,n.beforeNode)||!D(i.afterNode,n.afterNode))continue;let l=e.compilePattern(i),h=i.beforeNode?c:0,d=r.slice(h,i.afterNode?s:void 0);for(;t=l.exec(d);){let e="before"in i||!!i.atBreak,n="after"in i,r=h+t.index+(e?t[1].length:0);U.call(o,r)?(o[r].before&&!e&&(o[r].before=!1),o[r].after&&!n&&(o[r].after=!1)):(a.push(r),o[r]={before:e,after:n})}}a.sort(Z);let h=c;for(u=-1;++u<a.length;){let e=a[u];if(!(e<h)&&!(e>=s)){if("_"===r.charAt(e)&&e>0&&void 0===(0,B.f)(r.charCodeAt(e-1))&&!U.call(o,e-1)&&!(e-1===c&&/[*_]/.test(r.charAt(c-1)))){let t=e+1;for(;t<s&&"_"===r.charAt(t);)t++;let n=t-e-1;if(a[u+n]===t-1&&t<r.length&&void 0===(0,B.f)(r.charCodeAt(t))&&!U.call(o,t)&&!(t===s-1&&/[*_]/.test(r.charAt(s)))){u+=n;continue}}if((!(e+1<s)||a[u+1]!==e+1||!o[e].after||o[e+1].before||o[e+1].after)&&(a[u-1]!==e-1||!o[e].before||o[e-1].before||o[e-1].after)){if(h!==e){let t=r.slice(h,e);i.push(l?t:Q(t,"\\"))}h=e,l?(i.push("%"+r.charCodeAt(e).toString(16).toUpperCase().padStart(2,"0")),h++):!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push((0,$.f)(r.charCodeAt(e))),h++):i.push("\\")}}}let d=r.slice(h,s);return i.push(l?d:Q(d,n.after)),i.join("")}(this,e,t)}let ee=(0,e.i(175765).f)().use(f.f).use(function(e){let t=this;t.compiler=function(n){var r;let a,i;return r={...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]},!function e(t,n){var r,a,i,o;let l,c=-1;if(n.extensions)for(;++c<n.extensions.length;)e(t,n.extensions[c]);for(l in n)if(v.call(n,l))switch(l){case"extensions":break;case"unsafe":case"join":r=t[l],(a=n[l])&&r.push(...a);break;case"handlers":i=t[l],(o=n[l])&&Object.assign(i,o);break;default:t.options[l]=n[l]}return t}(a={associationId:z,bulletCurrent:void 0,bulletLastUsed:void 0,containerPhrasing:V,containerFlow:W,createTracker:K,compilePattern:T,enter:function(e){return a.stack.push(e),function(){a.stack.pop()}},handlers:{...m.f},handle:void 0,indentLines:R,indexStack:[],join:[...w],options:{},safe:X,stack:[],unsafe:[...j]},r||{}),a.options.tightDefinitions&&a.join.push(J),a.handle=function(e,t){let n=t||{};function r(t,...n){let a=r.invalid,i=r.handlers;if(t&&g.call(t,e)){let n=String(t[e]);a=g.call(i,n)?i[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:Y,unknown:H,handlers:a.handlers}),(i=a.handle((0,p.f)(n)?{type:"root",children:[n]}:n,void 0,a,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0}))&&10!==i.charCodeAt(i.length-1)&&13!==i.charCodeAt(i.length-1)&&(i+="\n"),i}}).freeze(),et={blockquote:el,break:function(){return{type:"text",value:"\n"}},code:ec,definition:ec,delete:el,emphasis:el,footnoteReference:ec,footnoteDefinition:ec,heading:function(e){return{type:"paragraph",children:e.children}},html:ec,image:ei,imageReference:ei,inlineCode:eo,list:el,listItem:el,link:el,linkReference:el,strong:el,table:ec,tableCell:ec,text:eo,thematicBreak:ec,toml:ec,yaml:ec},en={},er=[];function ea(e){let t={...et},n=e||en,r=n.keep||er,a=n.remove||er,i=-1;for(;++i<a.length;){let e=a[i];"string"==typeof e?t[e]=ec:t[e[0]]=e[1]}let o={};if(0===r.length)o=t;else{let e;for(e in t)r.includes(e)||(o[e]=t[e]);for(i=-1;++i<r.length;)if(!Object.hasOwn(t,e=r[i]))throw Error("Unknown node type `"+e+"` in `keep`, use a replace tuple with a handle instead: `remove: [['"+e+"', handle]]`")}return function(e){return l(e)};function l(e){let t=e.type,n=e;if(Object.hasOwn(o,t)){let e=o[t];e&&(n=e(n)||void 0)}return(n=Array.isArray(n)?c(n):n)&&"children"in n&&(n.children=c(n.children)),n}function c(e){let t=-1,n=[];for(;++t<e.length;){let r=l(e[t]);Array.isArray(r)?n.push(...c(r)):r&&n.push(r)}var r=n;let a,i=-1,o=[];for(;++i<r.length;){let e=r[i];a&&e.type===a.type&&"value"in e&&"value"in a?a.value+=e.value:(o.push(e),a=e)}return o}}function ei(e){let t="title"in e?e.title:"",n=e.alt||t||"";return n?{type:"text",value:n}:void 0}function eo(e){return{type:"text",value:e.value}}function el(e){return e.children}function ec(){}var es=e.i(201276),eu=e.i(62825);e.s(["f",0,function({item:e,selectMode:f,selected:p,onToggleSelect:g,selectedTag:v,onTagClick:m}){let x,{t:k,language:b}=(0,s.b)(),{timeZone:C}=(0,u.M)(),[y,w]=(0,n.useState)(!1),A=(0,d.f)(e),j=A.length-3,N=e.masteryStatus??"new";return(0,t.jsxs)("div",{className:"relative animate-in fade-in duration-300",children:[f&&(0,t.jsx)("div",{className:"absolute top-2 left-2 z-10",onClick:e=>{e.preventDefault(),e.stopPropagation(),g()},children:(0,t.jsx)(c.f,{checked:p,"aria-label":k.questionSimilarity.selectQuestion.replace("{id}",e.shortId||e.id),className:"h-5 w-5 border-2 bg-background shadow-sm"})}),(0,t.jsx)(r.default,{href:f?"#":`/error-items/${e.id}`,onClick:e=>f&&e.preventDefault(),children:(0,t.jsxs)(l.N,{className:`h-full cursor-pointer gap-2 rounded-2xl border-l-4 pt-4 transition-all duration-200 hover:-translate-y-1 hover:bg-muted/60 hover:shadow-lg ${i.o[N]} ${f&&p?"ring-2 ring-primary":"hover:border-y-foreground/25 hover:border-r-foreground/25"}`,children:[(0,t.jsx)(l.Y,{className:"pb-0",children:(0,t.jsxs)("div",{className:`flex justify-between items-start ${f?"pl-7":""}`,children:[(0,t.jsx)(i.x,{status:N}),(0,t.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:["number"==typeof e.masteryProbability&&(0,t.jsxs)("span",{title:k.mastery.probability,children:[Math.round(100*e.masteryProbability),"%"]}),e.shortId&&(0,t.jsx)("span",{className:"font-mono",children:e.shortId}),(0,h.r)(e.createdAt,"MM/dd",C)]})]})}),(0,t.jsxs)(l.O,{children:[(0,t.jsx)("div",{className:"text-sm line-clamp-3",children:(x=function(e){if(!e)return"";try{let t=e.replace(/\\_/g,"_"),n=ee().use(ea).processSync(t);return t=(t=String(n)).replace(/\\left/g,"").replace(/\\right/g,"").replace(/\\begin\{.*?\}/g,"").replace(/\\end\{.*?\}/g,"").replace(/\\(?:text|mbox)\{(.*?)\}/g,"$1").replace(/\\frac\s*\{([^{}]+)\}\s*\{([^{}]+)\}/g,"$1/$2").replace(/\\sqrt\s*\{([^{}]+)\}/g,"√$1").replace(/\^\{([^{}]+)\}/g,"^$1").replace(/_\{([^{}]+)\}/g,"_$1").replace(/\\leq?(?![a-zA-Z])/g,"≤").replace(/\\geq?(?![a-zA-Z])/g,"≥").replace(/\\times/g,"×").replace(/\\div/g,"÷").replace(/\\cdot/g,"·").replace(/\\neq/g,"≠").replace(/\\approx/g,"≈").replace(/\\pm/g,"±").replace(/\\infty/g,"∞").replace(/\\circ/g,"°").replace(/\\triangle/g,"△").replace(/\\angle/g,"∠").replace(/\\because/g,"∵").replace(/\\therefore/g,"∴").replace(/\$/g,"").replace(/\\/g,"").trim()}catch(t){return es.f.error("[Markdown]","Failed to strip markdown",{error:t}),e}}((e.questionText||"").split("\n\n")[0])).length>80?x.substring(0,80)+"...":x}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-3",children:[(0,t.jsx)(o.f,{variant:"secondary",className:"text-xs",children:(0,eu.i)(e.mistakeStatus,b)}),(0,t.jsx)(a.f,{value:e.difficultyStars,showUnrated:!1})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 mt-3",children:[(y?A:A.slice(0,3)).map(e=>(0,t.jsx)(o.f,{variant:v===e?"default":"outline",className:`text-xs cursor-pointer transition-colors ${v===e?"":"bg-background hover:border-foreground/40 hover:bg-foreground/10"}`,onClick:t=>{t.preventDefault(),m(e)},children:e},e)),j>0&&(0,t.jsx)(o.f,{variant:"secondary",className:"text-xs cursor-pointer hover:bg-secondary/80 transition-colors",title:y?k.notebooks?.collapseTagsTooltip||"Click to collapse":(k.notebooks?.expandTagsTooltip||"Click to expand {count} tags").replace("{count}",j.toString()),onClick:e=>{e.preventDefault(),e.stopPropagation(),w(!y)},children:y?k.notebooks?.collapseTags||"Collapse":(k.notebooks?.expandTags||"+{count} more").replace("{count}",j.toString())})]})]})]})})]})}],666696);var eh=e.i(519455),ed=e.i(456420);let ef={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};ef.node;let ep=(0,ed.f)(ef);var eg=e.i(867927);let ev={name:"chevrons-left",size:24,node:[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]};ev.node;let em=(0,ed.f)(ev),ex={name:"chevrons-right",size:24,node:[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]};ex.node;let ek=(0,ed.f)(ex);var eb=e.i(469817);e.s(["f",0,function({page:e,totalPages:n,onPageChange:r,total:a,pageSize:i}){let{t:o}=(0,s.b)();if(n<=1)return null;let l=e>1,c=e<n,u=(()=>{let t=[];if(n<=eb.u)for(let e=1;e<=n;e++)t.push(e);else{t.push(1),e>3&&t.push("ellipsis");let r=Math.max(2,e-1),a=Math.min(n-1,e+1);for(let e=r;e<=a;e++)t.push(e);e<n-2&&t.push("ellipsis"),t.push(n)}return t})();return(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 py-4",children:[void 0!==a&&void 0!==i&&(0,t.jsx)("div",{className:"text-sm text-muted-foreground order-2 sm:order-1",children:(o.pagination?.showing||"Showing {start}-{end} of {total}").replace("{start}",((e-1)*i+1).toString()).replace("{end}",Math.min(e*i,a).toString()).replace("{total}",a.toString())}),(0,t.jsxs)("div",{className:"flex items-center gap-1 order-1 sm:order-2",children:[(0,t.jsx)(eh.f,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(1),disabled:!l,title:o.pagination?.first||"First page",children:(0,t.jsx)(em,{className:"h-4 w-4"})}),(0,t.jsx)(eh.f,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(e-1),disabled:!l,title:o.pagination?.prev||"Previous page",children:(0,t.jsx)(ep,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"hidden sm:flex items-center gap-1",children:u.map((n,a)=>"ellipsis"===n?(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."},`ellipsis-${a}`):(0,t.jsx)(eh.f,{variant:n===e?"default":"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(n),children:n},n))}),(0,t.jsxs)("span",{className:"sm:hidden text-sm px-2",children:[e," / ",n]}),(0,t.jsx)(eh.f,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(e+1),disabled:!c,title:o.pagination?.next||"Next page",children:(0,t.jsx)(eg.f,{className:"h-4 w-4"})}),(0,t.jsx)(eh.f,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>r(n),disabled:!c,title:o.pagination?.last||"Last page",children:(0,t.jsx)(ek,{className:"h-4 w-4"})})]})]})}],658512)}]);
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1661,e=>{"use strict";var s=e.i(843476),t=e.i(111110),a=e.i(217255),r=e.i(215519),i=e.i(325164),n=e.i(522016),l=e.i(618566),o=e.i(749803),c=e.i(856423),d=e.i(975153),m=e.i(226091),u=e.i(367784),p=e.i(456420);let h={name:"circle-plus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],aliases:["plus-circle"]};h.node;let x=(0,p.f)(h),g={name:"shield",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]};g.node;let f=(0,p.f)(g);var j=e.i(271645);let v={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};v.node;let y=(0,p.f)(v),b={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};b.node;let w=(0,p.f)(b),N={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};N.node;let k=(0,p.f)(N);var S=e.i(999092),C=e.i(632781);let T={name:"message-square-text",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]};T.node;let A=(0,p.f)(T),E={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};E.node;let z=(0,p.f)(E);var _=e.i(901279),D=e.i(994533),M=e.i(519455),F=e.i(776639),L=e.i(677572),R=e.i(306831),I=e.i(487486),$=e.i(699375),U=e.i(793479),P=e.i(110204),q=e.i(975157);let O=j.forwardRef(({className:e,...t},a)=>(0,s.jsx)("div",{className:"relative w-full overflow-auto",children:(0,s.jsx)("table",{ref:a,className:(0,q.f)("w-full caption-bottom text-sm",e),...t})}));O.displayName="Table";let K=j.forwardRef(({className:e,...t},a)=>(0,s.jsx)("thead",{ref:a,className:(0,q.f)("[&_tr]:border-b",e),...t}));K.displayName="TableHeader";let B=j.forwardRef(({className:e,...t},a)=>(0,s.jsx)("tbody",{ref:a,className:(0,q.f)("[&_tr:last-child]:border-0",e),...t}));B.displayName="TableBody",(j.forwardRef(({className:e,...t},a)=>(0,s.jsx)("tfoot",{ref:a,className:(0,q.f)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}))).displayName="TableFooter";let H=j.forwardRef(({className:e,...t},a)=>(0,s.jsx)("tr",{ref:a,className:(0,q.f)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));H.displayName="TableRow";let V=j.forwardRef(({className:e,...t},a)=>(0,s.jsx)("th",{ref:a,className:(0,q.f)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));V.displayName="TableHead";let Y=j.forwardRef(({className:e,...t},a)=>(0,s.jsx)("td",{ref:a,className:(0,q.f)("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Y.displayName="TableCell",(j.forwardRef(({className:e,...t},a)=>(0,s.jsx)("caption",{ref:a,className:(0,q.f)("mt-4 text-sm text-muted-foreground",e),...t}))).displayName="TableCaption";var W=e.i(759659);let J={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};J.node;let X=(0,p.f)(J);var G=e.i(548161),Z=e.i(41931),Q=e.i(294114),ee=e.i(201276),es=e.i(303163);function et(){let{timeZone:e}=(0,r.M)(),{data:i}=(0,a.useSession)(),{t:n}=(0,t.b)(),[l,o]=(0,j.useState)([]),[c,d]=(0,j.useState)(!0),[m,u]=(0,j.useState)(!1),[p,h]=(0,j.useState)(!1),[x,g]=(0,j.useState)("0"),[f,v]=(0,j.useState)(!1),y=(0,j.useCallback)(async()=>{d(!0);try{let e=await Z.f.get("/api/admin/users");o(e)}catch(e){ee.f.error("[UserManagement]","Failed to fetch users",{error:e})}finally{d(!1)}},[]),b=(0,j.useCallback)(async()=>{try{let e=await Z.f.get("/api/settings");u(!0===e.allowRegistration),g(String(e.aiDailyLimit??0))}catch(e){ee.f.error("[UserManagement]","Failed to fetch config",{error:e})}},[]);(0,j.useEffect)(()=>{y(),b()},[y,b]);let w=async e=>{h(!0);try{await Z.f.post("/api/settings",{allowRegistration:e}),u(e)}catch(e){ee.f.error("[UserManagement]","Failed to update registration setting",{error:e}),Q.c.error(n.common.error)}finally{h(!1)}},N=Number(x),k=""!==x.trim()&&Number.isInteger(N)&&N>=0,S=async()=>{if(k){v(!0);try{await Z.f.post("/api/settings",{aiDailyLimit:N}),Q.c.success(n.admin.aiDailyLimitSaved)}catch(e){ee.f.error("[UserManagement]","Failed to update AI daily limit",{error:e}),Q.c.error(n.common.error)}finally{v(!1)}}},T=async e=>{let s=e.isActive?n.admin.confirmDisable:n.admin.confirmEnable;if(await (0,Q.u)(s))try{await Z.f.patch(`/api/admin/users/${e.id}`,{isActive:!e.isActive}),y()}catch(e){ee.f.error("[UserManagement]","Failed to update user status",{error:e}),Q.c.error(n.common.error)}},A=async e=>{if(await (0,Q.u)(n.admin.confirmDelete,{destructive:!0}))try{await Z.f.delete(`/api/admin/users/${e.id}`),y()}catch(s){ee.f.error("[UserManagement]","Failed to delete user",{error:s});let e=(0,es.d)(s)||n.common.error;Q.c.error(e)}};return c?(0,s.jsx)("div",{className:"flex justify-center py-8",children:(0,s.jsx)(C.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-lg bg-muted/30",children:[(0,s.jsxs)("div",{className:"space-y-0.5",children:[(0,s.jsx)(P.f,{className:"text-base",children:n.admin?.allowRegistration||"Allow New Registrations"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:n.admin?.allowRegistrationDesc||"When disabled, new users cannot register"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[p&&(0,s.jsx)(C.f,{className:"h-4 w-4 animate-spin"}),(0,s.jsx)($.f,{checked:m,onCheckedChange:w,disabled:p})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 p-4 border rounded-lg bg-muted/30 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"space-y-0.5",children:[(0,s.jsx)(P.f,{htmlFor:"ai-daily-limit",className:"text-base",children:n.admin.aiDailyLimit}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:n.admin.aiDailyLimitDesc})]}),(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,s.jsx)(U.f,{id:"ai-daily-limit",type:"number",min:0,step:1,inputMode:"numeric",value:x,onChange:e=>g(e.target.value),"aria-invalid":!k,className:"w-24"}),(0,s.jsxs)(M.f,{size:"sm",onClick:S,disabled:f||!k,children:[f&&(0,s.jsx)(C.f,{className:"mr-2 h-4 w-4 animate-spin"}),n.common.save]})]})]}),(0,s.jsx)("div",{className:"sm:hidden space-y-3",children:l.map(t=>(0,s.jsxs)("div",{className:"border rounded-lg p-4 bg-card space-y-3",children:[(0,s.jsxs)("div",{className:"flex justify-between items-start",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-medium",children:t.name||"N/A"}),(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:t.email})]}),(0,s.jsx)(I.f,{variant:"admin"===t.role?"default":"secondary",children:"admin"===t.role?n.admin.admin:n.admin.user})]}),(0,s.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,s.jsxs)("div",{className:"text-muted-foreground",children:[n.admin.errors,": ",t._count.errorItems," | ",n.admin.practiceCount,": ",t._count.practiceRecords," | ",n.admin.aiUsageToday,": ",t.aiUsageToday]}),(0,s.jsx)(I.f,{variant:t.isActive?"default":"destructive",className:"text-xs",children:t.isActive?n.admin.active:n.admin.disabled})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center pt-2 border-t",children:[(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:(0,R.r)(t.createdAt,"yyyy-MM-dd",e)}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(M.f,{variant:"ghost",size:"sm",onClick:()=>T(t),disabled:t.id===i?.user?.id,children:t.isActive?(0,s.jsx)(X,{className:"h-4 w-4 text-orange-500"}):(0,s.jsx)(G.f,{className:"h-4 w-4 text-green-500"})}),(0,s.jsx)(M.f,{variant:"ghost",size:"sm",onClick:()=>A(t),disabled:t.id===i?.user?.id,children:(0,s.jsx)(W.f,{className:"h-4 w-4 text-destructive"})})]})]})]},t.id))}),(0,s.jsx)("div",{className:"hidden sm:block border rounded-lg overflow-hidden",children:(0,s.jsxs)(O,{children:[(0,s.jsx)(K,{children:(0,s.jsxs)(H,{children:[(0,s.jsx)(V,{children:n.admin.nameEmail}),(0,s.jsx)(V,{children:n.admin.role}),(0,s.jsx)(V,{children:n.admin.stats}),(0,s.jsx)(V,{children:n.admin.createdAt}),(0,s.jsx)(V,{children:n.admin.status}),(0,s.jsx)(V,{className:"text-right",children:n.admin.actions})]})}),(0,s.jsx)(B,{children:l.map(t=>(0,s.jsxs)(H,{children:[(0,s.jsxs)(Y,{children:[(0,s.jsx)("div",{className:"font-medium",children:t.name||"N/A"}),(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:t.email})]}),(0,s.jsx)(Y,{children:(0,s.jsx)(I.f,{variant:"admin"===t.role?"default":"secondary",children:"admin"===t.role?n.admin.admin:n.admin.user})}),(0,s.jsxs)(Y,{children:[(0,s.jsxs)("div",{className:"text-sm",children:[n.admin.errors,": ",t._count.errorItems]}),(0,s.jsxs)("div",{className:"text-sm",children:[n.admin.practiceCount,": ",t._count.practiceRecords]}),(0,s.jsxs)("div",{className:"text-sm",children:[n.admin.aiUsageToday,": ",t.aiUsageToday]})]}),(0,s.jsx)(Y,{children:(0,R.r)(t.createdAt,"yyyy-MM-dd",e)}),(0,s.jsx)(Y,{children:(0,s.jsx)(I.f,{variant:t.isActive?"default":"destructive",children:t.isActive?n.admin.active:n.admin.disabled})}),(0,s.jsxs)(Y,{className:"text-right space-x-2",children:[(0,s.jsx)(M.f,{variant:"ghost",size:"sm",onClick:()=>T(t),disabled:t.id===i?.user?.id,title:t.isActive?n.admin.disable:n.admin.enable,children:t.isActive?(0,s.jsx)(X,{className:"h-4 w-4 text-orange-500"}):(0,s.jsx)(G.f,{className:"h-4 w-4 text-green-500"})}),(0,s.jsx)(M.f,{variant:"ghost",size:"sm",onClick:()=>A(t),disabled:t.id===i?.user?.id,title:n.admin.delete,children:(0,s.jsx)(W.f,{className:"h-4 w-4 text-destructive"})})]})]},t.id))})]})})]})}var ea=e.i(482022);let er={name:"scroll-text",size:24,node:[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]};er.node;let ei=(0,p.f)(er);function en(e){return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...e,children:[(0,s.jsx)("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}),(0,s.jsx)("path",{d:"M9 18c-4.51 2-5-2-7-2"})]})}let el={name:"server",size:24,node:[["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"}]]};el.node;let eo=(0,p.f)(el);function ec(){return window.WrongNotebookAndroid??null}let ed=()=>()=>void 0;function em(){let{t:e}=(0,t.b)(),a=(0,j.useSyncExternalStore)(ed,ec,()=>null);return a?a.isStandalone?.()?(0,s.jsx)("p",{className:"text-center text-sm text-muted-foreground",children:e.settings?.about?.androidStandalone||"Running on this device. Data is stored only on this device."}):(0,s.jsxs)("div",{className:"flex flex-col items-center gap-2 text-sm text-muted-foreground",children:[(0,s.jsxs)("span",{className:"break-all",children:[e.settings?.about?.androidServer||"Server",": ",a.getServerUrl()]}),(0,s.jsxs)(M.f,{variant:"outline",className:"gap-2",onClick:()=>a.changeServer(),children:[(0,s.jsx)(eo,{className:"h-4 w-4"}),e.settings?.about?.changeServer||"Change server"]})]}):null}var eu=e.i(637691);function ep(){let{t:e}=(0,t.b)(),[a,r]=(0,j.useState)("");(0,j.useEffect)(()=>{fetch("/api/version").then(e=>e.json()).then(e=>r(e.version)).catch(()=>{})},[]);let i=[{href:eu.f,icon:en,label:e.settings?.about?.github||"GitHub Repository"},{href:`${eu.f}/releases`,icon:ei,label:e.settings?.about?.releaseNotes||"Release Notes"},{href:`${eu.f}/issues`,icon:A,label:e.settings?.about?.feedback||"Feedback"}];return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6 py-8 text-center bg-muted/30 rounded-lg border",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold",children:e.app?.title||"Smart Error Notebook"}),(0,s.jsx)("p",{className:"text-muted-foreground",children:e.settings?.about?.desc||"AI-powered learning assistant"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2 text-sm text-muted-foreground border px-4 py-2 rounded-full bg-background",children:[(0,s.jsx)(k,{className:"h-4 w-4"}),(0,s.jsxs)("span",{children:[e.settings?.about?.version||"Version",": v",a||"unknown"]})]}),(0,s.jsx)(em,{}),(0,s.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap justify-center gap-4 w-full sm:w-auto px-4 sm:px-0",children:i.map(({href:e,icon:t,label:a})=>(0,s.jsx)(M.f,{variant:"outline",asChild:!0,className:"gap-2 w-full sm:w-auto",children:(0,s.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)(t,{className:"h-4 w-4"}),a,(0,s.jsx)(ea.f,{className:"h-3 w-3 ml-1 opacity-50"})]})},e))}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-8",children:e.settings?.about?.copyright||"© 2026 margrop · Based on wttwins/wrong-notebook · MIT License"})]})}var eh=e.i(37038),ex=e.i(967489);let eg={name:"",email:"",educationStage:"",enrollmentYear:"",password:""};function ef(){let{t:e}=(0,t.b)(),[a,r]=(0,j.useState)(eg),[i,n]=(0,j.useState)(""),[l,o]=(0,j.useState)(!0),[c,d]=(0,j.useState)(!1),m=(0,j.useCallback)(async()=>{try{let e=await Z.f.get("/api/user");r({name:e.name||"",email:e.email||"",educationStage:e.educationStage||"",enrollmentYear:e.enrollmentYear||"",password:""})}catch(e){ee.f.error("[AccountSettings]","Failed to fetch profile",{error:e})}finally{o(!1)}},[]);(0,j.useEffect)(()=>{m()},[m]);let u=async()=>{if(a.password&&a.password!==i)return void Q.c.error(e.settings?.messages?.passwordMismatch||"Passwords do not match");d(!0);try{let s={name:a.name,email:a.email,educationStage:a.educationStage};a.enrollmentYear&&(s.enrollmentYear=parseInt(a.enrollmentYear.toString())),a.password&&(s.password=a.password),await Z.f.patch("/api/user",s),Q.c.success(e.settings?.messages?.profileUpdated||"Profile updated"),r(e=>({...e,password:""})),n(""),window.location.reload()}catch(s){ee.f.error("[AccountSettings]","Failed to update profile",{error:(0,es.d)(s)??(0,es.Z)(s)}),Q.c.error((0,es.d)(s)||e.settings?.messages?.updateFailed||"Update failed")}finally{d(!1)}};return l?(0,s.jsx)("div",{className:"flex justify-center py-8",children:(0,s.jsx)(C.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):(0,s.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(P.f,{children:e.auth?.name||"Name"}),(0,s.jsx)(U.f,{value:a.name||"",onChange:e=>r({...a,name:e.target.value})})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(P.f,{children:e.auth?.email||"Email"}),(0,s.jsx)(U.f,{value:a.email||"",onChange:e=>r({...a,email:e.target.value}),type:"email"})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(P.f,{children:e.auth?.educationStage||"Education Stage"}),(0,s.jsxs)(ex.d,{value:a.educationStage||"",onValueChange:e=>r({...a,educationStage:e}),children:[(0,s.jsx)(ex.P,{children:(0,s.jsx)(ex.U,{placeholder:e.auth?.selectStage||"Select Stage"})}),(0,s.jsxs)(ex.r,{children:[(0,s.jsx)(ex.T,{value:"primary",children:e.auth?.primary||"Primary School"}),(0,s.jsx)(ex.T,{value:"junior_high",children:e.auth?.juniorHigh||"Junior High"}),(0,s.jsx)(ex.T,{value:"senior_high",children:e.auth?.seniorHigh||"Senior High"}),(0,s.jsx)(ex.T,{value:"university",children:e.auth?.university||"University"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(P.f,{children:e.auth?.enrollmentYear||"Enrollment Year"}),(0,s.jsx)(U.f,{type:"number",value:a.enrollmentYear||"",onChange:e=>r({...a,enrollmentYear:e.target.value}),placeholder:"YYYY"})]})]}),(0,s.jsxs)("div",{className:"space-y-3 pt-2 border-t",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(P.f,{children:e.settings?.account?.changePassword||"Change Password (Leave empty to keep)"}),(0,s.jsx)(eh.f,{value:a.password,onChange:e=>r({...a,password:e.target.value}),placeholder:"******",minLength:6})]}),a.password&&(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(P.f,{children:e.auth?.confirmPassword||"Confirm Password"}),(0,s.jsx)(eh.f,{value:i,onChange:e=>n(e.target.value),placeholder:"******",minLength:6})]})]}),(0,s.jsxs)(M.f,{onClick:u,disabled:c,className:"w-full",children:[c&&(0,s.jsx)(C.f,{className:"mr-2 h-4 w-4 animate-spin"}),e.settings?.account?.update||"Update Profile"]})]})}var ej=e.i(10038),ev=e.i(741120);let ey={info:{card:"border-blue-200 bg-blue-50",title:"text-blue-900 font-bold",desc:"text-blue-800 font-medium",button:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300"},danger:{card:"border-red-200 bg-red-50",title:"text-red-700 font-medium",desc:"text-red-600",button:""},critical:{card:"border-red-600/50 bg-red-100/50",title:"text-red-900 font-bold",desc:"text-red-800 font-medium",button:"bg-red-700 hover:bg-red-800"}};function eb({title:e,description:t,tone:a,busy:r,icon:i,onClick:n}){let l=ey[a];return(0,s.jsxs)("div",{className:`p-4 border rounded-lg ${l.card}`,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:`text-sm flex items-center gap-2 ${l.title}`,children:e}),(0,s.jsx)(M.f,{variant:"info"===a?"outline":"destructive",size:"sm",onClick:n,disabled:r,className:l.button,children:r?(0,s.jsx)(C.f,{className:"h-4 w-4 animate-spin"}):i})]}),(0,s.jsx)("p",{className:`text-xs mt-2 ${l.desc}`,children:t})]})}function ew({isAdmin:e}){let{t:a}=(0,t.b)(),[r,i]=(0,j.useState)(null),n=async(e,s,t,a)=>{i(e);try{Q.c.success(await s()),a&&window.location.reload()}catch(s){ee.f.error("[DangerZoneSettings]",`${e} failed`,{error:s}),Q.c.error(t)}finally{i(null)}},l=a.settings?.clearSuccess||"Success",o=a.settings?.clearError||"Failed",c=async()=>{await (0,Q.u)(a.settings?.migrateTagsConfirm||"This will reset system tags. Confirm?",{destructive:!0})&&await n("migrateTags",async()=>{let e=await Z.f.post("/api/admin/migrate-tags",{});return`${l}: ${e.count||0} tags migrated.`},a.settings?.clearError||"Failed to migrate tags",!1)},d=async()=>{await (0,Q.u)(a.settings?.clearDataConfirm||"Are you sure?",{destructive:!0})&&await n("clearPractice",async()=>(await Z.f.delete("/api/stats/practice/clear"),l),o,!0)},m=async()=>{await (0,Q.u)(a.settings?.clearErrorDataConfirm||"Are you sure?",{destructive:!0})&&await n("clearErrors",async()=>(await Z.f.delete("/api/error-items/clear"),l),o,!0)},u=async()=>{if(!await (0,Q.u)(a.settings?.systemResetConfirm||"WARNING: Deleting ALL data. Undoing is impossible. Are you sure?",{destructive:!0}))return;let e=prompt(a.settings?.systemResetPrompt||"Type 'RESET' to confirm system initialization:","");if("RESET"!==e){null!==e&&Q.c.error(a.common?.error||"Confirmation failed");return}await n("systemReset",async()=>(await Z.f.post("/api/admin/system-reset",{}),a.settings?.clearSuccess||"Success - System Reset Complete"),a.settings?.clearError||"Failed to reset system",!0)};return(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(eb,{tone:"info",title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ev.f,{className:"h-4 w-4"}),a.settings?.migrateTags||"Migrate Tags"]}),description:a.settings?.migrateTagsDesc||"Re-populates standard tags from file",busy:"migrateTags"===r,icon:(0,s.jsx)(ev.f,{className:"h-4 w-4"}),onClick:c}),(0,s.jsx)(eb,{tone:"danger",title:a.settings?.clearData||"Clear Practice Data",description:a.settings?.clearDataDesc||"This will permanently delete all practice history. Irreversible.",busy:"clearPractice"===r,icon:(0,s.jsx)(W.f,{className:"h-4 w-4"}),onClick:d}),(0,s.jsx)(eb,{tone:"danger",title:a.settings?.clearErrorData||"Clear Error Data",description:a.settings?.clearErrorDataDesc||"This will permanently delete all error items. Irreversible.",busy:"clearErrors"===r,icon:(0,s.jsx)(W.f,{className:"h-4 w-4"}),onClick:m}),e&&(0,s.jsx)(eb,{tone:"critical",title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{className:"h-4 w-4"}),a.settings?.systemReset||"System Initialization"]}),description:a.settings?.systemResetDesc||"Resets the system to factory state. Deletes ALL data.",busy:"systemReset"===r,icon:(0,s.jsx)(W.f,{className:"h-4 w-4"}),onClick:u})]})}var eN=e.i(551757),ek=e.i(762368);let eS={name:"upload",size:24,node:[["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"}]]};eS.node;let eC=(0,p.f)(eS);async function eT(e,s){let t=await fetch(e);if(!t.ok)throw Error((await t.json().catch(()=>({}))).message||"Export failed");let a=await t.blob(),r=window.URL.createObjectURL(a),i=document.createElement("a");i.href=r;let n=t.headers.get("Content-Disposition")?.match(/filename="(.+)"/);i.download=n?n[1]:s,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}function eA({isAdmin:e}){let{t:a}=(0,t.b)(),[r,i]=(0,j.useState)(!1),[n,l]=(0,j.useState)(!1),[o,c]=(0,j.useState)(null),d=async e=>{if(!e||await (0,Q.u)(a.settings?.exportAllConfirm||"Export all users' data? This may take a while.")){i(!0);try{await eT(e?"/api/export?all=true":"/api/export",e?"wrong-notebook-export-all.json":"wrong-notebook-export.json"),Q.c.success(a.settings?.exportSuccess||"Export successful")}catch(s){ee.f.error("[DataBackupSettings]",e?"Export all failed":"Export failed",{error:s}),Q.c.error(a.settings?.exportFailed||"Export failed")}finally{i(!1)}}},m=async e=>{if(!o)return;let s=e?a.settings?.importAllConfirm||"Import all users' data? This will restore data for all users from the export file.":a.settings?.importConfirm||"Are you sure you want to import?";if(await (0,Q.u)(s)){l(!0);try{let s=JSON.parse(await o.text()),{stats:t}=await Z.f.post(e?"/api/import?all=true":"/api/import",s);Q.c.success((a.settings?.importResultDesc||"Imported {subjects} notebooks, {tags} tags, {items} error items, {schedules} review schedules, {records} practice records, {papers} exam papers and {voices} cloud voice clips.").replace("{subjects}",String(t.subjectsCreated)).replace("{tags}",String(t.tagsCreated)).replace("{items}",String(t.errorItemsCreated)).replace("{schedules}",String(t.reviewSchedulesCreated)).replace("{records}",String(t.practiceRecordsCreated)).replace("{papers}",String(t.examPapersCreated??0)).replace("{voices}",String(t.ttsSpeechesImported??0)).replace("{duplicates}",String(t.duplicateErrorItems??0))),c(null),window.location.reload()}catch(s){ee.f.error("[DataBackupSettings]",e?"Import all failed":"Import failed",{error:s}),Q.c.error(a.settings?.importFailed||"Import failed")}finally{l(!1)}}},u=(e,t)=>e?(0,s.jsx)(C.f,{className:"mr-2 h-4 w-4 animate-spin"}):t;return(0,s.jsxs)("div",{className:"p-4 border border-blue-200 rounded-lg bg-blue-50",children:[(0,s.jsx)("h4",{className:"text-sm font-bold text-blue-900 mb-3",children:a.settings?.dataManagement||"Data Management"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsx)("span",{className:"text-sm text-blue-800 font-medium",children:a.settings?.exportData||"Export Data"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)(M.f,{variant:"outline",size:"sm",onClick:()=>d(!1),disabled:r,className:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300",children:[u(r,(0,s.jsx)(ek.f,{className:"mr-2 h-4 w-4"})),a.settings?.exportData||"Export"]}),e&&(0,s.jsxs)(M.f,{variant:"outline",size:"sm",onClick:()=>d(!0),disabled:r,className:"bg-orange-100 hover:bg-orange-200 text-orange-900 border-orange-300",children:[u(r,(0,s.jsx)(ek.f,{className:"mr-2 h-4 w-4"})),a.settings?.exportAllData||"Export All"]})]})]}),(0,s.jsx)("p",{className:"text-xs text-blue-700",children:a.settings?.exportDataDesc||"Export all data as JSON file."})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsx)("span",{className:"text-sm text-blue-800 font-medium",children:a.settings?.importData||"Import Data"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"file",accept:".json",onChange:e=>c(e.target.files?.[0]??o),className:"hidden",id:"import-file-input",disabled:n}),(0,s.jsxs)(M.f,{variant:"outline",size:"sm",onClick:()=>document.getElementById("import-file-input")?.click(),disabled:n,className:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300",children:[u(n,(0,s.jsx)(eC,{className:"mr-2 h-4 w-4"})),o?.name||a.settings?.selectFile||"Select File"]}),o&&(0,s.jsxs)(M.f,{variant:"outline",size:"sm",onClick:()=>m(!1),disabled:n,className:"bg-green-100 hover:bg-green-200 text-green-900 border-green-300",children:[u(n,(0,s.jsx)(eN.f,{className:"mr-2 h-4 w-4"})),a.settings?.importData||"Import"]}),o&&e&&(0,s.jsxs)(M.f,{variant:"outline",size:"sm",onClick:()=>m(!0),disabled:n,className:"bg-orange-100 hover:bg-orange-200 text-orange-900 border-orange-300",children:[u(n,(0,s.jsx)(eN.f,{className:"mr-2 h-4 w-4"})),a.settings?.importAllData||"Import All"]})]})]}),(0,s.jsx)("p",{className:"text-xs text-blue-700",children:a.settings?.importDataDesc||"Import data from JSON file. Existing data will be skipped."})]})]})}var eE=e.i(307364);function ez({field:e,label:a,description:r}){let{t:i}=(0,t.b)(),[n,l]=(0,j.useState)(!1),[o,c]=(0,j.useState)(!1),[d,m]=(0,j.useState)(!1),[u,p]=(0,j.useState)(null),h=`preference-${e}`;(0,j.useEffect)(()=>{Z.f.get("/api/user").then(s=>l(!!s[e])).catch(()=>void 0).finally(()=>c(!0))},[e]);let x=async s=>{l(s),m(!0);try{await Z.f.patch("/api/user",{[e]:s}),p(i.importFlow.preferenceSaved)}catch(t){l(!s),p(i.importFlow.preferenceSaveFailed),ee.f.error("[Settings]","Failed to save user preference",{field:e,error:t instanceof Error?t.message:String(t)})}finally{m(!1)}};return(0,s.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,s.jsx)(P.f,{htmlFor:h,children:a}),(0,s.jsx)($.f,{id:h,checked:n,onCheckedChange:x,disabled:!o||d})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:r}),u&&(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:u})]})}function e_(){let{t:e}=(0,t.b)();return(0,s.jsx)(ez,{field:"enableGeogebra",label:e.importFlow.enableGeogebra,description:e.importFlow.enableGeogebraDesc})}function eD(){let{t:e}=(0,t.b)();return(0,s.jsx)(ez,{field:"confirmBeforeImport",label:e.importFlow.confirmBeforeImport,description:e.importFlow.confirmBeforeImportDesc})}var eM=e.i(905110);function eF(){let{t:e}=(0,t.b)(),[a,r]=(0,j.useState)(String(eM.z)),[i,n]=(0,j.useState)(null),[l,o]=(0,j.useState)(!0),[c,d]=(0,j.useState)(!1),[m,u]=(0,j.useState)(null),p=Number(a),h=""!==a.trim()&&Number.isInteger(p)&&p>=eM.P&&p<=eM.o,x=(0,j.useCallback)(async()=>{o(!0),u(null);try{let e=(await Z.f.get("/api/user")).masteryThreshold??eM.z;r(String(e)),n(e)}catch(s){u(e.mastery.thresholdLoadFailed),ee.f.error("[Settings]","加载已掌握阈值失败",{error:s instanceof Error?s.message:String(s)})}finally{o(!1)}},[e.mastery.thresholdLoadFailed]);(0,j.useEffect)(()=>{x()},[x]);let g=async()=>{if(h&&null!==i){d(!0),u(null);try{let s=(await Z.f.patch("/api/user",{masteryThreshold:p})).masteryThreshold??p;n(s),r(String(s)),u(e.importFlow.preferenceSaved)}catch(s){u(e.importFlow.preferenceSaveFailed),ee.f.error("[Settings]","保存已掌握阈值失败",{error:s instanceof Error?s.message:String(s)})}finally{d(!1)}}};return(0,s.jsxs)("div",{className:"space-y-2 border-t pt-4",children:[(0,s.jsx)(P.f,{htmlFor:"mastery-threshold",children:e.mastery.thresholdLabel}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)(U.f,{id:"mastery-threshold",type:"number",min:eM.P,max:eM.o,step:1,value:a,onChange:e=>{r(e.target.value),u(null)},disabled:l||c||null===i,className:"w-28","aria-describedby":"mastery-threshold-hint"}),(0,s.jsx)("span",{"aria-hidden":"true",children:"%"}),(0,s.jsxs)(M.f,{type:"button",size:"sm",variant:"outline",onClick:g,disabled:l||c||null===i||!h||p===i,children:[(l||c)&&(0,s.jsx)(C.f,{className:"mr-2 h-4 w-4 animate-spin"}),e.importFlow.saveThreshold]}),!l&&null===i&&(0,s.jsx)(M.f,{type:"button",size:"sm",variant:"outline",onClick:x,children:e.importFlow.retryLoad})]}),(0,s.jsx)("p",{id:"mastery-threshold-hint",className:"text-xs text-muted-foreground",children:e.mastery.thresholdDescription}),null!==i&&!h&&(0,s.jsx)("p",{className:"text-xs text-destructive",role:"alert",children:e.mastery.thresholdInvalid}),m&&(0,s.jsx)("p",{className:"text-xs text-muted-foreground",role:"status",children:m})]})}function eL(){let{t:e}=(0,t.b)();return(0,s.jsx)(ez,{field:"enableSvgAnimation",label:e.importFlow.enableSvgAnimation,description:e.importFlow.enableSvgAnimationDesc})}function eR({value:e,onChange:a,disabled:r}){let{t:i}=(0,t.b)();return(0,s.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,s.jsx)(P.f,{htmlFor:"app-time-zone",children:i.settings.general.timeZoneLabel}),(0,s.jsx)(U.f,{id:"app-time-zone",value:e,onChange:e=>a(e.target.value),disabled:r,list:"app-time-zones",placeholder:"Asia/Shanghai"}),(0,s.jsx)("datalist",{id:"app-time-zones",children:["Asia/Shanghai","Asia/Hong_Kong","Asia/Tokyo","Asia/Singapore","Europe/London","America/New_York","America/Los_Angeles","UTC"].map(e=>(0,s.jsx)("option",{value:e},e))}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:i.settings.general.timeZoneDesc})]})}function eI({config:e,setConfig:a,isAdmin:i,disabled:n}){let{t:l,language:o,setLanguage:c}=(0,t.b)(),{timeZone:d}=(0,r.M)(),m=e=>a(s=>({...s,timeouts:{...s.timeouts,analyze:1e3*e}}));return(0,s.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(P.f,{children:l.settings?.language||"Language"}),(0,s.jsxs)(ex.d,{value:o,onValueChange:e=>c(e),children:[(0,s.jsx)(ex.P,{children:(0,s.jsx)(ex.U,{})}),(0,s.jsxs)(ex.r,{children:[(0,s.jsx)(ex.T,{value:"zh",children:"中文 (Chinese)"}),(0,s.jsx)(ex.T,{value:"en",children:"English"})]})]})]}),(0,s.jsx)(eR,{value:e.timeZone??d,onChange:e=>a(s=>({...s,timeZone:e})),disabled:!i||n}),i&&(0,s.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,s.jsx)(P.f,{children:l.settings?.general?.timeoutLabel||"AI Analysis Timeout (Seconds)"}),(0,s.jsx)(U.f,{type:"number",value:e.timeouts?.analyze?e.timeouts.analyze/1e3:"",onChange:e=>{let s=""===e.target.value?0:parseInt(e.target.value);m(isNaN(s)?0:s)},onBlur:()=>{let s=(e.timeouts?.analyze||0)/1e3,t=Math.min(600,Math.max(120,s));t!==s&&m(t)},min:120,max:600}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:l.settings?.general?.timeoutDesc||"Increase this value if you experience frequent timeouts during AI analysis."})]}),(0,s.jsx)(eD,{}),(0,s.jsx)(eL,{}),(0,s.jsx)(e_,{}),(0,s.jsx)(eE.f,{}),(0,s.jsx)(eF,{})]})}var e$=e.i(624687),eU=e.i(247167);let eP={trace:10,debug:20,info:30,warn:40,error:50,fatal:60};function eq(e,s={}){let t,a=eP[e],r=(t=eU.default.env.LOG_LEVEL?.toLowerCase())&&void 0!==eP[t]?eP[t]:eP.info;return(t,i)=>{let n,l;if(a<r)return;let o=new Date;"string"==typeof t?(n={},l=t):(n=t,l=i||"");{let t=JSON.stringify({level:e,time:o.toISOString(),...s,...n,msg:l});switch(e){case"error":case"fatal":console.error(t);break;case"warn":console.warn(t);break;default:console.log(t)}}}}(function e(s={}){return s.module,{trace:eq("trace",s),debug:eq("debug",s),info:eq("info",s),warn:eq("warn",s),error:eq("error",s),fatal:eq("fatal",s),child:t=>e({...s,...t}),box:(e,t,a="📋")=>{console.log(JSON.stringify({level:"info",time:new Date().toISOString(),...s,title:e,..."string"==typeof t?{content:t}:t||{},msg:e}))},divider:(e="-")=>{}}})({env:"production"}).child({module:"ai:prompts"});let eO=`请参考《高思学校竞赛数学导引》(每讲分兴趣篇、拓展篇、超越篇,题目左侧标 1~5 颗星)的星级标准,结合题目所在年级评定难度:
|
|
2
|
+
- 1 星:课本基础题,直接套用概念、公式或简单计算即可(相当于兴趣篇前几题)。
|
|
3
|
+
- 2 星:校内拔高题,需要两三步推理或简单综合(相当于兴趣篇后几题)。
|
|
4
|
+
- 3 星:常规奥数题,小升初、杯赛常见难度,需要掌握该专题的典型方法(相当于拓展篇)。
|
|
5
|
+
- 4 星:较难奥数题,需要构造、分类讨论、转化或多种方法综合(相当于拓展篇末题、超越篇前几题)。
|
|
6
|
+
- 5 星:竞赛压轴题,集训队水平,思路巧妙、步骤长(相当于超越篇难题)。
|
|
7
|
+
非数学学科按同样的 1~5 级划分:1 星为基础识记,3 星为综合应用,5 星为竞赛或压轴难度。`,eK=`- 输出一个完整的 <svg> 元素,包含 xmlns="http://www.w3.org/2000/svg" 和 viewBox(建议宽 400~600),不要用 Markdown 代码块包裹。
|
|
8
|
+
- 白色背景、黑色线条(stroke="#000",线宽 1.5~2),需要区分的区域可用浅灰填充;不要使用彩色装饰。
|
|
9
|
+
- 按原图比例和相对位置绘制,保留所有标注:顶点字母、数字、长度、角度、单位、箭头和虚线等,文字用 <text>(font-size 14~18)。
|
|
10
|
+
- 只使用基本图形元素:line、polyline、polygon、rect、circle、ellipse、path、text、g、defs、marker。
|
|
11
|
+
- 严禁使用 <image>、<script>、<foreignObject>、外部链接、外部字体或事件属性。`,eB=String.raw`- 行内公式用 $...$,独立公式用 $$...$$;不要用 \(...\) 或 \[...\],每个 $ 必须成对出现。
|
|
12
|
+
- 所有 LaTeX 命令(如 \frac、\sqrt、\times、\angle)都必须写在 $...$ 内,公式外不能出现反斜杠命令。
|
|
13
|
+
- 只使用 KaTeX 支持的命令和环境:方程组用 \begin{cases}...\end{cases},多行推导用 \begin{aligned}...\end{aligned}(放在 $$...$$ 中),不要用 align、eqnarray、\newcommand、\usepackage、\label、\tag 等。
|
|
14
|
+
- 大括号 {} 必须成对,\left 与 \right 必须成对,\begin{...} 与 \end{...} 必须对应。
|
|
15
|
+
- 公式中的中文写在 \text{...} 里,或放到公式外;百分号写成 \%,美元符号写成 \$。
|
|
16
|
+
- 反斜杠只写一个(\frac),不要写成 \\frac;换行符 \\ 只能用在 cases、aligned 等环境里。`,eH=`【角色与核心任务 (ROLE AND CORE TASK)】
|
|
17
|
+
你是一位世界顶尖的、经验丰富的、专业的跨学科考试分析专家(Interdisciplinary Exam Analysis Expert)。你的核心任务是极致准确地分析用户提供的考试题目图片,全面理解所有文本、图表和隐含约束,并提供一个完整、高度结构化且专业的解决方案。
|
|
18
|
+
|
|
19
|
+
{{language_instruction}}
|
|
20
|
+
|
|
21
|
+
【核心输出要求 (OUTPUT REQUIREMENTS)】
|
|
22
|
+
你的响应输出**必须严格遵循以下自定义标签格式**。**严禁**使用 JSON 或 Markdown 代码块。**严禁**对 LaTeX 公式中的反斜杠进行二次转义(如 "\\frac" 是错误的,必须是 "\frac")。
|
|
23
|
+
|
|
24
|
+
请严格按照以下结构输出内容:
|
|
25
|
+
|
|
26
|
+
<subject>
|
|
27
|
+
在此处填写学科,必须是以下之一:"数学", "物理", "化学", "生物", "英语", "语文", "历史", "地理", "政治", "其他"。
|
|
28
|
+
</subject>
|
|
29
|
+
|
|
30
|
+
<knowledge_points>
|
|
31
|
+
在此处填写知识点,使用逗号分隔,例如:知识点1, 知识点2, 知识点3
|
|
32
|
+
</knowledge_points>
|
|
33
|
+
|
|
34
|
+
<requires_image>
|
|
35
|
+
判断这道题是否需要依赖图片才能正确解答。如果题目包含几何图形、函数图像、实验装置图、电路图等必须看图才能理解的内容,填写 true;如果只需要文字描述即可理解(如英语题、纯文字数学题),填写 false。
|
|
36
|
+
</requires_image>
|
|
37
|
+
|
|
38
|
+
<has_figure>
|
|
39
|
+
判断题目本身是否带有配图(几何图形、函数图像、示意图、统计图、实验装置图、电路图等;不含学生的作答痕迹和纯文字表格)。有配图填 true,否则填 false。
|
|
40
|
+
</has_figure>
|
|
41
|
+
|
|
42
|
+
<figure_svg>
|
|
43
|
+
如果 has_figure 为 true,用 SVG 重新绘制题目配图:
|
|
44
|
+
${eK}
|
|
45
|
+
如果 has_figure 为 false,请留空。
|
|
46
|
+
</figure_svg>
|
|
47
|
+
|
|
48
|
+
<wrong_answer_text>
|
|
49
|
+
如果图片中包含学生已经写出的错误解答、错误步骤、草稿或错误答案,请尽量按原样摘录;如果没有看到学生错误解答,请留空。
|
|
50
|
+
</wrong_answer_text>
|
|
51
|
+
|
|
52
|
+
<mistake_status>
|
|
53
|
+
填写以下值之一:wrong_attempt(图片中有错误解答或错误步骤)、not_attempted(没有错误解答,像是完全不会做或未作答)、unknown(无法判断)。
|
|
54
|
+
</mistake_status>
|
|
55
|
+
|
|
56
|
+
<difficulty_stars>
|
|
57
|
+
只填写 1 到 5 之间的一个整数,表示题目难度星级。
|
|
58
|
+
${eO}
|
|
59
|
+
</difficulty_stars>
|
|
60
|
+
|
|
61
|
+
<mistake_analysis>
|
|
62
|
+
如果图片中包含错误解答,请分析错误可能发生在哪一步、为什么错、导致了什么后果;如果没有错误解答,请留空。
|
|
63
|
+
</mistake_analysis>
|
|
64
|
+
|
|
65
|
+
<question_text>
|
|
66
|
+
在此处填写题目的完整文本。使用 Markdown 格式。所有数学公式使用 LaTeX 符号(行内 $...$,块级 $$...$$)。
|
|
67
|
+
|
|
68
|
+
【题干转录规则】
|
|
69
|
+
1. **逐字照录**:按图片原文转录题干(含题号、分值和标点),不要改写、概括、增删字词或调整语序;看不清的字用 [?] 标注。
|
|
70
|
+
2. **填空统一**:所有填空处统一写作 ____(4 个下划线),不论原图横线长短。
|
|
71
|
+
3. **图形描述**:如果题目依赖图形,在题干原文之后空一行,单独写**一段**以「图示:」开头的图形描述;只能使用「图示:」这一种写法(不要写「图示信息」「图示说明」等),描述中不要重复题干已有的文字。题目不依赖图形时不要写图示段落。
|
|
72
|
+
|
|
73
|
+
【表格处理规则】
|
|
74
|
+
如果图片中包含表格,必须完整转录表格内容,遵循以下原则:
|
|
75
|
+
|
|
76
|
+
1. **标准表格**:使用 Markdown 表格语法
|
|
77
|
+
| 列标题1 | 列标题2 | 列标题3 |
|
|
78
|
+
|---------|---------|---------|
|
|
79
|
+
| 数据1 | 数据2 | 数据3 |
|
|
80
|
+
|
|
81
|
+
2. **复杂表格**(合并单元格/多级表头/不规则布局):
|
|
82
|
+
- 优先尝试用 Markdown 表格近似表示
|
|
83
|
+
- 如果 Markdown 无法准确表达,在表格前用文字说明结构,然后用简化的 Markdown 表格 + 注释
|
|
84
|
+
- 示例:
|
|
85
|
+
> 注:第1行为主标题,横跨3列;第2-3行为数据行
|
|
86
|
+
|
|
87
|
+
| 项目 | 数值A | 数值B |
|
|
88
|
+
|------|-------|-------|
|
|
89
|
+
| 测试1 | 10 | 20 |
|
|
90
|
+
| 测试2 | 15 | 25 |
|
|
91
|
+
|
|
92
|
+
3. **表格完整性要求**:
|
|
93
|
+
- 必须转录所有单元格内容(包括空单元格用 - 或空格表示)
|
|
94
|
+
- 保留表格标题、单位、注释
|
|
95
|
+
- 保留数据的对齐关系和分组信息
|
|
96
|
+
- 表格中的数学公式使用 LaTeX 语法
|
|
97
|
+
|
|
98
|
+
4. **表格上下文**:
|
|
99
|
+
- 如果表格有标题或编号(如"表1"),保留在表格前
|
|
100
|
+
- 如果表格后有注释或说明,保留在表格后
|
|
101
|
+
- 保持表格在题目中的位置关系
|
|
102
|
+
|
|
103
|
+
5. **特殊情况处理**:
|
|
104
|
+
- 图表混合:如果表格旁边有图形,用文字说明位置关系
|
|
105
|
+
- 手写表格:尽力识别手写内容,不确定的用 [?] 标注
|
|
106
|
+
- 模糊表格:如果表格不清晰,在表格前注明"(表格内容可能不完整)"
|
|
107
|
+
</question_text>
|
|
108
|
+
|
|
109
|
+
<answer_text>
|
|
110
|
+
在此处填写正确答案。使用 Markdown 和 LaTeX 符号。如果答案包含表格,遵循上述【表格处理规则】。
|
|
111
|
+
</answer_text>
|
|
112
|
+
|
|
113
|
+
<analysis>
|
|
114
|
+
在此处填写详细的步骤解析。
|
|
115
|
+
* 必须使用简体中文。
|
|
116
|
+
* **直接使用标准的 LaTeX 符号**(如 $\frac{1}{2}$),**不要**进行 JSON 转义(不要写成 \\frac)。
|
|
117
|
+
* 如果解析过程需要表格(如列表对比、分步计算表),遵循上述【表格处理规则】。
|
|
118
|
+
</analysis>
|
|
119
|
+
|
|
120
|
+
【知识点标签列表(KNOWLEDGE POINT LIST)】
|
|
121
|
+
{{knowledge_points_list}}
|
|
122
|
+
|
|
123
|
+
【标签使用规则 (TAG RULES)】
|
|
124
|
+
- 标签必须与题目实际考查的知识点精准匹配。
|
|
125
|
+
- 每题最多 5 个标签。
|
|
126
|
+
|
|
127
|
+
【!!! 关键格式与内容约束 (CRITICAL RULES) !!!】
|
|
128
|
+
1. **格式严格**:必须严格包含上述 12 个 XML 标签,除此之外不要输出任何其他“开场白”或“结束语”。
|
|
129
|
+
2. **纯文本**:内容作为纯文本处理,**不要转义反斜杠**。
|
|
130
|
+
3. **内容完整**:如果包含子问题,请在 question_text 中完整列出。
|
|
131
|
+
4. **禁止图片**:严禁包含任何图片链接或 markdown 图片语法。
|
|
132
|
+
5. **LaTeX 规范**:
|
|
133
|
+
${eB}
|
|
134
|
+
|
|
135
|
+
{{grade_instruction}}
|
|
136
|
+
{{provider_hints}}`,eV=`你是一位资深的K12教育题目生成专家,具备跨学科的题目创作能力。你的核心任务是**根据以下原题和知识点,举一反三生成高质量教学题目**,帮助学生巩固知识并拓展解题思路。
|
|
137
|
+
### 角色定义
|
|
138
|
+
1. **学科全能专家**
|
|
139
|
+
- 精通K12阶段所有学科(数学/语文/英语/物理/化学/生物/历史/地理/政治)
|
|
140
|
+
- 熟悉各年级课程标准与知识点分布
|
|
141
|
+
- 能准确识别题目考察的核心能力点(计算/推理/分析/应用/创新)
|
|
142
|
+
2. **题目变异大师**
|
|
143
|
+
- 掌握12种变式技法:条件替换/情境迁移/问题转化/数据重构/图形变形/角色反转/跨学科融合/难度阶梯/开放拓展/陷阱设计/逆向思维/生活应用
|
|
144
|
+
- 确保变式题目保持原题核心考点,改变题目表现形式
|
|
145
|
+
3. **学情分析师**
|
|
146
|
+
- 预判学生易错点(认知盲区/概念混淆/计算失误/审题偏差)
|
|
147
|
+
- 在变式题目中针对性强化易错点训练
|
|
148
|
+
### 执行流程
|
|
149
|
+
1. **接收任务**
|
|
150
|
+
原题: "{{original_question}}"
|
|
151
|
+
{{language_instruction}}
|
|
152
|
+
DIFFICULTY LEVEL: {{difficulty_level}}
|
|
153
|
+
{{difficulty_instruction}}
|
|
154
|
+
Knowledge Points: {{knowledge_points}}
|
|
155
|
+
2. **解构分析**
|
|
156
|
+
- 提取核心考点与能力要求
|
|
157
|
+
- 分析题目陷阱与解题路径
|
|
158
|
+
3. **质量管控**
|
|
159
|
+
- 确保每道题:
|
|
160
|
+
✓ 覆盖相同核心知识点
|
|
161
|
+
✓ 保持解题逻辑一致性
|
|
162
|
+
✓ 答案唯一且可验证
|
|
163
|
+
✓ 无知识性错误
|
|
164
|
+
### 输出规范
|
|
165
|
+
你的响应输出**必须严格遵循以下自定义标签格式**。**严禁**使用 JSON 或 Markdown 代码块。**严禁**返回 \`\`\`json ... \`\`\`。
|
|
166
|
+
|
|
167
|
+
请严格按照以下结构输出内容(不要包含任何其他文字):
|
|
168
|
+
|
|
169
|
+
<question_text>
|
|
170
|
+
在此处填写新生成的填空题或解答题。不要包含题号、分值或选择题选项。
|
|
171
|
+
</question_text>
|
|
172
|
+
|
|
173
|
+
<answer_text>
|
|
174
|
+
在此处填写新题目的正确答案。
|
|
175
|
+
</answer_text>
|
|
176
|
+
|
|
177
|
+
<analysis>
|
|
178
|
+
在此处填写新题目的详细解析。
|
|
179
|
+
* 必须使用简体中文。
|
|
180
|
+
* **直接使用标准的 LaTeX 符号**(如 $\frac{1}{2}$),**不要**进行 JSON 转义。
|
|
181
|
+
</analysis>
|
|
182
|
+
|
|
183
|
+
{{figure_instruction}}
|
|
184
|
+
|
|
185
|
+
###关键格式与内容约束 (CRITICAL RULES) !!!
|
|
186
|
+
1. **纯文本**:内容作为纯文本处理,**不要转义反斜杠**。
|
|
187
|
+
2. **LaTeX 规范**:
|
|
188
|
+
${eB}
|
|
189
|
+
|
|
190
|
+
{{grade_instruction}}
|
|
191
|
+
{{provider_hints}}`;var eY=e.i(395925);function eW({name:e,description:t}){return(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-1 sm:gap-2 text-xs py-1",children:[(0,s.jsx)("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono text-primary shrink-0 w-fit",children:`{{${e}}}`}),(0,s.jsx)("span",{className:"text-muted-foreground",children:t})]})}function eJ(){let{t:e}=(0,t.b)();return(0,s.jsxs)("div",{className:"bg-amber-50 border border-amber-200 rounded-md p-3 flex items-start gap-3 text-amber-900 text-sm mb-4",children:[(0,s.jsx)(y,{className:"h-5 w-5 shrink-0 text-amber-600"}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("p",{className:"font-medium",children:e.settings?.prompts?.caution||"Modify with Caution"}),(0,s.jsx)("p",{className:"text-amber-800/90 text-xs",children:e.settings?.prompts?.warning||"Variables in {{brackets}} are used to inject dynamic content. Please preserve these variables, otherwise the AI providing may fail to get question context or return invalid formats."})]})]})}function eX({config:e,onUpdate:a}){let{t:r}=(0,t.b)(),i=e.prompts?.analyze||eH,n=e.prompts?.similar||eV,l=async e=>{await (0,Q.u)(r.settings?.prompts?.resetConfirm||"Are you sure you want to reset to default?",{destructive:!0})&&a(e,"analyze"===e?eH:eV)},o=(e,s)=>{a(e,s)};return(0,s.jsx)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:(0,s.jsxs)(L.i,{defaultValue:"analyze",className:"w-full",children:[(0,s.jsxs)(L.U,{className:"grid w-full grid-cols-2",children:[(0,s.jsx)(L.k,{value:"analyze",children:r.settings?.prompts?.analysisTab||"Analysis Prompt"}),(0,s.jsx)(L.k,{value:"similar",children:r.settings?.prompts?.similarTab||"Similar Question Prompt"})]}),(0,s.jsx)(L.S,{value:"analyze",className:"space-y-4 py-4",children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(P.f,{className:"text-base font-semibold",children:r.settings?.prompts?.customAnalysis||"Custom Analysis Template"}),(0,s.jsxs)(M.f,{variant:"outline",size:"sm",onClick:()=>l("analyze"),children:[(0,s.jsx)(eY.f,{className:"w-4 h-4 mr-2"}),r.settings?.prompts?.reset||"Reset Default"]})]}),(0,s.jsx)(eJ,{}),(0,s.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,s.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,s.jsx)(k,{className:"h-3.5 w-3.5"}),r.settings?.prompts?.variables||"Available Variables"]}),(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(eW,{name:"language_instruction",description:r.settings?.prompts?.vars?.languageInstruction||"Injects instructions based on target language (e.g., keep English questions in English but analysis in Chinese)."}),(0,s.jsx)(eW,{name:"knowledge_points_list",description:r.settings?.prompts?.vars?.knowledgePointsList||"Injects the standard list of knowledge point tags for the specific subject."}),(0,s.jsx)(eW,{name:"provider_hints",description:r.settings?.prompts?.vars?.providerHints||"System-injected hints (e.g., enforcing JSON format)."})]})]}),(0,s.jsx)(e$.f,{value:i,onChange:e=>o("analyze",e.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:eH})]})}),(0,s.jsx)(L.S,{value:"similar",className:"space-y-4 py-4",children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(P.f,{className:"text-base font-semibold",children:r.settings?.prompts?.customSimilar||"Custom Similar Question Template"}),(0,s.jsxs)(M.f,{variant:"outline",size:"sm",onClick:()=>l("similar"),children:[(0,s.jsx)(eY.f,{className:"w-4 h-4 mr-2"}),r.settings?.prompts?.reset||"Reset Default"]})]}),(0,s.jsx)(eJ,{}),(0,s.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,s.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,s.jsx)(k,{className:"h-3.5 w-3.5"}),r.settings?.prompts?.variables||"Available Variables"]}),(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(eW,{name:"difficulty_level",description:r.settings?.prompts?.vars?.difficultyLevel||"Target difficulty level."}),(0,s.jsx)(eW,{name:"difficulty_instruction",description:r.settings?.prompts?.vars?.difficultyInstruction||"Specific writing instructions for the target difficulty."}),(0,s.jsx)(eW,{name:"original_question",description:r.settings?.prompts?.vars?.originalQuestion||"The full text of the original question."}),(0,s.jsx)(eW,{name:"knowledge_points",description:r.settings?.prompts?.vars?.knowledgePoints||"List of knowledge points to test."}),(0,s.jsx)(eW,{name:"language_instruction",description:r.settings?.prompts?.vars?.languageInstructionShort||"Language formatting instructions."})]})]}),(0,s.jsx)(e$.f,{value:n,onChange:e=>o("similar",e.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:eV})]})})]})})}var eG=e.i(21357),eZ=e.i(434901),eQ=e.i(753817),e0=e.i(128093),e1=e.i(79058);let e2=["browser","minimax","qwen","glm","stepfun","volcengine","volcengine-agent","openai"];e2.filter(e=>"browser"!==e);let e4={minimax:{model:"speech-2.8-hd",voice:"male-qn-jingying"},qwen:{model:"qwen-audio-3.0-tts-plus",voice:"longanlufeng"},glm:{model:"glm-tts",voice:"xiaochen"},stepfun:{model:"stepaudio-2.5-tts",voice:"qingniandaxuesheng"},volcengine:{model:"seed-tts-2.0",voice:"zh_male_yangguangqingnian_uranus_bigtts"},"volcengine-agent":{model:"seed-tts-2.0",voice:"zh_male_yangguangqingnian_uranus_bigtts"},openai:{model:"gpt-4o-mini-tts",voice:"cedar"}},e3={minimax:{apiKey:"https://platform.minimax.cn/docs/guides/quickstart-preparation",model:"https://platform.minimax.cn/docs/api-reference/speech-t2a-http",voice:"https://platform.minimax.cn/docs/faq/system-voice-id",endpoint:"https://platform.minimax.cn/docs/api-reference/speech-t2a-http"},qwen:{apiKey:"https://help.aliyun.com/zh/model-studio/token-plan-personal-quick-start",model:"https://help.aliyun.com/zh/model-studio/non-realtime-tts-user-guide",voice:"https://help.aliyun.com/zh/model-studio/qwen-audio-tts-voice-list",endpoint:"https://help.aliyun.com/zh/model-studio/non-realtime-tts-user-guide"},glm:{apiKey:"https://docs.bigmodel.cn/cn/guide/start/quick-start",model:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3",voice:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3",endpoint:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3"},stepfun:{apiKey:"https://platform.stepfun.com/docs/zh/step-plan/integrations/audio-api",model:"https://platform.stepfun.com/docs/zh/api-reference/audio/create-audio",voice:"https://platform.stepfun.com/docs/zh/guides/developer/tts",endpoint:"https://platform.stepfun.com/docs/zh/api-reference/audio/create-audio"},volcengine:{apiKey:"https://www.volcengine.com/docs/6561/196768",model:"https://www.volcengine.com/docs/6561/1598757",voice:"https://www.volcengine.com/docs/6561/1257544",endpoint:"https://www.volcengine.com/docs/6561/1598757"},openai:{apiKey:"https://platform.openai.com/docs/quickstart",model:"https://developers.openai.com/api/docs/guides/text-to-speech",voice:"https://developers.openai.com/api/docs/guides/text-to-speech",endpoint:"https://developers.openai.com/api/docs/guides/text-to-speech"},"volcengine-agent":{apiKey:"https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh",model:"https://docs.volcengine.com/docs/ark/agent-plan-personal-voice-model?lang=zh",voice:"https://www.volcengine.com/docs/6561/1257544",endpoint:"https://docs.volcengine.com/docs/ark/agent-plan-personal-voice-model?lang=zh"}},e5={volcengine:"https://docs.volcengine.com/docs/ark/free-inference-quota?lang=zh"};function e6({config:e,setConfig:a,saving:r,onSave:i}){var n;let{t:l,language:o}=(0,t.b)(),c=l.settings.tts,[d,m]=(0,j.useState)(!1),[u,p]=(0,j.useState)(null),h=e.tts?.mode??"browser",x="browser"!==h&&"string"==typeof(n=h)&&e2.includes(n)?h:null,g=x?e.tts?.[x]:void 0,f=(e,s)=>{x&&a(t=>({...t,tts:{...t.tts,[x]:{...t.tts?.[x],[e]:s}}}))},v=!!x&&("volcengine"===x||"openai"===x),y=x?function(e,s){if("openai"===s){let s=e.openai?.instances?.find(s=>s.id===e.openai?.activeInstanceId);return s?{apiKey:s.apiKey,baseUrl:s.baseUrl}:void 0}return e[s]}(e,x):void 0,b=v?g?.apiKey:y?.apiKey,w=async()=>{(0,e1.p)(),m(!0),p(null);try{await i();let{id:e,version:s}=await Z.f.post("/api/tts",{text:c.previewText,language:o},{timeout:12e4,recoverable:!0}),t=(0,e1.l)();if(!t)return;t.src=`/api/tts/${e}?v=${s}`,t.playbackRate=1,await t.play()}catch(s){ee.f.error("[TtsSettings]","Preview failed",{error:s});let e=(0,es.d)(s);Q.c.error("TTS_NOT_CONFIGURED"===e?c.notConfigured:"TTS_PROVIDER_ERROR"===e?c.providerError:c.previewFailed),p((0,es.L)(s)??null)}finally{m(!1)}};return(0,s.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(P.f,{children:c.title}),(0,s.jsxs)(ex.d,{value:h,onValueChange:e=>a(s=>({...s,tts:{...s.tts,mode:e}})),children:[(0,s.jsx)(ex.P,{children:(0,s.jsx)(ex.U,{})}),(0,s.jsx)(ex.r,{children:e2.map(e=>(0,s.jsx)(ex.T,{value:e,children:c.modes[e]},e))})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:x?c.cloudHint:c.browserHint})]}),x&&(0,s.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:[e5[x]&&(0,s.jsxs)("div",{className:"rounded-md border border-green-200 bg-green-50 p-3 text-xs text-green-800 dark:border-green-900 dark:bg-green-950/40 dark:text-green-300",children:[c.freeTrial," ",(0,s.jsx)("a",{href:e5[x],target:"_blank",rel:"noopener noreferrer",className:"underline",children:c.freeTrialLink})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(eZ.f,{label:"openai"===x?"OpenAI API Key":v?c.speechApiKey:`${(0,e0.z)(x,o)} API Key`,href:e3[x].apiKey,linkText:l.settings.ai.docLinks.apiKey}),(0,s.jsx)(eh.f,{value:b||"",onChange:e=>{var s;return s=e.target.value,void(x&&(v?f("apiKey",s):a(e=>({...e,[x]:{...e[x],apiKey:s}}))))},placeholder:"qwen"===x?"sk-sp-...":v?"":"sk-..."}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:c.apiKeyHint[x]})]}),(0,s.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(eZ.f,{label:c.model,href:e3[x].model,linkText:c.docs}),(0,s.jsx)(U.f,{value:g?.model||"",onChange:e=>f("model",e.target.value),placeholder:e4[x].model})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(eZ.f,{label:c.voice,href:e3[x].voice,linkText:c.voiceList}),(0,s.jsx)(U.f,{value:g?.voice||"",onChange:e=>f("voice",e.target.value),placeholder:e4[x].voice})]})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:c.voiceHint[x]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(eZ.f,{label:c.endpoint,href:e3[x].endpoint,linkText:c.docs}),(0,s.jsx)(U.f,{value:g?.endpoint||"",onChange:e=>f("endpoint",e.target.value),placeholder:function(e,s){if("volcengine"===e)return"https://openspeech.bytedance.com/api/v3/tts/unidirectional";if("volcengine-agent"===e)return"https://openspeech.bytedance.com/api/v3/plan/tts/unidirectional";if("openai"===e)return`${(s?.baseUrl||"https://api.openai.com/v1").replace(/\/+$/,"")}/audio/speech`;let{baseUrl:t}=(0,e0.k)(e,s);if("minimax"===e)return`${t.replace(/\/+$/,"")}/t2a_v2`;if("glm"===e||"stepfun"===e)return`${t.replace(/\/+$/,"")}/audio/speech`;try{return`${new URL(t).origin}/api/v1/services/audio/tts/SpeechSynthesizer`}catch{return""}}(x,y)}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:c.endpointHint})]})]},x),(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[x&&(0,s.jsxs)(M.f,{variant:"outline",onClick:w,disabled:r||d,className:"sm:w-auto",children:[d?(0,s.jsx)(C.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,s.jsx)(eG.f,{className:"mr-2 h-4 w-4"}),c.preview]}),(0,s.jsxs)(M.f,{onClick:()=>void i(),disabled:r||d,className:"flex-1",children:[r&&(0,s.jsx)(C.f,{className:"mr-2 h-4 w-4 animate-spin"}),c.save]})]}),x&&u&&(0,s.jsx)("div",{className:"rounded-md border border-red-200 bg-red-50 p-2 dark:border-red-900 dark:bg-red-950/40",children:(0,s.jsx)(eQ.f,{detail:u})})]})}var e8=e.i(835467);function e9({value:e,icon:t,label:a}){return(0,s.jsxs)(L.k,{value:e,className:"px-2 sm:px-3",children:[t,(0,s.jsx)("span",{className:"hidden sm:inline",children:a})]})}function e7(){let{setTimeZone:e}=(0,r.M)(),{data:i}=(0,a.useSession)(),n=i?.user?.role==="admin",{t:c}=(0,t.b)(),d=(0,l.useRouter)(),[m,u]=(0,j.useState)(!1),p=(0,j.useRef)(null),[h,x]=(0,j.useState)(!1),[g,v]=(0,j.useState)(!1),[b,N]=(0,j.useState)({aiProvider:"minimax"}),T=(0,j.useCallback)(async()=>{v(!0);try{N(await Z.f.get("/api/settings"))}catch(e){ee.f.error("[SettingsDialog]","Failed to fetch settings",{error:e})}finally{v(!1)}},[]);(0,j.useEffect)(()=>{m&&T()},[m,T]);let E=async()=>{let s=(0,e8.f)(b,c);if(s)return void Q.c.error(s);x(!0);try{let s=await Z.f.post("/api/settings",b);N(s),e(s.timeZone||R.J),Q.c.success(c.settings?.messages?.saved||"Settings saved"),p.current?.scrollTo({top:0,behavior:"smooth"})}catch(e){ee.f.error("[SettingsDialog]","Failed to save settings",{error:e}),Q.c.error(c.settings?.messages?.saveFailed||"Failed to save")}finally{x(!1)}},I=e=>(0,s.jsxs)(M.f,{onClick:E,disabled:h,className:"w-full",children:[h&&(0,s.jsx)(C.f,{className:"mr-2 h-4 w-4 animate-spin"}),e]});return(0,s.jsxs)(F.N,{open:m,onOpenChange:u,children:[(0,s.jsx)(F.a,{asChild:!0,children:(0,s.jsxs)(M.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,s.jsx)(z,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:c.settings?.title||"Settings"})]})}),(0,s.jsxs)(F.d,{ref:p,className:"w-[calc(100vw-2rem)] sm:max-w-[900px] max-h-[85vh] overflow-y-auto",children:[(0,s.jsxs)(F.s,{children:[(0,s.jsx)(F.F,{children:c.settings?.title||"Settings"}),(0,s.jsx)(F.C,{children:c.settings?.desc||"Manage your preferences and data."})]}),(0,s.jsxs)(L.i,{defaultValue:"general",className:"w-full",children:[(0,s.jsxs)(L.U,{className:`grid w-full grid-cols-4 ${n?"sm:grid-cols-7":"sm:grid-cols-4"} gap-1 h-auto`,children:[(0,s.jsx)(e9,{value:"general",icon:(0,s.jsx)(S.f,{className:"h-4 w-4 sm:mr-2"}),label:c.settings?.tabs?.general||"General"}),(0,s.jsx)(e9,{value:"account",icon:(0,s.jsx)(_.f,{className:"h-4 w-4 sm:mr-2"}),label:c.settings?.tabs?.account||"Account"}),n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e9,{value:"ai",icon:(0,s.jsx)(w,{className:"h-4 w-4 sm:mr-2"}),label:c.settings?.tabs?.ai||"AI Provider"}),(0,s.jsx)(e9,{value:"prompts",icon:(0,s.jsx)(A,{className:"h-4 w-4 sm:mr-2"}),label:c.settings?.tabs?.prompts||"Prompts"}),(0,s.jsx)(e9,{value:"admin",icon:(0,s.jsx)(f,{className:"h-4 w-4 sm:mr-2"}),label:c.settings?.tabs?.admin||"User Management"})]}),(0,s.jsx)(e9,{value:"danger",icon:(0,s.jsx)(y,{className:"h-4 w-4 sm:mr-2"}),label:c.settings?.tabs?.danger||"Danger"}),(0,s.jsx)(e9,{value:"about",icon:(0,s.jsx)(k,{className:"h-4 w-4 sm:mr-2"}),label:c.settings?.tabs?.about||"About"})]}),(0,s.jsxs)(L.S,{value:"general",className:"space-y-4 py-4",children:[(0,s.jsx)(eI,{config:b,setConfig:N,isAdmin:n,disabled:g||h}),n&&I(c.settings?.save||"Save Settings")]}),(0,s.jsx)(L.S,{value:"account",className:"space-y-4 py-4",children:(0,s.jsx)(ef,{})}),(0,s.jsxs)(L.S,{value:"ai",className:"space-y-4 py-4",children:[(0,s.jsx)(ej.f,{config:b,setConfig:N,loading:g,saving:h,onSave:E}),!g&&(0,s.jsx)(e6,{config:b,setConfig:N,saving:h,onSave:E})]}),(0,s.jsxs)(L.S,{value:"prompts",className:"space-y-4 py-4",children:[(0,s.jsx)(eX,{config:b,onUpdate:(e,s)=>N(t=>({...t,prompts:{...t.prompts,[e]:s}}))}),I(c.settings?.prompts?.save||"Save Prompt Settings")]}),n&&(0,s.jsxs)(L.S,{value:"admin",className:"space-y-4 py-4",children:[(0,s.jsxs)(M.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{u(!1),d.push("/admin")},children:[(0,s.jsx)(o.f,{className:"h-4 w-4"}),c.admin?.dashboard?.title||"Admin Dashboard"]}),(0,s.jsxs)(M.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{u(!1),d.push("/setup")},children:[(0,s.jsx)(D.f,{className:"h-4 w-4"}),c.setup.rerun]}),(0,s.jsx)("div",{className:"border-t pt-4",children:(0,s.jsx)(et,{})})]}),(0,s.jsx)(L.S,{value:"danger",className:"space-y-4 py-4",children:(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(eA,{isAdmin:n}),(0,s.jsx)(ew,{isAdmin:n})]})}),(0,s.jsx)(L.S,{value:"about",className:"space-y-4 py-4",children:(0,s.jsx)(ep,{})})]})]})]})}let se=[/^\/login/,/^\/register/,/^\/setup/,/^\/print-preview/,/^\/exams\/[^/]+\/print/],ss=[{key:"home",href:"/",icon:x,match:e=>"/"===e},{key:"notebooks",href:"/notebooks",icon:c.f,match:e=>e.startsWith("/notebooks")||e.startsWith("/error-items")||e.startsWith("/practice")},{key:"review",href:"/review",icon:d.f,match:e=>e.startsWith("/review")},{key:"stats",href:"/stats",icon:o.f,match:e=>e.startsWith("/stats")||e.startsWith("/tags")},{key:"exams",href:"/exams",icon:m.f,match:e=>e.startsWith("/exams")}];function st({children:e}){var r;let o,c,d=(0,l.usePathname)()||"/",{t:m}=(0,t.b)(),{data:p,status:h}=(0,a.useSession)(),x=p?.user?.role==="admin",g=se.some(e=>e.test(d));if(r=x&&!g,o=(0,l.useRouter)(),c=(0,j.useRef)(!1),(0,j.useEffect)(()=>{r&&!c.current&&(c.current=!0,Z.f.get("/api/setup").then(e=>{e.needsSetup&&o.replace("/setup")}).catch(e=>ee.f.warn("[Setup]","Failed to check setup status",{error:e})))},[r,o]),g||"unauthenticated"===h)return(0,s.jsx)(s.Fragment,{children:e});let v=p?.user?.name||p?.user?.email||"";return(0,s.jsxs)("div",{className:"min-h-screen",children:[(0,s.jsx)("header",{className:"sticky top-0 z-40 border-b bg-card/80 backdrop-blur-md supports-[backdrop-filter]:bg-card/70 print:hidden",children:(0,s.jsxs)("div",{className:"mx-auto flex h-14 max-w-6xl items-center gap-3 px-4 md:h-16 md:px-8",children:[(0,s.jsxs)(n.default,{href:"/",className:"flex shrink-0 items-center gap-2",children:[(0,s.jsx)(i.default,{src:"/icons/icon.png",alt:"",width:32,height:32,className:"rounded-lg",priority:!0,unoptimized:!0}),(0,s.jsx)("span",{className:"text-base font-semibold tracking-tight",children:m.pageTitle.base})]}),(0,s.jsx)("nav",{className:"ml-4 hidden items-center gap-1 md:flex",children:ss.map(e=>{let t=e.match(d),a=e.icon;return(0,s.jsxs)(n.default,{href:e.href,className:(0,q.f)("flex items-center gap-1.5 rounded-lg px-3 py-2 text-sm font-medium transition-colors",t?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),"aria-current":t?"page":void 0,children:[(0,s.jsx)(a,{className:"h-4 w-4"}),m.nav[e.key]]},e.key)})}),(0,s.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[v&&(0,s.jsxs)("span",{className:"mr-2 hidden max-w-40 items-center gap-2 truncate text-sm text-muted-foreground lg:flex",children:[(0,s.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:v.slice(0,1).toUpperCase()}),(0,s.jsx)("span",{className:"truncate",children:v})]}),x&&(0,s.jsx)(n.default,{href:"/admin",title:m.nav.admin,children:(0,s.jsxs)(M.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,s.jsx)(f,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:m.nav.admin})]})}),(0,s.jsx)(e7,{}),(0,s.jsx)(M.f,{variant:"ghost",size:"icon",className:"rounded-full text-muted-foreground hover:text-destructive",onClick:()=>(0,a.signOut)({callbackUrl:"/login"}),title:m.app.logout,children:(0,s.jsx)(u.f,{className:"h-5 w-5"})})]})]})}),(0,s.jsx)("div",{className:"pb-20 md:pb-0",children:e}),(0,s.jsx)("nav",{className:"pb-safe fixed inset-x-0 bottom-0 z-40 border-t bg-card/90 backdrop-blur-md md:hidden print:hidden",children:(0,s.jsx)("div",{className:"grid h-16 grid-cols-5",children:ss.map(e=>{let t=e.match(d),a=e.icon;return(0,s.jsxs)(n.default,{href:e.href,className:(0,q.f)("flex flex-col items-center justify-center gap-1 text-[11px] font-medium transition-colors",t?"text-primary":"text-muted-foreground"),"aria-current":t?"page":void 0,children:[(0,s.jsx)("span",{className:(0,q.f)("flex h-7 w-12 items-center justify-center rounded-full transition-colors",t&&"bg-accent"),children:(0,s.jsx)(a,{className:"h-5 w-5"})}),m.nav[e.key]]},e.key)})})})]})}let sa={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};sa.node;let sr=(0,p.f)(sa);var si=e.i(583967);let sn=[/^\/login/,/^\/register/,/^\/print-preview/,/^\/exams\/[^/]+\/print/];function sl(){let{t:e}=(0,t.b)(),{timeZone:i}=(0,r.M)(),{status:o}=(0,a.useSession)(),c=(0,l.usePathname)(),[d,m]=(0,j.useState)(!1),[u,p]=(0,j.useState)([]),[h,x]=(0,j.useState)(()=>Date.now()),g="authenticated"!==o||sn.some(e=>e.test(c||"")),f=(0,j.useCallback)(async()=>{if("u"<typeof document||"hidden"!==document.visibilityState)try{let e=await Z.f.get("/api/tasks");p(e.tasks),x(Date.now())}catch{}},[]);if((0,j.useEffect)(()=>{if(g)return;let e=setTimeout(f,0),s=setInterval(f,d?2e3:15e3);return()=>{clearTimeout(e),clearInterval(s)}},[g,d,f]),g)return null;let v=u.filter(e=>"running"===e.status).length,y=u.some(e=>"running"!==e.status),b=async()=>{try{let e=await Z.f.delete("/api/tasks");p(e.tasks)}catch{}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(M.f,{variant:"outline",size:"icon",className:"fixed bottom-20 right-4 z-40 h-11 w-11 rounded-full shadow-lg md:bottom-6 md:right-6 print:hidden",onClick:()=>m(!0),"aria-label":e.backgroundTasks.title,title:e.backgroundTasks.title,children:[v>0?(0,s.jsx)(C.f,{className:"h-5 w-5 animate-spin"}):(0,s.jsx)(sr,{className:"h-5 w-5"}),v>0&&(0,s.jsx)("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-xs text-primary-foreground",children:v})]}),(0,s.jsx)(F.N,{open:d,onOpenChange:m,children:(0,s.jsxs)(F.d,{className:"max-h-[85vh] overflow-y-auto sm:max-w-lg",children:[(0,s.jsxs)(F.s,{children:[(0,s.jsx)(F.F,{children:e.backgroundTasks.title}),(0,s.jsx)(F.C,{children:e.backgroundTasks.description})]}),0===u.length?(0,s.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:e.backgroundTasks.empty}):(0,s.jsx)("ul",{className:"space-y-2",children:u.map(t=>{var a,r;let l;return(0,s.jsx)("li",{className:"rounded-md border p-3 text-sm",children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:["running"===t.status&&(0,s.jsx)(C.f,{className:"mt-0.5 h-4 w-4 shrink-0 animate-spin text-primary"}),"succeeded"===t.status&&(0,s.jsx)(eN.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),"failed"===t.status&&(0,s.jsx)(si.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,s.jsxs)("div",{className:"font-medium",children:[e.backgroundTasks.kinds[t.kind],(0,s.jsxs)("span",{className:"font-normal text-muted-foreground",children:[" · ",e.backgroundTasks.status[t.status]]})]}),t.subject&&(0,s.jsx)("div",{className:"break-words text-muted-foreground",children:t.subject}),t.progress&&t.progress.total>0&&(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("div",{className:"h-1.5 overflow-hidden rounded bg-muted",children:(0,s.jsx)("div",{className:"h-full bg-primary transition-all",style:{width:`${Math.round(t.progress.done/t.progress.total*100)}%`}})}),(0,s.jsxs)("div",{className:"text-xs text-muted-foreground",children:[e.backgroundTasks.progress.replace("{done}",String(t.progress.done)).replace("{total}",String(t.progress.total)),t.progress.failed>0&&` \xb7 ${e.backgroundTasks.failedCount.replace("{count}",String(t.progress.failed))}`]})]}),t.error&&(0,s.jsx)("div",{className:"text-xs text-destructive",children:(s=>{if(!s)return null;let t=e.backgroundTasks.errors[s]??e.errors[s];return"string"==typeof t?t:s})(t.error)}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 text-xs text-muted-foreground",children:[(0,s.jsx)("span",{children:e.backgroundTasks.startedAt.replace("{time}",(0,R.r)(t.startedAt,"HH:mm:ss",i))}),(0,s.jsx)("span",{children:e.backgroundTasks.elapsed.replace("{time}",(a=t.startedAt,r=t.finishedAt,l=Math.max(0,Math.round(((r?Date.parse(r):h)-Date.parse(a))/1e3)),`${Math.floor(l/60)}:${String(l%60).padStart(2,"0")}`))}),t.link&&(0,s.jsx)(n.default,{href:t.link,className:"text-primary hover:underline",onClick:()=>m(!1),children:e.backgroundTasks.view})]})]})]})},t.id)})}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-1",children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e.backgroundTasks.retentionHint}),y&&(0,s.jsx)(M.f,{variant:"ghost",size:"sm",onClick:b,children:e.backgroundTasks.clearFinished})]})]})})]})}var so=e.i(263676);let sc={success:{icon:eN.f,className:"text-success"},error:{icon:si.f,className:"text-destructive"},warning:{icon:y,className:"text-warning"},info:{icon:k,className:"text-primary"}};function sd(){let{t:e}=(0,t.b)(),[a,r]=(0,j.useState)([]),[i,n]=(0,j.useState)(null);return(0,j.useEffect)(()=>(0,Q.M)(e=>{r(e.toasts),n(e.confirm)}),[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-3 z-[100] flex flex-col items-center gap-2 px-4 print:hidden",role:"status","aria-live":"polite",children:a.map(t=>{let{icon:a,className:r}=sc[t.type];return(0,s.jsxs)("div",{className:"pointer-events-auto flex w-full max-w-sm items-start gap-3 rounded-xl border bg-card/95 px-4 py-3 text-sm shadow-lg backdrop-blur animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,s.jsx)(a,{className:(0,q.f)("mt-0.5 h-4 w-4 shrink-0",r)}),(0,s.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:t.message}),(0,s.jsx)("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground transition-colors hover:text-foreground",onClick:()=>(0,Q.p)(t.id),"aria-label":e.common.close,children:(0,s.jsx)(so.X,{className:"h-3.5 w-3.5"})})]},t.id)})}),(0,s.jsx)(F.N,{open:!!i,onOpenChange:e=>{e||i?.resolve(!1)},children:(0,s.jsxs)(F.d,{className:"sm:max-w-md",children:[(0,s.jsxs)(F.s,{children:[(0,s.jsxs)(F.F,{className:"flex items-center gap-2",children:[i?.destructive&&(0,s.jsx)(y,{className:"h-5 w-5 text-destructive"}),i?.title||e.common.confirmTitle]}),(0,s.jsx)(F.C,{className:"whitespace-pre-line pt-1 text-left leading-relaxed",children:i?.message})]}),(0,s.jsxs)(F.c,{className:"gap-2",children:[(0,s.jsx)(M.f,{variant:"outline",onClick:()=>i?.resolve(!1),children:i?.cancelText||e.common.cancel}),(0,s.jsx)(M.f,{variant:i?.destructive?"destructive":"default",onClick:()=>i?.resolve(!0),autoFocus:!0,children:i?.confirmText||e.common.confirm})]})]})})]})}function sm(){return(0,j.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(e=>{ee.f.warn("[PWA]","Service worker registration failed",{error:String(e)})})},[]),null}e.s(["Providers",0,function({children:e,timeZone:i}){return(0,s.jsx)(a.SessionProvider,{children:(0,s.jsx)(t.w,{children:(0,s.jsxs)(r.n,{initialTimeZone:i,children:[(0,s.jsx)(st,{children:e}),(0,s.jsx)(sl,{}),(0,s.jsx)(sd,{}),(0,s.jsx)(sm,{})]})})})}],1661)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{var t=e.i(456420);let a={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],711241)},856522,e=>{var t=e.i(456420);let a={name:"save",size:24,node:[["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"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],856522)},328623,e=>{var t=e.i(456420);let a={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],328623)},813572,e=>{var t=e.i(843476),a=e.i(271645),s=e.i(618566),i=e.i(518515),n=e.i(328623),l=e.i(747819),r=e.i(866531),o=e.i(12130),c=e.i(430634),d=e.i(717448),u=e.i(798469),m=e.i(393842),f=e.i(956738),p=e.i(185592),x=e.i(111110),g=e.i(41931),h=e.i(201276),b=e.i(35209),v=e.i(267275);e.s(["default",0,function(){let e=(0,s.useParams)(),y=(0,s.useRouter)(),j=e.id,{t:k}=(0,x.b)(),[w,N]=(0,a.useState)(null);(0,b.f)(k.notebooks.title,w?.name,k.pageTitle.addError);let[C,S]=(0,a.useState)("image"),I=(0,v.f)({logPrefix:"[AddErrorItem]",analyzeSubjectId:j,importSubjectId:j,textNotebook:{id:j,name:w?.name||""},fixedSubjectId:j});return((0,a.useEffect)(()=>{g.f.get(`/api/notebooks/${j}`).then(e=>N(e)).catch(e=>{h.f.error("[AddErrorItem]","Failed to fetch notebook",{error:e}),y.push("/notebooks")})},[j,y]),w)?(0,t.jsxs)("main",{className:"min-h-screen",children:[(0,t.jsx)(f.f,{status:I.analysisStep}),(0,t.jsxs)("div",{className:`mx-auto space-y-6 px-4 py-6 md:px-8 md:py-8 ${"review"===I.step?"max-w-6xl":"max-w-4xl"}`,children:[(0,t.jsx)(m.f,{backHref:`/notebooks/${j}`,title:k.app.addError,description:w.name}),"upload"===I.step&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(p.f,{options:[{value:"image",icon:i.f,label:k.app?.uploadImage||"Take Photo"},{value:"text",icon:n.f,label:k.app?.manualInput||"Manual Input"}],value:C,onChange:S}),I.lastImported&&(0,t.jsx)(c.f,{imported:I.lastImported,onDismiss:I.dismissImported}),I.batchBlobs?(0,t.jsx)(l.f,{blobs:I.batchBlobs,subjectId:j,timeout:I.aiTimeout,onClose:I.closeBatch}):"image"===C?(0,t.jsx)(u.f,{onImageSelect:I.selectImage,isAnalyzing:I.isBusy}):(0,t.jsx)(d.f,{onSubmit:I.submitText,isAnalyzing:I.isBusy,defaultNotebookName:w.name})]}),"review"===I.step&&I.parsedData&&(0,t.jsx)(r.f,{initialData:I.parsedData,imagePreview:I.currentImage,onSave:I.saveReviewed,onCancel:I.cancelReview,initialSubjectId:j,aiTimeout:I.aiTimeout})]}),(0,t.jsx)(o.f,{imageSrc:I.croppingImage||"",open:I.isCropperOpen,onClose:I.closeCropper,onCropComplete:I.cropComplete,onMultiCropComplete:I.startBatch})]}):(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:k.common.loading})})}])},469937,62825,e=>{var t=e.i(843476),a=e.i(456420);let s={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};s.node;let i=(0,a.f)(s);var n=e.i(111110),l=e.i(975157);let r=[1,2,3,4,5];function o(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["f",0,function({value:e,onChange:a,disabled:s,size:o="sm",showUnrated:c=!0,className:d}){let{t:u}=(0,n.b)(),m=e??0,f="sm"===o?"h-3.5 w-3.5":"h-5 w-5",p=m?u.difficulty.starsLabel.replace("{n}",String(m)):u.difficulty.unrated;return a?(0,t.jsxs)("span",{className:(0,l.f)("inline-flex items-center gap-0.5",d),role:"group","aria-label":`${u.difficulty.label}${u.common.colon}${p}`,title:u.difficulty.clearHint,children:[r.map(e=>(0,t.jsx)("button",{type:"button",disabled:s,onClick:()=>a(e===m?null:e),"aria-label":u.difficulty.setStars.replace("{n}",String(e)),"aria-pressed":e<=m,className:"rounded p-0.5 hover:bg-muted disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(i,{className:(0,l.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/40")})},e)),!m&&c&&(0,t.jsx)("span",{className:"ml-1 text-xs text-muted-foreground",children:u.difficulty.unrated})]}):m?(0,t.jsx)("span",{className:(0,l.f)("inline-flex items-center",d),role:"img","aria-label":`${u.difficulty.label}${u.common.colon}${p}`,title:p,children:r.map(e=>(0,t.jsx)(i,{className:(0,l.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/30"),"aria-hidden":!0},e))}):c?(0,t.jsx)("span",{className:(0,l.f)("text-xs text-muted-foreground",d),children:u.difficulty.unrated}):null}],469937),e.s(["i",0,function(e,t="zh"){return("en"===t?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[o(e)]},"h",0,o,"x",0,function(e,t){return(t||"").trim()?"wrong_attempt":o(e)}],62825)},149704,e=>{var t=e.i(843476),a=e.i(111110),s=e.i(975157);e.s(["f",0,function({svg:e,className:i}){let{t:n}=(0,a.b)();return e?(0,t.jsx)("figure",{className:(0,s.f)("question-figure my-3",i),children:(0,t.jsx)("img",{src:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`,alt:n.figure.alt,className:"mx-auto block h-auto max-w-full rounded border bg-white p-2",style:{maxHeight:360}})}):null}],149704)},574041,e=>{var t=e.i(843476),a=e.i(271645),s=e.i(263676),i=e.i(487486),n=e.i(793479),l=e.i(41931),r=e.i(201276);e.s(["f",0,function({value:e=[],onChange:o,placeholder:c="Enter tags...",className:d="",enterHint:u,subject:m,gradeStage:f}){let[p,x]=(0,a.useState)(""),[g,h]=(0,a.useState)([]),[b,v]=(0,a.useState)(!1),[y,j]=(0,a.useState)(0),k=(0,a.useRef)(null),w=(0,a.useRef)(null),N=(0,a.useCallback)(async t=>{try{let a=new URLSearchParams({q:t});m&&a.append("subject",m),f&&a.append("stage",f);let s=((await l.f.get(`/api/tags/suggestions?${a.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));h(s.slice(0,20)),v(s.length>0),j(0)}catch(e){r.f.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[m,f,e]);(0,a.useEffect)(()=>{p.trim()&&N(p)},[p,N]);let C=t=>{t.trim()&&!e.includes(t.trim())&&(o([...e,t.trim()]),x(""),h([]),v(!1),j(0))},S=t=>{o(e.filter(e=>e!==t))};return(0,a.useEffect)(()=>{let e=e=>{!w.current||w.current.contains(e.target)||k.current?.contains(e.target)||v(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{className:`relative ${d}`,children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 p-2 border rounded-lg bg-background min-h-[42px]",children:[e.map(e=>(0,t.jsxs)(i.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>S(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(s.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(n.f,{ref:k,type:"text",value:p,onChange:e=>{x(e.target.value),e.target.value.trim()||(h([]),v(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),y>=0&&g[y]?C(g[y]):p.trim()&&C(p)):"ArrowDown"===t.key?(t.preventDefault(),j(e=>Math.min(e+1,g.length-1))):"ArrowUp"===t.key?(t.preventDefault(),j(e=>Math.max(e-1,0))):"Escape"===t.key?(v(!1),j(0)):"Backspace"===t.key&&!p&&e.length>0&&S(e[e.length-1])},onFocus:()=>{g.length>0&&v(!0)},placeholder:0===e.length?c:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),b&&g.length>0&&(0,t.jsx)("div",{ref:w,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:g.map((e,a)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${a===y?"bg-accent":""}`,onClick:()=>C(e),onMouseEnter:()=>j(a),children:e},e))}),p&&!b&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} "${p}"`:`Press Enter to create "${p}"`})]})}])},590546,e=>{var t=e.i(843476),a=e.i(618566),s=e.i(519455),i=e.i(711241);e.s(["f",0,function({fallbackUrl:e,className:n}){let l=(0,a.useRouter)();return(0,t.jsx)(s.f,{variant:"ghost",size:"icon",onClick:()=>{l.push(e)},className:n,children:(0,t.jsx)(i.f,{className:"h-5 w-5"})})}])},515288,e=>{var t=e.i(843476),a=e.i(975157);e.s(["N",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,a.f)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...s})},"O",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.f)("px-6",e),...s})},"u",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.f)("text-muted-foreground text-sm",e),...s})},"Y",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.f)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...s})},"v",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.f)("leading-none font-semibold",e),...s})}])},393842,e=>{var t=e.i(843476),a=e.i(590546),s=e.i(975157);e.s(["f",0,function({title:e,description:i,backHref:n,actions:l,titleAddon:r,className:o}){return(0,t.jsxs)("div",{className:(0,s.f)("flex items-start gap-3",o),children:[n&&(0,t.jsx)(a.f,{fallbackUrl:n,className:"-ml-2 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("h1",{className:"truncate text-2xl font-bold tracking-tight sm:text-3xl",children:e}),r]}),i&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground sm:text-base",children:i})]}),l&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:l})]})}])},952122,e=>{e.i(306831),e.s(["f",0,function(e){if(!e)return null;let t=e.toLowerCase();return t.includes("math")||t.includes("数学")?"math":t.includes("physics")||t.includes("物理")?"physics":t.includes("chemistry")||t.includes("化学")?"chemistry":t.includes("biology")||t.includes("生物")?"biology":t.includes("english")||t.includes("英语")?"english":t.includes("chinese")||t.includes("语文")?"chinese":t.includes("history")||t.includes("历史")?"history":t.includes("geography")||t.includes("地理")?"geography":t.includes("politics")||t.includes("政治")?"politics":null}])},35209,e=>{var t=e.i(271645),a=e.i(111110);e.s(["f",0,function(...e){let{t:s}=(0,a.b)(),i=[s.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=i},[i])}])}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{var s=e.i(456420);let a={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],711241)},399847,e=>{var s=e.i(456420);let a={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],399847)},474544,e=>{var s=e.i(456420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],474544)},505311,13285,e=>{var s=e.i(456420);let a={name:"pen-tool",size:24,node:[["path",{d:"m18 13-.654-4.736a4 4 0 00-2.756-3.266l-9.163-2.9a2 2 0 00-2.017.493l-.82.819a2 2 0 00-.492 2.017l2.9 9.163a4 4 0 003.266 2.756L13 18",key:"93nyr4"}],["path",{d:"M18.648 12.352a1.205 1.205 0 011.704 0l1.296 1.296a1.205 1.205 0 010 1.704l-6.296 6.296a1.205 1.205 0 01-1.704 0l-1.296-1.296a1.205 1.205 0 010-1.704z",key:"lnux7s"}],["path",{d:"m3 3 6.586 6.586",key:"1igwcn"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],505311);let r={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};r.node;let i=(0,s.f)(r);e.s(["f",0,i],13285)},945514,e=>{var s=e.i(843476),a=e.i(271645),t=e.i(217255),r=e.i(618566),i=e.i(111110),d=e.i(35209),n=e.i(215519),l=e.i(306831),c=e.i(41931),o=e.i(201276),m=e.i(632781),x=e.i(711241),u=e.i(901279),h=e.i(856423),f=e.i(505311),b=e.i(13285),j=e.i(456420);let N={name:"calendar",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]};N.node;let p=(0,j.f)(N),y={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};y.node;let g=(0,j.f)(y);var v=e.i(548161),w=e.i(474544),k=e.i(399847),D=e.i(772382),M=e.i(519455),z=e.i(515288),A=e.i(487486);e.s(["default",0,function(){let{timeZone:e}=(0,n.M)(),{data:j,status:N}=(0,t.useSession)(),y=(0,r.useRouter)(),C=(0,r.useParams)(),{t:O}=(0,i.b)(),[R,T]=(0,a.useState)(null);(0,d.f)(O.admin.dashboard.title,R?.user.name||R?.user.email);let[S,E]=(0,a.useState)(!0),q=C.id,Y=(0,a.useCallback)(async()=>{E(!0);try{let e=await c.f.get(`/api/admin/users/${q}/detail`);T(e)}catch(e){o.f.error("[AdminUserDetail]","Failed to fetch user detail",{error:e})}finally{E(!1)}},[q]);if((0,a.useEffect)(()=>{if("loading"!==N){if(!j?.user||"admin"!==j.user.role)return void y.push("/");Y()}},[j,N,y,Y]),"loading"===N||S)return(0,s.jsx)("div",{className:"flex items-center justify-center min-h-[60vh]",children:(0,s.jsx)(m.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(!R)return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[60vh] gap-4",children:[(0,s.jsx)("p",{className:"text-muted-foreground",children:O.common?.error||"Error"}),(0,s.jsx)(M.f,{onClick:Y,children:O.admin?.dashboard?.retry||"Retry"})]});let P=[{key:"new",label:O.admin?.dashboard?.masteryNew||"To Review",count:R.masteryDistribution.new,icon:k.f,color:"text-red-500"},{key:"reviewing",label:O.admin?.dashboard?.masteryReviewing||"Reviewing",count:R.masteryDistribution.reviewing,icon:w.f,color:"text-yellow-500"},{key:"mastered",label:O.admin?.dashboard?.masteryMastered||"Mastered",count:R.masteryDistribution.mastered,icon:v.f,color:"text-green-500"}],B=R.masteryDistribution.new+R.masteryDistribution.reviewing+R.masteryDistribution.mastered;return(0,s.jsxs)("div",{className:"max-w-5xl mx-auto p-4 sm:p-6 space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsxs)(M.f,{variant:"ghost",size:"sm",onClick:()=>y.push("/admin"),children:[(0,s.jsx)(x.f,{className:"h-4 w-4 mr-1"}),O.common?.back||"Back"]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-full bg-blue-50 dark:bg-blue-950/30",children:(0,s.jsx)(u.f,{className:"h-6 w-6 text-blue-500"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-xl font-bold",children:R.user.name||"N/A"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:R.user.email})]}),"admin"===R.user.role&&(0,s.jsx)(A.f,{variant:"default",children:O.admin?.admin||"Admin"}),(0,s.jsx)(A.f,{variant:R.user.isActive?"default":"destructive",children:R.user.isActive?O.admin?.active||"Active":O.admin?.disabled||"Disabled"})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[(0,s.jsx)(z.N,{className:"border-0 shadow-sm",children:(0,s.jsxs)(z.O,{className:"p-4 text-center",children:[(0,s.jsx)(b.f,{className:"h-5 w-5 text-purple-500 mx-auto mb-1"}),(0,s.jsx)("div",{className:"text-2xl font-bold",children:R.notebookCount}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:O.admin?.dashboard?.notebooks||"Notebooks"})]})}),(0,s.jsx)(z.N,{className:"border-0 shadow-sm",children:(0,s.jsxs)(z.O,{className:"p-4 text-center",children:[(0,s.jsx)(h.f,{className:"h-5 w-5 text-red-500 mx-auto mb-1"}),(0,s.jsx)("div",{className:"text-2xl font-bold",children:R.errorCount}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:O.admin?.dashboard?.errors||"Errors"})]})}),(0,s.jsx)(z.N,{className:"border-0 shadow-sm",children:(0,s.jsxs)(z.O,{className:"p-4 text-center",children:[(0,s.jsx)(f.f,{className:"h-5 w-5 text-green-500 mx-auto mb-1"}),(0,s.jsx)("div",{className:"text-2xl font-bold",children:R.practiceCount}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:O.admin?.dashboard?.practice||"Practice"})]})}),(0,s.jsx)(z.N,{className:"border-0 shadow-sm",children:(0,s.jsxs)(z.O,{className:"p-4 text-center",children:[(0,s.jsx)(p,{className:"h-5 w-5 text-blue-500 mx-auto mb-1"}),(0,s.jsx)("div",{className:"text-2xl font-bold",children:R.recent7DaysCount}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:O.admin?.dashboard?.recent7Days||"Last 7 Days"})]})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsxs)(z.N,{className:"border-0 shadow-sm",children:[(0,s.jsx)(z.Y,{className:"pb-2",children:(0,s.jsxs)(z.v,{className:"text-base flex items-center gap-2",children:[(0,s.jsx)(b.f,{className:"h-4 w-4 text-purple-500"}),O.admin?.dashboard?.userNotebooks||"Notebooks"]})}),(0,s.jsx)(z.O,{children:0===R.notebooks.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground py-4 text-center",children:O.admin?.dashboard?.noData||"No Data"}):(0,s.jsx)("div",{className:"space-y-2",children:R.notebooks.map(e=>(0,s.jsxs)("div",{className:"flex justify-between items-center p-2 rounded-lg bg-muted/30",children:[(0,s.jsx)("span",{className:"font-medium text-sm",children:e.name}),(0,s.jsx)(A.f,{variant:"secondary",className:"text-xs",children:(O.admin?.dashboard?.questionCount||"{count} questions").replace("{count}",String(e.errorCount))})]},e.id))})})]}),(0,s.jsxs)(z.N,{className:"border-0 shadow-sm",children:[(0,s.jsx)(z.Y,{className:"pb-2",children:(0,s.jsxs)(z.v,{className:"text-base flex items-center gap-2",children:[(0,s.jsx)(v.f,{className:"h-4 w-4 text-green-500"}),O.admin?.dashboard?.masteryDistribution||"Mastery Distribution"]})}),(0,s.jsx)(z.O,{children:0===B?(0,s.jsx)("p",{className:"text-sm text-muted-foreground py-4 text-center",children:O.admin?.dashboard?.noData||"No Data"}):(0,s.jsx)("div",{className:"space-y-3",children:P.map(e=>{let a=B>0?Math.round(e.count/B*100):0;return(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsxs)("div",{className:"flex justify-between text-sm items-center",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5 font-medium",children:[(0,s.jsx)(e.icon,{className:`h-4 w-4 ${e.color}`}),e.label]}),(0,s.jsxs)("span",{className:"text-muted-foreground",children:[e.count," (",a,"%)"]})]}),(0,s.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,s.jsx)("div",{className:"h-2 rounded-full bg-current opacity-60 transition-all duration-500",style:{width:`${a}%`}})})]},e.key)})})})]})]}),R.subjectDistribution.length>0&&(0,s.jsxs)(z.N,{className:"border-0 shadow-sm",children:[(0,s.jsx)(z.Y,{className:"pb-2",children:(0,s.jsxs)(z.v,{className:"text-base flex items-center gap-2",children:[(0,s.jsx)(g,{className:"h-4 w-4 text-blue-500"}),O.admin?.dashboard?.subjectDistribution||"Subject Distribution"]})}),(0,s.jsx)(z.O,{children:(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3",children:R.subjectDistribution.map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/30",children:[(0,s.jsx)("span",{className:"font-medium text-sm",children:e.name}),(0,s.jsx)(A.f,{variant:"secondary",children:e.count})]},e.name))})})]}),(0,s.jsxs)(z.N,{className:"border-0 shadow-sm",children:[(0,s.jsx)(z.Y,{className:"pb-2",children:(0,s.jsxs)(z.v,{className:"text-base flex items-center gap-2",children:[(0,s.jsx)(D.f,{className:"h-4 w-4 text-orange-500"}),O.admin?.dashboard?.recentErrors||"Recent Error Items"]})}),(0,s.jsx)(z.O,{children:0===R.recentErrorItems.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground py-4 text-center",children:O.admin?.dashboard?.noData||"No Data"}):(0,s.jsx)("div",{className:"space-y-2",children:R.recentErrorItems.map(a=>(0,s.jsxs)("div",{className:"flex items-start justify-between p-3 rounded-lg bg-muted/30 gap-3",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:a.questionText||a.ocrText||O.admin?.dashboard?.noQuestionText}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[a.subject&&(0,s.jsx)(A.f,{variant:"outline",className:"text-xs",children:a.subject.name}),"mastered"===a.masteryStatus&&(0,s.jsx)(A.f,{variant:"default",className:"text-xs",children:O.admin?.dashboard?.masteryMastered||"Mastered"}),"reviewing"===a.masteryStatus&&(0,s.jsx)(A.f,{variant:"secondary",className:"text-xs",children:O.admin?.dashboard?.masteryReviewing||"Reviewing"}),"new"===a.masteryStatus&&(0,s.jsx)(A.f,{variant:"outline",className:"text-xs",children:O.admin?.dashboard?.masteryNew||"To Review"})]})]}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:(0,l.r)(a.createdAt,"yyyy-MM-dd",e)})]},a.id))})})]})]})}],945514)},515288,e=>{var s=e.i(843476),a=e.i(975157);e.s(["N",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card",className:(0,a.f)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})},"O",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-content",className:(0,a.f)("px-6",e),...t})},"u",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-description",className:(0,a.f)("text-muted-foreground text-sm",e),...t})},"Y",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-header",className:(0,a.f)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})},"v",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-title",className:(0,a.f)("leading-none font-semibold",e),...t})}])},35209,e=>{var s=e.i(271645),a=e.i(111110);e.s(["f",0,function(...e){let{t}=(0,a.b)(),r=[t.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,s.useEffect)(()=>{document.title=r},[r])}])}])})();
|