wrong-notebook 2026.11.6 → 2026.11.7-1
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/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- 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.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/api/admin/cnm-tags/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/dashboard/route.js +14 -14
- package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/debug-logs/export/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/debug-logs/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/eula/accept/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/migrate-tags/route.js +2 -2
- package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/system-reset/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/telemetry/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/users/[id]/detail/route.js +14 -14
- 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.nft.json +1 -1
- package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
- package/.next/server/app/api/analytics/route.js +15 -15
- package/.next/server/app/api/analytics/route.js.nft.json +1 -1
- package/.next/server/app/api/analyze/route.js +18 -18
- package/.next/server/app/api/analyze/route.js.nft.json +1 -1
- 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 +14 -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 -14
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/reanswer/route.js +16 -15
- 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 +19 -17
- 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 +1 -1
- 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 +14 -13
- 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 +14 -13
- package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/answer-space/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/api/error-items/export-questions/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/api/error-items/similarity/route.js.nft.json +1 -1
- package/.next/server/app/api/eula/status/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +16 -15
- 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 +13 -13
- package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/retry/route.js +14 -14
- package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/route.js +12 -11
- package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/route.js +11 -11
- package/.next/server/app/api/exams/route.js.nft.json +1 -1
- package/.next/server/app/api/export/route.js.nft.json +1 -1
- package/.next/server/app/api/geogebra-analyze/route.js +14 -13
- package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/import/route.js +19 -18
- package/.next/server/app/api/import/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/confirm-all/route.js +21 -21
- package/.next/server/app/api/import-batches/[id]/confirm-all/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/fix-text/route.js +16 -16
- package/.next/server/app/api/import-batches/[id]/fix-text/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/read/route.js +20 -20
- package/.next/server/app/api/import-batches/[id]/read/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/retry/route.js +21 -21
- package/.next/server/app/api/import-batches/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/route.js +20 -20
- package/.next/server/app/api/import-batches/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/start/route.js +20 -20
- package/.next/server/app/api/import-batches/[id]/start/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/route.js +20 -20
- package/.next/server/app/api/import-batches/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/confirm/route.js +22 -22
- package/.next/server/app/api/import-tasks/[id]/confirm/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/read/route.js +22 -22
- package/.next/server/app/api/import-tasks/[id]/read/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/retry/route.js +20 -20
- package/.next/server/app/api/import-tasks/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/route.js +22 -22
- package/.next/server/app/api/import-tasks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/route.js +20 -20
- package/.next/server/app/api/import-tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/initialize/route.js.nft.json +1 -1
- package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/retag/route.js +18 -17
- package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
- package/.next/server/app/api/openclaw/batch-upload/route.js +18 -18
- package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
- package/.next/server/app/api/paper-groups/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/paper-groups/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/generate/route.js +16 -15
- package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/grade/route.js +10 -10
- package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/[id]/route.js +14 -14
- package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/route.js +17 -17
- package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
- package/.next/server/app/api/reanswer/route.js +8 -8
- package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
- package/.next/server/app/api/register/route.js.nft.json +1 -1
- package/.next/server/app/api/register/status/route.js.nft.json +1 -1
- package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/review/due/route.js +16 -15
- package/.next/server/app/api/review/due/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js +6 -6
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/activity/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/repeated-mistakes/route.js +14 -14
- package/.next/server/app/api/stats/repeated-mistakes/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/weak-tags/route.js +14 -14
- package/.next/server/app/api/stats/weak-tags/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/telemetry/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
- package/.next/server/app/api/user/ai-consent/route.js.nft.json +1 -1
- package/.next/server/app/api/user/route.js +16 -15
- package/.next/server/app/api/user/route.js.nft.json +1 -1
- 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/eula/page.js.nft.json +1 -1
- package/.next/server/app/eula/page_client-reference-manifest.js +1 -1
- 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.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.nft.json +1 -1
- package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
- package/.next/server/app/import-batches/[id]/page.js.nft.json +1 -1
- package/.next/server/app/import-batches/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/import-tasks/[id]/page.js.nft.json +1 -1
- package/.next/server/app/import-tasks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/import-tasks/page.js.nft.json +1 -1
- package/.next/server/app/import-tasks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/initialize/page.js.nft.json +1 -1
- package/.next/server/app/initialize/page_client-reference-manifest.js +1 -1
- 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/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.nft.json +1 -1
- package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/review/page_client-reference-manifest.js +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
- 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/chunks/{[root-of-the-server]__0u_jxskyhdl4l._.js → [root-of-the-server]__007euzraef-1_._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0-fpl-4ce-iyj._.js → [root-of-the-server]__00d4vtmsmiyd_._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1-gpls663uhw2._.js → [root-of-the-server]__00lpxd_gni_y7._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1-ityr2iq9e-w._.js → [root-of-the-server]__00qar_0vt8v5r._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__00ry5fb1607z0._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__07fsx1y8aa-7l._.js → [root-of-the-server]__02m42nibzxxmr._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__09re9q5tsyprr._.js → [root-of-the-server]__046l8-2oecq5e._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__04ke3ybbbyqy7._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__07tka5n0kbed7._.js → [root-of-the-server]__06g0t8zt3udt7._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__09tf4b1-063yn._.js → [root-of-the-server]__06t523lsa-xt5._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__07za3z2qd-ri5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__09a7mqqvpb5iw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__09uxdlb0atubd._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0_3i3iyk5i5fu._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ar2vbvo840d-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0d3nasp559369._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__06p98x_tv1foa._.js → [root-of-the-server]__0d_63r679gzzq._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ddx0pk-g57hh._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0evnxpsv44y-s._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0evv12a34qcy6._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0yxdic8niq68m._.js → [root-of-the-server]__0fxflgag7lsn4._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0g2y0mex0x8zf._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0gjk0_s945vrt._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0gkhutsleo1es._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0gvfx4rsinijb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ifivl2todel2._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0jrho_9vk0dgw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0jutgg41pd-47._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0kc9gy1644-op._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0dqk6jms3f_58._.js → [root-of-the-server]__0m1vmtwh8l5-k._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0medeb4h2gk5t._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0e6jc57nsnwz0._.js → [root-of-the-server]__0ms1rulcx_yuq._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0s1-3vrrlq54r._.js → [root-of-the-server]__0o5b_c35hufmg._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0prgnysrc2l5k._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__14g_ger_h73lc._.js → [root-of-the-server]__0q520ovb9262s._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0qwtk85kstlpq._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0r3grb-nk-tkn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0rwbb97vk-mfk._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0smp3m3n89xs_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0vg4zd1ewm4lh._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0vyu7gon1mqle._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0w6c1msz1xtdu._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0xh5bb2c_6c9c._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1s4kh7tqvbssy._.js → [root-of-the-server]__0yk3ow36t_w2_._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0hzh1vkuuv1uk._.js → [root-of-the-server]__0zj60abydj_ho._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0zsd45jad6b40._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0abb0_151j5sb._.js → [root-of-the-server]__0ztucyaloy2ub._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0zux7hsnes_j2._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1u64nidrg-gwq._.js → [root-of-the-server]__1-i8tof72l68m._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__10--fi__uy8y7._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0haqb2u-0wd6e._.js → [root-of-the-server]__14_mjy9lqgp99._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__14b8pj1sucy1-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__16t85d4p3aldo._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17o5ki60ndwjg._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1o2w0n3t390ih._.js → [root-of-the-server]__17tyjwy7wmx2z._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1_do4zybj0nvi._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1a71wr5gfcvuh._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1bd0rsh28altd._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1bz0s-wy2cxhl._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1e8_j43j1t1m3._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ege7h8tb5rk0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1gb1x1ubkdwig._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1gsm8s81ac08k._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1hc1bcnovtwo2._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1jaf9l240am9o._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ln0042a-s6yz._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1m2fnptuk23jt._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ms_0h40h2rbg._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1nasewrsaxrlv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1nw9nkdb5uv4i._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ogeha9-ljbre._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1p5s772lt24dg._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1pxyy29_t_ru1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1s_ky5a7nhgas._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1txu2n-l6c6yu._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ulrsdu0e8fjb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1vngkcd8tjzqw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1wi-k0dtwwxx3._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1wvm4n7d69s3x._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1x-u1u9mrt630._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1xpcaqsei77n2._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1xx_3auad-kml._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1y0omyblg9j35._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1cda8yccka8pg._.js → [root-of-the-server]__1ya8xaf2pmzqp._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1z2d4j9-oei44._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1znqtfuuspj0w._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__205o-7lep9jth._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__20c3hyqykubh2._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__20pn9h3od2anc._.js +3 -0
- package/.next/server/chunks/_02qwqg9i39x4_._.js +2 -2
- package/.next/server/chunks/_07_mi9-a9cp01._.js +1 -1
- package/.next/server/chunks/_0b2q7l141kz7e._.js +1 -1
- package/.next/server/chunks/_0b9gke5b17vzh._.js +1 -1
- package/.next/server/chunks/_0euocr-coaqik._.js +3 -0
- package/.next/server/chunks/_0nw90thm3bo4l._.js +3 -0
- package/.next/server/chunks/_0tz5wpjdgntj3._.js +1 -1
- package/.next/server/chunks/_12i51zlq-xxrl._.js +1 -1
- package/.next/server/chunks/_13ffmxv8qrwi0._.js +1 -1
- package/.next/server/chunks/_1b-7g4thtxfnp._.js +1 -1
- package/.next/server/chunks/_1csx8ckltgali._.js +2 -2
- package/.next/server/chunks/_1gtuhmdu6udof._.js +2 -2
- package/.next/server/chunks/_1h650rc49jtvn._.js +1 -1
- package/.next/server/chunks/_1pvqo-qnv-nqm._.js +1 -1
- package/.next/server/chunks/_1yvd01woddaxt._.js +2 -2
- package/.next/server/chunks/_1yx16tn5391kx._.js +3 -0
- package/.next/server/chunks/{src_lib_0osgsup3n2ypg._.js → src_lib_0-lb3lq-kl_f_._.js} +2 -2
- package/.next/server/chunks/src_lib_0gonw_e9wzfyz._.js +3 -0
- package/.next/server/chunks/src_lib_0nrx0t1s6u93x._.js +3 -0
- package/.next/server/chunks/src_lib_0oxhoj8rkufoe._.js +3 -0
- package/.next/server/chunks/src_lib_0qoy_28svqcku._.js +3 -0
- package/.next/server/chunks/src_lib_1-9hy2bx_0k7z._.js +3 -0
- package/.next/server/chunks/src_lib_11ce6iw15f7y2._.js +3 -0
- package/.next/server/chunks/src_lib_1_m3-y2t3e4xi._.js +59 -48
- package/.next/server/chunks/src_lib_1b_d9xsuzjp3e._.js +3 -0
- package/.next/server/chunks/src_lib_1q3pbd9tjh5t5._.js +3 -0
- package/.next/server/chunks/src_lib_ai_index_ts_0m0hlq4d9zy9i._.js +1 -1
- package/.next/server/chunks/src_lib_config_index_ts_14-9cq9wn5r30._.js +1 -1
- package/.next/server/chunks/src_lib_notebook-scope_ts_06eipvr6xztlf._.js +1 -1
- package/.next/server/chunks/src_lib_question_question-analysis_ts_1-3x2cfxlr3fs._.js +1 -1
- package/.next/server/chunks/src_lib_question_question-deduplication_ts_0gumctesi3szc._.js +1 -1
- package/.next/server/chunks/src_lib_tags_retag_ts_09s5xwrzcy144._.js +1 -1
- package/.next/server/chunks/{src_lib_telemetry_server_ts_03e7c8dt4slbj._.js → src_lib_telemetry_server_ts_0_290xuag9bk5._.js} +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__212x4ujehvgfr._.js → [root-of-the-server]__04nhi0374i4dp._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0w77craeuuak9._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__124rb-z-nm7o5._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1xgyz8jfhhs4j._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1yhcc4i7ps6s5._.js +3 -0
- package/.next/server/chunks/ssr/_05k02824g2tpo._.js +1 -1
- package/.next/server/chunks/ssr/_0a0h6yv1_61zn._.js +3 -0
- package/.next/server/chunks/ssr/_0cmd1ubdlo_by._.js +1 -1
- package/.next/server/chunks/ssr/_0htmdb0udewwn._.js +3 -0
- package/.next/server/chunks/ssr/{_1yclgq1umgl4p._.js → _0mp06uu5odp8m._.js} +2 -2
- package/.next/server/chunks/ssr/_0qbp5_0h-b69q._.js +3 -0
- package/.next/server/chunks/ssr/_0t-venqf7b-4q._.js +3 -0
- package/.next/server/chunks/ssr/_0xlbgtld9_r3o._.js +1 -1
- package/.next/server/chunks/ssr/_127aw5h992s9d._.js +4 -0
- package/.next/server/chunks/ssr/{_1x-_hs_sw5z1x._.js → _12ho9vlz1_nzo._.js} +1 -1
- package/.next/server/chunks/ssr/_14h_732sdmo6b._.js +3 -0
- package/.next/server/chunks/ssr/{_18c4g09vqhp-3._.js → _15n156j82yi_d._.js} +1 -1
- package/.next/server/chunks/ssr/_1wt7hpzajqoju._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_133xkxfckw9tf._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_1rxrrb2v6tutq._.js → node_modules_16_s8zyr3620u._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_heic-to_dist_csp_heic-to_1klwivk06jo8p.js → node_modules_heic-to_dist_csp_heic-to_1brtdb7tndxid.js} +1 -1
- package/.next/server/chunks/ssr/src_0_qzoo_03n_v-._.js +1 -1
- package/.next/server/chunks/ssr/src_1gayunqs8u2e2._.js +1 -1
- package/.next/server/chunks/ssr/src_1o5f_wr8vv-x0._.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_components_providers_tsx_09kw-mv3nb6xs._.js +78 -12
- package/.next/server/chunks/ssr/src_contexts_LanguageContext_tsx_0r6xucmeu1k5z._.js +1 -1
- package/.next/server/chunks/ssr/src_lib_i18n_en_ts_08zkpwnoqey5s._.js +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- 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/{0xze-7xwdgel2.js → 039sn7yqi6e6q.js} +1 -1
- package/.next/static/chunks/{26r74vzqszcs5.js → 05f13kdl-5r-c.js} +2 -2
- package/.next/static/chunks/0_cnc6gz9gqm8.js +264 -0
- package/.next/static/chunks/0a_jerp9yv-om.js +2 -0
- package/.next/static/chunks/0cpyqet_sqmdp.js +1 -0
- package/.next/static/chunks/0jyyrmsnlj04i.js +13 -0
- package/.next/static/chunks/0l8auoibmum0r.js +1 -0
- package/.next/static/chunks/0v0aq-qavci47.js +8 -0
- package/.next/static/chunks/1abwe-ep5g7rb.js +1 -0
- package/.next/static/chunks/{045cs_rolnmjd.js → 1joajsaunlqm-.js} +1 -1
- package/.next/static/chunks/{2da48dkivw_8a.js → 1kzmqap7asc46.js} +1 -1
- package/.next/static/chunks/2_0xdmmmic5_l.js +1 -0
- package/.next/static/chunks/{1ep255e058_3b.js → 2hl62fuxy23ky.js} +1 -1
- package/.next/static/chunks/{037g92rz3qjm_.js → 2hl9d1rdb9hkq.js} +1 -1
- package/.next/static/chunks/2hlvwtql2eiqy.js +1 -0
- package/.next/static/chunks/2lj8xffcdf-gx.js +1 -0
- package/.next/static/chunks/2xn7pbo1omgg1.css +3 -0
- package/.next/static/chunks/3-gt5s84owxj2.js +1 -0
- package/.next/static/chunks/3z7dqcxfd75wa.js +2 -0
- package/.next/static/chunks/{2aifo9g5v8kaq.js → 3zg1w_3pn3z75.js} +1 -1
- package/dist-scripts/scripts/rebuild-system-tags.js +3 -0
- package/dist-scripts/scripts/seed-university-grades.js +27 -0
- package/dist-scripts/src/lib/tags/data/index.js +1 -0
- package/dist-scripts/src/lib/tags/data/university.js +17 -0
- package/dist-scripts/src/lib/tags/seed/university-grades.js +32 -0
- package/launcher.js +11 -8
- package/package.json +1 -1
- package/prisma/seed.db +0 -0
- package/.next/server/chunks/[root-of-the-server]__017-5vo1u87jc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__063yyz_9kliuv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0c7btjinzvmj3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0dpk56pxg3xh0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ehmpofr_lag1._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0eksw09qkfp-z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0g-4jw7pw15nc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0h82l-5c5x36d._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0hiv6ho-1ced7._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0hypc-hsxhr5m._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0k0-c4brxlw-a._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0k_gflpw7m236._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0km5gt590jg97._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0mgpyw67pdn1h._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0mztg1mhr7xw2._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ni89i2lbtpir._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0nqc3uu_4-moq._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0nu-b-ap5ix-i._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0o72hu-jqh_kc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0q6of-nw_4lh-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0qyqo6m38w5z7._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0u2_7w3b4f_c1._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0xj4u1plpkmot._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0y0v79zd4u8g0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0zqnlrgdhvyvb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-4kz5lwzu127._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-sow_jqu0ca5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-uyaylss8lu0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-w4-6dnik6p3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1027cegzwspbv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__106c17t6fe2s5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11jqvp7ydid38._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11r530r-p2-n1._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11vx3bv6nef_u._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__123mmhkfg7y-y._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__128lq-3z36850._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1752yqg4c8167._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__189bp--__jedg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1a6hu09up7_co._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1a_qtu7129ho6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1add4tef8riya._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1bdwqmj_bolrp._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1c6ti0495jkvs._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1drgctbrp51zt._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1dxi3-rtvg91t._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1edl3mpo9urp-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1g-_sfdjkcyjn._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1hdm1t67mdd4k._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1iy2ggxzd3waf._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1j749v4z8i78u._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1jxcq-zd_xo0q._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1kwxq6h_s1nw5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1lvrzjzsadms_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1m6lbueple6ww._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1oynoaepf6enj._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1p1k9cmts3crw._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1purwqhaw584e._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1qe3_j74hbt45._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1qp07f8m-pjqu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1qr9n5maimy60._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1qzw098fzq6r4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1socdh68x-_68._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1t9nlkh7u11c9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1th48iu_ygy4m._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1tznn8iry7lns._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1uxhodktwnw08._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1uxxzcdw7avod._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1v6k289his7kx._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1y-867werf6-u._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__20an2fcjw_r3_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__20vr6ko8apn2_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__2113u3fu2bhjr._.js +0 -3
- package/.next/server/chunks/_0ji5ibtw-dxaz._.js +0 -3
- package/.next/server/chunks/_1almac7c09mp4._.js +0 -3
- package/.next/server/chunks/src_lib_0iplyaedosuse._.js +0 -3
- package/.next/server/chunks/src_lib_152-vqegmmtew._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__09g6pf6gfjb-i._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__10y8dor72926b._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1t2h6rz1x-gwk._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1vj6th0gehszy._.js +0 -3
- package/.next/server/chunks/ssr/_0oo8k-upgx7hb._.js +0 -3
- package/.next/server/chunks/ssr/_117fl8dk5qci2._.js +0 -4
- package/.next/server/chunks/ssr/_126p5i1ynlykc._.js +0 -3
- package/.next/server/chunks/ssr/_1bhvzfiuz3s7j._.js +0 -3
- package/.next/server/chunks/ssr/_1fx20-rihohax._.js +0 -3
- package/.next/server/chunks/ssr/_1qft_czd2ss62._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_0fzknrrqq1bjz._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_1fwhuynv-5kcg._.js +0 -3
- package/.next/static/chunks/059tntkmkgtf4.js +0 -1
- package/.next/static/chunks/0et32jq7vmu34.js +0 -13
- package/.next/static/chunks/0li0d9ufsgsk-.js +0 -1
- package/.next/static/chunks/0ovv_fq59i4y4.js +0 -1
- package/.next/static/chunks/0sl4wa-ghh5g7.js +0 -2
- package/.next/static/chunks/1qb_yt4hvopfn.js +0 -8
- package/.next/static/chunks/25jnmrgxyy1tx.js +0 -1
- package/.next/static/chunks/2hroxfe_3_b0q.js +0 -1
- package/.next/static/chunks/32c19i38gl4zx.js +0 -1
- package/.next/static/chunks/3bq587l754kfc.js +0 -198
- package/.next/static/chunks/3bv2u8mcme1z4.css +0 -3
- package/.next/static/chunks/3g-l81pwd4ggm.js +0 -1
- package/.next/static/chunks/3m5wl0uzrt4sz.js +0 -2
- /package/.next/static/{vv9z38w24wHWYLUAbjtdk → PyK_g5Rym102F6WwGPS2g}/_buildManifest.js +0 -0
- /package/.next/static/{vv9z38w24wHWYLUAbjtdk → PyK_g5Rym102F6WwGPS2g}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{vv9z38w24wHWYLUAbjtdk → PyK_g5Rym102F6WwGPS2g}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"paG04NHmkJdyT32aaGwpdwR15y6P4QMUh+6G2DCJses=\"\n}"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,399847,e=>{var t=e.i(456420);let n={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"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],399847)},13285,e=>{var t=e.i(456420);let n={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"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],13285)},232660,e=>{var t=e.i(271645),n={x:0,y:0,width:0,height:0,unit:"px"},i=(e,t,n)=>Math.min(Math.max(e,t),n),r=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function a(e,t,i){return"%"===e.unit?{...n,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/i*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/i*100:0}}function l(e,t,i){return e.unit&&"px"!==e.unit?{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*i/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*i/100:0}:{...n,...e,unit:"px"}}function o(e,t,n,i,r,a=0,l=0,s=i,h=r){let c={...e},u=Math.min(a,i),d=Math.min(l,r),m=Math.min(s,i),g=Math.min(h,r);t&&(t>1?(d=(u=l?l*t:u)/t,m=s*t):(u=(d=a?a/t:d)*t,g=h/t)),c.y<0&&(c.height=Math.max(c.height+c.y,d),c.y=0),c.x<0&&(c.width=Math.max(c.width+c.x,u),c.x=0);let p=i-(c.x+c.width);p<0&&(c.x=Math.min(c.x,i-u),c.width+=p);let f=r-(c.y+c.height);if(f<0&&(c.y=Math.min(c.y,r-d),c.height+=f),c.width<u&&(("sw"===n||"nw"==n)&&(c.x-=u-c.width),c.width=u),c.height<d&&(("nw"===n||"ne"==n)&&(c.y-=d-c.height),c.height=d),c.width>m&&(("sw"===n||"nw"==n)&&(c.x-=m-c.width),c.width=m),c.height>g&&(("nw"===n||"ne"==n)&&(c.y-=g-c.height),c.height=g),t){let e=c.width/c.height;if(e<t){let e=Math.max(c.width/t,d);("nw"===n||"ne"==n)&&(c.y-=e-c.height),c.height=e}else if(e>t){let e=Math.max(c.height*t,u);("sw"===n||"nw"==n)&&(c.x-=e-c.width),c.width=e}}return c}var s={capture:!0,passive:!1},h=0,c=class e extends t.PureComponent{static xOrds=["e","w"];static yOrds=["n","s"];static xyOrds=["nw","ne","se","sw"];static nudgeStep=1;static nudgeStepMedium=10;static nudgeStepLarge=100;static defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};get document(){return document}docMoveBound=!1;mouseDownOnCrop=!1;dragStarted=!1;evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0};componentRef=(0,t.createRef)();mediaRef=(0,t.createRef)();resizeObserver;initChangeCalled=!1;instanceId=`rc-${h++}`;state={cropIsActive:!1,newCropIsBeingDrawn:!1};getBox(){let e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};let{x:t,y:n,width:i,height:r}=e.getBoundingClientRect();return{x:t,y:n,width:i,height:r}}componentDidUpdate(e){let{crop:t,onComplete:n}=this.props;if(n&&!e.crop&&t){let{width:e,height:i}=this.getBox();e&&i&&n(l(t,e,i),a(t,e,i))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||=(this.document.addEventListener("pointermove",this.onDocPointerMove,s),this.document.addEventListener("pointerup",this.onDocPointerDone,s),this.document.addEventListener("pointercancel",this.onDocPointerDone,s),!0)}unbindDocMove(){this.docMoveBound&&=(this.document.removeEventListener("pointermove",this.onDocPointerMove,s),this.document.removeEventListener("pointerup",this.onDocPointerDone,s),this.document.removeEventListener("pointercancel",this.onDocPointerDone,s),!1)}onCropPointerDown=e=>{let{crop:t,disabled:n}=this.props,i=this.getBox();if(!t)return;let r=l(t,i.width,i.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let a=e.target.dataset.ord,o=e.clientX,s=e.clientY,h=r.x,c=r.y;if(a){let t=e.clientX-i.x,n=e.clientY-i.y,l=0,u=0;"ne"===a||"e"==a?(l=t-(r.x+r.width),u=n-r.y,h=r.x,c=r.y+r.height):"se"===a||"s"===a?(l=t-(r.x+r.width),u=n-(r.y+r.height),h=r.x,c=r.y):"sw"===a||"w"==a?(l=t-r.x,u=n-(r.y+r.height),h=r.x+r.width,c=r.y):("nw"===a||"n"==a)&&(l=t-r.x,u=n-r.y,h=r.x+r.width,c=r.y+r.height),o=h+i.x+l,s=c+i.y+u}this.evData={startClientX:o,startClientY:s,startCropX:h,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!!a,ord:a},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})};onComponentPointerDown=e=>{let{crop:t,disabled:n,locked:i,keepSelection:r,onChange:o}=this.props,s=this.getBox();if(n||i||r&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let h=e.clientX-s.x,c=e.clientY-s.y,u={unit:"px",x:h,y:c,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:h,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(l(u,s.width,s.height),a(u,s.width,s.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})};onDocPointerMove=e=>{let t,{crop:n,disabled:i,onChange:o,onDragStart:s}=this.props,h=this.getBox();if(i||!n||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,s&&s(e));let{evData:c}=this;c.clientX=e.clientX,c.clientY=e.clientY,r(n,t=c.isResize?this.resizeCrop():this.dragCrop())||o(l(t,h.width,h.height),a(t,h.width,h.height))};onComponentKeyDown=t=>{let{crop:n,disabled:r,onChange:o,onComplete:s}=this.props;if(r)return;let h=t.key,c=!1;if(!n)return;let u=this.getBox(),d=this.makePixelCrop(u),m=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===h?(d.x-=m,c=!0):"ArrowRight"===h?(d.x+=m,c=!0):"ArrowUp"===h?(d.y-=m,c=!0):"ArrowDown"===h&&(d.y+=m,c=!0),c){t.cancelable&&t.preventDefault(),d.x=i(d.x,0,u.width-d.width),d.y=i(d.y,0,u.height-d.height);let e=l(d,u.width,u.height),n=a(d,u.width,u.height);o(e,n),s&&s(e,n)}};onHandlerKeyDown=(t,n)=>{var i,s;let h,{aspect:c=0,crop:u,disabled:d,minWidth:m=0,minHeight:g=0,maxWidth:p,maxHeight:f,onChange:w,onComplete:x}=this.props,y=this.getBox();if(d||!u||"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();let b=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,v=o((i=l(u,y.width,y.height),s=t.key,h={...i},"ArrowLeft"===s?"nw"===n?(h.x-=b,h.y-=b,h.width+=b,h.height+=b):"w"===n?(h.x-=b,h.width+=b):"sw"===n?(h.x-=b,h.width+=b,h.height+=b):"ne"===n?(h.y+=b,h.width-=b,h.height-=b):"e"===n?h.width-=b:"se"===n&&(h.width-=b,h.height-=b):"ArrowRight"===s&&("nw"===n?(h.x+=b,h.y+=b,h.width-=b,h.height-=b):"w"===n?(h.x+=b,h.width-=b):"sw"===n?(h.x+=b,h.width-=b,h.height-=b):"ne"===n?(h.y-=b,h.width+=b,h.height+=b):"e"===n?h.width+=b:"se"===n&&(h.width+=b,h.height+=b)),"ArrowUp"===s?"nw"===n?(h.x-=b,h.y-=b,h.width+=b,h.height+=b):"n"===n?(h.y-=b,h.height+=b):"ne"===n?(h.y-=b,h.width+=b,h.height+=b):"sw"===n?(h.x+=b,h.width-=b,h.height-=b):"s"===n?h.height-=b:"se"===n&&(h.width-=b,h.height-=b):"ArrowDown"===s&&("nw"===n?(h.x+=b,h.y+=b,h.width-=b,h.height-=b):"n"===n?(h.y+=b,h.height-=b):"ne"===n?(h.y+=b,h.width-=b,h.height-=b):"sw"===n?(h.x-=b,h.width+=b,h.height+=b):"s"===n?h.height+=b:"se"===n&&(h.width+=b,h.height+=b)),h),c,n,y.width,y.height,m,g,p,f);if(!r(u,v)){let e=a(v,y.width,y.height);w(v,e),x&&x(v,e)}};onDocPointerDone=e=>{let{crop:t,disabled:n,onComplete:i,onDragEnd:r}=this.props,o=this.getBox();this.unbindDocMove(),!(n||!t)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(e),i&&i(l(t,o.width,o.height),a(t,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))};onDragFocus=()=>{this.componentRef.current?.scrollTo(0,0)};getCropStyle(){let{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){let{evData:e}=this,t=this.getBox(),n=this.makePixelCrop(t),r=e.clientX-e.startClientX,a=e.clientY-e.startClientY;return n.x=i(e.startCropX+r,0,t.width-n.width),n.y=i(e.startCropY+a,0,t.height-n.height),n}getPointRegion(e,t,n,i){let{evData:r}=this,a=r.clientX-e.x,l=r.clientY-e.y,o;return o=i&&t?"nw"===t||"n"===t||"ne"===t:l<r.startCropY,(n&&t?"nw"===t||"w"===t||"sw"===t:a<r.startCropX)?o?"nw":"sw":o?"ne":"se"}resolveMinDimensions(e,t,n=0,i=0){let r=Math.min(n,e.width),a=Math.min(i,e.height);return t&&(r||a)?t>1?r?[r,r/t]:[a*t,a]:a?[a*t,a]:[r,r/t]:[r,a]}resizeCrop(){let{evData:t}=this,{aspect:n=0,maxWidth:r,maxHeight:a}=this.props,l=this.getBox(),[s,h]=this.resolveMinDimensions(l,n,this.props.minWidth,this.props.minHeight),c=this.makePixelCrop(l),u=this.getPointRegion(l,t.ord,s,h),d=t.ord||u,m=t.clientX-t.startClientX,g=t.clientY-t.startClientY;(s&&"nw"===d||"w"===d||"sw"===d)&&(m=Math.min(m,-s)),(h&&"nw"===d||"n"===d||"ne"===d)&&(g=Math.min(g,-h));let p={unit:"px",x:0,y:0,width:0,height:0};"ne"===u?(p.x=t.startCropX,p.width=m,n?p.height=p.width/n:p.height=Math.abs(g),p.y=t.startCropY-p.height):"se"===u?(p.x=t.startCropX,p.y=t.startCropY,p.width=m,n?p.height=p.width/n:p.height=g):"sw"===u?(p.x=t.startCropX+m,p.y=t.startCropY,p.width=Math.abs(m),n?p.height=p.width/n:p.height=g):"nw"===u&&(p.x=t.startCropX+m,p.width=Math.abs(m),n?(p.height=p.width/n,p.y=t.startCropY-p.height):(p.height=Math.abs(g),p.y=t.startCropY+g));let f=o(p,n,u,l.width,l.height,s,h,r,a);return n||e.xyOrds.indexOf(d)>-1?c=f:e.xOrds.indexOf(d)>-1?(c.x=f.x,c.width=f.width):e.yOrds.indexOf(d)>-1&&(c.y=f.y,c.height=f.height),c.x=i(c.x,0,l.width-c.width),c.y=i(c.y,0,l.height-c.height),c}renderCropSelection(){let{ariaLabels:n=e.defaultProps.ariaLabels,disabled:i,locked:r,renderSelectionAddon:a,ruleOfThirds:l,crop:o}=this.props,s=this.getCropStyle();if(o)return t.default.createElement("div",{style:s,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":n.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!i&&!r&&t.default.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},t.default.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":n.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":n.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":n.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":n.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":n.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":n.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":n.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":n.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),a&&t.default.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},a(this.state)),l&&t.default.createElement(t.default.Fragment,null,t.default.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),t.default.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return l({...n,...this.props.crop||{}},e.width,e.height)}render(){let{aspect:e,children:n,circularCrop:i,className:r,crop:a,disabled:l,locked:o,style:s,ruleOfThirds:h}=this.props,{cropIsActive:c,newCropIsBeingDrawn:u}=this.state,d=a?this.renderCropSelection():null,m=((...e)=>e.filter(e=>e&&"string"==typeof e).join(" "))("ReactCrop",r,c&&"ReactCrop--active",l&&"ReactCrop--disabled",o&&"ReactCrop--locked",u&&"ReactCrop--new-crop",a&&e&&"ReactCrop--fixed-aspect",a&&i&&"ReactCrop--circular-crop",a&&h&&"ReactCrop--rule-of-thirds",!this.dragStarted&&a&&!a.width&&!a.height&&"ReactCrop--invisible-crop",i&&"ReactCrop--no-animate");return t.default.createElement("div",{ref:this.componentRef,className:m,style:s},t.default.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},n),a?t.default.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},t.default.createElement("defs",null,t.default.createElement("mask",{id:`hole-${this.instanceId}`},t.default.createElement("rect",{width:"100%",height:"100%",fill:"white"}),i?t.default.createElement("ellipse",{cx:`${a.x+a.width/2}${a.unit}`,cy:`${a.y+a.height/2}${a.unit}`,rx:`${a.width/2}${a.unit}`,ry:`${a.height/2}${a.unit}`,fill:"black"}):t.default.createElement("rect",{x:`${a.x}${a.unit}`,y:`${a.y}${a.unit}`,width:`${a.width}${a.unit}`,height:`${a.height}${a.unit}`,fill:"black"}))),t.default.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,d)}};e.s(["f",0,c])},12130,271945,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(232660),r=e.i(519455),a=e.i(776639),l=e.i(263676),o=e.i(111110);async function s(e,t){let{naturalWidth:n,naturalHeight:i}=e;return Promise.all(t.map(t=>new Promise((r,a)=>{let l=document.createElement("canvas"),o=Math.round(t.x*n),s=Math.round(t.y*i);l.width=Math.max(1,Math.round(t.width*n)),l.height=Math.max(1,Math.round(t.height*i));let h=l.getContext("2d");h?(h.drawImage(e,o,s,l.width,l.height,0,0,l.width,l.height),l.toBlob(e=>e?r(e):a(Error("Canvas is empty")),"image/jpeg",.95)):a(Error("Canvas is not supported"))})))}let h={maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"},c=(0,n.forwardRef)(function({imageSrc:e,regions:i,onChange:r,imageStyle:a=h,onImageLoad:s},c){let{t:u}=(0,o.b)(),d=(0,n.useRef)(null),m=(0,n.useRef)(null),[g,p]=(0,n.useState)(null),f=e=>{let t=d.current.getBoundingClientRect();return{x:(e.clientX-t.left)/t.width,y:(e.clientY-t.top)/t.height}},w=()=>{g&&g.width>=.02&&g.height>=.02&&r([...i,g]),m.current=null,p(null)},x=e=>({left:`${100*e.x}%`,top:`${100*e.y}%`,width:`${100*e.width}%`,height:`${100*e.height}%`});return(0,t.jsxs)("div",{className:"relative inline-block select-none",children:[(0,t.jsx)("img",{ref:c,src:e,alt:"",draggable:!1,style:a,onLoad:s,className:"block"}),(0,t.jsxs)("div",{ref:d,className:"absolute inset-0 cursor-crosshair",style:{touchAction:"none"},onPointerDown:e=>{0===e.button&&(d.current?.setPointerCapture(e.pointerId),m.current=f(e),p(null))},onPointerMove:e=>{var t,n,i,r;let a,l,o;if(!m.current)return;let s=f(e);p((t=m.current.x,n=m.current.y,i=s.x,r=s.y,l=(a=e=>Math.min(1,Math.max(0,e)))(Math.min(t,i)),o=a(Math.min(n,r)),{x:l,y:o,width:a(Math.max(t,i))-l,height:a(Math.max(n,r))-o}))},onPointerUp:w,onPointerCancel:w,children:[i.map((e,n)=>(0,t.jsxs)("div",{className:"absolute border-2 border-sky-400 bg-sky-400/15",style:x(e),children:[(0,t.jsx)("span",{className:"absolute left-0 top-0 bg-sky-500 px-1.5 text-xs font-bold text-white",children:n+1}),(0,t.jsx)("button",{type:"button",className:"absolute -right-3 -top-3 flex h-6 w-6 items-center justify-center rounded-full bg-red-500 text-white shadow","aria-label":u.batchImport.removeRegion.replace("{index}",String(n+1)),onPointerDown:e=>e.stopPropagation(),onClick:()=>r(i.filter((e,t)=>t!==n)),children:(0,t.jsx)(l.X,{className:"h-3 w-3"})})]},n)),g&&(0,t.jsx)("div",{className:"absolute border-2 border-dashed border-yellow-300 bg-yellow-300/10",style:x(g)})]})]})});var u=e.i(456420);let d={name:"zoom-in",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};d.node;let m=(0,u.f)(d),g={name:"zoom-out",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};g.node;let p=(0,u.f)(g);function f({zoom:e,onZoomIn:n,onZoomOut:i,onReset:r}){let{t:a}=(0,o.b)(),l="outline-none focus-visible:ring-2 focus-visible:ring-white/70",s=`flex h-9 w-9 items-center justify-center rounded-full text-white transition-colors hover:bg-white/20 disabled:opacity-40 disabled:hover:bg-transparent ${l}`;return(0,t.jsxs)("div",{className:"flex items-center gap-0.5 rounded-full bg-black/60 p-1 shadow-lg backdrop-blur-sm",children:[(0,t.jsx)("button",{type:"button",className:s,onClick:i,disabled:e<=1,"aria-label":a.common.cropper.zoomOut,title:a.common.cropper.zoomOut,children:(0,t.jsx)(p,{className:"h-4 w-4"})}),(0,t.jsxs)("button",{type:"button",className:`h-9 min-w-14 rounded-full px-2 text-center text-xs font-medium tabular-nums text-white hover:bg-white/20 ${l}`,onClick:r,"aria-label":a.common.cropper.resetZoom,title:a.common.cropper.resetZoom,children:[Math.round(100*e),"%"]}),(0,t.jsx)("button",{type:"button",className:s,onClick:n,disabled:e>=5,"aria-label":a.common.cropper.zoomIn,title:a.common.cropper.zoomIn,children:(0,t.jsx)(m,{className:"h-4 w-4"})})]})}var w=e.i(201276),x=e.i(804536);let y="image-cropper-mode",b=["single","auto","multi"];e.s(["U",0,b,"p",0,y,"S",0,["image","text","file","direct"],"c",0,"question-input-mode","k",0,["image","text"]],271945);let v={single:{maxHeight:"70vh",maxWidth:"100%",objectFit:"contain"},auto:{maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"},multi:{maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"}};e.s(["f",0,function({imageSrc:e,open:l,onClose:h,onCropComplete:u,onMultiCropComplete:d,onRegionsSelected:m,allowMulti:g=!0,onAutoSplit:p,onAddPart:C,partCount:M=0}){let{t:k}=(0,o.b)(),D=/^(blob:|data:image\/)/i.test(e)?e:void 0,[E,j]=(0,n.useState)(),R=(0,n.useRef)(null),[I,S]=(0,x.y)(y,b,"single"),$=["single",...p?["auto"]:[],...d||m&&g?["multi"]:[]],N=$.includes(I)?I:"single",{containerRef:P,zoom:L,imageStyle:A,measureImage:_,zoomIn:H,zoomOut:U,reset:O}=function(e){let[t,i]=(0,n.useState)(null),r=(0,n.useRef)(null),a=(0,n.useCallback)(e=>{r.current=e,i(e)},[]),[l,o]=(0,n.useState)(1),s=(0,n.useRef)(1),[h,c]=(0,n.useState)(null),u=(0,n.useRef)(null),d=(0,n.useRef)(!1),m=(0,n.useCallback)((e,t,n)=>{let i=r.current,a=s.current,l=Math.min(5,Math.max(1,e));if(!i||l===a)return;if(1===a){let e=i.querySelector("img");e&&c(e.clientWidth)}let h=i.getBoundingClientRect(),d=(t??h.left+h.width/2)-h.left,m=(n??h.top+h.height/2)-h.top;u.current={viewX:d,viewY:m,contentX:i.scrollLeft+d,contentY:i.scrollTop+m,ratio:l/a},s.current=l,o(l)},[]);(0,n.useLayoutEffect)(()=>{let e=r.current,t=u.current;e&&t&&(e.scrollLeft=t.contentX*t.ratio-t.viewX,e.scrollTop=t.contentY*t.ratio-t.viewY,u.current=null)},[l]),(0,n.useEffect)(()=>{if(!t)return;let e=e=>{e.preventDefault(),m(s.current*Math.exp(-(.0015*e.deltaY)),e.clientX,e.clientY)},n=null,i=e=>{let[t,n]=[e[0],e[1]];return{distance:Math.hypot(t.clientX-n.clientX,t.clientY-n.clientY),centerX:(t.clientX+n.clientX)/2,centerY:(t.clientY+n.clientY)/2}},r=e=>{2===e.touches.length&&(n={distance:i(e.touches).distance,zoom:s.current},d.current=!0)},a=e=>{if(!n||2!==e.touches.length)return;e.preventDefault();let{distance:t,centerX:r,centerY:a}=i(e.touches);n.distance>0&&m(n.zoom*(t/n.distance),r,a)},l=e=>{e.touches.length<2&&(n=null,d.current=!1)},o=e=>{d.current&&e.stopPropagation()};return t.addEventListener("wheel",e,{passive:!1}),t.addEventListener("touchstart",r,{passive:!0}),t.addEventListener("touchmove",a,{passive:!1}),t.addEventListener("touchend",l),t.addEventListener("touchcancel",l),t.addEventListener("pointermove",o,{capture:!0}),()=>{t.removeEventListener("wheel",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",a),t.removeEventListener("touchend",l),t.removeEventListener("touchcancel",l),t.removeEventListener("pointermove",o,{capture:!0})}},[t,m]);let g=(0,n.useCallback)(e=>{e&&1===s.current&&c(e.clientWidth)},[]),p=(0,n.useCallback)(()=>m(1.25*s.current),[m]),f=(0,n.useCallback)(()=>m(s.current/1.25),[m]),w=(0,n.useCallback)(()=>{s.current=1,u.current=null,o(1)},[]),x=1!==l&&h?{...e,width:h*l,height:"auto",maxWidth:"none",maxHeight:"none"}:e;return{containerRef:a,zoom:l,imageStyle:x,measureImage:g,zoomIn:p,zoomOut:f,reset:w}}(v[N]);(0,n.useEffect)(()=>{O()},[e,O]);let[X,Y]=(0,n.useState)({src:e,regions:[]}),B=X.src===e?X.regions:[],T=t=>Y({src:e,regions:t}),q=(0,n.useRef)(null),z={single:k.batchImport.singleMode,auto:k.batchImport.autoMode,multi:k.batchImport.multiMode},K=async()=>{if(0!==B.length){if(m){m(B,!0),T([]);return}if(q.current&&d)try{d(await s(q.current,B)),T([])}catch(e){w.V.error("[ImageCropper]","Multi-image crop failed",{error:e})}}},F=()=>E&&E.width>0&&E.height>0?{x:E.x/100,y:E.y/100,width:E.width/100,height:E.height/100}:{x:0,y:0,width:1,height:1},W=async()=>{let e=F();if("auto"===N&&p)return void p(e);if(m)return void m([e],!1);if(R.current&&u)try{let[t]=await s(R.current,[e]);u(t)}catch(e){w.V.error("[ImageCropper]","Crop failed",{error:e})}};return(0,t.jsx)(a.N,{open:l,onOpenChange:e=>!e&&h(),children:(0,t.jsxs)(a.d,{className:"max-w-3xl h-[90vh] flex flex-col p-0 gap-0",children:[(0,t.jsx)(a.s,{className:"p-4 border-b shrink-0",children:(0,t.jsx)(a.F,{children:k.common.cropper?.title||"Crop Image"})}),(0,t.jsxs)("div",{className:"relative min-h-0 flex-1 bg-black",children:[(0,t.jsx)("div",{ref:P,className:"flex h-full w-full overflow-auto p-4",children:(0,t.jsx)("div",{className:"m-auto",children:"multi"===N?(0,t.jsx)(c,{ref:q,imageSrc:D,regions:B,onChange:T,imageStyle:A,onImageLoad:e=>_(e.currentTarget)}):(0,t.jsx)(i.f,{crop:E,onChange:(e,t)=>j(t),children:(0,t.jsx)("img",{ref:R,alt:"Crop me",src:D,onLoad:function(e){j({unit:"%",x:0,y:0,width:100,height:100}),_(e.currentTarget)},style:A})})})}),(0,t.jsx)("div",{className:"absolute right-3 top-3",children:(0,t.jsx)(f,{zoom:L,onZoomIn:H,onZoomOut:U,onReset:O})})]}),(0,t.jsxs)("div",{className:"p-4 border-t bg-background shrink-0 space-y-3",children:[$.length>1&&(0,t.jsx)("div",{className:`grid gap-1 rounded-md bg-muted p-1 ${3===$.length?"grid-cols-3 sm:w-[28rem]":"grid-cols-2 sm:w-80"}`,children:$.map(e=>(0,t.jsx)("button",{type:"button","aria-pressed":N===e,onClick:()=>{O(),S(e)},className:`rounded px-2 py-1.5 text-sm font-medium transition-colors ${N===e?"bg-background shadow-sm":"text-muted-foreground"}`,children:z[e]},e))}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-3",children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"multi"===N?`${k.batchImport.hint} ${k.batchImport.regionCount.replace("{count}",String(B.length))}`:"auto"===N?k.batchImport.autoHint:M>0?k.upload.parts.cropHint.replace("{n}",String(M+1)):k.common.cropper?.hint||"💡 Drag to adjust crop area"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 justify-end",children:["multi"===N&&B.length>0&&(0,t.jsx)(r.f,{variant:"ghost",onClick:()=>T([]),children:k.batchImport.clear}),(0,t.jsx)(r.f,{variant:"outline",onClick:h,children:k.common.cancel||"Cancel"}),"multi"===N?(0,t.jsx)(r.f,{onClick:K,disabled:0===B.length,children:k.batchImport.start.replace("{count}",String(B.length))}):(0,t.jsxs)(t.Fragment,{children:["single"===N&&C&&(0,t.jsx)(r.f,{variant:"secondary",onClick:()=>C(F()),"data-testid":"crop-add-part",children:k.upload.parts.addNext}),(0,t.jsx)(r.f,{onClick:W,children:"auto"===N?k.batchImport.autoStart:M>0?k.upload.parts.confirm.replace("{count}",String(M+1)):k.common.confirm||"Confirm"})]})]})]})]})]})})}],12130)},574041,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(263676),r=e.i(487486),a=e.i(793479),l=e.i(41931),o=e.i(201276);e.s(["f",0,function({value:e=[],onChange:s,placeholder:h="Enter tags...",className:c="",enterHint:u,subject:d,gradeStage:m}){let[g,p]=(0,n.useState)(""),[f,w]=(0,n.useState)([]),[x,y]=(0,n.useState)(!1),[b,v]=(0,n.useState)(0),C=(0,n.useRef)(null),M=(0,n.useRef)(null),k=(0,n.useCallback)(async t=>{try{let n=new URLSearchParams({q:t});d&&n.append("subject",d),m&&n.append("stage",m);let i=((await l.k.get(`/api/tags/suggestions?${n.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));w(i.slice(0,20)),y(i.length>0),v(0)}catch(e){o.V.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[d,m,e]);(0,n.useEffect)(()=>{g.trim()&&k(g)},[g,k]);let D=t=>{t.trim()&&!e.includes(t.trim())&&(s([...e,t.trim()]),p(""),w([]),y(!1),v(0))},E=t=>{s(e.filter(e=>e!==t))};return(0,n.useEffect)(()=>{let e=e=>{!M.current||M.current.contains(e.target)||C.current?.contains(e.target)||y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{className:`relative ${c}`,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)(r.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>E(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(i.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(a.f,{ref:C,type:"text",value:g,onChange:e=>{p(e.target.value),e.target.value.trim()||(w([]),y(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),b>=0&&f[b]?D(f[b]):g.trim()&&D(g)):"ArrowDown"===t.key?(t.preventDefault(),v(e=>Math.min(e+1,f.length-1))):"ArrowUp"===t.key?(t.preventDefault(),v(e=>Math.max(e-1,0))):"Escape"===t.key?(y(!1),v(0)):"Backspace"===t.key&&!g&&e.length>0&&E(e[e.length-1])},onFocus:()=>{f.length>0&&y(!0)},placeholder:0===e.length?h:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),x&&f.length>0&&(0,t.jsx)("div",{ref:M,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:f.map((e,n)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${n===b?"bg-accent":""}`,onClick:()=>D(e),onMouseEnter:()=>v(n),children:e},e))}),g&&!x&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} "${g}"`:`Press Enter to create "${g}"`})]})}])},804536,e=>{var t=e.i(271645);let n=new Map,i=new Set;function r(e){return i.add(e),window.addEventListener("storage",e),()=>{i.delete(e),window.removeEventListener("storage",e)}}function a(e,a,l){let o=(0,t.useSyncExternalStore)(r,()=>(function(e){if(n.has(e))return n.get(e)??null;try{return window.localStorage.getItem(e)}catch{return null}})(e),()=>null);return[(0,t.useMemo)(()=>a(o),[a,o]),(0,t.useCallback)(t=>(function(e,t){try{window.localStorage.setItem(e,t),n.delete(e)}catch{n.set(e,t)}i.forEach(e=>e())})(e,l(t)),[e,l])]}let l=e=>e;e.s(["y",0,function(e,n,i){return a(e,(0,t.useCallback)(e=>n.includes(e??"")?e:i,[n,i]),l)},"x",0,a])},213761,e=>{let t={maxLongEdge:4096,maxPixels:4915200,maxBytes:1572864,startQuality:.9,minQuality:.8};class n extends Error{code;format;constructor(e,t,n){super(e,void 0===n?void 0:{cause:n}),this.code=e,this.format=t,this.name="ImageDecodeError"}}let i=new Set(["heic","heix","heim","heis","hevc","hevx","hevm","hevs"]),r=new Set(["mif1","msf1","mif2"]),a=new Set(["avif","avis"]);function l(e,n,i=t){let r=Math.min(1,i.maxLongEdge/Math.max(e,n),Math.sqrt(i.maxPixels/Math.max(1,e*n)));return{width:Math.max(1,Math.floor(e*r)),height:Math.max(1,Math.floor(n*r)),scale:r}}async function o(e){let t,n;if("function"==typeof createImageBitmap)try{return await createImageBitmap(e,{imageOrientation:"from-image"})}catch{}let i=await (t=URL.createObjectURL(e),(n=new Image).decoding="async",new Promise((e,i)=>{n.onload=()=>e(n),n.onerror=()=>i(Error("IMAGE_ELEMENT_DECODE_FAILED")),n.src=t}).finally(()=>URL.revokeObjectURL(t)));if(!i.naturalWidth||!i.naturalHeight)throw Error("IMAGE_EMPTY");return i}async function s(t){let{heicTo:n}=await e.A(462684);return n({blob:t,type:"image/jpeg",quality:.95})}function h(e,t){return new Promise((n,i)=>{e.toBlob(e=>e?n(e):i(Error("CANVAS_EMPTY")),"image/jpeg",t)})}function c(e,t,n,i,r,a,l){let o,s=((o=document.createElement("canvas")).width=a,o.height=l,o),h=s.getContext("2d");if(!h)throw Error("CANVAS_UNSUPPORTED");return h.fillStyle="#ffffff",h.fillRect(0,0,a,l),h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",h.drawImage(e,t,n,i,r,0,0,a,l),s}async function u(e,t){var u;let d,m=performance.now(),g=await e.arrayBuffer(),p=performance.now()-m,f=function(e){let t=(t,n)=>String.fromCharCode(...e.subarray(t,n));if(e.length>=3&&255===e[0]&&216===e[1]&&255===e[2])return"jpeg";if(e.length>=8&&137===e[0]&&"PNG"===t(1,4))return"png";if(e.length>=12&&"RIFF"===t(0,4)&&"WEBP"===t(8,12))return"webp";if(e.length>=6&&("GIF87a"===t(0,6)||"GIF89a"===t(0,6)))return"gif";if(e.length>=2&&"BM"===t(0,2))return"bmp";if(e.length>=12&&"ftyp"===t(4,8)){let n=Math.min(e.length,(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0||e.length),l=[t(8,12)];for(let e=16;e+4<=n;e+=4)l.push(t(e,e+4));if(l.some(e=>i.has(e)))return"heic";if(l.some(e=>a.has(e)))return"avif";if(l.some(e=>r.has(e)))return"heic"}return"unknown"}(new Uint8Array(g,0,Math.min(g.byteLength,64))),w=e.type||"",x=performance.now(),y="native",b=new Blob([g],{type:w||"application/octet-stream"});try{d=await o(b)}catch(e){if("heic"!==f)throw new n("unknown"===f?"UNSUPPORTED_IMAGE":"IMAGE_DECODE_FAILED",f,e);t?.();try{d=await o(await s(b)),y="heic"}catch(e){throw new n("HEIC_DECODE_FAILED",f,e)}}let{width:v,height:C}=(u=d)instanceof HTMLImageElement?{width:u.naturalWidth,height:u.naturalHeight}:{width:u.width,height:u.height};if(!v||!C)throw new n("IMAGE_DECODE_FAILED",f);let M=l(v,C,{maxLongEdge:1600,maxPixels:1/0}),k=await h(c(d,0,0,v,C,M.width,M.height),.85),D=URL.createObjectURL(k),E=performance.now()-x;return{source:d,width:v,height:C,format:f,decoder:y,previewUrl:D,sourceType:w,sourceBytes:e.size,timings:{read:Math.round(p),convert:Math.round(E)},dispose:()=>{URL.revokeObjectURL(D),d instanceof HTMLImageElement||d.close()}}}let d={x:0,y:0,width:1,height:1};async function m(e,n=d,i=t){var r;let a=performance.now(),o=e=>Math.min(1,Math.max(0,e)),s=Math.round(o(n.x)*e.width),u=Math.round(o(n.y)*e.height),g=Math.max(1,Math.min(e.width-s,Math.round(o(n.width)*e.width))),p=Math.max(1,Math.min(e.height-u,Math.round(o(n.height)*e.height))),f=l(g,p,i),w=c(e.source,s,u,g,p,f.width,f.height),x=performance.now()-a,y=performance.now(),b=i.startQuality,v=await h(w,b);for(let t=0;v.size>i.maxBytes&&t<12;t++)b-.05>=i.minQuality-1e-9?b=Math.round((b-.05)*100)/100:(f={width:Math.max(1,Math.floor(.85*f.width)),height:Math.max(1,Math.floor(.85*f.height)),scale:.85*f.scale},w=c(e.source,s,u,g,p,f.width,f.height)),v=await h(w,b);return{dataUrl:await (r=v,new Promise((e,t)=>{let n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>t(n.error??Error("READ_FAILED")),n.readAsDataURL(r)})),width:f.width,height:f.height,bytes:v.size,quality:b,timings:{crop:Math.round(x),compress:Math.round(performance.now()-y)}}}e.s(["K",0,t,"o",0,n,"N",0,function(e,t){return{sourceType:e.sourceType||e.format,sourceBytes:e.sourceBytes,sourceWidth:e.width,sourceHeight:e.height,outputWidth:t.width,outputHeight:t.height,outputBytes:t.bytes,decoder:e.decoder,quality:t.quality}},"p",0,u,"X",0,m])},499930,e=>{var t=e.i(213761);function n(e,t=.008){let i=Math.max(0,e.x-t),r=Math.max(0,e.y-t);return{x:i,y:r,width:Math.min(1,e.x+e.width+t)-i,height:Math.min(1,e.y+e.height+t)-r}}async function i(e){let t=new Image;if(t.decoding="async",t.src=e,await t.decode(),!t.naturalWidth||!t.naturalHeight)throw Error("IMAGE_EMPTY");return t}async function r(e,n){let i=function(e,t=16,n=!1){let i=Math.max(...e.map(e=>e.width)),r=0,a=e.map(e=>{let a=n?i/e.width:e.scale??1,l={x:0,y:r,width:Math.round(e.width*a),height:Math.round(e.height*a)};return r+=l.height+t,l});return{width:Math.max(...a.map(e=>e.width)),height:r-t,rects:a}}(e.map(e=>({width:e.sw,height:e.sh,scale:e.scale})),16,n),r=document.createElement("canvas");r.width=i.width,r.height=i.height;let a=r.getContext("2d");if(!a)throw Error("CANVAS_UNSUPPORTED");a.fillStyle="#ffffff",a.fillRect(0,0,r.width,r.height),e.forEach((e,t)=>{let n=i.rects[t];a.drawImage(e.source,e.sx,e.sy,e.sw,e.sh,n.x,n.y,n.width,n.height)});let l=await createImageBitmap(r);try{return await (0,t.X)({source:l,width:r.width,height:r.height})}finally{l.close()}}async function a(e,i){let a=e.naturalWidth,l=e.naturalHeight,o=i.map(e=>n(e));return 1===o.length?(0,t.X)({source:e,width:a,height:l},o[0]):r(o.map(t=>({source:e,sx:Math.round(t.x*a),sy:Math.round(t.y*l),sw:Math.max(1,Math.round(t.width*a)),sh:Math.max(1,Math.round(t.height*l))})),!1)}async function l(e){return r((await Promise.all(e.map(i))).map(e=>({source:e,sx:0,sy:0,sw:e.naturalWidth,sh:e.naturalHeight})),!0)}async function o(e,t,i){let a=e.naturalWidth,l=e.naturalHeight,o=i.width/a,s=t.map(e=>n(e)).map(t=>({source:e,sx:Math.round(t.x*a),sy:Math.round(t.y*l),sw:Math.max(1,Math.round(t.width*a)),sh:Math.max(1,Math.round(t.height*l)),scale:o}));return s.push({source:i.source,sx:0,sy:0,sw:i.width,sh:i.height}),r(s,!1)}e.s(["y",0,i,"k",0,o,"M",0,a,"v",0,l])},119472,e=>{var t=e.i(41931),n=e.i(127175);async function i(e){let t;for(let n=0;n<3;n++)try{return await e()}catch(e){if(t=e,!function(e){let t=e?.status;return void 0===t||408===t||502===t||503===t||504===t}(e)||2===n)break;await new Promise(e=>setTimeout(e,1e3*(n+1)))}throw t}async function r(e,a=(0,n.c)()){let{batch:l}=await i(()=>t.k.post("/api/import-batches",{...e,clientRequestId:a,subjectId:e.subjectId||void 0,targetSubjectId:e.targetSubjectId||void 0,paperLevel:e.paperLevel||void 0,items:e.items?.map(e=>({...e})),origin:e.origin},{timeout:12e4}));return(0,n.P)(),l}async function a(e,n={}){let i=n.image?"?include=image":"",{batch:r}=await t.k.get(`/api/import-batches/${encodeURIComponent(e)}${i}`);return r}async function l(e,n,i){let{batch:r}=await t.k.patch(`/api/import-batches/${encodeURIComponent(e)}`,{version:n,draft:i});return r}async function o(e,r,a,l){let{batch:o}=await i(()=>t.k.post(`/api/import-batches/${encodeURIComponent(e)}/start`,{version:r,images:a,analysis:l},{timeout:12e4}));return(0,n.P)(),o}async function s(e){let{batch:i}=await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/retry`,{});return(0,n.P)(),i}async function h(e){let i=await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/confirm-all`,{});return(0,n.P)(),i}async function c(e){await t.k.delete(`/api/import-batches/${encodeURIComponent(e)}`),(0,n.P)()}async function u(e){await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/read`,{}),(0,n.P)()}async function d(e,n,i){return t.k.post(`/api/import-batches/${encodeURIComponent(e)}/fix-text`,{items:n},{timeout:6e5,recoverable:!0,requestId:i})}e.s(["J",0,h,"n",0,function(e){return e?.status===409?e.data?.details?.batch??null:null},"v",0,r,"o",0,c,"w",0,a,"$",0,d,"f",0,u,"s",0,s,"S",0,l,"g",0,o])},25197,e=>{var t=e.i(41931);function n(e){return e.trim()?e:""}async function i(){try{return!!(await t.k.get("/api/user")).confirmBeforeImport}catch{return!1}}async function r(e,i){let r=await t.k.post("/api/error-items",{questionText:e.questionText,answerText:n(e.answerText),analysis:n(e.analysis),wrongAnswerText:e.wrongAnswerText||null,mistakeAnalysis:e.mistakeAnalysis||null,mistakeStatus:e.mistakeStatus||"unknown",knowledgePoints:e.knowledgePoints||[],difficultyStars:e.difficultyStars??null,recognizedGradeSemester:e.gradeSemester??null,hasFigure:e.hasFigure??!1,figureSvg:e.figureSvg??null,questionType:e.questionType??null,subjectId:i.subjectId||void 0,subjectName:i.subjectId?void 0:e.subject,originalImageUrl:i.imageUrl||"",paperLevel:i.paperLevel||void 0});return{id:r.id,shortId:r.shortId??null,subjectId:r.subjectId??null,notebookName:r.subject?.name??null,duplicate:r.duplicate}}e.i(201276),e.s(["x",0,i,"a",0,r],25197)},35209,e=>{var t=e.i(271645),n=e.i(111110);e.s(["f",0,function(...e){let{t:i}=(0,n.b)(),r=[i.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=r},[r])}])},825624,e=>{let t=/^[\s ]+/,n="一二三四五六七八九十",i=[{family:"dot",pattern:/^(\d{1,3})\s*(?:.|\.(?!\d))\s*/},{family:"comma",pattern:/^(\d{1,3})\s*[、,,](?!\d)\s*/},{family:"paren",pattern:/^(\d{1,3})\s*[))]\s*/},{family:"colon",pattern:/^(\d{1,3})\s*[::](?!\d)\s*/},{family:"ti",pattern:/^第\s*(\d{1,3}|[一二三四五六七八九十]{1,3})\s*题\s*[..、::]?\s*/},{family:"example",pattern:/^(?:例题?|练习|习题)\s*(\d{1,3})\s*[..、::]?\s*/},{family:"q",pattern:/^(?:Q|Question|Problem|Exercise)\s*(\d{1,3})\s*[..::)]?\s+/i},{family:"cn",pattern:/^([一二三四五六七八九十]{1,3})\s*[、..]\s*/}];function r(e){let r=e.replace(t,"");for(let{family:e,pattern:t}of i){let i=r.match(t);if(!i||r.length<=i[0].length)continue;let a=function(e){if(/^\d+$/.test(e))return Number(e);if("十"===e)return 10;let t=e.indexOf("十");return -1===t?n.indexOf(e)+1:10*(0===t?1:n.indexOf(e[0])+1)+(t===e.length-1?0:n.indexOf(e[t+1])+1)}(i[1]);if(Number.isFinite(a)&&!(a<=0))return{value:a,family:e,prefixLength:i[0].length,label:i[1]}}return null}function a(e){let n=e.split("\n"),i=n[0]?.replace(t,"")??"",a=r(i);return a&&"cn"!==a.family&&(n[0]=i.slice(a.prefixLength)),n.join("\n")}function l(e){let t=[];for(let n of e)(n||0!==t.length&&""!==t[t.length-1])&&t.push(n);for(;t.length>0&&""===t[t.length-1];)t.pop();return t.join("\n")}let o=/(姓名|班级|学号|日期|得分|分数|评分|考号|座位号|家长签字|用时|Name\s*[::_]|Class\s*[::_]|Date\s*[::_]|Score\s*[::_])|_{3,}|共\s*\d+\s*(道|题|小题)|做完|答案(见|在)|最后一页|满分\s*\d+\s*分/i,s=/(阅读|材料|短文|文章|选文|诗歌|古诗|文言文|下[面列]的?(表格|图表|统计|信息)|根据.{0,20}(回答|完成)|passage|read the|according to the)/i,h=/^(参考答案|答案与解析|答案|Answers?|Answer Key)\s*[::]?$/i,c=/^(第[一二三四五六七八九十]+(部分|大题|节)|(Part|Section)\s+[A-Z0-9IVX]+\b)/i,u=/(选择|填空|判断|计算|解答|应用|解决问题|操作|作图|阅读|写作|作文|综合|口算|听力|单项|完形|题)/,d=/(\d{1,3})\s*[~~\-—–至到]\s*(\d{1,3})\s*(?:小?题|questions?)/i,m=/(小问|小题|下列问题|以下问题|下列各题|下面各题|完成下列|回答下列|回答以下|following questions|answer the following)/i;function g(e){let t=[],n=[];for(let i of e)i?n.push(i):n.length&&(t.push(n.join("\n")),n=[]);return n.length&&t.push(n.join("\n")),t}function p(e,t=[]){let n=e.trim();return!(!n||n.length>12||/[。!?!?,,、;;::..()()【】\[\]{}]$/.test(n)||/\d/.test(n)||/[。!?!?;;,,]/.test(n))&&!!(/(篇|章|节|部分|组)$/.test(n)||/^(Part|Section)\s+[A-Z0-9]+$/i.test(n))&&(!t.length||t.some(e=>{let t=r(e);return null!==t&&1===t.value}))}function f(e,t){let n=[];for(let i=0;i<e.length;i++){let r=e[i],a=[r];for(let n=i+1;n<e.length;n++){let i=e[n],l=a[a.length-1];if(i.family!==r.family)continue;let o=1===i.value&&[...t].some(e=>e>l.line&&e<i.line);(i.value===l.value+1||o)&&a.push(i)}a.length>n.length&&(n=a)}return n}function w(e,t,n){return!!c.test(e)||!!t&&"cn"===t.family&&"cn"!==n&&null!==n&&(e.length<=40||u.test(e.slice(0,20)))}function x(e,t,n,i,r){for(let a=e-1;a>=0;a--)if(t[a]){if(r.has(a)||w(t[a],n[a],i)||p(t[a]))return t[a];break}return null}function y(e){let t=e.match(d);if(!t)return null;let n=Number(t[1]),i=Number(t[2]);return n<=i?{from:n,to:i}:null}let b={answer:/^(?:【\s*(?:参考答案|答案)\s*】|(?:参考答案|答案)\s*[::]|Answer\s*[::])\s*(.*)$/i,analysis:/^(?:【\s*(?:解析|分析|详解|解答|点评)\s*】|(?:解析|分析|详解|解答|点评)\s*[::])\s*(.*)$/,knowledge:/^(?:【\s*(?:知识点|考点)\s*】|(?:知识点|考点)\s*[::])\s*(.*)$/,difficulty:/^(?:【\s*难度\s*】|难度\s*[::])\s*(.*)$/,questionType:/^(?:【\s*题型\s*】|题型\s*[::])\s*(.*)$/,wrongAnswer:/^(?:【\s*错答\s*】|我的答案\s*[::]|学生答案\s*[::])\s*(.*)$/},v={易:1,较易:2,中等:3,较难:4,难:5};function C(e){return e.split(/[、,,;;]/).map(e=>e.trim()).filter(Boolean)}function M(e){let t={answer:[],analysis:[],knowledge:[],difficulty:[],questionType:[],wrongAnswer:[]},n=[],i=null;for(let r of e){let e=null;for(let n of Object.keys(b)){let a=r.match(b[n]);if(!a)continue;e=n,i=n;let l=a[1].trim();l&&t[n].push(l);break}e||(i&&r.trim()?t[i].push(r.trim()):n.push(r))}let r={},a=t.answer.join("\n").trim();a&&(r.answer=a);let o=t.analysis.join("\n").trim();o&&(r.analysis=o);let s=t.knowledge.flatMap(C);s.length&&(r.knowledgePoints=s);let h=t.difficulty.join(" ").trim(),c=h?function(e){let t=e.trim();if(!t)return null;let n=t.match(/^(\d{1,2})\s*(?:星|级)?$/);if(n){let e=Number(n[1]);return e>=1&&e<=5?e:null}if(/^[★☆]{1,5}$/.test(t)){let e=(t.match(/★/g)??[]).length;return e>=1?e:null}return t in v?v[t]:null}(h):null;null!==c&&(r.difficultyStars=c);let u=t.questionType.join(" ").trim();u&&(r.questionType=u);let d=t.wrongAnswer.join("\n").trim();return d&&(r.wrongAnswer=d),{text:l(n),fields:r}}let k=/^(\d{1,3})\s*[..、,,)]\s*(\S[\s\S]*)$/,D=/^(\d{1,3})\s*[~~—–-]\s*(\d{1,3})\s*[::..、]?\s*([A-Za-z]+)$/;function E(e){let t=e.trim();if(!t)return null;let n=function(e){let t=e.trim().match(D);if(!t)return null;let n=Number(t[1]),i=Number(t[2]),r=t[3];if(!Number.isFinite(n)||!Number.isFinite(i)||n<=0||i<=n||i-n+1>60)return null;let a=i-n+1;return r.length!==a?null:Array.from({length:a},(e,t)=>({label:String(n+t),text:r[t]}))}(t);if(n)return n;let i=function(e){let t=e.trim(),n=[];for(let e of t.matchAll(/(\d{1,3})\s*[..、,,;;]\s*/g)){let i=e.index??0,r=t[i+e[0].length];r&&/\d/.test(r)||n.push({index:i,label:e[1],afterIndex:i+e[0].length})}if(n.length<2)return null;for(let e=1;e<n.length;e++)if(Number(n[e].label)<=Number(n[e-1].label))return null;let i=[];for(let e=0;e<n.length;e++){let r=n[e].afterIndex,a=e+1<n.length?n[e+1].index:t.length,l=t.slice(r,a).trim().replace(/[;;]+$/,"").trim();if(!l||l.length>30||/[。!?!?]/.test(l))return null;i.push({label:n[e].label,text:l})}return i}(t);if(i)return i.map(e=>({label:e.label??"",text:e.text})).filter(e=>e.label);let r=t.match(k);if(!r)return null;let a=Number(r[1]);return!Number.isFinite(a)||a<=0?null:[{label:r[1],text:r[2].trim()}]}function j(e){let t=e.match(/^(.*?)(?:【?\s*(?:解析|分析|详解|解答|点评)\s*】?\s*[::])([\s\S]*)$/);if(t){let n=t[1].replace(/^(?:【?\s*(?:参考答案|答案)\s*】?\s*[::])\s*/,"").trim(),i=t[2].trim();return i?{answer:n,analysis:i}:{answer:e.trim()}}return{answer:e.replace(/^(?:【?\s*(?:参考答案|答案)\s*】?\s*[::])\s*/,"").trim()||e.trim()}}function R(e,t){let n=[],i=!1;for(let r of e){let e={value:!1},a=[];for(let n of r.split("\n")){let i=n.trim()?E(n):null;if(!i){n.trim()&&a.push(n);continue}let r=!1;for(let l of i){let i=t.find(e=>e.label===l.label);if(!i){a.push(n);break}r=!0,e.value=!0;let o=j(l.text);o.answer&&!i.answer&&(i.answer=o.answer),o.analysis&&(i.analysis=i.analysis?`${i.analysis}
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,399847,e=>{var t=e.i(456420);let n={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"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],399847)},13285,e=>{var t=e.i(456420);let n={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"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],13285)},232660,e=>{var t=e.i(271645),n={x:0,y:0,width:0,height:0,unit:"px"},i=(e,t,n)=>Math.min(Math.max(e,t),n),r=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function a(e,t,i){return"%"===e.unit?{...n,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/i*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/i*100:0}}function l(e,t,i){return e.unit&&"px"!==e.unit?{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*i/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*i/100:0}:{...n,...e,unit:"px"}}function o(e,t,n,i,r,a=0,l=0,s=i,h=r){let c={...e},u=Math.min(a,i),d=Math.min(l,r),m=Math.min(s,i),g=Math.min(h,r);t&&(t>1?(d=(u=l?l*t:u)/t,m=s*t):(u=(d=a?a/t:d)*t,g=h/t)),c.y<0&&(c.height=Math.max(c.height+c.y,d),c.y=0),c.x<0&&(c.width=Math.max(c.width+c.x,u),c.x=0);let p=i-(c.x+c.width);p<0&&(c.x=Math.min(c.x,i-u),c.width+=p);let f=r-(c.y+c.height);if(f<0&&(c.y=Math.min(c.y,r-d),c.height+=f),c.width<u&&(("sw"===n||"nw"==n)&&(c.x-=u-c.width),c.width=u),c.height<d&&(("nw"===n||"ne"==n)&&(c.y-=d-c.height),c.height=d),c.width>m&&(("sw"===n||"nw"==n)&&(c.x-=m-c.width),c.width=m),c.height>g&&(("nw"===n||"ne"==n)&&(c.y-=g-c.height),c.height=g),t){let e=c.width/c.height;if(e<t){let e=Math.max(c.width/t,d);("nw"===n||"ne"==n)&&(c.y-=e-c.height),c.height=e}else if(e>t){let e=Math.max(c.height*t,u);("sw"===n||"nw"==n)&&(c.x-=e-c.width),c.width=e}}return c}var s={capture:!0,passive:!1},h=0,c=class e extends t.PureComponent{static xOrds=["e","w"];static yOrds=["n","s"];static xyOrds=["nw","ne","se","sw"];static nudgeStep=1;static nudgeStepMedium=10;static nudgeStepLarge=100;static defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};get document(){return document}docMoveBound=!1;mouseDownOnCrop=!1;dragStarted=!1;evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0};componentRef=(0,t.createRef)();mediaRef=(0,t.createRef)();resizeObserver;initChangeCalled=!1;instanceId=`rc-${h++}`;state={cropIsActive:!1,newCropIsBeingDrawn:!1};getBox(){let e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};let{x:t,y:n,width:i,height:r}=e.getBoundingClientRect();return{x:t,y:n,width:i,height:r}}componentDidUpdate(e){let{crop:t,onComplete:n}=this.props;if(n&&!e.crop&&t){let{width:e,height:i}=this.getBox();e&&i&&n(l(t,e,i),a(t,e,i))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||=(this.document.addEventListener("pointermove",this.onDocPointerMove,s),this.document.addEventListener("pointerup",this.onDocPointerDone,s),this.document.addEventListener("pointercancel",this.onDocPointerDone,s),!0)}unbindDocMove(){this.docMoveBound&&=(this.document.removeEventListener("pointermove",this.onDocPointerMove,s),this.document.removeEventListener("pointerup",this.onDocPointerDone,s),this.document.removeEventListener("pointercancel",this.onDocPointerDone,s),!1)}onCropPointerDown=e=>{let{crop:t,disabled:n}=this.props,i=this.getBox();if(!t)return;let r=l(t,i.width,i.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let a=e.target.dataset.ord,o=e.clientX,s=e.clientY,h=r.x,c=r.y;if(a){let t=e.clientX-i.x,n=e.clientY-i.y,l=0,u=0;"ne"===a||"e"==a?(l=t-(r.x+r.width),u=n-r.y,h=r.x,c=r.y+r.height):"se"===a||"s"===a?(l=t-(r.x+r.width),u=n-(r.y+r.height),h=r.x,c=r.y):"sw"===a||"w"==a?(l=t-r.x,u=n-(r.y+r.height),h=r.x+r.width,c=r.y):("nw"===a||"n"==a)&&(l=t-r.x,u=n-r.y,h=r.x+r.width,c=r.y+r.height),o=h+i.x+l,s=c+i.y+u}this.evData={startClientX:o,startClientY:s,startCropX:h,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!!a,ord:a},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})};onComponentPointerDown=e=>{let{crop:t,disabled:n,locked:i,keepSelection:r,onChange:o}=this.props,s=this.getBox();if(n||i||r&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let h=e.clientX-s.x,c=e.clientY-s.y,u={unit:"px",x:h,y:c,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:h,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(l(u,s.width,s.height),a(u,s.width,s.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})};onDocPointerMove=e=>{let t,{crop:n,disabled:i,onChange:o,onDragStart:s}=this.props,h=this.getBox();if(i||!n||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,s&&s(e));let{evData:c}=this;c.clientX=e.clientX,c.clientY=e.clientY,r(n,t=c.isResize?this.resizeCrop():this.dragCrop())||o(l(t,h.width,h.height),a(t,h.width,h.height))};onComponentKeyDown=t=>{let{crop:n,disabled:r,onChange:o,onComplete:s}=this.props;if(r)return;let h=t.key,c=!1;if(!n)return;let u=this.getBox(),d=this.makePixelCrop(u),m=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===h?(d.x-=m,c=!0):"ArrowRight"===h?(d.x+=m,c=!0):"ArrowUp"===h?(d.y-=m,c=!0):"ArrowDown"===h&&(d.y+=m,c=!0),c){t.cancelable&&t.preventDefault(),d.x=i(d.x,0,u.width-d.width),d.y=i(d.y,0,u.height-d.height);let e=l(d,u.width,u.height),n=a(d,u.width,u.height);o(e,n),s&&s(e,n)}};onHandlerKeyDown=(t,n)=>{var i,s;let h,{aspect:c=0,crop:u,disabled:d,minWidth:m=0,minHeight:g=0,maxWidth:p,maxHeight:f,onChange:w,onComplete:x}=this.props,y=this.getBox();if(d||!u||"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();let b=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,v=o((i=l(u,y.width,y.height),s=t.key,h={...i},"ArrowLeft"===s?"nw"===n?(h.x-=b,h.y-=b,h.width+=b,h.height+=b):"w"===n?(h.x-=b,h.width+=b):"sw"===n?(h.x-=b,h.width+=b,h.height+=b):"ne"===n?(h.y+=b,h.width-=b,h.height-=b):"e"===n?h.width-=b:"se"===n&&(h.width-=b,h.height-=b):"ArrowRight"===s&&("nw"===n?(h.x+=b,h.y+=b,h.width-=b,h.height-=b):"w"===n?(h.x+=b,h.width-=b):"sw"===n?(h.x+=b,h.width-=b,h.height-=b):"ne"===n?(h.y-=b,h.width+=b,h.height+=b):"e"===n?h.width+=b:"se"===n&&(h.width+=b,h.height+=b)),"ArrowUp"===s?"nw"===n?(h.x-=b,h.y-=b,h.width+=b,h.height+=b):"n"===n?(h.y-=b,h.height+=b):"ne"===n?(h.y-=b,h.width+=b,h.height+=b):"sw"===n?(h.x+=b,h.width-=b,h.height-=b):"s"===n?h.height-=b:"se"===n&&(h.width-=b,h.height-=b):"ArrowDown"===s&&("nw"===n?(h.x+=b,h.y+=b,h.width-=b,h.height-=b):"n"===n?(h.y+=b,h.height-=b):"ne"===n?(h.y+=b,h.width-=b,h.height-=b):"sw"===n?(h.x-=b,h.width+=b,h.height+=b):"s"===n?h.height+=b:"se"===n&&(h.width+=b,h.height+=b)),h),c,n,y.width,y.height,m,g,p,f);if(!r(u,v)){let e=a(v,y.width,y.height);w(v,e),x&&x(v,e)}};onDocPointerDone=e=>{let{crop:t,disabled:n,onComplete:i,onDragEnd:r}=this.props,o=this.getBox();this.unbindDocMove(),!(n||!t)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(e),i&&i(l(t,o.width,o.height),a(t,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))};onDragFocus=()=>{this.componentRef.current?.scrollTo(0,0)};getCropStyle(){let{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){let{evData:e}=this,t=this.getBox(),n=this.makePixelCrop(t),r=e.clientX-e.startClientX,a=e.clientY-e.startClientY;return n.x=i(e.startCropX+r,0,t.width-n.width),n.y=i(e.startCropY+a,0,t.height-n.height),n}getPointRegion(e,t,n,i){let{evData:r}=this,a=r.clientX-e.x,l=r.clientY-e.y,o;return o=i&&t?"nw"===t||"n"===t||"ne"===t:l<r.startCropY,(n&&t?"nw"===t||"w"===t||"sw"===t:a<r.startCropX)?o?"nw":"sw":o?"ne":"se"}resolveMinDimensions(e,t,n=0,i=0){let r=Math.min(n,e.width),a=Math.min(i,e.height);return t&&(r||a)?t>1?r?[r,r/t]:[a*t,a]:a?[a*t,a]:[r,r/t]:[r,a]}resizeCrop(){let{evData:t}=this,{aspect:n=0,maxWidth:r,maxHeight:a}=this.props,l=this.getBox(),[s,h]=this.resolveMinDimensions(l,n,this.props.minWidth,this.props.minHeight),c=this.makePixelCrop(l),u=this.getPointRegion(l,t.ord,s,h),d=t.ord||u,m=t.clientX-t.startClientX,g=t.clientY-t.startClientY;(s&&"nw"===d||"w"===d||"sw"===d)&&(m=Math.min(m,-s)),(h&&"nw"===d||"n"===d||"ne"===d)&&(g=Math.min(g,-h));let p={unit:"px",x:0,y:0,width:0,height:0};"ne"===u?(p.x=t.startCropX,p.width=m,n?p.height=p.width/n:p.height=Math.abs(g),p.y=t.startCropY-p.height):"se"===u?(p.x=t.startCropX,p.y=t.startCropY,p.width=m,n?p.height=p.width/n:p.height=g):"sw"===u?(p.x=t.startCropX+m,p.y=t.startCropY,p.width=Math.abs(m),n?p.height=p.width/n:p.height=g):"nw"===u&&(p.x=t.startCropX+m,p.width=Math.abs(m),n?(p.height=p.width/n,p.y=t.startCropY-p.height):(p.height=Math.abs(g),p.y=t.startCropY+g));let f=o(p,n,u,l.width,l.height,s,h,r,a);return n||e.xyOrds.indexOf(d)>-1?c=f:e.xOrds.indexOf(d)>-1?(c.x=f.x,c.width=f.width):e.yOrds.indexOf(d)>-1&&(c.y=f.y,c.height=f.height),c.x=i(c.x,0,l.width-c.width),c.y=i(c.y,0,l.height-c.height),c}renderCropSelection(){let{ariaLabels:n=e.defaultProps.ariaLabels,disabled:i,locked:r,renderSelectionAddon:a,ruleOfThirds:l,crop:o}=this.props,s=this.getCropStyle();if(o)return t.default.createElement("div",{style:s,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":n.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!i&&!r&&t.default.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},t.default.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":n.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":n.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":n.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":n.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":n.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":n.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":n.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":n.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),a&&t.default.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},a(this.state)),l&&t.default.createElement(t.default.Fragment,null,t.default.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),t.default.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return l({...n,...this.props.crop||{}},e.width,e.height)}render(){let{aspect:e,children:n,circularCrop:i,className:r,crop:a,disabled:l,locked:o,style:s,ruleOfThirds:h}=this.props,{cropIsActive:c,newCropIsBeingDrawn:u}=this.state,d=a?this.renderCropSelection():null,m=((...e)=>e.filter(e=>e&&"string"==typeof e).join(" "))("ReactCrop",r,c&&"ReactCrop--active",l&&"ReactCrop--disabled",o&&"ReactCrop--locked",u&&"ReactCrop--new-crop",a&&e&&"ReactCrop--fixed-aspect",a&&i&&"ReactCrop--circular-crop",a&&h&&"ReactCrop--rule-of-thirds",!this.dragStarted&&a&&!a.width&&!a.height&&"ReactCrop--invisible-crop",i&&"ReactCrop--no-animate");return t.default.createElement("div",{ref:this.componentRef,className:m,style:s},t.default.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},n),a?t.default.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},t.default.createElement("defs",null,t.default.createElement("mask",{id:`hole-${this.instanceId}`},t.default.createElement("rect",{width:"100%",height:"100%",fill:"white"}),i?t.default.createElement("ellipse",{cx:`${a.x+a.width/2}${a.unit}`,cy:`${a.y+a.height/2}${a.unit}`,rx:`${a.width/2}${a.unit}`,ry:`${a.height/2}${a.unit}`,fill:"black"}):t.default.createElement("rect",{x:`${a.x}${a.unit}`,y:`${a.y}${a.unit}`,width:`${a.width}${a.unit}`,height:`${a.height}${a.unit}`,fill:"black"}))),t.default.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,d)}};e.s(["f",0,c])},12130,271945,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(232660),r=e.i(519455),a=e.i(776639),l=e.i(263676),o=e.i(111110);async function s(e,t){let{naturalWidth:n,naturalHeight:i}=e;return Promise.all(t.map(t=>new Promise((r,a)=>{let l=document.createElement("canvas"),o=Math.round(t.x*n),s=Math.round(t.y*i);l.width=Math.max(1,Math.round(t.width*n)),l.height=Math.max(1,Math.round(t.height*i));let h=l.getContext("2d");h?(h.drawImage(e,o,s,l.width,l.height,0,0,l.width,l.height),l.toBlob(e=>e?r(e):a(Error("Canvas is empty")),"image/jpeg",.95)):a(Error("Canvas is not supported"))})))}let h={maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"},c=(0,n.forwardRef)(function({imageSrc:e,regions:i,onChange:r,imageStyle:a=h,onImageLoad:s},c){let{t:u}=(0,o.b)(),d=(0,n.useRef)(null),m=(0,n.useRef)(null),[g,p]=(0,n.useState)(null),f=e=>{let t=d.current.getBoundingClientRect();return{x:(e.clientX-t.left)/t.width,y:(e.clientY-t.top)/t.height}},w=()=>{g&&g.width>=.02&&g.height>=.02&&r([...i,g]),m.current=null,p(null)},x=e=>({left:`${100*e.x}%`,top:`${100*e.y}%`,width:`${100*e.width}%`,height:`${100*e.height}%`});return(0,t.jsxs)("div",{className:"relative inline-block select-none",children:[(0,t.jsx)("img",{ref:c,src:e,alt:"",draggable:!1,style:a,onLoad:s,className:"block"}),(0,t.jsxs)("div",{ref:d,className:"absolute inset-0 cursor-crosshair",style:{touchAction:"none"},onPointerDown:e=>{0===e.button&&(d.current?.setPointerCapture(e.pointerId),m.current=f(e),p(null))},onPointerMove:e=>{var t,n,i,r;let a,l,o;if(!m.current)return;let s=f(e);p((t=m.current.x,n=m.current.y,i=s.x,r=s.y,l=(a=e=>Math.min(1,Math.max(0,e)))(Math.min(t,i)),o=a(Math.min(n,r)),{x:l,y:o,width:a(Math.max(t,i))-l,height:a(Math.max(n,r))-o}))},onPointerUp:w,onPointerCancel:w,children:[i.map((e,n)=>(0,t.jsxs)("div",{className:"absolute border-2 border-sky-400 bg-sky-400/15",style:x(e),children:[(0,t.jsx)("span",{className:"absolute left-0 top-0 bg-sky-500 px-1.5 text-xs font-bold text-white",children:n+1}),(0,t.jsx)("button",{type:"button",className:"absolute -right-3 -top-3 flex h-6 w-6 items-center justify-center rounded-full bg-red-500 text-white shadow","aria-label":u.batchImport.removeRegion.replace("{index}",String(n+1)),onPointerDown:e=>e.stopPropagation(),onClick:()=>r(i.filter((e,t)=>t!==n)),children:(0,t.jsx)(l.X,{className:"h-3 w-3"})})]},n)),g&&(0,t.jsx)("div",{className:"absolute border-2 border-dashed border-yellow-300 bg-yellow-300/10",style:x(g)})]})]})});var u=e.i(456420);let d={name:"zoom-in",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};d.node;let m=(0,u.f)(d),g={name:"zoom-out",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};g.node;let p=(0,u.f)(g);function f({zoom:e,onZoomIn:n,onZoomOut:i,onReset:r}){let{t:a}=(0,o.b)(),l="outline-none focus-visible:ring-2 focus-visible:ring-white/70",s=`flex h-9 w-9 items-center justify-center rounded-full text-white transition-colors hover:bg-white/20 disabled:opacity-40 disabled:hover:bg-transparent ${l}`;return(0,t.jsxs)("div",{className:"flex items-center gap-0.5 rounded-full bg-black/60 p-1 shadow-lg backdrop-blur-sm",children:[(0,t.jsx)("button",{type:"button",className:s,onClick:i,disabled:e<=1,"aria-label":a.common.cropper.zoomOut,title:a.common.cropper.zoomOut,children:(0,t.jsx)(p,{className:"h-4 w-4"})}),(0,t.jsxs)("button",{type:"button",className:`h-9 min-w-14 rounded-full px-2 text-center text-xs font-medium tabular-nums text-white hover:bg-white/20 ${l}`,onClick:r,"aria-label":a.common.cropper.resetZoom,title:a.common.cropper.resetZoom,children:[Math.round(100*e),"%"]}),(0,t.jsx)("button",{type:"button",className:s,onClick:n,disabled:e>=5,"aria-label":a.common.cropper.zoomIn,title:a.common.cropper.zoomIn,children:(0,t.jsx)(m,{className:"h-4 w-4"})})]})}var w=e.i(201276),x=e.i(804536);let y="image-cropper-mode",b=["single","auto","multi"];e.s(["U",0,b,"p",0,y,"S",0,["image","text","file","direct"],"c",0,"question-input-mode","k",0,["image","text"]],271945);let v={single:{maxHeight:"70vh",maxWidth:"100%",objectFit:"contain"},auto:{maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"},multi:{maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"}};e.s(["f",0,function({imageSrc:e,open:l,onClose:h,onCropComplete:u,onMultiCropComplete:d,onRegionsSelected:m,allowMulti:g=!0,onAutoSplit:p,onAddPart:C,partCount:M=0}){let{t:k}=(0,o.b)(),D=/^(blob:|data:image\/)/i.test(e)?e:void 0,[E,j]=(0,n.useState)(),R=(0,n.useRef)(null),[I,S]=(0,x.y)(y,b,"single"),$=["single",...p?["auto"]:[],...d||m&&g?["multi"]:[]],N=$.includes(I)?I:"single",{containerRef:P,zoom:L,imageStyle:A,measureImage:_,zoomIn:H,zoomOut:U,reset:O}=function(e){let[t,i]=(0,n.useState)(null),r=(0,n.useRef)(null),a=(0,n.useCallback)(e=>{r.current=e,i(e)},[]),[l,o]=(0,n.useState)(1),s=(0,n.useRef)(1),[h,c]=(0,n.useState)(null),u=(0,n.useRef)(null),d=(0,n.useRef)(!1),m=(0,n.useCallback)((e,t,n)=>{let i=r.current,a=s.current,l=Math.min(5,Math.max(1,e));if(!i||l===a)return;if(1===a){let e=i.querySelector("img");e&&c(e.clientWidth)}let h=i.getBoundingClientRect(),d=(t??h.left+h.width/2)-h.left,m=(n??h.top+h.height/2)-h.top;u.current={viewX:d,viewY:m,contentX:i.scrollLeft+d,contentY:i.scrollTop+m,ratio:l/a},s.current=l,o(l)},[]);(0,n.useLayoutEffect)(()=>{let e=r.current,t=u.current;e&&t&&(e.scrollLeft=t.contentX*t.ratio-t.viewX,e.scrollTop=t.contentY*t.ratio-t.viewY,u.current=null)},[l]),(0,n.useEffect)(()=>{if(!t)return;let e=e=>{e.preventDefault(),m(s.current*Math.exp(-(.0015*e.deltaY)),e.clientX,e.clientY)},n=null,i=e=>{let[t,n]=[e[0],e[1]];return{distance:Math.hypot(t.clientX-n.clientX,t.clientY-n.clientY),centerX:(t.clientX+n.clientX)/2,centerY:(t.clientY+n.clientY)/2}},r=e=>{2===e.touches.length&&(n={distance:i(e.touches).distance,zoom:s.current},d.current=!0)},a=e=>{if(!n||2!==e.touches.length)return;e.preventDefault();let{distance:t,centerX:r,centerY:a}=i(e.touches);n.distance>0&&m(n.zoom*(t/n.distance),r,a)},l=e=>{e.touches.length<2&&(n=null,d.current=!1)},o=e=>{d.current&&e.stopPropagation()};return t.addEventListener("wheel",e,{passive:!1}),t.addEventListener("touchstart",r,{passive:!0}),t.addEventListener("touchmove",a,{passive:!1}),t.addEventListener("touchend",l),t.addEventListener("touchcancel",l),t.addEventListener("pointermove",o,{capture:!0}),()=>{t.removeEventListener("wheel",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",a),t.removeEventListener("touchend",l),t.removeEventListener("touchcancel",l),t.removeEventListener("pointermove",o,{capture:!0})}},[t,m]);let g=(0,n.useCallback)(e=>{e&&1===s.current&&c(e.clientWidth)},[]),p=(0,n.useCallback)(()=>m(1.25*s.current),[m]),f=(0,n.useCallback)(()=>m(s.current/1.25),[m]),w=(0,n.useCallback)(()=>{s.current=1,u.current=null,o(1)},[]),x=1!==l&&h?{...e,width:h*l,height:"auto",maxWidth:"none",maxHeight:"none"}:e;return{containerRef:a,zoom:l,imageStyle:x,measureImage:g,zoomIn:p,zoomOut:f,reset:w}}(v[N]);(0,n.useEffect)(()=>{O()},[e,O]);let[X,Y]=(0,n.useState)({src:e,regions:[]}),B=X.src===e?X.regions:[],T=t=>Y({src:e,regions:t}),q=(0,n.useRef)(null),z={single:k.batchImport.singleMode,auto:k.batchImport.autoMode,multi:k.batchImport.multiMode},K=async()=>{if(0!==B.length){if(m){m(B,!0),T([]);return}if(q.current&&d)try{d(await s(q.current,B)),T([])}catch(e){w.V.error("[ImageCropper]","Multi-image crop failed",{error:e})}}},F=()=>E&&E.width>0&&E.height>0?{x:E.x/100,y:E.y/100,width:E.width/100,height:E.height/100}:{x:0,y:0,width:1,height:1},W=async()=>{let e=F();if("auto"===N&&p)return void p(e);if(m)return void m([e],!1);if(R.current&&u)try{let[t]=await s(R.current,[e]);u(t)}catch(e){w.V.error("[ImageCropper]","Crop failed",{error:e})}};return(0,t.jsx)(a.N,{open:l,onOpenChange:e=>!e&&h(),children:(0,t.jsxs)(a.d,{className:"max-w-3xl h-[90vh] flex flex-col p-0 gap-0",children:[(0,t.jsx)(a.s,{className:"p-4 border-b shrink-0",children:(0,t.jsx)(a.F,{children:k.common.cropper?.title||"Crop Image"})}),(0,t.jsxs)("div",{className:"relative min-h-0 flex-1 bg-black",children:[(0,t.jsx)("div",{ref:P,className:"flex h-full w-full overflow-auto p-4",children:(0,t.jsx)("div",{className:"m-auto",children:"multi"===N?(0,t.jsx)(c,{ref:q,imageSrc:D,regions:B,onChange:T,imageStyle:A,onImageLoad:e=>_(e.currentTarget)}):(0,t.jsx)(i.f,{crop:E,onChange:(e,t)=>j(t),children:(0,t.jsx)("img",{ref:R,alt:"Crop me",src:D,onLoad:function(e){j({unit:"%",x:0,y:0,width:100,height:100}),_(e.currentTarget)},style:A})})})}),(0,t.jsx)("div",{className:"absolute right-3 top-3",children:(0,t.jsx)(f,{zoom:L,onZoomIn:H,onZoomOut:U,onReset:O})})]}),(0,t.jsxs)("div",{className:"p-4 border-t bg-background shrink-0 space-y-3",children:[$.length>1&&(0,t.jsx)("div",{className:`grid gap-1 rounded-md bg-muted p-1 ${3===$.length?"grid-cols-3 sm:w-[28rem]":"grid-cols-2 sm:w-80"}`,children:$.map(e=>(0,t.jsx)("button",{type:"button","aria-pressed":N===e,onClick:()=>{O(),S(e)},className:`rounded px-2 py-1.5 text-sm font-medium transition-colors ${N===e?"bg-background shadow-sm":"text-muted-foreground"}`,children:z[e]},e))}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-3",children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"multi"===N?`${k.batchImport.hint} ${k.batchImport.regionCount.replace("{count}",String(B.length))}`:"auto"===N?k.batchImport.autoHint:M>0?k.upload.parts.cropHint.replace("{n}",String(M+1)):k.common.cropper?.hint||"💡 Drag to adjust crop area"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 justify-end",children:["multi"===N&&B.length>0&&(0,t.jsx)(r.f,{variant:"ghost",onClick:()=>T([]),children:k.batchImport.clear}),(0,t.jsx)(r.f,{variant:"outline",onClick:h,children:k.common.cancel||"Cancel"}),"multi"===N?(0,t.jsx)(r.f,{onClick:K,disabled:0===B.length,children:k.batchImport.start.replace("{count}",String(B.length))}):(0,t.jsxs)(t.Fragment,{children:["single"===N&&C&&(0,t.jsx)(r.f,{variant:"secondary",onClick:()=>C(F()),"data-testid":"crop-add-part",children:k.upload.parts.addNext}),(0,t.jsx)(r.f,{onClick:W,children:"auto"===N?k.batchImport.autoStart:M>0?k.upload.parts.confirm.replace("{count}",String(M+1)):k.common.confirm||"Confirm"})]})]})]})]})]})})}],12130)},574041,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(263676),r=e.i(487486),a=e.i(793479),l=e.i(41931),o=e.i(201276);e.s(["f",0,function({value:e=[],onChange:s,placeholder:h="Enter tags...",className:c="",enterHint:u,subject:d,gradeStage:m}){let[g,p]=(0,n.useState)(""),[f,w]=(0,n.useState)([]),[x,y]=(0,n.useState)(!1),[b,v]=(0,n.useState)(0),C=(0,n.useRef)(null),M=(0,n.useRef)(null),k=(0,n.useCallback)(async t=>{try{let n=new URLSearchParams({q:t});d&&n.append("subject",d),m&&n.append("stage",m);let i=((await l.k.get(`/api/tags/suggestions?${n.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));w(i.slice(0,20)),y(i.length>0),v(0)}catch(e){o.V.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[d,m,e]);(0,n.useEffect)(()=>{g.trim()&&k(g)},[g,k]);let D=t=>{t.trim()&&!e.includes(t.trim())&&(s([...e,t.trim()]),p(""),w([]),y(!1),v(0))},E=t=>{s(e.filter(e=>e!==t))};return(0,n.useEffect)(()=>{let e=e=>{!M.current||M.current.contains(e.target)||C.current?.contains(e.target)||y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{className:`relative ${c}`,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)(r.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>E(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(i.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(a.f,{ref:C,type:"text",value:g,onChange:e=>{p(e.target.value),e.target.value.trim()||(w([]),y(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),b>=0&&f[b]?D(f[b]):g.trim()&&D(g)):"ArrowDown"===t.key?(t.preventDefault(),v(e=>Math.min(e+1,f.length-1))):"ArrowUp"===t.key?(t.preventDefault(),v(e=>Math.max(e-1,0))):"Escape"===t.key?(y(!1),v(0)):"Backspace"===t.key&&!g&&e.length>0&&E(e[e.length-1])},onFocus:()=>{f.length>0&&y(!0)},placeholder:0===e.length?h:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),x&&f.length>0&&(0,t.jsx)("div",{ref:M,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:f.map((e,n)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${n===b?"bg-accent":""}`,onClick:()=>D(e),onMouseEnter:()=>v(n),children:e},e))}),g&&!x&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} "${g}"`:`Press Enter to create "${g}"`})]})}])},804536,e=>{var t=e.i(271645);let n=new Map,i=new Set;function r(e){return i.add(e),window.addEventListener("storage",e),()=>{i.delete(e),window.removeEventListener("storage",e)}}function a(e,a,l){let o=(0,t.useSyncExternalStore)(r,()=>(function(e){if(n.has(e))return n.get(e)??null;try{return window.localStorage.getItem(e)}catch{return null}})(e),()=>null);return[(0,t.useMemo)(()=>a(o),[a,o]),(0,t.useCallback)(t=>(function(e,t){try{window.localStorage.setItem(e,t),n.delete(e)}catch{n.set(e,t)}i.forEach(e=>e())})(e,l(t)),[e,l])]}let l=e=>e;e.s(["y",0,function(e,n,i){return a(e,(0,t.useCallback)(e=>n.includes(e??"")?e:i,[n,i]),l)},"x",0,a])},213761,e=>{let t={maxLongEdge:4096,maxPixels:4915200,maxBytes:1572864,startQuality:.9,minQuality:.8};class n extends Error{code;format;constructor(e,t,n){super(e,void 0===n?void 0:{cause:n}),this.code=e,this.format=t,this.name="ImageDecodeError"}}let i=new Set(["heic","heix","heim","heis","hevc","hevx","hevm","hevs"]),r=new Set(["mif1","msf1","mif2"]),a=new Set(["avif","avis"]);function l(e,n,i=t){let r=Math.min(1,i.maxLongEdge/Math.max(e,n),Math.sqrt(i.maxPixels/Math.max(1,e*n)));return{width:Math.max(1,Math.floor(e*r)),height:Math.max(1,Math.floor(n*r)),scale:r}}async function o(e){let t,n;if("function"==typeof createImageBitmap)try{return await createImageBitmap(e,{imageOrientation:"from-image"})}catch{}let i=await (t=URL.createObjectURL(e),(n=new Image).decoding="async",new Promise((e,i)=>{n.onload=()=>e(n),n.onerror=()=>i(Error("IMAGE_ELEMENT_DECODE_FAILED")),n.src=t}).finally(()=>URL.revokeObjectURL(t)));if(!i.naturalWidth||!i.naturalHeight)throw Error("IMAGE_EMPTY");return i}async function s(t){let{heicTo:n}=await e.A(462684);return n({blob:t,type:"image/jpeg",quality:.95})}function h(e,t){return new Promise((n,i)=>{e.toBlob(e=>e?n(e):i(Error("CANVAS_EMPTY")),"image/jpeg",t)})}function c(e,t,n,i,r,a,l){let o,s=((o=document.createElement("canvas")).width=a,o.height=l,o),h=s.getContext("2d");if(!h)throw Error("CANVAS_UNSUPPORTED");return h.fillStyle="#ffffff",h.fillRect(0,0,a,l),h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",h.drawImage(e,t,n,i,r,0,0,a,l),s}async function u(e,t){var u;let d,m=performance.now(),g=await e.arrayBuffer(),p=performance.now()-m,f=function(e){let t=(t,n)=>String.fromCharCode(...e.subarray(t,n));if(e.length>=3&&255===e[0]&&216===e[1]&&255===e[2])return"jpeg";if(e.length>=8&&137===e[0]&&"PNG"===t(1,4))return"png";if(e.length>=12&&"RIFF"===t(0,4)&&"WEBP"===t(8,12))return"webp";if(e.length>=6&&("GIF87a"===t(0,6)||"GIF89a"===t(0,6)))return"gif";if(e.length>=2&&"BM"===t(0,2))return"bmp";if(e.length>=12&&"ftyp"===t(4,8)){let n=Math.min(e.length,(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0||e.length),l=[t(8,12)];for(let e=16;e+4<=n;e+=4)l.push(t(e,e+4));if(l.some(e=>i.has(e)))return"heic";if(l.some(e=>a.has(e)))return"avif";if(l.some(e=>r.has(e)))return"heic"}return"unknown"}(new Uint8Array(g,0,Math.min(g.byteLength,64))),w=e.type||"",x=performance.now(),y="native",b=new Blob([g],{type:w||"application/octet-stream"});try{d=await o(b)}catch(e){if("heic"!==f)throw new n("unknown"===f?"UNSUPPORTED_IMAGE":"IMAGE_DECODE_FAILED",f,e);t?.();try{d=await o(await s(b)),y="heic"}catch(e){throw new n("HEIC_DECODE_FAILED",f,e)}}let{width:v,height:C}=(u=d)instanceof HTMLImageElement?{width:u.naturalWidth,height:u.naturalHeight}:{width:u.width,height:u.height};if(!v||!C)throw new n("IMAGE_DECODE_FAILED",f);let M=l(v,C,{maxLongEdge:1600,maxPixels:1/0}),k=await h(c(d,0,0,v,C,M.width,M.height),.85),D=URL.createObjectURL(k),E=performance.now()-x;return{source:d,width:v,height:C,format:f,decoder:y,previewUrl:D,sourceType:w,sourceBytes:e.size,timings:{read:Math.round(p),convert:Math.round(E)},dispose:()=>{URL.revokeObjectURL(D),d instanceof HTMLImageElement||d.close()}}}let d={x:0,y:0,width:1,height:1};async function m(e,n=d,i=t){var r;let a=performance.now(),o=e=>Math.min(1,Math.max(0,e)),s=Math.round(o(n.x)*e.width),u=Math.round(o(n.y)*e.height),g=Math.max(1,Math.min(e.width-s,Math.round(o(n.width)*e.width))),p=Math.max(1,Math.min(e.height-u,Math.round(o(n.height)*e.height))),f=l(g,p,i),w=c(e.source,s,u,g,p,f.width,f.height),x=performance.now()-a,y=performance.now(),b=i.startQuality,v=await h(w,b);for(let t=0;v.size>i.maxBytes&&t<12;t++)b-.05>=i.minQuality-1e-9?b=Math.round((b-.05)*100)/100:(f={width:Math.max(1,Math.floor(.85*f.width)),height:Math.max(1,Math.floor(.85*f.height)),scale:.85*f.scale},w=c(e.source,s,u,g,p,f.width,f.height)),v=await h(w,b);return{dataUrl:await (r=v,new Promise((e,t)=>{let n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>t(n.error??Error("READ_FAILED")),n.readAsDataURL(r)})),width:f.width,height:f.height,bytes:v.size,quality:b,timings:{crop:Math.round(x),compress:Math.round(performance.now()-y)}}}e.s(["K",0,t,"o",0,n,"N",0,function(e,t){return{sourceType:e.sourceType||e.format,sourceBytes:e.sourceBytes,sourceWidth:e.width,sourceHeight:e.height,outputWidth:t.width,outputHeight:t.height,outputBytes:t.bytes,decoder:e.decoder,quality:t.quality}},"p",0,u,"X",0,m])},499930,e=>{var t=e.i(213761);function n(e,t=.008){let i=Math.max(0,e.x-t),r=Math.max(0,e.y-t);return{x:i,y:r,width:Math.min(1,e.x+e.width+t)-i,height:Math.min(1,e.y+e.height+t)-r}}async function i(e){let t=new Image;if(t.decoding="async",t.src=e,await t.decode(),!t.naturalWidth||!t.naturalHeight)throw Error("IMAGE_EMPTY");return t}async function r(e,n){let i=function(e,t=16,n=!1){let i=Math.max(...e.map(e=>e.width)),r=0,a=e.map(e=>{let a=n?i/e.width:e.scale??1,l={x:0,y:r,width:Math.round(e.width*a),height:Math.round(e.height*a)};return r+=l.height+t,l});return{width:Math.max(...a.map(e=>e.width)),height:r-t,rects:a}}(e.map(e=>({width:e.sw,height:e.sh,scale:e.scale})),16,n),r=document.createElement("canvas");r.width=i.width,r.height=i.height;let a=r.getContext("2d");if(!a)throw Error("CANVAS_UNSUPPORTED");a.fillStyle="#ffffff",a.fillRect(0,0,r.width,r.height),e.forEach((e,t)=>{let n=i.rects[t];a.drawImage(e.source,e.sx,e.sy,e.sw,e.sh,n.x,n.y,n.width,n.height)});let l=await createImageBitmap(r);try{return await (0,t.X)({source:l,width:r.width,height:r.height})}finally{l.close()}}async function a(e,i){let a=e.naturalWidth,l=e.naturalHeight,o=i.map(e=>n(e));return 1===o.length?(0,t.X)({source:e,width:a,height:l},o[0]):r(o.map(t=>({source:e,sx:Math.round(t.x*a),sy:Math.round(t.y*l),sw:Math.max(1,Math.round(t.width*a)),sh:Math.max(1,Math.round(t.height*l))})),!1)}async function l(e){return r((await Promise.all(e.map(i))).map(e=>({source:e,sx:0,sy:0,sw:e.naturalWidth,sh:e.naturalHeight})),!0)}async function o(e,t,i){let a=e.naturalWidth,l=e.naturalHeight,o=i.width/a,s=t.map(e=>n(e)).map(t=>({source:e,sx:Math.round(t.x*a),sy:Math.round(t.y*l),sw:Math.max(1,Math.round(t.width*a)),sh:Math.max(1,Math.round(t.height*l)),scale:o}));return s.push({source:i.source,sx:0,sy:0,sw:i.width,sh:i.height}),r(s,!1)}e.s(["y",0,i,"k",0,o,"M",0,a,"v",0,l])},119472,e=>{var t=e.i(41931),n=e.i(127175);async function i(e){let t;for(let n=0;n<3;n++)try{return await e()}catch(e){if(t=e,!function(e){let t=e?.status;return void 0===t||408===t||502===t||503===t||504===t}(e)||2===n)break;await new Promise(e=>setTimeout(e,1e3*(n+1)))}throw t}async function r(e,a=(0,n.c)()){let{batch:l}=await i(()=>t.k.post("/api/import-batches",{...e,clientRequestId:a,subjectId:e.subjectId||void 0,targetSubjectId:e.targetSubjectId||void 0,paperLevel:e.paperLevel||void 0,items:e.items?.map(e=>({...e})),origin:e.origin},{timeout:12e4}));return(0,n.P)(),l}async function a(e,n={}){let i=n.image?"?include=image":"",{batch:r}=await t.k.get(`/api/import-batches/${encodeURIComponent(e)}${i}`);return r}async function l(e,n,i){let{batch:r}=await t.k.patch(`/api/import-batches/${encodeURIComponent(e)}`,{version:n,draft:i});return r}async function o(e,r,a,l){let{batch:o}=await i(()=>t.k.post(`/api/import-batches/${encodeURIComponent(e)}/start`,{version:r,images:a,analysis:l},{timeout:12e4}));return(0,n.P)(),o}async function s(e){let{batch:i}=await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/retry`,{});return(0,n.P)(),i}async function h(e){let i=await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/confirm-all`,{});return(0,n.P)(),i}async function c(e){await t.k.delete(`/api/import-batches/${encodeURIComponent(e)}`),(0,n.P)()}async function u(e){await t.k.post(`/api/import-batches/${encodeURIComponent(e)}/read`,{}),(0,n.P)()}async function d(e,n,i){return t.k.post(`/api/import-batches/${encodeURIComponent(e)}/fix-text`,{items:n},{timeout:6e5,recoverable:!0,requestId:i})}e.s(["J",0,h,"n",0,function(e){return e?.status===409?e.data?.details?.batch??null:null},"v",0,r,"o",0,c,"w",0,a,"$",0,d,"f",0,u,"s",0,s,"S",0,l,"g",0,o])},25197,e=>{var t=e.i(41931);function n(e){return e.trim()?e:""}async function i(){try{return!!(await t.k.get("/api/user")).confirmBeforeImport}catch{return!1}}async function r(e,i){let r=await t.k.post("/api/error-items",{questionText:e.questionText,answerText:n(e.answerText),analysis:n(e.analysis),wrongAnswerText:e.wrongAnswerText||null,mistakeAnalysis:e.mistakeAnalysis||null,mistakeStatus:e.mistakeStatus||"unknown",knowledgePoints:e.knowledgePoints||[],difficultyStars:e.difficultyStars??null,recognizedGradeSemester:e.gradeSemester??null,hasFigure:e.hasFigure??!1,figureSvg:e.figureSvg??null,questionType:e.questionType??null,subjectId:i.subjectId||void 0,subjectName:i.subjectId?void 0:e.subject,originalImageUrl:i.imageUrl||"",paperLevel:i.paperLevel||void 0});return{id:r.id,shortId:r.shortId??null,subjectId:r.subjectId??null,notebookName:r.subject?.name??null,duplicate:r.duplicate}}e.i(201276),e.s(["x",0,i,"a",0,r],25197)},825624,e=>{let t=/^[\s ]+/,n="一二三四五六七八九十",i=[{family:"dot",pattern:/^(\d{1,3})\s*(?:.|\.(?!\d))\s*/},{family:"comma",pattern:/^(\d{1,3})\s*[、,,](?!\d)\s*/},{family:"paren",pattern:/^(\d{1,3})\s*[))]\s*/},{family:"colon",pattern:/^(\d{1,3})\s*[::](?!\d)\s*/},{family:"ti",pattern:/^第\s*(\d{1,3}|[一二三四五六七八九十]{1,3})\s*题\s*[..、::]?\s*/},{family:"example",pattern:/^(?:例题?|练习|习题)\s*(\d{1,3})\s*[..、::]?\s*/},{family:"q",pattern:/^(?:Q|Question|Problem|Exercise)\s*(\d{1,3})\s*[..::)]?\s+/i},{family:"cn",pattern:/^([一二三四五六七八九十]{1,3})\s*[、..]\s*/}];function r(e){let r=e.replace(t,"");for(let{family:e,pattern:t}of i){let i=r.match(t);if(!i||r.length<=i[0].length)continue;let a=function(e){if(/^\d+$/.test(e))return Number(e);if("十"===e)return 10;let t=e.indexOf("十");return -1===t?n.indexOf(e)+1:10*(0===t?1:n.indexOf(e[0])+1)+(t===e.length-1?0:n.indexOf(e[t+1])+1)}(i[1]);if(Number.isFinite(a)&&!(a<=0))return{value:a,family:e,prefixLength:i[0].length,label:i[1]}}return null}function a(e){let n=e.split("\n"),i=n[0]?.replace(t,"")??"",a=r(i);return a&&"cn"!==a.family&&(n[0]=i.slice(a.prefixLength)),n.join("\n")}function l(e){let t=[];for(let n of e)(n||0!==t.length&&""!==t[t.length-1])&&t.push(n);for(;t.length>0&&""===t[t.length-1];)t.pop();return t.join("\n")}let o=/(姓名|班级|学号|日期|得分|分数|评分|考号|座位号|家长签字|用时|Name\s*[::_]|Class\s*[::_]|Date\s*[::_]|Score\s*[::_])|_{3,}|共\s*\d+\s*(道|题|小题)|做完|答案(见|在)|最后一页|满分\s*\d+\s*分/i,s=/(阅读|材料|短文|文章|选文|诗歌|古诗|文言文|下[面列]的?(表格|图表|统计|信息)|根据.{0,20}(回答|完成)|passage|read the|according to the)/i,h=/^(参考答案|答案与解析|答案|Answers?|Answer Key)\s*[::]?$/i,c=/^(第[一二三四五六七八九十]+(部分|大题|节)|(Part|Section)\s+[A-Z0-9IVX]+\b)/i,u=/(选择|填空|判断|计算|解答|应用|解决问题|操作|作图|阅读|写作|作文|综合|口算|听力|单项|完形|题)/,d=/(\d{1,3})\s*[~~\-—–至到]\s*(\d{1,3})\s*(?:小?题|questions?)/i,m=/(小问|小题|下列问题|以下问题|下列各题|下面各题|完成下列|回答下列|回答以下|following questions|answer the following)/i;function g(e){let t=[],n=[];for(let i of e)i?n.push(i):n.length&&(t.push(n.join("\n")),n=[]);return n.length&&t.push(n.join("\n")),t}function p(e,t=[]){let n=e.trim();return!(!n||n.length>12||/[。!?!?,,、;;::..()()【】\[\]{}]$/.test(n)||/\d/.test(n)||/[。!?!?;;,,]/.test(n))&&!!(/(篇|章|节|部分|组)$/.test(n)||/^(Part|Section)\s+[A-Z0-9]+$/i.test(n))&&(!t.length||t.some(e=>{let t=r(e);return null!==t&&1===t.value}))}function f(e,t){let n=[];for(let i=0;i<e.length;i++){let r=e[i],a=[r];for(let n=i+1;n<e.length;n++){let i=e[n],l=a[a.length-1];if(i.family!==r.family)continue;let o=1===i.value&&[...t].some(e=>e>l.line&&e<i.line);(i.value===l.value+1||o)&&a.push(i)}a.length>n.length&&(n=a)}return n}function w(e,t,n){return!!c.test(e)||!!t&&"cn"===t.family&&"cn"!==n&&null!==n&&(e.length<=40||u.test(e.slice(0,20)))}function x(e,t,n,i,r){for(let a=e-1;a>=0;a--)if(t[a]){if(r.has(a)||w(t[a],n[a],i)||p(t[a]))return t[a];break}return null}function y(e){let t=e.match(d);if(!t)return null;let n=Number(t[1]),i=Number(t[2]);return n<=i?{from:n,to:i}:null}let b={answer:/^(?:【\s*(?:参考答案|答案)\s*】|(?:参考答案|答案)\s*[::]|Answer\s*[::])\s*(.*)$/i,analysis:/^(?:【\s*(?:解析|分析|详解|解答|点评)\s*】|(?:解析|分析|详解|解答|点评)\s*[::])\s*(.*)$/,knowledge:/^(?:【\s*(?:知识点|考点)\s*】|(?:知识点|考点)\s*[::])\s*(.*)$/,difficulty:/^(?:【\s*难度\s*】|难度\s*[::])\s*(.*)$/,questionType:/^(?:【\s*题型\s*】|题型\s*[::])\s*(.*)$/,wrongAnswer:/^(?:【\s*错答\s*】|我的答案\s*[::]|学生答案\s*[::])\s*(.*)$/},v={易:1,较易:2,中等:3,较难:4,难:5};function C(e){return e.split(/[、,,;;]/).map(e=>e.trim()).filter(Boolean)}function M(e){let t={answer:[],analysis:[],knowledge:[],difficulty:[],questionType:[],wrongAnswer:[]},n=[],i=null;for(let r of e){let e=null;for(let n of Object.keys(b)){let a=r.match(b[n]);if(!a)continue;e=n,i=n;let l=a[1].trim();l&&t[n].push(l);break}e||(i&&r.trim()?t[i].push(r.trim()):n.push(r))}let r={},a=t.answer.join("\n").trim();a&&(r.answer=a);let o=t.analysis.join("\n").trim();o&&(r.analysis=o);let s=t.knowledge.flatMap(C);s.length&&(r.knowledgePoints=s);let h=t.difficulty.join(" ").trim(),c=h?function(e){let t=e.trim();if(!t)return null;let n=t.match(/^(\d{1,2})\s*(?:星|级)?$/);if(n){let e=Number(n[1]);return e>=1&&e<=5?e:null}if(/^[★☆]{1,5}$/.test(t)){let e=(t.match(/★/g)??[]).length;return e>=1?e:null}return t in v?v[t]:null}(h):null;null!==c&&(r.difficultyStars=c);let u=t.questionType.join(" ").trim();u&&(r.questionType=u);let d=t.wrongAnswer.join("\n").trim();return d&&(r.wrongAnswer=d),{text:l(n),fields:r}}let k=/^(\d{1,3})\s*[..、,,)]\s*(\S[\s\S]*)$/,D=/^(\d{1,3})\s*[~~—–-]\s*(\d{1,3})\s*[::..、]?\s*([A-Za-z]+)$/;function E(e){let t=e.trim();if(!t)return null;let n=function(e){let t=e.trim().match(D);if(!t)return null;let n=Number(t[1]),i=Number(t[2]),r=t[3];if(!Number.isFinite(n)||!Number.isFinite(i)||n<=0||i<=n||i-n+1>60)return null;let a=i-n+1;return r.length!==a?null:Array.from({length:a},(e,t)=>({label:String(n+t),text:r[t]}))}(t);if(n)return n;let i=function(e){let t=e.trim(),n=[];for(let e of t.matchAll(/(\d{1,3})\s*[..、,,;;]\s*/g)){let i=e.index??0,r=t[i+e[0].length];r&&/\d/.test(r)||n.push({index:i,label:e[1],afterIndex:i+e[0].length})}if(n.length<2)return null;for(let e=1;e<n.length;e++)if(Number(n[e].label)<=Number(n[e-1].label))return null;let i=[];for(let e=0;e<n.length;e++){let r=n[e].afterIndex,a=e+1<n.length?n[e+1].index:t.length,l=t.slice(r,a).trim().replace(/[;;]+$/,"").trim();if(!l||l.length>30||/[。!?!?]/.test(l))return null;i.push({label:n[e].label,text:l})}return i}(t);if(i)return i.map(e=>({label:e.label??"",text:e.text})).filter(e=>e.label);let r=t.match(k);if(!r)return null;let a=Number(r[1]);return!Number.isFinite(a)||a<=0?null:[{label:r[1],text:r[2].trim()}]}function j(e){let t=e.match(/^(.*?)(?:【?\s*(?:解析|分析|详解|解答|点评)\s*】?\s*[::])([\s\S]*)$/);if(t){let n=t[1].replace(/^(?:【?\s*(?:参考答案|答案)\s*】?\s*[::])\s*/,"").trim(),i=t[2].trim();return i?{answer:n,analysis:i}:{answer:e.trim()}}return{answer:e.replace(/^(?:【?\s*(?:参考答案|答案)\s*】?\s*[::])\s*/,"").trim()||e.trim()}}function R(e,t){let n=[],i=!1;for(let r of e){let e={value:!1},a=[];for(let n of r.split("\n")){let i=n.trim()?E(n):null;if(!i){n.trim()&&a.push(n);continue}let r=!1;for(let l of i){let i=t.find(e=>e.label===l.label);if(!i){a.push(n);break}r=!0,e.value=!0;let o=j(l.text);o.answer&&!i.answer&&(i.answer=o.answer),o.analysis&&(i.analysis=i.analysis?`${i.analysis}
|
|
2
2
|
${o.analysis}`:o.analysis)}!r&&!a.includes(n)&&n.trim()&&!a.includes(n)&&a.push(n)}i=i||e.value,e.value?a.length&&n.push(a.join("\n")):n.push(r)}return[n,i]}e.s(["k",0,2e3,"f",0,1e6,"S",0,60,"i",0,2e4,"J",0,function(e,n={}){let i,u,b=void 0===n.maxLength?2e4:Math.min(Math.max(n.maxLength,1e3),1e6),v=void 0===n.maxQuestions?60:Math.min(Math.max(n.maxQuestions,2),2e3),C=e.length>b,k=e.slice(0,b).replace(/\r\n?/g,"\n").split("\n").map(e=>e.replace(t,"").replace(/[\s ]+$/,"")),D=k.map(e=>e?r(e):null),I=k.length;for(let e=0;e<k.length;e++)if(h.test(k[e])){I=e;break}let S=[],$=[];for(let e=0;e<I;e++){let t=D[e];t&&("cn"===t.family?$:S).push({...t,line:e})}let N=new Set;for(let e=0;e<I;e++)(c.test(k[e])||D[e]?.family==="cn"||p(k[e],k.slice(e+1,e+5)))&&N.add(e);let P=[],L=f(S,N);if(L.length<2){let e=f($,new Set);e.length>=2&&(P=[{chain:e,sectionHeading:null}])}else P=function(e,t,n,i){if(e.length<2)return[];let r=e[0].family,a=[0];for(let t=1;t<e.length;t++)1===e[t].value&&a.push(t);if(a.length<2){let a=x(e[0].line,t,n,r,i);return null!==a?[{chain:e,sectionHeading:a}]:[]}let l=[];for(let o=0;o<a.length;o++){let s=a[o],h=o+1<a.length?a[o+1]:e.length,c=e.slice(s,h),u=0===o?x(e[0].line,t,n,r,i):function(e,t,n,i,r,a){for(let l=e+1;l<t;l++)if(n[l]&&(a.has(l)||w(n[l],i[l],r)||p(n[l])))return n[l];return null}(e[s-1].line,e[s].line,t,n,r,i);if(null===u&&o>0){l[l.length-1].chain.push(...c);continue}l.push({chain:c,sectionHeading:u})}return l.filter(e=>e.chain.length>0)}(L,k,D,N);let A=P.length?P.flatMap(e=>e.chain):L,_=l(k.slice(0,I)),H=I<k.length?g(k.slice(I)):[],U=(u=r(k[A[0]?.line??0]??""))?u.label:null,O=e=>({questions:_?[{label:U,text:_,material:null,section:null,lineRange:{from:0,to:I}}]:[],ignored:H,detected:!1,ambiguous:e,candidateCount:e?A.length:+!!_,overflow:0,tooLong:C});if(A.length<2){if(!_)return O(!1);let e=M(_.split("\n")),t=O(!1);if(t.questions.length>0&&Object.keys(e.fields).length>0&&(t.questions[0]={...t.questions[0],text:a(e.text),...e.fields}),t.questions.length>0&&H.length){let[e,n]=R(H,t.questions);t.ignored=e,n||(t.ignored=H)}return t}let X=A[0].family;if(!n.forceNumbered&&function(e,t,n,i){let r=null;for(let a=t-1;a>=0;a--)if(e[a]){r=w(e[a],i[a],n)?null:e[a];break}return!(!r||o.test(r)||d.test(r))&&("paren"===n?r.length>=15||/[。?!?!::,,;;]$/.test(r):/[::]$/.test(r)&&m.test(r))}(k,A[0].line,X,D)){let e=O(!0);if(e.questions.length>0&&_){let t=M(_.split("\n"));Object.keys(t.fields).length>0&&(e.questions[0]={...e.questions[0],text:a(t.text),...t.fields})}return e}let Y=new Set(A.map(e=>e.line)),B=[],T=[],q=null,z=[],K=[],F=(e,t)=>{for(let n of g(e))(!o.test(n)||!(n.length<80))&&(s.test(n)||n.length>=80&&/[。!?.!?;;]/.test(n))?z.push({text:n,range:y(n)}):t?B.push(n):q&&!T.some(e=>e.section===q)?q=`${q}
|
|
3
3
|
${n}`:B.push(n)},W=A[0].line,G=[];for(let e=0;e<W;e++)k[e]&&(w(k[e],D[e],X)||p(k[e],k.slice(e+1,e+5)))?(F(G.splice(0),!0),q=k[e],K=[]):G.push(k[e]);F(G,!0);let Q=P.length>1,V=e=>{if(!Q)return -1;let t=0;for(let n=0;n<P.length;n++)if(e<(t+=P[n].chain.length))return n;return P.length-1};for(let e=0;e<A.length;e++){let t=A[e].line,n=e+1<A.length?A[e+1].line:I,i=V(e);if(Q&&i>=0){let e=P[i].sectionHeading;null!==e&&(q=e,K=[])}z.length&&(K=[...K.filter(e=>e.range),...z],z=[]);let r=n,o=null;for(let e=t+1;e<n;e++)if(k[e]&&!Y.has(e)&&w(k[e],D[e],X)){r=e,o=k[e];break}let h=k.slice(t,r),c=g(h),u=[];for(;c.length>1&&s.test(c[c.length-1].slice(0,30));)u.unshift(c.pop());let d=u.length?c.join("\n"):l(h),m=A[e].value,p=K.filter(e=>!e.range||m>=e.range.from&&m<=e.range.to),f=M(a(d).split("\n"));for(let i of(T.push({label:A[e].label,text:f.text,material:p.length?p.map(e=>e.text).join("\n\n"):null,section:q,lineRange:{from:t,to:n},...f.fields}),u))z.push({text:i,range:y(i)});null!==o&&(q=o,K=[],F(k.slice(r+1,n),!1))}if(Q&&H.length){let e=P.map(e=>e.sectionHeading).filter(e=>null!==e),t=H.join("\n");i=e.some(e=>t.includes(e))?function(e,t,n){let i=[],r=0,a=t.map(e=>{let t=n.slice(r,r+e.chain.length);return r+=e.chain.length,t}),l=-1;for(let r of e){let e=r.split("\n"),o=[],s=!1;for(let i of e){let e=i.trim();if(!e){o.push(i);continue}let r=t.findIndex(t=>t.sectionHeading&&e.includes(t.sectionHeading));if(r>=0){l=r;continue}let h=E(e);if(!h){o.push(i);continue}let c=l>=0?a[l]:n,u=!1;for(let e of h){let t=c.find(t=>t.label===e.label);if(!t){o.push(i);break}u=!0,s=!0;let n=j(e.text);n.answer&&!t.answer&&(t.answer=n.answer),n.analysis&&(t.analysis=t.analysis?`${t.analysis}
|
|
4
4
|
${n.analysis}`:n.analysis)}u||o.includes(i)||o.push(i)}s?o.length&&i.push(o.join("\n")):i.push(r)}return i}(H,P,T):H}else i=R(H,T)[0];let Z=T.slice(v);return{questions:T.slice(0,v),ignored:[...B,...i,...Z.map(e=>{var t;let n,i,r,a;return n=(t=e).text.trim(),r=(i=t.material?.trim())?`${i}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[711241,t=>{var e=t.i(456420);let r={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],711241)},474544,t=>{var e=t.i(456420);let r={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],474544)},444594,t=>{var e=t.i(456420);let r={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],444594)},218964,t=>{var e=t.i(456420);let r={name:"list-checks",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"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],218964)},77043,t=>{var e=t.i(456420);let r={name:"printer",size:24,node:[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],77043)},566595,t=>{var e=t.i(456420);let r={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],566595)},
|
|
2
|
-
`},"n",0,n])},35209,t=>{var e=t.i(271645),r=t.i(111110);t.s(["f",0,function(...t){let{t:n}=(0,r.b)(),i=[n.pageTitle.base,...t.map(t=>"string"==typeof t?t.trim():"").filter(t=>t.length>0)].join("-");(0,e.useEffect)(()=>{document.title=i},[i])}])},991722,t=>{function e(t){return"not_attempted"===t||"wrong_attempt"===t||"unknown"===t?t:"unknown"}t.s(["i",0,function(t,r="zh"){return("en"===r?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[e(t)]},"h",0,e,"x",0,function(t,r){return(r||"").trim()?"wrong_attempt":e(t)}])},401280,t=>{let e={single_choice:"single_choice",singlechoice:"single_choice","single choice":"single_choice","single-choice":"single_choice",multiple_choice:"multiple_choice",multiplechoice:"multiple_choice","multiple choice":"multiple_choice","multiple-choice":"multiple_choice",multichoice:"multiple_choice","multi choice":"multiple_choice",true_false:"true_false",truefalse:"true_false","true/false":"true_false","true false":"true_false","true-false":"true_false","true / false":"true_false",fill_blank:"fill_blank",fillblank:"fill_blank","fill in the blank":"fill_blank","fill-in-the-blank":"fill_blank",fillintheblank:"fill_blank",calculation:"calculation",solution:"solution",reading:"reading",cloze:"cloze",writing:"writing",other:"other",选择题:"single_choice",单项选择:"single_choice",单选:"single_choice",单选题:"single_choice",不定项:"multiple_choice",不定项选择:"multiple_choice",多项选择:"multiple_choice",多选:"multiple_choice",多选题:"multiple_choice",判断:"true_false",判断题:"true_false",是非:"true_false",是非题:"true_false",填空:"fill_blank",填空题:"fill_blank",口算:"calculation",计算:"calculation",计算题:"calculation",解答:"solution",解答题:"solution",应用:"solution",应用题:"solution",证明:"solution",证明题:"solution",简答:"solution",简答题:"solution",阅读:"reading",阅读理解:"reading",完形:"cloze",完形填空:"cloze",作文:"writing",写作:"writing",书面表达:"writing",其他:"other"};t.s(["O",0,"__none__","V",0,["single_choice","multiple_choice","true_false","fill_blank","calculation","solution","reading","cloze","writing","other"],"u",0,{single_choice:"Single Choice",multiple_choice:"Multiple Choice",true_false:"True / False",fill_blank:"Fill in the Blank",calculation:"Calculation",solution:"Solution",reading:"Reading Comprehension",cloze:"Cloze",writing:"Writing",other:"Other"},"H",0,{single_choice:"单选题",multiple_choice:"多选题",true_false:"判断题",fill_blank:"填空题",calculation:"计算题",solution:"解答题",reading:"阅读理解",cloze:"完形填空",writing:"写作",other:"其他"},"P",0,function(t){if("string"!=typeof t)return null;let r=t.trim().toLowerCase();return r?e[r]??null:null}])},380935,164549,t=>{var e=t.i(41931);async function r(t){try{return(await e.k.get(`/api/error-items/short/${encodeURIComponent(t)}`)).id}catch{return null}}t.s(["f",0,r],380935);let n=RegExp("^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{6}$");t.s(["f",0,function(t){return"string"==typeof t&&n.test(t)}],164549)},428602,t=>{t.s(["f",0,function(t){if(t.tags&&t.tags.length>0)return t.tags.map(t=>t.name);if(!t.knowledgePoints)return[];try{let e=JSON.parse(t.knowledgePoints);return Array.isArray(e)?e.filter(t=>"string"==typeof t):[]}catch{return[]}}])},597138,t=>{t.i(306831),t.s(["f",0,function(t){if(!t)return null;let e=t.toLowerCase();return e.includes("math")||e.includes("数学")?"math":e.includes("physics")||e.includes("物理")?"physics":e.includes("chemistry")||e.includes("化学")?"chemistry":e.includes("biology")||e.includes("生物")?"biology":e.includes("english")||e.includes("英语")?"english":e.includes("chinese")||e.includes("语文")?"chinese":e.includes("history")||e.includes("历史")?"history":e.includes("geography")||e.includes("地理")?"geography":e.includes("politics")||e.includes("政治")?"politics":null}])}],467034,(t,e,r)=>{var n={872:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],f=o[1],u=new i((s+f)*3/4-f),l=0,h=f>0?s-4:s;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===f&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===f&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,f=n-i;s<f;s+=16383)o.push(function(t,e,n){for(var i,o=[],s=e;s<n;s+=3)i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>f?f:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=o.length;s<f;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},230:function(t,e,r){"use strict";var n=r(872),i=r(321),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return a(t,e,r)}function a(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),a=s(o),u=a.write(n,i);return u!==o&&(a=a.slice(0,u)),a}if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(N(t,ArrayBuffer)||t&&N(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(N(t,SharedArrayBuffer)||t&&N(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),f.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var l=t.valueOf&&t.valueOf();if(null!=l&&l!==t)return f.from(l,e,r);var g=function(t){if(f.isBuffer(t)){var e=0|c(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(g)return g;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return u(t),s(t<0?0:0|c(t))}function h(t){for(var e=t.length<0?0:0|c(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=f,e.SlowBuffer=function(t){return+t!=t&&(t=0),f.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!f.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(t,e,r){return a(t,e,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(t,e,r){return(u(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},f.allocUnsafe=function(t){return l(t)},f.allocUnsafeSlow=function(t){return l(t)};function c(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||N(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(t).length;default:if(i)return n?-1:k(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var i,o,s,f=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=T[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return b(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,s=r,0===o&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(f)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),f=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return m(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var o,s=1,f=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,f/=2,a/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<f;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===a)return l*s}else -1!==l&&(o-=o-l),l=-1}else for(r+a>f&&(r=f-a),o=r;o>=0;o--){for(var h=!0,c=0;c<a;c++)if(u(t,o+c)!==u(e,c)){h=!1;break}if(h)return o}return -1}f.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==f.prototype},f.compare=function(t,e){if(N(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),N(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(t)||!f.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=f.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(N(o,Uint8Array)&&(o=f.from(o)),!f.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},f.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):g.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(t){if(!f.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(t,e,r,n,i){if(N(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,a=Math.min(o,s),u=this.slice(n,i),l=t.slice(e,r),h=0;h<a;++h)if(u[h]!==l[h]){o=u[h],s=l[h];break}return o<s?-1:+(s<o)},f.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)};function b(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,f,a,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:(192&(o=t[i+1]))==128&&(a=(31&u)<<6|63&o)>127&&(l=a);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(a=(15&u)<<12|(63&o)<<6|63&s)>2047&&(a<55296||a>57343)&&(l=a);break;case 4:o=t[i+1],s=t[i+2],f=t[i+3],(192&o)==128&&(192&s)==128&&(192&f)==128&&(a=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&f)>65535&&a<1114112&&(l=a)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var c=n,p=c.length;if(p<=4096)return String.fromCharCode.apply(String,c);for(var g="",y=0;y<p;)g+=String.fromCharCode.apply(String,c.slice(y,y+=4096));return g}function v(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,i,o){if(!f.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function x(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,o){return e*=1,r>>>=0,o||x(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function A(t,e,r,n,o){return e*=1,r>>>=0,o||x(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}f.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,f,a,u,l,h,c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var f,a=parseInt(e.substr(2*s,2),16);if((f=a)!=f)break;t[r+s]=a}return s}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,U(k(t,this.length-i),this,i,o);case"ascii":return s=e,f=r,U(B(t),this,s,f);case"latin1":case"binary":return function(t,e,r,n){return U(B(e),t,r,n)}(this,t,e,r);case"base64":return a=e,u=r,U(j(t),this,a,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,U(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},f.prototype.readUInt8=function(t,e){return t>>>=0,e||v(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return(t>>>=0,e||v(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s<r&&(o*=256);)this[e+s]=t/o&255;return e+r},f.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},f.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=0,s=1,f=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===f&&0!==this[e+o-1]&&(f=1),this[e+o]=(t/s|0)-f&255;return e+r},f.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=r-1,s=1,f=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===f&&0!==this[e+o+1]&&(f=1),this[e+o]=(t/s|0)-f&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return A(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return A(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(!f.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},f.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=f.isBuffer(t)?t:f.from(t,n),a=s.length;if(0===a)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var _=/[^+/0-9A-Za-z-_]/g;function k(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function B(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function j(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function N(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var T=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},321:function(t,e){e.read=function(t,e,r,n,i){var o,s,f=8*i-n-1,a=(1<<f)-1,u=a>>1,l=-7,h=r?i-1:0,c=r?-1:1,p=t[e+h];for(h+=c,o=p&(1<<-l)-1,p>>=-l,l+=f;l>0;o=256*o+t[e+h],h+=c,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=c,l-=8);if(0===o)o=1-u;else{if(o===a)return s?0/0:(p?-1:1)*2e308;s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,f,a,u=8*o-i-1,l=(1<<u)-1,h=l>>1,c=5960464477539062e-23*(23===i),p=n?0:o-1,g=n?1:-1,y=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||1/0===e?(f=+!!isNaN(e),s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+h>=1?e+=c/a:e+=c*Math.pow(2,1-h),e*a>=2&&(s++,a/=2),s+h>=l?(f=0,s=l):s+h>=1?(f=(e*a-1)*Math.pow(2,i),s+=h):(f=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&f,p+=g,f/=256,i-=8);for(s=s<<i|f,u+=i;u>0;t[r+p]=255&s,p+=g,s/=256,u-=8);t[r+p-g]|=128*y}}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}},s=!0;try{n[t](r,r.exports,o),s=!1}finally{s&&delete i[t]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/buffer/",e.exports=o(230)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[711241,t=>{var e=t.i(456420);let r={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],711241)},474544,t=>{var e=t.i(456420);let r={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],474544)},444594,t=>{var e=t.i(456420);let r={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],444594)},218964,t=>{var e=t.i(456420);let r={name:"list-checks",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"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],218964)},77043,t=>{var e=t.i(456420);let r={name:"printer",size:24,node:[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],77043)},566595,t=>{var e=t.i(456420);let r={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],566595)},786563,t=>{var e=t.i(456420);let r={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"}]]};r.node;let n=(0,e.f)(r);t.s(["f",0,n],786563)},469937,t=>{var e=t.i(843476),r=t.i(786563),n=t.i(111110),i=t.i(975157);let o=[1,2,3,4,5];t.s(["f",0,function({value:t,onChange:s,disabled:f,size:a="sm",showUnrated:u=!0,className:l}){let{t:h}=(0,n.b)(),c=t??0,p="sm"===a?"h-3.5 w-3.5":"h-5 w-5",g=c?h.difficulty.starsLabel.replace("{n}",String(c)):h.difficulty.unrated;return s?(0,e.jsxs)("span",{className:(0,i.f)("inline-flex items-center gap-0.5",l),role:"group","aria-label":`${h.difficulty.label}${h.common.colon}${g}`,title:h.difficulty.clearHint,children:[o.map(t=>(0,e.jsx)("button",{type:"button",disabled:f,onClick:()=>s(t===c?null:t),"aria-label":h.difficulty.setStars.replace("{n}",String(t)),"aria-pressed":t<=c,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,e.jsx)(r.f,{className:(0,i.f)(p,t<=c?"fill-amber-400 text-amber-400":"text-muted-foreground/40")})},t)),!c&&u&&(0,e.jsx)("span",{className:"ml-1 text-xs text-muted-foreground",children:h.difficulty.unrated})]}):c?(0,e.jsx)("span",{className:(0,i.f)("inline-flex items-center",l),role:"img","aria-label":`${h.difficulty.label}${h.common.colon}${g}`,title:g,children:o.map(t=>(0,e.jsx)(r.f,{className:(0,i.f)(p,t<=c?"fill-amber-400 text-amber-400":"text-muted-foreground/30"),"aria-hidden":!0},t))}):u?(0,e.jsx)("span",{className:(0,i.f)("text-xs text-muted-foreground",l),children:h.difficulty.unrated}):null}])},846968,t=>{var e=t.i(843476),r=t.i(548161),n=t.i(474544),i=t.i(741120),o=t.i(487486),s=t.i(111110);let f={new:{className:"bg-warning/15 text-amber-700 dark:text-warning",icon:n.f},reviewing:{className:"bg-primary/10 text-primary",icon:i.f},mastered:{className:"bg-success/15 text-success",icon:r.f}};t.s(["o",0,{new:"border-l-warning/70",reviewing:"border-l-primary/60",mastered:"border-l-success/70"},"x",0,function({status:t,className:r=""}){let{t:n}=(0,s.b)(),{className:i,icon:a}=f[t],u="mastered"===t?n.notebook.mastered:"reviewing"===t?n.notebook.reviewing:n.notebook.review;return(0,e.jsx)(o.f,{variant:"secondary",className:`${i} ${r}`,children:(0,e.jsxs)("span",{className:"flex items-center gap-1",children:[(0,e.jsx)(a,{className:"h-3 w-3"})," ",u]})})}])},709830,76824,t=>{var e=t.i(843476),r=t.i(111110),n=t.i(597138);let i=["primary","junior_high","senior_high","university"],o="primary",s=["math","english","chinese","physics","chemistry","biology","history","geography","politics"];function f(t){return"string"==typeof t&&s.includes(t)}function a(t){var e;let r=f(t.subjectKey)?t.subjectKey:(0,n.f)(t.name);return{stage:"string"==typeof(e=t.stage)&&i.includes(e)?t.stage:o,subject:r&&f(r)?r:null}}function u(){let{t}=(0,r.b)();return{stageLabel:e=>({primary:t.auth.primary,junior_high:t.auth.juniorHigh,senior_high:t.auth.seniorHigh,university:t.auth.university})[e],subjectLabel:e=>t.tags.subjects[e]}}t.s(["j",0,o,"c",0,i,"W",0,{primary:["math","english","chinese"],junior_high:s,senior_high:s,university:s},"v",0,a],76824),t.s(["E",0,function({notebook:t,className:r}){let{stageLabel:n,subjectLabel:i}=u(),o=a(t);return(0,e.jsxs)("span",{className:r,children:[n(o.stage),o.subject?` \xb7 ${i(o.subject)}`:""]})},"O",0,u],709830)},590546,t=>{var e=t.i(843476),r=t.i(618566),n=t.i(519455),i=t.i(711241);t.s(["f",0,function({fallbackUrl:t,className:o}){let s=(0,r.useRouter)();return(0,e.jsx)(n.f,{variant:"ghost",size:"icon",onClick:()=>{s.push(t)},className:o,children:(0,e.jsx)(i.f,{className:"h-5 w-5"})})}])},912505,t=>{var e=t.i(843476),r=t.i(975157);t.s(["f",0,function({icon:t,title:n,description:i,action:o,className:s}){return(0,e.jsxs)("div",{className:(0,r.f)("flex flex-col items-center justify-center rounded-2xl border border-dashed bg-card/50 px-6 py-14 text-center",s),children:[(0,e.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-accent text-accent-foreground",children:(0,e.jsx)(t,{className:"h-7 w-7"})}),(0,e.jsx)("p",{className:"font-medium",children:n}),i&&(0,e.jsx)("p",{className:"mt-1 max-w-sm text-sm text-muted-foreground",children:i}),o&&(0,e.jsx)("div",{className:"mt-5",children:o})]})}])},393842,t=>{var e=t.i(843476),r=t.i(590546),n=t.i(975157);t.s(["f",0,function({title:t,description:i,backHref:o,actions:s,titleAddon:f,className:a}){return(0,e.jsxs)("div",{className:(0,n.f)("flex items-start gap-3",a),children:[o&&(0,e.jsx)(r.f,{fallbackUrl:o,className:"-ml-2 shrink-0"}),(0,e.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)("h1",{className:"truncate text-2xl font-bold tracking-tight sm:text-3xl",children:t}),f]}),i&&(0,e.jsx)("p",{className:"text-sm text-muted-foreground sm:text-base",children:i})]}),s&&(0,e.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s})]})}])},86963,t=>{var e=t.i(843476),r=t.i(632781);t.s(["f",0,function({label:t}){return(0,e.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,e.jsx)(r.f,{className:"h-7 w-7 animate-spin text-primary"}),t&&(0,e.jsx)("p",{className:"text-sm",children:t})]})}])},185592,t=>{var e=t.i(843476),r=t.i(975157);t.s(["f",0,function({options:t,value:n,onChange:i,className:o}){return(0,e.jsx)("div",{className:(0,r.f)("grid gap-1 rounded-xl bg-muted p-1",o),style:{gridTemplateColumns:`repeat(${t.length}, minmax(0, 1fr))`},role:"tablist",children:t.map(({value:t,label:o,icon:s})=>{let f=t===n;return(0,e.jsxs)("button",{type:"button",role:"tab","aria-selected":f,className:(0,r.f)("flex items-center justify-center gap-1.5 rounded-lg px-2 py-2.5 text-sm font-medium transition-all",f?"bg-card text-primary shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:()=>i(t),children:[s&&(0,e.jsx)(s,{className:"h-4 w-4 shrink-0"}),(0,e.jsx)("span",{className:"truncate",children:o})]},t)})})}])},469817,t=>{t.s(["$",0,18,"u",0,5,"A",0,200])},407198,t=>{let e=["题干","选项A","选项B","选项C","选项D","答案","解析","知识点","难度","题型","学科","年级学期","来源","大题","题号"],r=[["下列哪个选项是正确的?","选项一","选项二","选项三","选项四","A","这是解析内容。","知识点一、知识点二","3","单选题","数学","七年级上学期","2025 期中","第一大题","1"],["1+1=____。","","","","","2","基础加法运算。","基础运算","易","填空题","数学","一年级上学期","课堂练习","第一大题","2"]];async function n(){let{default:n}=await t.A(810068),i=[e,...r];return await n(i).toBlob()}t.s(["I",0,e,"j",0,function(){let t=t=>/[",\n\r]/.test(t)?`"${t.replace(/"/g,'""')}"`:t,n=[];for(let i of(n.push(e.map(t).join(",")),r))n.push(i.map(t).join(","));return`\uFEFF${n.join("\r\n")}\r
|
|
2
|
+
`},"n",0,n])},35209,t=>{var e=t.i(271645),r=t.i(111110);t.s(["f",0,function(...t){let{t:n}=(0,r.b)(),i=[n.pageTitle.base,...t.map(t=>"string"==typeof t?t.trim():"").filter(t=>t.length>0)].join("-");(0,e.useEffect)(()=>{document.title=i},[i])}])},991722,t=>{function e(t){return"not_attempted"===t||"wrong_attempt"===t||"unknown"===t?t:"unknown"}t.s(["i",0,function(t,r="zh"){return("en"===r?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[e(t)]},"h",0,e,"x",0,function(t,r){return(r||"").trim()?"wrong_attempt":e(t)}])},401280,t=>{let e={single_choice:"single_choice",singlechoice:"single_choice","single choice":"single_choice","single-choice":"single_choice",multiple_choice:"multiple_choice",multiplechoice:"multiple_choice","multiple choice":"multiple_choice","multiple-choice":"multiple_choice",multichoice:"multiple_choice","multi choice":"multiple_choice",true_false:"true_false",truefalse:"true_false","true/false":"true_false","true false":"true_false","true-false":"true_false","true / false":"true_false",fill_blank:"fill_blank",fillblank:"fill_blank","fill in the blank":"fill_blank","fill-in-the-blank":"fill_blank",fillintheblank:"fill_blank",calculation:"calculation",solution:"solution",reading:"reading",cloze:"cloze",writing:"writing",other:"other",选择题:"single_choice",单项选择:"single_choice",单选:"single_choice",单选题:"single_choice",不定项:"multiple_choice",不定项选择:"multiple_choice",多项选择:"multiple_choice",多选:"multiple_choice",多选题:"multiple_choice",判断:"true_false",判断题:"true_false",是非:"true_false",是非题:"true_false",填空:"fill_blank",填空题:"fill_blank",口算:"calculation",计算:"calculation",计算题:"calculation",解答:"solution",解答题:"solution",应用:"solution",应用题:"solution",证明:"solution",证明题:"solution",简答:"solution",简答题:"solution",阅读:"reading",阅读理解:"reading",完形:"cloze",完形填空:"cloze",作文:"writing",写作:"writing",书面表达:"writing",其他:"other"};t.s(["O",0,"__none__","V",0,["single_choice","multiple_choice","true_false","fill_blank","calculation","solution","reading","cloze","writing","other"],"u",0,{single_choice:"Single Choice",multiple_choice:"Multiple Choice",true_false:"True / False",fill_blank:"Fill in the Blank",calculation:"Calculation",solution:"Solution",reading:"Reading Comprehension",cloze:"Cloze",writing:"Writing",other:"Other"},"H",0,{single_choice:"单选题",multiple_choice:"多选题",true_false:"判断题",fill_blank:"填空题",calculation:"计算题",solution:"解答题",reading:"阅读理解",cloze:"完形填空",writing:"写作",other:"其他"},"P",0,function(t){if("string"!=typeof t)return null;let r=t.trim().toLowerCase();return r?e[r]??null:null}])},380935,164549,t=>{var e=t.i(41931);async function r(t){try{return(await e.k.get(`/api/error-items/short/${encodeURIComponent(t)}`)).id}catch{return null}}t.s(["f",0,r],380935);let n=RegExp("^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{6}$");t.s(["f",0,function(t){return"string"==typeof t&&n.test(t)}],164549)},428602,t=>{t.s(["f",0,function(t){if(t.tags&&t.tags.length>0)return t.tags.map(t=>t.name);if(!t.knowledgePoints)return[];try{let e=JSON.parse(t.knowledgePoints);return Array.isArray(e)?e.filter(t=>"string"==typeof t):[]}catch{return[]}}])},597138,t=>{t.i(306831),t.s(["f",0,function(t){if(!t)return null;let e=t.toLowerCase();return e.includes("math")||e.includes("数学")?"math":e.includes("physics")||e.includes("物理")?"physics":e.includes("chemistry")||e.includes("化学")?"chemistry":e.includes("biology")||e.includes("生物")?"biology":e.includes("english")||e.includes("英语")?"english":e.includes("chinese")||e.includes("语文")?"chinese":e.includes("history")||e.includes("历史")?"history":e.includes("geography")||e.includes("地理")?"geography":e.includes("politics")||e.includes("政治")?"politics":null}])}],467034,(t,e,r)=>{var n={872:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],f=o[1],u=new i((s+f)*3/4-f),l=0,h=f>0?s-4:s;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===f&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===f&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,f=n-i;s<f;s+=16383)o.push(function(t,e,n){for(var i,o=[],s=e;s<n;s+=3)i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>f?f:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=o.length;s<f;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},230:function(t,e,r){"use strict";var n=r(872),i=r(321),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return a(t,e,r)}function a(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),a=s(o),u=a.write(n,i);return u!==o&&(a=a.slice(0,u)),a}if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(N(t,ArrayBuffer)||t&&N(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(N(t,SharedArrayBuffer)||t&&N(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),f.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var l=t.valueOf&&t.valueOf();if(null!=l&&l!==t)return f.from(l,e,r);var g=function(t){if(f.isBuffer(t)){var e=0|c(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(g)return g;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return u(t),s(t<0?0:0|c(t))}function h(t){for(var e=t.length<0?0:0|c(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=f,e.SlowBuffer=function(t){return+t!=t&&(t=0),f.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!f.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(t,e,r){return a(t,e,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(t,e,r){return(u(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},f.allocUnsafe=function(t){return l(t)},f.allocUnsafeSlow=function(t){return l(t)};function c(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||N(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(t).length;default:if(i)return n?-1:B(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var i,o,s,f=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=T[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return b(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,s=r,0===o&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(f)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),f=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return m(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var o,s=1,f=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,f/=2,a/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<f;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===a)return l*s}else -1!==l&&(o-=o-l),l=-1}else for(r+a>f&&(r=f-a),o=r;o>=0;o--){for(var h=!0,c=0;c<a;c++)if(u(t,o+c)!==u(e,c)){h=!1;break}if(h)return o}return -1}f.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==f.prototype},f.compare=function(t,e){if(N(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),N(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(t)||!f.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=f.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(N(o,Uint8Array)&&(o=f.from(o)),!f.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},f.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):g.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(t){if(!f.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(t,e,r,n,i){if(N(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,a=Math.min(o,s),u=this.slice(n,i),l=t.slice(e,r),h=0;h<a;++h)if(u[h]!==l[h]){o=u[h],s=l[h];break}return o<s?-1:+(s<o)},f.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)};function b(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,f,a,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:(192&(o=t[i+1]))==128&&(a=(31&u)<<6|63&o)>127&&(l=a);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(a=(15&u)<<12|(63&o)<<6|63&s)>2047&&(a<55296||a>57343)&&(l=a);break;case 4:o=t[i+1],s=t[i+2],f=t[i+3],(192&o)==128&&(192&s)==128&&(192&f)==128&&(a=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&f)>65535&&a<1114112&&(l=a)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var c=n,p=c.length;if(p<=4096)return String.fromCharCode.apply(String,c);for(var g="",y=0;y<p;)g+=String.fromCharCode.apply(String,c.slice(y,y+=4096));return g}function v(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,i,o){if(!f.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function x(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,o){return e*=1,r>>>=0,o||x(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function A(t,e,r,n,o){return e*=1,r>>>=0,o||x(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}f.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,f,a,u,l,h,c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var f,a=parseInt(e.substr(2*s,2),16);if((f=a)!=f)break;t[r+s]=a}return s}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,U(B(t,this.length-i),this,i,o);case"ascii":return s=e,f=r,U(k(t),this,s,f);case"latin1":case"binary":return function(t,e,r,n){return U(k(e),t,r,n)}(this,t,e,r);case"base64":return a=e,u=r,U(j(t),this,a,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,U(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},f.prototype.readUInt8=function(t,e){return t>>>=0,e||v(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return(t>>>=0,e||v(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s<r&&(o*=256);)this[e+s]=t/o&255;return e+r},f.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},f.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=0,s=1,f=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===f&&0!==this[e+o-1]&&(f=1),this[e+o]=(t/s|0)-f&255;return e+r},f.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=r-1,s=1,f=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===f&&0!==this[e+o+1]&&(f=1),this[e+o]=(t/s|0)-f&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return A(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return A(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(!f.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},f.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=f.isBuffer(t)?t:f.from(t,n),a=s.length;if(0===a)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var _=/[^+/0-9A-Za-z-_]/g;function B(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function k(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function j(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function N(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var T=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},321:function(t,e){e.read=function(t,e,r,n,i){var o,s,f=8*i-n-1,a=(1<<f)-1,u=a>>1,l=-7,h=r?i-1:0,c=r?-1:1,p=t[e+h];for(h+=c,o=p&(1<<-l)-1,p>>=-l,l+=f;l>0;o=256*o+t[e+h],h+=c,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=c,l-=8);if(0===o)o=1-u;else{if(o===a)return s?0/0:(p?-1:1)*2e308;s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,f,a,u=8*o-i-1,l=(1<<u)-1,h=l>>1,c=5960464477539062e-23*(23===i),p=n?0:o-1,g=n?1:-1,y=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||1/0===e?(f=+!!isNaN(e),s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+h>=1?e+=c/a:e+=c*Math.pow(2,1-h),e*a>=2&&(s++,a/=2),s+h>=l?(f=0,s=l):s+h>=1?(f=(e*a-1)*Math.pow(2,i),s+=h):(f=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&f,p+=g,f/=256,i-=8);for(s=s<<i|f,u+=i;u>0;t[r+p]=255&s,p+=g,s/=256,u-=8);t[r+p-g]|=128*y}}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}},s=!0;try{n[t](r,r.exports,o),s=!1}finally{s&&delete i[t]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/buffer/",e.exports=o(230)}]);
|