wrong-notebook 2026.11.2 → 2026.11.3-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (673) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +15 -0
  3. package/.next/build-manifest.json +36 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/routes-manifest.json +112 -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 +20 -18
  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 +20 -18
  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]/read/route/app-paths-manifest.json +3 -0
  116. package/.next/server/app/api/import-batches/[id]/read/route/build-manifest.json +12 -0
  117. package/.next/server/app/api/import-batches/[id]/read/route/server-reference-manifest.json +4 -0
  118. package/.next/server/app/api/import-batches/[id]/read/route.js +34 -0
  119. package/.next/server/app/api/import-batches/[id]/read/route.js.map +5 -0
  120. package/.next/server/app/api/import-batches/[id]/read/route.js.nft.json +1 -0
  121. package/.next/server/app/api/import-batches/[id]/read/route_client-reference-manifest.js +3 -0
  122. package/.next/server/app/api/import-batches/[id]/retry/route/app-paths-manifest.json +3 -0
  123. package/.next/server/app/api/import-batches/[id]/retry/route/build-manifest.json +12 -0
  124. package/.next/server/app/api/import-batches/[id]/retry/route/server-reference-manifest.json +4 -0
  125. package/.next/server/app/api/import-batches/[id]/retry/route.js +34 -0
  126. package/.next/server/app/api/import-batches/[id]/retry/route.js.map +5 -0
  127. package/.next/server/app/api/import-batches/[id]/retry/route.js.nft.json +1 -0
  128. package/.next/server/app/api/import-batches/[id]/retry/route_client-reference-manifest.js +3 -0
  129. package/.next/server/app/api/import-batches/[id]/route/app-paths-manifest.json +3 -0
  130. package/.next/server/app/api/import-batches/[id]/route/build-manifest.json +12 -0
  131. package/.next/server/app/api/import-batches/[id]/route/server-reference-manifest.json +4 -0
  132. package/.next/server/app/api/import-batches/[id]/route.js +34 -0
  133. package/.next/server/app/api/import-batches/[id]/route.js.map +5 -0
  134. package/.next/server/app/api/import-batches/[id]/route.js.nft.json +1 -0
  135. package/.next/server/app/api/import-batches/[id]/route_client-reference-manifest.js +3 -0
  136. package/.next/server/app/api/import-batches/[id]/start/route/app-paths-manifest.json +3 -0
  137. package/.next/server/app/api/import-batches/[id]/start/route/build-manifest.json +12 -0
  138. package/.next/server/app/api/import-batches/[id]/start/route/server-reference-manifest.json +4 -0
  139. package/.next/server/app/api/import-batches/[id]/start/route.js +34 -0
  140. package/.next/server/app/api/import-batches/[id]/start/route.js.map +5 -0
  141. package/.next/server/app/api/import-batches/[id]/start/route.js.nft.json +1 -0
  142. package/.next/server/app/api/import-batches/[id]/start/route_client-reference-manifest.js +3 -0
  143. package/.next/server/app/api/import-batches/route/app-paths-manifest.json +3 -0
  144. package/.next/server/app/api/import-batches/route/build-manifest.json +12 -0
  145. package/.next/server/app/api/import-batches/route/server-reference-manifest.json +4 -0
  146. package/.next/server/app/api/import-batches/route.js +34 -0
  147. package/.next/server/app/api/import-batches/route.js.map +5 -0
  148. package/.next/server/app/api/import-batches/route.js.nft.json +1 -0
  149. package/.next/server/app/api/import-batches/route_client-reference-manifest.js +3 -0
  150. package/.next/server/app/api/import-tasks/[id]/confirm/route/app-paths-manifest.json +3 -0
  151. package/.next/server/app/api/import-tasks/[id]/confirm/route/build-manifest.json +12 -0
  152. package/.next/server/app/api/import-tasks/[id]/confirm/route/server-reference-manifest.json +4 -0
  153. package/.next/server/app/api/import-tasks/[id]/confirm/route.js +33 -0
  154. package/.next/server/app/api/import-tasks/[id]/confirm/route.js.map +5 -0
  155. package/.next/server/app/api/import-tasks/[id]/confirm/route.js.nft.json +1 -0
  156. package/.next/server/app/api/import-tasks/[id]/confirm/route_client-reference-manifest.js +3 -0
  157. package/.next/server/app/api/import-tasks/[id]/read/route/app-paths-manifest.json +3 -0
  158. package/.next/server/app/api/import-tasks/[id]/read/route/build-manifest.json +12 -0
  159. package/.next/server/app/api/import-tasks/[id]/read/route/server-reference-manifest.json +4 -0
  160. package/.next/server/app/api/import-tasks/[id]/read/route.js +33 -0
  161. package/.next/server/app/api/import-tasks/[id]/read/route.js.map +5 -0
  162. package/.next/server/app/api/import-tasks/[id]/read/route.js.nft.json +1 -0
  163. package/.next/server/app/api/import-tasks/[id]/read/route_client-reference-manifest.js +3 -0
  164. package/.next/server/app/api/import-tasks/[id]/retry/route/app-paths-manifest.json +3 -0
  165. package/.next/server/app/api/import-tasks/[id]/retry/route/build-manifest.json +12 -0
  166. package/.next/server/app/api/import-tasks/[id]/retry/route/server-reference-manifest.json +4 -0
  167. package/.next/server/app/api/import-tasks/[id]/retry/route.js +33 -0
  168. package/.next/server/app/api/import-tasks/[id]/retry/route.js.map +5 -0
  169. package/.next/server/app/api/import-tasks/[id]/retry/route.js.nft.json +1 -0
  170. package/.next/server/app/api/import-tasks/[id]/retry/route_client-reference-manifest.js +3 -0
  171. package/.next/server/app/api/import-tasks/[id]/route/app-paths-manifest.json +3 -0
  172. package/.next/server/app/api/import-tasks/[id]/route/build-manifest.json +12 -0
  173. package/.next/server/app/api/import-tasks/[id]/route/server-reference-manifest.json +4 -0
  174. package/.next/server/app/api/import-tasks/[id]/route.js +33 -0
  175. package/.next/server/app/api/import-tasks/[id]/route.js.map +5 -0
  176. package/.next/server/app/api/import-tasks/[id]/route.js.nft.json +1 -0
  177. package/.next/server/app/api/import-tasks/[id]/route_client-reference-manifest.js +3 -0
  178. package/.next/server/app/api/import-tasks/route/app-paths-manifest.json +3 -0
  179. package/.next/server/app/api/import-tasks/route/build-manifest.json +12 -0
  180. package/.next/server/app/api/import-tasks/route/server-reference-manifest.json +4 -0
  181. package/.next/server/app/api/import-tasks/route.js +34 -0
  182. package/.next/server/app/api/import-tasks/route.js.map +5 -0
  183. package/.next/server/app/api/import-tasks/route.js.nft.json +1 -0
  184. package/.next/server/app/api/import-tasks/route_client-reference-manifest.js +3 -0
  185. package/.next/server/app/api/initialize/route.js +5 -4
  186. package/.next/server/app/api/initialize/route.js.nft.json +1 -1
  187. package/.next/server/app/api/logs/frontend/route.js +4 -3
  188. package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
  189. package/.next/server/app/api/minimax-code/checkin/route.js +6 -5
  190. package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
  191. package/.next/server/app/api/minimax-code/login/route.js +5 -4
  192. package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
  193. package/.next/server/app/api/minimax-code/route.js +5 -4
  194. package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
  195. package/.next/server/app/api/notebooks/[id]/retag/route.js +13 -12
  196. package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
  197. package/.next/server/app/api/notebooks/[id]/route.js +5 -4
  198. package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
  199. package/.next/server/app/api/notebooks/route.js +5 -4
  200. package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
  201. package/.next/server/app/api/openclaw/batch-upload/route.js +17 -16
  202. package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
  203. package/.next/server/app/api/paper-groups/[id]/route.js +5 -4
  204. package/.next/server/app/api/paper-groups/[id]/route.js.nft.json +1 -1
  205. package/.next/server/app/api/paper-groups/route.js +6 -5
  206. package/.next/server/app/api/paper-groups/route.js.nft.json +1 -1
  207. package/.next/server/app/api/practice/generate/route.js +14 -13
  208. package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
  209. package/.next/server/app/api/practice/grade/route.js +13 -12
  210. package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
  211. package/.next/server/app/api/practice/record/[id]/route.js +11 -10
  212. package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
  213. package/.next/server/app/api/practice/record/route.js +13 -12
  214. package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
  215. package/.next/server/app/api/reanswer/route.js +15 -14
  216. package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
  217. package/.next/server/app/api/register/route.js +6 -5
  218. package/.next/server/app/api/register/route.js.nft.json +1 -1
  219. package/.next/server/app/api/register/status/route.js +5 -4
  220. package/.next/server/app/api/register/status/route.js.nft.json +1 -1
  221. package/.next/server/app/api/requests/[id]/route.js +6 -5
  222. package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
  223. package/.next/server/app/api/review/due/route.js +15 -14
  224. package/.next/server/app/api/review/due/route.js.nft.json +1 -1
  225. package/.next/server/app/api/settings/route.js +9 -8
  226. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  227. package/.next/server/app/api/setup/route.js +6 -5
  228. package/.next/server/app/api/setup/route.js.nft.json +1 -1
  229. package/.next/server/app/api/stats/practice/clear/route.js +5 -4
  230. package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
  231. package/.next/server/app/api/stats/practice/route.js +5 -4
  232. package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
  233. package/.next/server/app/api/tags/route.js +4 -3
  234. package/.next/server/app/api/tags/route.js.nft.json +1 -1
  235. package/.next/server/app/api/tags/stats/route.js +5 -4
  236. package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
  237. package/.next/server/app/api/tags/suggestions/route.js +4 -3
  238. package/.next/server/app/api/tags/suggestions/route.js.nft.json +1 -1
  239. package/.next/server/app/api/tasks/route.js +5 -4
  240. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  241. package/.next/server/app/api/tts/[id]/route.js +8 -7
  242. package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
  243. package/.next/server/app/api/tts/batch/route.js +12 -11
  244. package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
  245. package/.next/server/app/api/tts/route.js +8 -7
  246. package/.next/server/app/api/tts/route.js.nft.json +1 -1
  247. package/.next/server/app/api/tts/status/route.js +10 -9
  248. package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
  249. package/.next/server/app/api/user/route.js +14 -13
  250. package/.next/server/app/api/user/route.js.nft.json +1 -1
  251. package/.next/server/app/api/version/route.js +3 -2
  252. package/.next/server/app/api/version/route.js.nft.json +1 -1
  253. package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
  254. package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
  255. package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
  256. package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
  257. package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
  258. package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
  259. package/.next/server/app/exams/page.js.nft.json +1 -1
  260. package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
  261. package/.next/server/app/favicon.ico/route.js +3 -2
  262. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  263. package/.next/server/app/import-batches/[id]/page/app-paths-manifest.json +3 -0
  264. package/.next/server/app/import-batches/[id]/page/build-manifest.json +22 -0
  265. package/.next/server/app/import-batches/[id]/page/next-font-manifest.json +11 -0
  266. package/.next/server/app/import-batches/[id]/page/react-loadable-manifest.json +1 -0
  267. package/.next/server/app/import-batches/[id]/page/server-reference-manifest.json +4 -0
  268. package/.next/server/app/import-batches/[id]/page.js +14 -0
  269. package/.next/server/app/import-batches/[id]/page.js.map +5 -0
  270. package/.next/server/app/import-batches/[id]/page.js.nft.json +1 -0
  271. package/.next/server/app/import-batches/[id]/page_client-reference-manifest.js +3 -0
  272. package/.next/server/app/import-tasks/[id]/page/app-paths-manifest.json +3 -0
  273. package/.next/server/app/import-tasks/[id]/page/build-manifest.json +22 -0
  274. package/.next/server/app/import-tasks/[id]/page/next-font-manifest.json +11 -0
  275. package/.next/server/app/import-tasks/[id]/page/react-loadable-manifest.json +1 -0
  276. package/.next/server/app/import-tasks/[id]/page/server-reference-manifest.json +4 -0
  277. package/.next/server/app/import-tasks/[id]/page.js +14 -0
  278. package/.next/server/app/import-tasks/[id]/page.js.map +5 -0
  279. package/.next/server/app/import-tasks/[id]/page.js.nft.json +1 -0
  280. package/.next/server/app/import-tasks/[id]/page_client-reference-manifest.js +3 -0
  281. package/.next/server/app/import-tasks/page/app-paths-manifest.json +3 -0
  282. package/.next/server/app/import-tasks/page/build-manifest.json +22 -0
  283. package/.next/server/app/import-tasks/page/next-font-manifest.json +11 -0
  284. package/.next/server/app/import-tasks/page/react-loadable-manifest.json +1 -0
  285. package/.next/server/app/import-tasks/page/server-reference-manifest.json +4 -0
  286. package/.next/server/app/import-tasks/page.js +14 -0
  287. package/.next/server/app/import-tasks/page.js.map +5 -0
  288. package/.next/server/app/import-tasks/page.js.nft.json +1 -0
  289. package/.next/server/app/import-tasks/page_client-reference-manifest.js +3 -0
  290. package/.next/server/app/initialize/page.js.nft.json +1 -1
  291. package/.next/server/app/initialize/page_client-reference-manifest.js +1 -1
  292. package/.next/server/app/login/page.js.nft.json +1 -1
  293. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  294. package/.next/server/app/manifest.webmanifest/route.js +3 -2
  295. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  296. package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
  297. package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
  298. package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
  299. package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
  300. package/.next/server/app/notebooks/page.js.nft.json +1 -1
  301. package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
  302. package/.next/server/app/page.js.nft.json +1 -1
  303. package/.next/server/app/page_client-reference-manifest.js +1 -1
  304. package/.next/server/app/practice/page.js.nft.json +1 -1
  305. package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
  306. package/.next/server/app/print-preview/page.js.nft.json +1 -1
  307. package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
  308. package/.next/server/app/register/page.js.nft.json +1 -1
  309. package/.next/server/app/register/page_client-reference-manifest.js +1 -1
  310. package/.next/server/app/review/page.js.nft.json +1 -1
  311. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  312. package/.next/server/app/setup/page.js.nft.json +1 -1
  313. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  314. package/.next/server/app/stats/page.js.nft.json +1 -1
  315. package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  316. package/.next/server/app/tags/page.js.nft.json +1 -1
  317. package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
  318. package/.next/server/app-paths-manifest.json +15 -0
  319. package/.next/server/chunks/1oeh_server_app_api_error-items_answer-space_route_actions_02_4xy5gtmofu.js +3 -0
  320. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_confirm-all_route_actions_1u0e8at9dph0_.js +3 -0
  321. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_read_route_actions_1nrzqz1at4s64.js +3 -0
  322. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_retry_route_actions_1u5hn2zjw-sj-.js +3 -0
  323. package/.next/server/chunks/1oeh_server_app_api_import-batches_[id]_start_route_actions_1o5tg4uk8s-ch.js +3 -0
  324. package/.next/server/chunks/1oeh_server_app_api_import-tasks_[id]_confirm_route_actions_0cj5phaug2e76.js +3 -0
  325. package/.next/server/chunks/1oeh_server_app_api_import-tasks_[id]_retry_route_actions_1g7rekf8h4rkk.js +3 -0
  326. package/.next/server/chunks/{[externals]__0c36n-dcv5nqc._.js → [externals]__0fgpzedhhntg9._.js} +1 -1
  327. package/.next/server/chunks/[externals]__14rv088xdnlo4._.js +3 -0
  328. package/.next/server/chunks/{[externals]__1lhov-pp9xqtz._.js → [externals]__1i7c9m3y35e80._.js} +1 -1
  329. package/.next/server/chunks/{[root-of-the-server]__0455yyxule6q_._.js → [root-of-the-server]__0-ipecoww0k_f._.js} +1 -1
  330. package/.next/server/chunks/{[root-of-the-server]__00jyo3io99_dn._.js → [root-of-the-server]__0-rtxg7i50p0s._.js} +2 -2
  331. package/.next/server/chunks/{[root-of-the-server]__0hm2dh8ziz93k._.js → [root-of-the-server]__02oqd6w58wymi._.js} +1 -1
  332. package/.next/server/chunks/[root-of-the-server]__0401xgmcbb_7u._.js +3 -0
  333. package/.next/server/chunks/[root-of-the-server]__04pdmyloqh744._.js +5 -0
  334. package/.next/server/chunks/{[root-of-the-server]__07uf7ctm4sjo4._.js → [root-of-the-server]__04tx90mwz-58t._.js} +1 -1
  335. package/.next/server/chunks/[root-of-the-server]__05615yr7zmo6t._.js +3 -0
  336. package/.next/server/chunks/{[root-of-the-server]__06lmwv-4d1slg._.js → [root-of-the-server]__05iw617rx9m75._.js} +1 -1
  337. package/.next/server/chunks/{[root-of-the-server]__0n0c-mpolar22._.js → [root-of-the-server]__06675jta6pa74._.js} +2 -2
  338. package/.next/server/chunks/[root-of-the-server]__06ocjahusp01i._.js +3 -0
  339. package/.next/server/chunks/{[root-of-the-server]__1m8b6why7f1uj._.js → [root-of-the-server]__06pk7x8wdbyel._.js} +2 -2
  340. package/.next/server/chunks/[root-of-the-server]__08crf3zxl7fnv._.js +3 -0
  341. package/.next/server/chunks/{[root-of-the-server]__0m8bcdajibej0._.js → [root-of-the-server]__092b1e081ocu6._.js} +1 -1
  342. package/.next/server/chunks/{[root-of-the-server]__0vz0xv_w6vbpq._.js → [root-of-the-server]__092h03ec6f_1u._.js} +1 -1
  343. package/.next/server/chunks/{[root-of-the-server]__12fkzjxvspcin._.js → [root-of-the-server]__094fb72-14c6v._.js} +1 -1
  344. package/.next/server/chunks/{[root-of-the-server]__0_ahztuh3lr_n._.js → [root-of-the-server]__0982_75un5k3v._.js} +1 -1
  345. package/.next/server/chunks/{[root-of-the-server]__0sxr-ing62eg7._.js → [root-of-the-server]__09wdoeko-mqnp._.js} +1 -1
  346. package/.next/server/chunks/{[root-of-the-server]__1fj6upsvfxy4r._.js → [root-of-the-server]__0_fisu5brhyk_._.js} +1 -1
  347. package/.next/server/chunks/[root-of-the-server]__0_uvtfu0yr-na._.js +4 -4
  348. package/.next/server/chunks/[root-of-the-server]__0a13lncff9jx-._.js +3 -0
  349. package/.next/server/chunks/[root-of-the-server]__0b1s_-vbl79om._.js +3 -0
  350. package/.next/server/chunks/{[root-of-the-server]__0rnr17a382rjx._.js → [root-of-the-server]__0cu0eqoslaz4-._.js} +2 -2
  351. package/.next/server/chunks/{[root-of-the-server]__0u36j_9ml4et6._.js → [root-of-the-server]__0d_zoa2_linlk._.js} +1 -1
  352. package/.next/server/chunks/{[root-of-the-server]__145w7mwgp8ujm._.js → [root-of-the-server]__0f2xi-1x_bd0j._.js} +2 -2
  353. package/.next/server/chunks/{[root-of-the-server]__18uhupcdidftm._.js → [root-of-the-server]__0fnte1x8xdn5o._.js} +1 -1
  354. package/.next/server/chunks/[root-of-the-server]__0fxqs6p28o57m._.js +3 -0
  355. package/.next/server/chunks/[root-of-the-server]__0h3er81lqy7-3._.js +3 -0
  356. package/.next/server/chunks/{[root-of-the-server]__1f_lrxzw_n-6-._.js → [root-of-the-server]__0ha1sdqrzak3j._.js} +2 -2
  357. package/.next/server/chunks/{[root-of-the-server]__1ptzu7aqoga2n._.js → [root-of-the-server]__0hcbw1sliw973._.js} +2 -2
  358. package/.next/server/chunks/{[root-of-the-server]__00kq2qcxfg-kq._.js → [root-of-the-server]__0impq05z-6_x5._.js} +2 -2
  359. package/.next/server/chunks/{[root-of-the-server]__08t21dbk1cidn._.js → [root-of-the-server]__0jw-1uedp5s7y._.js} +2 -2
  360. package/.next/server/chunks/[root-of-the-server]__0jy5w86h0qg50._.js +3 -0
  361. package/.next/server/chunks/{[root-of-the-server]__18z_cczwqkonn._.js → [root-of-the-server]__0kehix4ojdnhw._.js} +2 -2
  362. package/.next/server/chunks/[root-of-the-server]__0kw7hbup538-8._.js +3 -0
  363. package/.next/server/chunks/{[root-of-the-server]__0xqsrh251_yms._.js → [root-of-the-server]__0l-amyqoswdni._.js} +1 -1
  364. package/.next/server/chunks/{[root-of-the-server]__1v1p83o4ygnyt._.js → [root-of-the-server]__0l__ty_n0br2x._.js} +2 -2
  365. package/.next/server/chunks/[root-of-the-server]__0mhtpz84f1vct._.js +3 -0
  366. package/.next/server/chunks/[root-of-the-server]__0mks6j_xgzj06._.js +3 -0
  367. package/.next/server/chunks/[root-of-the-server]__0nujsu6qbn-8o._.js +4 -4
  368. package/.next/server/chunks/{[root-of-the-server]__0nw6t7u627b2m._.js → [root-of-the-server]__0nv9vais_avpm._.js} +2 -2
  369. package/.next/server/chunks/{[root-of-the-server]__0kmy5264opoz7._.js → [root-of-the-server]__0odw8n6b44k3x._.js} +2 -2
  370. package/.next/server/chunks/[root-of-the-server]__0ol6aiama1k_-._.js +3 -0
  371. package/.next/server/chunks/[root-of-the-server]__0pce90ecznpjr._.js +3 -0
  372. package/.next/server/chunks/[root-of-the-server]__0pgghfs5ue4ff._.js +3 -0
  373. package/.next/server/chunks/{[root-of-the-server]__11ztapi1pi7j-._.js → [root-of-the-server]__0pkist00_xrfj._.js} +1 -1
  374. package/.next/server/chunks/[root-of-the-server]__0q3uk_5f9t6mb._.js +3 -0
  375. package/.next/server/chunks/[root-of-the-server]__0qw6cz355p_eb._.js +3 -0
  376. package/.next/server/chunks/[root-of-the-server]__0rwxa2doabk45._.js +3 -0
  377. package/.next/server/chunks/[root-of-the-server]__0s3z-zsl35ueb._.js +3 -0
  378. package/.next/server/chunks/[root-of-the-server]__0smf8z8cd59g3._.js +3 -0
  379. package/.next/server/chunks/[root-of-the-server]__0sujbuwv8y6bp._.js +3 -0
  380. package/.next/server/chunks/[root-of-the-server]__0tg572v-6f3wo._.js +3 -0
  381. package/.next/server/chunks/[root-of-the-server]__0to77zh5fihef._.js +3 -0
  382. package/.next/server/chunks/[root-of-the-server]__0u04aced_0ug4._.js +3 -0
  383. package/.next/server/chunks/[root-of-the-server]__0ujhtand4ld8w._.js +3 -0
  384. package/.next/server/chunks/[root-of-the-server]__0ultckrjp1h-q._.js +3 -0
  385. package/.next/server/chunks/[root-of-the-server]__0xkb9fyy9z_rr._.js +3 -0
  386. package/.next/server/chunks/[root-of-the-server]__0xqbpgtwhqhpl._.js +3 -0
  387. package/.next/server/chunks/[root-of-the-server]__0xwxn3blv1fe1._.js +3 -0
  388. package/.next/server/chunks/[root-of-the-server]__0y0skjc_7v7cr._.js +3 -0
  389. package/.next/server/chunks/{[root-of-the-server]__0ym21tuxqrmc4._.js → [root-of-the-server]__0y_zzgunl38y2._.js} +2 -2
  390. package/.next/server/chunks/{[root-of-the-server]__1d1gxff_c2o28._.js → [root-of-the-server]__1-0-1pwy7s8ak._.js} +2 -2
  391. package/.next/server/chunks/[root-of-the-server]__1-90b1cy_787j._.js +3 -0
  392. package/.next/server/chunks/{[root-of-the-server]__1oedx4ko_1hl9._.js → [root-of-the-server]__1-z3uulycjf_q._.js} +2 -2
  393. package/.next/server/chunks/[root-of-the-server]__121tnm6bol8ow._.js +3 -0
  394. package/.next/server/chunks/[root-of-the-server]__134n229bo2v1d._.js +3 -0
  395. package/.next/server/chunks/[root-of-the-server]__13_k7w8nrx7ie._.js +1 -1
  396. package/.next/server/chunks/[root-of-the-server]__13ofz2qkhwdmd._.js +3 -0
  397. package/.next/server/chunks/{[root-of-the-server]__0os8s3dtzx4gi._.js → [root-of-the-server]__16p-11g6suxzy._.js} +2 -2
  398. package/.next/server/chunks/[root-of-the-server]__18tzik6wyd5b2._.js +3 -0
  399. package/.next/server/chunks/[root-of-the-server]__19qwvtmhzhh9_._.js +3 -0
  400. package/.next/server/chunks/[root-of-the-server]__1_-sordu1ka96._.js +3 -0
  401. package/.next/server/chunks/[root-of-the-server]__1_2jbd6rjhbu6._.js +3 -0
  402. package/.next/server/chunks/[root-of-the-server]__1_qwjiy9wg14j._.js +3 -0
  403. package/.next/server/chunks/[root-of-the-server]__1al4_7mvxprle._.js +3 -0
  404. package/.next/server/chunks/[root-of-the-server]__1cbejfw8sum3r._.js +3 -0
  405. package/.next/server/chunks/[root-of-the-server]__1cbhqd8d3ozuv._.js +3 -0
  406. package/.next/server/chunks/[root-of-the-server]__1cxpqdzozndhn._.js +3 -0
  407. package/.next/server/chunks/[root-of-the-server]__1dh0adu5iobp3._.js +3 -0
  408. package/.next/server/chunks/{[root-of-the-server]__0btfk_sy3o9wa._.js → [root-of-the-server]__1drs4rr5x286d._.js} +1 -1
  409. package/.next/server/chunks/[root-of-the-server]__1eli1ues3akzx._.js +3 -0
  410. package/.next/server/chunks/[root-of-the-server]__1exbv92f97wbe._.js +3 -0
  411. package/.next/server/chunks/[root-of-the-server]__1fe2v2mv5-rgo._.js +3 -0
  412. package/.next/server/chunks/[root-of-the-server]__1grfx7nsqj28h._.js +3 -0
  413. package/.next/server/chunks/[root-of-the-server]__1h0fzi033rztm._.js +3 -0
  414. package/.next/server/chunks/[root-of-the-server]__1ixotu0p11op8._.js +3 -0
  415. package/.next/server/chunks/[root-of-the-server]__1j0l1jz1c3mpt._.js +3 -0
  416. package/.next/server/chunks/[root-of-the-server]__1jneum6lwgjph._.js +3 -0
  417. package/.next/server/chunks/[root-of-the-server]__1mg_zqw3nheiu._.js +3 -0
  418. package/.next/server/chunks/[root-of-the-server]__1mn422yguinbn._.js +3 -0
  419. package/.next/server/chunks/[root-of-the-server]__1ndg27r3ft7-f._.js +3 -0
  420. package/.next/server/chunks/[root-of-the-server]__1p60tmt2t1ve3._.js +3 -0
  421. package/.next/server/chunks/[root-of-the-server]__1qgitdeliyhex._.js +3 -0
  422. package/.next/server/chunks/[root-of-the-server]__1qxr6vtllrbku._.js +3 -0
  423. package/.next/server/chunks/{[root-of-the-server]__14wezz97rhtz9._.js → [root-of-the-server]__1r7a3lg45ng01._.js} +2 -2
  424. package/.next/server/chunks/[root-of-the-server]__1rcg5kj7i_3lc._.js +3 -0
  425. package/.next/server/chunks/{[root-of-the-server]__1n21o3aq7pxla._.js → [root-of-the-server]__1rh7o4i0_it3x._.js} +2 -2
  426. package/.next/server/chunks/[root-of-the-server]__1rylv89ttw-vw._.js +3 -0
  427. package/.next/server/chunks/{[root-of-the-server]__1o9pbkx7ejxu0._.js → [root-of-the-server]__1s-y00c3-nc_-._.js} +1 -1
  428. package/.next/server/chunks/[root-of-the-server]__1ue577i7esus5._.js +3 -0
  429. package/.next/server/chunks/[root-of-the-server]__1vvqeqc6b1ri5._.js +3 -0
  430. package/.next/server/chunks/[root-of-the-server]__1wp-sh9b360mc._.js +3 -0
  431. package/.next/server/chunks/[root-of-the-server]__1wphfm1f8cos4._.js +3 -0
  432. package/.next/server/chunks/[root-of-the-server]__1xkmo8s1c258u._.js +3 -0
  433. package/.next/server/chunks/{[root-of-the-server]__18nv1yn5xh03v._.js → [root-of-the-server]__1z51x426cuske._.js} +2 -2
  434. package/.next/server/chunks/[root-of-the-server]__1zg0z12pshrxg._.js +3 -0
  435. package/.next/server/chunks/[root-of-the-server]__20vlnu0zllzzp._.js +3 -0
  436. package/.next/server/chunks/_01bayc6kg7upi._.js +3 -0
  437. package/.next/server/chunks/_0431fxnqiloso._.js +1 -1
  438. package/.next/server/chunks/_05ans30vcd4s-._.js +3 -0
  439. package/.next/server/chunks/_0_rhee7wb6tcg._.js +1 -1
  440. package/.next/server/chunks/_0ge95_bkwrkmc._.js +3 -0
  441. package/.next/server/chunks/_0lmh33cdt_1fr._.js +3 -0
  442. package/.next/server/chunks/_0pzdohc1mz5ts._.js +3 -0
  443. package/.next/server/chunks/_0suqhfy3e5sv6._.js +3 -0
  444. package/.next/server/chunks/_0xv7-7d6dyo9-._.js +3 -0
  445. package/.next/server/chunks/{_1wulydy4wg9ow._.js → _0xx4y9tk1qclc._.js} +2 -2
  446. package/.next/server/chunks/_0ymqtnritje40._.js +3 -0
  447. package/.next/server/chunks/_12w5k19rc45j_._.js +1 -1
  448. package/.next/server/chunks/_1647rfjflw_iq._.js +3 -0
  449. package/.next/server/chunks/_1a1udq0c4_6ad._.js +1 -1
  450. package/.next/server/chunks/_1duugm0s3-6nw._.js +3 -0
  451. package/.next/server/chunks/_1e_ts14olqd90._.js +3 -0
  452. package/.next/server/chunks/{_10tpt8iizl4v3._.js → _1fq28h_w2e0th._.js} +7 -4
  453. package/.next/server/chunks/_1gdet1v2zk2gy._.js +3 -0
  454. package/.next/server/chunks/{_1dvka-waihfum._.js → _1gngd154ci72t._.js} +7 -4
  455. package/.next/server/chunks/_1j10upti9l6da._.js +3 -0
  456. package/.next/server/chunks/{_11_p1ahjjply_._.js → _1pvqo-qnv-nqm._.js} +2 -2
  457. package/.next/server/chunks/{_0dicq393_0h3i._.js → _1rreh3rgx8xan._.js} +1 -1
  458. package/.next/server/chunks/_1s5-ldt8xhtpp._.js +1 -1
  459. package/.next/server/chunks/_1s55l1bx-1cxp._.js +3 -0
  460. package/.next/server/chunks/_1srq5kxah38r6._.js +3 -0
  461. package/.next/server/chunks/_1tahh9ric8la3._.js +3 -0
  462. package/.next/server/chunks/_1tvl0cm629nyc._.js +3 -0
  463. package/.next/server/chunks/_1ui0r0p4npnpi._.js +11 -0
  464. package/.next/server/chunks/_next-internal_server_app_api_import-batches_[id]_route_actions_0_mc245t1pbwl.js +3 -0
  465. package/.next/server/chunks/_next-internal_server_app_api_import-batches_route_actions_0pi56cpanyvac.js +3 -0
  466. package/.next/server/chunks/_next-internal_server_app_api_import-tasks_[id]_read_route_actions_116wza5ukp0c2.js +3 -0
  467. package/.next/server/chunks/_next-internal_server_app_api_import-tasks_[id]_route_actions_1fvi-v9pgzuli.js +3 -0
  468. package/.next/server/chunks/_next-internal_server_app_api_import-tasks_route_actions_0d08bh7zurcp_.js +3 -0
  469. package/.next/server/chunks/node_modules_next_dist_0n2og9jackhd2._.js +54 -0
  470. package/.next/server/chunks/src_0bhf345rd7jho._.js +1 -1
  471. package/.next/server/chunks/src_lib_0sbu2x2ff_rnz._.js +3 -0
  472. package/.next/server/chunks/src_lib_10is5pyogge95._.js +1 -1
  473. package/.next/server/chunks/src_lib_1_m3-y2t3e4xi._.js +49 -16
  474. package/.next/server/chunks/src_lib_1qvj-3jt4jbq7._.js +3 -0
  475. package/.next/server/chunks/src_lib_1xdguwkq8k_gz._.js +3 -0
  476. package/.next/server/chunks/src_lib_1zjmo0u3pnxig._.js +3 -0
  477. package/.next/server/chunks/src_lib_constants_pagination_ts_0tz3fg9ib3b-w._.js +1 -1
  478. package/.next/server/chunks/src_lib_import-batches_ts_0aekmggdwo_9-._.js +3 -0
  479. package/.next/server/chunks/src_lib_import-tasks_ts_1f4ejsy00-v1t._.js +3 -0
  480. package/.next/server/chunks/src_lib_question-analysis_ts_15_8r_pxmtd06._.js +3 -0
  481. package/.next/server/chunks/src_lib_tag-hierarchy_ts_1illun--8v3_9._.js +3 -0
  482. package/.next/server/chunks/ssr/{[root-of-the-server]__0_eqpxqkvkrs_._.js → [root-of-the-server]__00_c9kpvx5075._.js} +1 -1
  483. package/.next/server/chunks/ssr/[root-of-the-server]__0_bi5ljcm1i1c._.js +3 -0
  484. package/.next/server/chunks/ssr/[root-of-the-server]__0r_5r-242wwqy._.js +3 -0
  485. package/.next/server/chunks/ssr/{[root-of-the-server]__0d4mrtd9tdni-._.js → [root-of-the-server]__0vgnixmnie9dg._.js} +1 -1
  486. package/.next/server/chunks/ssr/[root-of-the-server]__1l68oxzjvj18_._.js +3 -0
  487. package/.next/server/chunks/ssr/[root-of-the-server]__1mrj6vygoasvv._.js +3 -0
  488. package/.next/server/chunks/ssr/{[root-of-the-server]__1eu3xw3zls5xt._.js → [root-of-the-server]__1o5pa8m50qyqa._.js} +1 -1
  489. package/.next/server/chunks/ssr/[root-of-the-server]__1ynp6nm1gttsf._.js +3 -0
  490. package/.next/server/chunks/ssr/[root-of-the-server]__1zupg0zigit-2._.js +3 -0
  491. package/.next/server/chunks/ssr/[root-of-the-server]__2019hdxvtb4e0._.js +3 -0
  492. package/.next/server/chunks/ssr/_05szyj465au6e._.js +3 -0
  493. package/.next/server/chunks/ssr/_0cmd1ubdlo_by._.js +1 -1
  494. package/.next/server/chunks/ssr/_0f2k-q7kimi4o._.js +3 -0
  495. package/.next/server/chunks/ssr/_0ks-0g-tu__3m._.js +3 -0
  496. package/.next/server/chunks/ssr/_0lzeodofsq9pe._.js +1 -1
  497. package/.next/server/chunks/ssr/_0mvuvawj5-r--._.js +3 -0
  498. package/.next/server/chunks/ssr/_0nt5dm7rmsp4f._.js +3 -0
  499. package/.next/server/chunks/ssr/{_07-atqwd3wqya._.js → _0oslwj90y-3j0._.js} +1 -1
  500. package/.next/server/chunks/ssr/_0ozptnii2nxuw._.js +1 -1
  501. package/.next/server/chunks/ssr/_0s318kewgu2zg._.js +3 -0
  502. package/.next/server/chunks/ssr/_0ueequ0gysrs-._.js +3 -0
  503. package/.next/server/chunks/ssr/_15fdum1ye-k0z._.js +3 -0
  504. package/.next/server/chunks/ssr/_19hxsrrruepym._.js +3 -0
  505. package/.next/server/chunks/ssr/{_1l_v9_8-5wv_d._.js → _1b8cip9y91_br._.js} +1 -1
  506. package/.next/server/chunks/ssr/_1hbrn0tcfh7hd._.js +3 -0
  507. package/.next/server/chunks/ssr/_1j3yr2arbxd6a._.js +3 -0
  508. package/.next/server/chunks/ssr/_1qgg_ll5hkjaf._.js +1 -9
  509. package/.next/server/chunks/ssr/_1ujx-n3muyaxs._.js +32 -0
  510. package/.next/server/chunks/ssr/_1ux6eqqkupo6v._.js +1 -9
  511. package/.next/server/chunks/ssr/_1w1qijzykerpu._.js +3 -0
  512. package/.next/server/chunks/ssr/_next-internal_server_app_import-batches_[id]_page_actions_1hnz0a7dq8meb.js +3 -0
  513. package/.next/server/chunks/ssr/_next-internal_server_app_import-tasks_[id]_page_actions_0ln1lwiey8bbi.js +3 -0
  514. package/.next/server/chunks/ssr/_next-internal_server_app_import-tasks_page_actions_1h7cqbj1cojed.js +3 -0
  515. package/.next/server/chunks/ssr/node_modules_05hncuf8243qe._.js +3 -0
  516. package/.next/server/chunks/ssr/node_modules_0_qoz7biz6-x_._.js +3 -0
  517. package/.next/server/chunks/ssr/node_modules_11z4lth_9u_hn._.js +2 -2
  518. package/.next/server/chunks/ssr/node_modules_17lx40fyvpom3._.js +3 -0
  519. package/.next/server/chunks/ssr/node_modules_@radix-ui_1i8eumxju2gpw._.js +3 -0
  520. package/.next/server/chunks/ssr/node_modules_heic-to_dist_csp_heic-to_1a1i_ppryp81y.js +3 -0
  521. package/.next/server/chunks/ssr/node_modules_heic-to_dist_csp_heic-to_1myi81wrj4gw4.js +3 -0
  522. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_06p81-gtz_2cm._.js +3 -0
  523. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1bq471wvtkwrl._.js +3 -0
  524. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_pencil-line_mjs_1xkf12pwlzan2._.js +8 -0
  525. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0-4c5fuxx178f.js +3 -0
  526. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0d5g5-w_y282q.js +3 -0
  527. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0pdc0gl8iqtfa.js +3 -0
  528. package/.next/server/chunks/ssr/node_modules_react-image-crop_dist_index_0khmp4mv3j9zr.js +3 -0
  529. package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_0n-w9zu3b6q41.js +57 -0
  530. package/.next/server/chunks/ssr/src_app_error-items_[id]_page_tsx_04xwwdmyh7_9q._.js +1 -1
  531. package/.next/server/chunks/ssr/src_app_exams_[id]_print_page_tsx_1i-xvhk8ul1l1._.js +6 -6
  532. package/.next/server/chunks/ssr/src_app_import-batches_[id]_page_tsx_0mhg_vriwmkkw._.js +3 -0
  533. package/.next/server/chunks/ssr/src_app_import-tasks_[id]_page_tsx_0_grj11-jdqqc._.js +3 -0
  534. package/.next/server/chunks/ssr/src_app_import-tasks_page_tsx_01983hytm-x08._.js +3 -0
  535. package/.next/server/chunks/ssr/src_app_notebooks_[id]_add_page_tsx_179tow1ql6vc_._.js +1 -1
  536. package/.next/server/chunks/ssr/src_app_page_tsx_1chiuahujsxm1._.js +1 -1
  537. package/.next/server/chunks/ssr/src_app_print-preview_page_tsx_001yt-fzrj7tf._.js +1 -1
  538. package/.next/server/chunks/ssr/src_components_correction-editor_tsx_1p7z02t66tndx._.js +6 -0
  539. package/.next/server/chunks/ssr/src_components_image-cropper_tsx_0pcp8-ifruyx-._.js +3 -0
  540. package/.next/server/chunks/ssr/src_components_import-tasks_import-task-card_tsx_01r47qh8ryspb._.js +3 -0
  541. package/.next/server/chunks/ssr/src_components_print-preview_answer-space-control_tsx_02kuswyxklzp_._.js +1 -31
  542. package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +10 -64
  543. package/.next/server/chunks/ssr/src_lib_question-split_text_ts_0h4uz23xrlybm._.js +6 -0
  544. package/.next/server/middleware-build-manifest.js +36 -3
  545. package/.next/server/next-font-manifest.js +1 -1
  546. package/.next/server/next-font-manifest.json +12 -0
  547. package/.next/server/pages/500.html +1 -1
  548. package/.next/server/preview-props.json +3 -3
  549. package/.next/server/server-reference-manifest.js +1 -1
  550. package/.next/server/server-reference-manifest.json +1 -1
  551. package/.next/static/chunks/02wft51kf3t9f.js +1 -0
  552. package/.next/static/chunks/0_ar7dth9hybc.js +1 -0
  553. package/.next/static/chunks/0p6ox1l56khn2.js +3 -0
  554. package/.next/static/chunks/0t9po-y0g3nwu.js +12 -0
  555. package/.next/static/chunks/0v8w72ij3d-3v.js +1 -0
  556. package/.next/static/chunks/0x9-b30mhne-_.js +1 -0
  557. package/.next/static/chunks/{1g13qcek7-0du.js → 16h0nz5l970cx.js} +1 -1
  558. package/.next/static/chunks/171ff2ttsrlg8.js +1 -0
  559. package/.next/static/chunks/1746y345zti-9.js +33 -0
  560. package/.next/static/chunks/1ar7mttk9ne1t.js +12 -0
  561. package/.next/static/chunks/1upvap68fad8i.js +1 -0
  562. package/.next/static/chunks/21-zw9_-z7wy0.js +1 -0
  563. package/.next/static/chunks/210o9wkszynk8.js +55 -0
  564. package/.next/static/chunks/26_q5epdikurm.js +1 -0
  565. package/.next/static/chunks/289znh7431pug.js +1 -0
  566. package/.next/static/chunks/29hn5lj1csc6m.js +6 -0
  567. package/.next/static/chunks/2hh64gi4pmlk2.js +1 -0
  568. package/.next/static/chunks/2ic9ath-r3jvf.js +193 -0
  569. package/.next/static/chunks/2notwq6aaf_l7.css +3 -0
  570. package/.next/static/chunks/3-se55-6uc0mx.js +2 -0
  571. package/.next/static/chunks/32hs1wu90i-g2.js +9 -0
  572. package/.next/static/chunks/38fux_rbsoiif.js +1 -0
  573. package/.next/static/chunks/38vt_4ntvy02e.js +1 -0
  574. package/.next/static/chunks/3b34ougp2g-5y.js +1 -0
  575. package/.next/static/chunks/3c3cp7uzfhnyr.js +1 -0
  576. package/.next/static/chunks/3gy-_kb72v5lr.js +1 -0
  577. package/.next/static/chunks/3lsj4waqfw7eq.js +1 -0
  578. package/.next/static/chunks/3ucxgsy-rkjn9.js +9 -0
  579. package/.next/static/chunks/3wr-25ch-9chk.js +1 -0
  580. package/.next/static/chunks/4441xuc3i-yb7.js +1 -0
  581. package/package.json +1 -1
  582. package/prisma/migrations/20261102102339_add_custom_answer_space/migration.sql +5 -0
  583. package/prisma/migrations/20261103011313_add_import_tasks/migration.sql +37 -0
  584. package/prisma/migrations/20261103052754_add_import_batches/migration.sql +79 -0
  585. package/prisma/schema.prisma +77 -0
  586. package/prisma/seed.db +0 -0
  587. package/public/third-party-licenses/heic-to/GPL-3.0.txt +674 -0
  588. package/public/third-party-licenses/heic-to/NOTICE.txt +76 -0
  589. package/public/third-party-licenses/heic-to/emscripten-LICENSE.txt +102 -0
  590. package/public/third-party-licenses/heic-to/heic-to-LICENSE.txt +177 -0
  591. package/public/third-party-licenses/heic-to/libde265-1.0.16-COPYING.txt +871 -0
  592. package/public/third-party-licenses/heic-to/libheif-1.23.6-COPYING.txt +871 -0
  593. package/.next/server/chunks/[root-of-the-server]__01nvw5ogtwc0h._.js +0 -3
  594. package/.next/server/chunks/[root-of-the-server]__02dkbynj2vxld._.js +0 -3
  595. package/.next/server/chunks/[root-of-the-server]__05n74a-t4yfhk._.js +0 -3
  596. package/.next/server/chunks/[root-of-the-server]__05u_glm0nzz-u._.js +0 -3
  597. package/.next/server/chunks/[root-of-the-server]__0c2729fcpi3-x._.js +0 -3
  598. package/.next/server/chunks/[root-of-the-server]__0gaai286hkspk._.js +0 -3
  599. package/.next/server/chunks/[root-of-the-server]__0jy-eooky8kei._.js +0 -3
  600. package/.next/server/chunks/[root-of-the-server]__0kljn4jodzvqk._.js +0 -3
  601. package/.next/server/chunks/[root-of-the-server]__0pn5idap1logb._.js +0 -3
  602. package/.next/server/chunks/[root-of-the-server]__0tflqqgyujt1r._.js +0 -3
  603. package/.next/server/chunks/[root-of-the-server]__0z99q93n88cro._.js +0 -3
  604. package/.next/server/chunks/[root-of-the-server]__1-g1cu85bv1bg._.js +0 -3
  605. package/.next/server/chunks/[root-of-the-server]__1-hfmp3groi95._.js +0 -56
  606. package/.next/server/chunks/[root-of-the-server]__10l89psqaisak._.js +0 -3
  607. package/.next/server/chunks/[root-of-the-server]__1236d6g1_51pt._.js +0 -3
  608. package/.next/server/chunks/[root-of-the-server]__12_laap0hyw4p._.js +0 -3
  609. package/.next/server/chunks/[root-of-the-server]__12cpc3g7-oi86._.js +0 -3
  610. package/.next/server/chunks/[root-of-the-server]__13pd8ofsmrv7k._.js +0 -3
  611. package/.next/server/chunks/[root-of-the-server]__13zeb46abilr5._.js +0 -3
  612. package/.next/server/chunks/[root-of-the-server]__142g4s902bza-._.js +0 -3
  613. package/.next/server/chunks/[root-of-the-server]__1460_07yt08m0._.js +0 -3
  614. package/.next/server/chunks/[root-of-the-server]__15mf1z85mft8d._.js +0 -3
  615. package/.next/server/chunks/[root-of-the-server]__15ypu4q7xi8ig._.js +0 -3
  616. package/.next/server/chunks/[root-of-the-server]__1610s5zvyss1k._.js +0 -3
  617. package/.next/server/chunks/[root-of-the-server]__16864lw9bhmwl._.js +0 -3
  618. package/.next/server/chunks/[root-of-the-server]__19a62id_4lwka._.js +0 -3
  619. package/.next/server/chunks/[root-of-the-server]__1b42xh9458czy._.js +0 -3
  620. package/.next/server/chunks/[root-of-the-server]__1dreyiratyfvo._.js +0 -3
  621. package/.next/server/chunks/[root-of-the-server]__1elqmd_7a9bto._.js +0 -3
  622. package/.next/server/chunks/[root-of-the-server]__1gvnk0s0_zrpo._.js +0 -3
  623. package/.next/server/chunks/[root-of-the-server]__1hwftfenrsu3p._.js +0 -3
  624. package/.next/server/chunks/[root-of-the-server]__1lafe11jnkmlv._.js +0 -3
  625. package/.next/server/chunks/[root-of-the-server]__1m1wi2f60x1fk._.js +0 -3
  626. package/.next/server/chunks/[root-of-the-server]__1o-0-f8rlbavp._.js +0 -3
  627. package/.next/server/chunks/[root-of-the-server]__1r7wz_id6mvlj._.js +0 -3
  628. package/.next/server/chunks/[root-of-the-server]__1r_x7moz0opqt._.js +0 -3
  629. package/.next/server/chunks/[root-of-the-server]__1rx3b8m_g_p57._.js +0 -3
  630. package/.next/server/chunks/[root-of-the-server]__1wh65tfd7apxx._.js +0 -3
  631. package/.next/server/chunks/[root-of-the-server]__1wsyku681k2uq._.js +0 -3
  632. package/.next/server/chunks/[root-of-the-server]__1ximu6k5bljjj._.js +0 -3
  633. package/.next/server/chunks/[root-of-the-server]__20jkc-_5uj_zc._.js +0 -3
  634. package/.next/server/chunks/_03udbqs8_z944._.js +0 -3
  635. package/.next/server/chunks/_1_ns7o3cqznv6._.js +0 -3
  636. package/.next/server/chunks/_1rr_juv5pj1at._.js +0 -3
  637. package/.next/server/chunks/_1upqhtax8p96-._.js +0 -3
  638. package/.next/server/chunks/src_lib_question-deduplication_ts_1p1bik-vwl9ue._.js +0 -3
  639. package/.next/server/chunks/ssr/[root-of-the-server]__0mf_ugip8jvfl._.js +0 -3
  640. package/.next/server/chunks/ssr/[root-of-the-server]__1jhmaiw3yp6gx._.js +0 -3
  641. package/.next/server/chunks/ssr/[root-of-the-server]__1x6b2a-bbo2py._.js +0 -3
  642. package/.next/server/chunks/ssr/_02zfjls23g-o4._.js +0 -3
  643. package/.next/server/chunks/ssr/_0j4vduk13imjn._.js +0 -3
  644. package/.next/server/chunks/ssr/_0ltqx22v65imo._.js +0 -32
  645. package/.next/server/chunks/ssr/_0tr-7klbcz1r7._.js +0 -3
  646. package/.next/server/chunks/ssr/_0yrywyu_og4rx._.js +0 -3
  647. package/.next/server/chunks/ssr/_1-i5cy964i_s9._.js +0 -3
  648. package/.next/server/chunks/ssr/_1-z85ugzufqk6._.js +0 -3
  649. package/.next/server/chunks/ssr/_10stgw6io7x93._.js +0 -3
  650. package/.next/server/chunks/ssr/_11xqn1cgzpe6k._.js +0 -3
  651. package/.next/server/chunks/ssr/_1cc3psc9rvrwn._.js +0 -3
  652. package/.next/server/chunks/ssr/_1hp7fzio98dms._.js +0 -3
  653. package/.next/server/chunks/ssr/node_modules_0efju2pv0_0yw._.js +0 -3
  654. package/.next/static/chunks/01lfibj7hk--1.js +0 -1
  655. package/.next/static/chunks/06bfusm1eqhzt.js +0 -4
  656. package/.next/static/chunks/0fu1xttg42yzk.js +0 -1
  657. package/.next/static/chunks/0mp9tvylhyxid.js +0 -1
  658. package/.next/static/chunks/0xuzdy0dn7jkp.js +0 -63
  659. package/.next/static/chunks/1fa2xv93zl8oj.js +0 -1
  660. package/.next/static/chunks/1ou17klnb8gu_.js +0 -1
  661. package/.next/static/chunks/21v7--q2m3c4_.js +0 -1
  662. package/.next/static/chunks/22gdddnfj38h6.js +0 -1
  663. package/.next/static/chunks/2btkflolmab19.css +0 -3
  664. package/.next/static/chunks/2dml0yrklxocr.js +0 -31
  665. package/.next/static/chunks/2hjp9cnvepyzy.js +0 -247
  666. package/.next/static/chunks/2mu8zu6zd59z2.js +0 -1
  667. package/.next/static/chunks/2xibor-sxcc67.js +0 -1
  668. package/.next/static/chunks/3_e_larybjcr5.js +0 -1
  669. package/.next/static/chunks/3au-yz7ullfnr.js +0 -9
  670. package/.next/static/chunks/3zs0fu6zcu0lb.js +0 -1
  671. /package/.next/static/{-4YWb-OtqvHBsA28MaEog → UGLvq52Fbq8nQxM1BjZlP}/_buildManifest.js +0 -0
  672. /package/.next/static/{-4YWb-OtqvHBsA28MaEog → UGLvq52Fbq8nQxM1BjZlP}/_clientMiddlewareManifest.js +0 -0
  673. /package/.next/static/{-4YWb-OtqvHBsA28MaEog → UGLvq52Fbq8nQxM1BjZlP}/_ssgManifest.js +0 -0
@@ -0,0 +1,55 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,772325,e=>{var t=e.i(722219);e.s(["z",0,t])},978056,e=>{var t=e.i(722219);e.s(["z",0,t])},411382,722219,e=>{let t,n,r,i,o,s,a,u,l,c;function d(e){return e}function f(e){return e}function p(){return e=>e}function h(e){}function m(e){throw Error("Unexpected value in exhaustive check")}function v(e){}function g(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function y(e,t="|"){return e.map(e=>ee(e)).join(t)}function _(e,t){return"bigint"==typeof t?t.toString():t}e.s(["BIGINT_FORMAT_RANGES",()=>er,"CONSTANT_CATCH",()=>eJ,"Class",()=>eT,"NUMBER_FORMAT_RANGES",()=>en,"aborted",()=>ep,"allowsEval",()=>L,"assert",()=>v,"assertEqual",()=>d,"assertIs",()=>h,"assertNever",()=>m,"assertNotEqual",()=>f,"assignProp",()=>x,"attachSchema",()=>ey,"base64ToUint8Array",()=>eP,"base64urlToUint8Array",()=>eA,"cached",()=>z,"captureStackTrace",()=>U,"cleanEnum",()=>eS,"cleanRegex",()=>k,"clone",()=>Y,"cloneDef",()=>I,"codePointLength",()=>ew,"constantCatch",()=>eL,"createTransparentProxy",()=>Q,"defineLazy",()=>S,"defineLazyInternal",()=>eM,"derived",()=>eR,"esc",()=>C,"escapeRegex",()=>H,"explicitlyAborted",()=>eh,"extend",()=>ea,"finalizeIssue",()=>e_,"floatSafeRemainder",()=>$,"getElementAtPath",()=>D,"getEnumValues",()=>g,"getLengthableOrigin",()=>ek,"getParsedType",()=>W,"getSizableOrigin",()=>eb,"hexToUint8Array",()=>eZ,"hide",()=>eD,"installLazyProp",()=>eU,"isObject",()=>J,"isPlainObject",()=>B,"issue",()=>eO,"joinValues",()=>y,"jsonStringifyReplacer",()=>_,"members",()=>eN,"merge",()=>ec,"mergeDefs",()=>N,"normalizeParams",()=>q,"nullish",()=>w,"numKeys",()=>V,"objectClone",()=>P,"omit",()=>es,"optionalKeys",()=>et,"own",()=>eI,"parsedType",()=>e$,"partial",()=>ed,"pick",()=>ei,"prefixIssues",()=>em,"primitiveTypes",()=>X,"promiseAllObject",()=>R,"propertyKeyTypes",()=>G,"randomString",()=>F,"rawShape",()=>A,"required",()=>ef,"safeExtend",()=>el,"shallowClone",()=>K,"sizeCaps",()=>eg,"slugify",()=>M,"stringifyPrimitive",()=>ee,"toZod",()=>p,"uint8ArrayToBase64",()=>ex,"uint8ArrayToBase64url",()=>eE,"uint8ArrayToHex",()=>ej,"unwrapMessage",()=>ev],922143);class b{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return void 0!==e&&(this._value=e(),this._getter=void 0),this._value}}function z(e){return new b(e)}function w(e){return null==e}function k(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function $(e,t){let n=e/t,r=Math.round(n),i=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}let O=Symbol("evaluating");function S(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==O)return void 0===r&&(r=O,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function P(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function x(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function A(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function E(e){return A(e._zod.def)??e._zod.def.shape}function Z(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return x(this,t,e),e},enumerable:!0,configurable:!0})}function j(e,t,n){t in e?x(e,t,n):e[t]=n}function T(e,t,n,r){let i=E(t);for(let o of n){let n=Object.getOwnPropertyDescriptor(i,o);n.enumerable&&(n.get?Z(e,o,()=>{let e=t._zod.def.shape[o];return r?r(e,o):e}):j(e,o,r?r(n.value,o):n.value))}}function N(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function I(e){return N(e._zod.def)}function D(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function R(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function F(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function C(e){return JSON.stringify(e)}function M(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let U="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function J(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let L=z(()=>{if(eX.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function B(e){if(!1===J(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==J(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function K(e){return B(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function V(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}let W=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},G=new Set(["string","number","symbol"]),X=new Set(["string","number","bigint","boolean","symbol","undefined"]);function H(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function q(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function Q(e){let t;return new Proxy({},{get:(n,r,i)=>(t??(t=e()),Reflect.get(t,r,i)),set:(n,r,i,o)=>(t??(t=e()),Reflect.set(t,r,i,o)),has:(n,r)=>(t??(t=e()),Reflect.has(t,r)),deleteProperty:(n,r)=>(t??(t=e()),Reflect.deleteProperty(t,r)),ownKeys:n=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,r)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)),defineProperty:(n,r,i)=>(t??(t=e()),Reflect.defineProperty(t,r,i))})}function ee(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function et(e){return Object.keys(e).filter(t=>void 0!==e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let en={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},er={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ei(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i={};return T(i,e,eo(e,t)),Y(e,N(n,{shape:i,checks:[]}))}function eo(e,t){let n=E(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function es(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(eo(e,t)),o={};return T(o,e,Reflect.ownKeys(E(e)).filter(e=>!i.has(e))),Y(e,N(n,{shape:o,checks:[]}))}function ea(e,t){if(!B(t))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let n=E(e);for(let e of Reflect.ownKeys(t))if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Y(e,N(e._zod.def,{shape:eu(e,t)}))}function eu(e,t){let n={};T(n,e,Reflect.ownKeys(E(e)));for(let e of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,e);r.enumerable&&(r.get?Z(n,e,()=>t[e]):j(n,e,r.value))}return n}function el(e,t){if(!B(t))throw Error("Invalid input to safeExtend: expected a plain object");return Y(e,N(e._zod.def,{shape:eu(e,t)}))}function ec(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};T(n,e,Reflect.ownKeys(E(e))),T(n,t,Reflect.ownKeys(E(t)));let r=N(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Y(e,r)}function ed(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let o=n?new Set(eo(t,n)):void 0,s={};return T(s,t,Reflect.ownKeys(E(t)),e&&((t,n)=>o&&!o.has(n)?t:new e({type:"optional",innerType:t}))),Y(t,N(t._zod.def,{shape:s,checks:[]}))}function ef(e,t,n){let r=n?new Set(eo(t,n)):void 0,i={};return T(i,t,Reflect.ownKeys(E(t)),(t,n)=>r&&!r.has(n)?t:new e({type:"nonoptional",innerType:t})),Y(t,N(t._zod.def,{shape:i}))}function ep(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function eh(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function em(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function ev(e){return"string"==typeof e?e:e?.message}function eg(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function ey(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function e_(e,t,n){let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,o=e.message?e.message:ev(e.inst?._zod.def?.error?.(e))??ev(i?.(e))??ev(t?.error?.(e))??ev(n.customError?.(e))??ev(n.localeError?.(e))??"Invalid input",s={};for(let t of Object.keys(e))"inst"!==t&&"schema"!==t&&"continue"!==t&&"input"!==t&&"__proto__"!==t&&(s[t]=e[t]);return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=e.input),s}function eb(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}let ez=/[\uD800-\uDBFF]/;function ew(e){let t=e.length;if(!ez.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(64512&e.charCodeAt(r))==55296&&(64512&e.charCodeAt(r+1))==56320&&(n--,r++);return n}function ek(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function e$(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function eO(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function eS(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function eP(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function ex(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function eA(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return eP(t+n)}function eE(e){return ex(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function eZ(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function ej(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}class eT{constructor(...e){}}function eN(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:eI(this,t,n.bind(this))},set(e){eI(this,t,e)}})}(e,n,r.value)}}function eI(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function eD(e,t,n){return eI(e,t,n,!1)}function eR(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return eI(this,n,r(this))},set(e){eI(this,n,e)}})}return t}let eF=!1,eC={configurable:!0,get(){eF=!0}};function eM(e,n,r){let i=Object.getPrototypeOf(e._zod);if(n in i&&t!==e._zod){t=void 0;return}t=e._zod,Object.defineProperty(i,n,{configurable:!0,get(){Object.defineProperty(this,n,eC);let e=eF;eF=!1;try{let t=r(this);return eF?delete this[n]:Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t}),eF=eF||e,t}catch(t){throw delete this[n],eF=eF||e,t}},set(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})}function eU(e,t,n,r){let i,o=t in(i=Object.getPrototypeOf(e))?void 0:i;o&&Object.defineProperty(o,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}let eJ="~constantCatch";function eL(e){let t=()=>e;return t[eJ]=!0,t}let eB={value:void 0,enumerable:!1},eK="captureStackTrace"in Error?Error:null;function eV(e,t,n,r){function i(e){this.def=e,this.constr=l,this.traits=new Set}i.prototype={};let o=n&&new WeakSet;function s(r,s){if(r._zod){if(r._zod.traits.has(e))return}else{eB.value=new i(s);try{Object.defineProperty(r,"_zod",eB)}finally{eB.value=void 0}}if(r._zod.traits.add(e),t(r,s),o){let e=Object.getPrototypeOf(r),t=r._zod.constr.prototype,i=e;for(;i&&i!==t;)i=Object.getPrototypeOf(i);let s=i??e;o.has(s)||(o.add(s),eN(s,n))}let a=l.prototype;for(let e in a)Object.prototype.hasOwnProperty.call(a,e)&&(e in r||(r[e]=a[e].bind(r)))}let a=r?.Parent??Object;class u extends a{}function l(e){let t=r?.Parent?function(e){let t=eK;if(t){let n=t.stackTraceLimit;if("number"==typeof n){try{t.stackTraceLimit=0}catch{return eK=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}(u):this;s(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(u,"name",{value:e}),Object.defineProperty(l,"init",{value:s}),Object.defineProperty(l,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class eW extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class eG extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(r7=globalThis).__zod_globalConfig??(r7.__zod_globalConfig={});let eX=globalThis.__zod_globalConfig;function eH(e){return e&&Object.assign(eX,e),eX}class eY extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}let eq="~memo",eQ=[];function e0(e){return null!==e&&"object"==typeof e}function e1(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}let e2=new WeakMap,e4=[],e9={alloc(e,t,r){let i=n;if(!i)return r;n=void 0;let o={value:r,issues:null};return i.set(t.value,o),e4.push(o),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{var r,i;let o;if("backward"!==n.direction&&(r=n,i=e.value,void 0!==(o=r[eq]?.backEdges)&&e0(i)&&o.has(i)))throw new eY;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let r,i,o,s=!1;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,a=(u,l)=>{let c;if(void 0===r){let n=function e(t,n,r){var i,o;let s=e2.get(t);if(void 0!==s)return 2*!!s;if(n.has(t))return 2;n.add(t);let a=0,u=t=>{if(2!==a&&t?._zod){let i=e(t,n,r);i>a&&(a=i)}},l=e=>{e>a&&(a=e)},c=t._zod.def;switch(c.type){case"object":{let t=A(c);l(t?((t,i)=>{let o=0;for(let s of Reflect.ownKeys(t)){let a=Object.getOwnPropertyDescriptor(t,s);if(i&&!a.enumerable)continue;let u=a.get?1:a.value?._zod?e(a.value,n,r):0;u>o&&(o=u)}return o})(t,!0):1),u(c.catchall);break}case"array":u(c.element);break;case"tuple":for(let e of c.items)u(e);u(c.rest);break;case"record":case"map":u(c.keyType),u(c.valueType);break;case"set":u(c.valueType);break;case"union":for(let e of c.options)u(e);break;case"intersection":u(c.left),u(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":u(c.innerType);break;case"pipe":u(c.in),u(c.out);break;case"function":u(c.input),u(c.output);break;case"lazy":{let i=c._cachedInner??(r?t._zod.innerType:void 0);l(i?e(i,n,!1):1);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&"object"==typeof n){if(n._zod)u(n);else if(Array.isArray(n))for(let e of n)u(e)}}}return n.delete(t),i=t,1!==(o=a)&&e2.set(i,2===o),o}(e,new Set,!1);if(0===n)return e._zod.parse=t,e._zod.run===a&&(e._zod.run=t),t(u,l);2===n||s?r=!0:s=!0}let d=u.value;if(!e0(d))return t(u,l);let f=l[eq];if(f||(f={buckets:new WeakMap,backEdges:void 0},l[eq]=f),i===l)c=o;else{var p;let t;(t=(p=f).buckets.get(e))||(t=new WeakMap,p.buckets.set(e,t)),c=t,i=l,o=c}let h=c.get(d);if(h)return u.value=h.value,h.issues?h.issues.length&&u.issues.push(...e1(h.issues)):(u.memo=!0,f.backEdges??(f.backEdges=new WeakSet),f.backEdges.add(h.value)),u;n=c;let m=e4.length,v=t(u,l);n=void 0;let g=e4.length>m?e4.pop():void 0;return v instanceof Promise?v.then(e=>(g&&(g.issues=e.issues.length?e1(e.issues):eQ),e)):(g&&(g.issues=v.issues.length?e1(v.issues):eQ),v)};e._zod.parse=a,e._zod.run===t&&(e._zod.run=a)})}};(ie=globalThis).__zod_globalRegistry??(ie.__zod_globalRegistry=new class e{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});let e6=globalThis.__zod_globalRegistry,e3=/^[cC][0-9a-z]{6,}$/,e5=/^[0-9a-z]+$/,e8=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,e7=/^[0-9a-vA-V]{20}$/,te=/^[A-Za-z0-9]{27}$/,tt=/^[a-zA-Z0-9_-]{21}$/;function tn(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}let tr=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ti=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,to=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ts=to(4),ta=to(6),tu=to(7),tl=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tc=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u;function td(){return RegExp("^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$","u")}let tf=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tp=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,th=e=>{let t=H(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tm=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tv=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ty=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,t_=/^https?$/,tb=/^\+[1-9]\d{6,14}$/,tz=/^\d(?:[ -]?\d){11,18}$/,tw=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,tk="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",t$=RegExp(`^${tk}$`);function tO(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tS(e){return RegExp(`^${tO(e)}$`)}function tP(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${tO({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${tO({precision:e.precision})}`:n;return RegExp(`^${tk}T(?:${r})$`)}let tx=/^[\s\S]{0,}$/,tA=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},tE=/^-?\d+n?$/,tZ=/^-?\d+$/,tj=/^-?\d+(?:\.\d+)?$/,tT=/^(?:true|false)$/i,tN=/^null$/i,tI=/^undefined$/i,tD=/^[^A-Z]*$/,tR=/^[^a-z]*$/;function tF(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tC(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let tM=tF(22,"=="),tU=tC(22),tJ=tF(27,"="),tL=tC(27),tB=tF(43,"="),tK=tC(43),tV=tF(64,""),tW=tC(64),tG=tF(86,"=="),tX=tC(86);e.s(["anyString",0,tx,"base64",0,tg,"base64url",0,ty,"bigint",0,tE,"boolean",0,tT,"browserEmail",0,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"cidrv4",0,tm,"cidrv6",0,tv,"creditCard",0,tz,"cuid",0,e3,"cuid2",0,e5,"currencyCode",0,/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,"date",0,t$,"datetime",0,tP,"domain",0,/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,"duration",0,tr,"e164",0,tb,"email",0,tl,"emoji",0,td,"extendedDuration",0,/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,"guid",0,ti,"hex",0,/^[0-9a-fA-F]*$/,"hostname",0,/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,"html5Email",0,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"httpProtocol",0,t_,"iban",0,tw,"idnEmail",0,tc,"integer",0,tZ,"ipv4",0,tf,"ipv6",0,tp,"ksuid",0,te,"lowercase",0,tD,"mac",0,th,"md5_base64",0,tM,"md5_base64url",0,tU,"md5_hex",0,/^[0-9a-fA-F]{32}$/,"nanoid",0,tt,"nanoidOfLength",0,tn,"null",0,tN,"number",0,tj,"rfc5322Email",0,/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"sha1_base64",0,tJ,"sha1_base64url",0,tL,"sha1_hex",0,/^[0-9a-fA-F]{40}$/,"sha256_base64",0,tB,"sha256_base64url",0,tK,"sha256_hex",0,/^[0-9a-fA-F]{64}$/,"sha384_base64",0,tV,"sha384_base64url",0,tW,"sha384_hex",0,/^[0-9a-fA-F]{96}$/,"sha512_base64",0,tG,"sha512_base64url",0,tX,"sha512_hex",0,/^[0-9a-fA-F]{128}$/,"string",0,tA,"time",0,tS,"ulid",0,e8,"undefined",0,tI,"unicodeEmail",0,tc,"uppercase",0,tR,"uuid",0,to,"uuid4",0,ts,"uuid6",0,ta,"uuid7",0,tu,"xid",0,e7],682358);let tH=eV("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tY=e=>{let t=e.value;return!w(t)&&void 0!==t.size},tq=e=>{let t=e.value;return!w(t)&&void 0!==t.length},tQ={number:"number",bigint:"bigint",object:"date"},t0=eV("$ZodCheckLessThan",(e,t)=>{tH.init(e,t);let n=tQ[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:tQ[typeof r.value]??n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),t1=eV("$ZodCheckGreaterThan",(e,t)=>{tH.init(e,t);let n=tQ[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:tQ[typeof r.value]??n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),t2=eV("$ZodCheckMultipleOf",(e,t)=>{tH.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):0===$(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),t4=eV("$ZodCheckNumberFormat",(e,t)=>{tH.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=en[t.format];e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a))return void s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});if(!Number.isSafeInteger(a))return void(a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}))}a<i&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),t9=eV("$ZodCheckBigIntFormat",(e,t)=>{tH.init(e,t);let[n,r]=er[t.format];e._zod.check=i=>{let o=i.value;o<n&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>r&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),t6=eV("$ZodCheckMaxSize",(e,t)=>{var n;tH.init(e,t),(n=e._zod.def).when??(n.when=tY),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:eb(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),t3=eV("$ZodCheckMinSize",(e,t)=>{var n;tH.init(e,t),(n=e._zod.def).when??(n.when=tY),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:eb(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),t5=eV("$ZodCheckSizeEquals",(e,t)=>{var n;tH.init(e,t),(n=e._zod.def).when??(n.when=tY),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let o=i>t.size;n.issues.push({origin:eb(r),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),t8=eV("$ZodCheckMaxLength",(e,t)=>{var n;tH.init(e,t),(n=e._zod.def).when??(n.when=tq),e._zod.check=n=>{let r=n.value,i=r.length;if(("string"==typeof r&&i>t.maximum?ew(r):i)<=t.maximum)return;let o=ek(r);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),t7=eV("$ZodCheckMinLength",(e,t)=>{var n;tH.init(e,t),(n=e._zod.def).when??(n.when=tq),e._zod.check=n=>{let r=n.value,i=r.length;if(("string"==typeof r&&i>=t.minimum&&i<2*t.minimum?ew(r):i)>=t.minimum)return;let o=ek(r);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ne=eV("$ZodCheckLengthEquals",(e,t)=>{var n;tH.init(e,t),(n=e._zod.def).when??(n.when=tq),e._zod.check=n=>{let r=n.value,i=r.length,o="string"==typeof r&&i>=t.length&&i<=2*t.length?ew(r):i;if(o===t.length)return;let s=ek(r),a=o>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),nt=eV("$ZodCheckStringFormat",(e,t)=>{var n,r;tH.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),nn=eV("$ZodCheckRegex",(e,t)=>{nt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),nr=eV("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tD),nt.init(e,t)}),ni=eV("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=tR),nt.init(e,t)}),no=eV("$ZodCheckIncludes",(e,t)=>{tH.init(e,t);let n=H(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ns=eV("$ZodCheckStartsWith",(e,t)=>{tH.init(e,t);let n=RegExp(`^${H(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),na=eV("$ZodCheckEndsWith",(e,t)=>{tH.init(e,t);let n=RegExp(`.*${H(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function nu(e,t,n){e.issues.length&&t.issues.push(...em(n,e.issues))}(e,t)=>{let n;tH.init(e,t),eD(e,Symbol.iterator,function*(){yield e}),e._zod.check=r=>{let i;if(null==r.value)return void r.issues.push({expected:"object",code:"invalid_type",input:r.value,inst:e});n??(n=Reflect.ownKeys(t.shape).map(e=>[e,t.shape[e]]));let o=r.value;for(let[e,t]of n){let n=t._zod.run({value:o[e],issues:[]},{});n instanceof Promise?(i??(i=[]),i.push(n.then(t=>nu(t,r,e)))):nu(n,r,e)}if(i)return Promise.all(i).then(()=>void 0)}},(e,t)=>{tH.init(e,t);let n=new Set(t.mime);e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}};let nl=eV("$ZodCheckOverwrite",(e,t)=>{tH.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class nc{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){let e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
2
+ ${t.join("\n")}
3
+ };`)(...Object.values(this.closed))}}let nd={get:function(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,_,2)),e.message},set:function(e){this._zod.message=e},enumerable:!0,configurable:!0},nf={value:void 0,enumerable:!1},np=new WeakSet([Object.prototype,Error.prototype]),nh=(e,t)=>{e.name="$ZodError",nf.value=t,Object.defineProperty(e,"issues",nf),nf.value=void 0,Object.defineProperty(e,"message",nd);let n=Object.getPrototypeOf(e);np.has(n)||(np.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},nm=eV("$ZodError",nh),nv=eV("$ZodError",nh,void 0,{Parent:Error});function ng(e,t){return{callee:t?.callee??e,Err:t?.Err}}let ny=e=>{let t=(n,r,i,o)=>{let s=i?{...i,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new eW;if(a.issues.length){let n=new(o?.Err??e)(a.issues.map(e=>e_(e,s,eH())));throw U(n,o?.callee??t),n}return a.value};return t},n_=ny(nv),nb=e=>{let t=async(n,r,i,o)=>{let s=i?{...i,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let n=new(o?.Err??e)(a.issues.map(e=>e_(e,s,eH())));throw U(n,o?.callee??t),n}return a.value};return t},nz=nb(nv),nw=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new eW;return o.issues.length?nk(e,o.issues,i):{success:!0,data:o.value}};function nk(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>e_(e,n,eH()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}let n$=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?nk(e,o.issues,i):{success:!0,data:o.value}},nO=Symbol.for("zod.compile.invalid"),nS=Symbol.for("zod.compile.fallback"),nP=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),0===i.issues.length},nx={major:4,minor:6,patch:7},nA=eV("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nx;let r=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(0===i.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{let i;if(t.memo)return t;let o=ep(t);for(let s of n){if(s._zod.def.when){if(eh(t)||!s._zod.def.when(t))continue}else if(o)continue;let n=t.issues.length,a=s._zod.check(t);if(a instanceof Promise&&r?.async===!1)throw new eW;if(i||a instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await a,t.issues.length!==n&&(ey(t.issues,n,e),o||(o=ep(t,n)))});else{if(t.issues.length===n)continue;ey(t.issues,n,e),o||(o=ep(t,n))}}return i?i.then(()=>t):t},n=(n,r,o)=>{if(ep(n))return n.aborted=!0,n;let s=t(r,i,o);if(s instanceof Promise){if(!1===o.async)throw new eW;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(r,o)=>{if(o.skipChecks)return e._zod.parse(r,o);if("backward"===o.direction){let t=e._zod.parse({value:r.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,o)):n(t,r,o)}let s=e._zod.parse(r,o);if(s instanceof Promise){if(!1===o.async)throw new eW;return s.then(e=>t(e,i,o))}return t(s,i,o)}}},{get"~standard"(){return eD(this,"~standard",nj(this))},set"~standard"(e){eI(this,"~standard",e)}}),nE=(e,t)=>e.issues.length?{issues:e.issues.map(e=>e_(e,t,eH()))}:{value:e.value};async function nZ(e,t){let n={async:!0};return nE(await e._zod.run({value:t,issues:[]},n),n)}function nj(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return nE(r,n)}catch(e){}return nZ(e,t)},vendor:"zod",version:1}}let nT=eV("$ZodString",(e,t)=>{nA.init(e,t),e._zod.pattern=t.pattern??tx,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),nN=eV("$ZodStringFormat",(e,t)=>{nt.init(e,t),nT.init(e,t)}),nI=eV("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ti),nN.init(e,t)}),nD=eV("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=to(e))}else t.pattern??(t.pattern=to());nN.init(e,t)}),nR=eV("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=tl),nN.init(e,t)});function nF(e){try{if("u">typeof URL&&"function"==typeof URL.canParse)return URL.canParse(e);return new URL(e),!0}catch{return!1}}let nC=/[\t\n\r]/g;function nM(e){return e.replace(nC,"")}let nU=eV("$ZodURL",(e,t)=>{nN.init(e,t),e._zod.check=n=>{try{var r,i;let o=n.value.trim(),s="normalize"in t||"hostname"in t||"protocol"in t?function(e,t){if(!t.normalize&&t.protocol?.source===t_.source&&!/^https?:\/\//i.test(e))return 1;try{if("u">typeof URL){let t=URL;if("function"==typeof t.parse)return t.parse(e)??2}return new URL(e)}catch{return 2}}(o,t):nF(o)||2;if(1===s)return void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});if(2===s)return void n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});if(!0===s){n.value=nM(o);return}t.hostname&&((r=t.hostname).lastIndex=0,!r.test(s.hostname))&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&((i=t.protocol).lastIndex=0,!i.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol))&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?s.href:nM(o);return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),nJ=eV("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=td()),nN.init(e,t)}),nL=eV("$ZodNanoID",(e,t)=>{if(void 0!==t.length&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=void 0===t.length?tt:tn(t.length)),nN.init(e,t)}),nB=eV("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=e3),nN.init(e,t)}),nK=eV("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=e5),nN.init(e,t)}),nV=eV("$ZodULID",(e,t)=>{t.pattern??(t.pattern=e8),nN.init(e,t)}),nW=eV("$ZodXID",(e,t)=>{t.pattern??(t.pattern=e7),nN.init(e,t)}),nG=eV("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=te),nN.init(e,t)}),nX=eV("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tP(t)),nN.init(e,t)}),nH=eV("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=t$),nN.init(e,t)}),nY=eV("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=tS(t)),nN.init(e,t)}),nq=eV("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tr),nN.init(e,t)}),nQ=eV("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=tf),nN.init(e,t)}),n0=/^[0-9a-fA-F:.]+$/;function n1(e){return!!n0.test(e)&&nF(`http://[${e}]`)}let n2=eV("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=tp),nN.init(e,t),e._zod.check=n=>{n1(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),n4=((e,t)=>{t.pattern??(t.pattern=th(t.delimiter)),nN.init(e,t)},eV("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=tm),nN.init(e,t)})),n9=eV("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tv),nN.init(e,t),e._zod.check=n=>{!function(e){let t=e.split("/");if(2!==t.length)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`===r&&!(i<0)&&!(i>128)&&n1(n)}(n.value)&&n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function n6(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let n3=/^[0-9a-zA-Z+/]*={0,2}$/,n5=eV("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=n3),nN.init(e,t),e._zod.check=n=>{n6(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),n8=/^[A-Za-z0-9_-]*$/,n7=eV("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=n8),nN.init(e,t),e._zod.check=n=>{!function(e){if(!n8.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return n6(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),re=eV("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tb),nN.init(e,t)}),rt=/[- ]/g,rn=((e,t)=>{t.pattern??(t.pattern=tz),nN.init(e,t),e._zod.check=n=>{var r;r=n.value,tz.test(r)&&function(e){let t=e.length,n=1,r=0;for(;t;){let i=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][i]:i}return r%10==0}(r.replace(rt,""))||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}},eV("$ZodJWT",(e,t)=>{nN.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}})),rr=((e,t)=>{nN.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}},eV("$ZodNumber",(e,t)=>{nA.init(e,t),e._zod.pattern=tj,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}})),ri=eV("$ZodNumberFormat",(e,t)=>{t4.init(e,t),rr.init(e,t)}),ro=eV("$ZodBoolean",(e,t)=>{nA.init(e,t),e._zod.pattern=tT,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),rs=eV("$ZodBigInt",(e,t)=>{nA.init(e,t),e._zod.pattern=tE,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),ra=((e,t)=>{t9.init(e,t),rs.init(e,t)},eV("$ZodUnknown",(e,t)=>{nA.init(e,t),e._zod.parse=e=>e})),ru=eV("$ZodNever",(e,t)=>{nA.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function rl(e,t){let n=eg(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,o)=>{let s=t(n.value);if(s>r&&!o?.skipChecks&&o?.direction!=="backward"){for(let[t,r]of eg(e._zod.def.checks))if(s>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,ey(n.issues,t,e),n}}return i(n,o)}}(e,t)=>{nA.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}},(e,t)=>{nA.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}let i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}};let rc=e=>Array.isArray(e)?e.length:-1,rd=e=>e instanceof Map?e.size:-1,rf=e=>e instanceof Set?e.size:-1;function rp(e,t,n){e.issues.length&&t.issues.push(...em(n,e.issues)),t.value[n]=e.value}let rh=eV("$ZodArray",(e,t)=>{nA.init(e,t);let n=eX.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=n?n.alloc(e,r,Array(o.length),i):Array(o.length);let s=[],a=i?.abortEarly;for(let e=0;e<o.length;e++){let n=o[e],u=t.element._zod.run({value:n,issues:[]},i);if(u instanceof Promise)s.push(u.then(t=>rp(t,r,e)));else if(rp(u,r,e),a&&0!==u.issues.length&&ep(u))break}return s.length?Promise.all(s).then(()=>r):r},rl(e,rc)});function rm(e,t,n,r,i,o){let s=n in r,a="optional"===o;if(s||!a||"optional"!==i){if(e.issues.length){if(void 0!==i&&a&&!s)return;t.issues.push(...em(n,e.issues))}if(!s&&void 0===i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===e.value?(s||"defaulted"===i&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}let rv=[];function rg(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:rv,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let o=et(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function ry(e,t,n,r,i,o,s){let a=[],u=i.keySet,l=i.catchall._zod,c=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(s&&n.issues.length!==p){if(ep(n,p))break;p=n.issues.length}if(u.has(i))continue;if("__proto__"===i){"never"===c&&a.push(i);continue}if("never"===c){a.push(i);continue}let o=l.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then(e=>rm(e,n,i,t,d,f))):rm(o,n,i,t,d,f)}return(a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o,continue:!0}),e.length)?Promise.all(e).then(()=>n):n}let r_=eV("$ZodObject",(e,t)=>{let n;nA.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape"),i=r?.get?r.get.raw:t.shape??{};if(i){let e=()=>{let n={...i};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=i,Object.defineProperty(t,"shape",{get:e})}let o=z(()=>rg(t));eM(e,"propValues",e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){for(let t of(Object.prototype.hasOwnProperty.call(n,e)||x(n,e,new Set),r.values))n[e].add(t);void 0!==r.optin&&n[e].add(void 0)}}return n});let s=t.catchall,a=eX.memoizer;a?.attach(e),e._zod.parse=(t,r)=>{n??(n=o.value);let i=t.value;if(!J(i))return t.issues.push({expected:"object",code:"invalid_type",input:i,inst:e}),t;t.value=a?a.alloc(e,t,{},r):{};let u=[],l=n.shape,c=r?.abortEarly,d=t.issues.length;for(let e of n.allKeys){if(c&&t.issues.length!==d){if(ep(t,d))break;d=t.issues.length}if("__proto__"===e)continue;let n=l[e],o=n._zod.optin,s=n._zod.optout,a=n._zod.run({value:i[e],issues:[]},r);a instanceof Promise?u.push(a.then(n=>rm(n,t,e,i,o,s))):rm(a,t,e,i,o,s)}return s?ry(u,i,t,r,o.value,e,!0===c):u.length?Promise.all(u).then(()=>t):t}}),rb=eV("$ZodObjectJIT",(e,t)=>{let n,r;r_.init(e,t);let i=e._zod.parse,o=z(()=>rg(t)),s=eX.memoizer,a=!eX.jitless,u=a&&L.value,l=t.catchall;e._zod.parse=(c,d)=>{r??(r=o.value);let f=c.value;return J(f)?a&&u&&d?.async===!1&&!0!==d.jitless?(n||(n=(t=>{let n=o.value,r=n.symbolKeys,i=new nc(["payload","ctx"],{shape:t,inst:e,memo:s,syms:r}),a=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,u=(e,t)=>`
4
+ let ${e}_ab = false;
5
+ for (let i = 0; i < ${e}.issues.length; i++) {
6
+ const iss = ${e}.issues[i];
7
+ iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
8
+ payload.issues.push(iss);
9
+ if (iss.continue !== true) ${e}_ab = true;
10
+ }
11
+ if (${e}_ab && ctx && ctx.abortEarly) {
12
+ payload.value = newResult;
13
+ return payload;
14
+ }`;i.write("const input = payload.value;");let l=Object.create(null),c=0;for(let e of n.allKeys)l[e]=`key_${c++}`;for(let e of(i.write(s?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};"),n.allKeys)){if("__proto__"===e)continue;let n=l[e],o="symbol"==typeof e?`syms[${r.indexOf(e)}]`:C(e),s=`${o} in input`,c=t[e],d=c?._zod?.optin,f=void 0!==d,p=c?._zod?.optout==="optional";if(i.write(`const ${n} = ${a(o)};`),f&&p){let e="optional"===d?`${n}_present`:`${n}.value !== undefined || ${n}_present`;i.write(`
15
+ const ${n}_present = ${s};
16
+ if (!${n}.issues.length || ${n}_present) {
17
+ if (${n}.issues.length) {${u(n,o)}
18
+ }
19
+
20
+ if (${e}) {
21
+ newResult[${o}] = ${n}.value;
22
+ }
23
+ }
24
+
25
+ `)}else f?(i.write(`
26
+ if (${n}.issues.length) {${u(n,o)}
27
+ }
28
+ `),"defaulted"===d?i.write(`newResult[${o}] = ${n}.value;`):i.write(`
29
+ if (${n}.value !== undefined || ${s}) {
30
+ newResult[${o}] = ${n}.value;
31
+ }
32
+ `)):i.write(`
33
+ const ${n}_present = ${s};
34
+ if (${n}.issues.length) {${u(n,o)}
35
+ }
36
+ if (!${n}_present && !${n}.issues.length) {
37
+ payload.issues.push({
38
+ code: "invalid_type",
39
+ expected: "nonoptional",
40
+ input: undefined,
41
+ path: [${o}]
42
+ });
43
+ if (ctx && ctx.abortEarly) {
44
+ payload.value = newResult;
45
+ return payload;
46
+ }
47
+ }
48
+
49
+ if (${n}_present) {
50
+ newResult[${o}] = ${n}.value;
51
+ }
52
+
53
+ `)}return i.write("payload.value = newResult;"),i.write("return payload;"),i.compile()})(t.shape)),c=n(c,d),l)?ry([],f,c,d,r,e,d?.abortEarly===!0):c:i(c,d):(c.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),c)}});function rz(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let i=e.filter(e=>!ep(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>e_(e,r,eH())))}),t)}let rw=eV("$ZodUnion",(e,t)=>{nA.init(e,t),eM(e,"optin",e=>e.def.options.some(e=>"defaulted"===e._zod.optin)?"defaulted":e.def.options.some(e=>void 0!==e._zod.optin)?"optional":void 0),eM(e,"optout",e=>e.def.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),eM(e,"values",e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),eM(e,"pattern",e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>k(e.source)).join("|")})$`)}});let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)s.push(t),o=!0;else{if(0===t.issues.length)return t;s.push(t)}}return o?Promise.all(s).then(t=>rz(t,r,e,i)):rz(s,r,e,i)}});function rk(e,t,n,r){let i=[];for(let t=0;t<e.length;t++)0===e[t].issues.length&&i.push(t);return 1===i.length?t.value=e[i[0]].value:0===i.length?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>e_(e,r,eH())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:i}),t}(e,t)=>{rw.init(e,t),t.inclusive=!1;let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(s.push(t),o=!0):s.push(t)}return o?Promise.all(s).then(t=>rk(t,r,e,i)):rk(s,r,e,i)}},(e,t)=>{t.inclusive=!1,rw.init(e,t);let n=e._zod.parse;eM(e,"propValues",e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||0===Object.keys(i).length)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);for(let[r,o]of(i[e.def.discriminator]?.has(void 0)&&n++,Object.entries(i)))for(let e of(Object.prototype.hasOwnProperty.call(t,r)||x(t,r,new Set),o))t[r].add(e)}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=A(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=z(()=>(function(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||0===r.size)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(void 0!==e)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t})(t));e._zod.parse=(i,o)=>{let s=i.value;if(!J(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let a=s?.[t.discriminator],u=r.value.get(a);return u&&(void 0!==a||"backward"!==o.direction)?u._zod.run(i,o):t.unionFallback||"backward"===o.direction?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>null!==r.value.get(e)),input:s,path:[t.discriminator],inst:e}),i)}};let r$=eV("$ZodIntersection",(e,t)=>{nA.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,n])=>rO(e,t,n)):rO(e,i,o)}});function rO(e,t,n){let r,i=new Map,o=new Map,s=(e,t)=>{let n;if("unrecognized_keys"!==e.code||e.path?.length)if("invalid_key"!==e.code||"record"!==e.origin||e.path?.length!==1)return!1;else{let t=String(e.path[0]);o.has(t)||o.set(t,e),n=[t]}else r??(r=e),n=e.keys;for(let e of n)i.has(e)||i.set(e,{}),i.get(e)[t]=!0;return!0};for(let n of t.issues)s(n,"l")||e.issues.push(n);for(let t of n.issues)s(t,"r")||e.issues.push(t);let a=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length){let t=r?a.filter(e=>r.keys.includes(e)):[];for(let n of(t.length&&e.issues.push({...r,keys:t}),a))!t.includes(n)&&o.has(n)&&e.issues.push(o.get(n))}let u=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(B(t)&&B(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),o={...t,...n};for(let r of(Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__,i)){if("__proto__"===r)continue;let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};o[r]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let o=e(t[i],n[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!u.valid){if(ep(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`)}return e.value=u.data,e}let rS=eV("$ZodTuple",(e,t)=>{nA.init(e,t);let n=t.items,r=eX.memoizer;r?.attach(e),e._zod.parse=(i,o)=>{let s=i.value;if(!Array.isArray(s))return i.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=r?r.alloc(e,i,[],o):[];let a=[],u=rP(n,"optin"),l=rP(n,"optout");if(!t.rest){if(s.length<u)return i.issues.push({code:"too_small",minimum:u,inclusive:!0,input:s,inst:e,origin:"array"}),i;s.length>n.length&&i.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let c=Array(n.length),d=t.rest?o?.abortEarly:void 0,f=!1;for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:s[e],issues:[]},o);t instanceof Promise?a.push(t.then(t=>{c[e]=t})):(c[e]=t,d&&!f&&t.issues.length&&(f=ep(t)))}if(t.rest&&!f){let e=n.length-1,r=s.slice(n.length),u=i.issues.length;for(let n of r){if(d&&i.issues.length!==u){if(ep(i,u))break;u=i.issues.length}e++;let r=t.rest._zod.run({value:n,issues:[]},o);r instanceof Promise?a.push(r.then(t=>rx(t,i,e))):rx(r,i,e)}}return a.length?Promise.all(a).then(()=>rA(c,i,n,s,l)):rA(c,i,n,s,l)}});function rP(e,t){for(let n=e.length-1;n>=0;n--)if(!("optin"===t?void 0!==e[n]._zod.optin:"optional"===e[n]._zod.optout))return n+1;return 0}function rx(e,t,n){e.issues.length&&t.issues.push(...em(n,e.issues)),t.value[n]=e.value}function rA(e,t,n,r,i){for(let o=0;o<n.length;o++){let s=e[o],a=o<r.length;if(!a&&o>=i&&"optional"===n[o]._zod.optin){t.value.length=o;break}if(s.issues.length){if(!a&&o>=i){t.value.length=o;break}t.issues.push(...em(o,s.issues))}t.value[o]=s.value}for(let e=t.value.length-1;e>=r.length;e--)if("optional"===n[e]._zod.optout&&void 0===t.value[e])t.value.length=e;else break;return t}function rE(e,t,n,r,i,o,s){e.issues.length&&(G.has(typeof r)?n.issues.push(...em(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(e=>e_(e,s,eH()))})),t.issues.length&&(G.has(typeof r)?n.issues.push(...em(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:r,issues:t.issues.map(e=>e_(e,s,eH()))})),n.value.set(e.value,t.value)}function rZ(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}(e,t)=>{nA.init(e,t);let n=eX.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let o=r.value;if(!B(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){let u;r.value=n?n.alloc(e,r,{},i):{};let l=new Set;for(let n of a)if("string"==typeof n||"number"==typeof n||"symbol"==typeof n){if(l.add("number"==typeof n?n.toString():n),"__proto__"===n)continue;let a=t.keyType._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(a.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(e=>e_(e,i,eH())),input:n,path:[n],inst:e});continue}let u=a.value;if("__proto__"===u)continue;let c=t.valueType._zod.run({value:o[n],issues:[]},i);c instanceof Promise?s.push(c.then(e=>{e.issues.length&&r.issues.push(...em(n,e.issues)),r.value[u]=e.value})):(c.issues.length&&r.issues.push(...em(n,c.issues)),r.value[u]=c.value)}for(let e in o)if(!l.has(e))if("loose"===t.mode){if("__proto__"===e)continue;r.value[e]=o[e]}else(u=u??[]).push(e);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:u,continue:!0})}else{let u;for(let l of(r.value=n?n.alloc(e,r,{},i):{},Reflect.ownKeys(o))){if("__proto__"===l||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let n=t.keyType._zod.run({value:l,issues:[]},i);if(n instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof l&&tj.test(l)&&n.issues.length){let e=t.keyType._zod.run({value:Number(l),issues:[]},i);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(n=e)}if(n.issues.length){"loose"===t.mode?r.value[l]=o[l]:a?(u=u??[]).push(l):r.issues.push({code:"invalid_key",origin:"record",issues:n.issues.map(e=>e_(e,i,eH())),input:l,path:[l],inst:e});continue}let c=n.value;if("__proto__"===c)continue;let d=t.valueType._zod.run({value:o[l],issues:[]},i);d instanceof Promise?s.push(d.then(e=>{e.issues.length&&r.issues.push(...em(l,e.issues)),r.value[c]=e.value})):(d.issues.length&&r.issues.push(...em(l,d.issues)),r.value[c]=d.value)}u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:u,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}},(e,t)=>{nA.init(e,t);let n=eX.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let o=r.value;if(!(o instanceof Set))return r.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=n?n.alloc(e,r,new Set,i):new Set;let a=i?.abortEarly,u=r.issues.length;for(let e of o){if(a&&r.issues.length!==u){if(ep(r,u))break;u=r.issues.length}let n=t.valueType._zod.run({value:e,issues:[]},i);n instanceof Promise?s.push(n.then(e=>rZ(e,r))):rZ(n,r)}return s.length?Promise.all(s).then(()=>r):r},rl(e,rf)};let rj=eV("$ZodEnum",(e,t)=>{nA.init(e,t);let n=g(t.entries),r=new Set(n);e._zod.values=r,eM(e,"pattern",e=>{let t=g(e.def.entries).filter(e=>G.has(typeof e));return new RegExp(t.length?`^(${t.map(e=>H(e.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(t,i)=>{let o=t.value;return r.has(o)||t.issues.push({code:"invalid_value",values:n,input:o,inst:e}),t}}),rT=((e,t)=>{nA.init(e,t);let n=new Set(t.values);e._zod.values=n,eM(e,"pattern",e=>{let t=e.def.values;return new RegExp(t.length?`^(${t.map(e=>"string"==typeof e?H(e):e?H(e.toString()):String(e)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,i)=>{let o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}},eV("$ZodTransform",(e,t)=>{nA.init(e,t),e._zod.optin="optional",eX.memoizer?.guard(e),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new eG(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new eW;return n.value=i,n}}));function rN(e,t){return e.value=t.issues.length?void 0:t.value,e}let rI=eV("$ZodOptional",(e,t)=>{nA.init(e,t),eM(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),e._zod.optout="optional",eM(e,"values",e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),eM(e,"pattern",e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${k(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(void 0===e.value){if("defaulted"!==t.innerType._zod.optin)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>rN(e,t)):rN(e,r)}return t.innerType._zod.run(e,n)}}),rD=eV("$ZodExactOptional",(e,t)=>{rI.init(e,t),eM(e,"values",e=>e.def.innerType._zod.values),eM(e,"pattern",e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),rR=eV("$ZodNullable",(e,t)=>{nA.init(e,t),eM(e,"optin",e=>e.def.innerType._zod.optin),eM(e,"optout",e=>e.def.innerType._zod.optout),eM(e,"pattern",e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${k(t.source)}|null)$`):void 0}),eM(e,"values",e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),rF=eV("$ZodDefault",(e,t)=>{nA.init(e,t),e._zod.optin="defaulted",eM(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>rC(e,t)):rC(r,t)}});function rC(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let rM=eV("$ZodPrefault",(e,t)=>{nA.init(e,t),e._zod.optin="defaulted",eM(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),rU=eV("$ZodNonOptional",(e,t)=>{nA.init(e,t),eM(e,"values",e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>rJ(t,e)):rJ(i,e)}});function rJ(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function rL(e,t,n,r){return t.issues.length?e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>e_(e,r,eH()))},input:e.value}):(e.value=t.value,t.memo&&(e.memo=!0)),e}(e,t)=>{nA.init(e,t),e._zod.parse=(e,n)=>{if("backward"===n.direction)throw new eG("ZodSuccess");let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===r.issues.length,e)}};let rB=eV("$ZodCatch",(e,t)=>{nA.init(e,t),eM(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),eM(e,"optout",e=>e.def.innerType._zod.optout),eM(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>rL(e,r,t,n)):rL(e,r,t,n)}}),rK=((e,t)=>{nA.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)},eV("$ZodPipe",(e,t)=>{nA.init(e,t),eM(e,"values",e=>e.def.in._zod.values),eM(e,"optin",e=>e.def.in._zod.optin),eM(e,"optout",e=>e.def.out._zod.optout),eM(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>rV(e,t.in,n)):rV(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>rV(e,t.out,n)):rV(r,t.out,n)}}));function rV(e,t,n){return e.issues.some(e=>"unrecognized_keys"!==e.code)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}function rW(e,t,n){if(e.issues.length)return e.aborted=!0,e;if("forward"===(n.direction||"forward")){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>rG(e,r,t.out,n)):rG(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>rG(e,r,t.in,n)):rG(e,r,t.in,n)}}function rG(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}(e,t)=>{nA.init(e,t),eM(e,"values",e=>e.def.in._zod.values),eM(e,"optin",e=>e.def.in._zod.optin),eM(e,"optout",e=>e.def.out._zod.optout),eM(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if("forward"===(n.direction||"forward")){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>rW(e,t,n)):rW(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>rW(e,t,n)):rW(r,t,n)}}},(e,t)=>{rK.init(e,t)};let rX=eV("$ZodReadonly",(e,t)=>{nA.init(e,t),eM(e,"propValues",e=>e.def.innerType._zod.propValues),eM(e,"values",e=>e.def.innerType._zod.values),eM(e,"optin",e=>e.def.innerType?._zod?.optin),eM(e,"optout",e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(rH):rH(r)}});function rH(e){return e.memo||(e.value=Object.freeze(e.value)),e}(e,t)=>{nA.init(e,t);let n=[];for(let e of t.parts)if("object"==typeof e&&null!==e){let t=function e(t){let n=t._zod.def,r=t._zod.pattern?.source,i=n.innerType??t._zod.innerType;if(i){let t=i._zod.pattern?.source,n=e(i);return r&&t&&n&&n!==t?r.replace(k(t),()=>k(n)):r}if(n.options){let t=n.options.map(e);if(t.every(Boolean))return`^(${t.map(e=>k(e)).join("|")})$`}return function(e){let t,n,r=e._zod.def,i=r.pattern,o=!!r.format?.includes("int");for(let e of r.checks??[]){let r=e._zod.def;r.pattern&&(i=r.pattern),o||(o=!!r.format?.includes("int"));let s=r.minimum??r.length,a=r.maximum??r.length;void 0!==s&&(void 0===t||s>t)&&(t=s),void 0!==a&&(void 0===n||a<n)&&(n=a)}if(i)return i.source;if(void 0!==t&&void 0!==n&&t>n)return"(?!)";if(void 0!==t||void 0!==n)return tA({minimum:t,maximum:n}).source;let s=e._zod.pattern;return(o&&s===tj?tZ:s)?.source}(t)}(e);if(!t)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);n.push(k(t))}else if(null===e||X.has(typeof e))n.push(H(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join("")}$`),e._zod.parse=(n,r)=>("string"!=typeof n.value?n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),n)},(e,t)=>{nA.init(e,t),S(e._zod,"innerType",()=>(t._cachedInner||(t._cachedInner=t.getter()),t._cachedInner)),eM(e,"pattern",e=>e.innerType?._zod?.pattern),eM(e,"propValues",e=>e.innerType?._zod?.propValues),eM(e,"optin",e=>e.innerType?._zod?.optin??void 0),eM(e,"optout",e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)};let rY=eV("$ZodCustom",(e,t)=>{tH.init(e,t),nA.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>rq(t,n,r,e));rq(i,n,r,e)}});function rq(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(eO(e))}}function rQ(e){return e.checks&&(e.checks=[...e.checks]),e}function r0(e,t){return new t0({check:"less_than",...q(t),value:e,inclusive:!1})}function r1(e,t){return new t0({check:"less_than",...q(t),value:e,inclusive:!0})}function r2(e,t){return new t1({check:"greater_than",...q(t),value:e,inclusive:!1})}function r4(e,t){return new t1({check:"greater_than",...q(t),value:e,inclusive:!0})}function r9(e,t){return new t2({check:"multiple_of",...q(t),value:e})}function r6(e,t){return new t8({check:"max_length",...q(t),maximum:e})}function r3(e,t){return new t7({check:"min_length",...q(t),minimum:e})}function r5(e,t){return new ne({check:"length_equals",...q(t),length:e})}function r8(e){return new nl({check:"overwrite",tx:e})}e.i(682358);var r7,ie,it=e.i(922143),it=it,ir=it,ii=it,io=it,is=it,ia=it,iu=it,il=it,ic=it,id=it,ip=it,ih=it,im=it,iv=it,ig=it,iy=it;function i_(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&x(e,t,n[t]);return e}function ib(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??e6,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function iz(e,t,n,r,i){let o="function"==typeof t.unrepresentable?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if("any"===o)return!1;if(void 0===o||"throw"===o)throw Error(i);return Object.assign(n,o),!0}function iw(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,r);else{let n=s.schema,o=t.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,n,r)}let o=e._zod.parent;o&&(s.ref||(s.ref=o),iw(o,t,r),t.seen.get(o).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&i_(s.schema,u),"input"===t.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,r);if("set"===i.type)return e(i.valueType,r);if("lazy"===i.type)return e(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type||"catch"===i.type)return e(i.innerType,r);if("intersection"===i.type)return e(i.left,r)||e(i.right,r);if("record"===i.type||"map"===i.type)return e(i.keyType,r)||e(i.valueType,r);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,r)||e(i.out,r);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],r))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,r))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,r))return!0;if(i.rest&&e(i.rest,r))return!0}return!1}(e)&&(delete s.schema.examples,delete s.schema.default),"input"===t.io&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function ik(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function i$(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let r=t[1],{ref:i,defId:o}=(t=>{let r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${r}/${ik(o)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:"#"};let o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+ik(o)}})(t);r.def={...r.schema},o&&(r.defId=o);let s=r.schema;for(let e in s)delete s[e];s.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
54
+
55
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){i(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){i(n);continue}}if(e.metadataRegistry.get(n[0])?.id||r.cycle){i(n);continue}r.count>1&&"ref"===e.reused&&i(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}let iO=new Set(["type","properties","required","additionalProperties"]),iS=["oneOf","anyOf"];function iP(e){let t=e.additionalProperties;return void 0===t||!1===t||"object"!=typeof t||null===t?null:Object.keys(t).length?t:null}function ix(e){let t=[];for(let n of e){if("object"!=typeof n||"object"!==n.type)return null;for(let e in n)if(!iO.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??iP(n);null!=t&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}x(n,r,1===e.length?e[0]:ix(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:"object",properties:n};if(r.size&&(i.required=[...r]),t.every(e=>!1===e.additionalProperties))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=iP(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}1===e.length?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function iA(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=t=>{let n=e.seen.get(t);if(null===n.ref)return;let i=n.def??n.schema,o={...i},s=n.ref;if(n.ref=null,s){r(s);let n=e.seen.get(s),a=n.schema;if(a.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(a)):i_(i,a),i_(i,o),t._zod.parent===s)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in o||delete i[e]);if(a.$ref&&n.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let a=t._zod.parent;if(a&&a!==s){r(a);let t=e.seen.get(a);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if("openapi-3.0"!==e.target)for(let t of e.seen.entries())!function e(t){let n=t.anyOf;if(!Array.isArray(n)||0===n.length||void 0!==t.type)return;let r=[];for(let t of n){if(!t||"object"!=typeof t)return;e(t);let n=Object.keys(t);if(1!==n.length||"type"!==n[0])return;let i=t.type;for(let e of Array.isArray(i)?i:[i]){if("string"!=typeof e)return;r.includes(e)||r.push(e)}}delete t.anyOf,t.type=1===r.length?r[0]:r}(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])!function(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of iO)if(t in e)return;let n=t.filter(e=>iS.some(t=>Array.isArray(e[t]))),r=null;if(n.length){let e=n[0],i=iS.find(t=>Array.isArray(e[t]));if(1!==Object.keys(e).length)return;let o=t.filter(t=>t!==e),s=e[i].map(e=>ix([...o,e]));if(s.some(e=>!e))return;r={[i]:s}}else r=ix(t);r&&(delete e.allOf,i_(e,r))}(e)}}let i={};if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}i_(i,n.defId?n.schema:n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;void 0!==o&&i.id===o&&delete i.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,x(s,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&("draft-2020-12"===e.target?i.$defs=s:i.definitions=s);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:iE(t,"input",e.processors),output:iE(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw Error("Error converting schema to JSON.")}}let iE=(e,t,n={})=>r=>{let{libraryOptions:i,target:o}=r??{},s=ib({...i??{},target:o,io:t,processors:n});return iw(e,s),i$(s,e),iA(s,e)},iZ=(e,t,n)=>{(void 0===e[t]||n>e[t])&&(e[t]=n)},ij=(e,t,n)=>{(void 0===e[t]||n<e[t])&&(e[t]=n)},iT=(e,t)=>{iZ(e,"minimum",t),ij(e,"maximum",t)},iN=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},iI=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},iD=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},iR=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},iF=(e,t)=>iZ(e,"minimum",t.minimum),iC=(e,t)=>ij(e,"maximum",t.maximum),iM=e=>(t,n)=>{iR(t,n.format);let[r,i]=e[n.format];iZ(t,"minimum",r),ij(t,"maximum",i)},iU={greater_than:(e,t)=>iZ(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>ij(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>iN(e,t.value),number_format:iM(en),bigint_format:iM(er),min_length:iF,max_length:iC,length_equals:(e,t)=>iT(e,t.length),min_size:iF,max_size:iC,size_equals:(e,t)=>iT(e,t.size),string_format:(e,t)=>{iR(e,t.format),t.pattern&&iI(e,t.pattern),("base64"===t.format||"base64url"===t.format)&&(e.contentEncoding=t.format),(t.local||-1===t.precision)&&(e.laxFormat=!0)},mime_type:(e,t)=>iD(e,t.mime)};function iJ(e){let t={},n=e._zod.def;for(let r of e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[])iU[r._zod.def.check]?.(t,r._zod.def);let r=e._zod.bag;for(let e of(void 0!==r.minimum&&iZ(t,"minimum",r.minimum),void 0!==r.exclusiveMinimum&&iZ(t,"exclusiveMinimum",r.exclusiveMinimum),void 0!==r.maximum&&ij(t,"maximum",r.maximum),void 0!==r.exclusiveMaximum&&ij(t,"exclusiveMaximum",r.exclusiveMaximum),void 0!==r.multipleOf&&iN(t,r.multipleOf),void 0!==r.format&&(t.format??(t.format=r.format),r.format.includes("int")&&(t.isInt=!0)),r.mime&&iD(t,r.mime),r.patterns??[]))iI(t,e);return t}let iL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},iB=new Map([[n3,tg],[n8,ty]]),iK=e=>iB.get(e)??e;new WeakMap;let iV=Symbol();function iW(e,t,n,r,i){let o=!1,s=JSON.stringify(e,(e,t)=>"bigint"!=typeof t?t:(o=!0,null));return o?(iz(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),iV):JSON.parse(s)}let iG=(e,t,n,r)=>{let i=e._zod.def;iw(i.innerType,t,r),t.seen.get(e).ref=i.innerType},iX=new WeakSet([Object.prototype,Error.prototype]);function iH(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}let iY=eV("ZodError",(e,t)=>{nm.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);iX.has(n)||(iX.add(n),iH(n,"format",e=>t=>(function(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>r({issues:e},[...i,...o.path]));else if("invalid_key"===o.code)r({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)r({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(0===e.length)n._errors.push(t(o));else{let r=n,i=0;for(;i<e.length;){let n=e[i],s=i===e.length-1;if("_errors"===n){s&&r._errors.push(t(o)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let a=r[n];s&&a._errors.push(t(o)),r=a,i++}}}};return r(e),n})(e,t)),iH(n,"flatten",e=>t=>(function(e,t=e=>e.message){let n={},r=[];for(let s of e.issues)if(s.path.length>0){var i,o;(i=s.path[0],o=()=>[],!Object.prototype.hasOwnProperty.call(n,i)&&("__proto__"===i?Object.defineProperty(n,i,{value:o(),writable:!0,enumerable:!0,configurable:!0}):n[i]=o()),n[i]).push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:n}})(e,t)),iH(n,"addIssue",e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,_,2)}),iH(n,"addIssues",e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,_,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},void 0,{Parent:Error});e.s(["ZodRealError",0,iY],789282);let iq=ny(iY),iQ=nb(iY),i0=nw(iY),i1=n$(iY),i2=(r=ny(iY),i=(e,t,n,o)=>r(e,t,n?{...n,direction:"backward"}:{direction:"backward"},ng(i,o))),i4=(o=ny(iY),s=(e,t,n,r)=>o(e,t,n,ng(s,r))),i9=(a=nb(iY),u=async(e,t,n,r)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return await a(e,t,i,ng(u,r))}),i6=(l=nb(iY),c=async(e,t,n,r)=>await l(e,t,n,ng(c,r))),i3=(e,t,n)=>{let r=n?{...n,direction:"backward"}:{direction:"backward"};return nw(iY)(e,t,r)},i5=(e,t,n)=>nw(iY)(e,t,n),i8=async(e,t,n)=>{let r=n?{...n,direction:"backward"}:{direction:"backward"};return n$(iY)(e,t,r)},i7=async(e,t,n)=>n$(iY)(e,t,n);function oe(){eX.memoizer||eH({memoizer:e9})}let ot=eV("ZodType",(e,t)=>(eX.localeError||eH({localeError:(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};function r(e,t){return"number"!==e||"number"!=typeof t||Number.isFinite(t)?n[e]??e:String(t)}return n=>{switch(n.code){case"invalid_type":{let e=r(n.expected),t=r(e$(n.input),n.input);return`Invalid input: expected ${e}, received ${t}`}case"invalid_value":if(1===n.values.length)return`Invalid input: expected ${ee(n.values[0])}`;return`Invalid option: expected one of ${y(n.values,"|")}`;case"too_big":{let t=n.exact?"exactly ":n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Too big: expected ${n.origin??"value"} to have ${t}${n.maximum.toString()} ${r.unit??"elements"}`;return`Too big: expected ${n.origin??"value"} to be ${t}${n.maximum.toString()}`}case"too_small":{let t=n.exact?"exactly ":n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Too small: expected ${n.origin} to have ${t}${n.minimum.toString()} ${r.unit}`;return`Too small: expected ${n.origin} to be ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Invalid string: must start with "${n.prefix}"`;if("ends_with"===n.format)return`Invalid string: must end with "${n.suffix}"`;if("includes"===n.format)return`Invalid string: must include "${n.includes}"`;if("regex"===n.format)return`Invalid string: must match pattern ${n.pattern}`;return`Invalid ${t[n.format]??n.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":if(n.options&&Array.isArray(n.options)&&n.options.length>0){let e=n.options.map(e=>`'${e}'`).join(" | ");return`Invalid discriminator value. Expected ${e}`}if(!1===n.inclusive)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}})()}),nA.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(ir.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Y(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new o6({type:"custom",check:"custom",fn:e,...q(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){var n;let r,i;return n=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(eO(e,t.value,r._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),"input"in e||(e.input=t.value),e.inst??(e.inst=r),e.continue??(e.continue=!r._zod.def.abort),t.issues.push(eO(e)))},e(t.value,t)),(i=new tH({check:"custom",...q(t)}))._zod.check=n,r=i}(e,t))},overwrite(e){return this.check(r8(e))},optional(){return oG(this)},exactOptional(){var e;return e=this,new oX({type:"optional",innerType:e})},nullable(){return oY(this)},nullish(){return oG(oY(this))},nonoptional(e){var t,n;return t=this,n=e,new o0({type:"nonoptional",innerType:t,...ia.normalizeParams(n)})},array(){return oC(this)},or(e){return new oJ({type:"union",options:[this,e],...ia.normalizeParams(void 0)})},and(e){var t;return t=this,new oL({type:"intersection",left:t,right:e})},transform(e){return o4(this,new oV({type:"transform",transform:e}))},default(e){var t,n;return t=this,n=e,new oq({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():iy.shallowClone(n)}})},prefault(e){var t,n;return t=this,n=e,new oQ({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof n?n():iy.shallowClone(n)}})},catch(e){var t,n;return t=this,new o1({type:"catch",innerType:t,catchValue:"function"==typeof(n=e)?n:it.constantCatch(n)})},pipe(e){return o4(this,e)},readonly(){var e;return e=this,new o9({type:"readonly",innerType:e})},describe(e){let t=this.clone();return e6.add(t,{description:e}),t},meta(...e){if(0===e.length)return e6.get(this);let t=this.clone();return e6.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return 0===t.length?e(this):e(this,...t)},get"~standard"(){return ii.hide(this,"~standard",{...nj(this),jsonSchema:{input:iE(this,"input"),output:iE(this,"output")}})},set"~standard"(e){io.own(this,"~standard",e)},parse:function e(t,n){return iq(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await iQ(this,t,n,{callee:e})},safeParse(e,t){return i0(this,e,t)},async safeParseAsync(e,t){return i1(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){io.own(this,"spa",e)},validate(e,t){let n=this._zod.bag.validator;if(void 0!==n){if(n(e)!==nO)return!0;if(!0===n.definite&&void 0===t)return!1}return function(e,t,n){let r,i=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun;if(o?(i[nS]=!0,r=o({value:t,issues:[]},i)):r=e._zod.run({value:t,issues:[]},i),r instanceof Promise)throw new eW;return 0===r.issues.length}(this,e,t)},validateAsync(e,t){return nP(this,e,t)},encode:function e(t,n){return i2(this,t,n,{callee:e})},decode:function e(t,n){return i4(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await i9(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await i6(this,t,n,{callee:e})},safeEncode(e,t){return i3(this,e,t)},safeDecode(e,t){return i5(this,e,t)},async safeEncodeAsync(e,t){return i8(this,e,t)},async safeDecodeAsync(e,t){return i7(this,e,t)},toJSONSchema(e){return((e,t={})=>n=>{let r=ib({...n,processors:t});return iw(e,r),i$(r,e),iA(r,e)})(this,{})(e)},get description(){return e6.get(this)?.description},get _def(){return this._zod.def}}),on=eV("_ZodString",(e,t)=>{nT.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{n.type="string";let{minimum:r,maximum:i,format:o,patterns:s,contentEncoding:a,laxFormat:u}=iJ(e);if("number"==typeof r&&(n.minLength=r),"number"==typeof i&&(n.maxLength=i),o&&(n.format=iL[o]??o,""===n.format&&delete n.format,("time"===o||u)&&delete n.format),a&&(n.contentEncoding=a),s&&s.size>0){let e=[...s].map(iK);1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,n)},is.derived({format:e=>iJ(e).format??null,minLength:e=>iJ(e).minimum??null,maxLength:e=>iJ(e).maximum??null},{regex(...e){return this.check(function(e,t){return new nn({check:"string_format",format:"regex",...q(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new no({check:"string_format",format:"includes",...q(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new ns({check:"string_format",format:"starts_with",...q(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new na({check:"string_format",format:"ends_with",...q(t),suffix:e})}(...e))},min(...e){return this.check(r3(...e))},max(...e){return this.check(r6(...e))},length(...e){return this.check(r5(...e))},nonempty(...e){return this.check(r3(1,...e))},lowercase(e){return this.check(new nr({check:"string_format",format:"lowercase",...q(e)}))},uppercase(e){return this.check(new ni({check:"string_format",format:"uppercase",...q(e)}))},trim(){return this.check(r8(e=>e.trim()))},normalize(...e){return this.check(function(e){return r8(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(r8(e=>e.toLowerCase()))},toUpperCase(){return this.check(r8(e=>e.toUpperCase()))},slugify(){return this.check(r8(e=>M(e)))}})),or=eV("ZodString",(e,t)=>{nT.init(e,t),on.init(e,t)},{email(e){return this.check(new oc({type:"string",format:"email",check:"string_format",abort:!1,...q(e)}))},url(e){return this.check(new op({type:"string",format:"url",check:"string_format",abort:!1,...q(e)}))},jwt(e){return this.check(new ox({type:"string",format:"jwt",check:"string_format",abort:!1,...q(e)}))},emoji(e){return this.check(new oh({type:"string",format:"emoji",check:"string_format",abort:!1,...q(e)}))},guid(e){return this.check(new od({type:"string",format:"guid",check:"string_format",abort:!1,...q(e)}))},uuid(e){return this.check(new of({type:"string",format:"uuid",check:"string_format",abort:!1,...q(e)}))},uuidv4(e){return this.check(new of({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...q(e)}))},uuidv6(e){return this.check(new of({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...q(e)}))},uuidv7(e){return this.check(new of({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...q(e)}))},nanoid(e){return this.check(new om({type:"string",format:"nanoid",check:"string_format",abort:!1,...q(e)}))},cuid(e){return this.check(new ov({type:"string",format:"cuid",check:"string_format",abort:!1,...q(e)}))},cuid2(e){return this.check(new og({type:"string",format:"cuid2",check:"string_format",abort:!1,...q(e)}))},ulid(e){return this.check(new oy({type:"string",format:"ulid",check:"string_format",abort:!1,...q(e)}))},base64(e){return this.check(new oO({type:"string",format:"base64",check:"string_format",abort:!1,...q(e)}))},base64url(e){return this.check(new oS({type:"string",format:"base64url",check:"string_format",abort:!1,...q(e)}))},xid(e){return this.check(new o_({type:"string",format:"xid",check:"string_format",abort:!1,...q(e)}))},ksuid(e){return this.check(new ob({type:"string",format:"ksuid",check:"string_format",abort:!1,...q(e)}))},ipv4(e){return this.check(new oz({type:"string",format:"ipv4",check:"string_format",abort:!1,...q(e)}))},ipv6(e){return this.check(new ow({type:"string",format:"ipv6",check:"string_format",abort:!1,...q(e)}))},cidrv4(e){return this.check(new ok({type:"string",format:"cidrv4",check:"string_format",abort:!1,...q(e)}))},cidrv6(e){return this.check(new o$({type:"string",format:"cidrv6",check:"string_format",abort:!1,...q(e)}))},e164(e){return this.check(new oP({type:"string",format:"e164",check:"string_format",abort:!1,...q(e)}))},datetime(e){return this.check(new os({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...q(e)}))},date(e){return this.check(new oa({type:"string",format:"date",check:"string_format",...q(e)}))},time(e){return this.check(new ou({type:"string",format:"time",check:"string_format",precision:null,...q(e)}))},duration(e){return this.check(new ol({type:"string",format:"duration",check:"string_format",...q(e)}))}});function oi(e){return new or(rQ({type:"string",...q(e)}))}let oo=eV("ZodStringFormat",(e,t)=>{nN.init(e,t),on.init(e,t)}),os=eV("ZodISODateTime",(e,t)=>{nX.init(e,t),oo.init(e,t)}),oa=eV("ZodISODate",(e,t)=>{nH.init(e,t),oo.init(e,t)}),ou=eV("ZodISOTime",(e,t)=>{nY.init(e,t),oo.init(e,t)}),ol=eV("ZodISODuration",(e,t)=>{nq.init(e,t),oo.init(e,t)}),oc=eV("ZodEmail",(e,t)=>{nR.init(e,t),oo.init(e,t)}),od=eV("ZodGUID",(e,t)=>{nI.init(e,t),oo.init(e,t)}),of=eV("ZodUUID",(e,t)=>{nD.init(e,t),oo.init(e,t)}),op=eV("ZodURL",(e,t)=>{nU.init(e,t),oo.init(e,t)}),oh=eV("ZodEmoji",(e,t)=>{nJ.init(e,t),oo.init(e,t)}),om=eV("ZodNanoID",(e,t)=>{nL.init(e,t),oo.init(e,t)}),ov=eV("ZodCUID",(e,t)=>{nB.init(e,t),oo.init(e,t)}),og=eV("ZodCUID2",(e,t)=>{nK.init(e,t),oo.init(e,t)}),oy=eV("ZodULID",(e,t)=>{nV.init(e,t),oo.init(e,t)}),o_=eV("ZodXID",(e,t)=>{nW.init(e,t),oo.init(e,t)}),ob=eV("ZodKSUID",(e,t)=>{nG.init(e,t),oo.init(e,t)}),oz=eV("ZodIPv4",(e,t)=>{nQ.init(e,t),oo.init(e,t)}),ow=eV("ZodIPv6",(e,t)=>{n2.init(e,t),oo.init(e,t)}),ok=eV("ZodCIDRv4",(e,t)=>{n4.init(e,t),oo.init(e,t)}),o$=eV("ZodCIDRv6",(e,t)=>{n9.init(e,t),oo.init(e,t)}),oO=eV("ZodBase64",(e,t)=>{n5.init(e,t),oo.init(e,t)}),oS=eV("ZodBase64URL",(e,t)=>{n7.init(e,t),oo.init(e,t)}),oP=eV("ZodE164",(e,t)=>{re.init(e,t),oo.init(e,t)}),ox=eV("ZodJWT",(e,t)=>{rn.init(e,t),oo.init(e,t)}),oA=eV("ZodNumber",(e,t)=>{rr.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let{minimum:i,maximum:o,multipleOf:s,exclusiveMaximum:a,exclusiveMinimum:u,isInt:l}=iJ(e);n.type=l?"integer":"number";let c="number"==typeof u&&u>=(i??-1/0),d="number"==typeof a&&a<=(o??1/0),f="draft-04"===t.target||"openapi-3.0"===t.target;if(c?f?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:"number"==typeof i&&(n.minimum=i),d?f?(n.maximum=a,n.exclusiveMaximum=!0):n.exclusiveMaximum=a:"number"==typeof o&&(n.maximum=o),s){let i=new Set;for(let o of s)Number.isFinite(o)&&0!==o?i.add(Math.abs(o)):iz(e,t,n,r,`A multipleOf divisor of ${o} cannot be represented in JSON Schema`);let[o,...a]=i;void 0!==o&&(n.multipleOf=o),a.length&&(n.allOf=[...n.allOf??[],...a.map(e=>({multipleOf:e}))])}})(e,t,n,r),e.isFinite=!0},is.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=iJ(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=iJ(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=iJ(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>iJ(e).format??null},{gt(e,t){return this.check(r2(e,t))},gte(e,t){return this.check(r4(e,t))},min(e,t){return this.check(r4(e,t))},lt(e,t){return this.check(r0(e,t))},lte(e,t){return this.check(r1(e,t))},max(e,t){return this.check(r1(e,t))},int(e){return this.check(oj(e))},safe(e){return this.check(oj(e))},positive(e){return this.check(r2(0,e))},nonnegative(e){return this.check(r4(0,e))},negative(e){return this.check(r0(0,e))},nonpositive(e){return this.check(r1(0,e))},multipleOf(e,t){return this.check(r9(e,t))},step(e,t){return this.check(r9(e,t))},finite(){return this}}));function oE(e){return new oA(rQ({type:"number",checks:[],...q(e)}))}let oZ=eV("ZodNumberFormat",(e,t)=>{ri.init(e,t),oA.init(e,t)});function oj(e){return new oZ({type:"number",check:"number_format",abort:!1,format:"safeint",...q(e)})}let oT=eV("ZodBoolean",(e,t)=>{ro.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{t.type="boolean"}});function oN(e){return new oT({type:"boolean",...q(e)})}(e,t)=>{rs.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{iz(e,t,n,r,"BigInt cannot be represented in JSON Schema")}};let oI=eV("ZodUnknown",(e,t)=>{ra.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function oD(){return new oI({type:"unknown"})}let oR=eV("ZodNever",(e,t)=>{ru.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{t.not={}}}),oF=eV("ZodArray",(e,t)=>{oe(),rh.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,{minimum:o,maximum:s}=iJ(e);"number"==typeof o&&(n.minItems=o),"number"==typeof s&&(n.maxItems=s),n.type="array",n.items=iw(i.element,t,{...r,path:[...r.path,"items"]})})(e,t,n,r),e.element=t.element},{min(e,t){return this.check(r3(e,t))},nonempty(e){return this.check(r3(1,e))},max(e,t){return this.check(r6(e,t))},length(e,t){return this.check(r5(e,t))},unwrap(){return this.element}});function oC(e,t){return new oF({type:"array",element:e,...q(t)})}let oM=eV("ZodObject",(e,t)=>{oe(),rb.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,o=i.shape;if(Object.getOwnPropertySymbols(o).length&&iz(e,t,n,r,"Symbol keys cannot be represented in JSON Schema"))return;for(let e in n.type="object",n.properties={},o)x(n.properties,e,iw(o[e],t,{...r,path:[...r.path,"properties",e]}));let s=[];for(let e of Object.keys(o)){let n=i.shape[e];("input"===t.io?void 0===function e(t){let n=t._zod.def;return"pipe"===n.type&&n.in._zod.traits.has("$ZodTransform")?e(n.out):"catch"===n.type?e(n.innerType):t._zod.optin}(n):void 0===n._zod.optout)&&s.push(e)}s.length>0&&(n.required=s),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=iw(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)})(e,t,n,r),iv.installLazyProp(e,"shape",e=>e._zod.def.shape,!1)},{keyof(){return oK(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ir.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ir.mergeDefs(this._zod.def,{catchall:oD()}))},loose(){return this.clone(ir.mergeDefs(this._zod.def,{catchall:oD()}))},strict(){return this.clone(ir.mergeDefs(this._zod.def,{catchall:new oR({type:"never",...q(void 0)})}))},strip(){return this.clone(ir.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return iu.extend(this,e)},safeExtend(e){return il.safeExtend(this,e)},merge(e){return ic.merge(this,e)},pick(e){return id.pick(this,e)},omit(e){return ip.omit(this,e)},partial(...e){return ih.partial(oW,this,e[0])},exactPartial(...e){return ih.partial(oX,this,e[0],"exactPartial")},required(...e){return im.required(o0,this,e[0])}});function oU(e,t){return new oM({type:"object",shape:e??{},...ia.normalizeParams(t)})}let oJ=eV("ZodUnion",(e,t)=>{rw.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{var i,o,s,a;let u,l,c;return i=e,o=t,s=n,a=r,l=!1===(u=i._zod.def).inclusive,c=u.options.map((e,t)=>iw(e,o,{...a,path:[...a.path,l?"oneOf":"anyOf",t]})),void(l?s.oneOf=c:s.anyOf=c)},e.options=t.options}),oL=eV("ZodIntersection",(e,t)=>{r$.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,s,a,u;return o=iw((i=e._zod.def).left,t,{...r,path:[...r.path,"allOf",0]}),s=iw(i.right,t,{...r,path:[...r.path,"allOf",1]}),void(n.allOf=u=[...(a=e=>"allOf"in e&&1===Object.keys(e).length)(o)?o.allOf:[o],...a(s)?s.allOf:[s]],t.intersections.push(u))}}),oB=eV("ZodEnum",(e,t)=>{rj.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t)=>{let n=g(e._zod.def.entries);if(0===n.length){t.not={};return}n.every(e=>"number"==typeof e)&&(t.type="number"),n.every(e=>"string"==typeof e)&&(t.type="string"),t.enum=n})(e,n),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new oB({...t,checks:[],...ia.normalizeParams(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new oB({...t,checks:[],...ia.normalizeParams(r),entries:i})}});function oK(e,t){return new oB({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...ia.normalizeParams(t)})}let oV=eV("ZodTransform",(e,t)=>{oe(),rT.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{iz(e,t,n,r,"Transforms cannot be represented in JSON Schema")},e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new eG(e.constructor.name);n.addIssue=r=>{"string"==typeof r?n.issues.push(ig.issue(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),"input"in r||(r.input=n.value),r.inst??(r.inst=e),n.issues.push(ig.issue(r)))};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),oW=eV("ZodOptional",(e,t)=>{rI.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iG(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function oG(e){return new oW({type:"optional",innerType:e})}let oX=eV("ZodExactOptional",(e,t)=>{rD.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iG(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),oH=eV("ZodNullable",(e,t)=>{rR.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,s;return o=iw((i=e._zod.def).innerType,t,r),s=t.seen.get(e),void("openapi-3.0"===t.target?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}])},e.unwrap=()=>e._zod.def.innerType});function oY(e){return new oH({type:"nullable",innerType:e})}let oq=eV("ZodDefault",(e,t)=>{rF.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o;return iw((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType,void((o=iW(i.defaultValue,e,t,n,r))!==iV&&(n.default=o))},e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),oQ=eV("ZodPrefault",(e,t)=>{rM.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;if(iw(i.innerType,t,r),t.seen.get(e).ref=i.innerType,"input"!==t.io)return;let o=iW(i.defaultValue,e,t,n,r);o!==iV&&(n._prefault=o)})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),o0=eV("ZodNonOptional",(e,t)=>{rU.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;iw((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType},e.unwrap=()=>e._zod.def.innerType}),o1=eV("ZodCatch",(e,t)=>{rB.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i,o=e._zod.def;iw(o.innerType,t,r),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{iz(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=i})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),o2=eV("ZodPipe",(e,t)=>{rK.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,s;return o=(i=e._zod.def).in._zod.traits.has("$ZodTransform"),void(iw(s="input"===t.io?o?i.out:i.in:i.out,t,r),t.seen.get(e).ref=s)},e.in=t.in,e.out=t.out});function o4(e,t){return new o2({type:"pipe",in:e,out:t})}let o9=eV("ZodReadonly",(e,t)=>{rX.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;iw((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType,n.readOnly=!0},e.unwrap=()=>e._zod.def.innerType}),o6=eV("ZodCustom",(e,t)=>{rY.init(e,t),ot.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{iz(e,t,n,r,"Custom types cannot be represented in JSON Schema")}});e.s(["array",0,oC,"boolean",0,oN,"enum",0,oK,"number",0,oE,"object",0,oU,"string",0,oi],362201),e.i(362201),e.s([],430421),e.i(430421),e.i(789282),e.s([],100364),e.i(100364),e.s([],458829),e.i(458829),e.s(["array",0,oC,"boolean",0,oN,"enum",0,oK,"number",0,oE,"object",0,oU,"string",0,oi],722219);var o3=e.i(722219);e.s(["z",0,o3],411382)},54105,e=>{var t=e.i(722219);e.s(["z",0,t])}])})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{var s=e.i(456420);let a={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],711241)},399847,e=>{var s=e.i(456420);let a={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],399847)},474544,e=>{var s=e.i(456420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],474544)},13285,e=>{var s=e.i(456420);let a={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],13285)},505311,e=>{var s=e.i(456420);let a={name:"pen-tool",size:24,node:[["path",{d:"m18 13-.654-4.736a4 4 0 00-2.756-3.266l-9.163-2.9a2 2 0 00-2.017.493l-.82.819a2 2 0 00-.492 2.017l2.9 9.163a4 4 0 003.266 2.756L13 18",key:"93nyr4"}],["path",{d:"M18.648 12.352a1.205 1.205 0 011.704 0l1.296 1.296a1.205 1.205 0 010 1.704l-6.296 6.296a1.205 1.205 0 01-1.704 0l-1.296-1.296a1.205 1.205 0 010-1.704z",key:"lnux7s"}],["path",{d:"m3 3 6.586 6.586",key:"1igwcn"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],505311)},945514,e=>{var s=e.i(843476),a=e.i(271645),t=e.i(217255),r=e.i(618566),i=e.i(111110),d=e.i(35209),l=e.i(215519),n=e.i(306831),c=e.i(41931),m=e.i(201276),o=e.i(632781),x=e.i(711241),h=e.i(901279),u=e.i(856423),f=e.i(505311),b=e.i(13285),j=e.i(456420);let N={name:"calendar",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]};N.node;let y=(0,j.f)(N),p={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};p.node;let g=(0,j.f)(p);var v=e.i(548161),w=e.i(474544),k=e.i(399847),D=e.i(772382),M=e.i(519455),z=e.i(515288),A=e.i(487486);e.s(["default",0,function(){let{timeZone:e}=(0,l.M)(),{data:j,status:N}=(0,t.useSession)(),p=(0,r.useRouter)(),C=(0,r.useParams)(),{t:R}=(0,i.b)(),[O,T]=(0,a.useState)(null);(0,d.f)(R.admin.dashboard.title,O?.user.name||O?.user.email);let[S,E]=(0,a.useState)(!0),q=C.id,P=(0,a.useCallback)(async()=>{E(!0);try{let e=await c.k.get(`/api/admin/users/${q}/detail`);T(e)}catch(e){m.V.error("[AdminUserDetail]","Failed to fetch user detail",{error:e})}finally{E(!1)}},[q]);if((0,a.useEffect)(()=>{if("loading"!==N){if(!j?.user||"admin"!==j.user.role)return void p.push("/");P()}},[j,N,p,P]),"loading"===N||S)return(0,s.jsx)("div",{className:"flex items-center justify-center min-h-[60vh]",children:(0,s.jsx)(o.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(!O)return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[60vh] gap-4",children:[(0,s.jsx)("p",{className:"text-muted-foreground",children:R.common?.error||"Error"}),(0,s.jsx)(M.f,{onClick:P,children:R.admin?.dashboard?.retry||"Retry"})]});let Y=[{key:"new",label:R.admin?.dashboard?.masteryNew||"To Review",count:O.masteryDistribution.new,icon:k.f,color:"text-red-500"},{key:"reviewing",label:R.admin?.dashboard?.masteryReviewing||"Reviewing",count:O.masteryDistribution.reviewing,icon:w.f,color:"text-yellow-500"},{key:"mastered",label:R.admin?.dashboard?.masteryMastered||"Mastered",count:O.masteryDistribution.mastered,icon:v.f,color:"text-green-500"}],B=O.masteryDistribution.new+O.masteryDistribution.reviewing+O.masteryDistribution.mastered;return(0,s.jsxs)("div",{className:"max-w-5xl mx-auto p-4 sm:p-6 space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsxs)(M.f,{variant:"ghost",size:"sm",onClick:()=>p.push("/admin"),children:[(0,s.jsx)(x.f,{className:"h-4 w-4 mr-1"}),R.common?.back||"Back"]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-full bg-blue-50 dark:bg-blue-950/30",children:(0,s.jsx)(h.f,{className:"h-6 w-6 text-blue-500"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-xl font-bold",children:O.user.name||"N/A"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:O.user.email})]}),"admin"===O.user.role&&(0,s.jsx)(A.f,{variant:"default",children:R.admin?.admin||"Admin"}),(0,s.jsx)(A.f,{variant:O.user.isActive?"default":"destructive",children:O.user.isActive?R.admin?.active||"Active":R.admin?.disabled||"Disabled"})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[(0,s.jsx)(z.N,{className:"border-0 shadow-sm",children:(0,s.jsxs)(z.O,{className:"p-4 text-center",children:[(0,s.jsx)(b.f,{className:"h-5 w-5 text-purple-500 mx-auto mb-1"}),(0,s.jsx)("div",{className:"text-2xl font-bold",children:O.notebookCount}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:R.admin?.dashboard?.notebooks||"Notebooks"})]})}),(0,s.jsx)(z.N,{className:"border-0 shadow-sm",children:(0,s.jsxs)(z.O,{className:"p-4 text-center",children:[(0,s.jsx)(u.f,{className:"h-5 w-5 text-red-500 mx-auto mb-1"}),(0,s.jsx)("div",{className:"text-2xl font-bold",children:O.errorCount}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:R.admin?.dashboard?.errors||"Errors"})]})}),(0,s.jsx)(z.N,{className:"border-0 shadow-sm",children:(0,s.jsxs)(z.O,{className:"p-4 text-center",children:[(0,s.jsx)(f.f,{className:"h-5 w-5 text-green-500 mx-auto mb-1"}),(0,s.jsx)("div",{className:"text-2xl font-bold",children:O.practiceCount}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:R.admin?.dashboard?.practice||"Practice"})]})}),(0,s.jsx)(z.N,{className:"border-0 shadow-sm",children:(0,s.jsxs)(z.O,{className:"p-4 text-center",children:[(0,s.jsx)(y,{className:"h-5 w-5 text-blue-500 mx-auto mb-1"}),(0,s.jsx)("div",{className:"text-2xl font-bold",children:O.recent7DaysCount}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:R.admin?.dashboard?.recent7Days||"Last 7 Days"})]})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsxs)(z.N,{className:"border-0 shadow-sm",children:[(0,s.jsx)(z.Y,{className:"pb-2",children:(0,s.jsxs)(z.v,{className:"text-base flex items-center gap-2",children:[(0,s.jsx)(b.f,{className:"h-4 w-4 text-purple-500"}),R.admin?.dashboard?.userNotebooks||"Notebooks"]})}),(0,s.jsx)(z.O,{children:0===O.notebooks.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground py-4 text-center",children:R.admin?.dashboard?.noData||"No Data"}):(0,s.jsx)("div",{className:"space-y-2",children:O.notebooks.map(e=>(0,s.jsxs)("div",{className:"flex justify-between items-center p-2 rounded-lg bg-muted/30",children:[(0,s.jsx)("span",{className:"font-medium text-sm",children:e.name}),(0,s.jsx)(A.f,{variant:"secondary",className:"text-xs",children:(R.admin?.dashboard?.questionCount||"{count} questions").replace("{count}",String(e.errorCount))})]},e.id))})})]}),(0,s.jsxs)(z.N,{className:"border-0 shadow-sm",children:[(0,s.jsx)(z.Y,{className:"pb-2",children:(0,s.jsxs)(z.v,{className:"text-base flex items-center gap-2",children:[(0,s.jsx)(v.f,{className:"h-4 w-4 text-green-500"}),R.admin?.dashboard?.masteryDistribution||"Mastery Distribution"]})}),(0,s.jsx)(z.O,{children:0===B?(0,s.jsx)("p",{className:"text-sm text-muted-foreground py-4 text-center",children:R.admin?.dashboard?.noData||"No Data"}):(0,s.jsx)("div",{className:"space-y-3",children:Y.map(e=>{let a=B>0?Math.round(e.count/B*100):0;return(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsxs)("div",{className:"flex justify-between text-sm items-center",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5 font-medium",children:[(0,s.jsx)(e.icon,{className:`h-4 w-4 ${e.color}`}),e.label]}),(0,s.jsxs)("span",{className:"text-muted-foreground",children:[e.count," (",a,"%)"]})]}),(0,s.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,s.jsx)("div",{className:"h-2 rounded-full bg-current opacity-60 transition-all duration-500",style:{width:`${a}%`}})})]},e.key)})})})]})]}),O.subjectDistribution.length>0&&(0,s.jsxs)(z.N,{className:"border-0 shadow-sm",children:[(0,s.jsx)(z.Y,{className:"pb-2",children:(0,s.jsxs)(z.v,{className:"text-base flex items-center gap-2",children:[(0,s.jsx)(g,{className:"h-4 w-4 text-blue-500"}),R.admin?.dashboard?.subjectDistribution||"Subject Distribution"]})}),(0,s.jsx)(z.O,{children:(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3",children:O.subjectDistribution.map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/30",children:[(0,s.jsx)("span",{className:"font-medium text-sm",children:e.name}),(0,s.jsx)(A.f,{variant:"secondary",children:e.count})]},e.name))})})]}),(0,s.jsxs)(z.N,{className:"border-0 shadow-sm",children:[(0,s.jsx)(z.Y,{className:"pb-2",children:(0,s.jsxs)(z.v,{className:"text-base flex items-center gap-2",children:[(0,s.jsx)(D.f,{className:"h-4 w-4 text-orange-500"}),R.admin?.dashboard?.recentErrors||"Recent Error Items"]})}),(0,s.jsx)(z.O,{children:0===O.recentErrorItems.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground py-4 text-center",children:R.admin?.dashboard?.noData||"No Data"}):(0,s.jsx)("div",{className:"space-y-2",children:O.recentErrorItems.map(a=>(0,s.jsxs)("div",{className:"flex items-start justify-between p-3 rounded-lg bg-muted/30 gap-3",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:a.questionText||a.ocrText||R.admin?.dashboard?.noQuestionText}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[a.subject&&(0,s.jsx)(A.f,{variant:"outline",className:"text-xs",children:a.subject.name}),"mastered"===a.masteryStatus&&(0,s.jsx)(A.f,{variant:"default",className:"text-xs",children:R.admin?.dashboard?.masteryMastered||"Mastered"}),"reviewing"===a.masteryStatus&&(0,s.jsx)(A.f,{variant:"secondary",className:"text-xs",children:R.admin?.dashboard?.masteryReviewing||"Reviewing"}),"new"===a.masteryStatus&&(0,s.jsx)(A.f,{variant:"outline",className:"text-xs",children:R.admin?.dashboard?.masteryNew||"To Review"})]})]}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:(0,n.r)(a.createdAt,"yyyy-MM-dd",e)})]},a.id))})})]})]})}],945514)},35209,e=>{var s=e.i(271645),a=e.i(111110);e.s(["f",0,function(...e){let{t}=(0,a.b)(),r=[t.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,s.useEffect)(()=>{document.title=r},[r])}])}])})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,314381,3198,e=>{var t=e.i(456420);let r={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],314381);var i=e.i(843476),a=e.i(271645),o=e.i(632781);let s={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};s.node;let l=(0,t.f)(s),h={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]};h.node;let c=(0,t.f)(h);var d=e.i(395925),u=e.i(741120),m=e.i(759659),g=e.i(519455),p=e.i(111110),f=e.i(294114),w=e.i(201276),x=e.i(113381);let y=null;function b(e,t,r){let n=e?.firstElementChild;n&&(n.style.width="100%",n.style.height=`${r}px`,t?.setSize(e?.offsetWidth||n.offsetWidth||800,r))}function v(e,t){let r=(0,x.L)(e,t);for(let e of r)w.V.warn("[GGB]","命令执行失败",{...e});return r.map(e=>e.command+":"+e.message).join("\n")||void 0}e.s(["f",0,function({commands:e,height:t=700,showToolBar:r=!1,showAlgebraInput:n=!1,showMenuBar:s=!1,className:h="",onRegenerate:C,onDelete:j}){let{t:k}=(0,p.b)(),D=(0,a.useRef)(null),M=(0,a.useRef)(null),E=(0,a.useRef)(void 0),N=(0,a.useId)(),R=(0,a.useRef)(`ggb-${N.replace(/[^a-zA-Z0-9_-]/g,"")}`),[S,L]=(0,a.useState)(!0),[I,_]=(0,a.useState)(null),[P,$]=(0,a.useState)(!0),[H,A]=(0,a.useState)(!1),[z,B]=(0,a.useState)(!1),Y=(0,a.useMemo)(()=>(0,x.i)(e),[e]);(0,a.useEffect)(()=>{if(0===Y.length)return;let e=!1,i=R.current,a=D.current;return(y||(y=new Promise((e,t)=>{if(window.GGBApplet)return void e();let r=document.createElement("script");r.src="https://www.geogebra.org/apps/deployggb.js",r.async=!0,r.onload=()=>e(),r.onerror=()=>{y=null,t(Error("Failed to load GeoGebra"))},document.head.appendChild(r)}))).then(()=>{if(e)return;let o=window.GGBApplet;if(!o){_(k.geogebra.notLoaded),L(!1);return}if(a){a.innerHTML=`<div id="${i}" style="width:100%;height:${t}px"></div>`;try{new o({appName:"classic",width:"100%",height:t,showToolBar:r,showAlgebraInput:n,showMenuBar:s,showResetIcon:!0,enableRightClick:!0,enableShiftDragZoom:!0,language:"zh",appletOnLoad:r=>{e||(M.current=r,b(a,r,t),E.current=v(r,Y),L(!1))}},!0).inject(i)}catch(t){w.V.error("[GGB]","Init failed",{error:t}),e||(_(k.geogebra.initFailed),L(!1))}}}).catch(t=>{w.V.error("[GGB]","Script load failed",{error:t}),e||(_(k.geogebra.scriptFailed),L(!1))}),()=>{e=!0;try{let e=M.current;e?.remove&&e.remove()}catch(e){w.V.warn("[GGB]","Cleanup failed",{error:e})}M.current=null,a&&(a.innerHTML="")}},[Y,r,n,s]),(0,a.useEffect)(()=>{b(D.current,M.current,P?700:t)},[P,t]);let X=(0,a.useCallback)(()=>{let e=M.current;if(e)try{e.resetConstruction(),setTimeout(()=>{M.current&&(E.current=v(M.current,Y))},300)}catch(e){w.V.warn("[GGB]","Reset failed",{error:e})}},[Y]),O=(0,a.useCallback)(async()=>{if(C&&!H){A(!0);try{await C(E.current)}finally{A(!1)}}},[C,H]),U=(0,a.useCallback)(async()=>{if(j&&!z&&await (0,f.u)(k.geogebra.confirmDelete,{destructive:!0})){B(!0);try{await j()}catch{f.c.error(k.geogebra.deleteFailed)}finally{B(!1)}}},[j,z,k]);return 0===Y.length?null:(0,i.jsxs)("div",{className:`relative rounded-lg border bg-card ${h}`,children:[(0,i.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b bg-muted/30",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:k.geogebra.title}),S&&(0,i.jsx)(o.f,{className:"h-3 w-3 animate-spin text-muted-foreground"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[C&&(0,i.jsxs)(g.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1",onClick:O,title:k.geogebra.regenerate,disabled:H||S,children:[H?(0,i.jsx)(o.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,i.jsx)(u.f,{className:"h-3.5 w-3.5"}),(0,i.jsx)("span",{children:k.geogebra.regenerate})]}),j&&(0,i.jsxs)(g.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1 text-destructive hover:text-destructive",onClick:U,title:k.geogebra.delete,disabled:z||H,children:[z?(0,i.jsx)(o.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,i.jsx)(m.f,{className:"h-3.5 w-3.5"}),(0,i.jsx)("span",{children:k.geogebra.delete})]}),(0,i.jsx)(g.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:X,title:k.geogebra.reset,disabled:S,children:(0,i.jsx)(d.f,{className:"h-3.5 w-3.5"})}),(0,i.jsx)(g.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>$(e=>!e),title:P?k.geogebra.shrink:k.geogebra.enlarge,children:P?(0,i.jsx)(c,{className:"h-3.5 w-3.5"}):(0,i.jsx)(l,{className:"h-3.5 w-3.5"})})]})]}),(0,i.jsx)("div",{ref:D,style:{width:"100%"}}),S&&(0,i.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/80 rounded-b-lg",style:{top:37},children:(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,i.jsx)(o.f,{className:"h-6 w-6 animate-spin text-primary"}),(0,i.jsx)("span",{className:"text-sm text-muted-foreground",children:k.geogebra.loading})]})}),I&&(0,i.jsx)("div",{className:"flex items-center justify-center text-sm text-destructive",style:{minHeight:t},children:I})]})}],3198)},856522,e=>{var t=e.i(456420);let r={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],856522)},328623,e=>{var t=e.i(456420);let r={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],328623)},232660,213761,e=>{var t=e.i(271645),r={x:0,y:0,width:0,height:0,unit:"px"},n=(e,t,r)=>Math.min(Math.max(e,t),r),i=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function a(e,t,n){return"%"===e.unit?{...r,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/n*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/n*100:0}}function o(e,t,n){return e.unit&&"px"!==e.unit?{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*n/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*n/100:0}:{...r,...e,unit:"px"}}function s(e,t,r,n,i,a=0,o=0,l=n,h=i){let c={...e},d=Math.min(a,n),u=Math.min(o,i),m=Math.min(l,n),g=Math.min(h,i);t&&(t>1?(u=(d=o?o*t:d)/t,m=l*t):(d=(u=a?a/t:u)*t,g=h/t)),c.y<0&&(c.height=Math.max(c.height+c.y,u),c.y=0),c.x<0&&(c.width=Math.max(c.width+c.x,d),c.x=0);let p=n-(c.x+c.width);p<0&&(c.x=Math.min(c.x,n-d),c.width+=p);let f=i-(c.y+c.height);if(f<0&&(c.y=Math.min(c.y,i-u),c.height+=f),c.width<d&&(("sw"===r||"nw"==r)&&(c.x-=d-c.width),c.width=d),c.height<u&&(("nw"===r||"ne"==r)&&(c.y-=u-c.height),c.height=u),c.width>m&&(("sw"===r||"nw"==r)&&(c.x-=m-c.width),c.width=m),c.height>g&&(("nw"===r||"ne"==r)&&(c.y-=g-c.height),c.height=g),t){let e=c.width/c.height;if(e<t){let e=Math.max(c.width/t,u);("nw"===r||"ne"==r)&&(c.y-=e-c.height),c.height=e}else if(e>t){let e=Math.max(c.height*t,d);("sw"===r||"nw"==r)&&(c.x-=e-c.width),c.width=e}}return c}var l={capture:!0,passive:!1},h=0,c=class e extends t.PureComponent{static xOrds=["e","w"];static yOrds=["n","s"];static xyOrds=["nw","ne","se","sw"];static nudgeStep=1;static nudgeStepMedium=10;static nudgeStepLarge=100;static defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};get document(){return document}docMoveBound=!1;mouseDownOnCrop=!1;dragStarted=!1;evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0};componentRef=(0,t.createRef)();mediaRef=(0,t.createRef)();resizeObserver;initChangeCalled=!1;instanceId=`rc-${h++}`;state={cropIsActive:!1,newCropIsBeingDrawn:!1};getBox(){let e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};let{x:t,y:r,width:n,height:i}=e.getBoundingClientRect();return{x:t,y:r,width:n,height:i}}componentDidUpdate(e){let{crop:t,onComplete:r}=this.props;if(r&&!e.crop&&t){let{width:e,height:n}=this.getBox();e&&n&&r(o(t,e,n),a(t,e,n))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||=(this.document.addEventListener("pointermove",this.onDocPointerMove,l),this.document.addEventListener("pointerup",this.onDocPointerDone,l),this.document.addEventListener("pointercancel",this.onDocPointerDone,l),!0)}unbindDocMove(){this.docMoveBound&&=(this.document.removeEventListener("pointermove",this.onDocPointerMove,l),this.document.removeEventListener("pointerup",this.onDocPointerDone,l),this.document.removeEventListener("pointercancel",this.onDocPointerDone,l),!1)}onCropPointerDown=e=>{let{crop:t,disabled:r}=this.props,n=this.getBox();if(!t)return;let i=o(t,n.width,n.height);if(r)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let a=e.target.dataset.ord,s=e.clientX,l=e.clientY,h=i.x,c=i.y;if(a){let t=e.clientX-n.x,r=e.clientY-n.y,o=0,d=0;"ne"===a||"e"==a?(o=t-(i.x+i.width),d=r-i.y,h=i.x,c=i.y+i.height):"se"===a||"s"===a?(o=t-(i.x+i.width),d=r-(i.y+i.height),h=i.x,c=i.y):"sw"===a||"w"==a?(o=t-i.x,d=r-(i.y+i.height),h=i.x+i.width,c=i.y):("nw"===a||"n"==a)&&(o=t-i.x,d=r-i.y,h=i.x+i.width,c=i.y+i.height),s=h+n.x+o,l=c+n.y+d}this.evData={startClientX:s,startClientY:l,startCropX:h,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!!a,ord:a},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})};onComponentPointerDown=e=>{let{crop:t,disabled:r,locked:n,keepSelection:i,onChange:s}=this.props,l=this.getBox();if(r||n||i&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let h=e.clientX-l.x,c=e.clientY-l.y,d={unit:"px",x:h,y:c,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:h,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,s(o(d,l.width,l.height),a(d,l.width,l.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})};onDocPointerMove=e=>{let t,{crop:r,disabled:n,onChange:s,onDragStart:l}=this.props,h=this.getBox();if(n||!r||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,l&&l(e));let{evData:c}=this;c.clientX=e.clientX,c.clientY=e.clientY,i(r,t=c.isResize?this.resizeCrop():this.dragCrop())||s(o(t,h.width,h.height),a(t,h.width,h.height))};onComponentKeyDown=t=>{let{crop:r,disabled:i,onChange:s,onComplete:l}=this.props;if(i)return;let h=t.key,c=!1;if(!r)return;let d=this.getBox(),u=this.makePixelCrop(d),m=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===h?(u.x-=m,c=!0):"ArrowRight"===h?(u.x+=m,c=!0):"ArrowUp"===h?(u.y-=m,c=!0):"ArrowDown"===h&&(u.y+=m,c=!0),c){t.cancelable&&t.preventDefault(),u.x=n(u.x,0,d.width-u.width),u.y=n(u.y,0,d.height-u.height);let e=o(u,d.width,d.height),r=a(u,d.width,d.height);s(e,r),l&&l(e,r)}};onHandlerKeyDown=(t,r)=>{var n,l;let h,{aspect:c=0,crop:d,disabled:u,minWidth:m=0,minHeight:g=0,maxWidth:p,maxHeight:f,onChange:w,onComplete:x}=this.props,y=this.getBox();if(u||!d||"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();let b=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,v=s((n=o(d,y.width,y.height),l=t.key,h={...n},"ArrowLeft"===l?"nw"===r?(h.x-=b,h.y-=b,h.width+=b,h.height+=b):"w"===r?(h.x-=b,h.width+=b):"sw"===r?(h.x-=b,h.width+=b,h.height+=b):"ne"===r?(h.y+=b,h.width-=b,h.height-=b):"e"===r?h.width-=b:"se"===r&&(h.width-=b,h.height-=b):"ArrowRight"===l&&("nw"===r?(h.x+=b,h.y+=b,h.width-=b,h.height-=b):"w"===r?(h.x+=b,h.width-=b):"sw"===r?(h.x+=b,h.width-=b,h.height-=b):"ne"===r?(h.y-=b,h.width+=b,h.height+=b):"e"===r?h.width+=b:"se"===r&&(h.width+=b,h.height+=b)),"ArrowUp"===l?"nw"===r?(h.x-=b,h.y-=b,h.width+=b,h.height+=b):"n"===r?(h.y-=b,h.height+=b):"ne"===r?(h.y-=b,h.width+=b,h.height+=b):"sw"===r?(h.x+=b,h.width-=b,h.height-=b):"s"===r?h.height-=b:"se"===r&&(h.width-=b,h.height-=b):"ArrowDown"===l&&("nw"===r?(h.x+=b,h.y+=b,h.width-=b,h.height-=b):"n"===r?(h.y+=b,h.height-=b):"ne"===r?(h.y+=b,h.width-=b,h.height-=b):"sw"===r?(h.x-=b,h.width+=b,h.height+=b):"s"===r?h.height+=b:"se"===r&&(h.width+=b,h.height+=b)),h),c,r,y.width,y.height,m,g,p,f);if(!i(d,v)){let e=a(v,y.width,y.height);w(v,e),x&&x(v,e)}};onDocPointerDone=e=>{let{crop:t,disabled:r,onComplete:n,onDragEnd:i}=this.props,s=this.getBox();this.unbindDocMove(),!(r||!t)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,i&&i(e),n&&n(o(t,s.width,s.height),a(t,s.width,s.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))};onDragFocus=()=>{this.componentRef.current?.scrollTo(0,0)};getCropStyle(){let{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){let{evData:e}=this,t=this.getBox(),r=this.makePixelCrop(t),i=e.clientX-e.startClientX,a=e.clientY-e.startClientY;return r.x=n(e.startCropX+i,0,t.width-r.width),r.y=n(e.startCropY+a,0,t.height-r.height),r}getPointRegion(e,t,r,n){let{evData:i}=this,a=i.clientX-e.x,o=i.clientY-e.y,s;return s=n&&t?"nw"===t||"n"===t||"ne"===t:o<i.startCropY,(r&&t?"nw"===t||"w"===t||"sw"===t:a<i.startCropX)?s?"nw":"sw":s?"ne":"se"}resolveMinDimensions(e,t,r=0,n=0){let i=Math.min(r,e.width),a=Math.min(n,e.height);return t&&(i||a)?t>1?i?[i,i/t]:[a*t,a]:a?[a*t,a]:[i,i/t]:[i,a]}resizeCrop(){let{evData:t}=this,{aspect:r=0,maxWidth:i,maxHeight:a}=this.props,o=this.getBox(),[l,h]=this.resolveMinDimensions(o,r,this.props.minWidth,this.props.minHeight),c=this.makePixelCrop(o),d=this.getPointRegion(o,t.ord,l,h),u=t.ord||d,m=t.clientX-t.startClientX,g=t.clientY-t.startClientY;(l&&"nw"===u||"w"===u||"sw"===u)&&(m=Math.min(m,-l)),(h&&"nw"===u||"n"===u||"ne"===u)&&(g=Math.min(g,-h));let p={unit:"px",x:0,y:0,width:0,height:0};"ne"===d?(p.x=t.startCropX,p.width=m,r?p.height=p.width/r:p.height=Math.abs(g),p.y=t.startCropY-p.height):"se"===d?(p.x=t.startCropX,p.y=t.startCropY,p.width=m,r?p.height=p.width/r:p.height=g):"sw"===d?(p.x=t.startCropX+m,p.y=t.startCropY,p.width=Math.abs(m),r?p.height=p.width/r:p.height=g):"nw"===d&&(p.x=t.startCropX+m,p.width=Math.abs(m),r?(p.height=p.width/r,p.y=t.startCropY-p.height):(p.height=Math.abs(g),p.y=t.startCropY+g));let f=s(p,r,d,o.width,o.height,l,h,i,a);return r||e.xyOrds.indexOf(u)>-1?c=f:e.xOrds.indexOf(u)>-1?(c.x=f.x,c.width=f.width):e.yOrds.indexOf(u)>-1&&(c.y=f.y,c.height=f.height),c.x=n(c.x,0,o.width-c.width),c.y=n(c.y,0,o.height-c.height),c}renderCropSelection(){let{ariaLabels:r=e.defaultProps.ariaLabels,disabled:n,locked:i,renderSelectionAddon:a,ruleOfThirds:o,crop:s}=this.props,l=this.getCropStyle();if(s)return t.default.createElement("div",{style:l,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":r.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!i&&t.default.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},t.default.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),t.default.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":r.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":r.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":r.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":r.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":r.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":r.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":r.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),t.default.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":r.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),a&&t.default.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},a(this.state)),o&&t.default.createElement(t.default.Fragment,null,t.default.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),t.default.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return o({...r,...this.props.crop||{}},e.width,e.height)}render(){let{aspect:e,children:r,circularCrop:n,className:i,crop:a,disabled:o,locked:s,style:l,ruleOfThirds:h}=this.props,{cropIsActive:c,newCropIsBeingDrawn:d}=this.state,u=a?this.renderCropSelection():null,m=((...e)=>e.filter(e=>e&&"string"==typeof e).join(" "))("ReactCrop",i,c&&"ReactCrop--active",o&&"ReactCrop--disabled",s&&"ReactCrop--locked",d&&"ReactCrop--new-crop",a&&e&&"ReactCrop--fixed-aspect",a&&n&&"ReactCrop--circular-crop",a&&h&&"ReactCrop--rule-of-thirds",!this.dragStarted&&a&&!a.width&&!a.height&&"ReactCrop--invisible-crop",n&&"ReactCrop--no-animate");return t.default.createElement("div",{ref:this.componentRef,className:m,style:l},t.default.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},r),a?t.default.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},t.default.createElement("defs",null,t.default.createElement("mask",{id:`hole-${this.instanceId}`},t.default.createElement("rect",{width:"100%",height:"100%",fill:"white"}),n?t.default.createElement("ellipse",{cx:`${a.x+a.width/2}${a.unit}`,cy:`${a.y+a.height/2}${a.unit}`,rx:`${a.width/2}${a.unit}`,ry:`${a.height/2}${a.unit}`,fill:"black"}):t.default.createElement("rect",{x:`${a.x}${a.unit}`,y:`${a.y}${a.unit}`,width:`${a.width}${a.unit}`,height:`${a.height}${a.unit}`,fill:"black"}))),t.default.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,u)}};e.s(["f",0,c],232660);let d={maxLongEdge:4096,maxPixels:4915200,maxBytes:1572864,startQuality:.9,minQuality:.8};class u extends Error{code;format;constructor(e,t,r){super(e,void 0===r?void 0:{cause:r}),this.code=e,this.format=t,this.name="ImageDecodeError"}}let m=new Set(["heic","heix","heim","heis","hevc","hevx","hevm","hevs"]),g=new Set(["mif1","msf1","mif2"]),p=new Set(["avif","avis"]);function f(e,t,r=d){let n=Math.min(1,r.maxLongEdge/Math.max(e,t),Math.sqrt(r.maxPixels/Math.max(1,e*t)));return{width:Math.max(1,Math.floor(e*n)),height:Math.max(1,Math.floor(t*n)),scale:n}}async function w(e){let t,r;if("function"==typeof createImageBitmap)try{return await createImageBitmap(e,{imageOrientation:"from-image"})}catch{}let n=await (t=URL.createObjectURL(e),(r=new Image).decoding="async",new Promise((e,n)=>{r.onload=()=>e(r),r.onerror=()=>n(Error("IMAGE_ELEMENT_DECODE_FAILED")),r.src=t}).finally(()=>URL.revokeObjectURL(t)));if(!n.naturalWidth||!n.naturalHeight)throw Error("IMAGE_EMPTY");return n}async function x(t){let{heicTo:r}=await e.A(462684);return r({blob:t,type:"image/jpeg",quality:.95})}function y(e,t){return new Promise((r,n)=>{e.toBlob(e=>e?r(e):n(Error("CANVAS_EMPTY")),"image/jpeg",t)})}function b(e,t,r,n,i,a,o){let s,l=((s=document.createElement("canvas")).width=a,s.height=o,s),h=l.getContext("2d");if(!h)throw Error("CANVAS_UNSUPPORTED");return h.fillStyle="#ffffff",h.fillRect(0,0,a,o),h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",h.drawImage(e,t,r,n,i,0,0,a,o),l}async function v(e,t){var r;let n,i=performance.now(),a=await e.arrayBuffer(),o=performance.now()-i,s=function(e){let t=(t,r)=>String.fromCharCode(...e.subarray(t,r));if(e.length>=3&&255===e[0]&&216===e[1]&&255===e[2])return"jpeg";if(e.length>=8&&137===e[0]&&"PNG"===t(1,4))return"png";if(e.length>=12&&"RIFF"===t(0,4)&&"WEBP"===t(8,12))return"webp";if(e.length>=6&&("GIF87a"===t(0,6)||"GIF89a"===t(0,6)))return"gif";if(e.length>=2&&"BM"===t(0,2))return"bmp";if(e.length>=12&&"ftyp"===t(4,8)){let r=Math.min(e.length,(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0||e.length),n=[t(8,12)];for(let e=16;e+4<=r;e+=4)n.push(t(e,e+4));if(n.some(e=>m.has(e)))return"heic";if(n.some(e=>p.has(e)))return"avif";if(n.some(e=>g.has(e)))return"heic"}return"unknown"}(new Uint8Array(a,0,Math.min(a.byteLength,64))),l=e.type||"",h=performance.now(),c="native",d=new Blob([a],{type:l||"application/octet-stream"});try{n=await w(d)}catch(e){if("heic"!==s)throw new u("unknown"===s?"UNSUPPORTED_IMAGE":"IMAGE_DECODE_FAILED",s,e);t?.();try{n=await w(await x(d)),c="heic"}catch(e){throw new u("HEIC_DECODE_FAILED",s,e)}}let{width:v,height:C}=(r=n)instanceof HTMLImageElement?{width:r.naturalWidth,height:r.naturalHeight}:{width:r.width,height:r.height};if(!v||!C)throw new u("IMAGE_DECODE_FAILED",s);let j=f(v,C,{maxLongEdge:1600,maxPixels:1/0}),k=await y(b(n,0,0,v,C,j.width,j.height),.85),D=URL.createObjectURL(k),M=performance.now()-h;return{source:n,width:v,height:C,format:s,decoder:c,previewUrl:D,sourceType:l,sourceBytes:e.size,timings:{read:Math.round(o),convert:Math.round(M)},dispose:()=>{URL.revokeObjectURL(D),n instanceof HTMLImageElement||n.close()}}}let C={x:0,y:0,width:1,height:1};async function j(e,t=C,r=d){var n;let i=performance.now(),a=e=>Math.min(1,Math.max(0,e)),o=Math.round(a(t.x)*e.width),s=Math.round(a(t.y)*e.height),l=Math.max(1,Math.min(e.width-o,Math.round(a(t.width)*e.width))),h=Math.max(1,Math.min(e.height-s,Math.round(a(t.height)*e.height))),c=f(l,h,r),u=b(e.source,o,s,l,h,c.width,c.height),m=performance.now()-i,g=performance.now(),p=r.startQuality,w=await y(u,p);for(let t=0;w.size>r.maxBytes&&t<12;t++)p-.05>=r.minQuality-1e-9?p=Math.round((p-.05)*100)/100:(c={width:Math.max(1,Math.floor(.85*c.width)),height:Math.max(1,Math.floor(.85*c.height)),scale:.85*c.scale},u=b(e.source,o,s,l,h,c.width,c.height)),w=await y(u,p);return{dataUrl:await (n=w,new Promise((e,t)=>{let r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>t(r.error??Error("READ_FAILED")),r.readAsDataURL(n)})),width:c.width,height:c.height,bytes:w.size,quality:p,timings:{crop:Math.round(m),compress:Math.round(performance.now()-g)}}}e.s(["o",0,u,"N",0,function(e,t){return{sourceType:e.sourceType||e.format,sourceBytes:e.sourceBytes,sourceWidth:e.width,sourceHeight:e.height,outputWidth:t.width,outputHeight:t.height,outputBytes:t.bytes,decoder:e.decoder,quality:t.quality}},"p",0,v,"X",0,j],213761)},469937,62825,e=>{var t=e.i(843476),r=e.i(456420);let n={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};n.node;let i=(0,r.f)(n);var a=e.i(111110),o=e.i(975157);let s=[1,2,3,4,5];function l(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["f",0,function({value:e,onChange:r,disabled:n,size:l="sm",showUnrated:h=!0,className:c}){let{t:d}=(0,a.b)(),u=e??0,m="sm"===l?"h-3.5 w-3.5":"h-5 w-5",g=u?d.difficulty.starsLabel.replace("{n}",String(u)):d.difficulty.unrated;return r?(0,t.jsxs)("span",{className:(0,o.f)("inline-flex items-center gap-0.5",c),role:"group","aria-label":`${d.difficulty.label}${d.common.colon}${g}`,title:d.difficulty.clearHint,children:[s.map(e=>(0,t.jsx)("button",{type:"button",disabled:n,onClick:()=>r(e===u?null:e),"aria-label":d.difficulty.setStars.replace("{n}",String(e)),"aria-pressed":e<=u,className:"rounded p-0.5 hover:bg-muted disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(i,{className:(0,o.f)(m,e<=u?"fill-amber-400 text-amber-400":"text-muted-foreground/40")})},e)),!u&&h&&(0,t.jsx)("span",{className:"ml-1 text-xs text-muted-foreground",children:d.difficulty.unrated})]}):u?(0,t.jsx)("span",{className:(0,o.f)("inline-flex items-center",c),role:"img","aria-label":`${d.difficulty.label}${d.common.colon}${g}`,title:g,children:s.map(e=>(0,t.jsx)(i,{className:(0,o.f)(m,e<=u?"fill-amber-400 text-amber-400":"text-muted-foreground/30"),"aria-hidden":!0},e))}):h?(0,t.jsx)("span",{className:(0,o.f)("text-xs text-muted-foreground",c),children:d.difficulty.unrated}):null}],469937),e.s(["i",0,function(e,t="zh"){return("en"===t?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[l(e)]},"h",0,l,"x",0,function(e,t){return(t||"").trim()?"wrong_attempt":l(e)}],62825)},12130,e=>{var t=e.i(843476),r=e.i(271645),n=e.i(232660),i=e.i(519455),a=e.i(776639),o=e.i(263676),s=e.i(111110);async function l(e,t){let{naturalWidth:r,naturalHeight:n}=e;return Promise.all(t.map(t=>new Promise((i,a)=>{let o=document.createElement("canvas"),s=Math.round(t.x*r),l=Math.round(t.y*n);o.width=Math.max(1,Math.round(t.width*r)),o.height=Math.max(1,Math.round(t.height*n));let h=o.getContext("2d");h?(h.drawImage(e,s,l,o.width,o.height,0,0,o.width,o.height),o.toBlob(e=>e?i(e):a(Error("Canvas is empty")),"image/jpeg",.95)):a(Error("Canvas is not supported"))})))}let h={maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"},c=(0,r.forwardRef)(function({imageSrc:e,regions:n,onChange:i,imageStyle:a=h,onImageLoad:l},c){let{t:d}=(0,s.b)(),u=(0,r.useRef)(null),m=(0,r.useRef)(null),[g,p]=(0,r.useState)(null),f=e=>{let t=u.current.getBoundingClientRect();return{x:(e.clientX-t.left)/t.width,y:(e.clientY-t.top)/t.height}},w=()=>{g&&g.width>=.02&&g.height>=.02&&i([...n,g]),m.current=null,p(null)},x=e=>({left:`${100*e.x}%`,top:`${100*e.y}%`,width:`${100*e.width}%`,height:`${100*e.height}%`});return(0,t.jsxs)("div",{className:"relative inline-block select-none",children:[(0,t.jsx)("img",{ref:c,src:e,alt:"",draggable:!1,style:a,onLoad:l,className:"block"}),(0,t.jsxs)("div",{ref:u,className:"absolute inset-0 cursor-crosshair",style:{touchAction:"none"},onPointerDown:e=>{0===e.button&&(u.current?.setPointerCapture(e.pointerId),m.current=f(e),p(null))},onPointerMove:e=>{var t,r,n,i;let a,o,s;if(!m.current)return;let l=f(e);p((t=m.current.x,r=m.current.y,n=l.x,i=l.y,o=(a=e=>Math.min(1,Math.max(0,e)))(Math.min(t,n)),s=a(Math.min(r,i)),{x:o,y:s,width:a(Math.max(t,n))-o,height:a(Math.max(r,i))-s}))},onPointerUp:w,onPointerCancel:w,children:[n.map((e,r)=>(0,t.jsxs)("div",{className:"absolute border-2 border-sky-400 bg-sky-400/15",style:x(e),children:[(0,t.jsx)("span",{className:"absolute left-0 top-0 bg-sky-500 px-1.5 text-xs font-bold text-white",children:r+1}),(0,t.jsx)("button",{type:"button",className:"absolute -right-3 -top-3 flex h-6 w-6 items-center justify-center rounded-full bg-red-500 text-white shadow","aria-label":d.batchImport.removeRegion.replace("{index}",String(r+1)),onPointerDown:e=>e.stopPropagation(),onClick:()=>i(n.filter((e,t)=>t!==r)),children:(0,t.jsx)(o.X,{className:"h-3 w-3"})})]},r)),g&&(0,t.jsx)("div",{className:"absolute border-2 border-dashed border-yellow-300 bg-yellow-300/10",style:x(g)})]})]})});var d=e.i(456420);let u={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"}]]};u.node;let m=(0,d.f)(u),g={name:"zoom-out",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};g.node;let p=(0,d.f)(g);function f({zoom:e,onZoomIn:r,onZoomOut:n,onReset:i}){let{t:a}=(0,s.b)(),o="outline-none focus-visible:ring-2 focus-visible:ring-white/70",l=`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 ${o}`;return(0,t.jsxs)("div",{className:"flex items-center gap-0.5 rounded-full bg-black/60 p-1 shadow-lg backdrop-blur-sm",children:[(0,t.jsx)("button",{type:"button",className:l,onClick:n,disabled:e<=1,"aria-label":a.common.cropper.zoomOut,title:a.common.cropper.zoomOut,children:(0,t.jsx)(p,{className:"h-4 w-4"})}),(0,t.jsxs)("button",{type:"button",className:`h-9 min-w-14 rounded-full px-2 text-center text-xs font-medium tabular-nums text-white hover:bg-white/20 ${o}`,onClick:i,"aria-label":a.common.cropper.resetZoom,title:a.common.cropper.resetZoom,children:[Math.round(100*e),"%"]}),(0,t.jsx)("button",{type:"button",className:l,onClick:r,disabled:e>=5,"aria-label":a.common.cropper.zoomIn,title:a.common.cropper.zoomIn,children:(0,t.jsx)(m,{className:"h-4 w-4"})})]})}var w=e.i(201276);let x={single:{maxHeight:"70vh",maxWidth:"100%",objectFit:"contain"},auto:{maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"},multi:{maxHeight:"65vh",maxWidth:"100%",objectFit:"contain"}};e.s(["f",0,function({imageSrc:e,open:o,onClose:h,onCropComplete:d,onMultiCropComplete:u,onRegionsSelected:m,allowMulti:g=!0,onAutoSplit:p}){let{t:y}=(0,s.b)(),b=/^(blob:|data:image\/)/i.test(e)?e:void 0,[v,C]=(0,r.useState)(),j=(0,r.useRef)(null),[k,D]=(0,r.useState)("single"),{containerRef:M,zoom:E,imageStyle:N,measureImage:R,zoomIn:S,zoomOut:L,reset:I}=function(e){let[t,n]=(0,r.useState)(null),i=(0,r.useRef)(null),a=(0,r.useCallback)(e=>{i.current=e,n(e)},[]),[o,s]=(0,r.useState)(1),l=(0,r.useRef)(1),[h,c]=(0,r.useState)(null),d=(0,r.useRef)(null),u=(0,r.useRef)(!1),m=(0,r.useCallback)((e,t,r)=>{let n=i.current,a=l.current,o=Math.min(5,Math.max(1,e));if(!n||o===a)return;if(1===a){let e=n.querySelector("img");e&&c(e.clientWidth)}let h=n.getBoundingClientRect(),u=(t??h.left+h.width/2)-h.left,m=(r??h.top+h.height/2)-h.top;d.current={viewX:u,viewY:m,contentX:n.scrollLeft+u,contentY:n.scrollTop+m,ratio:o/a},l.current=o,s(o)},[]);(0,r.useLayoutEffect)(()=>{let e=i.current,t=d.current;e&&t&&(e.scrollLeft=t.contentX*t.ratio-t.viewX,e.scrollTop=t.contentY*t.ratio-t.viewY,d.current=null)},[o]),(0,r.useEffect)(()=>{if(!t)return;let e=e=>{e.preventDefault(),m(l.current*Math.exp(-(.0015*e.deltaY)),e.clientX,e.clientY)},r=null,n=e=>{let[t,r]=[e[0],e[1]];return{distance:Math.hypot(t.clientX-r.clientX,t.clientY-r.clientY),centerX:(t.clientX+r.clientX)/2,centerY:(t.clientY+r.clientY)/2}},i=e=>{2===e.touches.length&&(r={distance:n(e.touches).distance,zoom:l.current},u.current=!0)},a=e=>{if(!r||2!==e.touches.length)return;e.preventDefault();let{distance:t,centerX:i,centerY:a}=n(e.touches);r.distance>0&&m(r.zoom*(t/r.distance),i,a)},o=e=>{e.touches.length<2&&(r=null,u.current=!1)},s=e=>{u.current&&e.stopPropagation()};return t.addEventListener("wheel",e,{passive:!1}),t.addEventListener("touchstart",i,{passive:!0}),t.addEventListener("touchmove",a,{passive:!1}),t.addEventListener("touchend",o),t.addEventListener("touchcancel",o),t.addEventListener("pointermove",s,{capture:!0}),()=>{t.removeEventListener("wheel",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",a),t.removeEventListener("touchend",o),t.removeEventListener("touchcancel",o),t.removeEventListener("pointermove",s,{capture:!0})}},[t,m]);let g=(0,r.useCallback)(e=>{e&&1===l.current&&c(e.clientWidth)},[]),p=(0,r.useCallback)(()=>m(1.25*l.current),[m]),f=(0,r.useCallback)(()=>m(l.current/1.25),[m]),w=(0,r.useCallback)(()=>{l.current=1,d.current=null,s(1)},[]),x=1!==o&&h?{...e,width:h*o,height:"auto",maxWidth:"none",maxHeight:"none"}:e;return{containerRef:a,zoom:o,imageStyle:x,measureImage:g,zoomIn:p,zoomOut:f,reset:w}}(x[k]);(0,r.useEffect)(()=>{I()},[e,I]);let[_,P]=(0,r.useState)({src:e,regions:[]}),$=_.src===e?_.regions:[],H=t=>P({src:e,regions:t}),A=(0,r.useRef)(null),z=["single",...p?["auto"]:[],...u||m&&g?["multi"]:[]],B={single:y.batchImport.singleMode,auto:y.batchImport.autoMode,multi:y.batchImport.multiMode},Y=async()=>{if(0!==$.length){if(m){m($,!0),H([]);return}if(A.current&&u)try{u(await l(A.current,$)),H([])}catch(e){w.V.error("[ImageCropper]","Multi-image crop failed",{error:e})}}},X=async()=>{let e=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"===k&&p)return void p(e);if(m)return void m([e],!1);if(j.current&&d)try{let[t]=await l(j.current,[e]);d(t)}catch(e){w.V.error("[ImageCropper]","Crop failed",{error:e})}};return(0,t.jsx)(a.N,{open:o,onOpenChange:e=>!e&&h(),children:(0,t.jsxs)(a.d,{className:"max-w-3xl h-[90vh] flex flex-col p-0 gap-0",children:[(0,t.jsx)(a.s,{className:"p-4 border-b shrink-0",children:(0,t.jsx)(a.F,{children:y.common.cropper?.title||"Crop Image"})}),(0,t.jsxs)("div",{className:"relative min-h-0 flex-1 bg-black",children:[(0,t.jsx)("div",{ref:M,className:"flex h-full w-full overflow-auto p-4",children:(0,t.jsx)("div",{className:"m-auto",children:"multi"===k?(0,t.jsx)(c,{ref:A,imageSrc:b,regions:$,onChange:H,imageStyle:N,onImageLoad:e=>R(e.currentTarget)}):(0,t.jsx)(n.f,{crop:v,onChange:(e,t)=>C(t),children:(0,t.jsx)("img",{ref:j,alt:"Crop me",src:b,onLoad:function(e){C({unit:"%",x:0,y:0,width:100,height:100}),R(e.currentTarget)},style:N})})})}),(0,t.jsx)("div",{className:"absolute right-3 top-3",children:(0,t.jsx)(f,{zoom:E,onZoomIn:S,onZoomOut:L,onReset:I})})]}),(0,t.jsxs)("div",{className:"p-4 border-t bg-background shrink-0 space-y-3",children:[z.length>1&&(0,t.jsx)("div",{className:`grid gap-1 rounded-md bg-muted p-1 ${3===z.length?"grid-cols-3 sm:w-[28rem]":"grid-cols-2 sm:w-80"}`,children:z.map(e=>(0,t.jsx)("button",{type:"button","aria-pressed":k===e,onClick:()=>{I(),D(e)},className:`rounded px-2 py-1.5 text-sm font-medium transition-colors ${k===e?"bg-background shadow-sm":"text-muted-foreground"}`,children:B[e]},e))}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-3",children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"multi"===k?`${y.batchImport.hint} ${y.batchImport.regionCount.replace("{count}",String($.length))}`:"auto"===k?y.batchImport.autoHint:y.common.cropper?.hint||"💡 Drag to adjust crop area"}),(0,t.jsxs)("div",{className:"flex gap-2 justify-end",children:["multi"===k&&$.length>0&&(0,t.jsx)(i.f,{variant:"ghost",onClick:()=>H([]),children:y.batchImport.clear}),(0,t.jsx)(i.f,{variant:"outline",onClick:h,children:y.common.cancel||"Cancel"}),"multi"===k?(0,t.jsx)(i.f,{onClick:Y,disabled:0===$.length,children:y.batchImport.start.replace("{count}",String($.length))}):(0,t.jsx)(i.f,{onClick:X,children:"auto"===k?y.batchImport.autoStart:y.common.confirm||"Confirm"})]})]})]})]})})}],12130)},141176,e=>{var t=e.i(843476),r=e.i(271645),n=e.i(456420);let i={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};i.node;let a=(0,n.f)(i);var o=e.i(772382),s=e.i(511445),l=e.i(624687),h=e.i(111110),c=e.i(975157);e.s(["f",0,function({value:e,onChange:n,className:i,...d}){let{t:u}=(0,h.b)(),[m,g]=(0,r.useState)("source"),p=(0,r.useId)(),f=[{mode:"source",label:u.markdownEditor.source,icon:a},{mode:"preview",label:u.markdownEditor.preview,icon:o.f}];return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{role:"tablist","aria-label":u.markdownEditor.modeLabel,className:"flex justify-end",children:(0,t.jsx)("div",{className:"inline-flex rounded-md border bg-muted/40 p-0.5",children:f.map(({mode:e,label:r,icon:n})=>(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":m===e,"aria-controls":p,onClick:()=>g(e),className:(0,c.f)("flex items-center gap-1 rounded px-2.5 py-1 text-xs transition-colors",m===e?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(n,{className:"h-3.5 w-3.5"}),r]},e))})}),(0,t.jsx)("div",{id:p,role:"tabpanel",children:"source"===m?(0,t.jsx)(l.f,{value:e,onChange:e=>n(e.target.value),className:i,...d}):(0,t.jsx)("div",{className:"min-h-24 cursor-text rounded-md border bg-muted/20 px-3 py-2",onDoubleClick:()=>g("source"),title:u.markdownEditor.doubleClickToEdit,children:e.trim()?(0,t.jsx)(s.f,{content:e}):(0,t.jsx)("p",{className:"text-sm italic text-muted-foreground",children:u.markdownEditor.empty})})})]})}],141176)},438465,674166,e=>{var t=e.i(843476),r=e.i(271645),n=e.i(967489),i=e.i(856423),a=e.i(41931),o=e.i(201276),s=e.i(111110);e.s(["f",0,function({value:e,onChange:l,className:h}){let[c,d]=(0,r.useState)([]),{t:u}=(0,s.b)();return(0,r.useEffect)(()=>{(async()=>{try{let e=await a.k.get("/api/notebooks");d(e)}catch(e){o.V.error("[NotebookSelector]","Failed to fetch notebooks",{error:e})}})()},[]),(0,t.jsxs)(n.d,{value:e,onValueChange:l,children:[(0,t.jsx)(n.P,{className:h,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)(n.U,{placeholder:u.notebooks?.selector?.placeholder||"Select Notebook"})]})}),(0,t.jsx)(n.r,{children:0===c.length?(0,t.jsx)("div",{className:"p-2 text-sm text-muted-foreground text-center",children:u.notebooks?.selector?.empty||"No notebooks available"}):c.map(e=>(0,t.jsx)(n.T,{value:e.id,children:e.name},e.id))})]})}],438465);var l=e.i(664030);e.s(["f",0,function({value:e,onChange:r,disabled:i}){let{groups:a,loading:o}=(0,l.f)(),s=a.filter(e=>e.isActive);return(0,t.jsxs)(n.d,{value:e,onValueChange:r,disabled:i||o,children:[(0,t.jsx)(n.P,{children:(0,t.jsx)(n.U,{placeholder:"选择卷别"})}),(0,t.jsx)(n.r,{children:s.map(e=>(0,t.jsx)(n.T,{value:e.id,children:e.name},e.id))})]})}],674166)},149704,e=>{var t=e.i(843476),r=e.i(111110),n=e.i(398019),i=e.i(184110),a=e.i(975157);let o={left:"mr-auto",center:"mx-auto",right:"ml-auto"};e.s(["f",0,function({svg:e,scale:s,align:l,className:h}){let{t:c}=(0,r.b)();if(!e)return null;let d=(0,i.V)(s),u=(0,i.o)(l);return(0,t.jsx)("figure",{className:(0,a.f)("question-figure my-3",h),children:(0,t.jsx)("img",{src:(0,n.f)(e),alt:c.figure.alt,className:(0,a.f)(o[u],"block h-auto max-w-full rounded border bg-white p-2"),style:{..."left"===u?{marginLeft:0,marginRight:"auto"}:"right"===u?{marginLeft:"auto",marginRight:0}:{},maxHeight:360,zoom:d/100,maxWidth:`${Math.min(d,100)}%`}})})}])},574041,e=>{var t=e.i(843476),r=e.i(271645),n=e.i(263676),i=e.i(487486),a=e.i(793479),o=e.i(41931),s=e.i(201276);e.s(["f",0,function({value:e=[],onChange:l,placeholder:h="Enter tags...",className:c="",enterHint:d,subject:u,gradeStage:m}){let[g,p]=(0,r.useState)(""),[f,w]=(0,r.useState)([]),[x,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(0),C=(0,r.useRef)(null),j=(0,r.useRef)(null),k=(0,r.useCallback)(async t=>{try{let r=new URLSearchParams({q:t});u&&r.append("subject",u),m&&r.append("stage",m);let n=((await o.k.get(`/api/tags/suggestions?${r.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));w(n.slice(0,20)),y(n.length>0),v(0)}catch(e){s.V.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[u,m,e]);(0,r.useEffect)(()=>{g.trim()&&k(g)},[g,k]);let D=t=>{t.trim()&&!e.includes(t.trim())&&(l([...e,t.trim()]),p(""),w([]),y(!1),v(0))},M=t=>{l(e.filter(e=>e!==t))};return(0,r.useEffect)(()=>{let e=e=>{!j.current||j.current.contains(e.target)||C.current?.contains(e.target)||y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{className:`relative ${c}`,children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 p-2 border rounded-lg bg-background min-h-[42px]",children:[e.map(e=>(0,t.jsxs)(i.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>M(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(n.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(a.f,{ref:C,type:"text",value:g,onChange:e=>{p(e.target.value),e.target.value.trim()||(w([]),y(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),b>=0&&f[b]?D(f[b]):g.trim()&&D(g)):"ArrowDown"===t.key?(t.preventDefault(),v(e=>Math.min(e+1,f.length-1))):"ArrowUp"===t.key?(t.preventDefault(),v(e=>Math.max(e-1,0))):"Escape"===t.key?(y(!1),v(0)):"Backspace"===t.key&&!g&&e.length>0&&M(e[e.length-1])},onFocus:()=>{f.length>0&&y(!0)},placeholder:0===e.length?h:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),x&&f.length>0&&(0,t.jsx)("div",{ref:j,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:f.map((e,r)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${r===b?"bg-accent":""}`,onClick:()=>D(e),onMouseEnter:()=>v(r),children:e},e))}),g&&!x&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:d?`${d} "${g}"`:`Press Enter to create "${g}"`})]})}])},184110,e=>{let t=["left","center","right"],r="center";function n(e){return"number"==typeof e&&Number.isInteger(e)&&e>=10&&e<=200}e.s(["E",0,r,"n",0,100,"j",0,t,"a",0,200,"_",0,10,"x",0,n,"o",0,function(e){return"string"==typeof e&&t.includes(e)?e:r},"V",0,function(e){return n(e)?e:100}])},398019,e=>{e.s(["f",0,function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}])},952122,e=>{e.i(306831),e.s(["f",0,function(e){if(!e)return null;let t=e.toLowerCase();return t.includes("math")||t.includes("数学")?"math":t.includes("physics")||t.includes("物理")?"physics":t.includes("chemistry")||t.includes("化学")?"chemistry":t.includes("biology")||t.includes("生物")?"biology":t.includes("english")||t.includes("英语")?"english":t.includes("chinese")||t.includes("语文")?"chinese":t.includes("history")||t.includes("历史")?"history":t.includes("geography")||t.includes("地理")?"geography":t.includes("politics")||t.includes("政治")?"politics":null}])}])})();
@@ -0,0 +1,6 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{var t=e.i(456420);let a={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],711241)},399847,e=>{var t=e.i(456420);let a={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],399847)},13285,e=>{var t=e.i(456420);let a={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],13285)},615568,168148,61425,e=>{var t=e.i(456420);let a={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],615568);var r=e.i(843476),i=e.i(271645),n=e.i(30030),l=e.i(248425),c=Object.defineProperty,d=(e,t)=>c(e,"name",{value:t,configurable:!0}),o="Progress",[m,u]=(0,n.f)(o),[p,f]=m(o),x=i.forwardRef(d(function(e,t){let{__scopeProgress:a,value:s=null,max:i,getValueLabel:n=v,...c}=e;(i||0===i)&&!y(i)&&console.error(N(`${i}`,"Progress"));let d=y(i)?i:100;null===s||k(s,d)||console.error(b(`${s}`,"Progress"));let o=k(s,d)?s:null,m=j(o)?n(o,d):void 0;return(0,r.jsx)(p,{scope:a,value:o,max:d,children:(0,r.jsx)(l.V.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":j(o)?o:void 0,"aria-valuetext":m,role:"progressbar","data-state":g(o,d),"data-value":o??void 0,"data-max":d,...c,ref:t})})},"Progress")),h=i.forwardRef(d(function(e,t){let{__scopeProgress:a,...s}=e,i=f("ProgressIndicator",a);return(0,r.jsx)(l.V.div,{"data-state":g(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...s,ref:t})},"ProgressIndicator"));function v(e,t){return`${Math.round(e/t*100)}%`}function g(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function j(e){return"number"==typeof e}function y(e){return j(e)&&!isNaN(e)&&e>0}function k(e,t){return j(e)&&!isNaN(e)&&e<=t&&e>=0}function N(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}function b(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
+ - a positive number
3
+ - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
4
+ - \`null\` or \`undefined\` if the progress is indeterminate.
5
+
6
+ Defaulting to \`null\`.`}d(v,"defaultGetValueLabel"),d(g,"getProgressState"),d(j,"isNumber"),d(y,"isValidMaxNumber"),d(k,"isValidValueNumber"),d(N,"getInvalidMaxError"),d(b,"getInvalidValueError");var w=e.i(975157);let T=i.forwardRef(({className:e,value:t,...a},s)=>(0,r.jsx)(x,{ref:s,value:t,className:(0,w.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:(0,r.jsx)(h,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));T.displayName=x.displayName,e.s(["f",0,T],168148);var I=e.i(303163);e.s(["f",0,function(e,t){let a=t.common?.messages?.analysisFailed||"Analysis failed, please try again",s=(0,I.d)(e);if(s){let e=t.errors??{};if(!(s in e))return s;let r=e[s];return"string"==typeof r?r:a}let r=(0,I.Z)(e);if(r.includes("fetch")||r.includes("network"))return t.errors?.AI_CONNECTION_FAILED||"网络连接失败";if("object"==typeof e&&null!==e&&"data"in e&&"string"==typeof e.data){let t="status"in e&&"number"==typeof e.status?e.status:"Error";return`${a} (${t})`}return a}],61425)},419327,e=>{var t=e.i(843476),a=e.i(522016),s=e.i(980105),r=e.i(399847),i=e.i(551757),n=e.i(13285),l=e.i(632781),c=e.i(615568),d=e.i(487486),o=e.i(519455),m=e.i(111110),u=e.i(215519),p=e.i(306831),f=e.i(975157);let x={splitting:l.f,processing:l.f,draft:c.f,attention:r.f,failed:r.f,done:i.f};function h({batch:e}){let{t:s}=(0,m.b)(),{timeZone:r}=(0,u.M)(),i=x[e.phase],l="splitting"===e.phase||"processing"===e.phase,c="started"===e.status?e.counts.total:e.itemCount,{counts:v}=e,g="started"===e.status?[v.saved>0&&s.importBatch.counts.saved.replace("{count}",String(v.saved-v.duplicate)),v.duplicate>0&&s.importBatch.counts.duplicate.replace("{count}",String(v.duplicate)),v.review>0&&s.importBatch.counts.review.replace("{count}",String(v.review)),v.failed>0&&s.importBatch.counts.failed.replace("{count}",String(v.failed)),v.active>0&&s.importBatch.counts.active.replace("{count}",String(v.active))].filter(Boolean):[];return(0,t.jsxs)("div",{className:(0,f.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-batch-card","data-phase":e.phase,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(i,{className:(0,f.f)("mt-0.5 h-4 w-4 shrink-0",l&&"animate-spin text-primary","done"===e.phase&&"text-green-600",("failed"===e.phase||"attention"===e.phase)&&"text-destructive")}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"font-medium",children:c>0?s.importBatch.batchOf.replace("{count}",String(c)):s.importBatch.title}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.importBatch.source[e.source]," · ",s.importBatch.phase[e.phase]]}),e.unread&&(0,t.jsx)(d.f,{children:s.importTasks.unread})]}),e.excerpt&&(0,t.jsx)("p",{className:"line-clamp-2 break-words text-muted-foreground",children:e.excerpt}),g.length>0&&(0,t.jsx)("p",{className:"text-xs",children:g.join(" · ")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:s.importTasks.createdAt.replace("{time}",(0,p.r)(e.createdAt,"MM-dd HH:mm",r))})]})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.f,{asChild:!0,size:"sm",variant:"draft"===e.phase||"attention"===e.phase?"default":"outline",children:(0,t.jsx)(a.default,{href:`/import-batches/${e.id}`,children:s.importBatch.open})})})]})}var v=e.i(731335),g=e.i(912505),j=e.i(393842),y=e.i(86963),k=e.i(35209),N=e.i(579321),b=e.i(768339),w=e.i(927904);e.s(["default",0,function(){let{t:e}=(0,m.b)();(0,k.f)(e.importTasks.title);let{data:r,refresh:i}=(0,b.b)(),n=(0,N.f)(i),l=(0,w.f)((r?.activeCount??0)>0);return(0,t.jsxs)("main",{className:"mx-auto max-w-3xl space-y-4 px-4 py-6 md:px-8 md:py-8",children:[(0,t.jsx)(j.f,{backHref:"/",title:e.importTasks.title,description:e.importTasks.description}),r?0!==r.tasks.length||r.batches?.length?(0,t.jsx)("ul",{className:"space-y-3",children:[...(r.batches??[]).map(e=>({kind:"batch",createdAt:e.createdAt,batch:e})),...r.tasks.map(e=>({kind:"task",createdAt:e.createdAt,task:e}))].sort((e,t)=>t.createdAt.localeCompare(e.createdAt)).map(e=>"batch"===e.kind?(0,t.jsx)("li",{children:(0,t.jsx)(h,{batch:e.batch})},`batch-${e.batch.id}`):(0,t.jsx)("li",{children:(0,t.jsx)(v.f,{task:e.task,now:l,onReview:()=>n.openReview(e.task),onViewItem:()=>n.viewItem(e.task),onRetry:()=>n.retry(e.task),onDiscard:()=>n.discard(e.task)})},e.task.id))}):(0,t.jsx)(g.f,{icon:s.f,title:e.importTasks.empty,action:(0,t.jsx)(a.default,{href:"/",children:(0,t.jsx)(o.f,{children:e.importTasks.backHome})})}):(0,t.jsx)(y.f,{}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.importTasks.retentionHint})]})}],419327)},731335,579321,927904,e=>{var t=e.i(843476),a=e.i(399847),s=e.i(551757),r=e.i(456420);let i={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};i.node;let n=(0,r.f)(i);var l=e.i(632781),c=e.i(615568),d=e.i(487486),o=e.i(519455),m=e.i(168148),u=e.i(111110),p=e.i(215519),f=e.i(306831);let x=["read","convert","crop","compress","upload"],h=["receive","analyze","save"];function v(e){if(!Number.isFinite(e)||e<0)return"-";if(e<1e3)return`${Math.round(e)}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(+(t<10))}s`;let a=Math.round(t);return`${Math.floor(a/60)}:${String(a%60).padStart(2,"0")}`}var g=e.i(975157);let j={analyzing:50,saving:90},y={analyzing:l.f,saving:l.f,review:c.f,saved:s.f,failed:a.f};e.s(["f",0,function({task:e,now:a,onReview:s,onViewItem:r,onRetry:i,onDiscard:l}){let{t:c}=(0,u.b)(),{timeZone:k}=(0,p.M)(),N=y[e.status],b="analyzing"===e.status||"saving"===e.status,w=c.errors,T=e.error?"string"==typeof w[e.error]?w[e.error]:e.error:null,I=function(e){let t=[];for(let a of x){let s=e?.client?.[a];"number"==typeof s&&t.push({stage:a,ms:s})}for(let a of h){let s=e?.server?.[a];"number"==typeof s&&t.push({stage:a,ms:s})}return t}(e.timings),z=b&&a?a-Date.parse(e.createdAt):null;return(0,t.jsxs)("div",{className:(0,g.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-task-card","data-status":e.status,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(N,{className:(0,g.f)("mt-0.5 h-4 w-4 shrink-0",b&&"animate-spin text-primary","saved"===e.status&&"text-green-600","failed"===e.status&&"text-destructive","review"===e.status&&"text-primary")}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:c.importTasks.status[e.status]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:c.importTasks.mode[e.mode]}),e.unread&&(0,t.jsx)(d.f,{children:c.importTasks.unread})]}),b&&(0,t.jsx)(m.f,{value:j[e.status],"aria-label":c.importTasks.stageEstimate,"aria-valuetext":c.common.progress.estimated.replace("{percent}",String(j[e.status])),className:"h-1.5"}),e.excerpt&&(0,t.jsx)("p",{className:"break-words text-muted-foreground",children:e.excerpt}),"saved"===e.status&&!e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:c.importTasks.itemDeleted}),"saved"===e.status&&e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:e.duplicate?c.importTasks.duplicateSaved:c.importTasks.savedTo.replace("{notebook}",e.notebookName||"-").replace("{id}",e.errorItemShortId||"-")}),T&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:T}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(n,{className:"h-3 w-3"}),c.importTasks.createdAt.replace("{time}",(0,f.r)(e.createdAt,"MM-dd HH:mm",k))]}),null!==z&&(0,t.jsx)("span",{children:c.importTasks.elapsed.replace("{time}",v(z))}),e.attempts>1&&(0,t.jsx)("span",{children:c.importTasks.attempts.replace("{count}",String(e.attempts))})]}),I.length>0&&(0,t.jsx)("ul",{className:"flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground tabular-nums","aria-label":"timings",children:I.map(({stage:e,ms:a})=>(0,t.jsxs)("li",{children:[c.importTasks.timings[e]," ",v(a)]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===e.status&&s&&(0,t.jsx)(o.f,{size:"sm",onClick:s,children:c.importTasks.continueReview}),"saved"===e.status&&e.errorItemId&&r&&(0,t.jsx)(o.f,{size:"sm",variant:"outline",onClick:r,children:c.importTasks.viewItem}),"failed"===e.status&&i&&(0,t.jsx)(o.f,{size:"sm",onClick:i,children:c.importTasks.retry}),"saving"!==e.status&&"saved"!==e.status&&l&&(0,t.jsx)(o.f,{size:"sm",variant:"ghost",onClick:l,children:c.importTasks.discard})]})]})}],731335);var k=e.i(618566),N=e.i(61425),b=e.i(294114),w=e.i(201276),T=e.i(116331);e.s(["f",0,function(e){let{t}=(0,u.b)(),a=(0,k.useRouter)(),s=e=>{e.unread&&(0,T.N)(e.id).catch(e=>w.V.warn("[ImportTasks]","Mark read failed",{error:e}))};return{openReview:e=>{s(e),a.push(`/import-tasks/${e.id}`)},viewItem:e=>{e.errorItemId&&(s(e),a.push(`/error-items/${e.errorItemId}`))},markRead:s,retry:async a=>{try{await (0,T.R)(a.id),b.c.info(t.importTasks.retried)}catch(e){b.c.error((0,N.f)(e,t))}e?.()},discard:async a=>{if(!await (0,b.u)(t.importTasks.discardConfirm))return!1;let s=!1;try{await (0,T.x)(a.id),b.c.success(t.importTasks.discarded),s=!0}catch(e){b.c.error((0,N.f)(e,t))}return e?.(),s}}}],579321);var I=e.i(271645);e.s(["f",0,function(e,t=1e3){let[a,s]=(0,I.useState)(()=>Date.now());return(0,I.useEffect)(()=>{if(!e)return;let a=setInterval(()=>s(Date.now()),t);return()=>clearInterval(a)},[e,t]),a}],927904)},590546,e=>{var t=e.i(843476),a=e.i(618566),s=e.i(519455),r=e.i(711241);e.s(["f",0,function({fallbackUrl:e,className:i}){let n=(0,a.useRouter)();return(0,t.jsx)(s.f,{variant:"ghost",size:"icon",onClick:()=>{n.push(e)},className:i,children:(0,t.jsx)(r.f,{className:"h-5 w-5"})})}])},912505,e=>{var t=e.i(843476),a=e.i(975157);e.s(["f",0,function({icon:e,title:s,description:r,action:i,className:n}){return(0,t.jsxs)("div",{className:(0,a.f)("flex flex-col items-center justify-center rounded-2xl border border-dashed bg-card/50 px-6 py-14 text-center",n),children:[(0,t.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-accent text-accent-foreground",children:(0,t.jsx)(e,{className:"h-7 w-7"})}),(0,t.jsx)("p",{className:"font-medium",children:s}),r&&(0,t.jsx)("p",{className:"mt-1 max-w-sm text-sm text-muted-foreground",children:r}),i&&(0,t.jsx)("div",{className:"mt-5",children:i})]})}])},393842,e=>{var t=e.i(843476),a=e.i(590546),s=e.i(975157);e.s(["f",0,function({title:e,description:r,backHref:i,actions:n,titleAddon:l,className:c}){return(0,t.jsxs)("div",{className:(0,s.f)("flex items-start gap-3",c),children:[i&&(0,t.jsx)(a.f,{fallbackUrl:i,className:"-ml-2 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("h1",{className:"truncate text-2xl font-bold tracking-tight sm:text-3xl",children:e}),l]}),r&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground sm:text-base",children:r})]}),n&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:n})]})}])},86963,e=>{var t=e.i(843476),a=e.i(632781);e.s(["f",0,function({label:e}){return(0,t.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,t.jsx)(a.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,t.jsx)("p",{className:"text-sm",children:e})]})}])},35209,e=>{var t=e.i(271645),a=e.i(111110);e.s(["f",0,function(...e){let{t:s}=(0,a.b)(),r=[s.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=r},[r])}])}])})();