wrong-notebook 2026.11.3-1 → 2026.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +1 -0
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +8 -0
- 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/dashboard/route.js +2 -2
- package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/users/[id]/detail/route.js +2 -2
- package/.next/server/app/api/admin/users/[id]/detail/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/models/route.js +2 -2
- package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/test/route.js +2 -2
- package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
- package/.next/server/app/api/analytics/route.js +2 -2
- package/.next/server/app/api/analytics/route.js.nft.json +1 -1
- package/.next/server/app/api/analyze/route.js +2 -2
- package/.next/server/app/api/analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/figure/route.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/.next/server/app/api/error-items/[id]/geogebra/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/reanswer/route.js +2 -2
- 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 +2 -2
- package/.next/server/app/api/error-items/[id]/retag/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +2 -2
- 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 +2 -2
- package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/route.js +20 -20
- package/.next/server/app/api/error-items/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +2 -2
- 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 +2 -2
- package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/retry/route.js +2 -2
- package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/route.js +2 -2
- package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/route.js +2 -2
- package/.next/server/app/api/exams/route.js.nft.json +1 -1
- package/.next/server/app/api/geogebra-analyze/route.js +2 -2
- package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/import/route.js +18 -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 +14 -14
- 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/app-paths-manifest.json +3 -0
- package/.next/server/app/api/import-batches/[id]/fix-text/route/build-manifest.json +12 -0
- package/.next/server/app/api/import-batches/[id]/fix-text/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/import-batches/[id]/fix-text/route.js +26 -0
- package/.next/server/app/api/import-batches/[id]/fix-text/route.js.map +5 -0
- package/.next/server/app/api/import-batches/[id]/fix-text/route.js.nft.json +1 -0
- package/.next/server/app/api/import-batches/[id]/fix-text/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/import-batches/[id]/read/route.js +14 -14
- 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 +14 -14
- 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 +14 -14
- 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 +14 -14
- package/.next/server/app/api/import-batches/[id]/start/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/route.js +14 -14
- package/.next/server/app/api/import-batches/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/confirm/route.js +18 -18
- 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 +18 -18
- 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 +18 -18
- 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 +18 -18
- package/.next/server/app/api/import-tasks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/route.js +14 -14
- package/.next/server/app/api/import-tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/retag/route.js +2 -2
- package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
- package/.next/server/app/api/openclaw/batch-upload/route.js +16 -16
- package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/generate/route.js +2 -2
- package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/grade/route.js +2 -2
- package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/[id]/route.js +2 -2
- package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/route.js +2 -2
- package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
- package/.next/server/app/api/reanswer/route.js +2 -2
- package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
- package/.next/server/app/api/review/due/route.js +2 -2
- package/.next/server/app/api/review/due/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
- package/.next/server/app/api/user/route.js +2 -2
- 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/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/app-paths-manifest.json +1 -0
- package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_fix-text_route_actions_0r7lg6-5j_fez.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1zg0z12pshrxg._.js → [root-of-the-server]__0-f1ktua0hz_g._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0-ipecoww0k_f._.js → [root-of-the-server]__01-14hxale6jz._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0nv9vais_avpm._.js → [root-of-the-server]__01mz72wf0po36._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__05iw617rx9m75._.js → [root-of-the-server]__01rm65xnqj0z-._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0cu0eqoslaz4-._.js → [root-of-the-server]__029n0r2v92pcc._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__02ez4rqh6y7uu._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1-0-1pwy7s8ak._.js → [root-of-the-server]__02jcq4nj_tb6l._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0982_75un5k3v._.js → [root-of-the-server]__02nbzp-n9g9_o._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__04tx90mwz-58t._.js → [root-of-the-server]__05tyrbfzivoeq._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__06jad9cnzeci-._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1r7a3lg45ng01._.js → [root-of-the-server]__08aldp-j0e_op._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0_uvtfu0yr-na._.js +4 -4
- package/.next/server/chunks/{[root-of-the-server]__06pk7x8wdbyel._.js → [root-of-the-server]__0a5qx2roo_50n._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__16p-11g6suxzy._.js → [root-of-the-server]__0ahnj8vp1pywj._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0b5mh_vi6e246._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0b5qyqwq6mk5v._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0b79cd6lae7ep._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__09wdoeko-mqnp._.js → [root-of-the-server]__0bmczgpuggwki._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0cu5jz9b3f0i1._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0xwxn3blv1fe1._.js → [root-of-the-server]__0d31vt-7stly0._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0d818ux928r5h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0dclcdg0hwxxj._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0d_zoa2_linlk._.js → [root-of-the-server]__0ddvoqy3a719u._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0e13o3ny66zb3._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0l-amyqoswdni._.js → [root-of-the-server]__0eba9rni-2_tw._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0pkist00_xrfj._.js → [root-of-the-server]__0fx0s5_6sjw-d._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0gphporvvjc0d._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__06ocjahusp01i._.js → [root-of-the-server]__0hy5-7_ikat1_._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0i2mt6zjxbq--._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__05615yr7zmo6t._.js → [root-of-the-server]__0ijmyxflggama._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0ijq_d0gr5zo8._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0ha1sdqrzak3j._.js → [root-of-the-server]__0ik-49062qe6v._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0iqp1f0-yvbhw._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1_-sordu1ka96._.js → [root-of-the-server]__0j-1ri4yahq6t._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0k0c90ih7n0te._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0f2xi-1x_bd0j._.js → [root-of-the-server]__0l30p58xnmw13._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0maxg52nxqrzi._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ml-m3il4unb6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0nujsu6qbn-8o._.js +4 -4
- package/.next/server/chunks/{[root-of-the-server]__1-z3uulycjf_q._.js → [root-of-the-server]__0ob0n0xzc2--7._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0impq05z-6_x5._.js → [root-of-the-server]__0opuw_bsktcnc._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0ptn9j1rleieh._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0b1s_-vbl79om._.js → [root-of-the-server]__0s-etfexh0i4a._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0u3m78xhq8b3l._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0jw-1uedp5s7y._.js → [root-of-the-server]__0v5o3aoha3nct._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1z51x426cuske._.js → [root-of-the-server]__0w53aflmo1keg._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0wdjzoxwwh6bn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0wj82qshtrskw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0wx65sza19ou-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0xasoo-1cispc._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__06675jta6pa74._.js → [root-of-the-server]__0xnu_7ck-z9do._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0y_zzgunl38y2._.js → [root-of-the-server]__0yv_kznxz5qzn._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0zldj8zxo-hvc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__109pj952qxtan._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__12u4jc5x2ss9k._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0-rtxg7i50p0s._.js → [root-of-the-server]__14jpfgwnpc9gl._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__14m8fewwq1xs6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1679e_8h0w86j._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1h0fzi033rztm._.js → [root-of-the-server]__196oikyiyhn_9._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1ue577i7esus5._.js → [root-of-the-server]__19wv3dxe-dx43._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1asgy7sah0mo6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1av1l48rnghpa._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1azlmjwymm3nj._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0l__ty_n0br2x._.js → [root-of-the-server]__1c5_00hz3u1z7._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1dom1le7wqh7d._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0401xgmcbb_7u._.js → [root-of-the-server]__1dtpezu7cisnu._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1g6jrwm72xr8a._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1zwat9xocdoqz._.js → [root-of-the-server]__1h545soby66hi._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1hk5kgctlp2wn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1k4pnhbw4rgzs._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1lea5m7hl1n7f._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ll7fod21jjr6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1m7pja8jp27eh._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1nv28fsr0vd5p._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1o_zqaie6w0vc._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1jneum6lwgjph._.js → [root-of-the-server]__1q-7krekgvk1w._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1rqu8zxkn8yj1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ruzcenko2gi1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1seev7pmug-hj._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1rh7o4i0_it3x._.js → [root-of-the-server]__1t6aypqxgjkg_._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1to25zgnk7xk-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1vbof6uu4he_-._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0odw8n6b44k3x._.js → [root-of-the-server]__1z56ua9u9hadc._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1zc0bmdyn1lg4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__207c97dbcdb0z._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__20cdqectwle3j._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__20dy4zclqbnw8._.js +3 -0
- package/.next/server/chunks/{_1fq28h_w2e0th._.js → _03dn7v_h3d-v8._.js} +7 -7
- package/.next/server/chunks/{_1gngd154ci72t._.js → _043-r529chcri._.js} +7 -7
- package/.next/server/chunks/_04rjm4ctjqrba._.js +3 -0
- package/.next/server/chunks/{_1ui0r0p4npnpi._.js → _1-6i59jd1zhly._.js} +7 -7
- package/.next/server/chunks/{_1e_ts14olqd90._.js → _1hvmjv_7xksea._.js} +1 -1
- package/.next/server/chunks/src_lib_0_g_0q-n01g-x._.js +3 -0
- package/.next/server/chunks/src_lib_12j7n__96zd0q._.js +3 -0
- package/.next/server/chunks/src_lib_1_m3-y2t3e4xi._.js +39 -19
- package/.next/server/chunks/src_lib_question-deduplication_ts_1p1bik-vwl9ue._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1mrj6vygoasvv._.js → [root-of-the-server]__0q_1ml4ix5ftb._.js} +1 -1
- package/.next/server/chunks/ssr/_186fwf-hcr_ua._.js +8 -0
- package/.next/server/chunks/ssr/{_0ks-0g-tu__3m._.js → _1j21wzv797ipf._.js} +1 -1
- package/.next/server/chunks/ssr/_1pdnzaad7hk0d._.js +8 -0
- package/.next/server/chunks/ssr/_1qgg_ll5hkjaf._.js +1 -1
- package/.next/server/chunks/ssr/_1ujx-n3muyaxs._.js +1 -1
- package/.next/server/chunks/ssr/_1ux6eqqkupo6v._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_qoz7biz6-x_._.js → node_modules_1-mokx4fe30es._.js} +1 -1
- package/.next/server/chunks/ssr/src_app_import-batches_[id]_page_tsx_0mhg_vriwmkkw._.js +1 -1
- package/.next/server/chunks/ssr/src_app_notebooks_[id]_add_page_tsx_179tow1ql6vc_._.js +1 -1
- package/.next/server/chunks/ssr/src_app_page_tsx_1chiuahujsxm1._.js +1 -1
- package/.next/server/chunks/ssr/src_components_image-cropper_tsx_0pcp8-ifruyx-._.js +1 -1
- package/.next/server/chunks/ssr/src_lib_0-wirad5ziskp._.js +6 -0
- package/.next/server/chunks/ssr/src_lib_1vv0-aje_e-zh._.js +6 -0
- 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/0-hqh6zs3hidn.js +12 -0
- package/.next/static/chunks/02xikk3wlibg1.js +1 -0
- package/.next/static/chunks/{289znh7431pug.js → 0455_qx26n4sc.js} +1 -1
- package/.next/static/chunks/0_0cdw71x2r9p.js +1 -0
- package/.next/static/chunks/0y5zywo-ll2w3.js +1 -0
- package/.next/static/chunks/1ppadg8s8wyf0.js +1 -0
- package/.next/static/chunks/1v3rj6mh3f3-l.js +1 -0
- package/.next/static/chunks/1ywx2_e5apnra.js +12 -0
- package/.next/static/chunks/25_80i03m2bsy.css +3 -0
- package/.next/static/chunks/2e4yhd7hvrn4n.js +1 -0
- package/.next/static/chunks/2qqyq-iqkv_oa.js +9 -0
- package/.next/static/chunks/31-r0kqqw-wfd.js +6 -0
- package/.next/static/chunks/{32hs1wu90i-g2.js → 3jvftad10pwwg.js} +3 -3
- package/.next/static/chunks/{3wr-25ch-9chk.js → 3u2qw-orhi1q3.js} +1 -1
- package/package.json +1 -1
- package/prisma/seed.db +0 -0
- package/.next/server/chunks/[root-of-the-server]__0fxqs6p28o57m._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0jy5w86h0qg50._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0kw7hbup538-8._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0mhtpz84f1vct._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0mks6j_xgzj06._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ol6aiama1k_-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0pce90ecznpjr._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0pgghfs5ue4ff._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0q3uk_5f9t6mb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0qw6cz355p_eb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0s3z-zsl35ueb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0smf8z8cd59g3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0sujbuwv8y6bp._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0tg572v-6f3wo._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0to77zh5fihef._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0u04aced_0ug4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ujhtand4ld8w._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ultckrjp1h-q._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0xkb9fyy9z_rr._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0xqbpgtwhqhpl._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0y0skjc_7v7cr._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-90b1cy_787j._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__134n229bo2v1d._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1_2jbd6rjhbu6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1_qwjiy9wg14j._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1al4_7mvxprle._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1cbejfw8sum3r._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1cbhqd8d3ozuv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1cxpqdzozndhn._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1dh0adu5iobp3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1exbv92f97wbe._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1grfx7nsqj28h._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1mg_zqw3nheiu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1mn422yguinbn._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ndg27r3ft7-f._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1p60tmt2t1ve3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1qgitdeliyhex._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1qxr6vtllrbku._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1rcg5kj7i_3lc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1rylv89ttw-vw._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1vvqeqc6b1ri5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1wp-sh9b360mc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1wphfm1f8cos4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1yrozlry-psmk._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__20vlnu0zllzzp._.js +0 -3
- package/.next/server/chunks/src_lib_0sbu2x2ff_rnz._.js +0 -3
- package/.next/server/chunks/src_lib_0ximwux0rcb__._.js +0 -3
- package/.next/server/chunks/src_lib_1wm8ay-jqxakc._.js +0 -3
- package/.next/server/chunks/src_lib_1zjmo0u3pnxig._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_pencil-line_mjs_1xkf12pwlzan2._.js +0 -8
- package/.next/server/chunks/ssr/src_lib_question-split_text_ts_0h4uz23xrlybm._.js +0 -6
- package/.next/static/chunks/0_ar7dth9hybc.js +0 -1
- package/.next/static/chunks/0t9po-y0g3nwu.js +0 -12
- package/.next/static/chunks/0v8w72ij3d-3v.js +0 -1
- package/.next/static/chunks/171ff2ttsrlg8.js +0 -1
- package/.next/static/chunks/1ar7mttk9ne1t.js +0 -12
- package/.next/static/chunks/29hn5lj1csc6m.js +0 -6
- package/.next/static/chunks/2notwq6aaf_l7.css +0 -3
- package/.next/static/chunks/3b34ougp2g-5y.js +0 -1
- package/.next/static/chunks/3lsj4waqfw7eq.js +0 -1
- package/.next/static/chunks/3ucxgsy-rkjn9.js +0 -9
- /package/.next/static/{UGLvq52Fbq8nQxM1BjZlP → rhXQeIgvoLtutrDHSq6bR}/_buildManifest.js +0 -0
- /package/.next/static/{UGLvq52Fbq8nQxM1BjZlP → rhXQeIgvoLtutrDHSq6bR}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{UGLvq52Fbq8nQxM1BjZlP → rhXQeIgvoLtutrDHSq6bR}/_ssgManifest.js +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,314381,3198,e=>{var t=e.i(456420);let r={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],314381);var a=e.i(843476),i=e.i(271645),n=e.i(632781);let l={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};l.node;let o=(0,t.f)(l),d={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]};d.node;let c=(0,t.f)(d);var u=e.i(395925),m=e.i(741120),f=e.i(759659),x=e.i(519455),g=e.i(111110),h=e.i(294114),p=e.i(201276),v=e.i(113381);let y=null;function j(e,t,r){let s=e?.firstElementChild;s&&(s.style.width="100%",s.style.height=`${r}px`,t?.setSize(e?.offsetWidth||s.offsetWidth||800,r))}function w(e,t){let r=(0,v.L)(e,t);for(let e of r)p.V.warn("[GGB]","命令执行失败",{...e});return r.map(e=>e.command+":"+e.message).join("\n")||void 0}e.s(["f",0,function({commands:e,height:t=700,showToolBar:r=!1,showAlgebraInput:s=!1,showMenuBar:l=!1,className:d="",onRegenerate:b,onDelete:k}){let{t:N}=(0,g.b)(),S=(0,i.useRef)(null),A=(0,i.useRef)(null),T=(0,i.useRef)(void 0),E=(0,i.useId)(),I=(0,i.useRef)(`ggb-${E.replace(/[^a-zA-Z0-9_-]/g,"")}`),[C,_]=(0,i.useState)(!0),[R,V]=(0,i.useState)(null),[$,M]=(0,i.useState)(!0),[O,z]=(0,i.useState)(!1),[L,G]=(0,i.useState)(!1),P=(0,i.useMemo)(()=>(0,v.i)(e),[e]);(0,i.useEffect)(()=>{if(0===P.length)return;let e=!1,a=I.current,i=S.current;return(y||(y=new Promise((e,t)=>{if(window.GGBApplet)return void e();let r=document.createElement("script");r.src="https://www.geogebra.org/apps/deployggb.js",r.async=!0,r.onload=()=>e(),r.onerror=()=>{y=null,t(Error("Failed to load GeoGebra"))},document.head.appendChild(r)}))).then(()=>{if(e)return;let n=window.GGBApplet;if(!n){V(N.geogebra.notLoaded),_(!1);return}if(i){i.innerHTML=`<div id="${a}" style="width:100%;height:${t}px"></div>`;try{new n({appName:"classic",width:"100%",height:t,showToolBar:r,showAlgebraInput:s,showMenuBar:l,showResetIcon:!0,enableRightClick:!0,enableShiftDragZoom:!0,language:"zh",appletOnLoad:r=>{e||(A.current=r,j(i,r,t),T.current=w(r,P),_(!1))}},!0).inject(a)}catch(t){p.V.error("[GGB]","Init failed",{error:t}),e||(V(N.geogebra.initFailed),_(!1))}}}).catch(t=>{p.V.error("[GGB]","Script load failed",{error:t}),e||(V(N.geogebra.scriptFailed),_(!1))}),()=>{e=!0;try{let e=A.current;e?.remove&&e.remove()}catch(e){p.V.warn("[GGB]","Cleanup failed",{error:e})}A.current=null,i&&(i.innerHTML="")}},[P,r,s,l]),(0,i.useEffect)(()=>{j(S.current,A.current,$?700:t)},[$,t]);let U=(0,i.useCallback)(()=>{let e=A.current;if(e)try{e.resetConstruction(),setTimeout(()=>{A.current&&(T.current=w(A.current,P))},300)}catch(e){p.V.warn("[GGB]","Reset failed",{error:e})}},[P]),F=(0,i.useCallback)(async()=>{if(b&&!O){z(!0);try{await b(T.current)}finally{z(!1)}}},[b,O]),D=(0,i.useCallback)(async()=>{if(k&&!L&&await (0,h.u)(N.geogebra.confirmDelete,{destructive:!0})){G(!0);try{await k()}catch{h.c.error(N.geogebra.deleteFailed)}finally{G(!1)}}},[k,L,N]);return 0===P.length?null:(0,a.jsxs)("div",{className:`relative rounded-lg border bg-card ${d}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b bg-muted/30",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:N.geogebra.title}),C&&(0,a.jsx)(n.f,{className:"h-3 w-3 animate-spin text-muted-foreground"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[b&&(0,a.jsxs)(x.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1",onClick:F,title:N.geogebra.regenerate,disabled:O||C,children:[O?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(m.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.regenerate})]}),k&&(0,a.jsxs)(x.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1 text-destructive hover:text-destructive",onClick:D,title:N.geogebra.delete,disabled:L||O,children:[L?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(f.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.delete})]}),(0,a.jsx)(x.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:U,title:N.geogebra.reset,disabled:C,children:(0,a.jsx)(u.f,{className:"h-3.5 w-3.5"})}),(0,a.jsx)(x.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>M(e=>!e),title:$?N.geogebra.shrink:N.geogebra.enlarge,children:$?(0,a.jsx)(c,{className:"h-3.5 w-3.5"}):(0,a.jsx)(o,{className:"h-3.5 w-3.5"})})]})]}),(0,a.jsx)("div",{ref:S,style:{width:"100%"}}),C&&(0,a.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/80 rounded-b-lg",style:{top:37},children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,a.jsx)(n.f,{className:"h-6 w-6 animate-spin text-primary"}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:N.geogebra.loading})]})}),R&&(0,a.jsx)("div",{className:"flex items-center justify-center text-sm text-destructive",style:{minHeight:t},children:R})]})}],3198)},399847,e=>{var t=e.i(456420);let r={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"]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],399847)},615568,168148,
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,314381,3198,e=>{var t=e.i(456420);let r={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],314381);var a=e.i(843476),i=e.i(271645),n=e.i(632781);let l={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};l.node;let o=(0,t.f)(l),d={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]};d.node;let c=(0,t.f)(d);var u=e.i(395925),m=e.i(741120),f=e.i(759659),x=e.i(519455),g=e.i(111110),h=e.i(294114),p=e.i(201276),v=e.i(113381);let y=null;function j(e,t,r){let s=e?.firstElementChild;s&&(s.style.width="100%",s.style.height=`${r}px`,t?.setSize(e?.offsetWidth||s.offsetWidth||800,r))}function w(e,t){let r=(0,v.L)(e,t);for(let e of r)p.V.warn("[GGB]","命令执行失败",{...e});return r.map(e=>e.command+":"+e.message).join("\n")||void 0}e.s(["f",0,function({commands:e,height:t=700,showToolBar:r=!1,showAlgebraInput:s=!1,showMenuBar:l=!1,className:d="",onRegenerate:b,onDelete:k}){let{t:N}=(0,g.b)(),S=(0,i.useRef)(null),A=(0,i.useRef)(null),T=(0,i.useRef)(void 0),E=(0,i.useId)(),I=(0,i.useRef)(`ggb-${E.replace(/[^a-zA-Z0-9_-]/g,"")}`),[C,_]=(0,i.useState)(!0),[R,V]=(0,i.useState)(null),[$,M]=(0,i.useState)(!0),[O,z]=(0,i.useState)(!1),[L,G]=(0,i.useState)(!1),P=(0,i.useMemo)(()=>(0,v.i)(e),[e]);(0,i.useEffect)(()=>{if(0===P.length)return;let e=!1,a=I.current,i=S.current;return(y||(y=new Promise((e,t)=>{if(window.GGBApplet)return void e();let r=document.createElement("script");r.src="https://www.geogebra.org/apps/deployggb.js",r.async=!0,r.onload=()=>e(),r.onerror=()=>{y=null,t(Error("Failed to load GeoGebra"))},document.head.appendChild(r)}))).then(()=>{if(e)return;let n=window.GGBApplet;if(!n){V(N.geogebra.notLoaded),_(!1);return}if(i){i.innerHTML=`<div id="${a}" style="width:100%;height:${t}px"></div>`;try{new n({appName:"classic",width:"100%",height:t,showToolBar:r,showAlgebraInput:s,showMenuBar:l,showResetIcon:!0,enableRightClick:!0,enableShiftDragZoom:!0,language:"zh",appletOnLoad:r=>{e||(A.current=r,j(i,r,t),T.current=w(r,P),_(!1))}},!0).inject(a)}catch(t){p.V.error("[GGB]","Init failed",{error:t}),e||(V(N.geogebra.initFailed),_(!1))}}}).catch(t=>{p.V.error("[GGB]","Script load failed",{error:t}),e||(V(N.geogebra.scriptFailed),_(!1))}),()=>{e=!0;try{let e=A.current;e?.remove&&e.remove()}catch(e){p.V.warn("[GGB]","Cleanup failed",{error:e})}A.current=null,i&&(i.innerHTML="")}},[P,r,s,l]),(0,i.useEffect)(()=>{j(S.current,A.current,$?700:t)},[$,t]);let U=(0,i.useCallback)(()=>{let e=A.current;if(e)try{e.resetConstruction(),setTimeout(()=>{A.current&&(T.current=w(A.current,P))},300)}catch(e){p.V.warn("[GGB]","Reset failed",{error:e})}},[P]),F=(0,i.useCallback)(async()=>{if(b&&!O){z(!0);try{await b(T.current)}finally{z(!1)}}},[b,O]),D=(0,i.useCallback)(async()=>{if(k&&!L&&await (0,h.u)(N.geogebra.confirmDelete,{destructive:!0})){G(!0);try{await k()}catch{h.c.error(N.geogebra.deleteFailed)}finally{G(!1)}}},[k,L,N]);return 0===P.length?null:(0,a.jsxs)("div",{className:`relative rounded-lg border bg-card ${d}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b bg-muted/30",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:N.geogebra.title}),C&&(0,a.jsx)(n.f,{className:"h-3 w-3 animate-spin text-muted-foreground"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[b&&(0,a.jsxs)(x.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1",onClick:F,title:N.geogebra.regenerate,disabled:O||C,children:[O?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(m.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.regenerate})]}),k&&(0,a.jsxs)(x.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1 text-destructive hover:text-destructive",onClick:D,title:N.geogebra.delete,disabled:L||O,children:[L?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(f.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.delete})]}),(0,a.jsx)(x.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:U,title:N.geogebra.reset,disabled:C,children:(0,a.jsx)(u.f,{className:"h-3.5 w-3.5"})}),(0,a.jsx)(x.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>M(e=>!e),title:$?N.geogebra.shrink:N.geogebra.enlarge,children:$?(0,a.jsx)(c,{className:"h-3.5 w-3.5"}):(0,a.jsx)(o,{className:"h-3.5 w-3.5"})})]})]}),(0,a.jsx)("div",{ref:S,style:{width:"100%"}}),C&&(0,a.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/80 rounded-b-lg",style:{top:37},children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,a.jsx)(n.f,{className:"h-6 w-6 animate-spin text-primary"}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:N.geogebra.loading})]})}),R&&(0,a.jsx)("div",{className:"flex items-center justify-center text-sm text-destructive",style:{minHeight:t},children:R})]})}],3198)},399847,e=>{var t=e.i(456420);let r={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"]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],399847)},615568,168148,e=>{var t=e.i(456420);let r={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],615568);var a=e.i(843476),i=e.i(271645),n=e.i(30030),l=e.i(248425),o=Object.defineProperty,d=(e,t)=>o(e,"name",{value:t,configurable:!0}),c="Progress",[u,m]=(0,n.f)(c),[f,x]=u(c),g=i.forwardRef(d(function(e,t){let{__scopeProgress:r,value:s=null,max:i,getValueLabel:n=p,...o}=e;(i||0===i)&&!j(i)&&console.error(b(`${i}`,"Progress"));let d=j(i)?i:100;null===s||w(s,d)||console.error(k(`${s}`,"Progress"));let c=w(s,d)?s:null,u=y(c)?n(c,d):void 0;return(0,a.jsx)(f,{scope:r,value:c,max:d,children:(0,a.jsx)(l.V.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":y(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":v(c,d),"data-value":c??void 0,"data-max":d,...o,ref:t})})},"Progress")),h=i.forwardRef(d(function(e,t){let{__scopeProgress:r,...s}=e,i=x("ProgressIndicator",r);return(0,a.jsx)(l.V.div,{"data-state":v(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...s,ref:t})},"ProgressIndicator"));function p(e,t){return`${Math.round(e/t*100)}%`}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function y(e){return"number"==typeof e}function j(e){return y(e)&&!isNaN(e)&&e>0}function w(e,t){return y(e)&&!isNaN(e)&&e<=t&&e>=0}function b(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}function k(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
2
|
- a positive number
|
|
3
3
|
- less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
5
|
|
|
6
|
-
Defaulting to \`null\`.`}d(p,"defaultGetValueLabel"),d(v,"getProgressState"),d(y,"isNumber"),d(j,"isValidMaxNumber"),d(w,"isValidValueNumber"),d(b,"getInvalidMaxError"),d(k,"getInvalidValueError");var N=e.i(975157);let S=i.forwardRef(({className:e,value:t,...r},s)=>(0,a.jsx)(g,{ref:s,value:t,className:(0,N.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:(0,a.jsx)(h,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));S.displayName=g.displayName,e.s(["f",0,S],168148);var A=e.i(303163);e.s(["f",0,function(e,t){let r=t.common?.messages?.analysisFailed||"Analysis failed, please try again",s=(0,A.d)(e);if(s){let e=t.errors??{};if(!(s in e))return s;let a=e[s];return"string"==typeof a?a:r}let a=(0,A.Z)(e);if(a.includes("fetch")||a.includes("network"))return t.errors?.AI_CONNECTION_FAILED||"网络连接失败";if("object"==typeof e&&null!==e&&"data"in e&&"string"==typeof e.data){let t="status"in e&&"number"==typeof e.status?e.status:"Error";return`${r} (${t})`}return r}],61425)},856522,e=>{var t=e.i(456420);let r={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],856522)},866531,497346,752012,e=>{var t=e.i(843476),r=e.i(271645),s=e.i(632781),a=e.i(741120),i=e.i(856522),n=e.i(314381),l=e.i(3198),o=e.i(519455),d=e.i(111110),c=e.i(41931),u=e.i(294114),m=e.i(201276);function f({data:e,onChange:a}){let{t:i}=(0,d.b)(),[x,g]=(0,r.useState)(!1),[h,p]=(0,r.useState)(null),v=async()=>{if(!e.questionText.trim())return void u.c.warning(i.editor.enterQuestionFirst||"Please enter question text first");if(!e.answerText.trim())return void u.c.warning(i.geogebra.answerRequired);g(!0),p(null);try{let t=await c.k.post("/api/geogebra-analyze",{questionText:e.questionText,answerText:e.answerText,analysis:e.analysis},{timeout:18e4,recoverable:!0});t.suitable&&t.commands&&t.commands.length>0?a({geogebraCommands:JSON.stringify(t.commands)}):p(t.description||i.geogebra.notSuitable)}catch(e){m.V.error("[CorrectionEditor]","GeoGebra analysis failed",{error:e}),p(i.geogebra.analyzeFailed)}finally{g(!1)}};return e.geogebraCommands?(0,t.jsx)(l.f,{commands:e.geogebraCommands,height:350,onRegenerate:v,onDelete:async()=>a({geogebraCommands:void 0})}):e.questionText.trim()&&e.answerText.trim()?(0,t.jsxs)("div",{className:"rounded-lg border border-dashed p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(n.f,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:i.geogebra.title})]}),(0,t.jsx)(o.f,{variant:"outline",size:"sm",onClick:v,disabled:x,children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4 animate-spin"}),i.geogebra.analyzing]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.f,{className:"mr-2 h-4 w-4"}),i.geogebra.generate]})})]}),h&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:h}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:i.geogebra.hint})]}):null}var x=e.i(469937),g=e.i(28342),h=e.i(438465),p=e.i(674166),v=e.i(110204);function y({data:e,paperLevel:r,onChange:s}){let{t:a}=(0,d.b)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.selectNotebook||"Select Notebook"}),(0,t.jsx)(h.f,{value:e.subjectId,onChange:e=>s({subjectId:e})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{htmlFor:"correction-grade-semester",children:a.editor.gradeSemester||"Grade/Semester"}),(0,t.jsx)(g.f,{id:"correction-grade-semester",value:e.gradeSemester||"",onChange:e=>s({gradeSemester:e})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.paperLevel||"Paper Level"}),(0,t.jsx)(p.f,{value:r,onChange:e=>s({paperLevel:e})})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.difficulty.label}),(0,t.jsx)("div",{children:(0,t.jsx)(x.f,{size:"md",value:e.difficultyStars,onChange:e=>s({difficultyStars:e})})})]})]})}var j=e.i(141176),w=e.i(515288),b=e.i(967489);function k({data:e,onChange:r}){let{t:s}=(0,d.b)();return(0,t.jsxs)(w.N,{children:[(0,t.jsx)(w.Y,{children:(0,t.jsx)(w.v,{children:s.editor.mistakeAnalysisTitle||"Mistake Analysis"})}),(0,t.jsxs)(w.O,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:s.editor.mistakeStatus||"Attempt Status"}),(0,t.jsxs)(b.d,{value:e.mistakeStatus||"unknown",onValueChange:e=>r({mistakeStatus:e}),children:[(0,t.jsx)(b.P,{children:(0,t.jsx)(b.U,{})}),(0,t.jsxs)(b.r,{children:[(0,t.jsx)(b.T,{value:"not_attempted",children:s.editor.mistakeStatuses?.notAttempted||"Not attempted"}),(0,t.jsx)(b.T,{value:"wrong_attempt",children:s.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt"}),(0,t.jsx)(b.T,{value:"unknown",children:s.editor.mistakeStatuses?.unknown||"Unknown"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:s.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(j.f,{value:e.wrongAnswerText||"",onChange:t=>r({wrongAnswerText:t,mistakeStatus:t.trim()?"wrong_attempt":e.mistakeStatus}),className:"min-h-[100px] font-mono text-sm",placeholder:s.editor.wrongAnswerPlaceholder||"Leave blank if no wrong answer is visible"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:s.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(j.f,{value:e.mistakeAnalysis||"",onChange:e=>r({mistakeAnalysis:e}),className:"min-h-[140px] font-mono text-sm",placeholder:s.editor.mistakeAnalysisPlaceholder||"Explain where and why the mistake happened"})]})]})]})}var N=e.i(511445),S=e.i(149704);function A({title:e,children:r,className:s}){return(0,t.jsxs)(w.N,{children:[(0,t.jsx)(w.Y,{children:(0,t.jsx)(w.v,{children:e})}),(0,t.jsx)(w.O,{className:s,children:r})]})}function T({data:e,children:r}){let{t:s}=(0,d.b)(),a={wrong_attempt:s.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt",not_attempted:s.editor.mistakeStatuses?.notAttempted||"Not attempted",unknown:s.editor.mistakeStatuses?.unknown||"Unknown"};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(A,{title:s.editor.preview?.question||"Question Preview",children:[(0,t.jsx)(N.f,{content:e.questionText}),(0,t.jsx)(S.f,{svg:e.figureSvg})]}),r,(0,t.jsx)(A,{title:s.editor.preview?.answer||"Answer Preview",children:(0,t.jsx)(N.f,{content:e.answerText})}),(0,t.jsx)(A,{title:s.editor.preview?.analysis||"Analysis Preview",children:(0,t.jsx)(N.f,{content:e.analysis})}),(0,t.jsxs)(A,{title:s.editor.preview?.mistakeAnalysis||"Mistake Analysis Preview",className:"space-y-3 text-sm",children:[(0,t.jsxs)("div",{className:"text-muted-foreground",children:[s.editor.mistakeStatus||"Attempt Status",s.common.colon,a[e.mistakeStatus]??a.unknown]}),e.wrongAnswerText&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:s.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(N.f,{content:e.wrongAnswerText})]}),e.mistakeAnalysis&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:s.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(N.f,{content:e.mistakeAnalysis})]})]})]})}var E=e.i(574041),I=e.i(215519),C=e.i(306831);e.i(676167);var _=e.i(952122),R=e.i(62825),V=e.i(664030),$=e.i(303163);e.s(["f",0,function({initialData:e,onSave:n,onCancel:l,imagePreview:x,initialSubjectId:g,aiTimeout:h}){let{timeZone:p}=(0,I.M)(),{t:b,language:N}=(0,d.b)(),[S,A]=(0,r.useState)({...e,wrongAnswerText:e.wrongAnswerText||"",mistakeAnalysis:e.mistakeAnalysis||"",mistakeStatus:e.mistakeStatus||"unknown",subjectId:g,gradeSemester:e.gradeSemester||""}),M=(0,r.useRef)(!1),O=e=>{"gradeSemester"in e&&(M.current=!0),A(t=>({...t,...e}))},{groups:z}=(0,V.f)(),L=(()=>{if(S.paperLevel)return S.paperLevel;let e="number"==typeof S.difficultyStars&&S.difficultyStars>=4?"b":"a";return z.find(t=>t.key===e&&t.isActive)?.id||""})(),G=S.paperLevel??L,[P,U]=(0,r.useState)(!1),[F,D]=(0,r.useState)(!1),[q,H]=(0,r.useState)(!1),[Q,B]=(0,r.useState)(void 0),[W,Z]=(0,r.useState)([]);(0,r.useEffect)(()=>{c.k.get("/api/notebooks").then(Z).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch notebooks",{error:e})),c.k.get("/api/user").then(e=>{if(H(!!e?.enableGeogebra),e){let t=function(e,t=C.J){return"ai"===e.gradeRecognitionMode?null:e.fixedGradeSemester?e.fixedGradeSemester:e.educationStage&&e.enrollmentYear?function(e,t,r=new Date,s="en",a=C.J){let i=(0,C.c)(r,a),n=i.getFullYear(),l=i.getMonth()+1,o=n-t,d="2nd";l>=9?(o+=1,d="1st"):d=l<2?"1st":"2nd";let c="zh"===s,u=c?"1st"===d?"上期":"下期":"1st"===d?"1st Semester":"2nd Semester",m=(c?{primary:["一年级","二年级","三年级","四年级","五年级","六年级"],junior_high:["初一","初二","初三"],senior_high:["高一","高二","高三"],university:["大一","大二","大三","大四"]}:{primary:["Grade 1","Grade 2","Grade 3","Grade 4","Grade 5","Grade 6"],junior_high:["Junior High Grade 1","Junior High Grade 2","Junior High Grade 3"],senior_high:["Senior High Grade 1","Senior High Grade 2","Senior High Grade 3"],university:["Freshman","Sophomore","Junior","Senior"]})[e]||[],f=`${o}`;if(f=o>0&&o<=m.length?m[o-1]:o>m.length?c?"已毕业":"Graduated":c?"学前":"Pre-school",!c)return`${f}, ${u}`;{let e="1st"===d?"上":"下";return`${f}${e}`}}(e.educationStage,e.enrollmentYear,new Date,"zh",t):null}(e,p);A(e=>e.gradeSemester||M.current?e:{...e,gradeSemester:t||""}),B(e.educationStage||void 0)}}).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch user info for grade calculation",{error:e}))},[N,p]);let J=async()=>{if(!S.questionText.trim())return void u.c.warning(b.editor.enterQuestionFirst||"Please enter question text first");U(!0);try{let e=function({questionText:e,language:t,subject:r,imagePreview:s,gradeSemester:a,subjectId:i}){let n={questionText:e,language:t,subject:r};return s&&(n.imageBase64=s),a&&(n.gradeSemester=a),i&&(n.subjectId=i),n}({questionText:S.questionText,language:N,subject:S.subject,imagePreview:x,gradeSemester:S.gradeSemester??void 0,subjectId:S.subjectId});m.V.info("[Reanswer]",e.imageBase64?"Sending image + text (image available for mistake analysis)":"Sending text only (no image available)",{timeout:h});let t=await c.k.post("/api/reanswer",e,{timeout:h||18e4,recoverable:!0});A(e=>({...e,answerText:t.answerText,analysis:t.analysis,knowledgePoints:t.knowledgePoints,wrongAnswerText:t.wrongAnswerText||"",mistakeAnalysis:t.mistakeAnalysis||"",mistakeStatus:(0,R.x)(t.mistakeStatus,t.wrongAnswerText),difficultyStars:t.difficultyStars??e.difficultyStars})),u.c.success(b.editor.reanswerSuccess||"✅ Answer and analysis updated!")}catch(s){let e,t,r;m.V.error("[CorrectionEditor]","Reanswer failed",{error:s}),u.c.error((e=(0,$.d)(s)||"",r=(t=b.errors?.reanswer||{}).default||"Reanswer failed",e.includes("AI_AUTH_ERROR")?t.authError||b.errors?.AI_AUTH_ERROR||r:e.includes("AI_CONNECTION_FAILED")?t.connectionFailed||b.errors?.AI_CONNECTION_FAILED||r:e.includes("AI_RESPONSE_ERROR")&&(t.responseError||b.errors?.AI_RESPONSE_ERROR)||r))}finally{U(!1)}},Y=async()=>{if(!S.subjectId)return void u.c.warning(b.editor.messages?.selectNotebook||"Please select a notebook");if(!F){D(!0);try{await n({...S,paperLevel:G,mistakeStatus:(0,R.x)(S.mistakeStatus,S.wrongAnswerText)})}finally{D(!1)}}},X=b.editor.placeholder||"Supports Markdown and LaTeX...",K=(0,_.f)(W.find(e=>e.id===S.subjectId)?.name||null)||(0,_.f)(S.subject||null)||void 0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold",children:b.editor.title}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o.f,{variant:"outline",onClick:l,children:b.editor.cancel}),(0,t.jsxs)(o.f,{onClick:Y,disabled:F,children:[F?(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(i.f,{className:"mr-2 h-4 w-4"}),F?b.common?.pleaseWait||"Please wait...":b.editor.save]})]})]}),(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-6",children:[x&&(0,t.jsx)(w.N,{children:(0,t.jsx)(w.O,{className:"p-4",children:(0,t.jsx)("img",{src:x,alt:"Original",className:"w-full rounded-md"})})}),(0,t.jsx)(y,{data:S,paperLevel:G,onChange:O}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:b.editor.question}),(0,t.jsx)(j.f,{value:S.questionText,onChange:e=>O({questionText:e}),className:"min-h-[150px] font-mono text-sm",placeholder:X}),(0,t.jsx)(o.f,{variant:"default",size:"sm",onClick:J,disabled:P||!S.questionText.trim(),className:"w-full bg-gradient-to-r from-indigo-600 to-violet-500 hover:from-indigo-700 hover:to-violet-600 text-white font-medium",children:P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4 animate-spin"}),b.editor.reanswering||"AI solving..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.f,{className:"mr-2 h-4 w-4"}),b.editor.reanswer||"🔄 Reanswer (based on corrected question)"]})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:b.editor.reanswerHint||"💡 If the question was misrecognized, correct it and click to regenerate answer"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:b.editor.tags}),(0,t.jsx)(E.f,{value:S.knowledgePoints,onChange:e=>O({knowledgePoints:e}),placeholder:b.editor.tagsPlaceholder||"Enter knowledge tags...",enterHint:b.editor.createTagHint,subject:K,gradeStage:Q}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:b.editor.tagsHint||"💡 Tag suggestions will appear as you type"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:b.editor.answer}),(0,t.jsx)(j.f,{value:S.answerText,onChange:e=>O({answerText:e}),className:"min-h-[100px] font-mono text-sm",placeholder:X})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:b.editor.analysis}),(0,t.jsx)(j.f,{value:S.analysis,onChange:e=>O({analysis:e}),className:"min-h-[200px] font-mono text-sm",placeholder:X})]}),(0,t.jsx)(k,{data:S,onChange:O})]}),(0,t.jsx)(T,{data:S,children:q&&(0,t.jsx)(f,{data:S,onChange:O})})]})]})}],866531);var M=e.i(853138),O=e.i(263676);e.s(["f",0,function({message:e,onDismiss:r}){let{t:s}=(0,d.b)();return e?(0,t.jsxs)("div",{role:"alert",className:"flex items-start gap-3 rounded-xl border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive",children:[(0,t.jsx)(M.f,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0"}),(0,t.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:e}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":s.common.close,className:"shrink-0 rounded p-1 hover:bg-destructive/10",children:(0,t.jsx)(O.X,{"aria-hidden":"true",className:"h-4 w-4"})})]}):null}],497346);var z=e.i(618566);function L(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}function G(e,t){if("string"!=typeof e||!/^(QUESTION_SAVE_|AI_)[A-Z_]+$/.test(e))return;let r=t.errors[e];return"string"==typeof r?r:void 0}e.s(["f",0,function(e){let{t}=(0,d.b)(),s=(0,z.useRouter)(),[a,i]=(0,r.useState)(null),n=async(r,a,n=!0)=>{i(null);try{let e=await r();return u.c.success(e.duplicate?t.importFlow.duplicate:t.common.messages.saveSuccess),n&&(e.duplicate?s.push(`/error-items/${e.id}`):a&&s.push(`/notebooks/${a}`)),!0}catch(s){m.V.error(e,"Save failed",{errorMessage:(0,$.d)(s)??(0,$.Z)(s)});let r=function(e,t){let r=L(e),s=L(r?.data),a="number"==typeof r?.status?r.status:void 0,i=(0,$.d)(e),n=G(i,t)??G(s?.code,t),l={400:t.errors.QUESTION_SAVE_INVALID_INPUT,401:t.errors.QUESTION_SAVE_UNAUTHORIZED,403:t.errors.QUESTION_SAVE_FORBIDDEN,408:t.errors.QUESTION_SAVE_TIMEOUT,409:t.errors.QUESTION_SAVE_CONFLICT,413:t.errors.QUESTION_SAVE_TOO_LARGE,429:t.errors.QUESTION_SAVE_RATE_LIMITED,502:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,503:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,504:t.errors.QUESTION_SAVE_TIMEOUT},o=n??(a?l[a]:void 0)??t.errors.QUESTION_SAVE_FAILED;!a&&(e instanceof TypeError||/fetch|network|load failed/i.test((0,$.Z)(e)))&&(o=t.errors.QUESTION_SAVE_NETWORK_ERROR);let d=L(s?.details);if("QUESTION_SAVE_GRADE_FAILED"===i){let e=G(d?.reason,t);e&&(o+=`
|
|
6
|
+
Defaulting to \`null\`.`}d(p,"defaultGetValueLabel"),d(v,"getProgressState"),d(y,"isNumber"),d(j,"isValidMaxNumber"),d(w,"isValidValueNumber"),d(b,"getInvalidMaxError"),d(k,"getInvalidValueError");var N=e.i(975157);let S=i.forwardRef(({className:e,value:t,...r},s)=>(0,a.jsx)(g,{ref:s,value:t,className:(0,N.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:(0,a.jsx)(h,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));S.displayName=g.displayName,e.s(["f",0,S],168148)},856522,e=>{var t=e.i(456420);let r={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],856522)},866531,497346,752012,e=>{var t=e.i(843476),r=e.i(271645),s=e.i(632781),a=e.i(741120),i=e.i(856522),n=e.i(314381),l=e.i(3198),o=e.i(519455),d=e.i(111110),c=e.i(41931),u=e.i(294114),m=e.i(201276);function f({data:e,onChange:a}){let{t:i}=(0,d.b)(),[x,g]=(0,r.useState)(!1),[h,p]=(0,r.useState)(null),v=async()=>{if(!e.questionText.trim())return void u.c.warning(i.editor.enterQuestionFirst||"Please enter question text first");if(!e.answerText.trim())return void u.c.warning(i.geogebra.answerRequired);g(!0),p(null);try{let t=await c.k.post("/api/geogebra-analyze",{questionText:e.questionText,answerText:e.answerText,analysis:e.analysis},{timeout:18e4,recoverable:!0});t.suitable&&t.commands&&t.commands.length>0?a({geogebraCommands:JSON.stringify(t.commands)}):p(t.description||i.geogebra.notSuitable)}catch(e){m.V.error("[CorrectionEditor]","GeoGebra analysis failed",{error:e}),p(i.geogebra.analyzeFailed)}finally{g(!1)}};return e.geogebraCommands?(0,t.jsx)(l.f,{commands:e.geogebraCommands,height:350,onRegenerate:v,onDelete:async()=>a({geogebraCommands:void 0})}):e.questionText.trim()&&e.answerText.trim()?(0,t.jsxs)("div",{className:"rounded-lg border border-dashed p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(n.f,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:i.geogebra.title})]}),(0,t.jsx)(o.f,{variant:"outline",size:"sm",onClick:v,disabled:x,children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4 animate-spin"}),i.geogebra.analyzing]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.f,{className:"mr-2 h-4 w-4"}),i.geogebra.generate]})})]}),h&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:h}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:i.geogebra.hint})]}):null}var x=e.i(469937),g=e.i(28342),h=e.i(438465),p=e.i(674166),v=e.i(110204);function y({data:e,paperLevel:r,onChange:s}){let{t:a}=(0,d.b)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.selectNotebook||"Select Notebook"}),(0,t.jsx)(h.f,{value:e.subjectId,onChange:e=>s({subjectId:e})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{htmlFor:"correction-grade-semester",children:a.editor.gradeSemester||"Grade/Semester"}),(0,t.jsx)(g.f,{id:"correction-grade-semester",value:e.gradeSemester||"",onChange:e=>s({gradeSemester:e})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.paperLevel||"Paper Level"}),(0,t.jsx)(p.f,{value:r,onChange:e=>s({paperLevel:e})})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.difficulty.label}),(0,t.jsx)("div",{children:(0,t.jsx)(x.f,{size:"md",value:e.difficultyStars,onChange:e=>s({difficultyStars:e})})})]})]})}var j=e.i(141176),w=e.i(515288),b=e.i(967489);function k({data:e,onChange:r}){let{t:s}=(0,d.b)();return(0,t.jsxs)(w.N,{children:[(0,t.jsx)(w.Y,{children:(0,t.jsx)(w.v,{children:s.editor.mistakeAnalysisTitle||"Mistake Analysis"})}),(0,t.jsxs)(w.O,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:s.editor.mistakeStatus||"Attempt Status"}),(0,t.jsxs)(b.d,{value:e.mistakeStatus||"unknown",onValueChange:e=>r({mistakeStatus:e}),children:[(0,t.jsx)(b.P,{children:(0,t.jsx)(b.U,{})}),(0,t.jsxs)(b.r,{children:[(0,t.jsx)(b.T,{value:"not_attempted",children:s.editor.mistakeStatuses?.notAttempted||"Not attempted"}),(0,t.jsx)(b.T,{value:"wrong_attempt",children:s.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt"}),(0,t.jsx)(b.T,{value:"unknown",children:s.editor.mistakeStatuses?.unknown||"Unknown"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:s.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(j.f,{value:e.wrongAnswerText||"",onChange:t=>r({wrongAnswerText:t,mistakeStatus:t.trim()?"wrong_attempt":e.mistakeStatus}),className:"min-h-[100px] font-mono text-sm",placeholder:s.editor.wrongAnswerPlaceholder||"Leave blank if no wrong answer is visible"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:s.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(j.f,{value:e.mistakeAnalysis||"",onChange:e=>r({mistakeAnalysis:e}),className:"min-h-[140px] font-mono text-sm",placeholder:s.editor.mistakeAnalysisPlaceholder||"Explain where and why the mistake happened"})]})]})]})}var N=e.i(511445),S=e.i(149704);function A({title:e,children:r,className:s}){return(0,t.jsxs)(w.N,{children:[(0,t.jsx)(w.Y,{children:(0,t.jsx)(w.v,{children:e})}),(0,t.jsx)(w.O,{className:s,children:r})]})}function T({data:e,children:r}){let{t:s}=(0,d.b)(),a={wrong_attempt:s.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt",not_attempted:s.editor.mistakeStatuses?.notAttempted||"Not attempted",unknown:s.editor.mistakeStatuses?.unknown||"Unknown"};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(A,{title:s.editor.preview?.question||"Question Preview",children:[(0,t.jsx)(N.f,{content:e.questionText}),(0,t.jsx)(S.f,{svg:e.figureSvg})]}),r,(0,t.jsx)(A,{title:s.editor.preview?.answer||"Answer Preview",children:(0,t.jsx)(N.f,{content:e.answerText})}),(0,t.jsx)(A,{title:s.editor.preview?.analysis||"Analysis Preview",children:(0,t.jsx)(N.f,{content:e.analysis})}),(0,t.jsxs)(A,{title:s.editor.preview?.mistakeAnalysis||"Mistake Analysis Preview",className:"space-y-3 text-sm",children:[(0,t.jsxs)("div",{className:"text-muted-foreground",children:[s.editor.mistakeStatus||"Attempt Status",s.common.colon,a[e.mistakeStatus]??a.unknown]}),e.wrongAnswerText&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:s.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(N.f,{content:e.wrongAnswerText})]}),e.mistakeAnalysis&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:s.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(N.f,{content:e.mistakeAnalysis})]})]})]})}var E=e.i(574041),I=e.i(215519),C=e.i(306831);e.i(676167);var _=e.i(952122),R=e.i(62825),V=e.i(664030),$=e.i(303163);e.s(["f",0,function({initialData:e,onSave:n,onCancel:l,imagePreview:x,initialSubjectId:g,aiTimeout:h}){let{timeZone:p}=(0,I.M)(),{t:b,language:N}=(0,d.b)(),[S,A]=(0,r.useState)({...e,wrongAnswerText:e.wrongAnswerText||"",mistakeAnalysis:e.mistakeAnalysis||"",mistakeStatus:e.mistakeStatus||"unknown",subjectId:g,gradeSemester:e.gradeSemester||""}),M=(0,r.useRef)(!1),O=e=>{"gradeSemester"in e&&(M.current=!0),A(t=>({...t,...e}))},{groups:z}=(0,V.f)(),L=(()=>{if(S.paperLevel)return S.paperLevel;let e="number"==typeof S.difficultyStars&&S.difficultyStars>=4?"b":"a";return z.find(t=>t.key===e&&t.isActive)?.id||""})(),G=S.paperLevel??L,[P,U]=(0,r.useState)(!1),[F,D]=(0,r.useState)(!1),[q,H]=(0,r.useState)(!1),[Q,B]=(0,r.useState)(void 0),[W,Z]=(0,r.useState)([]);(0,r.useEffect)(()=>{c.k.get("/api/notebooks").then(Z).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch notebooks",{error:e})),c.k.get("/api/user").then(e=>{if(H(!!e?.enableGeogebra),e){let t=function(e,t=C.J){return"ai"===e.gradeRecognitionMode?null:e.fixedGradeSemester?e.fixedGradeSemester:e.educationStage&&e.enrollmentYear?function(e,t,r=new Date,s="en",a=C.J){let i=(0,C.c)(r,a),n=i.getFullYear(),l=i.getMonth()+1,o=n-t,d="2nd";l>=9?(o+=1,d="1st"):d=l<2?"1st":"2nd";let c="zh"===s,u=c?"1st"===d?"上期":"下期":"1st"===d?"1st Semester":"2nd Semester",m=(c?{primary:["一年级","二年级","三年级","四年级","五年级","六年级"],junior_high:["初一","初二","初三"],senior_high:["高一","高二","高三"],university:["大一","大二","大三","大四"]}:{primary:["Grade 1","Grade 2","Grade 3","Grade 4","Grade 5","Grade 6"],junior_high:["Junior High Grade 1","Junior High Grade 2","Junior High Grade 3"],senior_high:["Senior High Grade 1","Senior High Grade 2","Senior High Grade 3"],university:["Freshman","Sophomore","Junior","Senior"]})[e]||[],f=`${o}`;if(f=o>0&&o<=m.length?m[o-1]:o>m.length?c?"已毕业":"Graduated":c?"学前":"Pre-school",!c)return`${f}, ${u}`;{let e="1st"===d?"上":"下";return`${f}${e}`}}(e.educationStage,e.enrollmentYear,new Date,"zh",t):null}(e,p);A(e=>e.gradeSemester||M.current?e:{...e,gradeSemester:t||""}),B(e.educationStage||void 0)}}).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch user info for grade calculation",{error:e}))},[N,p]);let J=async()=>{if(!S.questionText.trim())return void u.c.warning(b.editor.enterQuestionFirst||"Please enter question text first");U(!0);try{let e=function({questionText:e,language:t,subject:r,imagePreview:s,gradeSemester:a,subjectId:i}){let n={questionText:e,language:t,subject:r};return s&&(n.imageBase64=s),a&&(n.gradeSemester=a),i&&(n.subjectId=i),n}({questionText:S.questionText,language:N,subject:S.subject,imagePreview:x,gradeSemester:S.gradeSemester??void 0,subjectId:S.subjectId});m.V.info("[Reanswer]",e.imageBase64?"Sending image + text (image available for mistake analysis)":"Sending text only (no image available)",{timeout:h});let t=await c.k.post("/api/reanswer",e,{timeout:h||18e4,recoverable:!0});A(e=>({...e,answerText:t.answerText,analysis:t.analysis,knowledgePoints:t.knowledgePoints,wrongAnswerText:t.wrongAnswerText||"",mistakeAnalysis:t.mistakeAnalysis||"",mistakeStatus:(0,R.x)(t.mistakeStatus,t.wrongAnswerText),difficultyStars:t.difficultyStars??e.difficultyStars})),u.c.success(b.editor.reanswerSuccess||"✅ Answer and analysis updated!")}catch(s){let e,t,r;m.V.error("[CorrectionEditor]","Reanswer failed",{error:s}),u.c.error((e=(0,$.d)(s)||"",r=(t=b.errors?.reanswer||{}).default||"Reanswer failed",e.includes("AI_AUTH_ERROR")?t.authError||b.errors?.AI_AUTH_ERROR||r:e.includes("AI_CONNECTION_FAILED")?t.connectionFailed||b.errors?.AI_CONNECTION_FAILED||r:e.includes("AI_RESPONSE_ERROR")&&(t.responseError||b.errors?.AI_RESPONSE_ERROR)||r))}finally{U(!1)}},Y=async()=>{if(!S.subjectId)return void u.c.warning(b.editor.messages?.selectNotebook||"Please select a notebook");if(!F){D(!0);try{await n({...S,paperLevel:G,mistakeStatus:(0,R.x)(S.mistakeStatus,S.wrongAnswerText)})}finally{D(!1)}}},X=b.editor.placeholder||"Supports Markdown and LaTeX...",K=(0,_.f)(W.find(e=>e.id===S.subjectId)?.name||null)||(0,_.f)(S.subject||null)||void 0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold",children:b.editor.title}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o.f,{variant:"outline",onClick:l,children:b.editor.cancel}),(0,t.jsxs)(o.f,{onClick:Y,disabled:F,children:[F?(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(i.f,{className:"mr-2 h-4 w-4"}),F?b.common?.pleaseWait||"Please wait...":b.editor.save]})]})]}),(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-6",children:[x&&(0,t.jsx)(w.N,{children:(0,t.jsx)(w.O,{className:"p-4",children:(0,t.jsx)("img",{src:x,alt:"Original",className:"w-full rounded-md"})})}),(0,t.jsx)(y,{data:S,paperLevel:G,onChange:O}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:b.editor.question}),(0,t.jsx)(j.f,{value:S.questionText,onChange:e=>O({questionText:e}),className:"min-h-[150px] font-mono text-sm",placeholder:X}),(0,t.jsx)(o.f,{variant:"default",size:"sm",onClick:J,disabled:P||!S.questionText.trim(),className:"w-full bg-gradient-to-r from-indigo-600 to-violet-500 hover:from-indigo-700 hover:to-violet-600 text-white font-medium",children:P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.f,{className:"mr-2 h-4 w-4 animate-spin"}),b.editor.reanswering||"AI solving..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.f,{className:"mr-2 h-4 w-4"}),b.editor.reanswer||"🔄 Reanswer (based on corrected question)"]})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:b.editor.reanswerHint||"💡 If the question was misrecognized, correct it and click to regenerate answer"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:b.editor.tags}),(0,t.jsx)(E.f,{value:S.knowledgePoints,onChange:e=>O({knowledgePoints:e}),placeholder:b.editor.tagsPlaceholder||"Enter knowledge tags...",enterHint:b.editor.createTagHint,subject:K,gradeStage:Q}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:b.editor.tagsHint||"💡 Tag suggestions will appear as you type"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:b.editor.answer}),(0,t.jsx)(j.f,{value:S.answerText,onChange:e=>O({answerText:e}),className:"min-h-[100px] font-mono text-sm",placeholder:X})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:b.editor.analysis}),(0,t.jsx)(j.f,{value:S.analysis,onChange:e=>O({analysis:e}),className:"min-h-[200px] font-mono text-sm",placeholder:X})]}),(0,t.jsx)(k,{data:S,onChange:O})]}),(0,t.jsx)(T,{data:S,children:q&&(0,t.jsx)(f,{data:S,onChange:O})})]})]})}],866531);var M=e.i(853138),O=e.i(263676);e.s(["f",0,function({message:e,onDismiss:r}){let{t:s}=(0,d.b)();return e?(0,t.jsxs)("div",{role:"alert",className:"flex items-start gap-3 rounded-xl border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive",children:[(0,t.jsx)(M.f,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0"}),(0,t.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:e}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":s.common.close,className:"shrink-0 rounded p-1 hover:bg-destructive/10",children:(0,t.jsx)(O.X,{"aria-hidden":"true",className:"h-4 w-4"})})]}):null}],497346);var z=e.i(618566);function L(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}function G(e,t){if("string"!=typeof e||!/^(QUESTION_SAVE_|AI_)[A-Z_]+$/.test(e))return;let r=t.errors[e];return"string"==typeof r?r:void 0}e.s(["f",0,function(e){let{t}=(0,d.b)(),s=(0,z.useRouter)(),[a,i]=(0,r.useState)(null),n=async(r,a,n=!0)=>{i(null);try{let e=await r();return u.c.success(e.duplicate?t.importFlow.duplicate:t.common.messages.saveSuccess),n&&(e.duplicate?s.push(`/error-items/${e.id}`):a&&s.push(`/notebooks/${a}`)),!0}catch(s){m.V.error(e,"Save failed",{errorMessage:(0,$.d)(s)??(0,$.Z)(s)});let r=function(e,t){let r=L(e),s=L(r?.data),a="number"==typeof r?.status?r.status:void 0,i=(0,$.d)(e),n=G(i,t)??G(s?.code,t),l={400:t.errors.QUESTION_SAVE_INVALID_INPUT,401:t.errors.QUESTION_SAVE_UNAUTHORIZED,403:t.errors.QUESTION_SAVE_FORBIDDEN,408:t.errors.QUESTION_SAVE_TIMEOUT,409:t.errors.QUESTION_SAVE_CONFLICT,413:t.errors.QUESTION_SAVE_TOO_LARGE,429:t.errors.QUESTION_SAVE_RATE_LIMITED,502:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,503:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,504:t.errors.QUESTION_SAVE_TIMEOUT},o=n??(a?l[a]:void 0)??t.errors.QUESTION_SAVE_FAILED;!a&&(e instanceof TypeError||/fetch|network|load failed/i.test((0,$.Z)(e)))&&(o=t.errors.QUESTION_SAVE_NETWORK_ERROR);let d=L(s?.details);if("QUESTION_SAVE_GRADE_FAILED"===i){let e=G(d?.reason,t);e&&(o+=`
|
|
7
7
|
${e}`)}return 400===a&&(o+=(function(e,t){if(!Array.isArray(e))return[];let r={questionText:t.editor.question,answerText:t.editor.answer,analysis:t.editor.analysis,wrongAnswerText:t.editor.wrongAnswerText,mistakeAnalysis:t.editor.mistakeAnalysis,knowledgePoints:t.editor.tags,subjectId:t.editor.selectNotebook,gradeSemester:t.editor.gradeSemester,paperLevel:t.editor.paperLevel};return e.slice(0,3).flatMap(e=>{let s=L(e),a=s?.path,i=Array.isArray(a)&&"string"==typeof a[0]?r[a[0]]:void 0;if(!i)return[];let n=s?.maximum,l=t.questionSave.invalidField;return s?.code==="too_big"&&"number"==typeof n&&Number.isSafeInteger(n)&&n>=0&&(l="array"===s.origin?t.questionSave.tooMany:t.questionSave.tooLong),[l.replace("{field}",i).replace("{maximum}",String(n))]})})(s?.details,t).map(e=>`
|
|
8
8
|
${e}`).join("")),"string"==typeof d?.databaseCode&&/^P\d{4}$/.test(d.databaseCode)&&(o+=`
|
|
9
|
-
${t.questionSave.databaseCode.replace("{code}",d.databaseCode)}`),a&&(o+=` (HTTP ${a})`),o}(s,t);return i(r),"AI_DAILY_LIMIT_EXCEEDED"!==(0,$.d)(s)&&u.c.error(r),!1}};return{saveError:a,setSaveError:i,dismissSaveError:()=>i(null),run:n}}],752012)},469937,62825,e=>{var t=e.i(843476),r=e.i(456420);let s={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};s.node;let a=(0,r.f)(s);var i=e.i(111110),n=e.i(975157);let l=[1,2,3,4,5];function o(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["f",0,function({value:e,onChange:r,disabled:s,size:o="sm",showUnrated:d=!0,className:c}){let{t:u}=(0,i.b)(),m=e??0,f="sm"===o?"h-3.5 w-3.5":"h-5 w-5",x=m?u.difficulty.starsLabel.replace("{n}",String(m)):u.difficulty.unrated;return r?(0,t.jsxs)("span",{className:(0,n.f)("inline-flex items-center gap-0.5",c),role:"group","aria-label":`${u.difficulty.label}${u.common.colon}${x}`,title:u.difficulty.clearHint,children:[l.map(e=>(0,t.jsx)("button",{type:"button",disabled:s,onClick:()=>r(e===m?null:e),"aria-label":u.difficulty.setStars.replace("{n}",String(e)),"aria-pressed":e<=m,className:"rounded p-0.5 hover:bg-muted disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(a,{className:(0,n.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/40")})},e)),!m&&d&&(0,t.jsx)("span",{className:"ml-1 text-xs text-muted-foreground",children:u.difficulty.unrated})]}):m?(0,t.jsx)("span",{className:(0,n.f)("inline-flex items-center",c),role:"img","aria-label":`${u.difficulty.label}${u.common.colon}${x}`,title:x,children:l.map(e=>(0,t.jsx)(a,{className:(0,n.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/30"),"aria-hidden":!0},e))}):d?(0,t.jsx)("span",{className:(0,n.f)("text-xs text-muted-foreground",c),children:u.difficulty.unrated}):null}],469937),e.s(["i",0,function(e,t="zh"){return("en"===t?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[o(e)]},"h",0,o,"x",0,function(e,t){return(t||"").trim()?"wrong_attempt":o(e)}],62825)},731335,579321,927904,e=>{var t=e.i(843476),r=e.i(399847),s=e.i(551757),a=e.i(456420);let i={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};i.node;let n=(0,a.f)(i);var l=e.i(632781),o=e.i(615568),d=e.i(487486),c=e.i(519455),u=e.i(168148),m=e.i(111110),f=e.i(215519),x=e.i(306831);let g=["read","convert","crop","compress","upload"],h=["receive","analyze","save"];function p(e){if(!Number.isFinite(e)||e<0)return"-";if(e<1e3)return`${Math.round(e)}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(+(t<10))}s`;let r=Math.round(t);return`${Math.floor(r/60)}:${String(r%60).padStart(2,"0")}`}var v=e.i(975157);let y={analyzing:50,saving:90},j={analyzing:l.f,saving:l.f,review:o.f,saved:s.f,failed:r.f};e.s(["f",0,function({task:e,now:r,onReview:s,onViewItem:a,onRetry:i,onDiscard:l}){let{t:o}=(0,m.b)(),{timeZone:w}=(0,f.M)(),b=j[e.status],k="analyzing"===e.status||"saving"===e.status,N=o.errors,S=e.error?"string"==typeof N[e.error]?N[e.error]:e.error:null,A=function(e){let t=[];for(let r of g){let s=e?.client?.[r];"number"==typeof s&&t.push({stage:r,ms:s})}for(let r of h){let s=e?.server?.[r];"number"==typeof s&&t.push({stage:r,ms:s})}return t}(e.timings),T=k&&r?r-Date.parse(e.createdAt):null;return(0,t.jsxs)("div",{className:(0,v.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-task-card","data-status":e.status,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(b,{className:(0,v.f)("mt-0.5 h-4 w-4 shrink-0",k&&"animate-spin text-primary","saved"===e.status&&"text-green-600","failed"===e.status&&"text-destructive","review"===e.status&&"text-primary")}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:o.importTasks.status[e.status]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:o.importTasks.mode[e.mode]}),e.unread&&(0,t.jsx)(d.f,{children:o.importTasks.unread})]}),k&&(0,t.jsx)(u.f,{value:y[e.status],"aria-label":o.importTasks.stageEstimate,"aria-valuetext":o.common.progress.estimated.replace("{percent}",String(y[e.status])),className:"h-1.5"}),e.excerpt&&(0,t.jsx)("p",{className:"break-words text-muted-foreground",children:e.excerpt}),"saved"===e.status&&!e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:o.importTasks.itemDeleted}),"saved"===e.status&&e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:e.duplicate?o.importTasks.duplicateSaved:o.importTasks.savedTo.replace("{notebook}",e.notebookName||"-").replace("{id}",e.errorItemShortId||"-")}),S&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:S}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(n,{className:"h-3 w-3"}),o.importTasks.createdAt.replace("{time}",(0,x.r)(e.createdAt,"MM-dd HH:mm",w))]}),null!==T&&(0,t.jsx)("span",{children:o.importTasks.elapsed.replace("{time}",p(T))}),e.attempts>1&&(0,t.jsx)("span",{children:o.importTasks.attempts.replace("{count}",String(e.attempts))})]}),A.length>0&&(0,t.jsx)("ul",{className:"flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground tabular-nums","aria-label":"timings",children:A.map(({stage:e,ms:r})=>(0,t.jsxs)("li",{children:[o.importTasks.timings[e]," ",p(r)]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===e.status&&s&&(0,t.jsx)(c.f,{size:"sm",onClick:s,children:o.importTasks.continueReview}),"saved"===e.status&&e.errorItemId&&a&&(0,t.jsx)(c.f,{size:"sm",variant:"outline",onClick:a,children:o.importTasks.viewItem}),"failed"===e.status&&i&&(0,t.jsx)(c.f,{size:"sm",onClick:i,children:o.importTasks.retry}),"saving"!==e.status&&"saved"!==e.status&&l&&(0,t.jsx)(c.f,{size:"sm",variant:"ghost",onClick:l,children:o.importTasks.discard})]})]})}],731335);var w=e.i(618566),b=e.i(61425),k=e.i(294114),N=e.i(201276),S=e.i(116331);e.s(["f",0,function(e){let{t}=(0,m.b)(),r=(0,w.useRouter)(),s=e=>{e.unread&&(0,S.N)(e.id).catch(e=>N.V.warn("[ImportTasks]","Mark read failed",{error:e}))};return{openReview:e=>{s(e),r.push(`/import-tasks/${e.id}`)},viewItem:e=>{e.errorItemId&&(s(e),r.push(`/error-items/${e.errorItemId}`))},markRead:s,retry:async r=>{try{await (0,S.R)(r.id),k.c.info(t.importTasks.retried)}catch(e){k.c.error((0,b.f)(e,t))}e?.()},discard:async r=>{if(!await (0,k.u)(t.importTasks.discardConfirm))return!1;let s=!1;try{await (0,S.x)(r.id),k.c.success(t.importTasks.discarded),s=!0}catch(e){k.c.error((0,b.f)(e,t))}return e?.(),s}}}],579321);var A=e.i(271645);e.s(["f",0,function(e,t=1e3){let[r,s]=(0,A.useState)(()=>Date.now());return(0,A.useEffect)(()=>{if(!e)return;let r=setInterval(()=>s(Date.now()),t);return()=>clearInterval(r)},[e,t]),r}],927904)},141176,e=>{var t=e.i(843476),r=e.i(271645),s=e.i(456420);let a={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};a.node;let i=(0,s.f)(a);var n=e.i(772382),l=e.i(511445),o=e.i(624687),d=e.i(111110),c=e.i(975157);e.s(["f",0,function({value:e,onChange:s,className:a,...u}){let{t:m}=(0,d.b)(),[f,x]=(0,r.useState)("source"),g=(0,r.useId)(),h=[{mode:"source",label:m.markdownEditor.source,icon:i},{mode:"preview",label:m.markdownEditor.preview,icon:n.f}];return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{role:"tablist","aria-label":m.markdownEditor.modeLabel,className:"flex justify-end",children:(0,t.jsx)("div",{className:"inline-flex rounded-md border bg-muted/40 p-0.5",children:h.map(({mode:e,label:r,icon:s})=>(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":f===e,"aria-controls":g,onClick:()=>x(e),className:(0,c.f)("flex items-center gap-1 rounded px-2.5 py-1 text-xs transition-colors",f===e?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5"}),r]},e))})}),(0,t.jsx)("div",{id:g,role:"tabpanel",children:"source"===f?(0,t.jsx)(o.f,{value:e,onChange:e=>s(e.target.value),className:a,...u}):(0,t.jsx)("div",{className:"min-h-24 cursor-text rounded-md border bg-muted/20 px-3 py-2",onDoubleClick:()=>x("source"),title:m.markdownEditor.doubleClickToEdit,children:e.trim()?(0,t.jsx)(l.f,{content:e}):(0,t.jsx)("p",{className:"text-sm italic text-muted-foreground",children:m.markdownEditor.empty})})})]})}],141176)},438465,674166,e=>{var t=e.i(843476),r=e.i(271645),s=e.i(967489),a=e.i(856423),i=e.i(41931),n=e.i(201276),l=e.i(111110);e.s(["f",0,function({value:e,onChange:o,className:d}){let[c,u]=(0,r.useState)([]),{t:m}=(0,l.b)();return(0,r.useEffect)(()=>{(async()=>{try{let e=await i.k.get("/api/notebooks");u(e)}catch(e){n.V.error("[NotebookSelector]","Failed to fetch notebooks",{error:e})}})()},[]),(0,t.jsxs)(s.d,{value:e,onValueChange:o,children:[(0,t.jsx)(s.P,{className:d,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)(s.U,{placeholder:m.notebooks?.selector?.placeholder||"Select Notebook"})]})}),(0,t.jsx)(s.r,{children:0===c.length?(0,t.jsx)("div",{className:"p-2 text-sm text-muted-foreground text-center",children:m.notebooks?.selector?.empty||"No notebooks available"}):c.map(e=>(0,t.jsx)(s.T,{value:e.id,children:e.name},e.id))})]})}],438465);var o=e.i(664030);e.s(["f",0,function({value:e,onChange:r,disabled:a}){let{groups:i,loading:n}=(0,o.f)(),l=i.filter(e=>e.isActive);return(0,t.jsxs)(s.d,{value:e,onValueChange:r,disabled:a||n,children:[(0,t.jsx)(s.P,{children:(0,t.jsx)(s.U,{placeholder:"选择卷别"})}),(0,t.jsx)(s.r,{children:l.map(e=>(0,t.jsx)(s.T,{value:e.id,children:e.name},e.id))})]})}],674166)},149704,e=>{var t=e.i(843476),r=e.i(111110),s=e.i(398019),a=e.i(184110),i=e.i(975157);let n={left:"mr-auto",center:"mx-auto",right:"ml-auto"};e.s(["f",0,function({svg:e,scale:l,align:o,className:d}){let{t:c}=(0,r.b)();if(!e)return null;let u=(0,a.V)(l),m=(0,a.o)(o);return(0,t.jsx)("figure",{className:(0,i.f)("question-figure my-3",d),children:(0,t.jsx)("img",{src:(0,s.f)(e),alt:c.figure.alt,className:(0,i.f)(n[m],"block h-auto max-w-full rounded border bg-white p-2"),style:{..."left"===m?{marginLeft:0,marginRight:"auto"}:"right"===m?{marginLeft:"auto",marginRight:0}:{},maxHeight:360,zoom:u/100,maxWidth:`${Math.min(u,100)}%`}})})}])},574041,e=>{var t=e.i(843476),r=e.i(271645),s=e.i(263676),a=e.i(487486),i=e.i(793479),n=e.i(41931),l=e.i(201276);e.s(["f",0,function({value:e=[],onChange:o,placeholder:d="Enter tags...",className:c="",enterHint:u,subject:m,gradeStage:f}){let[x,g]=(0,r.useState)(""),[h,p]=(0,r.useState)([]),[v,y]=(0,r.useState)(!1),[j,w]=(0,r.useState)(0),b=(0,r.useRef)(null),k=(0,r.useRef)(null),N=(0,r.useCallback)(async t=>{try{let r=new URLSearchParams({q:t});m&&r.append("subject",m),f&&r.append("stage",f);let s=((await n.k.get(`/api/tags/suggestions?${r.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));p(s.slice(0,20)),y(s.length>0),w(0)}catch(e){l.V.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[m,f,e]);(0,r.useEffect)(()=>{x.trim()&&N(x)},[x,N]);let S=t=>{t.trim()&&!e.includes(t.trim())&&(o([...e,t.trim()]),g(""),p([]),y(!1),w(0))},A=t=>{o(e.filter(e=>e!==t))};return(0,r.useEffect)(()=>{let e=e=>{!k.current||k.current.contains(e.target)||b.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)(a.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>A(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(s.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(i.f,{ref:b,type:"text",value:x,onChange:e=>{g(e.target.value),e.target.value.trim()||(p([]),y(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),j>=0&&h[j]?S(h[j]):x.trim()&&S(x)):"ArrowDown"===t.key?(t.preventDefault(),w(e=>Math.min(e+1,h.length-1))):"ArrowUp"===t.key?(t.preventDefault(),w(e=>Math.max(e-1,0))):"Escape"===t.key?(y(!1),w(0)):"Backspace"===t.key&&!x&&e.length>0&&A(e[e.length-1])},onFocus:()=>{h.length>0&&y(!0)},placeholder:0===e.length?d:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),v&&h.length>0&&(0,t.jsx)("div",{ref:k,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:h.map((e,r)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${r===j?"bg-accent":""}`,onClick:()=>S(e),onMouseEnter:()=>w(r),children:e},e))}),x&&!v&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} "${x}"`:`Press Enter to create "${x}"`})]})}])},184110,e=>{let t=["left","center","right"],r="center";function s(e){return"number"==typeof e&&Number.isInteger(e)&&e>=10&&e<=200}e.s(["E",0,r,"n",0,100,"j",0,t,"a",0,200,"_",0,10,"x",0,s,"o",0,function(e){return"string"==typeof e&&t.includes(e)?e:r},"V",0,function(e){return s(e)?e:100}])},398019,e=>{e.s(["f",0,function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}])},952122,e=>{e.i(306831),e.s(["f",0,function(e){if(!e)return null;let t=e.toLowerCase();return t.includes("math")||t.includes("数学")?"math":t.includes("physics")||t.includes("物理")?"physics":t.includes("chemistry")||t.includes("化学")?"chemistry":t.includes("biology")||t.includes("生物")?"biology":t.includes("english")||t.includes("英语")?"english":t.includes("chinese")||t.includes("语文")?"chinese":t.includes("history")||t.includes("历史")?"history":t.includes("geography")||t.includes("地理")?"geography":t.includes("politics")||t.includes("政治")?"politics":null}])}])})();
|
|
9
|
+
${t.questionSave.databaseCode.replace("{code}",d.databaseCode)}`),a&&(o+=` (HTTP ${a})`),o}(s,t);return i(r),"AI_DAILY_LIMIT_EXCEEDED"!==(0,$.d)(s)&&u.c.error(r),!1}};return{saveError:a,setSaveError:i,dismissSaveError:()=>i(null),run:n}}],752012)},469937,62825,e=>{var t=e.i(843476),r=e.i(456420);let s={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};s.node;let a=(0,r.f)(s);var i=e.i(111110),n=e.i(975157);let l=[1,2,3,4,5];function o(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["f",0,function({value:e,onChange:r,disabled:s,size:o="sm",showUnrated:d=!0,className:c}){let{t:u}=(0,i.b)(),m=e??0,f="sm"===o?"h-3.5 w-3.5":"h-5 w-5",x=m?u.difficulty.starsLabel.replace("{n}",String(m)):u.difficulty.unrated;return r?(0,t.jsxs)("span",{className:(0,n.f)("inline-flex items-center gap-0.5",c),role:"group","aria-label":`${u.difficulty.label}${u.common.colon}${x}`,title:u.difficulty.clearHint,children:[l.map(e=>(0,t.jsx)("button",{type:"button",disabled:s,onClick:()=>r(e===m?null:e),"aria-label":u.difficulty.setStars.replace("{n}",String(e)),"aria-pressed":e<=m,className:"rounded p-0.5 hover:bg-muted disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(a,{className:(0,n.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/40")})},e)),!m&&d&&(0,t.jsx)("span",{className:"ml-1 text-xs text-muted-foreground",children:u.difficulty.unrated})]}):m?(0,t.jsx)("span",{className:(0,n.f)("inline-flex items-center",c),role:"img","aria-label":`${u.difficulty.label}${u.common.colon}${x}`,title:x,children:l.map(e=>(0,t.jsx)(a,{className:(0,n.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/30"),"aria-hidden":!0},e))}):d?(0,t.jsx)("span",{className:(0,n.f)("text-xs text-muted-foreground",c),children:u.difficulty.unrated}):null}],469937),e.s(["i",0,function(e,t="zh"){return("en"===t?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[o(e)]},"h",0,o,"x",0,function(e,t){return(t||"").trim()?"wrong_attempt":o(e)}],62825)},731335,579321,927904,e=>{var t=e.i(843476),r=e.i(399847),s=e.i(551757),a=e.i(456420);let i={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};i.node;let n=(0,a.f)(i);var l=e.i(632781),o=e.i(615568),d=e.i(487486),c=e.i(519455),u=e.i(168148),m=e.i(111110),f=e.i(215519),x=e.i(306831);let g=["read","convert","crop","compress","upload"],h=["receive","analyze","save"];function p(e){if(!Number.isFinite(e)||e<0)return"-";if(e<1e3)return`${Math.round(e)}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(+(t<10))}s`;let r=Math.round(t);return`${Math.floor(r/60)}:${String(r%60).padStart(2,"0")}`}var v=e.i(975157);let y={analyzing:50,saving:90},j={analyzing:l.f,saving:l.f,review:o.f,saved:s.f,failed:r.f};e.s(["f",0,function({task:e,now:r,onReview:s,onViewItem:a,onRetry:i,onDiscard:l}){let{t:o}=(0,m.b)(),{timeZone:w}=(0,f.M)(),b=j[e.status],k="analyzing"===e.status||"saving"===e.status,N=o.errors,S=e.error?"string"==typeof N[e.error]?N[e.error]:e.error:null,A=function(e){let t=[];for(let r of g){let s=e?.client?.[r];"number"==typeof s&&t.push({stage:r,ms:s})}for(let r of h){let s=e?.server?.[r];"number"==typeof s&&t.push({stage:r,ms:s})}return t}(e.timings),T=k&&r?r-Date.parse(e.createdAt):null;return(0,t.jsxs)("div",{className:(0,v.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-task-card","data-status":e.status,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(b,{className:(0,v.f)("mt-0.5 h-4 w-4 shrink-0",k&&"animate-spin text-primary","saved"===e.status&&"text-green-600","failed"===e.status&&"text-destructive","review"===e.status&&"text-primary")}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:o.importTasks.status[e.status]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:o.importTasks.mode[e.mode]}),e.unread&&(0,t.jsx)(d.f,{children:o.importTasks.unread})]}),k&&(0,t.jsx)(u.f,{value:y[e.status],"aria-label":o.importTasks.stageEstimate,"aria-valuetext":o.common.progress.estimated.replace("{percent}",String(y[e.status])),className:"h-1.5"}),e.excerpt&&(0,t.jsx)("p",{className:"break-words text-muted-foreground",children:e.excerpt}),"saved"===e.status&&!e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:o.importTasks.itemDeleted}),"saved"===e.status&&e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:e.duplicate?o.importTasks.duplicateSaved:o.importTasks.savedTo.replace("{notebook}",e.notebookName||"-").replace("{id}",e.errorItemShortId||"-")}),S&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:S}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(n,{className:"h-3 w-3"}),o.importTasks.createdAt.replace("{time}",(0,x.r)(e.createdAt,"MM-dd HH:mm",w))]}),null!==T&&(0,t.jsx)("span",{children:o.importTasks.elapsed.replace("{time}",p(T))}),e.attempts>1&&(0,t.jsx)("span",{children:o.importTasks.attempts.replace("{count}",String(e.attempts))})]}),A.length>0&&(0,t.jsx)("ul",{className:"flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground tabular-nums","aria-label":"timings",children:A.map(({stage:e,ms:r})=>(0,t.jsxs)("li",{children:[o.importTasks.timings[e]," ",p(r)]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===e.status&&s&&(0,t.jsx)(c.f,{size:"sm",onClick:s,children:o.importTasks.continueReview}),"saved"===e.status&&e.errorItemId&&a&&(0,t.jsx)(c.f,{size:"sm",variant:"outline",onClick:a,children:o.importTasks.viewItem}),"failed"===e.status&&i&&(0,t.jsx)(c.f,{size:"sm",onClick:i,children:o.importTasks.retry}),"saving"!==e.status&&"saved"!==e.status&&l&&(0,t.jsx)(c.f,{size:"sm",variant:"ghost",onClick:l,children:o.importTasks.discard})]})]})}],731335);var w=e.i(618566),b=e.i(61425),k=e.i(294114),N=e.i(201276),S=e.i(116331);e.s(["f",0,function(e){let{t}=(0,m.b)(),r=(0,w.useRouter)(),s=e=>{e.unread&&(0,S.N)(e.id).catch(e=>N.V.warn("[ImportTasks]","Mark read failed",{error:e}))};return{openReview:e=>{s(e),r.push(`/import-tasks/${e.id}`)},viewItem:e=>{e.errorItemId&&(s(e),r.push(`/error-items/${e.errorItemId}`))},markRead:s,retry:async r=>{try{await (0,S.R)(r.id),k.c.info(t.importTasks.retried)}catch(e){k.c.error((0,b.f)(e,t))}e?.()},discard:async r=>{if(!await (0,k.u)(t.importTasks.discardConfirm))return!1;let s=!1;try{await (0,S.x)(r.id),k.c.success(t.importTasks.discarded),s=!0}catch(e){k.c.error((0,b.f)(e,t))}return e?.(),s}}}],579321);var A=e.i(271645);e.s(["f",0,function(e,t=1e3){let[r,s]=(0,A.useState)(()=>Date.now());return(0,A.useEffect)(()=>{if(!e)return;let r=setInterval(()=>s(Date.now()),t);return()=>clearInterval(r)},[e,t]),r}],927904)},141176,e=>{var t=e.i(843476),r=e.i(271645),s=e.i(456420);let a={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};a.node;let i=(0,s.f)(a);var n=e.i(772382),l=e.i(511445),o=e.i(624687),d=e.i(111110),c=e.i(975157);e.s(["f",0,function({value:e,onChange:s,className:a,...u}){let{t:m}=(0,d.b)(),[f,x]=(0,r.useState)("source"),g=(0,r.useId)(),h=[{mode:"source",label:m.markdownEditor.source,icon:i},{mode:"preview",label:m.markdownEditor.preview,icon:n.f}];return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{role:"tablist","aria-label":m.markdownEditor.modeLabel,className:"flex justify-end",children:(0,t.jsx)("div",{className:"inline-flex rounded-md border bg-muted/40 p-0.5",children:h.map(({mode:e,label:r,icon:s})=>(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":f===e,"aria-controls":g,onClick:()=>x(e),className:(0,c.f)("flex items-center gap-1 rounded px-2.5 py-1 text-xs transition-colors",f===e?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5"}),r]},e))})}),(0,t.jsx)("div",{id:g,role:"tabpanel",children:"source"===f?(0,t.jsx)(o.f,{value:e,onChange:e=>s(e.target.value),className:a,...u}):(0,t.jsx)("div",{className:"min-h-24 cursor-text rounded-md border bg-muted/20 px-3 py-2",onDoubleClick:()=>x("source"),title:m.markdownEditor.doubleClickToEdit,children:e.trim()?(0,t.jsx)(l.f,{content:e}):(0,t.jsx)("p",{className:"text-sm italic text-muted-foreground",children:m.markdownEditor.empty})})})]})}],141176)},438465,674166,e=>{var t=e.i(843476),r=e.i(271645),s=e.i(967489),a=e.i(856423),i=e.i(41931),n=e.i(201276),l=e.i(111110);e.s(["f",0,function({value:e,onChange:o,className:d}){let[c,u]=(0,r.useState)([]),{t:m}=(0,l.b)();return(0,r.useEffect)(()=>{(async()=>{try{let e=await i.k.get("/api/notebooks");u(e)}catch(e){n.V.error("[NotebookSelector]","Failed to fetch notebooks",{error:e})}})()},[]),(0,t.jsxs)(s.d,{value:e,onValueChange:o,children:[(0,t.jsx)(s.P,{className:d,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)(s.U,{placeholder:m.notebooks?.selector?.placeholder||"Select Notebook"})]})}),(0,t.jsx)(s.r,{children:0===c.length?(0,t.jsx)("div",{className:"p-2 text-sm text-muted-foreground text-center",children:m.notebooks?.selector?.empty||"No notebooks available"}):c.map(e=>(0,t.jsx)(s.T,{value:e.id,children:e.name},e.id))})]})}],438465);var o=e.i(664030);e.s(["f",0,function({value:e,onChange:r,disabled:a}){let{groups:i,loading:n}=(0,o.f)(),l=i.filter(e=>e.isActive);return(0,t.jsxs)(s.d,{value:e,onValueChange:r,disabled:a||n,children:[(0,t.jsx)(s.P,{children:(0,t.jsx)(s.U,{placeholder:"选择卷别"})}),(0,t.jsx)(s.r,{children:l.map(e=>(0,t.jsx)(s.T,{value:e.id,children:e.name},e.id))})]})}],674166)},149704,e=>{var t=e.i(843476),r=e.i(111110),s=e.i(398019),a=e.i(184110),i=e.i(975157);let n={left:"mr-auto",center:"mx-auto",right:"ml-auto"};e.s(["f",0,function({svg:e,scale:l,align:o,className:d}){let{t:c}=(0,r.b)();if(!e)return null;let u=(0,a.V)(l),m=(0,a.o)(o);return(0,t.jsx)("figure",{className:(0,i.f)("question-figure my-3",d),children:(0,t.jsx)("img",{src:(0,s.f)(e),alt:c.figure.alt,className:(0,i.f)(n[m],"block h-auto max-w-full rounded border bg-white p-2"),style:{..."left"===m?{marginLeft:0,marginRight:"auto"}:"right"===m?{marginLeft:"auto",marginRight:0}:{},maxHeight:360,zoom:u/100,maxWidth:`${Math.min(u,100)}%`}})})}])},574041,e=>{var t=e.i(843476),r=e.i(271645),s=e.i(263676),a=e.i(487486),i=e.i(793479),n=e.i(41931),l=e.i(201276);e.s(["f",0,function({value:e=[],onChange:o,placeholder:d="Enter tags...",className:c="",enterHint:u,subject:m,gradeStage:f}){let[x,g]=(0,r.useState)(""),[h,p]=(0,r.useState)([]),[v,y]=(0,r.useState)(!1),[j,w]=(0,r.useState)(0),b=(0,r.useRef)(null),k=(0,r.useRef)(null),N=(0,r.useCallback)(async t=>{try{let r=new URLSearchParams({q:t});m&&r.append("subject",m),f&&r.append("stage",f);let s=((await n.k.get(`/api/tags/suggestions?${r.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));p(s.slice(0,20)),y(s.length>0),w(0)}catch(e){l.V.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[m,f,e]);(0,r.useEffect)(()=>{x.trim()&&N(x)},[x,N]);let S=t=>{t.trim()&&!e.includes(t.trim())&&(o([...e,t.trim()]),g(""),p([]),y(!1),w(0))},A=t=>{o(e.filter(e=>e!==t))};return(0,r.useEffect)(()=>{let e=e=>{!k.current||k.current.contains(e.target)||b.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)(a.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>A(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(s.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(i.f,{ref:b,type:"text",value:x,onChange:e=>{g(e.target.value),e.target.value.trim()||(p([]),y(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),j>=0&&h[j]?S(h[j]):x.trim()&&S(x)):"ArrowDown"===t.key?(t.preventDefault(),w(e=>Math.min(e+1,h.length-1))):"ArrowUp"===t.key?(t.preventDefault(),w(e=>Math.max(e-1,0))):"Escape"===t.key?(y(!1),w(0)):"Backspace"===t.key&&!x&&e.length>0&&A(e[e.length-1])},onFocus:()=>{h.length>0&&y(!0)},placeholder:0===e.length?d:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),v&&h.length>0&&(0,t.jsx)("div",{ref:k,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:h.map((e,r)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${r===j?"bg-accent":""}`,onClick:()=>S(e),onMouseEnter:()=>w(r),children:e},e))}),x&&!v&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} "${x}"`:`Press Enter to create "${x}"`})]})}])},61425,e=>{var t=e.i(303163);e.s(["f",0,function(e,r){let s=r.common?.messages?.analysisFailed||"Analysis failed, please try again",a=(0,t.d)(e);if(a){let e=r.errors??{};if(!(a in e))return a;let t=e[a];return"string"==typeof t?t:s}let i=(0,t.Z)(e);if(i.includes("fetch")||i.includes("network"))return r.errors?.AI_CONNECTION_FAILED||"网络连接失败";if("object"==typeof e&&null!==e&&"data"in e&&"string"==typeof e.data){let t="status"in e&&"number"==typeof e.status?e.status:"Error";return`${s} (${t})`}return s}])},184110,e=>{let t=["left","center","right"],r="center";function s(e){return"number"==typeof e&&Number.isInteger(e)&&e>=10&&e<=200}e.s(["E",0,r,"n",0,100,"j",0,t,"a",0,200,"_",0,10,"x",0,s,"o",0,function(e){return"string"==typeof e&&t.includes(e)?e:r},"V",0,function(e){return s(e)?e:100}])},398019,e=>{e.s(["f",0,function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}])},952122,e=>{e.i(306831),e.s(["f",0,function(e){if(!e)return null;let t=e.toLowerCase();return t.includes("math")||t.includes("数学")?"math":t.includes("physics")||t.includes("物理")?"physics":t.includes("chemistry")||t.includes("化学")?"chemistry":t.includes("biology")||t.includes("生物")?"biology":t.includes("english")||t.includes("英语")?"english":t.includes("chinese")||t.includes("语文")?"chinese":t.includes("history")||t.includes("历史")?"history":t.includes("geography")||t.includes("地理")?"geography":t.includes("politics")||t.includes("政治")?"politics":null}])}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[218964,e=>{var t=e.i(456420);let s={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"}]]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],218964)},328623,e=>{var t=e.i(456420);let s={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],328623)},697886,e=>{var t=e.i(456420);let s={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],697886)},952683,e=>{var t=e.i(843476),s=e.i(271645),a=e.i(618566),i=e.i(518515),n=e.i(325597),r=e.i(328623),l=e.i(747819),o=e.i(866531),d=e.i(515288),c=e.i(519455),m=e.i(624687),u=e.i(110204),h=e.i(856522),x=e.i(632781),p=e.i(772382),g=e.i(7891),g=g,f=e.i(395925),v=e.i(111110),j=e.i(511445),y=e.i(574041),k=e.i(438465),b=e.i(674166),w=e.i(967489),N=e.i(952122),S=e.i(294114);function A({onSubmit:e,defaultNotebookId:a,defaultNotebookName:i,isSaving:r}){let{t:l}=(0,v.b)(),[o,T]=(0,s.useState)(null),[C,E]=(0,s.useState)(""),[I,P]=(0,s.useState)(""),[z,H]=(0,s.useState)(""),[q,M]=(0,s.useState)(""),[B,D]=(0,s.useState)(""),[F,R]=(0,s.useState)("unknown"),[K,$]=(0,s.useState)([]),[U,O]=(0,s.useState)(a||""),[L,V]=(0,s.useState)(""),[W,_]=(0,s.useState)(""),Q=async()=>{if(C.trim()){if(!U)return void S.c.warning(l.editor.messages?.selectNotebook||"Please select a notebook");await e({questionText:C.trim(),answerText:I.trim(),analysis:z.trim(),wrongAnswerText:q.trim(),mistakeAnalysis:B.trim(),mistakeStatus:F,knowledgePoints:K,subjectId:U,gradeSemester:L||void 0,paperLevel:W||void 0})}},G=e=>{(e.ctrlKey||e.metaKey)&&"Enter"===e.key&&(e.preventDefault(),C.trim()&&U&&!r&&Q())},J=[{key:"question",label:l.editor?.question||"Question Text",value:C,setter:E,placeholder:l.directEntry.questionPlaceholder,minHeight:"min-h-[180px]",required:!0},{key:"answer",label:l.editor?.answer||"Answer",value:I,setter:P,placeholder:l.directEntry.answerPlaceholder,minHeight:"min-h-[120px]"},{key:"analysis",label:l.editor?.analysis||"Analysis / Explanation",value:z,setter:H,placeholder:l.directEntry.analysisPlaceholder,minHeight:"min-h-[150px]"},{key:"wrongAnswer",label:l.editor?.wrongAnswerText||"Wrong Answer / Work",value:q,setter:M,placeholder:l.directEntry.wrongAnswerPlaceholder,minHeight:"min-h-[100px]"},{key:"mistakeAnalysis",label:l.editor?.mistakeAnalysis||"Mistake Cause Analysis",value:B,setter:D,placeholder:l.directEntry.mistakeAnalysisPlaceholder,minHeight:"min-h-[100px]"}];return(0,t.jsx)(d.N,{className:"rounded-2xl",children:(0,t.jsxs)(d.O,{className:"p-6 space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(n.f,{className:"h-5 w-5"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:l.directEntry.title})]}),(0,t.jsxs)(c.f,{variant:"ghost",size:"sm",onClick:()=>{E(""),P(""),H(""),M(""),D(""),R("unknown"),$([]),V(""),_("")},disabled:r,className:"text-muted-foreground hover:text-destructive",children:[(0,t.jsx)(f.f,{className:"h-4 w-4 mr-1"}),l.directEntry.reset]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(u.f,{children:[l.editor?.selectNotebook||"Select Notebook"," *"]}),(0,t.jsx)(k.f,{value:U,onChange:O})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.f,{children:l.editor?.gradeSemester||"Grade/Semester"}),(0,t.jsx)("input",{type:"text",value:L,onChange:e=>V(e.target.value),placeholder:l.directEntry.gradeSemesterPlaceholder,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.f,{children:l.editor?.paperLevel||"Paper Level"}),(0,t.jsx)(b.f,{value:W,onChange:_})]})]}),J.map(e=>(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(u.f,{className:e.required?"text-primary font-semibold":"",children:[e.label," ",e.required&&"*"]}),(0,t.jsx)(c.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>T(o===e.key?null:e.key),disabled:!e.value,children:o===e.key?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.f,{className:"h-3 w-3 mr-1"}),l.directEntry.edit]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.f,{className:"h-3 w-3 mr-1"}),l.directEntry.preview]})})]}),o===e.key?(0,t.jsx)("div",{className:`rounded-md border bg-muted/30 p-4 ${e.minHeight} overflow-auto cursor-pointer`,onClick:()=>T(null),children:(0,t.jsx)(j.f,{content:e.value})}):(0,t.jsx)(m.f,{value:e.value,onChange:t=>e.setter(t.target.value),onKeyDown:G,placeholder:e.placeholder,className:`${e.minHeight} font-mono text-sm resize-y`,disabled:r})]},e.key)),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.f,{children:l.editor?.mistakeStatus||"Attempt Status"}),(0,t.jsxs)(w.d,{value:F,onValueChange:e=>R(e),children:[(0,t.jsx)(w.P,{className:"w-[200px]",children:(0,t.jsx)(w.U,{})}),(0,t.jsxs)(w.r,{children:[(0,t.jsx)(w.T,{value:"not_attempted",children:l.editor?.mistakeStatuses?.notAttempted||"Not attempted"}),(0,t.jsx)(w.T,{value:"wrong_attempt",children:l.editor?.mistakeStatuses?.wrongAttempt||"Wrong attempt"}),(0,t.jsx)(w.T,{value:"unknown",children:l.editor?.mistakeStatuses?.unknown||"Unknown"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.f,{children:l.editor?.tags||"Knowledge Points (Press Enter to add)"}),(0,t.jsx)(y.f,{value:K,onChange:$,placeholder:l.editor?.tagsPlaceholder||"Enter knowledge tags, select from suggestions...",enterHint:l.editor?.createTagHint,subject:(0,N.f)(i||null)||void 0}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l.editor?.tagsHint||"💡 Tag suggestions will appear as you type"})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 pt-2",children:[(0,t.jsx)(c.f,{onClick:Q,disabled:!C.trim()||!U||r,className:"w-full bg-gradient-to-r from-indigo-600 to-violet-500 hover:from-indigo-700 hover:to-violet-600 text-white font-medium",size:"lg",children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.f,{className:"mr-2 h-4 w-4 animate-spin"}),l.directEntry.saving]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.f,{className:"mr-2 h-4 w-4"}),l.directEntry.save]})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:l.directEntry.hint})]})]})})}var T=e.i(522016),C=e.i(217255),E=e.i(856423),I=e.i(975153),P=e.i(218964),z=e.i(697886);let H=()=>()=>{};function q({href:e,icon:s,label:a,value:i}){return(0,t.jsxs)(T.default,{href:e,className:"rounded-xl bg-white/15 px-4 py-3 backdrop-blur-sm transition-colors hover:bg-white/20",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-white/75",children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:a})]}),(0,t.jsx)("div",{className:"mt-1 text-2xl font-bold tabular-nums",children:i??"–"})]})}function M({notebookCount:e,itemCount:a,dueCount:i,targetNotebook:n}){let{t:r,language:l}=(0,v.b)(),{data:o}=(0,C.useSession)(),d=(0,s.useSyncExternalStore)(H,()=>new Date().getHours(),()=>null),c=null===d?r.common.welcome.replace(/[,,\s]+$/,""):d<12?r.home.greetingMorning:d<18?r.home.greetingAfternoon:r.home.greetingEvening,m=o?.user?.name||o?.user?.email||"";return(0,t.jsxs)("section",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-indigo-600 via-indigo-500 to-violet-500 p-5 text-white shadow-lg shadow-indigo-500/20 md:p-7",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -right-10 -top-12 h-44 w-44 rounded-full bg-white/10 blur-2xl"}),(0,t.jsx)("div",{className:"pointer-events-none absolute -bottom-16 right-24 h-40 w-40 rounded-full bg-fuchsia-300/20 blur-2xl"}),(0,t.jsxs)("div",{className:"relative flex flex-col gap-5 md:flex-row md:items-end md:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("h1",{className:"text-xl font-bold tracking-tight md:text-2xl",children:[c,m&&`${"zh"===l?",":", "}${m}`]}),(0,t.jsx)("p",{className:"max-w-md text-sm text-white/80",children:r.home.heroSubtitle}),n&&(0,t.jsxs)("p",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 px-3 py-1 text-xs font-medium",children:[(0,t.jsx)(z.f,{className:"h-3.5 w-3.5"}),r.home.targetNotebook.replace("{name}",n)]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-3 md:w-96",children:[(0,t.jsx)(q,{href:"/notebooks",icon:E.f,label:r.home.notebookCount,value:e}),(0,t.jsx)(q,{href:"/notebooks",icon:P.f,label:r.home.itemCount,value:a}),(0,t.jsx)(q,{href:"/review",icon:I.f,label:r.home.dueCount,value:i})]})]})]})}var B=e.i(12130),D=e.i(430634),F=e.i(576019),R=e.i(497346),K=e.i(717448),$=e.i(798469),U=e.i(86963),O=e.i(956738),L=e.i(185592),V=e.i(41931),W=e.i(201276),_=e.i(35209),Q=e.i(267275);function G(){let{t:e}=(0,v.b)();(0,_.f)(e.pageTitle.home);let d=(0,a.useSearchParams)().get("notebook"),[c,m]=(0,s.useState)([]),[u,h]=(0,s.useState)(null),[x,p]=(0,s.useState)("image"),g=d?c.find(e=>e.id===d):void 0,f=(0,Q.f)({logPrefix:"[Home]",analyzeSubjectId:d,importSubjectId:d,textNotebook:g&&{id:g.id,name:g.name}});(0,s.useEffect)(()=>{V.k.get("/api/notebooks").then(e=>m(e)).catch(e=>W.V.error("[Home]","Failed to fetch notebooks",{error:e})),V.k.get("/api/review/due?pageSize=1").then(e=>h(e.total)).catch(e=>W.V.error("[Home]","Failed to fetch due reviews",{error:e}))},[]);let j=async e=>{f.setAnalysisStep("saving"),await f.saveQuestion({...e,wrongAnswerText:e.wrongAnswerText||null,mistakeAnalysis:e.mistakeAnalysis||null,mistakeStatus:e.mistakeStatus||"unknown",originalImageUrl:""}),f.setAnalysisStep("idle")},y=c.reduce((e,t)=>e+(t._count?.errorItems||0),0),k=[{value:"image",icon:i.f,label:e.app?.uploadImage||"Take Photo"},{value:"text",icon:r.f,label:e.app?.manualInput||"Manual Input"},{value:"direct",icon:n.f,label:e.app?.directInput||"Manual Entry"}];return(0,t.jsxs)("main",{className:"min-h-screen",children:[(0,t.jsx)(O.f,{status:f.analysisStep,completed:f.completedStages}),(0,t.jsxs)("div",{className:`mx-auto space-y-6 px-4 py-6 md:px-8 md:py-8 ${"review"===f.step?"max-w-6xl":"max-w-4xl"}`,children:[(0,t.jsx)(R.f,{message:f.saveError,onDismiss:f.dismissSaveError}),"upload"===f.step&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{notebookCount:c.length,itemCount:y,dueCount:u,targetNotebook:d?g?.name:void 0}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(L.f,{options:k,value:x,onChange:p}),f.pendingTask&&(0,t.jsx)(F.f,{task:f.pendingTask,onRefresh:f.refreshPendingTask,onDismiss:f.dismissPendingTask}),f.lastImported&&(0,t.jsx)(D.f,{imported:f.lastImported,onDismiss:f.dismissImported}),f.batchImages?(0,t.jsx)(l.f,{images:f.batchImages,subjectId:d,onClose:f.closeBatch}):"image"===x?(0,t.jsx)($.f,{onImageSelect:f.selectImage,isAnalyzing:f.isBusy}):"text"===x?(0,t.jsx)(K.f,{onSubmit:f.submitText,isAnalyzing:f.isBusy,defaultNotebookName:g?.name,onCreateBatch:f.createTextBatch,creatingBatch:f.creatingBatch}):(0,t.jsx)(A,{onSubmit:j,defaultNotebookId:d||void 0,defaultNotebookName:g?.name,isSaving:"saving"===f.analysisStep})]})]}),f.croppingImage&&(0,t.jsx)(B.f,{imageSrc:f.croppingImage,open:f.isCropperOpen,onClose:f.closeCropper,onRegionsSelected:f.cropRegions,onAutoSplit:f.autoSplitImage}),"review"===f.step&&f.parsedData&&(0,t.jsx)(o.f,{initialData:f.parsedData,onSave:f.saveReviewed,onCancel:f.cancelReview,imagePreview:f.currentImage,initialSubjectId:d||void 0,aiTimeout:f.aiTimeout})]})]})}e.s(["default",0,function(){return(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(U.f,{}),children:(0,t.jsx)(G,{})})}],952683)},86963,e=>{var t=e.i(843476),s=e.i(632781);e.s(["f",0,function({label:e}){return(0,t.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,t.jsx)(s.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,t.jsx)("p",{className:"text-sm",children:e})]})}])},35209,e=>{var t=e.i(271645),s=e.i(111110);e.s(["f",0,function(...e){let{t:a}=(0,s.b)(),i=[a.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=i},[i])}])}],462684,e=>{e.v(t=>Promise.all(["static/chunks/2hh64gi4pmlk2.js"].map(t=>e.l(t))).then(()=>t(506175)))}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[218964,e=>{var t=e.i(456420);let s={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"}]]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],218964)},328623,e=>{var t=e.i(456420);let s={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],328623)},697886,e=>{var t=e.i(456420);let s={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],697886)},952683,e=>{var t=e.i(843476),s=e.i(271645),a=e.i(618566),i=e.i(518515),n=e.i(325597),r=e.i(328623),l=e.i(747819),o=e.i(866531),d=e.i(515288),c=e.i(519455),m=e.i(624687),u=e.i(110204),h=e.i(856522),x=e.i(632781),p=e.i(772382),g=e.i(7891),g=g,f=e.i(395925),v=e.i(111110),j=e.i(511445),y=e.i(574041),b=e.i(438465),k=e.i(674166),w=e.i(967489),N=e.i(952122),S=e.i(294114);function A({onSubmit:e,defaultNotebookId:a,defaultNotebookName:i,isSaving:r}){let{t:l}=(0,v.b)(),[o,C]=(0,s.useState)(null),[T,P]=(0,s.useState)(""),[E,I]=(0,s.useState)(""),[z,H]=(0,s.useState)(""),[M,q]=(0,s.useState)(""),[B,D]=(0,s.useState)(""),[F,R]=(0,s.useState)("unknown"),[K,U]=(0,s.useState)([]),[$,O]=(0,s.useState)(a||""),[L,V]=(0,s.useState)(""),[W,_]=(0,s.useState)(""),Q=async()=>{if(T.trim()){if(!$)return void S.c.warning(l.editor.messages?.selectNotebook||"Please select a notebook");await e({questionText:T.trim(),answerText:E.trim(),analysis:z.trim(),wrongAnswerText:M.trim(),mistakeAnalysis:B.trim(),mistakeStatus:F,knowledgePoints:K,subjectId:$,gradeSemester:L||void 0,paperLevel:W||void 0})}},G=e=>{(e.ctrlKey||e.metaKey)&&"Enter"===e.key&&(e.preventDefault(),T.trim()&&$&&!r&&Q())},J=[{key:"question",label:l.editor?.question||"Question Text",value:T,setter:P,placeholder:l.directEntry.questionPlaceholder,minHeight:"min-h-[180px]",required:!0},{key:"answer",label:l.editor?.answer||"Answer",value:E,setter:I,placeholder:l.directEntry.answerPlaceholder,minHeight:"min-h-[120px]"},{key:"analysis",label:l.editor?.analysis||"Analysis / Explanation",value:z,setter:H,placeholder:l.directEntry.analysisPlaceholder,minHeight:"min-h-[150px]"},{key:"wrongAnswer",label:l.editor?.wrongAnswerText||"Wrong Answer / Work",value:M,setter:q,placeholder:l.directEntry.wrongAnswerPlaceholder,minHeight:"min-h-[100px]"},{key:"mistakeAnalysis",label:l.editor?.mistakeAnalysis||"Mistake Cause Analysis",value:B,setter:D,placeholder:l.directEntry.mistakeAnalysisPlaceholder,minHeight:"min-h-[100px]"}];return(0,t.jsx)(d.N,{className:"rounded-2xl",children:(0,t.jsxs)(d.O,{className:"p-6 space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(n.f,{className:"h-5 w-5"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:l.directEntry.title})]}),(0,t.jsxs)(c.f,{variant:"ghost",size:"sm",onClick:()=>{P(""),I(""),H(""),q(""),D(""),R("unknown"),U([]),V(""),_("")},disabled:r,className:"text-muted-foreground hover:text-destructive",children:[(0,t.jsx)(f.f,{className:"h-4 w-4 mr-1"}),l.directEntry.reset]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(u.f,{children:[l.editor?.selectNotebook||"Select Notebook"," *"]}),(0,t.jsx)(b.f,{value:$,onChange:O})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.f,{children:l.editor?.gradeSemester||"Grade/Semester"}),(0,t.jsx)("input",{type:"text",value:L,onChange:e=>V(e.target.value),placeholder:l.directEntry.gradeSemesterPlaceholder,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.f,{children:l.editor?.paperLevel||"Paper Level"}),(0,t.jsx)(k.f,{value:W,onChange:_})]})]}),J.map(e=>(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(u.f,{className:e.required?"text-primary font-semibold":"",children:[e.label," ",e.required&&"*"]}),(0,t.jsx)(c.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>C(o===e.key?null:e.key),disabled:!e.value,children:o===e.key?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.f,{className:"h-3 w-3 mr-1"}),l.directEntry.edit]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.f,{className:"h-3 w-3 mr-1"}),l.directEntry.preview]})})]}),o===e.key?(0,t.jsx)("div",{className:`rounded-md border bg-muted/30 p-4 ${e.minHeight} overflow-auto cursor-pointer`,onClick:()=>C(null),children:(0,t.jsx)(j.f,{content:e.value})}):(0,t.jsx)(m.f,{value:e.value,onChange:t=>e.setter(t.target.value),onKeyDown:G,placeholder:e.placeholder,className:`${e.minHeight} font-mono text-sm resize-y`,disabled:r})]},e.key)),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.f,{children:l.editor?.mistakeStatus||"Attempt Status"}),(0,t.jsxs)(w.d,{value:F,onValueChange:e=>R(e),children:[(0,t.jsx)(w.P,{className:"w-[200px]",children:(0,t.jsx)(w.U,{})}),(0,t.jsxs)(w.r,{children:[(0,t.jsx)(w.T,{value:"not_attempted",children:l.editor?.mistakeStatuses?.notAttempted||"Not attempted"}),(0,t.jsx)(w.T,{value:"wrong_attempt",children:l.editor?.mistakeStatuses?.wrongAttempt||"Wrong attempt"}),(0,t.jsx)(w.T,{value:"unknown",children:l.editor?.mistakeStatuses?.unknown||"Unknown"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.f,{children:l.editor?.tags||"Knowledge Points (Press Enter to add)"}),(0,t.jsx)(y.f,{value:K,onChange:U,placeholder:l.editor?.tagsPlaceholder||"Enter knowledge tags, select from suggestions...",enterHint:l.editor?.createTagHint,subject:(0,N.f)(i||null)||void 0}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l.editor?.tagsHint||"💡 Tag suggestions will appear as you type"})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 pt-2",children:[(0,t.jsx)(c.f,{onClick:Q,disabled:!T.trim()||!$||r,className:"w-full bg-gradient-to-r from-indigo-600 to-violet-500 hover:from-indigo-700 hover:to-violet-600 text-white font-medium",size:"lg",children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.f,{className:"mr-2 h-4 w-4 animate-spin"}),l.directEntry.saving]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.f,{className:"mr-2 h-4 w-4"}),l.directEntry.save]})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:l.directEntry.hint})]})]})})}var C=e.i(522016),T=e.i(217255),P=e.i(856423),E=e.i(975153),I=e.i(218964),z=e.i(697886);let H=()=>()=>{};function M({href:e,icon:s,label:a,value:i}){return(0,t.jsxs)(C.default,{href:e,className:"rounded-xl bg-white/15 px-4 py-3 backdrop-blur-sm transition-colors hover:bg-white/20",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-white/75",children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:a})]}),(0,t.jsx)("div",{className:"mt-1 text-2xl font-bold tabular-nums",children:i??"–"})]})}function q({notebookCount:e,itemCount:a,dueCount:i,targetNotebook:n}){let{t:r,language:l}=(0,v.b)(),{data:o}=(0,T.useSession)(),d=(0,s.useSyncExternalStore)(H,()=>new Date().getHours(),()=>null),c=null===d?r.common.welcome.replace(/[,,\s]+$/,""):d<12?r.home.greetingMorning:d<18?r.home.greetingAfternoon:r.home.greetingEvening,m=o?.user?.name||o?.user?.email||"";return(0,t.jsxs)("section",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-indigo-600 via-indigo-500 to-violet-500 p-5 text-white shadow-lg shadow-indigo-500/20 md:p-7",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -right-10 -top-12 h-44 w-44 rounded-full bg-white/10 blur-2xl"}),(0,t.jsx)("div",{className:"pointer-events-none absolute -bottom-16 right-24 h-40 w-40 rounded-full bg-fuchsia-300/20 blur-2xl"}),(0,t.jsxs)("div",{className:"relative flex flex-col gap-5 md:flex-row md:items-end md:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("h1",{className:"text-xl font-bold tracking-tight md:text-2xl",children:[c,m&&`${"zh"===l?",":", "}${m}`]}),(0,t.jsx)("p",{className:"max-w-md text-sm text-white/80",children:r.home.heroSubtitle}),n&&(0,t.jsxs)("p",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 px-3 py-1 text-xs font-medium",children:[(0,t.jsx)(z.f,{className:"h-3.5 w-3.5"}),r.home.targetNotebook.replace("{name}",n)]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-3 md:w-96",children:[(0,t.jsx)(M,{href:"/notebooks",icon:P.f,label:r.home.notebookCount,value:e}),(0,t.jsx)(M,{href:"/notebooks",icon:I.f,label:r.home.itemCount,value:a}),(0,t.jsx)(M,{href:"/review",icon:E.f,label:r.home.dueCount,value:i})]})]})]})}var B=e.i(12130),D=e.i(430634),F=e.i(576019),R=e.i(847483),K=e.i(497346),U=e.i(717448),$=e.i(798469),O=e.i(86963),L=e.i(956738),V=e.i(185592),W=e.i(41931),_=e.i(201276),Q=e.i(35209),G=e.i(267275);function J(){let{t:e}=(0,v.b)();(0,Q.f)(e.pageTitle.home);let d=(0,a.useSearchParams)().get("notebook"),[c,m]=(0,s.useState)([]),[u,h]=(0,s.useState)(null),[x,p]=(0,s.useState)("image"),g=d?c.find(e=>e.id===d):void 0,f=(0,G.w)({logPrefix:"[Home]",analyzeSubjectId:d,importSubjectId:d,textNotebook:g&&{id:g.id,name:g.name}});(0,s.useEffect)(()=>{W.k.get("/api/notebooks").then(e=>m(e)).catch(e=>_.V.error("[Home]","Failed to fetch notebooks",{error:e})),W.k.get("/api/review/due?pageSize=1").then(e=>h(e.total)).catch(e=>_.V.error("[Home]","Failed to fetch due reviews",{error:e}))},[]);let j=async e=>{f.setAnalysisStep("saving"),await f.saveQuestion({...e,wrongAnswerText:e.wrongAnswerText||null,mistakeAnalysis:e.mistakeAnalysis||null,mistakeStatus:e.mistakeStatus||"unknown",originalImageUrl:""}),f.setAnalysisStep("idle")},y=c.reduce((e,t)=>e+(t._count?.errorItems||0),0),b=[{value:"image",icon:i.f,label:e.app?.uploadImage||"Take Photo"},{value:"text",icon:r.f,label:e.app?.manualInput||"Manual Input"},{value:"direct",icon:n.f,label:e.app?.directInput||"Manual Entry"}];return(0,t.jsxs)("main",{className:"min-h-screen",children:[(0,t.jsx)(L.f,{status:f.analysisStep,completed:f.completedStages}),(0,t.jsxs)("div",{className:`mx-auto space-y-6 px-4 py-6 md:px-8 md:py-8 ${"review"===f.step?"max-w-6xl":"max-w-4xl"}`,children:[(0,t.jsx)(K.f,{message:f.saveError,onDismiss:f.dismissSaveError}),"upload"===f.step&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(q,{notebookCount:c.length,itemCount:y,dueCount:u,targetNotebook:d?g?.name:void 0}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(V.f,{options:b,value:x,onChange:p}),f.pendingTask&&(0,t.jsx)(F.f,{task:f.pendingTask,onRefresh:f.refreshPendingTask,onDismiss:f.dismissPendingTask}),f.lastImported&&(0,t.jsx)(D.f,{imported:f.lastImported,onDismiss:f.dismissImported}),f.batchImages?(0,t.jsx)(l.f,{images:f.batchImages,subjectId:d,onClose:f.closeBatch}):"image"===x?(0,t.jsxs)(t.Fragment,{children:[f.parts.length>0&&(0,t.jsx)(R.f,{parts:f.parts.map(e=>e.dataUrl),busy:f.isBusy,onFinish:()=>void f.finishParts(),onDiscard:f.discardParts}),(0,t.jsx)($.f,{onImageSelect:f.selectImage,isAnalyzing:f.isBusy})]}):"text"===x?(0,t.jsx)(U.f,{onSubmit:f.submitText,isAnalyzing:f.isBusy,defaultNotebookName:g?.name,onCreateBatch:f.createTextBatch,creatingBatch:f.creatingBatch}):(0,t.jsx)(A,{onSubmit:j,defaultNotebookId:d||void 0,defaultNotebookName:g?.name,isSaving:"saving"===f.analysisStep})]})]}),f.croppingImage&&(0,t.jsx)(B.f,{imageSrc:f.croppingImage,open:f.isCropperOpen,onClose:f.closeCropper,onRegionsSelected:f.cropRegions,allowMulti:0===f.parts.length,onAutoSplit:0===f.parts.length?f.autoSplitImage:void 0,onAddPart:f.parts.length<G.u-1?f.addPart:void 0,partCount:f.parts.length}),"review"===f.step&&f.parsedData&&(0,t.jsx)(o.f,{initialData:f.parsedData,onSave:f.saveReviewed,onCancel:f.cancelReview,imagePreview:f.currentImage,initialSubjectId:d||void 0,aiTimeout:f.aiTimeout})]})]})}e.s(["default",0,function(){return(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(O.f,{}),children:(0,t.jsx)(J,{})})}],952683)},86963,e=>{var t=e.i(843476),s=e.i(632781);e.s(["f",0,function({label:e}){return(0,t.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,t.jsx)(s.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,t.jsx)("p",{className:"text-sm",children:e})]})}])},35209,e=>{var t=e.i(271645),s=e.i(111110);e.s(["f",0,function(...e){let{t:a}=(0,s.b)(),i=[a.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=i},[i])}])}],462684,e=>{e.v(t=>Promise.all(["static/chunks/2hh64gi4pmlk2.js"].map(t=>e.l(t))).then(()=>t(506175)))}]);
|
package/package.json
CHANGED
package/prisma/seed.db
CHANGED
|
Binary file
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0fxqs6p28o57m._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0jy5w86h0qg50._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0kw7hbup538-8._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0mhtpz84f1vct._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0mks6j_xgzj06._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0ol6aiama1k_-._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__0r_d96aqau--y._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1qxr6vtllrbku._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0pce90ecznpjr._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0pgghfs5ue4ff._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},902157,(e,r,o)=>{r.exports=e.x("node:fs",()=>require("node:fs"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},750227,(e,r,o)=>{r.exports=e.x("node:path",()=>require("node:path"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__00gsgx0wu9vi4._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0q3uk_5f9t6mb._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0qw6cz355p_eb._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__0r_d96aqau--y._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0fxqs6p28o57m._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0s3z-zsl35ueb._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__0r_d96aqau--y._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__04tx90mwz-58t._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0smf8z8cd59g3._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0sujbuwv8y6bp._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__0r_d96aqau--y._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1ndg27r3ft7-f._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0tg572v-6f3wo._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0to77zh5fihef._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},902157,(e,r,o)=>{r.exports=e.x("node:fs",()=>require("node:fs"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},750227,(e,r,o)=>{r.exports=e.x("node:path",()=>require("node:path"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__00gsgx0wu9vi4._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0u04aced_0ug4._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0ujhtand4ld8w._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0ultckrjp1h-q._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0xkb9fyy9z_rr._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0xqbpgtwhqhpl._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0y0skjc_7v7cr._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1-90b1cy_787j._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__0r_d96aqau--y._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0-ipecoww0k_f._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__134n229bo2v1d._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1_2jbd6rjhbu6._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1_qwjiy9wg14j._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1al4_7mvxprle._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1cbejfw8sum3r._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__0r_d96aqau--y._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0ol6aiama1k_-._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1cbhqd8d3ozuv._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1cxpqdzozndhn._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__0r_d96aqau--y._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0to77zh5fihef._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1dh0adu5iobp3._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03x4rhjqz4rgv._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__0r_d96aqau--y._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0mks6j_xgzj06._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1exbv92f97wbe._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1grfx7nsqj28h._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0a13lncff9jx-._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__14rv088xdnlo4._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0jy5w86h0qg50._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))},223212,e=>{e.v(e=>Promise.resolve().then(()=>e(57465)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1mg_zqw3nheiu._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},79955,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0a13lncff9jx-._.js"].map(r=>e.l(r))).then(()=>r(835611)))},146735,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__14rv088xdnlo4._.js","server/chunks/[root-of-the-server]__0rk_yxyba4meu._.js"].map(r=>e.l(r))).then(()=>r(583085)))},791961,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jtd2ara5taim._.js"].map(r=>e.l(r))).then(()=>r(312111)))},672331,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1_qwjiy9wg14j._.js","server/chunks/[root-of-the-server]__1nmtv65uajre3._.js","server/chunks/[root-of-the-server]__0_t7bbz2btvts._.js"].map(r=>e.l(r))).then(()=>r(520442)))},977802,e=>{e.v(e=>Promise.resolve().then(()=>e(687604)))},223212,e=>{e.v(e=>Promise.resolve().then(()=>e(57465)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1mn422yguinbn._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_node_process_0dvtjkttigk0k._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1ndg27r3ft7-f._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[951615,(e,r,o)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},902157,(e,r,o)=>{r.exports=e.x("node:fs",()=>require("node:fs"))},347299,(e,r,o)=>{r.exports=e.x("node:http",()=>require("node:http"))},761095,(e,r,o)=>{r.exports=e.x("node:net",()=>require("node:net"))},750227,(e,r,o)=>{r.exports=e.x("node:path",()=>require("node:path"))},59639,(e,r,o)=>{r.exports=e.x("node:process",()=>require("node:process"))},857764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},812057,(e,r,o)=>{r.exports=e.x("node:util",()=>require("node:util"))},727028,(e,r,o)=>{r.exports=e.x("node:zlib",()=>require("node:zlib"))},325897,e=>{e.v(r=>Promise.all(["server/chunks/[externals]__00gsgx0wu9vi4._.js","server/chunks/[root-of-the-server]__15tkoe60wvpdf._.js","server/chunks/node_modules_node-fetch_src_utils_multipart-parser_0a9aeam58e52_.js"].map(r=>e.l(r))).then(()=>r(255057)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1p60tmt2t1ve3._.js.map
|