wrong-notebook 2026.11.2 → 2026.11.3-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (690) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +16 -0
  3. package/.next/build-manifest.json +36 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/routes-manifest.json +120 -0
  6. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  7. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/_global-error.html +1 -1
  9. package/.next/server/app/_global-error.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  14. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/admin/page.js.nft.json +1 -1
  16. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/admin/user/[id]/page.js.nft.json +1 -1
  18. package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/api/admin/cnm-tags/route.js +6 -5
  20. package/.next/server/app/api/admin/cnm-tags/route.js.nft.json +1 -1
  21. package/.next/server/app/api/admin/dashboard/route.js +16 -15
  22. package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
  23. package/.next/server/app/api/admin/debug-logs/export/route.js +5 -4
  24. package/.next/server/app/api/admin/debug-logs/export/route.js.nft.json +1 -1
  25. package/.next/server/app/api/admin/debug-logs/route.js +5 -4
  26. package/.next/server/app/api/admin/debug-logs/route.js.nft.json +1 -1
  27. package/.next/server/app/api/admin/migrate-tags/route.js +5 -4
  28. package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
  29. package/.next/server/app/api/admin/system-reset/route.js +5 -4
  30. package/.next/server/app/api/admin/system-reset/route.js.nft.json +1 -1
  31. package/.next/server/app/api/admin/users/[id]/detail/route.js +16 -15
  32. package/.next/server/app/api/admin/users/[id]/detail/route.js.nft.json +1 -1
  33. package/.next/server/app/api/admin/users/[id]/route.js +5 -4
  34. package/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
  35. package/.next/server/app/api/admin/users/route.js +5 -4
  36. package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
  37. package/.next/server/app/api/ai/models/route.js +11 -10
  38. package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
  39. package/.next/server/app/api/ai/test/route.js +10 -9
  40. package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
  41. package/.next/server/app/api/analytics/route.js +12 -11
  42. package/.next/server/app/api/analytics/route.js.nft.json +1 -1
  43. package/.next/server/app/api/analyze/route.js +16 -14
  44. package/.next/server/app/api/analyze/route.js.nft.json +1 -1
  45. package/.next/server/app/api/auth/[...nextauth]/route.js +4 -3
  46. package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
  47. package/.next/server/app/api/error-items/[id]/delete/route.js +5 -4
  48. package/.next/server/app/api/error-items/[id]/delete/route.js.nft.json +1 -1
  49. package/.next/server/app/api/error-items/[id]/figure/route.js +14 -13
  50. package/.next/server/app/api/error-items/[id]/figure/route.js.nft.json +1 -1
  51. package/.next/server/app/api/error-items/[id]/fix-latex/route.js +16 -15
  52. package/.next/server/app/api/error-items/[id]/fix-latex/route.js.nft.json +1 -1
  53. package/.next/server/app/api/error-items/[id]/geogebra/route.js +12 -11
  54. package/.next/server/app/api/error-items/[id]/geogebra/route.js.nft.json +1 -1
  55. package/.next/server/app/api/error-items/[id]/image/route.js +4 -3
  56. package/.next/server/app/api/error-items/[id]/image/route.js.nft.json +1 -1
  57. package/.next/server/app/api/error-items/[id]/notes/route.js +5 -4
  58. package/.next/server/app/api/error-items/[id]/notes/route.js.nft.json +1 -1
  59. package/.next/server/app/api/error-items/[id]/practice-records/route.js +4 -3
  60. package/.next/server/app/api/error-items/[id]/practice-records/route.js.nft.json +1 -1
  61. package/.next/server/app/api/error-items/[id]/reanswer/route.js +14 -13
  62. package/.next/server/app/api/error-items/[id]/reanswer/route.js.nft.json +1 -1
  63. package/.next/server/app/api/error-items/[id]/retag/route.js +15 -14
  64. package/.next/server/app/api/error-items/[id]/retag/route.js.nft.json +1 -1
  65. package/.next/server/app/api/error-items/[id]/route.js +6 -5
  66. package/.next/server/app/api/error-items/[id]/route.js.nft.json +1 -1
  67. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +14 -13
  68. package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.nft.json +1 -1
  69. package/.next/server/app/api/error-items/[id]/svg-animation/route.js +14 -13
  70. package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
  71. package/.next/server/app/api/error-items/answer-space/route/app-paths-manifest.json +3 -0
  72. package/.next/server/app/api/error-items/answer-space/route/build-manifest.json +12 -0
  73. package/.next/server/app/api/error-items/answer-space/route/server-reference-manifest.json +4 -0
  74. package/.next/server/app/api/error-items/answer-space/route.js +14 -0
  75. package/.next/server/app/api/error-items/answer-space/route.js.map +5 -0
  76. package/.next/server/app/api/error-items/answer-space/route.js.nft.json +1 -0
  77. package/.next/server/app/api/error-items/answer-space/route_client-reference-manifest.js +3 -0
  78. package/.next/server/app/api/error-items/batch-delete/route.js +5 -4
  79. package/.next/server/app/api/error-items/batch-delete/route.js.nft.json +1 -1
  80. package/.next/server/app/api/error-items/clear/route.js +5 -4
  81. package/.next/server/app/api/error-items/clear/route.js.nft.json +1 -1
  82. package/.next/server/app/api/error-items/list/route.js +6 -5
  83. package/.next/server/app/api/error-items/list/route.js.nft.json +1 -1
  84. package/.next/server/app/api/error-items/route.js +17 -15
  85. package/.next/server/app/api/error-items/route.js.nft.json +1 -1
  86. package/.next/server/app/api/error-items/short/[shortId]/route.js +4 -3
  87. package/.next/server/app/api/error-items/short/[shortId]/route.js.nft.json +1 -1
  88. package/.next/server/app/api/error-items/similarity/route.js +6 -5
  89. package/.next/server/app/api/error-items/similarity/route.js.nft.json +1 -1
  90. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +15 -14
  91. package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js.nft.json +1 -1
  92. package/.next/server/app/api/exams/[id]/results/route.js +17 -16
  93. package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
  94. package/.next/server/app/api/exams/[id]/retry/route.js +16 -15
  95. package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
  96. package/.next/server/app/api/exams/[id]/route.js +17 -15
  97. package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
  98. package/.next/server/app/api/exams/route.js +17 -16
  99. package/.next/server/app/api/exams/route.js.nft.json +1 -1
  100. package/.next/server/app/api/export/route.js +10 -8
  101. package/.next/server/app/api/export/route.js.nft.json +1 -1
  102. package/.next/server/app/api/geogebra-analyze/route.js +13 -12
  103. package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
  104. package/.next/server/app/api/health/route.js +3 -2
  105. package/.next/server/app/api/health/route.js.nft.json +1 -1
  106. package/.next/server/app/api/import/route.js +19 -17
  107. package/.next/server/app/api/import/route.js.nft.json +1 -1
  108. package/.next/server/app/api/import-batches/[id]/confirm-all/route/app-paths-manifest.json +3 -0
  109. package/.next/server/app/api/import-batches/[id]/confirm-all/route/build-manifest.json +12 -0
  110. package/.next/server/app/api/import-batches/[id]/confirm-all/route/server-reference-manifest.json +4 -0
  111. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js +34 -0
  112. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js.map +5 -0
  113. package/.next/server/app/api/import-batches/[id]/confirm-all/route.js.nft.json +1 -0
  114. package/.next/server/app/api/import-batches/[id]/confirm-all/route_client-reference-manifest.js +3 -0
  115. package/.next/server/app/api/import-batches/[id]/fix-text/route/app-paths-manifest.json +3 -0
  116. package/.next/server/app/api/import-batches/[id]/fix-text/route/build-manifest.json +12 -0
  117. package/.next/server/app/api/import-batches/[id]/fix-text/route/server-reference-manifest.json +4 -0
  118. package/.next/server/app/api/import-batches/[id]/fix-text/route.js +26 -0
  119. package/.next/server/app/api/import-batches/[id]/fix-text/route.js.map +5 -0
  120. package/.next/server/app/api/import-batches/[id]/fix-text/route.js.nft.json +1 -0
  121. package/.next/server/app/api/import-batches/[id]/fix-text/route_client-reference-manifest.js +3 -0
  122. package/.next/server/app/api/import-batches/[id]/read/route/app-paths-manifest.json +3 -0
  123. package/.next/server/app/api/import-batches/[id]/read/route/build-manifest.json +12 -0
  124. package/.next/server/app/api/import-batches/[id]/read/route/server-reference-manifest.json +4 -0
  125. package/.next/server/app/api/import-batches/[id]/read/route.js +34 -0
  126. package/.next/server/app/api/import-batches/[id]/read/route.js.map +5 -0
  127. package/.next/server/app/api/import-batches/[id]/read/route.js.nft.json +1 -0
  128. package/.next/server/app/api/import-batches/[id]/read/route_client-reference-manifest.js +3 -0
  129. package/.next/server/app/api/import-batches/[id]/retry/route/app-paths-manifest.json +3 -0
  130. package/.next/server/app/api/import-batches/[id]/retry/route/build-manifest.json +12 -0
  131. package/.next/server/app/api/import-batches/[id]/retry/route/server-reference-manifest.json +4 -0
  132. package/.next/server/app/api/import-batches/[id]/retry/route.js +34 -0
  133. package/.next/server/app/api/import-batches/[id]/retry/route.js.map +5 -0
  134. package/.next/server/app/api/import-batches/[id]/retry/route.js.nft.json +1 -0
  135. package/.next/server/app/api/import-batches/[id]/retry/route_client-reference-manifest.js +3 -0
  136. package/.next/server/app/api/import-batches/[id]/route/app-paths-manifest.json +3 -0
  137. package/.next/server/app/api/import-batches/[id]/route/build-manifest.json +12 -0
  138. package/.next/server/app/api/import-batches/[id]/route/server-reference-manifest.json +4 -0
  139. package/.next/server/app/api/import-batches/[id]/route.js +34 -0
  140. package/.next/server/app/api/import-batches/[id]/route.js.map +5 -0
  141. package/.next/server/app/api/import-batches/[id]/route.js.nft.json +1 -0
  142. package/.next/server/app/api/import-batches/[id]/route_client-reference-manifest.js +3 -0
  143. package/.next/server/app/api/import-batches/[id]/start/route/app-paths-manifest.json +3 -0
  144. package/.next/server/app/api/import-batches/[id]/start/route/build-manifest.json +12 -0
  145. package/.next/server/app/api/import-batches/[id]/start/route/server-reference-manifest.json +4 -0
  146. package/.next/server/app/api/import-batches/[id]/start/route.js +34 -0
  147. package/.next/server/app/api/import-batches/[id]/start/route.js.map +5 -0
  148. package/.next/server/app/api/import-batches/[id]/start/route.js.nft.json +1 -0
  149. package/.next/server/app/api/import-batches/[id]/start/route_client-reference-manifest.js +3 -0
  150. package/.next/server/app/api/import-batches/route/app-paths-manifest.json +3 -0
  151. package/.next/server/app/api/import-batches/route/build-manifest.json +12 -0
  152. package/.next/server/app/api/import-batches/route/server-reference-manifest.json +4 -0
  153. package/.next/server/app/api/import-batches/route.js +34 -0
  154. package/.next/server/app/api/import-batches/route.js.map +5 -0
  155. package/.next/server/app/api/import-batches/route.js.nft.json +1 -0
  156. package/.next/server/app/api/import-batches/route_client-reference-manifest.js +3 -0
  157. package/.next/server/app/api/import-tasks/[id]/confirm/route/app-paths-manifest.json +3 -0
  158. package/.next/server/app/api/import-tasks/[id]/confirm/route/build-manifest.json +12 -0
  159. package/.next/server/app/api/import-tasks/[id]/confirm/route/server-reference-manifest.json +4 -0
  160. package/.next/server/app/api/import-tasks/[id]/confirm/route.js +33 -0
  161. package/.next/server/app/api/import-tasks/[id]/confirm/route.js.map +5 -0
  162. package/.next/server/app/api/import-tasks/[id]/confirm/route.js.nft.json +1 -0
  163. package/.next/server/app/api/import-tasks/[id]/confirm/route_client-reference-manifest.js +3 -0
  164. package/.next/server/app/api/import-tasks/[id]/read/route/app-paths-manifest.json +3 -0
  165. package/.next/server/app/api/import-tasks/[id]/read/route/build-manifest.json +12 -0
  166. package/.next/server/app/api/import-tasks/[id]/read/route/server-reference-manifest.json +4 -0
  167. package/.next/server/app/api/import-tasks/[id]/read/route.js +33 -0
  168. package/.next/server/app/api/import-tasks/[id]/read/route.js.map +5 -0
  169. package/.next/server/app/api/import-tasks/[id]/read/route.js.nft.json +1 -0
  170. package/.next/server/app/api/import-tasks/[id]/read/route_client-reference-manifest.js +3 -0
  171. package/.next/server/app/api/import-tasks/[id]/retry/route/app-paths-manifest.json +3 -0
  172. package/.next/server/app/api/import-tasks/[id]/retry/route/build-manifest.json +12 -0
  173. package/.next/server/app/api/import-tasks/[id]/retry/route/server-reference-manifest.json +4 -0
  174. package/.next/server/app/api/import-tasks/[id]/retry/route.js +33 -0
  175. package/.next/server/app/api/import-tasks/[id]/retry/route.js.map +5 -0
  176. package/.next/server/app/api/import-tasks/[id]/retry/route.js.nft.json +1 -0
  177. package/.next/server/app/api/import-tasks/[id]/retry/route_client-reference-manifest.js +3 -0
  178. package/.next/server/app/api/import-tasks/[id]/route/app-paths-manifest.json +3 -0
  179. package/.next/server/app/api/import-tasks/[id]/route/build-manifest.json +12 -0
  180. package/.next/server/app/api/import-tasks/[id]/route/server-reference-manifest.json +4 -0
  181. package/.next/server/app/api/import-tasks/[id]/route.js +33 -0
  182. package/.next/server/app/api/import-tasks/[id]/route.js.map +5 -0
  183. package/.next/server/app/api/import-tasks/[id]/route.js.nft.json +1 -0
  184. package/.next/server/app/api/import-tasks/[id]/route_client-reference-manifest.js +3 -0
  185. package/.next/server/app/api/import-tasks/route/app-paths-manifest.json +3 -0
  186. package/.next/server/app/api/import-tasks/route/build-manifest.json +12 -0
  187. package/.next/server/app/api/import-tasks/route/server-reference-manifest.json +4 -0
  188. package/.next/server/app/api/import-tasks/route.js +34 -0
  189. package/.next/server/app/api/import-tasks/route.js.map +5 -0
  190. package/.next/server/app/api/import-tasks/route.js.nft.json +1 -0
  191. package/.next/server/app/api/import-tasks/route_client-reference-manifest.js +3 -0
  192. package/.next/server/app/api/initialize/route.js +5 -4
  193. package/.next/server/app/api/initialize/route.js.nft.json +1 -1
  194. package/.next/server/app/api/logs/frontend/route.js +4 -3
  195. package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
  196. package/.next/server/app/api/minimax-code/checkin/route.js +6 -5
  197. package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
  198. package/.next/server/app/api/minimax-code/login/route.js +5 -4
  199. package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
  200. package/.next/server/app/api/minimax-code/route.js +5 -4
  201. package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
  202. package/.next/server/app/api/notebooks/[id]/retag/route.js +13 -12
  203. package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
  204. package/.next/server/app/api/notebooks/[id]/route.js +5 -4
  205. package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
  206. package/.next/server/app/api/notebooks/route.js +5 -4
  207. package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
  208. package/.next/server/app/api/openclaw/batch-upload/route.js +17 -16
  209. package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
  210. package/.next/server/app/api/paper-groups/[id]/route.js +5 -4
  211. package/.next/server/app/api/paper-groups/[id]/route.js.nft.json +1 -1
  212. package/.next/server/app/api/paper-groups/route.js +6 -5
  213. package/.next/server/app/api/paper-groups/route.js.nft.json +1 -1
  214. package/.next/server/app/api/practice/generate/route.js +14 -13
  215. package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
  216. package/.next/server/app/api/practice/grade/route.js +13 -12
  217. package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
  218. package/.next/server/app/api/practice/record/[id]/route.js +11 -10
  219. package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
  220. package/.next/server/app/api/practice/record/route.js +13 -12
  221. package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
  222. package/.next/server/app/api/reanswer/route.js +15 -14
  223. package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
  224. package/.next/server/app/api/register/route.js +6 -5
  225. package/.next/server/app/api/register/route.js.nft.json +1 -1
  226. package/.next/server/app/api/register/status/route.js +5 -4
  227. package/.next/server/app/api/register/status/route.js.nft.json +1 -1
  228. package/.next/server/app/api/requests/[id]/route.js +6 -5
  229. package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
  230. package/.next/server/app/api/review/due/route.js +15 -14
  231. package/.next/server/app/api/review/due/route.js.nft.json +1 -1
  232. package/.next/server/app/api/settings/route.js +9 -8
  233. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  234. package/.next/server/app/api/setup/route.js +6 -5
  235. package/.next/server/app/api/setup/route.js.nft.json +1 -1
  236. package/.next/server/app/api/stats/practice/clear/route.js +5 -4
  237. package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
  238. package/.next/server/app/api/stats/practice/route.js +5 -4
  239. package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
  240. package/.next/server/app/api/tags/route.js +4 -3
  241. package/.next/server/app/api/tags/route.js.nft.json +1 -1
  242. package/.next/server/app/api/tags/stats/route.js +5 -4
  243. package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
  244. package/.next/server/app/api/tags/suggestions/route.js +4 -3
  245. package/.next/server/app/api/tags/suggestions/route.js.nft.json +1 -1
  246. package/.next/server/app/api/tasks/route.js +5 -4
  247. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  248. package/.next/server/app/api/tts/[id]/route.js +8 -7
  249. package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
  250. package/.next/server/app/api/tts/batch/route.js +12 -11
  251. package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
  252. package/.next/server/app/api/tts/route.js +8 -7
  253. package/.next/server/app/api/tts/route.js.nft.json +1 -1
  254. package/.next/server/app/api/tts/status/route.js +10 -9
  255. package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
  256. package/.next/server/app/api/user/route.js +14 -13
  257. package/.next/server/app/api/user/route.js.nft.json +1 -1
  258. package/.next/server/app/api/version/route.js +3 -2
  259. package/.next/server/app/api/version/route.js.nft.json +1 -1
  260. package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
  261. package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
  262. package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
  263. package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
  264. package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
  265. package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
  266. package/.next/server/app/exams/page.js.nft.json +1 -1
  267. package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
  268. package/.next/server/app/favicon.ico/route.js +3 -2
  269. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  270. package/.next/server/app/import-batches/[id]/page/app-paths-manifest.json +3 -0
  271. package/.next/server/app/import-batches/[id]/page/build-manifest.json +22 -0
  272. package/.next/server/app/import-batches/[id]/page/next-font-manifest.json +11 -0
  273. package/.next/server/app/import-batches/[id]/page/react-loadable-manifest.json +1 -0
  274. package/.next/server/app/import-batches/[id]/page/server-reference-manifest.json +4 -0
  275. package/.next/server/app/import-batches/[id]/page.js +14 -0
  276. package/.next/server/app/import-batches/[id]/page.js.map +5 -0
  277. package/.next/server/app/import-batches/[id]/page.js.nft.json +1 -0
  278. package/.next/server/app/import-batches/[id]/page_client-reference-manifest.js +3 -0
  279. package/.next/server/app/import-tasks/[id]/page/app-paths-manifest.json +3 -0
  280. package/.next/server/app/import-tasks/[id]/page/build-manifest.json +22 -0
  281. package/.next/server/app/import-tasks/[id]/page/next-font-manifest.json +11 -0
  282. package/.next/server/app/import-tasks/[id]/page/react-loadable-manifest.json +1 -0
  283. package/.next/server/app/import-tasks/[id]/page/server-reference-manifest.json +4 -0
  284. package/.next/server/app/import-tasks/[id]/page.js +14 -0
  285. package/.next/server/app/import-tasks/[id]/page.js.map +5 -0
  286. package/.next/server/app/import-tasks/[id]/page.js.nft.json +1 -0
  287. package/.next/server/app/import-tasks/[id]/page_client-reference-manifest.js +3 -0
  288. package/.next/server/app/import-tasks/page/app-paths-manifest.json +3 -0
  289. package/.next/server/app/import-tasks/page/build-manifest.json +22 -0
  290. package/.next/server/app/import-tasks/page/next-font-manifest.json +11 -0
  291. package/.next/server/app/import-tasks/page/react-loadable-manifest.json +1 -0
  292. package/.next/server/app/import-tasks/page/server-reference-manifest.json +4 -0
  293. package/.next/server/app/import-tasks/page.js +14 -0
  294. package/.next/server/app/import-tasks/page.js.map +5 -0
  295. package/.next/server/app/import-tasks/page.js.nft.json +1 -0
  296. package/.next/server/app/import-tasks/page_client-reference-manifest.js +3 -0
  297. package/.next/server/app/initialize/page.js.nft.json +1 -1
  298. package/.next/server/app/initialize/page_client-reference-manifest.js +1 -1
  299. package/.next/server/app/login/page.js.nft.json +1 -1
  300. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  301. package/.next/server/app/manifest.webmanifest/route.js +3 -2
  302. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  303. package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
  304. package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
  305. package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
  306. package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
  307. package/.next/server/app/notebooks/page.js.nft.json +1 -1
  308. package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
  309. package/.next/server/app/page.js.nft.json +1 -1
  310. package/.next/server/app/page_client-reference-manifest.js +1 -1
  311. package/.next/server/app/practice/page.js.nft.json +1 -1
  312. package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
  313. package/.next/server/app/print-preview/page.js.nft.json +1 -1
  314. package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
  315. package/.next/server/app/register/page.js.nft.json +1 -1
  316. package/.next/server/app/register/page_client-reference-manifest.js +1 -1
  317. package/.next/server/app/review/page.js.nft.json +1 -1
  318. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  319. package/.next/server/app/setup/page.js.nft.json +1 -1
  320. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  321. package/.next/server/app/stats/page.js.nft.json +1 -1
  322. package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  323. package/.next/server/app/tags/page.js.nft.json +1 -1
  324. package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
  325. package/.next/server/app-paths-manifest.json +16 -0
  326. package/.next/server/chunks/1oeh_server_app_api_error-items_answer-space_route_actions_02_4xy5gtmofu.js +3 -0
  327. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_confirm-all_route_actions_1u0e8at9dph0_.js +3 -0
  328. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_fix-text_route_actions_0r7lg6-5j_fez.js +3 -0
  329. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_read_route_actions_1nrzqz1at4s64.js +3 -0
  330. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_retry_route_actions_1u5hn2zjw-sj-.js +3 -0
  331. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_start_route_actions_1o5tg4uk8s-ch.js +3 -0
  332. package/.next/server/chunks/1oeh_server_app_api_import-tasks_[id]_confirm_route_actions_0cj5phaug2e76.js +3 -0
  333. package/.next/server/chunks/1oeh_server_app_api_import-tasks_[id]_retry_route_actions_1g7rekf8h4rkk.js +3 -0
  334. package/.next/server/chunks/{[externals]__0c36n-dcv5nqc._.js → [externals]__0fgpzedhhntg9._.js} +1 -1
  335. package/.next/server/chunks/[externals]__14rv088xdnlo4._.js +3 -0
  336. package/.next/server/chunks/{[externals]__1lhov-pp9xqtz._.js → [externals]__1i7c9m3y35e80._.js} +1 -1
  337. package/.next/server/chunks/[root-of-the-server]__0-f1ktua0hz_g._.js +3 -0
  338. package/.next/server/chunks/{[root-of-the-server]__0455yyxule6q_._.js → [root-of-the-server]__01-14hxale6jz._.js} +1 -1
  339. package/.next/server/chunks/{[root-of-the-server]__0nw6t7u627b2m._.js → [root-of-the-server]__01mz72wf0po36._.js} +2 -2
  340. package/.next/server/chunks/{[root-of-the-server]__07uf7ctm4sjo4._.js → [root-of-the-server]__01rm65xnqj0z-._.js} +1 -1
  341. package/.next/server/chunks/{[root-of-the-server]__0n0c-mpolar22._.js → [root-of-the-server]__029n0r2v92pcc._.js} +2 -2
  342. package/.next/server/chunks/[root-of-the-server]__02ez4rqh6y7uu._.js +3 -0
  343. package/.next/server/chunks/{[root-of-the-server]__1d1gxff_c2o28._.js → [root-of-the-server]__02jcq4nj_tb6l._.js} +2 -2
  344. package/.next/server/chunks/{[root-of-the-server]__06lmwv-4d1slg._.js → [root-of-the-server]__02nbzp-n9g9_o._.js} +1 -1
  345. package/.next/server/chunks/{[root-of-the-server]__0hm2dh8ziz93k._.js → [root-of-the-server]__02oqd6w58wymi._.js} +1 -1
  346. package/.next/server/chunks/[root-of-the-server]__04pdmyloqh744._.js +5 -0
  347. package/.next/server/chunks/{[root-of-the-server]__0_ahztuh3lr_n._.js → [root-of-the-server]__05tyrbfzivoeq._.js} +1 -1
  348. package/.next/server/chunks/[root-of-the-server]__06jad9cnzeci-._.js +3 -0
  349. package/.next/server/chunks/{[root-of-the-server]__0os8s3dtzx4gi._.js → [root-of-the-server]__08aldp-j0e_op._.js} +2 -2
  350. package/.next/server/chunks/[root-of-the-server]__08crf3zxl7fnv._.js +3 -0
  351. package/.next/server/chunks/{[root-of-the-server]__0m8bcdajibej0._.js → [root-of-the-server]__092b1e081ocu6._.js} +1 -1
  352. package/.next/server/chunks/{[root-of-the-server]__0vz0xv_w6vbpq._.js → [root-of-the-server]__092h03ec6f_1u._.js} +1 -1
  353. package/.next/server/chunks/{[root-of-the-server]__12fkzjxvspcin._.js → [root-of-the-server]__094fb72-14c6v._.js} +1 -1
  354. package/.next/server/chunks/{[root-of-the-server]__1fj6upsvfxy4r._.js → [root-of-the-server]__0_fisu5brhyk_._.js} +1 -1
  355. package/.next/server/chunks/[root-of-the-server]__0_uvtfu0yr-na._.js +4 -4
  356. package/.next/server/chunks/[root-of-the-server]__0a13lncff9jx-._.js +3 -0
  357. package/.next/server/chunks/{[root-of-the-server]__1m8b6why7f1uj._.js → [root-of-the-server]__0a5qx2roo_50n._.js} +2 -2
  358. package/.next/server/chunks/{[root-of-the-server]__14wezz97rhtz9._.js → [root-of-the-server]__0ahnj8vp1pywj._.js} +2 -2
  359. package/.next/server/chunks/[root-of-the-server]__0b5mh_vi6e246._.js +3 -0
  360. package/.next/server/chunks/[root-of-the-server]__0b5qyqwq6mk5v._.js +3 -0
  361. package/.next/server/chunks/[root-of-the-server]__0b79cd6lae7ep._.js +3 -0
  362. package/.next/server/chunks/{[root-of-the-server]__0sxr-ing62eg7._.js → [root-of-the-server]__0bmczgpuggwki._.js} +1 -1
  363. package/.next/server/chunks/[root-of-the-server]__0cu5jz9b3f0i1._.js +3 -0
  364. package/.next/server/chunks/[root-of-the-server]__0d31vt-7stly0._.js +3 -0
  365. package/.next/server/chunks/[root-of-the-server]__0d818ux928r5h._.js +3 -0
  366. package/.next/server/chunks/[root-of-the-server]__0dclcdg0hwxxj._.js +3 -0
  367. package/.next/server/chunks/{[root-of-the-server]__0u36j_9ml4et6._.js → [root-of-the-server]__0ddvoqy3a719u._.js} +1 -1
  368. package/.next/server/chunks/[root-of-the-server]__0e13o3ny66zb3._.js +3 -0
  369. package/.next/server/chunks/{[root-of-the-server]__0xqsrh251_yms._.js → [root-of-the-server]__0eba9rni-2_tw._.js} +1 -1
  370. package/.next/server/chunks/{[root-of-the-server]__18uhupcdidftm._.js → [root-of-the-server]__0fnte1x8xdn5o._.js} +1 -1
  371. package/.next/server/chunks/{[root-of-the-server]__11ztapi1pi7j-._.js → [root-of-the-server]__0fx0s5_6sjw-d._.js} +1 -1
  372. package/.next/server/chunks/[root-of-the-server]__0gphporvvjc0d._.js +3 -0
  373. package/.next/server/chunks/[root-of-the-server]__0h3er81lqy7-3._.js +3 -0
  374. package/.next/server/chunks/{[root-of-the-server]__1ptzu7aqoga2n._.js → [root-of-the-server]__0hcbw1sliw973._.js} +2 -2
  375. package/.next/server/chunks/[root-of-the-server]__0hy5-7_ikat1_._.js +3 -0
  376. package/.next/server/chunks/[root-of-the-server]__0i2mt6zjxbq--._.js +3 -0
  377. package/.next/server/chunks/[root-of-the-server]__0ijmyxflggama._.js +3 -0
  378. package/.next/server/chunks/[root-of-the-server]__0ijq_d0gr5zo8._.js +3 -0
  379. package/.next/server/chunks/{[root-of-the-server]__1f_lrxzw_n-6-._.js → [root-of-the-server]__0ik-49062qe6v._.js} +2 -2
  380. package/.next/server/chunks/[root-of-the-server]__0iqp1f0-yvbhw._.js +3 -0
  381. package/.next/server/chunks/[root-of-the-server]__0j-1ri4yahq6t._.js +3 -0
  382. package/.next/server/chunks/[root-of-the-server]__0k0c90ih7n0te._.js +3 -0
  383. package/.next/server/chunks/{[root-of-the-server]__18z_cczwqkonn._.js → [root-of-the-server]__0kehix4ojdnhw._.js} +2 -2
  384. package/.next/server/chunks/{[root-of-the-server]__145w7mwgp8ujm._.js → [root-of-the-server]__0l30p58xnmw13._.js} +2 -2
  385. package/.next/server/chunks/[root-of-the-server]__0maxg52nxqrzi._.js +3 -0
  386. package/.next/server/chunks/[root-of-the-server]__0ml-m3il4unb6._.js +3 -0
  387. package/.next/server/chunks/[root-of-the-server]__0nujsu6qbn-8o._.js +4 -4
  388. package/.next/server/chunks/{[root-of-the-server]__1oedx4ko_1hl9._.js → [root-of-the-server]__0ob0n0xzc2--7._.js} +2 -2
  389. package/.next/server/chunks/{[root-of-the-server]__0rnr17a382rjx._.js → [root-of-the-server]__0opuw_bsktcnc._.js} +2 -2
  390. package/.next/server/chunks/{[root-of-the-server]__12cpc3g7-oi86._.js → [root-of-the-server]__0ptn9j1rleieh._.js} +1 -1
  391. package/.next/server/chunks/[root-of-the-server]__0rwxa2doabk45._.js +3 -0
  392. package/.next/server/chunks/[root-of-the-server]__0s-etfexh0i4a._.js +3 -0
  393. package/.next/server/chunks/[root-of-the-server]__0u3m78xhq8b3l._.js +3 -0
  394. package/.next/server/chunks/{[root-of-the-server]__08t21dbk1cidn._.js → [root-of-the-server]__0v5o3aoha3nct._.js} +2 -2
  395. package/.next/server/chunks/{[root-of-the-server]__18nv1yn5xh03v._.js → [root-of-the-server]__0w53aflmo1keg._.js} +2 -2
  396. package/.next/server/chunks/[root-of-the-server]__0wdjzoxwwh6bn._.js +3 -0
  397. package/.next/server/chunks/[root-of-the-server]__0wj82qshtrskw._.js +3 -0
  398. package/.next/server/chunks/[root-of-the-server]__0wx65sza19ou-._.js +3 -0
  399. package/.next/server/chunks/[root-of-the-server]__0xasoo-1cispc._.js +3 -0
  400. package/.next/server/chunks/{[root-of-the-server]__00kq2qcxfg-kq._.js → [root-of-the-server]__0xnu_7ck-z9do._.js} +2 -2
  401. package/.next/server/chunks/{[root-of-the-server]__0ym21tuxqrmc4._.js → [root-of-the-server]__0yv_kznxz5qzn._.js} +2 -2
  402. package/.next/server/chunks/[root-of-the-server]__0zldj8zxo-hvc._.js +3 -0
  403. package/.next/server/chunks/[root-of-the-server]__109pj952qxtan._.js +3 -0
  404. package/.next/server/chunks/[root-of-the-server]__121tnm6bol8ow._.js +3 -0
  405. package/.next/server/chunks/[root-of-the-server]__12u4jc5x2ss9k._.js +3 -0
  406. package/.next/server/chunks/[root-of-the-server]__13_k7w8nrx7ie._.js +1 -1
  407. package/.next/server/chunks/[root-of-the-server]__13ofz2qkhwdmd._.js +3 -0
  408. package/.next/server/chunks/{[root-of-the-server]__00jyo3io99_dn._.js → [root-of-the-server]__14jpfgwnpc9gl._.js} +2 -2
  409. package/.next/server/chunks/[root-of-the-server]__14m8fewwq1xs6._.js +3 -0
  410. package/.next/server/chunks/[root-of-the-server]__1679e_8h0w86j._.js +3 -0
  411. package/.next/server/chunks/[root-of-the-server]__18tzik6wyd5b2._.js +3 -0
  412. package/.next/server/chunks/[root-of-the-server]__196oikyiyhn_9._.js +3 -0
  413. package/.next/server/chunks/[root-of-the-server]__19qwvtmhzhh9_._.js +3 -0
  414. package/.next/server/chunks/[root-of-the-server]__19wv3dxe-dx43._.js +3 -0
  415. package/.next/server/chunks/[root-of-the-server]__1asgy7sah0mo6._.js +3 -0
  416. package/.next/server/chunks/[root-of-the-server]__1av1l48rnghpa._.js +3 -0
  417. package/.next/server/chunks/[root-of-the-server]__1azlmjwymm3nj._.js +3 -0
  418. package/.next/server/chunks/{[root-of-the-server]__1v1p83o4ygnyt._.js → [root-of-the-server]__1c5_00hz3u1z7._.js} +2 -2
  419. package/.next/server/chunks/[root-of-the-server]__1dom1le7wqh7d._.js +3 -0
  420. package/.next/server/chunks/{[root-of-the-server]__0btfk_sy3o9wa._.js → [root-of-the-server]__1drs4rr5x286d._.js} +1 -1
  421. package/.next/server/chunks/[root-of-the-server]__1dtpezu7cisnu._.js +3 -0
  422. package/.next/server/chunks/[root-of-the-server]__1eli1ues3akzx._.js +3 -0
  423. package/.next/server/chunks/[root-of-the-server]__1fe2v2mv5-rgo._.js +3 -0
  424. package/.next/server/chunks/[root-of-the-server]__1g6jrwm72xr8a._.js +3 -0
  425. package/.next/server/chunks/{[root-of-the-server]__1zwat9xocdoqz._.js → [root-of-the-server]__1h545soby66hi._.js} +1 -1
  426. package/.next/server/chunks/[root-of-the-server]__1hk5kgctlp2wn._.js +3 -0
  427. package/.next/server/chunks/[root-of-the-server]__1ixotu0p11op8._.js +3 -0
  428. package/.next/server/chunks/[root-of-the-server]__1j0l1jz1c3mpt._.js +3 -0
  429. package/.next/server/chunks/[root-of-the-server]__1k4pnhbw4rgzs._.js +3 -0
  430. package/.next/server/chunks/[root-of-the-server]__1lea5m7hl1n7f._.js +3 -0
  431. package/.next/server/chunks/[root-of-the-server]__1ll7fod21jjr6._.js +3 -0
  432. package/.next/server/chunks/[root-of-the-server]__1m7pja8jp27eh._.js +3 -0
  433. package/.next/server/chunks/[root-of-the-server]__1nv28fsr0vd5p._.js +3 -0
  434. package/.next/server/chunks/[root-of-the-server]__1o_zqaie6w0vc._.js +3 -0
  435. package/.next/server/chunks/[root-of-the-server]__1q-7krekgvk1w._.js +3 -0
  436. package/.next/server/chunks/[root-of-the-server]__1rqu8zxkn8yj1._.js +3 -0
  437. package/.next/server/chunks/[root-of-the-server]__1ruzcenko2gi1._.js +3 -0
  438. package/.next/server/chunks/{[root-of-the-server]__1o9pbkx7ejxu0._.js → [root-of-the-server]__1s-y00c3-nc_-._.js} +1 -1
  439. package/.next/server/chunks/[root-of-the-server]__1seev7pmug-hj._.js +3 -0
  440. package/.next/server/chunks/{[root-of-the-server]__1n21o3aq7pxla._.js → [root-of-the-server]__1t6aypqxgjkg_._.js} +2 -2
  441. package/.next/server/chunks/[root-of-the-server]__1to25zgnk7xk-._.js +3 -0
  442. package/.next/server/chunks/[root-of-the-server]__1vbof6uu4he_-._.js +3 -0
  443. package/.next/server/chunks/[root-of-the-server]__1xkmo8s1c258u._.js +3 -0
  444. package/.next/server/chunks/{[root-of-the-server]__0kmy5264opoz7._.js → [root-of-the-server]__1z56ua9u9hadc._.js} +2 -2
  445. package/.next/server/chunks/[root-of-the-server]__1zc0bmdyn1lg4._.js +3 -0
  446. package/.next/server/chunks/[root-of-the-server]__207c97dbcdb0z._.js +3 -0
  447. package/.next/server/chunks/[root-of-the-server]__20cdqectwle3j._.js +3 -0
  448. package/.next/server/chunks/[root-of-the-server]__20dy4zclqbnw8._.js +3 -0
  449. package/.next/server/chunks/_01bayc6kg7upi._.js +3 -0
  450. package/.next/server/chunks/{_10tpt8iizl4v3._.js → _03dn7v_h3d-v8._.js} +8 -5
  451. package/.next/server/chunks/{_1dvka-waihfum._.js → _043-r529chcri._.js} +8 -5
  452. package/.next/server/chunks/_0431fxnqiloso._.js +1 -1
  453. package/.next/server/chunks/_04rjm4ctjqrba._.js +3 -0
  454. package/.next/server/chunks/_05ans30vcd4s-._.js +3 -0
  455. package/.next/server/chunks/_0_rhee7wb6tcg._.js +1 -1
  456. package/.next/server/chunks/_0ge95_bkwrkmc._.js +3 -0
  457. package/.next/server/chunks/_0lmh33cdt_1fr._.js +3 -0
  458. package/.next/server/chunks/_0pzdohc1mz5ts._.js +3 -0
  459. package/.next/server/chunks/_0suqhfy3e5sv6._.js +3 -0
  460. package/.next/server/chunks/_0xv7-7d6dyo9-._.js +3 -0
  461. package/.next/server/chunks/{_1wulydy4wg9ow._.js → _0xx4y9tk1qclc._.js} +2 -2
  462. package/.next/server/chunks/_0ymqtnritje40._.js +3 -0
  463. package/.next/server/chunks/_1-6i59jd1zhly._.js +11 -0
  464. package/.next/server/chunks/_12w5k19rc45j_._.js +1 -1
  465. package/.next/server/chunks/_1647rfjflw_iq._.js +3 -0
  466. package/.next/server/chunks/_1a1udq0c4_6ad._.js +1 -1
  467. package/.next/server/chunks/_1duugm0s3-6nw._.js +3 -0
  468. package/.next/server/chunks/_1gdet1v2zk2gy._.js +3 -0
  469. package/.next/server/chunks/_1hvmjv_7xksea._.js +3 -0
  470. package/.next/server/chunks/_1j10upti9l6da._.js +3 -0
  471. package/.next/server/chunks/{_11_p1ahjjply_._.js → _1pvqo-qnv-nqm._.js} +2 -2
  472. package/.next/server/chunks/{_0dicq393_0h3i._.js → _1rreh3rgx8xan._.js} +1 -1
  473. package/.next/server/chunks/_1s5-ldt8xhtpp._.js +1 -1
  474. package/.next/server/chunks/_1s55l1bx-1cxp._.js +3 -0
  475. package/.next/server/chunks/_1srq5kxah38r6._.js +3 -0
  476. package/.next/server/chunks/_1tahh9ric8la3._.js +3 -0
  477. package/.next/server/chunks/_1tvl0cm629nyc._.js +3 -0
  478. package/.next/server/chunks/_next-internal_server_app_api_import-batches_[id]_route_actions_0_mc245t1pbwl.js +3 -0
  479. package/.next/server/chunks/_next-internal_server_app_api_import-batches_route_actions_0pi56cpanyvac.js +3 -0
  480. package/.next/server/chunks/_next-internal_server_app_api_import-tasks_[id]_read_route_actions_116wza5ukp0c2.js +3 -0
  481. package/.next/server/chunks/_next-internal_server_app_api_import-tasks_[id]_route_actions_1fvi-v9pgzuli.js +3 -0
  482. package/.next/server/chunks/_next-internal_server_app_api_import-tasks_route_actions_0d08bh7zurcp_.js +3 -0
  483. package/.next/server/chunks/node_modules_next_dist_0n2og9jackhd2._.js +54 -0
  484. package/.next/server/chunks/src_0bhf345rd7jho._.js +1 -1
  485. package/.next/server/chunks/src_lib_0_g_0q-n01g-x._.js +3 -0
  486. package/.next/server/chunks/src_lib_10is5pyogge95._.js +1 -1
  487. package/.next/server/chunks/src_lib_12j7n__96zd0q._.js +3 -0
  488. package/.next/server/chunks/src_lib_1_m3-y2t3e4xi._.js +80 -27
  489. package/.next/server/chunks/src_lib_1qvj-3jt4jbq7._.js +3 -0
  490. package/.next/server/chunks/src_lib_1xdguwkq8k_gz._.js +3 -0
  491. package/.next/server/chunks/src_lib_constants_pagination_ts_0tz3fg9ib3b-w._.js +1 -1
  492. package/.next/server/chunks/src_lib_import-batches_ts_0aekmggdwo_9-._.js +3 -0
  493. package/.next/server/chunks/src_lib_import-tasks_ts_1f4ejsy00-v1t._.js +3 -0
  494. package/.next/server/chunks/src_lib_question-analysis_ts_15_8r_pxmtd06._.js +3 -0
  495. package/.next/server/chunks/src_lib_question-deduplication_ts_1p1bik-vwl9ue._.js +1 -1
  496. package/.next/server/chunks/src_lib_tag-hierarchy_ts_1illun--8v3_9._.js +3 -0
  497. package/.next/server/chunks/ssr/{[root-of-the-server]__0_eqpxqkvkrs_._.js → [root-of-the-server]__00_c9kpvx5075._.js} +1 -1
  498. package/.next/server/chunks/ssr/[root-of-the-server]__0_bi5ljcm1i1c._.js +3 -0
  499. package/.next/server/chunks/ssr/[root-of-the-server]__0r_5r-242wwqy._.js +3 -0
  500. package/.next/server/chunks/ssr/{[root-of-the-server]__0d4mrtd9tdni-._.js → [root-of-the-server]__0vgnixmnie9dg._.js} +1 -1
  501. package/.next/server/chunks/ssr/[root-of-the-server]__1l68oxzjvj18_._.js +3 -0
  502. package/.next/server/chunks/ssr/[root-of-the-server]__1mrj6vygoasvv._.js +3 -0
  503. package/.next/server/chunks/ssr/{[root-of-the-server]__1eu3xw3zls5xt._.js → [root-of-the-server]__1o5pa8m50qyqa._.js} +1 -1
  504. package/.next/server/chunks/ssr/[root-of-the-server]__1ynp6nm1gttsf._.js +3 -0
  505. package/.next/server/chunks/ssr/[root-of-the-server]__1zupg0zigit-2._.js +3 -0
  506. package/.next/server/chunks/ssr/[root-of-the-server]__2019hdxvtb4e0._.js +3 -0
  507. package/.next/server/chunks/ssr/_05szyj465au6e._.js +3 -0
  508. package/.next/server/chunks/ssr/_0cmd1ubdlo_by._.js +1 -1
  509. package/.next/server/chunks/ssr/_0f2k-q7kimi4o._.js +3 -0
  510. package/.next/server/chunks/ssr/_0ks-0g-tu__3m._.js +3 -0
  511. package/.next/server/chunks/ssr/_0lzeodofsq9pe._.js +1 -1
  512. package/.next/server/chunks/ssr/_0mvuvawj5-r--._.js +3 -0
  513. package/.next/server/chunks/ssr/_0nt5dm7rmsp4f._.js +3 -0
  514. package/.next/server/chunks/ssr/{_07-atqwd3wqya._.js → _0oslwj90y-3j0._.js} +1 -1
  515. package/.next/server/chunks/ssr/_0ozptnii2nxuw._.js +1 -1
  516. package/.next/server/chunks/ssr/_0s318kewgu2zg._.js +3 -0
  517. package/.next/server/chunks/ssr/_0ueequ0gysrs-._.js +3 -0
  518. package/.next/server/chunks/ssr/_15fdum1ye-k0z._.js +3 -0
  519. package/.next/server/chunks/ssr/_186fwf-hcr_ua._.js +8 -0
  520. package/.next/server/chunks/ssr/_19hxsrrruepym._.js +3 -0
  521. package/.next/server/chunks/ssr/{_1l_v9_8-5wv_d._.js → _1b8cip9y91_br._.js} +1 -1
  522. package/.next/server/chunks/ssr/_1hbrn0tcfh7hd._.js +3 -0
  523. package/.next/server/chunks/ssr/_1j3yr2arbxd6a._.js +3 -0
  524. package/.next/server/chunks/ssr/_1pdnzaad7hk0d._.js +8 -0
  525. package/.next/server/chunks/ssr/_1qgg_ll5hkjaf._.js +1 -9
  526. package/.next/server/chunks/ssr/_1ujx-n3muyaxs._.js +32 -0
  527. package/.next/server/chunks/ssr/_1ux6eqqkupo6v._.js +1 -9
  528. package/.next/server/chunks/ssr/_1w1qijzykerpu._.js +3 -0
  529. package/.next/server/chunks/ssr/_next-internal_server_app_import-batches_[id]_page_actions_1hnz0a7dq8meb.js +3 -0
  530. package/.next/server/chunks/ssr/_next-internal_server_app_import-tasks_[id]_page_actions_0ln1lwiey8bbi.js +3 -0
  531. package/.next/server/chunks/ssr/_next-internal_server_app_import-tasks_page_actions_1h7cqbj1cojed.js +3 -0
  532. package/.next/server/chunks/ssr/node_modules_05hncuf8243qe._.js +3 -0
  533. package/.next/server/chunks/ssr/node_modules_0b0fwrqs9v-g1._.js +3 -0
  534. package/.next/server/chunks/ssr/node_modules_11z4lth_9u_hn._.js +2 -2
  535. package/.next/server/chunks/ssr/node_modules_17lx40fyvpom3._.js +3 -0
  536. package/.next/server/chunks/ssr/node_modules_@radix-ui_1i8eumxju2gpw._.js +3 -0
  537. package/.next/server/chunks/ssr/node_modules_heic-to_dist_csp_heic-to_1a1i_ppryp81y.js +3 -0
  538. package/.next/server/chunks/ssr/node_modules_heic-to_dist_csp_heic-to_1myi81wrj4gw4.js +3 -0
  539. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_06p81-gtz_2cm._.js +3 -0
  540. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1bq471wvtkwrl._.js +3 -0
  541. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0-4c5fuxx178f.js +3 -0
  542. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0d5g5-w_y282q.js +3 -0
  543. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0pdc0gl8iqtfa.js +3 -0
  544. package/.next/server/chunks/ssr/node_modules_react-image-crop_dist_index_0khmp4mv3j9zr.js +3 -0
  545. package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_0n-w9zu3b6q41.js +57 -0
  546. package/.next/server/chunks/ssr/src_app_error-items_[id]_page_tsx_04xwwdmyh7_9q._.js +1 -1
  547. package/.next/server/chunks/ssr/src_app_exams_[id]_print_page_tsx_1i-xvhk8ul1l1._.js +6 -6
  548. package/.next/server/chunks/ssr/src_app_import-batches_[id]_page_tsx_0mhg_vriwmkkw._.js +3 -0
  549. package/.next/server/chunks/ssr/src_app_import-tasks_[id]_page_tsx_0_grj11-jdqqc._.js +3 -0
  550. package/.next/server/chunks/ssr/src_app_import-tasks_page_tsx_01983hytm-x08._.js +3 -0
  551. package/.next/server/chunks/ssr/src_app_notebooks_[id]_add_page_tsx_179tow1ql6vc_._.js +1 -1
  552. package/.next/server/chunks/ssr/src_app_page_tsx_1chiuahujsxm1._.js +1 -1
  553. package/.next/server/chunks/ssr/src_app_print-preview_page_tsx_001yt-fzrj7tf._.js +1 -1
  554. package/.next/server/chunks/ssr/src_components_correction-editor_tsx_1p7z02t66tndx._.js +6 -0
  555. package/.next/server/chunks/ssr/src_components_image-cropper_tsx_0pcp8-ifruyx-._.js +3 -0
  556. package/.next/server/chunks/ssr/src_components_import-tasks_import-task-card_tsx_01r47qh8ryspb._.js +3 -0
  557. package/.next/server/chunks/ssr/src_components_print-preview_answer-space-control_tsx_02kuswyxklzp_._.js +1 -31
  558. package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +10 -64
  559. package/.next/server/chunks/ssr/src_lib_question-split_text_ts_0h4uz23xrlybm._.js +6 -0
  560. package/.next/server/middleware-build-manifest.js +36 -3
  561. package/.next/server/next-font-manifest.js +1 -1
  562. package/.next/server/next-font-manifest.json +12 -0
  563. package/.next/server/pages/500.html +1 -1
  564. package/.next/server/preview-props.json +3 -3
  565. package/.next/server/server-reference-manifest.js +1 -1
  566. package/.next/server/server-reference-manifest.json +1 -1
  567. package/.next/static/chunks/02wft51kf3t9f.js +1 -0
  568. package/.next/static/chunks/0_ar7dth9hybc.js +1 -0
  569. package/.next/static/chunks/0p6ox1l56khn2.js +3 -0
  570. package/.next/static/chunks/0x9-b30mhne-_.js +1 -0
  571. package/.next/static/chunks/{1g13qcek7-0du.js → 16h0nz5l970cx.js} +1 -1
  572. package/.next/static/chunks/1746y345zti-9.js +33 -0
  573. package/.next/static/chunks/1d0ltu2dk4a0v.js +1 -0
  574. package/.next/static/chunks/1hwk1kmheoccm.js +9 -0
  575. package/.next/static/chunks/1qj8u6q02qbty.js +1 -0
  576. package/.next/static/chunks/1rvm9ttct-w2q.css +3 -0
  577. package/.next/static/chunks/1upvap68fad8i.js +1 -0
  578. package/.next/static/chunks/21-zw9_-z7wy0.js +1 -0
  579. package/.next/static/chunks/210o9wkszynk8.js +55 -0
  580. package/.next/static/chunks/2467o8uezj--l.js +12 -0
  581. package/.next/static/chunks/26_q5epdikurm.js +1 -0
  582. package/.next/static/chunks/289znh7431pug.js +1 -0
  583. package/.next/static/chunks/2hh64gi4pmlk2.js +1 -0
  584. package/.next/static/chunks/2ic9ath-r3jvf.js +193 -0
  585. package/.next/static/chunks/2q9dw_3pa6om0.js +12 -0
  586. package/.next/static/chunks/3-se55-6uc0mx.js +2 -0
  587. package/.next/static/chunks/31-r0kqqw-wfd.js +6 -0
  588. package/.next/static/chunks/344kc1rli8fy-.js +1 -0
  589. package/.next/static/chunks/38fux_rbsoiif.js +1 -0
  590. package/.next/static/chunks/38vt_4ntvy02e.js +1 -0
  591. package/.next/static/chunks/3c3cp7uzfhnyr.js +1 -0
  592. package/.next/static/chunks/3gy-_kb72v5lr.js +1 -0
  593. package/.next/static/chunks/3jvftad10pwwg.js +9 -0
  594. package/.next/static/chunks/3lsj4waqfw7eq.js +1 -0
  595. package/.next/static/chunks/3wr-25ch-9chk.js +1 -0
  596. package/.next/static/chunks/4441xuc3i-yb7.js +1 -0
  597. package/package.json +1 -1
  598. package/prisma/migrations/20261102102339_add_custom_answer_space/migration.sql +5 -0
  599. package/prisma/migrations/20261103011313_add_import_tasks/migration.sql +37 -0
  600. package/prisma/migrations/20261103052754_add_import_batches/migration.sql +79 -0
  601. package/prisma/schema.prisma +77 -0
  602. package/prisma/seed.db +0 -0
  603. package/public/third-party-licenses/heic-to/GPL-3.0.txt +674 -0
  604. package/public/third-party-licenses/heic-to/NOTICE.txt +76 -0
  605. package/public/third-party-licenses/heic-to/emscripten-LICENSE.txt +102 -0
  606. package/public/third-party-licenses/heic-to/heic-to-LICENSE.txt +177 -0
  607. package/public/third-party-licenses/heic-to/libde265-1.0.16-COPYING.txt +871 -0
  608. package/public/third-party-licenses/heic-to/libheif-1.23.6-COPYING.txt +871 -0
  609. package/.next/server/chunks/[root-of-the-server]__01nvw5ogtwc0h._.js +0 -3
  610. package/.next/server/chunks/[root-of-the-server]__02dkbynj2vxld._.js +0 -3
  611. package/.next/server/chunks/[root-of-the-server]__05n74a-t4yfhk._.js +0 -3
  612. package/.next/server/chunks/[root-of-the-server]__05u_glm0nzz-u._.js +0 -3
  613. package/.next/server/chunks/[root-of-the-server]__0c2729fcpi3-x._.js +0 -3
  614. package/.next/server/chunks/[root-of-the-server]__0gaai286hkspk._.js +0 -3
  615. package/.next/server/chunks/[root-of-the-server]__0jy-eooky8kei._.js +0 -3
  616. package/.next/server/chunks/[root-of-the-server]__0kljn4jodzvqk._.js +0 -3
  617. package/.next/server/chunks/[root-of-the-server]__0pn5idap1logb._.js +0 -3
  618. package/.next/server/chunks/[root-of-the-server]__0tflqqgyujt1r._.js +0 -3
  619. package/.next/server/chunks/[root-of-the-server]__0z99q93n88cro._.js +0 -3
  620. package/.next/server/chunks/[root-of-the-server]__1-g1cu85bv1bg._.js +0 -3
  621. package/.next/server/chunks/[root-of-the-server]__1-hfmp3groi95._.js +0 -56
  622. package/.next/server/chunks/[root-of-the-server]__10l89psqaisak._.js +0 -3
  623. package/.next/server/chunks/[root-of-the-server]__1236d6g1_51pt._.js +0 -3
  624. package/.next/server/chunks/[root-of-the-server]__12_laap0hyw4p._.js +0 -3
  625. package/.next/server/chunks/[root-of-the-server]__13pd8ofsmrv7k._.js +0 -3
  626. package/.next/server/chunks/[root-of-the-server]__13zeb46abilr5._.js +0 -3
  627. package/.next/server/chunks/[root-of-the-server]__142g4s902bza-._.js +0 -3
  628. package/.next/server/chunks/[root-of-the-server]__1460_07yt08m0._.js +0 -3
  629. package/.next/server/chunks/[root-of-the-server]__15mf1z85mft8d._.js +0 -3
  630. package/.next/server/chunks/[root-of-the-server]__15ypu4q7xi8ig._.js +0 -3
  631. package/.next/server/chunks/[root-of-the-server]__1610s5zvyss1k._.js +0 -3
  632. package/.next/server/chunks/[root-of-the-server]__16864lw9bhmwl._.js +0 -3
  633. package/.next/server/chunks/[root-of-the-server]__19a62id_4lwka._.js +0 -3
  634. package/.next/server/chunks/[root-of-the-server]__1b42xh9458czy._.js +0 -3
  635. package/.next/server/chunks/[root-of-the-server]__1dreyiratyfvo._.js +0 -3
  636. package/.next/server/chunks/[root-of-the-server]__1elqmd_7a9bto._.js +0 -3
  637. package/.next/server/chunks/[root-of-the-server]__1gvnk0s0_zrpo._.js +0 -3
  638. package/.next/server/chunks/[root-of-the-server]__1hwftfenrsu3p._.js +0 -3
  639. package/.next/server/chunks/[root-of-the-server]__1lafe11jnkmlv._.js +0 -3
  640. package/.next/server/chunks/[root-of-the-server]__1m1wi2f60x1fk._.js +0 -3
  641. package/.next/server/chunks/[root-of-the-server]__1o-0-f8rlbavp._.js +0 -3
  642. package/.next/server/chunks/[root-of-the-server]__1r7wz_id6mvlj._.js +0 -3
  643. package/.next/server/chunks/[root-of-the-server]__1r_x7moz0opqt._.js +0 -3
  644. package/.next/server/chunks/[root-of-the-server]__1rx3b8m_g_p57._.js +0 -3
  645. package/.next/server/chunks/[root-of-the-server]__1wh65tfd7apxx._.js +0 -3
  646. package/.next/server/chunks/[root-of-the-server]__1wsyku681k2uq._.js +0 -3
  647. package/.next/server/chunks/[root-of-the-server]__1ximu6k5bljjj._.js +0 -3
  648. package/.next/server/chunks/[root-of-the-server]__1yrozlry-psmk._.js +0 -3
  649. package/.next/server/chunks/[root-of-the-server]__20jkc-_5uj_zc._.js +0 -3
  650. package/.next/server/chunks/_03udbqs8_z944._.js +0 -3
  651. package/.next/server/chunks/_1_ns7o3cqznv6._.js +0 -3
  652. package/.next/server/chunks/_1rr_juv5pj1at._.js +0 -3
  653. package/.next/server/chunks/_1upqhtax8p96-._.js +0 -3
  654. package/.next/server/chunks/src_lib_0ximwux0rcb__._.js +0 -3
  655. package/.next/server/chunks/src_lib_1wm8ay-jqxakc._.js +0 -3
  656. package/.next/server/chunks/ssr/[root-of-the-server]__0mf_ugip8jvfl._.js +0 -3
  657. package/.next/server/chunks/ssr/[root-of-the-server]__1jhmaiw3yp6gx._.js +0 -3
  658. package/.next/server/chunks/ssr/[root-of-the-server]__1x6b2a-bbo2py._.js +0 -3
  659. package/.next/server/chunks/ssr/_02zfjls23g-o4._.js +0 -3
  660. package/.next/server/chunks/ssr/_0j4vduk13imjn._.js +0 -3
  661. package/.next/server/chunks/ssr/_0ltqx22v65imo._.js +0 -32
  662. package/.next/server/chunks/ssr/_0tr-7klbcz1r7._.js +0 -3
  663. package/.next/server/chunks/ssr/_0yrywyu_og4rx._.js +0 -3
  664. package/.next/server/chunks/ssr/_1-i5cy964i_s9._.js +0 -3
  665. package/.next/server/chunks/ssr/_1-z85ugzufqk6._.js +0 -3
  666. package/.next/server/chunks/ssr/_10stgw6io7x93._.js +0 -3
  667. package/.next/server/chunks/ssr/_11xqn1cgzpe6k._.js +0 -3
  668. package/.next/server/chunks/ssr/_1cc3psc9rvrwn._.js +0 -3
  669. package/.next/server/chunks/ssr/_1hp7fzio98dms._.js +0 -3
  670. package/.next/server/chunks/ssr/node_modules_0efju2pv0_0yw._.js +0 -3
  671. package/.next/static/chunks/01lfibj7hk--1.js +0 -1
  672. package/.next/static/chunks/06bfusm1eqhzt.js +0 -4
  673. package/.next/static/chunks/0fu1xttg42yzk.js +0 -1
  674. package/.next/static/chunks/0mp9tvylhyxid.js +0 -1
  675. package/.next/static/chunks/0xuzdy0dn7jkp.js +0 -63
  676. package/.next/static/chunks/1fa2xv93zl8oj.js +0 -1
  677. package/.next/static/chunks/1ou17klnb8gu_.js +0 -1
  678. package/.next/static/chunks/21v7--q2m3c4_.js +0 -1
  679. package/.next/static/chunks/22gdddnfj38h6.js +0 -1
  680. package/.next/static/chunks/2btkflolmab19.css +0 -3
  681. package/.next/static/chunks/2dml0yrklxocr.js +0 -31
  682. package/.next/static/chunks/2hjp9cnvepyzy.js +0 -247
  683. package/.next/static/chunks/2mu8zu6zd59z2.js +0 -1
  684. package/.next/static/chunks/2xibor-sxcc67.js +0 -1
  685. package/.next/static/chunks/3_e_larybjcr5.js +0 -1
  686. package/.next/static/chunks/3au-yz7ullfnr.js +0 -9
  687. package/.next/static/chunks/3zs0fu6zcu0lb.js +0 -1
  688. /package/.next/static/{-4YWb-OtqvHBsA28MaEog → vcaSyuwRLyplMa8bkQEcE}/_buildManifest.js +0 -0
  689. /package/.next/static/{-4YWb-OtqvHBsA28MaEog → vcaSyuwRLyplMa8bkQEcE}/_clientMiddlewareManifest.js +0 -0
  690. /package/.next/static/{-4YWb-OtqvHBsA28MaEog → vcaSyuwRLyplMa8bkQEcE}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[771706,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(50944),e=a.i(536670),f=a.i(699570),g=a.i(695001),h=a.i(550194);function i({items:a,selectedIds:c,selectedCount:d,onToggle:e,onSelectAll:g,onClear:j}){let{t:k}=(0,h.b)();return(0,b.jsxs)("div",{className:"rounded-md border bg-muted/20 p-3 space-y-2",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,b.jsxs)("div",{className:"text-sm font-medium",children:[k.printPreview?.selectItems||"Select Items"," (",d,"/",a.length,")"]}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(f.f,{variant:"outline",size:"sm",onClick:g,children:k.printPreview?.selectAll||"Select All"}),(0,b.jsx)(f.f,{variant:"outline",size:"sm",onClick:j,children:k.printPreview?.clearSelection||"Clear Selection"})]})]}),(0,b.jsx)("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3 max-h-44 overflow-y-auto pr-1",children:a.map((a,d)=>(0,b.jsxs)("label",{className:"flex items-start gap-2 rounded border bg-background p-2 text-xs cursor-pointer hover:border-primary/50",children:[(0,b.jsx)("input",{type:"checkbox",checked:c.has(a.id),onChange:()=>e(a.id),className:"mt-0.5 rounded border-gray-300 text-primary focus:ring-primary"}),(0,b.jsxs)("span",{className:"line-clamp-2",children:[(0,b.jsx)("span",{className:"font-semibold",children:k.printPreview?.questionNumber?.replace("{num}",String(d+1))||`Question ${d+1}`}),a.questionText?`${k.common.colon}${a.questionText}`:""]})]},a.id))})]})}var j=a.i(249632);function k({checked:a,onChange:c,label:d}){return(0,b.jsxs)("label",{className:"flex items-center gap-1.5 text-xs sm:text-sm cursor-pointer whitespace-nowrap hover:text-primary transition-colors",children:[(0,b.jsx)("input",{type:"checkbox",checked:a,onChange:a=>c(a.target.checked),className:"rounded border-gray-300 text-primary focus:ring-primary w-3.5 h-3.5 sm:w-4 sm:h-4"}),d]})}function l({options:a,onChange:c,hasCustomSpaces:d,onResetCustomSpaces:e}){let{t:g}=(0,h.b)(),i=a.answerSpace??"auto";return(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm bg-muted/50 px-2 sm:px-3 py-1 rounded-md",children:[(0,b.jsxs)("span",{className:"whitespace-nowrap text-xs sm:text-sm",children:[g.printPreview?.imageScale||"Image Scale",": ",a.imageScale,"%"]}),(0,b.jsx)("input",{type:"range",min:"30",max:"100",value:a.imageScale,onChange:a=>c({imageScale:Number(a.target.value)}),className:"w-16 sm:w-20 accent-primary"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 text-xs sm:text-sm bg-muted/50 px-2 sm:px-3 py-1 rounded-md",children:[(0,b.jsxs)("label",{htmlFor:"print-preview-answer-space",className:"whitespace-nowrap",children:[g.exam.answerSpace,":"]}),(0,b.jsxs)("select",{id:"print-preview-answer-space",value:i,onChange:a=>{(0,j.I)(a.target.value)&&c({answerSpace:a.target.value})},className:"bg-background border rounded px-2 py-0.5 text-xs sm:text-sm",children:[(0,b.jsx)("option",{value:"auto",children:g.exam.answerSpaceAuto}),(0,b.jsx)("option",{value:"none",children:g.exam.answerSpaceNone}),(0,b.jsx)("option",{value:"small",children:g.exam.answerSpaceSmall}),(0,b.jsx)("option",{value:"medium",children:g.exam.answerSpaceMedium}),(0,b.jsx)("option",{value:"large",children:g.exam.answerSpaceLarge})]}),d&&e&&(0,b.jsx)(f.f,{type:"button",variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:e,children:g.exam.resetAllQuestionAnswerSpaces})]}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-1 sm:gap-4",children:[(0,b.jsx)(k,{checked:a.showQuestionText,onChange:a=>c({showQuestionText:a}),label:g.printPreview?.showQuestionText||"Question Text"}),(0,b.jsx)(k,{checked:a.showAnswers,onChange:a=>c({showAnswers:a}),label:g.printPreview?.showAnswers||"Show Answers"}),(0,b.jsx)(k,{checked:a.showAnalysis,onChange:a=>c({showAnalysis:a}),label:g.printPreview?.showAnalysis||"Show Analysis"}),(0,b.jsx)(k,{checked:a.showTags,onChange:a=>c({showTags:a}),label:g.printPreview?.showTags||"Show Tags"})]})]})}var m=a.i(93907),n=a.i(897555),o=a.i(418943);function p(a){if(a.tags&&a.tags.length>0)return a.tags.map(a=>a.name);try{let b=JSON.parse(a.knowledgePoints||"[]");return Array.isArray(b)?b.filter(a=>"string"==typeof a):[]}catch{return[]}}var q=a.i(515108);function r({item:a,index:c,options:d,reserveAnswerSpace:e,customAnswerSpacePx:f,onCustomAnswerSpaceChange:g}){let{t:i}=(0,h.b)(),k=p(a),{groups:l}=(0,q.f)(),s=a.paperLevel?l.find(b=>b.id===a.paperLevel)?.name||a.paperLevel:null,t=e?(0,j.z)(d.answerSpace??"auto",a.questionText||"",f):0;return(0,b.jsxs)("div",{className:`mb-4 border-b last:border-b-0 print:break-inside-avoid ${e?"pb-4":"pb-6"}`,children:[(0,b.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-x-4 gap-y-2 leading-7",children:[(0,b.jsx)("span",{className:"text-lg font-bold",children:i.printPreview?.questionNumber?.replace("{num}",String(c+1))||`Question ${c+1}`}),a.shortId&&(0,b.jsx)("span",{className:"font-mono text-sm text-muted-foreground whitespace-nowrap",children:i.printPreview.source.replace("{id}",a.shortId)}),a.subject&&(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:a.subject.name}),a.gradeSemester&&(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:a.gradeSemester}),s&&(0,b.jsxs)("span",{className:"text-sm text-muted-foreground",children:[i.printPreview?.paperLevel||"Paper Level",": ",s]}),d.showTags&&k.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("span",{className:"font-semibold",children:[i.printPreview?.knowledgePoints||"Knowledge Points",":"]}),k.map((a,c)=>(0,b.jsx)("span",{className:"px-2 py-1 bg-muted rounded text-sm",children:a},`${a}-${c}`))]})]}),d.showQuestionText&&a.questionText?(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsx)(m.f,{content:a.questionText}),(0,b.jsx)(o.f,{svg:a.figureSvg,scale:a.figureScale,align:a.figureAlign})]}):a.originalImageUrl&&(0,b.jsx)("div",{className:"mb-4",children:(0,b.jsx)("img",{src:a.originalImageUrl,alt:i.detail?.originalProblem||"Question Image",className:"h-auto border rounded",style:{maxWidth:`${d.imageScale}%`}})}),d.showAnswers&&a.answerText&&(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsxs)("h3",{className:"font-semibold mb-2",children:[i.printPreview?.referenceAnswer||"Reference Answer",":"]}),(0,b.jsx)(m.f,{content:a.answerText})]}),d.showAnalysis&&a.analysis&&(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsxs)("h3",{className:"font-semibold mb-2",children:[i.printPreview?.analysis||"Analysis",":"]}),(0,b.jsx)(m.f,{content:a.analysis})]}),e&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"print-answer-space",style:{minHeight:`${t}px`}}),g&&(0,b.jsx)(n.f,{effectivePx:t,isCustom:"number"==typeof f,onChange:a=>g(a),onReset:()=>g(null)})]})]})}var s=a.i(291938),t=a.i(431858),u=a.i(557999),v=a.i(697902),w=a.i(630534);function x(){var a,k,m,n,o,x;let y=(0,d.useSearchParams)(),{t:z}=(0,h.b)(),[A,B]=(0,c.useState)([]);(0,u.f)(z.printPreview.title);let[C,D]=(0,c.useState)(!0),[E,F]=(0,c.useState)({showQuestionText:!1,showAnswers:!1,showAnalysis:!1,showTags:!1,imageScale:70,answerSpace:"auto"}),[G,H]=(0,c.useState)(new Set),[I,J]=(0,c.useState)({}),[K,L]=(0,c.useState)(!1),{groups:M}=(0,q.f)(),N=(0,c.useCallback)(async()=>{try{let a=new URLSearchParams(y.toString());a.set("pageSize",String(v.A)),a.set("view","print");let b=await s.k.get(`/api/error-items/list?${a.toString()}`);B(b.items),H(new Set(b.items.map(a=>a.id)))}catch(a){w.V.error("[PrintPreview]","Failed to fetch items",{error:a})}finally{D(!1)}},[y]);(0,c.useEffect)(()=>{N()},[N]);let O=A.filter(a=>G.has(a.id)),P=(a=E.showAnswers,k=E.showAnalysis,!a&&!k),Q=(m=A.length,(n=O.length)===m?String(m):`${n}/${m}`),R=(o=A.length,x=O.length,0===o?"noItems":0===x?"noSelection":null),S=async()=>{if(!K&&0!==O.length){L(!0);try{let a=await Promise.all(O.map(async(a,b)=>{let c=p(a),d=a.paperLevel?M.find(b=>b.id===a.paperLevel)?.name||a.paperLevel:null,e=[a.shortId?z.printPreview.source.replace("{id}",a.shortId):null,a.subject?.name??null,a.gradeSemester??null,d?`${z.printPreview.paperLevel}: ${d}`:null,E.showTags&&c.length>0?`${z.printPreview.knowledgePoints}: ${c.join("、")}`:null].filter(a=>!!a),f=!!(E.showQuestionText&&a.questionText),g=f?await (0,t.N)(a.figureSvg,a.figureScale,a.figureAlign):a.originalImageUrl?await (0,t.e)(a.originalImageUrl,{scalePercent:E.imageScale,maxBaseWidthPx:560,align:"left"}):null;return{heading:z.printPreview.questionNumber.replace("{num}",String(b+1)),meta:e.join(" · "),questionText:f?a.questionText??"":void 0,image:g,inlineAnswerLabel:E.showAnswers&&a.answerText?z.printPreview.referenceAnswer:void 0,inlineAnswerText:E.showAnswers&&a.answerText?a.answerText:void 0,inlineAnalysisLabel:E.showAnalysis&&a.analysis?z.printPreview.analysis:void 0,inlineAnalysisText:E.showAnalysis&&a.analysis?a.analysis:void 0,answerSpacePx:P?(0,j.z)(E.answerSpace??"auto",a.questionText||"",I[a.id]):0}})),b=(0,t.x)({title:z.printPreview.title,questions:a});(0,t.X)(b,z.printPreview.title)}finally{L(!1)}}};return C?(0,b.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,b.jsx)("p",{className:"text-muted-foreground",children:z.common.loading})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"print:hidden sticky top-0 z-10 bg-background border-b p-3 sm:p-4 shadow-sm",children:(0,b.jsxs)("div",{className:"max-w-6xl mx-auto space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(g.f,{fallbackUrl:"/notebooks"}),(0,b.jsxs)("h1",{className:"text-lg sm:text-xl font-bold flex-1",children:[z.printPreview?.title||"Print Preview"," (",Q," ",z.notebooks?.items||"items",")"]}),(0,b.jsxs)(f.f,{variant:"outline",size:"sm",className:"whitespace-nowrap",onClick:S,disabled:0===O.length||K,children:[(0,b.jsx)(e.f,{className:"mr-1.5 h-4 w-4"}),K?z.printPreview.exportingDocx:z.printPreview.downloadDocx]}),(0,b.jsx)(f.f,{onClick:()=>{window.print()},size:"sm",className:"whitespace-nowrap",disabled:0===O.length,children:z.printPreview?.printButton||"Print / Save PDF"})]}),(0,b.jsx)(l,{options:E,onChange:a=>F(b=>({...b,...a})),hasCustomSpaces:Object.keys(I).length>0,onResetCustomSpaces:()=>J({})}),(0,b.jsx)(i,{items:A,selectedIds:G,selectedCount:O.length,onToggle:a=>{H(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},onSelectAll:()=>{H(new Set(A.map(a=>a.id)))},onClear:()=>{H(new Set)}})]})}),(0,b.jsxs)("div",{className:"max-w-4xl mx-auto p-8 print:p-0",children:[O.map((a,c)=>(0,b.jsx)(r,{item:a,index:c,options:E,reserveAnswerSpace:P,customAnswerSpacePx:I[a.id],onCustomAnswerSpaceChange:b=>{var c;return c=a.id,void J(a=>{if(null===b){let b={...a};return delete b[c],b}return{...a,[c]:b}})}},a.id)),R&&(0,b.jsx)("div",{className:"text-center py-12 text-muted-foreground",children:"noSelection"===R?z.printPreview?.noSelection||"No items selected":z.printPreview?.noItems||"No matching error items"})]})]})}a.s(["default",0,function(){let{t:a}=(0,h.b)();return(0,b.jsx)(c.Suspense,{fallback:(0,b.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:a.common.loading}),children:(0,b.jsx)(x,{})})}],771706)}];
1
+ module.exports=[771706,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(50944),e=a.i(699570),f=a.i(695001),g=a.i(550194);function h({items:a,selectedIds:c,selectedCount:d,onToggle:f,onSelectAll:i,onClear:j}){let{t:k}=(0,g.b)();return(0,b.jsxs)("div",{className:"rounded-md border bg-muted/20 p-3 space-y-2",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,b.jsxs)("div",{className:"text-sm font-medium",children:[k.printPreview?.selectItems||"Select Items"," (",d,"/",a.length,")"]}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(e.f,{variant:"outline",size:"sm",onClick:i,children:k.printPreview?.selectAll||"Select All"}),(0,b.jsx)(e.f,{variant:"outline",size:"sm",onClick:j,children:k.printPreview?.clearSelection||"Clear Selection"})]})]}),(0,b.jsx)("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3 max-h-44 overflow-y-auto pr-1",children:a.map((a,d)=>(0,b.jsxs)("label",{className:"flex items-start gap-2 rounded border bg-background p-2 text-xs cursor-pointer hover:border-primary/50",children:[(0,b.jsx)("input",{type:"checkbox",checked:c.has(a.id),onChange:()=>f(a.id),className:"mt-0.5 rounded border-gray-300 text-primary focus:ring-primary"}),(0,b.jsxs)("span",{className:"line-clamp-2",children:[(0,b.jsx)("span",{className:"font-semibold",children:k.printPreview?.questionNumber?.replace("{num}",String(d+1))||`Question ${d+1}`}),a.questionText?`${k.common.colon}${a.questionText}`:""]})]},a.id))})]})}var i=a.i(249632);function j({checked:a,onChange:c,label:d}){return(0,b.jsxs)("label",{className:"flex items-center gap-1.5 text-xs sm:text-sm cursor-pointer whitespace-nowrap hover:text-primary transition-colors",children:[(0,b.jsx)("input",{type:"checkbox",checked:a,onChange:a=>c(a.target.checked),className:"rounded border-gray-300 text-primary focus:ring-primary w-3.5 h-3.5 sm:w-4 sm:h-4"}),d]})}function k({options:a,onChange:c,hasCustomSpaces:d,onResetCustomSpaces:f}){let{t:h}=(0,g.b)(),l=a.answerSpace??"auto";return(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm bg-muted/50 px-2 sm:px-3 py-1 rounded-md",children:[(0,b.jsxs)("span",{className:"whitespace-nowrap text-xs sm:text-sm",children:[h.printPreview?.imageScale||"Image Scale",": ",a.imageScale,"%"]}),(0,b.jsx)("input",{type:"range",min:"30",max:"100",value:a.imageScale,onChange:a=>c({imageScale:Number(a.target.value)}),className:"w-16 sm:w-20 accent-primary"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 text-xs sm:text-sm bg-muted/50 px-2 sm:px-3 py-1 rounded-md",children:[(0,b.jsxs)("label",{htmlFor:"print-preview-answer-space",className:"whitespace-nowrap",children:[h.exam.answerSpace,":"]}),(0,b.jsxs)("select",{id:"print-preview-answer-space",value:l,onChange:a=>{(0,i.I)(a.target.value)&&c({answerSpace:a.target.value})},className:"bg-background border rounded px-2 py-0.5 text-xs sm:text-sm",children:[(0,b.jsx)("option",{value:"auto",children:h.exam.answerSpaceAuto}),(0,b.jsx)("option",{value:"none",children:h.exam.answerSpaceNone}),(0,b.jsx)("option",{value:"small",children:h.exam.answerSpaceSmall}),(0,b.jsx)("option",{value:"medium",children:h.exam.answerSpaceMedium}),(0,b.jsx)("option",{value:"large",children:h.exam.answerSpaceLarge})]}),d&&f&&(0,b.jsx)(e.f,{type:"button",variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:f,children:h.exam.resetAllQuestionAnswerSpaces})]}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-1 sm:gap-4",children:[(0,b.jsx)(j,{checked:a.showQuestionText,onChange:a=>c({showQuestionText:a}),label:h.printPreview?.showQuestionText||"Question Text"}),(0,b.jsx)(j,{checked:a.showAnswers,onChange:a=>c({showAnswers:a}),label:h.printPreview?.showAnswers||"Show Answers"}),(0,b.jsx)(j,{checked:a.showAnalysis,onChange:a=>c({showAnalysis:a}),label:h.printPreview?.showAnalysis||"Show Analysis"}),(0,b.jsx)(j,{checked:a.showTags,onChange:a=>c({showTags:a}),label:h.printPreview?.showTags||"Show Tags"})]})]})}var l=a.i(93907),m=a.i(897555),n=a.i(418943),o=a.i(515108);function p({item:a,index:c,options:d,reserveAnswerSpace:e,customAnswerSpacePx:f,onCustomAnswerSpaceChange:h}){let{t:j}=(0,g.b)(),k=function(a){if(a.tags&&a.tags.length>0)return a.tags.map(a=>a.name);try{let b=JSON.parse(a.knowledgePoints||"[]");return Array.isArray(b)?b.filter(a=>"string"==typeof a):[]}catch{return[]}}(a),{groups:q}=(0,o.f)(),r=a.paperLevel?q.find(b=>b.id===a.paperLevel)?.name||a.paperLevel:null,s=e?(0,i.z)(d.answerSpace??"auto",a.questionText||"",f):0;return(0,b.jsxs)("div",{className:`mb-4 border-b last:border-b-0 print:break-inside-avoid ${e?"pb-4":"pb-6"}`,children:[(0,b.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-x-4 gap-y-2 leading-7",children:[(0,b.jsx)("span",{className:"text-lg font-bold",children:j.printPreview?.questionNumber?.replace("{num}",String(c+1))||`Question ${c+1}`}),a.shortId&&(0,b.jsx)("span",{className:"font-mono text-sm text-muted-foreground whitespace-nowrap",children:j.printPreview.source.replace("{id}",a.shortId)}),a.subject&&(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:a.subject.name}),a.gradeSemester&&(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:a.gradeSemester}),r&&(0,b.jsxs)("span",{className:"text-sm text-muted-foreground",children:[j.printPreview?.paperLevel||"Paper Level",": ",r]}),d.showTags&&k.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("span",{className:"font-semibold",children:[j.printPreview?.knowledgePoints||"Knowledge Points",":"]}),k.map((a,c)=>(0,b.jsx)("span",{className:"px-2 py-1 bg-muted rounded text-sm",children:a},`${a}-${c}`))]})]}),d.showQuestionText&&a.questionText?(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsx)(l.f,{content:a.questionText}),(0,b.jsx)(n.f,{svg:a.figureSvg,scale:a.figureScale,align:a.figureAlign})]}):a.originalImageUrl&&(0,b.jsx)("div",{className:"mb-4",children:(0,b.jsx)("img",{src:a.originalImageUrl,alt:j.detail?.originalProblem||"Question Image",className:"h-auto border rounded",style:{maxWidth:`${d.imageScale}%`}})}),d.showAnswers&&a.answerText&&(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsxs)("h3",{className:"font-semibold mb-2",children:[j.printPreview?.referenceAnswer||"Reference Answer",":"]}),(0,b.jsx)(l.f,{content:a.answerText})]}),d.showAnalysis&&a.analysis&&(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsxs)("h3",{className:"font-semibold mb-2",children:[j.printPreview?.analysis||"Analysis",":"]}),(0,b.jsx)(l.f,{content:a.analysis})]}),e&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"print-answer-space",style:{minHeight:`${s}px`}}),h&&(0,b.jsx)(m.f,{effectivePx:s,isCustom:"number"==typeof f,onChange:a=>h(a),onReset:()=>h(null)})]})]})}var q=a.i(291938),r=a.i(557999),s=a.i(103006),t=a.i(697902),u=a.i(630534);async function v(a){await q.k.put("/api/error-items/answer-space",{items:a})}function w(){var a,i,j,l,m,n;let o=(0,d.useSearchParams)(),{t:w}=(0,g.b)(),[x,y]=(0,c.useState)([]);(0,r.f)(w.printPreview.title);let[z,A]=(0,c.useState)(!0),[B,C]=(0,c.useState)({showQuestionText:!1,showAnswers:!1,showAnalysis:!1,showTags:!1,imageScale:70,answerSpace:"auto"}),[D,E]=(0,c.useState)(new Set),{customSpaces:F,setSpace:G,resetAll:H,saveFailed:I}=(0,s.f)(x,v),J=(0,c.useCallback)(async()=>{try{let a=new URLSearchParams(o.toString());a.set("pageSize",String(t.A)),a.set("view","print");let b=await q.k.get(`/api/error-items/list?${a.toString()}`);y(b.items),E(new Set(b.items.map(a=>a.id)))}catch(a){u.V.error("[PrintPreview]","Failed to fetch items",{error:a})}finally{A(!1)}},[o]);(0,c.useEffect)(()=>{J()},[J]);let K=x.filter(a=>D.has(a.id)),L=(a=B.showAnswers,i=B.showAnalysis,!a&&!i),M=(j=x.length,(l=K.length)===j?String(j):`${l}/${j}`),N=(m=x.length,n=K.length,0===m?"noItems":0===n?"noSelection":null);return z?(0,b.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,b.jsx)("p",{className:"text-muted-foreground",children:w.common.loading})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"print:hidden sticky top-0 z-10 bg-background border-b p-3 sm:p-4 shadow-sm",children:(0,b.jsxs)("div",{className:"max-w-6xl mx-auto space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(f.f,{fallbackUrl:"/notebooks"}),(0,b.jsxs)("h1",{className:"text-lg sm:text-xl font-bold flex-1",children:[w.printPreview?.title||"Print Preview"," (",M," ",w.notebooks?.items||"items",")"]}),(0,b.jsx)(e.f,{onClick:()=>{window.print()},size:"sm",className:"whitespace-nowrap",disabled:0===K.length,children:w.printPreview?.printButton||"Print / Save PDF"})]}),(0,b.jsx)(k,{options:B,onChange:a=>C(b=>({...b,...a})),hasCustomSpaces:Object.keys(F).length>0,onResetCustomSpaces:H}),I&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:w.exam.answerSpaceSaveFailed}),(0,b.jsx)(h,{items:x,selectedIds:D,selectedCount:K.length,onToggle:a=>{E(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},onSelectAll:()=>{E(new Set(x.map(a=>a.id)))},onClear:()=>{E(new Set)}})]})}),(0,b.jsxs)("div",{className:"max-w-4xl mx-auto p-8 print:p-0",children:[K.map((a,c)=>(0,b.jsx)(p,{item:a,index:c,options:B,reserveAnswerSpace:L,customAnswerSpacePx:F[a.id],onCustomAnswerSpaceChange:b=>G(a.id,b)},a.id)),N&&(0,b.jsx)("div",{className:"text-center py-12 text-muted-foreground",children:"noSelection"===N?w.printPreview?.noSelection||"No items selected":w.printPreview?.noItems||"No matching error items"})]})]})}a.s(["default",0,function(){let{t:a}=(0,g.b)();return(0,b.jsx)(c.Suspense,{fallback:(0,b.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:a.common.loading}),children:(0,b.jsx)(w,{})})}],771706)}];
2
2
 
3
3
  //# sourceMappingURL=src_app_print-preview_page_tsx_001yt-fzrj7tf._.js.map
@@ -0,0 +1,6 @@
1
+ module.exports=[78287,31364,733765,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(875160),e=a.i(519783),f=a.i(879675),g=a.i(63331),h=a.i(310395),i=a.i(699570),j=a.i(550194),k=a.i(291938),l=a.i(710302),m=a.i(630534);function n({data:a,onChange:e}){let{t:f}=(0,j.b)(),[o,p]=(0,c.useState)(!1),[q,r]=(0,c.useState)(null),s=async()=>{if(!a.questionText.trim())return void l.c.warning(f.editor.enterQuestionFirst||"Please enter question text first");if(!a.answerText.trim())return void l.c.warning(f.geogebra.answerRequired);p(!0),r(null);try{let b=await k.k.post("/api/geogebra-analyze",{questionText:a.questionText,answerText:a.answerText,analysis:a.analysis},{timeout:18e4,recoverable:!0});b.suitable&&b.commands&&b.commands.length>0?e({geogebraCommands:JSON.stringify(b.commands)}):r(b.description||f.geogebra.notSuitable)}catch(a){m.V.error("[CorrectionEditor]","GeoGebra analysis failed",{error:a}),r(f.geogebra.analyzeFailed)}finally{p(!1)}};return a.geogebraCommands?(0,b.jsx)(h.f,{commands:a.geogebraCommands,height:350,onRegenerate:s,onDelete:async()=>e({geogebraCommands:void 0})}):a.questionText.trim()&&a.answerText.trim()?(0,b.jsxs)("div",{className:"rounded-lg border border-dashed p-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsx)(g.f,{className:"h-4 w-4"}),(0,b.jsx)("span",{children:f.geogebra.title})]}),(0,b.jsx)(i.f,{variant:"outline",size:"sm",onClick:s,disabled:o,children:o?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.f,{className:"mr-2 h-4 w-4 animate-spin"}),f.geogebra.analyzing]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.f,{className:"mr-2 h-4 w-4"}),f.geogebra.generate]})})]}),q&&(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:q}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:f.geogebra.hint})]}):null}var o=a.i(131368),p=a.i(393045),q=a.i(350659),r=a.i(358236),s=a.i(870430);function t({data:a,paperLevel:c,onChange:d}){let{t:e}=(0,j.b)();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:e.editor.selectNotebook||"Select Notebook"}),(0,b.jsx)(q.f,{value:a.subjectId,onChange:a=>d({subjectId:a})})]}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{htmlFor:"correction-grade-semester",children:e.editor.gradeSemester||"Grade/Semester"}),(0,b.jsx)(p.f,{id:"correction-grade-semester",value:a.gradeSemester||"",onChange:a=>d({gradeSemester:a})})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:e.editor.paperLevel||"Paper Level"}),(0,b.jsx)(r.f,{value:c,onChange:a=>d({paperLevel:a})})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:e.difficulty.label}),(0,b.jsx)("div",{children:(0,b.jsx)(o.f,{size:"md",value:a.difficultyStars,onChange:a=>d({difficultyStars:a})})})]})]})}var u=a.i(460081),v=a.i(591119),w=a.i(580701);function x({data:a,onChange:c}){let{t:d}=(0,j.b)();return(0,b.jsxs)(v.N,{children:[(0,b.jsx)(v.Y,{children:(0,b.jsx)(v.v,{children:d.editor.mistakeAnalysisTitle||"Mistake Analysis"})}),(0,b.jsxs)(v.O,{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:d.editor.mistakeStatus||"Attempt Status"}),(0,b.jsxs)(w.d,{value:a.mistakeStatus||"unknown",onValueChange:a=>c({mistakeStatus:a}),children:[(0,b.jsx)(w.P,{children:(0,b.jsx)(w.U,{})}),(0,b.jsxs)(w.r,{children:[(0,b.jsx)(w.T,{value:"not_attempted",children:d.editor.mistakeStatuses?.notAttempted||"Not attempted"}),(0,b.jsx)(w.T,{value:"wrong_attempt",children:d.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt"}),(0,b.jsx)(w.T,{value:"unknown",children:d.editor.mistakeStatuses?.unknown||"Unknown"})]})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:d.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,b.jsx)(u.f,{value:a.wrongAnswerText||"",onChange:b=>c({wrongAnswerText:b,mistakeStatus:b.trim()?"wrong_attempt":a.mistakeStatus}),className:"min-h-[100px] font-mono text-sm",placeholder:d.editor.wrongAnswerPlaceholder||"Leave blank if no wrong answer is visible"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:d.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,b.jsx)(u.f,{value:a.mistakeAnalysis||"",onChange:a=>c({mistakeAnalysis:a}),className:"min-h-[140px] font-mono text-sm",placeholder:d.editor.mistakeAnalysisPlaceholder||"Explain where and why the mistake happened"})]})]})]})}var y=a.i(93907),z=a.i(418943);function A({title:a,children:c,className:d}){return(0,b.jsxs)(v.N,{children:[(0,b.jsx)(v.Y,{children:(0,b.jsx)(v.v,{children:a})}),(0,b.jsx)(v.O,{className:d,children:c})]})}function B({data:a,children:c}){let{t:d}=(0,j.b)(),e={wrong_attempt:d.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt",not_attempted:d.editor.mistakeStatuses?.notAttempted||"Not attempted",unknown:d.editor.mistakeStatuses?.unknown||"Unknown"};return(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)(A,{title:d.editor.preview?.question||"Question Preview",children:[(0,b.jsx)(y.f,{content:a.questionText}),(0,b.jsx)(z.f,{svg:a.figureSvg})]}),c,(0,b.jsx)(A,{title:d.editor.preview?.answer||"Answer Preview",children:(0,b.jsx)(y.f,{content:a.answerText})}),(0,b.jsx)(A,{title:d.editor.preview?.analysis||"Analysis Preview",children:(0,b.jsx)(y.f,{content:a.analysis})}),(0,b.jsxs)(A,{title:d.editor.preview?.mistakeAnalysis||"Mistake Analysis Preview",className:"space-y-3 text-sm",children:[(0,b.jsxs)("div",{className:"text-muted-foreground",children:[d.editor.mistakeStatus||"Attempt Status",d.common.colon,e[a.mistakeStatus]??e.unknown]}),a.wrongAnswerText&&(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"font-medium mb-1",children:d.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,b.jsx)(y.f,{content:a.wrongAnswerText})]}),a.mistakeAnalysis&&(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"font-medium mb-1",children:d.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,b.jsx)(y.f,{content:a.mistakeAnalysis})]})]})]})}var C=a.i(699814),D=a.i(529759),E=a.i(986705);a.i(348966);var F=a.i(957292),G=a.i(992883),H=a.i(515108),I=a.i(960927);a.s(["f",0,function({initialData:a,onSave:g,onCancel:h,imagePreview:o,initialSubjectId:p,aiTimeout:q}){let{timeZone:r}=(0,D.M)(),{t:w,language:y}=(0,j.b)(),[z,A]=(0,c.useState)({...a,wrongAnswerText:a.wrongAnswerText||"",mistakeAnalysis:a.mistakeAnalysis||"",mistakeStatus:a.mistakeStatus||"unknown",subjectId:p,gradeSemester:a.gradeSemester||""}),J=(0,c.useRef)(!1),K=a=>{"gradeSemester"in a&&(J.current=!0),A(b=>({...b,...a}))},{groups:L}=(0,H.f)(),M=(()=>{if(z.paperLevel)return z.paperLevel;let a="number"==typeof z.difficultyStars&&z.difficultyStars>=4?"b":"a";return L.find(b=>b.key===a&&b.isActive)?.id||""})(),N=z.paperLevel??M,[O,P]=(0,c.useState)(!1),[Q,R]=(0,c.useState)(!1),[S,T]=(0,c.useState)(!1),[U,V]=(0,c.useState)(void 0),[W,X]=(0,c.useState)([]);(0,c.useEffect)(()=>{k.k.get("/api/notebooks").then(X).catch(a=>m.V.error("[CorrectionEditor]","Failed to fetch notebooks",{error:a})),k.k.get("/api/user").then(a=>{if(T(!!a?.enableGeogebra),a){let b=function(a,b=E.J){return"ai"===a.gradeRecognitionMode?null:a.fixedGradeSemester?a.fixedGradeSemester:a.educationStage&&a.enrollmentYear?function(a,b,c=new Date,d="en",e=E.J){let f=(0,E.c)(c,e),g=f.getFullYear(),h=f.getMonth()+1,i=g-b,j="2nd";h>=9?(i+=1,j="1st"):j=h<2?"1st":"2nd";let k="zh"===d,l=k?"1st"===j?"上期":"下期":"1st"===j?"1st Semester":"2nd Semester",m=(k?{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"]})[a]||[],n=`${i}`;if(n=i>0&&i<=m.length?m[i-1]:i>m.length?k?"已毕业":"Graduated":k?"学前":"Pre-school",!k)return`${n}, ${l}`;{let a="1st"===j?"上":"下";return`${n}${a}`}}(a.educationStage,a.enrollmentYear,new Date,"zh",b):null}(a,r);A(a=>a.gradeSemester||J.current?a:{...a,gradeSemester:b||""}),V(a.educationStage||void 0)}}).catch(a=>m.V.error("[CorrectionEditor]","Failed to fetch user info for grade calculation",{error:a}))},[y,r]);let Y=async()=>{if(!z.questionText.trim())return void l.c.warning(w.editor.enterQuestionFirst||"Please enter question text first");P(!0);try{let a=function({questionText:a,language:b,subject:c,imagePreview:d,gradeSemester:e,subjectId:f}){let g={questionText:a,language:b,subject:c};return d&&(g.imageBase64=d),e&&(g.gradeSemester=e),f&&(g.subjectId=f),g}({questionText:z.questionText,language:y,subject:z.subject,imagePreview:o,gradeSemester:z.gradeSemester??void 0,subjectId:z.subjectId});m.V.info("[Reanswer]",a.imageBase64?"Sending image + text (image available for mistake analysis)":"Sending text only (no image available)",{timeout:q});let b=await k.k.post("/api/reanswer",a,{timeout:q||18e4,recoverable:!0});A(a=>({...a,answerText:b.answerText,analysis:b.analysis,knowledgePoints:b.knowledgePoints,wrongAnswerText:b.wrongAnswerText||"",mistakeAnalysis:b.mistakeAnalysis||"",mistakeStatus:(0,G.x)(b.mistakeStatus,b.wrongAnswerText),difficultyStars:b.difficultyStars??a.difficultyStars})),l.c.success(w.editor.reanswerSuccess||"✅ Answer and analysis updated!")}catch(d){let a,b,c;m.V.error("[CorrectionEditor]","Reanswer failed",{error:d}),l.c.error((a=(0,I.d)(d)||"",c=(b=w.errors?.reanswer||{}).default||"Reanswer failed",a.includes("AI_AUTH_ERROR")?b.authError||w.errors?.AI_AUTH_ERROR||c:a.includes("AI_CONNECTION_FAILED")?b.connectionFailed||w.errors?.AI_CONNECTION_FAILED||c:a.includes("AI_RESPONSE_ERROR")&&(b.responseError||w.errors?.AI_RESPONSE_ERROR)||c))}finally{P(!1)}},Z=async()=>{if(!z.subjectId)return void l.c.warning(w.editor.messages?.selectNotebook||"Please select a notebook");if(!Q){R(!0);try{await g({...z,paperLevel:N,mistakeStatus:(0,G.x)(z.mistakeStatus,z.wrongAnswerText)})}finally{R(!1)}}},$=w.editor.placeholder||"Supports Markdown and LaTeX...",_=(0,F.f)(W.find(a=>a.id===z.subjectId)?.name||null)||(0,F.f)(z.subject||null)||void 0;return(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("h2",{className:"text-2xl font-bold",children:w.editor.title}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(i.f,{variant:"outline",onClick:h,children:w.editor.cancel}),(0,b.jsxs)(i.f,{onClick:Z,disabled:Q,children:[Q?(0,b.jsx)(d.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,b.jsx)(f.f,{className:"mr-2 h-4 w-4"}),Q?w.common?.pleaseWait||"Please wait...":w.editor.save]})]})]}),(0,b.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,b.jsxs)("div",{className:"space-y-6",children:[o&&(0,b.jsx)(v.N,{children:(0,b.jsx)(v.O,{className:"p-4",children:(0,b.jsx)("img",{src:o,alt:"Original",className:"w-full rounded-md"})})}),(0,b.jsx)(t,{data:z,paperLevel:N,onChange:K}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:w.editor.question}),(0,b.jsx)(u.f,{value:z.questionText,onChange:a=>K({questionText:a}),className:"min-h-[150px] font-mono text-sm",placeholder:$}),(0,b.jsx)(i.f,{variant:"default",size:"sm",onClick:Y,disabled:O||!z.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:O?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.f,{className:"mr-2 h-4 w-4 animate-spin"}),w.editor.reanswering||"AI solving..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(e.f,{className:"mr-2 h-4 w-4"}),w.editor.reanswer||"🔄 Reanswer (based on corrected question)"]})}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:w.editor.reanswerHint||"💡 If the question was misrecognized, correct it and click to regenerate answer"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:w.editor.tags}),(0,b.jsx)(C.f,{value:z.knowledgePoints,onChange:a=>K({knowledgePoints:a}),placeholder:w.editor.tagsPlaceholder||"Enter knowledge tags...",enterHint:w.editor.createTagHint,subject:_,gradeStage:U}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:w.editor.tagsHint||"💡 Tag suggestions will appear as you type"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:w.editor.answer}),(0,b.jsx)(u.f,{value:z.answerText,onChange:a=>K({answerText:a}),className:"min-h-[100px] font-mono text-sm",placeholder:$})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(s.f,{children:w.editor.analysis}),(0,b.jsx)(u.f,{value:z.analysis,onChange:a=>K({analysis:a}),className:"min-h-[200px] font-mono text-sm",placeholder:$})]}),(0,b.jsx)(x,{data:z,onChange:K})]}),(0,b.jsx)(B,{data:z,children:S&&(0,b.jsx)(n,{data:z,onChange:K})})]})]})}],78287);var J=a.i(390702),K=a.i(474215);a.s(["f",0,function({message:a,onDismiss:c}){let{t:d}=(0,j.b)();return a?(0,b.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,b.jsx)(J.f,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0"}),(0,b.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:a}),(0,b.jsx)("button",{type:"button",onClick:c,"aria-label":d.common.close,className:"shrink-0 rounded p-1 hover:bg-destructive/10",children:(0,b.jsx)(K.X,{"aria-hidden":"true",className:"h-4 w-4"})})]}):null}],31364);var L=a.i(50944);function M(a){return"object"!=typeof a||null===a||Array.isArray(a)?void 0:a}function N(a,b){if("string"!=typeof a||!/^(QUESTION_SAVE_|AI_)[A-Z_]+$/.test(a))return;let c=b.errors[a];return"string"==typeof c?c:void 0}a.s(["f",0,function(a){let{t:b}=(0,j.b)(),d=(0,L.useRouter)(),[e,f]=(0,c.useState)(null),g=async(c,e,g=!0)=>{f(null);try{let a=await c();return l.c.success(a.duplicate?b.importFlow.duplicate:b.common.messages.saveSuccess),g&&(a.duplicate?d.push(`/error-items/${a.id}`):e&&d.push(`/notebooks/${e}`)),!0}catch(d){m.V.error(a,"Save failed",{errorMessage:(0,I.d)(d)??(0,I.Z)(d)});let c=function(a,b){let c=M(a),d=M(c?.data),e="number"==typeof c?.status?c.status:void 0,f=(0,I.d)(a),g=N(f,b)??N(d?.code,b),h={400:b.errors.QUESTION_SAVE_INVALID_INPUT,401:b.errors.QUESTION_SAVE_UNAUTHORIZED,403:b.errors.QUESTION_SAVE_FORBIDDEN,408:b.errors.QUESTION_SAVE_TIMEOUT,409:b.errors.QUESTION_SAVE_CONFLICT,413:b.errors.QUESTION_SAVE_TOO_LARGE,429:b.errors.QUESTION_SAVE_RATE_LIMITED,502:b.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,503:b.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,504:b.errors.QUESTION_SAVE_TIMEOUT},i=g??(e?h[e]:void 0)??b.errors.QUESTION_SAVE_FAILED;!e&&(a instanceof TypeError||/fetch|network|load failed/i.test((0,I.Z)(a)))&&(i=b.errors.QUESTION_SAVE_NETWORK_ERROR);let j=M(d?.details);if("QUESTION_SAVE_GRADE_FAILED"===f){let a=N(j?.reason,b);a&&(i+=`
2
+ ${a}`)}return 400===e&&(i+=(function(a,b){if(!Array.isArray(a))return[];let c={questionText:b.editor.question,answerText:b.editor.answer,analysis:b.editor.analysis,wrongAnswerText:b.editor.wrongAnswerText,mistakeAnalysis:b.editor.mistakeAnalysis,knowledgePoints:b.editor.tags,subjectId:b.editor.selectNotebook,gradeSemester:b.editor.gradeSemester,paperLevel:b.editor.paperLevel};return a.slice(0,3).flatMap(a=>{let d=M(a),e=d?.path,f=Array.isArray(e)&&"string"==typeof e[0]?c[e[0]]:void 0;if(!f)return[];let g=d?.maximum,h=b.questionSave.invalidField;return d?.code==="too_big"&&"number"==typeof g&&Number.isSafeInteger(g)&&g>=0&&(h="array"===d.origin?b.questionSave.tooMany:b.questionSave.tooLong),[h.replace("{field}",f).replace("{maximum}",String(g))]})})(d?.details,b).map(a=>`
3
+ ${a}`).join("")),"string"==typeof j?.databaseCode&&/^P\d{4}$/.test(j.databaseCode)&&(i+=`
4
+ ${b.questionSave.databaseCode.replace("{code}",j.databaseCode)}`),e&&(i+=` (HTTP ${e})`),i}(d,b);return f(c),"AI_DAILY_LIMIT_EXCEEDED"!==(0,I.d)(d)&&l.c.error(c),!1}};return{saveError:e,setSaveError:f,dismissSaveError:()=>f(null),run:g}}],733765)}];
5
+
6
+ //# sourceMappingURL=src_components_correction-editor_tsx_1p7z02t66tndx._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[797521,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(543569),e=a.i(699570),f=a.i(814574),g=a.i(474215),h=a.i(550194);async function i(a,b){let{naturalWidth:c,naturalHeight:d}=a;return Promise.all(b.map(b=>new Promise((e,f)=>{let g=document.createElement("canvas"),h=Math.round(b.x*c),i=Math.round(b.y*d);g.width=Math.max(1,Math.round(b.width*c)),g.height=Math.max(1,Math.round(b.height*d));let j=g.getContext("2d");j?(j.drawImage(a,h,i,g.width,g.height,0,0,g.width,g.height),g.toBlob(a=>a?e(a):f(Error("Canvas is empty")),"image/jpeg",.95)):f(Error("Canvas is not supported"))})))}let j={maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"},k=(0,c.forwardRef)(function({imageSrc:a,regions:d,onChange:e,imageStyle:f=j,onImageLoad:i},k){let{t:l}=(0,h.b)(),m=(0,c.useRef)(null),n=(0,c.useRef)(null),[o,p]=(0,c.useState)(null),q=a=>{let b=m.current.getBoundingClientRect();return{x:(a.clientX-b.left)/b.width,y:(a.clientY-b.top)/b.height}},r=()=>{o&&o.width>=.02&&o.height>=.02&&e([...d,o]),n.current=null,p(null)},s=a=>({left:`${100*a.x}%`,top:`${100*a.y}%`,width:`${100*a.width}%`,height:`${100*a.height}%`});return(0,b.jsxs)("div",{className:"relative inline-block select-none",children:[(0,b.jsx)("img",{ref:k,src:a,alt:"",draggable:!1,style:f,onLoad:i,className:"block"}),(0,b.jsxs)("div",{ref:m,className:"absolute inset-0 cursor-crosshair",style:{touchAction:"none"},onPointerDown:a=>{0===a.button&&(m.current?.setPointerCapture(a.pointerId),n.current=q(a),p(null))},onPointerMove:a=>{var b,c,d,e;let f,g,h;if(!n.current)return;let i=q(a);p((b=n.current.x,c=n.current.y,d=i.x,e=i.y,g=(f=a=>Math.min(1,Math.max(0,a)))(Math.min(b,d)),h=f(Math.min(c,e)),{x:g,y:h,width:f(Math.max(b,d))-g,height:f(Math.max(c,e))-h}))},onPointerUp:r,onPointerCancel:r,children:[d.map((a,c)=>(0,b.jsxs)("div",{className:"absolute border-2 border-sky-400 bg-sky-400/15",style:s(a),children:[(0,b.jsx)("span",{className:"absolute left-0 top-0 bg-sky-500 px-1.5 text-xs font-bold text-white",children:c+1}),(0,b.jsx)("button",{type:"button",className:"absolute -right-3 -top-3 flex h-6 w-6 items-center justify-center rounded-full bg-red-500 text-white shadow","aria-label":l.batchImport.removeRegion.replace("{index}",String(c+1)),onPointerDown:a=>a.stopPropagation(),onClick:()=>e(d.filter((a,b)=>b!==c)),children:(0,b.jsx)(g.X,{className:"h-3 w-3"})})]},c)),o&&(0,b.jsx)("div",{className:"absolute border-2 border-dashed border-yellow-300 bg-yellow-300/10",style:s(o)})]})]})});var l=a.i(164831);let m={name:"zoom-in",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};m.node;let n=(0,l.f)(m),o={name:"zoom-out",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};o.node;let p=(0,l.f)(o);function q({zoom:a,onZoomIn:c,onZoomOut:d,onReset:e}){let{t:f}=(0,h.b)(),g="outline-none focus-visible:ring-2 focus-visible:ring-white/70",i=`flex h-9 w-9 items-center justify-center rounded-full text-white transition-colors hover:bg-white/20 disabled:opacity-40 disabled:hover:bg-transparent ${g}`;return(0,b.jsxs)("div",{className:"flex items-center gap-0.5 rounded-full bg-black/60 p-1 shadow-lg backdrop-blur-sm",children:[(0,b.jsx)("button",{type:"button",className:i,onClick:d,disabled:a<=1,"aria-label":f.common.cropper.zoomOut,title:f.common.cropper.zoomOut,children:(0,b.jsx)(p,{className:"h-4 w-4"})}),(0,b.jsxs)("button",{type:"button",className:`h-9 min-w-14 rounded-full px-2 text-center text-xs font-medium tabular-nums text-white hover:bg-white/20 ${g}`,onClick:e,"aria-label":f.common.cropper.resetZoom,title:f.common.cropper.resetZoom,children:[Math.round(100*a),"%"]}),(0,b.jsx)("button",{type:"button",className:i,onClick:c,disabled:a>=5,"aria-label":f.common.cropper.zoomIn,title:f.common.cropper.zoomIn,children:(0,b.jsx)(n,{className:"h-4 w-4"})})]})}var r=a.i(630534);let s={single:{maxHeight:"70vh",maxWidth:"100%",objectFit:"contain"},auto:{maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"},multi:{maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"}};a.s(["f",0,function({imageSrc:a,open:g,onClose:j,onCropComplete:l,onMultiCropComplete:m,onRegionsSelected:n,allowMulti:o=!0,onAutoSplit:p}){let{t}=(0,h.b)(),u=/^(blob:|data:image\/)/i.test(a)?a:void 0,[v,w]=(0,c.useState)(),x=(0,c.useRef)(null),[y,z]=(0,c.useState)("single"),{containerRef:A,zoom:B,imageStyle:C,measureImage:D,zoomIn:E,zoomOut:F,reset:G}=function(a){let[b,d]=(0,c.useState)(null),e=(0,c.useRef)(null),f=(0,c.useCallback)(a=>{e.current=a,d(a)},[]),[g,h]=(0,c.useState)(1),i=(0,c.useRef)(1),[j,k]=(0,c.useState)(null),l=(0,c.useRef)(null),m=(0,c.useRef)(!1),n=(0,c.useCallback)((a,b,c)=>{let d=e.current,f=i.current,g=Math.min(5,Math.max(1,a));if(!d||g===f)return;if(1===f){let a=d.querySelector("img");a&&k(a.clientWidth)}let j=d.getBoundingClientRect(),m=(b??j.left+j.width/2)-j.left,n=(c??j.top+j.height/2)-j.top;l.current={viewX:m,viewY:n,contentX:d.scrollLeft+m,contentY:d.scrollTop+n,ratio:g/f},i.current=g,h(g)},[]);(0,c.useLayoutEffect)(()=>{let a=e.current,b=l.current;a&&b&&(a.scrollLeft=b.contentX*b.ratio-b.viewX,a.scrollTop=b.contentY*b.ratio-b.viewY,l.current=null)},[g]),(0,c.useEffect)(()=>{if(!b)return;let a=a=>{a.preventDefault(),n(i.current*Math.exp(-(.0015*a.deltaY)),a.clientX,a.clientY)},c=null,d=a=>{let[b,c]=[a[0],a[1]];return{distance:Math.hypot(b.clientX-c.clientX,b.clientY-c.clientY),centerX:(b.clientX+c.clientX)/2,centerY:(b.clientY+c.clientY)/2}},e=a=>{2===a.touches.length&&(c={distance:d(a.touches).distance,zoom:i.current},m.current=!0)},f=a=>{if(!c||2!==a.touches.length)return;a.preventDefault();let{distance:b,centerX:e,centerY:f}=d(a.touches);c.distance>0&&n(c.zoom*(b/c.distance),e,f)},g=a=>{a.touches.length<2&&(c=null,m.current=!1)},h=a=>{m.current&&a.stopPropagation()};return b.addEventListener("wheel",a,{passive:!1}),b.addEventListener("touchstart",e,{passive:!0}),b.addEventListener("touchmove",f,{passive:!1}),b.addEventListener("touchend",g),b.addEventListener("touchcancel",g),b.addEventListener("pointermove",h,{capture:!0}),()=>{b.removeEventListener("wheel",a),b.removeEventListener("touchstart",e),b.removeEventListener("touchmove",f),b.removeEventListener("touchend",g),b.removeEventListener("touchcancel",g),b.removeEventListener("pointermove",h,{capture:!0})}},[b,n]);let o=(0,c.useCallback)(a=>{a&&1===i.current&&k(a.clientWidth)},[]),p=(0,c.useCallback)(()=>n(1.25*i.current),[n]),q=(0,c.useCallback)(()=>n(i.current/1.25),[n]),r=(0,c.useCallback)(()=>{i.current=1,l.current=null,h(1)},[]),s=1!==g&&j?{...a,width:j*g,height:"auto",maxWidth:"none",maxHeight:"none"}:a;return{containerRef:f,zoom:g,imageStyle:s,measureImage:o,zoomIn:p,zoomOut:q,reset:r}}(s[y]);(0,c.useEffect)(()=>{G()},[a,G]);let[H,I]=(0,c.useState)({src:a,regions:[]}),J=H.src===a?H.regions:[],K=b=>I({src:a,regions:b}),L=(0,c.useRef)(null),M=["single",...p?["auto"]:[],...m||n&&o?["multi"]:[]],N={single:t.batchImport.singleMode,auto:t.batchImport.autoMode,multi:t.batchImport.multiMode},O=async()=>{if(0!==J.length){if(n){n(J,!0),K([]);return}if(L.current&&m)try{m(await i(L.current,J)),K([])}catch(a){r.V.error("[ImageCropper]","Multi-image crop failed",{error:a})}}},P=async()=>{let a=v&&v.width>0&&v.height>0?{x:v.x/100,y:v.y/100,width:v.width/100,height:v.height/100}:{x:0,y:0,width:1,height:1};if("auto"===y&&p)return void p(a);if(n)return void n([a],!1);if(x.current&&l)try{let[b]=await i(x.current,[a]);l(b)}catch(a){r.V.error("[ImageCropper]","Crop failed",{error:a})}};return(0,b.jsx)(f.N,{open:g,onOpenChange:a=>!a&&j(),children:(0,b.jsxs)(f.d,{className:"max-w-3xl h-[90vh] flex flex-col p-0 gap-0",children:[(0,b.jsx)(f.s,{className:"p-4 border-b shrink-0",children:(0,b.jsx)(f.F,{children:t.common.cropper?.title||"Crop Image"})}),(0,b.jsxs)("div",{className:"relative min-h-0 flex-1 bg-black",children:[(0,b.jsx)("div",{ref:A,className:"flex h-full w-full overflow-auto p-4",children:(0,b.jsx)("div",{className:"m-auto",children:"multi"===y?(0,b.jsx)(k,{ref:L,imageSrc:u,regions:J,onChange:K,imageStyle:C,onImageLoad:a=>D(a.currentTarget)}):(0,b.jsx)(d.f,{crop:v,onChange:(a,b)=>w(b),children:(0,b.jsx)("img",{ref:x,alt:"Crop me",src:u,onLoad:function(a){w({unit:"%",x:0,y:0,width:100,height:100}),D(a.currentTarget)},style:C})})})}),(0,b.jsx)("div",{className:"absolute right-3 top-3",children:(0,b.jsx)(q,{zoom:B,onZoomIn:E,onZoomOut:F,onReset:G})})]}),(0,b.jsxs)("div",{className:"p-4 border-t bg-background shrink-0 space-y-3",children:[M.length>1&&(0,b.jsx)("div",{className:`grid gap-1 rounded-md bg-muted p-1 ${3===M.length?"grid-cols-3 sm:w-[28rem]":"grid-cols-2 sm:w-80"}`,children:M.map(a=>(0,b.jsx)("button",{type:"button","aria-pressed":y===a,onClick:()=>{G(),z(a)},className:`rounded px-2 py-1.5 text-sm font-medium transition-colors ${y===a?"bg-background shadow-sm":"text-muted-foreground"}`,children:N[a]},a))}),(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-3",children:[(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:"multi"===y?`${t.batchImport.hint} ${t.batchImport.regionCount.replace("{count}",String(J.length))}`:"auto"===y?t.batchImport.autoHint:t.common.cropper?.hint||"💡 Drag to adjust crop area"}),(0,b.jsxs)("div",{className:"flex gap-2 justify-end",children:["multi"===y&&J.length>0&&(0,b.jsx)(e.f,{variant:"ghost",onClick:()=>K([]),children:t.batchImport.clear}),(0,b.jsx)(e.f,{variant:"outline",onClick:j,children:t.common.cancel||"Cancel"}),"multi"===y?(0,b.jsx)(e.f,{onClick:O,disabled:0===J.length,children:t.batchImport.start.replace("{count}",String(J.length))}):(0,b.jsx)(e.f,{onClick:P,children:"auto"===y?t.batchImport.autoStart:t.common.confirm||"Confirm"})]})]})]})]})})}],797521)}];
2
+
3
+ //# sourceMappingURL=src_components_image-cropper_tsx_0pcp8-ifruyx-._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[869128,807242,431657,a=>{"use strict";var b=a.i(187924),c=a.i(97546),d=a.i(613412),e=a.i(164831);let f={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};f.node;let g=(0,e.f)(f);var h=a.i(875160),i=a.i(702497),j=a.i(786304),k=a.i(699570),l=a.i(173390),m=a.i(550194),n=a.i(529759),o=a.i(986705);let p=["read","convert","crop","compress","upload"],q=["receive","analyze","save"];function r(a){if(!Number.isFinite(a)||a<0)return"-";if(a<1e3)return`${Math.round(a)}ms`;let b=a/1e3;if(b<60)return`${b.toFixed(+(b<10))}s`;let c=Math.round(b);return`${Math.floor(c/60)}:${String(c%60).padStart(2,"0")}`}var s=a.i(368114);let t={analyzing:50,saving:90},u={analyzing:h.f,saving:h.f,review:i.f,saved:d.f,failed:c.f};a.s(["f",0,function({task:a,now:c,onReview:d,onViewItem:e,onRetry:f,onDiscard:h}){let{t:i}=(0,m.b)(),{timeZone:v}=(0,n.M)(),w=u[a.status],x="analyzing"===a.status||"saving"===a.status,y=i.errors,z=a.error?"string"==typeof y[a.error]?y[a.error]:a.error:null,A=function(a){let b=[];for(let c of p){let d=a?.client?.[c];"number"==typeof d&&b.push({stage:c,ms:d})}for(let c of q){let d=a?.server?.[c];"number"==typeof d&&b.push({stage:c,ms:d})}return b}(a.timings),B=x&&c?c-Date.parse(a.createdAt):null;return(0,b.jsxs)("div",{className:(0,s.f)("space-y-2 rounded-lg border p-3 text-sm",a.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-task-card","data-status":a.status,children:[(0,b.jsxs)("div",{className:"flex items-start gap-2",children:[(0,b.jsx)(w,{className:(0,s.f)("mt-0.5 h-4 w-4 shrink-0",x&&"animate-spin text-primary","saved"===a.status&&"text-green-600","failed"===a.status&&"text-destructive","review"===a.status&&"text-primary")}),(0,b.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,b.jsx)("span",{className:"font-medium",children:i.importTasks.status[a.status]}),(0,b.jsx)("span",{className:"text-xs text-muted-foreground",children:i.importTasks.mode[a.mode]}),a.unread&&(0,b.jsx)(j.f,{children:i.importTasks.unread})]}),x&&(0,b.jsx)(l.f,{value:t[a.status],"aria-label":i.importTasks.stageEstimate,"aria-valuetext":i.common.progress.estimated.replace("{percent}",String(t[a.status])),className:"h-1.5"}),a.excerpt&&(0,b.jsx)("p",{className:"break-words text-muted-foreground",children:a.excerpt}),"saved"===a.status&&!a.errorItemId&&(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:i.importTasks.itemDeleted}),"saved"===a.status&&a.errorItemId&&(0,b.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:a.duplicate?i.importTasks.duplicateSaved:i.importTasks.savedTo.replace("{notebook}",a.notebookName||"-").replace("{id}",a.errorItemShortId||"-")}),z&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:z}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[(0,b.jsxs)("span",{className:"flex items-center gap-1",children:[(0,b.jsx)(g,{className:"h-3 w-3"}),i.importTasks.createdAt.replace("{time}",(0,o.r)(a.createdAt,"MM-dd HH:mm",v))]}),null!==B&&(0,b.jsx)("span",{children:i.importTasks.elapsed.replace("{time}",r(B))}),a.attempts>1&&(0,b.jsx)("span",{children:i.importTasks.attempts.replace("{count}",String(a.attempts))})]}),A.length>0&&(0,b.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:a,ms:c})=>(0,b.jsxs)("li",{children:[i.importTasks.timings[a]," ",r(c)]},a))})]})]}),(0,b.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===a.status&&d&&(0,b.jsx)(k.f,{size:"sm",onClick:d,children:i.importTasks.continueReview}),"saved"===a.status&&a.errorItemId&&e&&(0,b.jsx)(k.f,{size:"sm",variant:"outline",onClick:e,children:i.importTasks.viewItem}),"failed"===a.status&&f&&(0,b.jsx)(k.f,{size:"sm",onClick:f,children:i.importTasks.retry}),"saving"!==a.status&&"saved"!==a.status&&h&&(0,b.jsx)(k.f,{size:"sm",variant:"ghost",onClick:h,children:i.importTasks.discard})]})]})}],869128);var v=a.i(50944),w=a.i(520327),x=a.i(710302),y=a.i(630534),z=a.i(187459);a.s(["f",0,function(a){let{t:b}=(0,m.b)(),c=(0,v.useRouter)(),d=a=>{a.unread&&(0,z.N)(a.id).catch(a=>y.V.warn("[ImportTasks]","Mark read failed",{error:a}))};return{openReview:a=>{d(a),c.push(`/import-tasks/${a.id}`)},viewItem:a=>{a.errorItemId&&(d(a),c.push(`/error-items/${a.errorItemId}`))},markRead:d,retry:async c=>{try{await (0,z.R)(c.id),x.c.info(b.importTasks.retried)}catch(a){x.c.error((0,w.f)(a,b))}a?.()},discard:async c=>{if(!await (0,x.u)(b.importTasks.discardConfirm))return!1;let d=!1;try{await (0,z.x)(c.id),x.c.success(b.importTasks.discarded),d=!0}catch(a){x.c.error((0,w.f)(a,b))}return a?.(),d}}}],807242);var A=a.i(572131);a.s(["f",0,function(a,b=1e3){let[c,d]=(0,A.useState)(()=>Date.now());return(0,A.useEffect)(()=>{if(!a)return;let c=setInterval(()=>d(Date.now()),b);return()=>clearInterval(c)},[a,b]),c}],431657)}];
2
+
3
+ //# sourceMappingURL=src_components_import-tasks_import-task-card_tsx_01r47qh8ryspb._.js.map
@@ -1,33 +1,3 @@
1
- module.exports=[897555,249632,431858,a=>{"use strict";var b=a.i(187924),c=a.i(699570),d=a.i(550194);let e=["auto","none","small","medium","large"],f={none:0,small:60,medium:120,large:240},g={choice:12,judgment:12,fill:16,solution:240};function h(a){return Number.isFinite(a)?Math.min(600,Math.max(0,Math.round(a))):0}let i=/(?:(?:^|[\s*+\-))::。??;;,,_])([A-D])\s*[..::]|(?:^|\s{2,}|[))::。??])([A-D])\s*、|[((]([A-D])[))])/gm,j=/判断(?:下列|以下|正误|对错|题)|对的(?:打|画)|错的(?:打|画)|true\s*(?:or|\/)\s*false/i,k=/_{2,}|(?:\\_){2,}|\\underline|\\rule\b|\\hspace\b|(\s*)|【\s*】|\[\s+\]|(?<![A-Za-z0-9_])\(\s*\)|[==]\s*[。??]?\s*$|填空/,l=/求证|证明[::,,]|写出(?:解题|计算|推导|推理)?过程|解答下列|试说明理由|请说明理由/,m=/(\s*(\d{1,2})\s*)/g,n=/(?:^|[\n。;;::??!!]\s*)\(\s*(\d{1,2})\s*\)/g;function o(a){let b=new Set;for(let c of a.matchAll(m))b.add(c[1]);for(let c of a.matchAll(n))b.add(c[1]);return Math.max(1,b.size)}a.s(["p",0,"exam-print-answer-space","W",0,20,"q",0,"auto","R",0,600,"r",0,0,"O",0,h,"I",0,function(a){return"string"==typeof a&&e.includes(a)},"z",0,function(a,b,c){let d;if("number"==typeof c&&Number.isFinite(c))return h(c);if("auto"!==a)return f[a];let e=(d=new Set(Array.from(b.matchAll(i),a=>a[1]??a[2]??a[3]))).has("A")&&d.has("B")&&d.has("C")?"choice":j.test(b)?"judgment":o(b)>1||l.test(b)?"solution":k.test(b)?"fill":"solution";if("solution"!==e)return g[e];let m=(o(b)-1)*120;return Math.min(560,g.solution+m)}],249632),a.s(["f",0,function({effectivePx:a,isCustom:e,onChange:f,onReset:g}){let{t:i}=(0,d.b)(),j=h(a);return(0,b.jsxs)("div",{className:"answer-space-controls print:hidden flex flex-wrap items-center gap-2 text-xs text-muted-foreground mt-2 pt-1",children:[(0,b.jsxs)("span",{children:[i.exam.questionAnswerSpace,": ",j,"px"]}),(0,b.jsx)(c.f,{type:"button",variant:"outline",size:"sm",className:"h-6 px-2 text-xs","aria-label":i.exam.decreaseAnswerSpace,disabled:j<=0,onClick:()=>f(h(j-20)),children:"-"}),(0,b.jsx)("input",{type:"range",min:0,max:600,step:10,value:j,"aria-label":i.exam.questionAnswerSpaceSlider,onChange:a=>f(h(Number(a.target.value))),className:"w-24 sm:w-32 accent-primary"}),(0,b.jsx)(c.f,{type:"button",variant:"outline",size:"sm",className:"h-6 px-2 text-xs","aria-label":i.exam.increaseAnswerSpace,disabled:j>=600,onClick:()=>f(h(j+20)),children:"+"}),e&&(0,b.jsx)(c.f,{type:"button",variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:g,children:i.exam.resetQuestionAnswerSpace})]})}],897555);var p=a.i(486973),q=a.i(342205),r=a.i(78362);let s={0:"⁰",1:"¹",2:"²",3:"³",4:"⁴",5:"⁵",6:"⁶",7:"⁷",8:"⁸",9:"⁹","+":"⁺","-":"⁻","=":"⁼","(":"⁽",")":"⁾",n:"ⁿ"},t={0:"₀",1:"₁",2:"₂",3:"₃",4:"₄",5:"₅",6:"₆",7:"₇",8:"₈",9:"₉","+":"₊","-":"₋","=":"₌","(":"₍",")":"₎"},u=[[/\\times\b/g,"×"],[/\\div\b/g,"÷"],[/\\cdot\b/g,"·"],[/\\pm\b/g,"±"],[/\\mp\b/g,"∓"],[/\\(?:le|leq)\b/g,"≤"],[/\\(?:ge|geq)\b/g,"≥"],[/\\(?:ne|neq)\b/g,"≠"],[/\\approx\b/g,"≈"],[/\\equiv\b/g,"≡"],[/\\cong\b/g,"≌"],[/\\sim\b/g,"∽"],[/\\propto\b/g,"∝"],[/\\infty\b/g,"∞"],[/\\triangle\b/g,"△"],[/\\angle\b/g,"∠"],[/\\perp\b/g,"⊥"],[/\\parallel\b/g,"∥"],[/\\because\b/g,"∵"],[/\\therefore\b/g,"∴"],[/\\notin\b/g,"∉"],[/\\in\b/g,"∈"],[/\\subseteq\b/g,"⊆"],[/\\subset\b/g,"⊂"],[/\\cup\b/g,"∪"],[/\\cap\b/g,"∩"],[/\\(?:emptyset|varnothing)\b/g,"∅"],[/\\forall\b/g,"∀"],[/\\exists\b/g,"∃"],[/\\Leftrightarrow\b/g,"⇔"],[/\\Rightarrow\b/g,"⇒"],[/\\(?:to|rightarrow)\b/g,"→"],[/\\leftarrow\b/g,"←"],[/\\alpha\b/g,"α"],[/\\beta\b/g,"β"],[/\\gamma\b/g,"γ"],[/\\delta\b/g,"δ"],[/\\Delta\b/g,"Δ"],[/\\(?:epsilon|varepsilon)\b/g,"ε"],[/\\theta\b/g,"θ"],[/\\lambda\b/g,"λ"],[/\\mu\b/g,"μ"],[/\\pi\b/g,"π"],[/\\rho\b/g,"ρ"],[/\\sigma\b/g,"σ"],[/\\tau\b/g,"τ"],[/\\(?:phi|varphi)\b/g,"φ"],[/\\omega\b/g,"ω"],[/\\Omega\b/g,"Ω"],[/\\sum\b/g,"∑"],[/\\prod\b/g,"∏"],[/\\int\b/g,"∫"]];function v(a,b,c){let d=a.trim();if(!d)return"";let e=Array.from(d).map(a=>b[a]);return e.every(Boolean)?e.join(""):1===d.length?`${c}${d}`:`${c}(${d})`}let w=(()=>{let a=new Uint32Array(256);for(let b=0;b<256;b++){let c=b;for(let a=0;a<8;a++)c=1&c?0xedb88320^c>>>1:c>>>1;a[b]=c>>>0}return a})();function x(a,b){let c=[];if(b?.pageBreakBefore&&c.push("<w:pageBreakBefore/>"),b?.align&&"left"!==b.align&&c.push(`<w:jc w:val="${b.align}"/>`),b?.spaceBeforeDxa!==void 0||b?.spaceAfterDxa!==void 0){let a=b.spaceBeforeDxa??0,d=b.spaceAfterDxa??80;c.push(`<w:spacing w:before="${a}" w:after="${d}" w:line="320" w:lineRule="auto"/>`)}b?.bottomBorder&&c.push('<w:pBdr><w:bottom w:val="dashed" w:sz="4" w:space="4" w:color="CCCCCC"/></w:pBdr>');let d=c.length>0?`<w:pPr>${c.join("")}</w:pPr>`:"";return`<w:p>${d}${a}</w:p>`}function y(a,b){let c=['<w:rFonts w:ascii="Calibri" w:hAnsi="Calibri" w:eastAsia="Microsoft YaHei" w:cs="Calibri"/>'];return b?.bold&&c.push("<w:b/>"),b?.sizeHalfPt&&c.push(`<w:sz w:val="${b.sizeHalfPt}"/><w:szCs w:val="${b.sizeHalfPt}"/>`),b?.colorHex&&c.push(`<w:color w:val="${b.colorHex}"/>`),`<w:r><w:rPr>${c.join("")}</w:rPr><w:t xml:space="preserve">${a.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F]/g,"").replace(/[&<>"']/g,a=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"})[a])}</w:t></w:r>`}function z(a,b){return(function(a){let b=a.replace(/<!--[\s\S]*?-->/g,"").replace(/\r\n/g,"\n").replace(/\\_/g,"_");b=b.replace(/\\underline\{\s*(?:\\quad|\\qquad|\\hspace\{[^}]*\}|\s)*\}/g,"______").replace(/\\underline\{([^{}]*)\}/g,"$1").replace(/\\rule\{[^}]*\}\{[^}]*\}/g,"______").replace(/\\hspace\{[^}]*\}/g," ");for(let a=0;a<2;a++)b=(b=(b=b.replace(/\\(?:d|t)?frac\{([^{}]*)\}\{([^{}]*)\}/g,(a,b,c)=>{let d=b.trim(),e=c.trim(),f=/^[A-Za-z0-9α-ωΑ-Ω]+$/.test(d)?d:`(${d})`,g=/^[A-Za-z0-9α-ωΑ-Ω]+$/.test(e)?e:`(${e})`;return`${f}/${g}`})).replace(/\\sqrt\[([^{}\]]*)\]\{([^{}]*)\}/g,(a,b,c)=>{let d=v(b,s,"^"),e=c.trim();return/^[A-Za-z0-9]+$/.test(e)?`${d}√${e}`:`${d}√(${e})`})).replace(/\\sqrt\{([^{}]*)\}/g,(a,b)=>{let c=b.trim();return/^[A-Za-z0-9]+$/.test(c)?`√${c}`:`√(${c})`});for(let[a,c]of(b=(b=b.replace(/\^\{\\circ\}|\^\\circ/g,"°").replace(/\^\{([^{}]+)\}/g,(a,b)=>v(b,s,"^")).replace(/\^([0-9n+-])/g,(a,b)=>v(b,s,"^")).replace(/_\{([^{}]+)\}/g,(a,b)=>v(b,t,"_")).replace(/_([0-9+-])/g,(a,b)=>v(b,t,"_"))).replace(/\\(?:text|mathrm|mathbf|mathit|mathbb|mathcal)\{([^{}]*)\}/g,"$1").replace(/\\(?:left|right)\s*([()[\]|.{])/g,"$1").replace(/\\(?:quad|qquad)\b/g," ").replace(/\\[,;!]/g," "),u))b=b.replace(a,c);return b=b.replace(/\$\$([\s\S]*?)\$\$/g,"$1").replace(/\$([^$\n]+)\$/g,"$1").replace(/\\([{}%&#])/g,"$1").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/^#{1,6}\s+/gm,""),(0,r.n)(b.trim(),"\n")})(a).split("\n").map((a,c)=>0===c&&b?x(`${y(b,{bold:!0,colorHex:"333333"})}${y(a)}`,{spaceBeforeDxa:40,spaceAfterDxa:60}):x(y(a),{spaceBeforeDxa:20,spaceAfterDxa:60}))}async function A(a,b){return null}async function B(a,b,c){return a?A((0,q.f)(a),{scalePercent:(0,p.V)(b??void 0),maxBaseWidthPx:360,align:c}):null}a.s(["x",0,function(a){let b=new TextEncoder,c=[],d=[],e=[],f=0;for(let b of(c.push(x(y(a.title,{bold:!0,sizeHalfPt:36}),{align:"center",spaceBeforeDxa:0,spaceAfterDxa:160})),a.metaItems&&a.metaItems.length>0&&c.push(x(y(a.metaItems.join(" "),{sizeHalfPt:22}),{align:"center",spaceBeforeDxa:0,spaceAfterDxa:240})),a.questions)){let a=[y(b.heading,{bold:!0,sizeHalfPt:24}),...b.meta?[y(` ${b.meta}`,{sizeHalfPt:18,colorHex:"666666"})]:[]].join("");if(c.push(x(a,{spaceBeforeDxa:160,spaceAfterDxa:80})),b.questionText&&c.push(...z(b.questionText)),b.image&&b.image.data.length>0){f+=1;let a=`rIdImg${f}`,g=`image${f}.${b.image.extension}`;d.push({name:`word/media/${g}`,data:b.image.data}),e.push(`<Relationship Id="${a}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/${g}"/>`),c.push(function(a,b,c){let d=c.widthPx>600?600/c.widthPx:1,e=Math.max(9525,Math.round(c.widthPx*d*9525)),f=Math.max(9525,Math.round(c.heightPx*d*9525)),g=(0,p.o)(c.align);return x(`<w:r><w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${e}" cy="${f}"/><wp:docPr id="${b}" name="Figure ${b}"/><wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr><a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="${b}" name="image${b}.${c.extension}"/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip r:embed="${a}"/><a:stretch><a:fillRect/></a:stretch></pic:blipFill><pic:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="${e}" cy="${f}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></pic:spPr></pic:pic></a:graphicData></a:graphic></wp:inline></w:drawing></w:r>`,{align:g,spaceBeforeDxa:80,spaceAfterDxa:80})}(a,f,b.image))}b.inlineAnswerText&&c.push(...z(b.inlineAnswerText,b.inlineAnswerLabel?`${b.inlineAnswerLabel}:`:void 0)),b.inlineAnalysisText&&c.push(...z(b.inlineAnalysisText,b.inlineAnalysisLabel?`${b.inlineAnalysisLabel}:`:void 0)),c.push(...function(a){let b=Math.max(0,Math.round(a));if(b<=0)return[x("",{spaceBeforeDxa:0,spaceAfterDxa:80,bottomBorder:!0})];let c=Math.max(1,Math.round(b/28)),d=[];for(let a=0;a<c;a++){let b=a===c-1;d.push(x("",{spaceBeforeDxa:0,spaceAfterDxa:b?120:80,bottomBorder:b}))}return d}(b.answerSpacePx))}if(a.answerKey&&a.answerKey.length>0)for(let b of(c.push(x(y(a.answerKeyTitle||"参考答案与解析",{bold:!0,sizeHalfPt:30}),{align:"center",pageBreakBefore:!0,spaceBeforeDxa:120,spaceAfterDxa:200})),a.answerKey)){let a=[y(b.heading,{bold:!0,sizeHalfPt:22}),...b.meta?[y(` ${b.meta}`,{sizeHalfPt:18,colorHex:"666666"})]:[]].join("");c.push(x(a,{spaceBeforeDxa:120,spaceAfterDxa:60})),b.answerText&&c.push(...z(b.answerText,b.answerLabel?`${b.answerLabel}:`:void 0)),b.analysisText&&c.push(...z(b.analysisText,b.analysisLabel?`${b.analysisLabel}:`:void 0))}let g=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
- <w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
3
- <w:body>
4
- ${c.join("\n")}
5
- <w:sectPr>
6
- <w:pgSz w:w="11906" w:h="16838"/>
7
- <w:pgMar w:top="850" w:right="850" w:bottom="850" w:left="850" w:header="450" w:footer="450" w:gutter="0"/>
8
- </w:sectPr>
9
- </w:body>
10
- </w:document>`,h=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
11
- <w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
12
- <w:docDefaults>
13
- <w:rPrDefault><w:rPr><w:rFonts w:ascii="Calibri" w:hAnsi="Calibri" w:eastAsia="Microsoft YaHei" w:cs="Calibri"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:color w:val="111111"/></w:rPr></w:rPrDefault>
14
- <w:pPrDefault><w:pPr><w:spacing w:after="80" w:line="320" w:lineRule="auto"/></w:pPr></w:pPrDefault>
15
- </w:docDefaults>
16
- </w:styles>`,i=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
17
- <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
18
- <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
19
- <Default Extension="xml" ContentType="application/xml"/>
20
- <Default Extension="png" ContentType="image/png"/>
21
- <Default Extension="jpeg" ContentType="image/jpeg"/>
22
- <Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
23
- <Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
24
- </Types>`,j=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
25
- <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
26
- <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
27
- </Relationships>`,k=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
28
- <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
29
- <Relationship Id="rIdStyles" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
30
- ${e.join("\n")}
31
- </Relationships>`;return function(a){let b=new TextEncoder,c=[],d=[],e=0;for(let f of a){let a=b.encode(f.name),g=f.data,h=function(a){let b=0xffffffff;for(let c=0;c<a.length;c++)b=w[(b^a[c])&255]^b>>>8;return(0xffffffff^b)>>>0}(g),i=new Uint8Array(30+a.length),j=new DataView(i.buffer);j.setUint32(0,0x4034b50,!0),j.setUint16(4,20,!0),j.setUint16(6,2048,!0),j.setUint16(8,0,!0),j.setUint16(10,0,!0),j.setUint16(12,33,!0),j.setUint32(14,h,!0),j.setUint32(18,g.length,!0),j.setUint32(22,g.length,!0),j.setUint16(26,a.length,!0),j.setUint16(28,0,!0),i.set(a,30);let k=new Uint8Array(46+a.length),l=new DataView(k.buffer);l.setUint32(0,0x2014b50,!0),l.setUint16(4,20,!0),l.setUint16(6,20,!0),l.setUint16(8,2048,!0),l.setUint16(10,0,!0),l.setUint16(12,0,!0),l.setUint16(14,33,!0),l.setUint32(16,h,!0),l.setUint32(20,g.length,!0),l.setUint32(24,g.length,!0),l.setUint16(28,a.length,!0),l.setUint16(30,0,!0),l.setUint16(32,0,!0),l.setUint16(34,0,!0),l.setUint16(36,0,!0),l.setUint32(38,0,!0),l.setUint32(42,e,!0),k.set(a,46),c.push(i,g),d.push(k),e+=i.length+g.length}let f=d.reduce((a,b)=>a+b.length,0),g=new Uint8Array(22),h=new DataView(g.buffer);h.setUint32(0,0x6054b50,!0),h.setUint16(4,0,!0),h.setUint16(6,0,!0),h.setUint16(8,a.length,!0),h.setUint16(10,a.length,!0),h.setUint32(12,f,!0),h.setUint32(16,e,!0),h.setUint16(20,0,!0);let i=new Uint8Array(e+f+g.length),j=0;for(let a of c)i.set(a,j),j+=a.length;for(let a of d)i.set(a,j),j+=a.length;return i.set(g,j),i}([{name:"[Content_Types].xml",data:b.encode(i)},{name:"_rels/.rels",data:b.encode(j)},{name:"word/document.xml",data:b.encode(g)},{name:"word/styles.xml",data:b.encode(h)},{name:"word/_rels/document.xml.rels",data:b.encode(k)},...d])},"e",0,A,"N",0,B,"X",0,function(a,b){let c,d=new ArrayBuffer(a.byteLength);new Uint8Array(d).set(a);let e=new Blob([d],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}),f=URL.createObjectURL(e),g=document.createElement("a");g.href=f,c=b.trim().replace(/[\\/:*?"<>|\s]+/g,"_").replace(/^_+|_+$/g,"").slice(0,80),g.download=`${c||"document"}.docx`,g.click(),URL.revokeObjectURL(f)}],431858)}];
1
+ module.exports=[897555,249632,103006,a=>{"use strict";var b=a.i(187924),c=a.i(699570),d=a.i(550194);let e=["auto","none","small","medium","large"],f={none:0,small:60,medium:120,large:240},g={choice:12,judgment:12,fill:16,solution:240};function h(a){return Number.isFinite(a)?Math.min(600,Math.max(0,Math.round(a))):0}function i(a){return"number"!=typeof a||!Number.isInteger(a)||a<0||a>600?null:a}let j=/(?:(?:^|[\s*+\-))::。??;;,,_])([A-D])\s*[..::]|(?:^|\s{2,}|[))::。??])([A-D])\s*、|[((]([A-D])[))])/gm,k=/判断(?:下列|以下|正误|对错|题)|对的(?:打|画)|错的(?:打|画)|true\s*(?:or|\/)\s*false/i,l=/_{2,}|(?:\\_){2,}|\\underline|\\rule\b|\\hspace\b|(\s*)|【\s*】|\[\s+\]|(?<![A-Za-z0-9_])\(\s*\)|[==]\s*[。??]?\s*$|填空/,m=/求证|证明[::,,]|写出(?:解题|计算|推导|推理)?过程|解答下列|试说明理由|请说明理由/,n=/(\s*(\d{1,2})\s*)/g,o=/(?:^|[\n。;;::??!!]\s*)\(\s*(\d{1,2})\s*\)/g;function p(a){let b=new Set;for(let c of a.matchAll(n))b.add(c[1]);for(let c of a.matchAll(o))b.add(c[1]);return Math.max(1,b.size)}a.s(["p",0,"exam-print-answer-space","W",0,20,"q",0,"auto","R",0,600,"r",0,0,"O",0,h,"I",0,function(a){return"string"==typeof a&&e.includes(a)},"T",0,i,"z",0,function(a,b,c){let d;if("number"==typeof c&&Number.isFinite(c))return h(c);if("auto"!==a)return f[a];let e=(d=new Set(Array.from(b.matchAll(j),a=>a[1]??a[2]??a[3]))).has("A")&&d.has("B")&&d.has("C")?"choice":k.test(b)?"judgment":p(b)>1||m.test(b)?"solution":l.test(b)?"fill":"solution";if("solution"!==e)return g[e];let i=(p(b)-1)*120;return Math.min(560,g.solution+i)}],249632),a.s(["f",0,function({effectivePx:a,isCustom:e,onChange:f,onReset:g}){let{t:i}=(0,d.b)(),j=h(a);return(0,b.jsxs)("div",{className:"answer-space-controls print:hidden flex flex-wrap items-center gap-2 text-xs text-muted-foreground mt-2 pt-1",children:[(0,b.jsxs)("span",{children:[i.exam.questionAnswerSpace,": ",j,"px"]}),(0,b.jsx)(c.f,{type:"button",variant:"outline",size:"sm",className:"h-6 px-2 text-xs","aria-label":i.exam.decreaseAnswerSpace,disabled:j<=0,onClick:()=>f(h(j-20)),children:"-"}),(0,b.jsx)("input",{type:"range",min:0,max:600,step:10,value:j,"aria-label":i.exam.questionAnswerSpaceSlider,onChange:a=>f(h(Number(a.target.value))),className:"w-24 sm:w-32 accent-primary"}),(0,b.jsx)(c.f,{type:"button",variant:"outline",size:"sm",className:"h-6 px-2 text-xs","aria-label":i.exam.increaseAnswerSpace,disabled:j>=600,onClick:()=>f(h(j+20)),children:"+"}),e&&(0,b.jsx)(c.f,{type:"button",variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:g,children:i.exam.resetQuestionAnswerSpace})]})}],897555);var q=a.i(572131),r=a.i(630534);a.s(["f",0,function(a,b){let[c,d]=(0,q.useState)({}),[e,f]=(0,q.useState)(!1),g=(0,q.useRef)(new Map),h=(0,q.useRef)(null),j=(0,q.useRef)(b);(0,q.useEffect)(()=>{j.current=b},[b]);let k=(0,q.useMemo)(()=>{let b={};for(let d of a){let a=d.id in c?c[d.id]:i(d.answerSpacePx);"number"==typeof a&&(b[d.id]=a)}return b},[a,c]),l=(0,q.useCallback)(()=>{if(h.current&&(clearTimeout(h.current),h.current=null),0===g.current.size)return;let a=Array.from(g.current,([a,b])=>({id:a,answerSpacePx:b}));g.current.clear(),j.current(a).then(()=>f(!1)).catch(a=>{f(!0),r.V.error("[AnswerSpace]","Failed to save answer space",{error:a})})},[]);(0,q.useEffect)(()=>l,[l]);let m=(0,q.useCallback)((a,b)=>{if(0!==a.length){for(let{id:b,answerSpacePx:c}of(d(b=>{let c={...b};for(let{id:b,answerSpacePx:d}of a)c[b]=d;return c}),a))g.current.set(b,c);if(b)return void l();h.current&&clearTimeout(h.current),h.current=setTimeout(l,600)}},[l]),n=(0,q.useCallback)((a,b)=>{m([{id:a,answerSpacePx:b}],null===b)},[m]),o=(0,q.useCallback)(()=>{m(Object.keys(k).map(a=>({id:a,answerSpacePx:null})),!0)},[k,m]);return{customSpaces:k,setSpace:n,resetAll:o,saveFailed:e}}],103006)}];
32
2
 
33
3
  //# sourceMappingURL=src_components_print-preview_answer-space-control_tsx_02kuswyxklzp_._.js.map