super-time-tracker-ui 0.1.40 → 0.1.42

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 (254) hide show
  1. package/dist/standalone/next-output/BUILD_ID +1 -1
  2. package/dist/standalone/next-output/app-path-routes-manifest.json +3 -0
  3. package/dist/standalone/next-output/build-manifest.json +3 -3
  4. package/dist/standalone/next-output/routes-manifest.json +18 -0
  5. package/dist/standalone/next-output/server/app/_global-error.html +1 -1
  6. package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
  7. package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/dist/standalone/next-output/server/app/_not-found/page/react-loadable-manifest.json +1 -1
  13. package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
  14. package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/dist/standalone/next-output/server/app/api/entry/completed/route/app-paths-manifest.json +3 -0
  16. package/dist/standalone/next-output/server/app/api/entry/completed/route/build-manifest.json +9 -0
  17. package/dist/standalone/next-output/server/app/api/entry/completed/route/server-reference-manifest.json +4 -0
  18. package/dist/standalone/next-output/server/app/api/entry/completed/route.js +8 -0
  19. package/dist/standalone/next-output/server/app/api/entry/completed/route.js.nft.json +1 -0
  20. package/dist/standalone/next-output/server/app/api/entry/completed/route_client-reference-manifest.js +3 -0
  21. package/dist/standalone/next-output/server/app/api/entry/split/route.js +1 -1
  22. package/dist/standalone/next-output/server/app/api/entry/split/route.js.nft.json +1 -1
  23. package/dist/standalone/next-output/server/app/api/in/route.js +1 -1
  24. package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
  25. package/dist/standalone/next-output/server/app/login/page/react-loadable-manifest.json +1 -1
  26. package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
  27. package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
  28. package/dist/standalone/next-output/server/app/offline/page/react-loadable-manifest.json +1 -1
  29. package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
  30. package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
  31. package/dist/standalone/next-output/server/app/page/react-loadable-manifest.json +2 -2
  32. package/dist/standalone/next-output/server/app/page.js +1 -1
  33. package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
  34. package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
  35. package/dist/standalone/next-output/server/app/pomodoro/page/react-loadable-manifest.json +1 -1
  36. package/dist/standalone/next-output/server/app/pomodoro/page.js +1 -1
  37. package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
  38. package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
  39. package/dist/standalone/next-output/server/app/register/page/react-loadable-manifest.json +1 -1
  40. package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
  41. package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
  42. package/dist/standalone/next-output/server/app/reporting/page/react-loadable-manifest.json +1 -1
  43. package/dist/standalone/next-output/server/app/reporting/page.js +1 -1
  44. package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
  45. package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
  46. package/dist/standalone/next-output/server/app/review/page/app-paths-manifest.json +3 -0
  47. package/dist/standalone/next-output/server/app/review/page/build-manifest.json +18 -0
  48. package/dist/standalone/next-output/server/app/review/page/next-font-manifest.json +11 -0
  49. package/dist/standalone/next-output/server/app/review/page/react-loadable-manifest.json +8 -0
  50. package/dist/standalone/next-output/server/app/review/page/server-reference-manifest.json +4 -0
  51. package/dist/standalone/next-output/server/app/review/page.js +16 -0
  52. package/dist/standalone/next-output/server/app/review/page.js.nft.json +1 -0
  53. package/dist/standalone/next-output/server/app/review/page_client-reference-manifest.js +3 -0
  54. package/dist/standalone/next-output/server/app/search/page/react-loadable-manifest.json +1 -1
  55. package/dist/standalone/next-output/server/app/search/page.js +3 -3
  56. package/dist/standalone/next-output/server/app/search/page.js.nft.json +1 -1
  57. package/dist/standalone/next-output/server/app/search/page_client-reference-manifest.js +1 -1
  58. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/react-loadable-manifest.json +1 -1
  59. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
  60. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
  61. package/dist/standalone/next-output/server/app/settings/cloud-sync/page/react-loadable-manifest.json +1 -1
  62. package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
  63. package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
  64. package/dist/standalone/next-output/server/app/settings/data/page/react-loadable-manifest.json +1 -1
  65. package/dist/standalone/next-output/server/app/settings/data/page.js +1 -1
  66. package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
  67. package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
  68. package/dist/standalone/next-output/server/app/settings/display/page/react-loadable-manifest.json +1 -1
  69. package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
  70. package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
  71. package/dist/standalone/next-output/server/app/settings/goals/page/react-loadable-manifest.json +1 -1
  72. package/dist/standalone/next-output/server/app/settings/goals/page.js +1 -1
  73. package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
  74. package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
  75. package/dist/standalone/next-output/server/app/settings/notifications/page/react-loadable-manifest.json +1 -1
  76. package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
  77. package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
  78. package/dist/standalone/next-output/server/app/settings/page/react-loadable-manifest.json +1 -1
  79. package/dist/standalone/next-output/server/app/settings/page.js +1 -1
  80. package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
  81. package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
  82. package/dist/standalone/next-output/server/app/settings/pomodoro/page/react-loadable-manifest.json +1 -1
  83. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js +1 -1
  84. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
  85. package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
  86. package/dist/standalone/next-output/server/app/settings/quick-actions/page/react-loadable-manifest.json +1 -1
  87. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -1
  88. package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +1 -1
  89. package/dist/standalone/next-output/server/app/settings/tags/page/react-loadable-manifest.json +1 -1
  90. package/dist/standalone/next-output/server/app/settings/tags/page.js +1 -1
  91. package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
  92. package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
  93. package/dist/standalone/next-output/server/app/sheets/page/react-loadable-manifest.json +1 -1
  94. package/dist/standalone/next-output/server/app/sheets/page.js +1 -1
  95. package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
  96. package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
  97. package/dist/standalone/next-output/server/app/templates/page/app-paths-manifest.json +3 -0
  98. package/dist/standalone/next-output/server/app/templates/page/build-manifest.json +18 -0
  99. package/dist/standalone/next-output/server/app/templates/page/next-font-manifest.json +11 -0
  100. package/dist/standalone/next-output/server/app/templates/page/react-loadable-manifest.json +8 -0
  101. package/dist/standalone/next-output/server/app/templates/page/server-reference-manifest.json +4 -0
  102. package/dist/standalone/next-output/server/app/templates/page.js +15 -0
  103. package/dist/standalone/next-output/server/app/templates/page.js.nft.json +1 -0
  104. package/dist/standalone/next-output/server/app/templates/page_client-reference-manifest.js +3 -0
  105. package/dist/standalone/next-output/server/app/today/page/react-loadable-manifest.json +1 -1
  106. package/dist/standalone/next-output/server/app/today/page.js +1 -1
  107. package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
  108. package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
  109. package/dist/standalone/next-output/server/app-paths-manifest.json +3 -0
  110. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__06r8z50._.js +1 -1
  111. package/dist/standalone/next-output/server/chunks/_0g3-h0x._.js +3 -0
  112. package/dist/standalone/next-output/server/chunks/{_0glc6qw._.js → _0h-5oxh._.js} +2 -2
  113. package/dist/standalone/next-output/server/chunks/{_00h8h72._.js → _0jso~pc._.js} +2 -2
  114. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_completed_route_actions_0u88hrc.js +3 -0
  115. package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0yh6v2i.js +4 -0
  116. package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0~6ygkd.js +4 -0
  117. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03dwgvv._.js +3 -0
  118. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0i8nvpz._.js → [root-of-the-server]__04flz4-._.js} +2 -2
  119. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__05o8b_c._.js +3 -0
  120. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__06jwkua._.js +3 -0
  121. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__078pqlk._.js +3 -0
  122. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__09~j2of._.js +3 -0
  123. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__07dg5mm._.js → [root-of-the-server]__0_y9w.y._.js} +2 -2
  124. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0q5n4_f._.js → [root-of-the-server]__0gmlwng._.js} +2 -2
  125. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__08n6l..._.js → [root-of-the-server]__0il5~uq._.js} +2 -2
  126. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0njhf-m._.js +3 -0
  127. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0ta228.._.js → [root-of-the-server]__0ou-jv5._.js} +2 -2
  128. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0f0-17f._.js → [root-of-the-server]__0p4w3_0._.js} +2 -2
  129. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0sx0ra6._.js +3 -0
  130. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__11yff~n._.js → [root-of-the-server]__0u.h8zx._.js} +2 -2
  131. package/dist/standalone/next-output/server/chunks/ssr/_0-wgm9z._.js +3 -0
  132. package/dist/standalone/next-output/server/chunks/ssr/_0.sy6.4._.js +3 -0
  133. package/dist/standalone/next-output/server/chunks/ssr/_0.vgy_3._.js +3 -0
  134. package/dist/standalone/next-output/server/chunks/ssr/_018i8lw._.js +3 -0
  135. package/dist/standalone/next-output/server/chunks/ssr/_01bznln._.js +3 -0
  136. package/dist/standalone/next-output/server/chunks/ssr/_028bo2r._.js +3 -0
  137. package/dist/standalone/next-output/server/chunks/ssr/_02fm6gp._.js +3 -0
  138. package/dist/standalone/next-output/server/chunks/ssr/_02l2ykc._.js +3 -0
  139. package/dist/standalone/next-output/server/chunks/ssr/_04wup-5._.js +1 -1
  140. package/dist/standalone/next-output/server/chunks/ssr/_05ydjrh._.js +3 -0
  141. package/dist/standalone/next-output/server/chunks/ssr/_07q4l3.._.js +3 -0
  142. package/dist/standalone/next-output/server/chunks/ssr/_08_ax6~._.js +3 -0
  143. package/dist/standalone/next-output/server/chunks/ssr/_09~-e0f._.js +3 -0
  144. package/dist/standalone/next-output/server/chunks/ssr/_0aaepl8._.js +3 -0
  145. package/dist/standalone/next-output/server/chunks/ssr/_0bypypo._.js +1 -1
  146. package/dist/standalone/next-output/server/chunks/ssr/_0e_h4bk._.js +3 -0
  147. package/dist/standalone/next-output/server/chunks/ssr/_0pf-hlu._.js +3 -0
  148. package/dist/standalone/next-output/server/chunks/ssr/_0sic8ed._.js +3 -0
  149. package/dist/standalone/next-output/server/chunks/ssr/_0t7z076._.js +1 -1
  150. package/dist/standalone/next-output/server/chunks/ssr/_0woiueg._.js +1 -1
  151. package/dist/standalone/next-output/server/chunks/ssr/_0xr0n-6._.js +3 -0
  152. package/dist/standalone/next-output/server/chunks/ssr/_0yno0i8._.js +3 -0
  153. package/dist/standalone/next-output/server/chunks/ssr/_0zatphu._.js +3 -0
  154. package/dist/standalone/next-output/server/chunks/ssr/_0zkfh~p._.js +3 -0
  155. package/dist/standalone/next-output/server/chunks/ssr/_10n.q--._.js +1 -1
  156. package/dist/standalone/next-output/server/chunks/ssr/_10rw92f._.js +3 -0
  157. package/dist/standalone/next-output/server/chunks/ssr/_10utgt7._.js +3 -0
  158. package/dist/standalone/next-output/server/chunks/ssr/_11.jqyk._.js +3 -0
  159. package/dist/standalone/next-output/server/chunks/ssr/_119e_ui._.js +1 -1
  160. package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_review_page_actions_0u~6wfd.js +3 -0
  161. package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_templates_page_actions_0n8gow3.js +3 -0
  162. package/dist/standalone/next-output/server/chunks/ssr/components_end-of-day-review-view_tsx_0t6snsb._.js +3 -0
  163. package/dist/standalone/next-output/server/chunks/ssr/components_entry-list_tsx_02.v.ur._.js +1 -1
  164. package/dist/standalone/next-output/server/chunks/ssr/components_template-library-view_tsx_0mt9r.5._.js +3 -0
  165. package/dist/standalone/next-output/server/chunks/ssr/lib_0l690qw._.js +3 -0
  166. package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
  167. package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
  168. package/dist/standalone/next-output/server/next-font-manifest.json +8 -0
  169. package/dist/standalone/next-output/server/pages/500.html +1 -1
  170. package/dist/standalone/next-output/static/chunks/00h013ys5a8px.js +1 -0
  171. package/dist/standalone/next-output/static/chunks/03~m0oomxu3r9.js +1 -0
  172. package/dist/standalone/next-output/static/chunks/048hg7.kf50p6.js +1 -0
  173. package/dist/standalone/next-output/static/chunks/05m~ilvrxjj14.css +3 -0
  174. package/dist/standalone/next-output/static/chunks/099rnw4-qk_33.js +1 -0
  175. package/dist/standalone/next-output/static/chunks/{01.p8x7rwa_da.js → 09lddf9c4kn~5.js} +1 -1
  176. package/dist/standalone/next-output/static/chunks/09p9p33-jf6p_.js +1 -0
  177. package/dist/standalone/next-output/static/chunks/0_8ps~_e8~ea7.js +1 -0
  178. package/dist/standalone/next-output/static/chunks/0agpph3f~gct3.js +1 -0
  179. package/dist/standalone/next-output/static/chunks/0cnb9ojb1.4_s.js +1 -0
  180. package/dist/standalone/next-output/static/chunks/0do2bszv92zfl.js +1 -0
  181. package/dist/standalone/next-output/static/chunks/0f.g~ypqld4i2.js +1 -0
  182. package/dist/standalone/next-output/static/chunks/0fa.o-_asg9n7.js +1 -0
  183. package/dist/standalone/next-output/static/chunks/0gc_4fwvsadx9.js +1 -0
  184. package/dist/standalone/next-output/static/chunks/0gv5y9hez6j.f.js +1 -0
  185. package/dist/standalone/next-output/static/chunks/0io.jffavun5t.js +1 -0
  186. package/dist/standalone/next-output/static/chunks/0lw-y46eplh.w.js +1 -0
  187. package/dist/standalone/next-output/static/chunks/0ni97tabbd6ql.js +1 -0
  188. package/dist/standalone/next-output/static/chunks/0qc9jf34l6_d8.js +1 -0
  189. package/dist/standalone/next-output/static/chunks/0r9inu-z~8h4p.js +1 -0
  190. package/dist/standalone/next-output/static/chunks/0s7b~rp4s3q9q.js +1 -0
  191. package/dist/standalone/next-output/static/chunks/0t3hajznk~j44.js +1 -0
  192. package/dist/standalone/next-output/static/chunks/0t~0aam6r_eto.js +1 -0
  193. package/dist/standalone/next-output/static/chunks/0ua4wv84cw5ds.js +1 -0
  194. package/dist/standalone/next-output/static/chunks/0vmr-fgq74aqi.js +1 -0
  195. package/dist/standalone/next-output/static/chunks/0vudo56ulr706.js +1 -0
  196. package/dist/standalone/next-output/static/chunks/141j1htu_qj-p.js +1 -0
  197. package/dist/standalone/next-output/static/chunks/{0fxgcr1q998_k.js → 15hds0xz6b5ce.js} +1 -1
  198. package/dist/standalone/next-output/static/chunks/16tc8vh998e~1.js +1 -0
  199. package/dist/standalone/package.json +1 -1
  200. package/package.json +1 -1
  201. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03~l7zo._.js +0 -3
  202. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0kp4i1o._.js +0 -3
  203. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0s2z7s7._.js +0 -3
  204. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0t9jvpg._.js +0 -3
  205. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__13lfzik._.js +0 -3
  206. package/dist/standalone/next-output/server/chunks/ssr/_0.6lcq2._.js +0 -3
  207. package/dist/standalone/next-output/server/chunks/ssr/_02pahon._.js +0 -3
  208. package/dist/standalone/next-output/server/chunks/ssr/_07zjmow._.js +0 -3
  209. package/dist/standalone/next-output/server/chunks/ssr/_0_glxov._.js +0 -3
  210. package/dist/standalone/next-output/server/chunks/ssr/_0arprr3._.js +0 -3
  211. package/dist/standalone/next-output/server/chunks/ssr/_0e5mly4._.js +0 -3
  212. package/dist/standalone/next-output/server/chunks/ssr/_0ig7qj4._.js +0 -3
  213. package/dist/standalone/next-output/server/chunks/ssr/_0jh.m3o._.js +0 -3
  214. package/dist/standalone/next-output/server/chunks/ssr/_0ka6qj5._.js +0 -3
  215. package/dist/standalone/next-output/server/chunks/ssr/_0kke.lq._.js +0 -3
  216. package/dist/standalone/next-output/server/chunks/ssr/_0li125f._.js +0 -3
  217. package/dist/standalone/next-output/server/chunks/ssr/_0mb-jfk._.js +0 -3
  218. package/dist/standalone/next-output/server/chunks/ssr/_0mpyhsz._.js +0 -3
  219. package/dist/standalone/next-output/server/chunks/ssr/_0nuw8_e._.js +0 -3
  220. package/dist/standalone/next-output/server/chunks/ssr/_0n~tafj._.js +0 -3
  221. package/dist/standalone/next-output/server/chunks/ssr/_0ow880h._.js +0 -3
  222. package/dist/standalone/next-output/server/chunks/ssr/_0tc~oq5._.js +0 -3
  223. package/dist/standalone/next-output/server/chunks/ssr/_0xx3178._.js +0 -3
  224. package/dist/standalone/next-output/server/chunks/ssr/_0yg7mcz._.js +0 -3
  225. package/dist/standalone/next-output/server/chunks/ssr/_11jpj6c._.js +0 -3
  226. package/dist/standalone/next-output/server/chunks/ssr/_12nqpzj._.js +0 -3
  227. package/dist/standalone/next-output/static/chunks/0.ke4n64znh40.js +0 -1
  228. package/dist/standalone/next-output/static/chunks/0068ff71tv6bi.js +0 -1
  229. package/dist/standalone/next-output/static/chunks/0076tj~a2_nqt.css +0 -3
  230. package/dist/standalone/next-output/static/chunks/01e9mu0.nm5zq.js +0 -1
  231. package/dist/standalone/next-output/static/chunks/02xzj0v314vt~.js +0 -1
  232. package/dist/standalone/next-output/static/chunks/03q-5-y-5ico8.js +0 -1
  233. package/dist/standalone/next-output/static/chunks/073j7j4i1_blt.js +0 -1
  234. package/dist/standalone/next-output/static/chunks/07fpf9v1uq4kz.js +0 -1
  235. package/dist/standalone/next-output/static/chunks/0_ofg6_dn.8-1.js +0 -1
  236. package/dist/standalone/next-output/static/chunks/0b7w3-0q5h333.js +0 -1
  237. package/dist/standalone/next-output/static/chunks/0clzbneaj7nky.js +0 -1
  238. package/dist/standalone/next-output/static/chunks/0db9cfl4l3zca.js +0 -1
  239. package/dist/standalone/next-output/static/chunks/0g5ys-l7lj28k.js +0 -1
  240. package/dist/standalone/next-output/static/chunks/0jlyg_y~jm_1h.js +0 -1
  241. package/dist/standalone/next-output/static/chunks/0n18~cn6kld3f.js +0 -1
  242. package/dist/standalone/next-output/static/chunks/0oziz2u.3r2or.js +0 -1
  243. package/dist/standalone/next-output/static/chunks/0p53xxi2_tefo.js +0 -1
  244. package/dist/standalone/next-output/static/chunks/0slg_rix2tzz_.js +0 -1
  245. package/dist/standalone/next-output/static/chunks/0ui094~7v00dn.js +0 -1
  246. package/dist/standalone/next-output/static/chunks/0uns_i-qjgt4k.js +0 -1
  247. package/dist/standalone/next-output/static/chunks/0vl.zehia.g12.js +0 -1
  248. package/dist/standalone/next-output/static/chunks/0zh3lwmofmt.3.js +0 -1
  249. package/dist/standalone/next-output/static/chunks/119bnezxwjo29.js +0 -1
  250. package/dist/standalone/next-output/static/chunks/140f1v233k4bb.js +0 -1
  251. package/dist/standalone/next-output/static/chunks/14tf2a7ym42vl.js +0 -1
  252. /package/dist/standalone/next-output/static/{i7qPdm2jbeXagyWgWaWeK → l_mfwvHxStSDpzw8cKLu3}/_buildManifest.js +0 -0
  253. /package/dist/standalone/next-output/static/{i7qPdm2jbeXagyWgWaWeK → l_mfwvHxStSDpzw8cKLu3}/_clientMiddlewareManifest.js +0 -0
  254. /package/dist/standalone/next-output/static/{i7qPdm2jbeXagyWgWaWeK → l_mfwvHxStSDpzw8cKLu3}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(44066)._(e.r(33434)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",o=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:n&&(l=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let d=e.search||u&&`?${u}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||s.test(r))&&!1!==l?(l="//"+(l||""),i&&"/"!==i[0]&&(i="/"+i)):l||(l=""),o&&"#"!==o[0]&&(o="#"+o),d&&"?"!==d[0]&&(d="?"+d),i=i.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${r}${l}${i}${d}${o}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return o(e)}},70782,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=e.r(51268);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=a(e,r)),t&&(i.current=a(t,r))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},88334,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(69600),i=e.r(76636);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},20612,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},70096,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},useLinkStatus:function(){return x}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(44066),s=e.r(8063),o=a._(e.r(51268)),u=e.r(99997),l=e.r(4411),d=e.r(70782),c=e.r(69600),m=e.r(31508);e.r(91946);let f=e.r(35302),h=e.r(92024),p=e.r(88334),g=e.r(44017);function b(t){var n,r;let i,a,b,[x,v]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),k=(0,o.useRef)(null),{href:_,as:w,children:j,prefetch:N=null,passHref:S,replace:M,shallow:C,scroll:T,onClick:P,onMouseEnter:A,onTouchStart:E,legacyBehavior:O=!1,onNavigate:D,transitionTypes:W,ref:I,unstable_dynamicOnHover:R,...z}=t;i=j,O&&("string"==typeof i||"number"==typeof i)&&(i=(0,s.jsx)("a",{children:i}));let L=o.default.useContext(l.AppRouterContext),F=!1!==N,$=!1!==N?null===(r=N)||"auto"===r?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,q="string"==typeof(n=w||_)?n:(0,u.formatUrl)(n);if(O){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(i)}let U=O?a&&"object"==typeof a&&a.ref:I,B=o.default.useCallback(e=>(null!==L&&(k.current=(0,h.mountLinkInstance)(e,q,L,$,F,v)),()=>{k.current&&((0,h.unmountLinkForCurrentNavigation)(k.current),k.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,q,L,$,v]),J={ref:(0,d.useMergedRef)(B,U),onClick(t){O||"function"!=typeof P||P(t),O&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!L||t.defaultPrevented||function(t,n,r,i,a,s,u){if("u">typeof window){let l,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(n)){i&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:c}=e.r(12178);o.default.startTransition(()=>{c(n,i?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,r.current,u)})}}(t,q,k,M,T,D,W)},onMouseEnter(e){O||"function"!=typeof A||A(e),O&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),L&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){O||"function"!=typeof E||E(e),O&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),L&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,c.isAbsoluteUrl)(q)?J.href=q:O&&!S&&("a"!==a.type||"href"in a.props)||(J.href=(0,m.addBasePath)(q)),b=O?o.default.cloneElement(a,J):(0,s.jsx)("a",{...z,...J,children:i}),(0,s.jsx)(y.Provider,{value:x,children:b})}e.r(20612);let y=(0,o.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,o.useContext)(y);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var n=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let i=(0,n.useRef)(e);i.current=e,(0,n.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),i.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(48042),n=e.i(51268),r=e.i(83105),i=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[s,o]=(0,n.useState)(null),[u,l]=(0,n.useState)(!1),d=(0,i.is_supabase_configured)();return(0,n.useEffect)(()=>{if(!d)return;let e=(0,r.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[d]),{is_configured:d,email:s,is_pending:u,sign_out:(0,n.useCallback)(async()=>{l(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,r.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{l(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let n="sign_in"===e?"/login":"/register",r=t.trim();return 0===r.length||"/"===r?n:`${n}?next=${encodeURIComponent(r)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),n=e.i(70096),r=e.i(48042);let i=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,r.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:i.map(r=>{let i=r.match(e);return(0,t.jsx)(n.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${i?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:r.href,"aria-current":i?"page":void 0,children:r.label},r.href)})})}function s(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var o=e.i(77882);function u(){let{email:e,is_configured:n}=(0,o.use_supabase_auth_session)();return n&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(s,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var l=e.i(51268),d=e.i(37399),c=e.i(90463),m=e.i(46549),f=e.i(22373);let h=new Set(f.topbar_quick_action_ids),p=["today","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return p;let n=t.filter(e=>"string"==typeof e&&h.has(e));return Array.from(new Set(n))}catch{return p}}e.s(["parse_topbar_quick_actions",0,g],73205);var b=e.i(66295),y=e.i(34869),x=e.i(92629);let v=(0,y.create_ui_preference_store)({storage_key:x.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:x.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var k=e.i(32792),_=e.i(90299),w=e.i(28274);function j(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return j()}function S(){return"dark"}var M=e.i(35434),C=e.i(17798),T=e.i(10464),P=e.i(61834),A=e.i(81553),E=e.i(25204);let O="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",D={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},W=new Set(["manage-tags","pomodoro","sync-settings"]);function I(){let e=(0,r.useRouter)(),i=(0,r.usePathname)()??"/",a=(0,l.useSyncExternalStore)(M.subscribe_theme,N,S),s=(0,l.useSyncExternalStore)(v.subscribe,v.get_snapshot,v.get_server_snapshot),u=(0,l.useSyncExternalStore)(_.tracker_shortcut_map_preference.subscribe,_.tracker_shortcut_map_preference.get_snapshot,_.tracker_shortcut_map_preference.get_server_snapshot),h=(0,l.useSyncExternalStore)(k.topbar_quick_actions_preference.subscribe,k.topbar_quick_actions_preference.get_snapshot,k.topbar_quick_actions_preference.get_server_snapshot),p=(0,b.parse_tracker_shortcut_map)(u),y=new Set(g(h)),x=f.topbar_quick_action_ids.filter(e=>!y.has(e)),I=Array.from(new Set([...Array.from(W),...x])),{email:R,is_configured:z,is_pending:L,sign_out:F}=(0,o.use_supabase_auth_session)(),[$,q]=(0,l.useState)(!1),U=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!$)return;let e=e=>{null===U.current||U.current.contains(e.target)||q(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[$]);let B=()=>{q(!1)};return(0,E.use_escape_to_cancel)(B,$),(0,t.jsxs)("div",{className:"relative shrink-0",ref:U,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":$,"aria-haspopup":"menu",onClick:()=>q(e=>!e),children:(0,t.jsx)(d.HamburgerIcon,{})}),$?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[z&&null!==R?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:R,children:R})}):null,I.map(e=>{let r=D[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(n.default,{href:r.href,className:O,role:"menuitem",onClick:B,children:r.label})},e)}),z?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:O,role:"menuitemcheckbox","aria-checked":"true"===s,onClick:()=>{let e="true"===s?"false":"true";v.write(e),v.notify(),(0,m.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==R&&(0,w.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===s?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===s?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:O,role:"menuitem",onClick:()=>{let e;B(),e="dark"===j()?"light":"dark",(0,C.apply_theme)(e),(0,A.write_stored_theme)(e),T.theme_mode_preference.write(e),(0,P.write_document_preference_cookies)({theme_mode:e,theme:e}),T.theme_mode_preference.notify(),(0,M.notify_theme_subscribers)(),(0,m.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:O,role:"menuitem",onClick:()=>{let e;B(),e=p.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===R?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:O,role:"menuitem",onClick:()=>{B(),e.push((0,c.build_auth_page_href)("sign_in",i))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${O} text-danger`,role:"menuitem",disabled:L,onClick:()=>{B(),F()},children:L?"Signing out…":"Sign out"})})]}):null]}):null]})}let R=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function z(){let e=(0,r.usePathname)()??"/",i=(0,l.useSyncExternalStore)(k.topbar_quick_actions_preference.subscribe,k.topbar_quick_actions_preference.get_snapshot,k.topbar_quick_actions_preference.get_server_snapshot),a=(0,l.useMemo)(()=>g(i),[i]);if(0===a.length)return null;let s=R.filter(e=>a.includes(e.id));return 0===s.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:s.map(r=>{let i=e.startsWith(r.href);return(0,t.jsx)(n.default,{href:r.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${i?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":i?"page":void 0,children:r.label},r.id)})})}var L=e.i(29539);function F(){let e=((0,r.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(n.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(L.SettingsIcon,{})})}function $({current:e,parent:r}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==r.href?(0,t.jsx)(n.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:r.href,children:r.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:r.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)($,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(z,{}),(0,t.jsx)(u,{}),(0,t.jsx)(F,{}),(0,t.jsx)(I,{})]})]})]})})}],75404)},39474,20993,e=>{"use strict";var t=e.i(13349),n=e.i(32417),r=e.i(44171),i=e.i(28274);let a=null,s=Promise.resolve();function o(){(0,n.is_supabase_configured)()&&(0,r.is_cloud_sync_enabled)()&&(null!==a&&clearTimeout(a),a=setTimeout(()=>{a=null,s=s.then(()=>(0,i.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function u(){(0,t.is_greedy_cloud_sync_enabled)()&&o()}e.s(["schedule_tracker_db_cloud_sync",0,u],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?u():o()}],39474)},97176,e=>{"use strict";var t=e.i(13349);async function n(e){let t=await fetch("/api/sheet/active",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})});if(!t.ok)throw Error((await t.json()).error??"Failed to update active sheet in cloud")}var r=e.i(39474),i=e.i(20993);e.s(["notify_tracker_db_cloud_sync",0,function(e,a){if("/api/sheet"===e&&"object"==typeof a&&null!==a&&!0!==a.delete&&!(0,t.is_greedy_cloud_sync_enabled)()){let e=a.name?.trim()??"";e.length>0&&n(e).catch(()=>{});return}(0,t.is_greedy_cloud_sync_enabled)()?(0,i.schedule_tracker_db_cloud_sync)():(0,r.push_tracker_db_cloud_after_change)()}],97176)},17003,e=>{"use strict";var t=e.i(27850),n=e.i(72550);e.s(["write_active_sheet_preference",0,function(e){let r=e.trim();if(0!==r.length){try{window.localStorage.setItem(n.ACTIVE_SHEET_STORAGE_KEY,r),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(r);document.cookie=`${n.ACTIVE_SHEET_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}])},67321,e=>{"use strict";var t=e.i(17003);e.s(["navigate_to_tracker_sheet",0,function(e){(0,t.write_active_sheet_preference)(e)}])},25402,8627,e=>{"use strict";let t=Symbol.for("constructDateFrom");e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],8627),e.s(["constructFrom",0,function(e,n){return"function"==typeof e?e(n):e&&"object"==typeof e&&t in e?e[t](n):e instanceof Date?new e.constructor(n):new Date(n)}],25402)},26313,e=>{"use strict";var t;let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function r(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let i={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}let o={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function u(e){return(t,n={})=>{let r,i=n.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;let o=s[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(u,e=>e.test(o)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(u,e=>e.test(o));return r=e.valueCallback?e.valueCallback(l):l,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(o.length)}}}let l={ordinalNumber:(t={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,n={})=>{let r=e.match(t.matchPattern);if(!r)return null;let i=r[0],a=e.match(t.parsePattern);if(!a)return null;let s=t.valueCallback?t.valueCallback(a[0]):a[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.s(["defaultLocale",0,{code:"en-US",formatDistance:(e,t,r)=>{let i,a=n[e];if(i="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:o,match:l,options:{weekStartsOn:0,firstWeekContainsDate:1}}],26313)},36145,e=>{"use strict";let t={};e.s(["getDefaultOptions",0,function(){return t}])},29263,e=>{"use strict";var t=e.i(25402);e.s(["toDate",0,function(e,n){return(0,t.constructFrom)(n||e,e)}])},72424,16913,e=>{"use strict";var t=e.i(29263);e.s(["getTimezoneOffsetInMilliseconds",0,function(e){let n=(0,t.toDate)(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),e-r}],72424);var n=e.i(25402);e.s(["normalizeDates",0,function(e,...t){let r=n.constructFrom.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}],16913)},86688,(e,t,n)=>{!function(){var n=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])b(t,r)&&(e[r]=t[r]);return e},r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=u(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),a={af:u(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:s("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:n(s(function(e){return["سنة","سنتان","سنوات"][m(e)]},function(e){return["شهر","شهران","أشهر"][m(e)]},function(e){return["أسبوع","أسبوعين","أسابيع"][m(e)]},function(e){return["يوم","يومين","أيام"][m(e)]},function(e){return["ساعة","ساعتين","ساعات"][m(e)]},function(e){return["دقيقة","دقيقتان","دقائق"][m(e)]},function(e){return["ثانية","ثانيتان","ثواني"][m(e)]},function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][m(e)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:c(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:s("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:u(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:s("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:s(function(e){return["rok","roku","roky","let"][h(e)]},function(e){return["měsíc","měsíce","měsíce","měsíců"][h(e)]},function(e){return["týden","týdne","týdny","týdnů"][h(e)]},function(e){return["den","dne","dny","dní"][h(e)]},function(e){return["hodina","hodiny","hodiny","hodin"][h(e)]},function(e){return["minuta","minuty","minuty","minut"][h(e)]},function(e){return["sekunda","sekundy","sekundy","sekund"][h(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][h(e)]},","),cy:s("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:u(["år","år"],["måned","måneder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:u(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:i,en:u(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:u(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:u(["año","años"],["mes","meses"],["semana","semanas"],["día","días"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:u(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:s("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:s("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:u(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:u(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tími","tímar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:s(function(e){return"an"+(e>=2?"s":"")},"mois",function(e){return"semaine"+(e>=2?"s":"")},function(e){return"jour"+(e>=2?"s":"")},function(e){return"heure"+(e>=2?"s":"")},function(e){return"minute"+(e>=2?"s":"")},function(e){return"seconde"+(e>=2?"s":"")},function(e){return"milliseconde"+(e>=2?"s":"")},","),gr:i,he:u(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:s(function(e){return e%10==2||e%10==3||e%10==4?"godine":"godina"},function(e){return 1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci"},function(e){return e%10==1&&11!==e?"tjedan":"tjedna"},o(["dan","dana"]),function(e){return 1===e?"sat":2===e||3===e||4===e?"sata":"sati"},function(e){var t=e%10;return(2===t||3===t||4===t)&&(e<10||e>14)?"minute":"minuta"},function(e){var t=e%10;if(5===t||Math.floor(e)===e&&e>=10&&e<=19);else if(1===t)return"sekunda";else if(2===t||3===t||4===t)return"sekunde";return"sekundi"},function(e){return 1===e?"milisekunda":e%10==2||e%10==3||e%10==4?"milisekunde":"milisekundi"},","),hi:s("साल",o(["महीना","महीने"]),o(["हफ़्ता","हफ्ते"]),"दिन",o(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:s("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:s("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:u(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutími","klukkutímar"],["mínúta","mínútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:u(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:s("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:s("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:u(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:s("년","개월","주일","일","시간","분","초","밀리 초"),ku:s("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:s("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:s(function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"},function(e){return["mėnuo","mėnesiai","mėnesių"][p(e)]},function(e){return["savaitė","savaitės","savaičių"][p(e)]},function(e){return["diena","dienos","dienų"][p(e)]},function(e){return["valanda","valandos","valandų"][p(e)]},function(e){return["minutė","minutės","minučių"][p(e)]},function(e){return["sekundė","sekundės","sekundžių"][p(e)]},function(e){return["milisekundė","milisekundės","milisekundžių"][p(e)]},","),lv:s(function(e){return g(e)?"gads":"gadi"},function(e){return g(e)?"mēnesis":"mēneši"},function(e){return g(e)?"nedēļa":"nedēļas"},function(e){return g(e)?"diena":"dienas"},function(e){return g(e)?"stunda":"stundas"},function(e){return g(e)?"minūte":"minūtes"},function(e){return g(e)?"sekunde":"sekundes"},function(e){return g(e)?"milisekunde":"milisekundes"},","),mk:u(["година","години"],["месец","месеци"],["недела","недели"],["ден","дена"],["час","часа"],["минута","минути"],["секунда","секунди"],["милисекунда","милисекунди"],","),mn:s("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:s(o(["वर्ष","वर्षे"]),o(["महिना","महिने"]),o(["आठवडा","आठवडे"]),"दिवस","तास",o(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:s("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:u(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:u(["år","år"],["måned","måneder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:s(function(e){return["rok","roku","lata","lat"][f(e)]},function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][f(e)]},function(e){return["tydzień","tygodnia","tygodnie","tygodni"][f(e)]},function(e){return["dzień","dnia","dni","dni"][f(e)]},function(e){return["godzina","godziny","godziny","godzin"][f(e)]},function(e){return["minuta","minuty","minuty","minut"][f(e)]},function(e){return["sekunda","sekundy","sekundy","sekund"][f(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][f(e)]},","),pt:u(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:s(l("an","ani","de ani"),l("lună","luni","de luni"),l("săptămână","săptămâni","de săptămâni"),l("zi","zile","de zile"),l("oră","ore","de ore"),l("minut","minute","de minute"),l("secundă","secunde","de secunde"),l("milisecundă","milisecunde","de milisecunde"),","),ru:c(["лет","год","года"],["месяцев","месяц","месяца"],["недель","неделя","недели"],["дней","день","дня"],["часов","час","часа"],["минут","минута","минуты"],["секунд","секунда","секунды"],["миллисекунд","миллисекунда","миллисекунды"]),sq:s(o(["vit","vjet"]),"muaj","javë","ditë","orë",function(e){return"minut"+(1===e?"ë":"a")},function(e){return"sekond"+(1===e?"ë":"a")},function(e){return"milisekond"+(1===e?"ë":"a")},","),sr:c(["години","година","године"],["месеци","месец","месеца"],["недељи","недеља","недеље"],["дани","дан","дана"],["сати","сат","сата"],["минута","минут","минута"],["секунди","секунда","секунде"],["милисекунди","милисекунда","милисекунде"]),sr_Latn:c(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:u(["வருடம்","ஆண்டுகள்"],["மாதம்","மாதங்கள்"],["வாரம்","வாரங்கள்"],["நாள்","நாட்கள்"],["மணி","மணிநேரம்"],["நிமிடம்","நிமிடங்கள்"],["வினாடி","வினாடிகள்"],["மில்லி விநாடி","மில்லி விநாடிகள்"]),te:u(["సంవత్సరం","సంవత్సరాల"],["నెల","నెలల"],["వారం","వారాలు"],["రోజు","రోజులు"],["గంట","గంటలు"],["నిమిషం","నిమిషాలు"],["సెకను","సెకన్లు"],["మిల్లీసెకన్","మిల్లీసెకన్లు"]),uk:c(["років","рік","роки"],["місяців","місяць","місяці"],["тижнів","тиждень","тижні"],["днів","день","дні"],["годин","година","години"],["хвилин","хвилина","хвилини"],["секунд","секунда","секунди"],["мілісекунд","мілісекунда","мілісекунди"]),ur:s("سال",o(["مہینہ","مہینے"]),o(["ہفتہ","ہفتے"]),"دن",o(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:s(function(e){return["rok","roky","roky","rokov"][h(e)]},function(e){return["mesiac","mesiace","mesiace","mesiacov"][h(e)]},function(e){return["týždeň","týždne","týždne","týždňov"][h(e)]},function(e){return["deň","dni","dni","dní"][h(e)]},function(e){return["hodina","hodiny","hodiny","hodín"][h(e)]},function(e){return["minúta","minúty","minúty","minút"][h(e)]},function(e){return["sekunda","sekundy","sekundy","sekúnd"][h(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][h(e)]},","),sl:s(function(e){return e%10==1?"leto":e%100==2?"leti":e%100==3||e%100==4||Math.floor(e)!==e&&e%100<=5?"leta":"let"},function(e){return e%10==1?"mesec":e%100==2||Math.floor(e)!==e&&e%100<=5?"meseca":e%10==3||e%10==4?"mesece":"mesecev"},function(e){return e%10==1?"teden":e%10==2||Math.floor(e)!==e&&e%100<=4?"tedna":e%10==3||e%10==4?"tedne":"tednov"},function(e){return e%100==1?"dan":"dni"},function(e){return e%10==1?"ura":e%100==2?"uri":e%10==3||e%10==4||Math.floor(e)!==e?"ure":"ur"},function(e){return e%10==1?"minuta":e%10==2?"minuti":e%10==3||e%10==4||Math.floor(e)!==e&&e%100<=4?"minute":"minut"},function(e){return e%10==1?"sekunda":e%100==2?"sekundi":e%100==3||e%100==4||Math.floor(e)!==e?"sekunde":"sekund"},function(e){return e%10==1?"milisekunda":e%100==2?"milisekundi":e%100==3||e%100==4||Math.floor(e)!==e?"milisekunde":"milisekund"},","),sv:u(["år","år"],["månad","månader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:n(u(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:s("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:s("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:s("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:s("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:s("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:s("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:s("年","個月","周","天","小時","分鐘","秒","毫秒")};function s(e,t,n,r,i,a,s,o,u){var l={y:e,mo:t,w:n,d:r,h:i,m:a,s:s,ms:o};return u&&(l.decimal=u),l}function o(e){return function(t){return 1===t?e[0]:e[1]}}function u(e,t,n,r,i,a,u,l,d){return s(o(e),o(t),o(n),o(r),o(i),o(a),o(u),o(l),d)}function l(e,t,n){return function(r){if(1===r)return e;if(Math.floor(r)!==r||0===r)return t;var i=r%100;return i>=1&&i<=19?t:n}}function d(e){return function(t){return Math.floor(t)!==t?e[2]:t%100>=5&&t%100<=20||t%10>=5&&t%10<=9||t%10==0?e[0]:t%10==1?e[1]:t>1?e[2]:e[1]}}function c(e,t,n,r,i,a,o,u){return s(d(e),d(t),d(n),d(r),d(i),d(a),d(o),d(u),",")}function m(e){return 2===e?1:2*(e>2&&e<11)}function f(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}function h(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function p(e){return 1===e||e%10==1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}function g(e){return e%10==1&&e%100!=11}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function y(e,t,n){var r,i,a,s,o=e.unitName,u=e.unitCount,l=n.spacer,d=n.maxDecimalPoints;r=b(n,"decimal")?n.decimal:b(t,"decimal")?t.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in t&&(i=t._digitReplacements);var c=(void 0===d?u:Math.floor(u*Math.pow(10,d))/Math.pow(10,d)).toString();if(t._hideCountIf2&&2===u)a="",l="";else if(i){a="";for(var m=0;m<c.length;m++){var f=c[m];"."===f?a+=r:a+=i[f]}}else a=c.replace(".",r);var h=t[o];return(s="function"==typeof h?h(u):h,t._numberFirst)?s+l+a:a+l+s}function x(e){var t=function(e,i){e=Math.abs(e);var s=n({},t,i||{});return function(e,t){var n,i=function(e){var t=[e.language];if(b(e,"fallbacks"))if(r(e.fallbacks)&&e.fallbacks.length)t=t.concat(e.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var n=0;n<t.length;n++){var i=t[n];if(b(e.languages,i))return e.languages[i];if(b(a,i))return a[i]}throw Error("No language found.")}(t);if(!e.length){var s=t.units;return y({unitName:s[s.length-1],unitCount:0},i,t)}var o=t.conjunction,u=t.serialComma;n=b(t,"delimiter")?t.delimiter:b(i,"delimiter")?i.delimiter:", ";for(var l=[],d=0;d<e.length;d++)l.push(y(e[d],i,t));return o&&1!==e.length?2===e.length?l.join(o):l.slice(0,-1).join(n)+(u?",":"")+o+l.slice(-1):l.join(n)}(function(e,t){var n,r,i,a,s=t.units,o=t.unitMeasures,u="largest"in t?t.largest:1/0;if(!s.length)return[];var l={};for(r=0,a=e;r<s.length;r++){var d=o[n=s[r]];i=r===s.length-1?a/d:Math.floor(a/d),l[n]=i,a-=i*d}if(t.round){var c=u;for(r=0;r<s.length;r++)if(0!==(i=l[n=s[r]])&&0==--c){for(var m=r+1;m<s.length;m++){var f=s[m],h=l[f];l[n]+=h*o[f]/o[n],l[f]=0}break}for(r=s.length-1;r>=0;r--)if(0!==(i=l[n=s[r]])){var p=Math.round(i);if(l[n]=p,0===r)break;var g=s[r-1],b=o[g],y=Math.floor(p*o[n]/b);if(y)l[g]+=y,l[n]=0;else break}}var x=[];for(r=0;r<s.length&&x.length<u;r++)(i=l[n=s[r]])&&x.push({unitName:n,unitCount:i});return x}(e,s),s)};return n(t,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},e)}var v=n(x({}),{getSupportedLanguages:function(){var e=[];for(var t in a)b(a,t)&&"gr"!==t&&e.push(t);return e},humanizer:x});if("function"==typeof define&&define.amd)e.r,void 0!==v&&e.v(v);else t.exports?t.exports=v:this.humanizeDuration=v}()},32584,1800,e=>{"use strict";var t=e.i(86688);let n=e=>e.toString().padStart(2,"0");e.s(["format_duration",0,function(e,r="humanized",i=!1){if("clock"===r){let t,r,i;return r=Math.floor((t=Math.round(Math.abs(e)/1e3))/3600),i=Math.floor(t%3600/60),`${e<0?"-":""}${n(r)}:${n(i)}:${n(t%60)}`}return"decimal"===r?`${(e/36e5).toFixed(2)}h`:(0,t.default)(e,{largest:i?3:2,round:!i,spacer:" ",delimiter:" "})}],32584);var r=e.i(51268),i=e.i(8492);e.s(["use_duration_format",0,function(){return(0,r.useSyncExternalStore)(i.duration_format_preference.subscribe,i.duration_format_preference.get_snapshot,i.duration_format_preference.get_server_snapshot)}],1800)},3159,e=>{"use strict";var t=e.i(97176);let n=new Set(["/api/note"]);async function r(e,r){let i={method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},a=await fetch(e,i);if(!a.ok){var s,o;let t,r=(await a.json()).error??"Request failed";if(s=e,o=r,n.has(s)&&((t=o.toLowerCase()).includes("duplicate key")||t.includes("unique constraint"))){if(await new Promise(e=>{setTimeout(e,25)}),!(a=await fetch(e,i)).ok)throw Error((await a.json()).error??r)}else throw Error(r)}let u=await a.json();return(0,t.notify_tracker_db_cloud_sync)(e,r),u}e.s(["patch_tracker_action",0,r])},6690,93749,e=>{"use strict";let t="super-time-tracker-pinned-sheet-names",n=new Set,r=[],i=null;function a(){try{let e=window.localStorage.getItem(t);if(null===e)return[];let n=JSON.parse(e);if(!Array.isArray(n))return[];return n.filter(e=>"string"==typeof e)}catch{return[]}}function s(e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch{}i=null,n.forEach(e=>{e()})}e.s(["get_pinned_sheet_names_server_snapshot",0,function(){return r},"get_pinned_sheet_names_snapshot",0,function(){var e=a();if(0===e.length)return r;let t=e.join("\0");if(null!==i&&i.key===t)return i.snapshot;let n=Object.freeze([...e]);return i={key:t,snapshot:n},n},"read_pinned_sheet_names",0,a,"subscribe_pinned_sheet_names",0,function(e){return n.add(e),()=>{n.delete(e)}},"write_pinned_sheet_names",0,s],6690),e.s(["toggle_pinned_sheet_name",0,function(e){let t=e.trim();if(0===t.length)return;let n=a(),r=n.indexOf(t);r>=0?s([...n.slice(0,r),...n.slice(r+1)]):s([...n,t])}],93749)},71610,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(48042),i=e.i(32584),a=e.i(25402),s=e.i(26313),o=e.i(36145),u=e.i(72424),l=e.i(16913),d=e.i(29263),c=e.i(8627);function m(e){var t;if(null===e)return"No activity";let n=new Date(e);return Number.isNaN(+n)?"No activity":(t={addSuffix:!0,roundingMethod:"floor"},function(e,t,n){var r;let i,a,m=(0,o.getDefaultOptions)(),f=n?.locale??m.locale??s.defaultLocale,h=(a=(0,d.toDate)(e)-(0,d.toDate)(t))<0?-1:a>0?1:a;if(isNaN(h))throw RangeError("Invalid time value");let p=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:h}),[g,b]=(0,l.normalizeDates)(n?.in,...h>0?[t,e]:[e,t]),y=(r=n?.roundingMethod??"round",e=>{let t=(r?Math[r]:Math.trunc)(e);return 0===t?0:t}),x=b.getTime()-g.getTime(),v=x/c.millisecondsInMinute,k=(x-((0,u.getTimezoneOffsetInMilliseconds)(b)-(0,u.getTimezoneOffsetInMilliseconds)(g)))/c.millisecondsInMinute,_=n?.unit;if("second"===(i=_||(v<1?"second":v<60?"minute":v<c.minutesInDay?"hour":k<c.minutesInMonth?"day":k<c.minutesInYear?"month":"year"))){let e=y(x/1e3);return f.formatDistance("xSeconds",e,p)}if("minute"===i){let e=y(v);return f.formatDistance("xMinutes",e,p)}if("hour"===i){let e=y(v/60);return f.formatDistance("xHours",e,p)}if("day"===i){let e=y(k/c.minutesInDay);return f.formatDistance("xDays",e,p)}if("month"===i){let e=y(k/c.minutesInMonth);return 12===e&&"month"!==_?f.formatDistance("xYears",1,p):f.formatDistance("xMonths",e,p)}else{let e=y(k/c.minutesInYear);return f.formatDistance("xYears",e,p)}}(n,(0,a.constructFrom)(n,Date.now()),t))}var f=e.i(52663),h=e.i(3159);function p({rows:e,duration_format:a}){let s=(0,r.useRouter)(),[o,u]=(0,n.useState)(!1),[l,d]=(0,n.useState)(null);if(0===e.length)return null;let c=async e=>{d(e);try{await (0,h.patch_tracker_action)("/api/sheet",{name:e,archived:!1}),s.refresh()}finally{d(null)}};return(0,t.jsxs)("section",{className:"flex w-full flex-col gap-2 border-t border-panel-border pt-6",children:[(0,t.jsxs)("button",{type:"button",className:`${(0,f.get_button_class_name)("ghost")} w-full justify-between`,"aria-expanded":o,onClick:()=>u(e=>!e),children:[(0,t.jsxs)("span",{children:["Archived sheets (",e.length,")"]}),(0,t.jsx)("span",{className:"text-muted",children:o?"▾":"▸"})]}),o?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0","aria-label":"Archived sheets",children:e.map(e=>(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-surface-raised p-3",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{className:"m-0 truncate text-[0.95rem] font-semibold text-muted",children:e.sheetName}),(0,t.jsxs)("p",{className:"m-0 mt-1 text-[0.82rem] text-muted",children:[m(e.lastActivityAt)," ·"," ",e.entryCount," ",1===e.entryCount?"entry":"entries"," ·"," ",(0,i.format_duration)(e.monthTotalMs,a)," this month"]})]}),(0,t.jsx)("button",{type:"button",className:(0,f.get_button_class_name)("ghost","small"),disabled:null!==l,onClick:()=>void c(e.sheetName),children:l===e.sheetName?"Restoring…":"Restore"})]})},e.sheetName))}):null]})}var g=e.i(70096),b=e.i(67321);function y({row:e,duration_format:n,is_pinned:r,on_toggle_pin:a}){let s=m(e.lastActivityAt);return(0,t.jsxs)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h2",{className:"m-0 min-w-0 truncate text-[1rem] font-semibold",children:e.sheetName}),e.hasActiveEntry?(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}):null]}),(0,t.jsxs)("p",{className:"m-0 mt-1.5 flex flex-wrap gap-x-3 gap-y-0.5 text-[0.82rem] text-muted",children:[(0,t.jsx)("span",{children:s}),(0,t.jsxs)("span",{children:[e.entryCount," ",1===e.entryCount?"entry":"entries"]})]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)("button",{type:"button",className:"cursor-pointer rounded-md border-0 bg-transparent px-2 py-1 text-[0.9rem] text-muted hover:bg-surface-hover hover:text-foreground","aria-pressed":r,"aria-label":r?`Unpin ${e.sheetName}`:`Pin ${e.sheetName}`,onClick:a,children:r?"★":"☆"}),(0,t.jsx)(g.default,{href:"/",className:"rounded-md px-2.5 py-1 text-[0.82rem] font-semibold text-accent no-underline hover:bg-accent-soft",onClick:()=>(0,b.navigate_to_tracker_sheet)(e.sheetName),children:"Open"})]})]}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[(0,t.jsxs)("div",{className:"rounded-md bg-surface-raised px-2.5 py-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.68rem] font-semibold uppercase tracking-[0.05em] text-muted",children:"This week"}),(0,t.jsx)("p",{className:"m-0 mt-0.5 font-mono text-[0.9rem] font-semibold text-accent",children:(0,i.format_duration)(e.weekTotalMs,n)})]}),(0,t.jsxs)("div",{className:"rounded-md bg-surface-raised px-2.5 py-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.68rem] font-semibold uppercase tracking-[0.05em] text-muted",children:"This month"}),(0,t.jsx)("p",{className:"m-0 mt-0.5 font-mono text-[0.9rem] font-semibold text-accent",children:(0,i.format_duration)(e.monthTotalMs,n)})]})]})]})}var x=e.i(75404),v=e.i(6690),k=e.i(93749),_=e.i(1800);e.s(["SheetHubView",0,function({rows:e,archived_rows:r}){let i=(0,_.use_duration_format)(),a=new Set((0,n.useSyncExternalStore)(v.subscribe_pinned_sheet_names,v.get_pinned_sheet_names_snapshot,v.get_pinned_sheet_names_server_snapshot)),s=(0,n.useMemo)(()=>[...e].sort((e,t)=>{if(e.hasActiveEntry!==t.hasActiveEntry)return e.hasActiveEntry?-1:1;let n=null===e.lastActivityAt?0:+new Date(e.lastActivityAt);return(null===t.lastActivityAt?0:+new Date(t.lastActivityAt))-n}),[e]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.TrackerTopbar,{breadcrumb:{current:"Sheets"}}),(0,t.jsxs)("main",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-6 px-5 pb-12 pt-6",children:[(0,t.jsxs)("header",{className:"flex w-full flex-col gap-2 text-center",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.5rem] font-[650] tracking-tight",children:"Sheets"}),(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:"Quick overview of every project. Pin sheets to filter the Today view."})]}),0===s.length?(0,t.jsx)("p",{className:"m-0 text-center text-[0.9rem] text-muted",children:"No sheets yet. Create one from the tracker."}):(0,t.jsx)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"Sheet summaries",children:s.map(e=>(0,t.jsx)(y,{row:e,duration_format:i,is_pinned:a.has(e.sheetName),on_toggle_pin:()=>(0,k.toggle_pinned_sheet_name)(e.sheetName)},e.sheetName))}),(0,t.jsx)(p,{rows:r,duration_format:i})]})]})}],71610)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(33434)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(51268);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(69600),s=e.r(76636);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return _}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(8063),o=a._(e.r(51268)),l=e.r(99997),c=e.r(4411),u=e.r(70782),d=e.r(69600),f=e.r(31508);e.r(91946);let h=e.r(35302),p=e.r(92024),m=e.r(88334),b=e.r(44017);function g(t){var r,n;let s,a,g,[_,y]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:j,as:w,children:k,prefetch:N=null,passHref:S,replace:C,shallow:E,scroll:O,onClick:T,onMouseEnter:P,onTouchStart:L,legacyBehavior:A=!1,onNavigate:R,transitionTypes:I,ref:M,unstable_dynamicOnHover:D,...U}=t;s=k,A&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let W=o.default.useContext(c.AppRouterContext),$=!1!==N,K=!1!==N?null===(n=N)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,q="string"==typeof(r=w||j)?r:(0,l.formatUrl)(r);if(A){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(s)}let B=A?a&&"object"==typeof a&&a.ref:M,F=o.default.useCallback(e=>(null!==W&&(v.current=(0,p.mountLinkInstance)(e,q,W,K,$,y)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[$,q,W,K,y]),z={ref:(0,u.useMergedRef)(F,B),onClick(t){A||"function"!=typeof T||T(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!W||t.defaultPrevented||function(t,r,n,s,a,i,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l)})}}(t,q,v,C,O,R,I)},onMouseEnter(e){A||"function"!=typeof P||P(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),W&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){A||"function"!=typeof L||L(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),W&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(q)?z.href=q:A&&!S&&("a"!==a.type||"href"in a.props)||(z.href=(0,f.addBasePath)(q)),g=A?o.default.cloneElement(a,z):(0,i.jsx)("a",{...U,...z,children:s}),(0,i.jsx)(x.Provider,{value:_,children:g})}e.r(20612);let x=(0,o.createContext)(p.IDLE_LINK_STATUS),_=()=>(0,o.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(51268),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[i,o]=(0,r.useState)(null),[l,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:i,is_pending:l,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function i(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var o=e.i(77882);function l(){let{email:e,is_configured:r}=(0,o.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(51268),u=e.i(37399),d=e.i(90463),f=e.i(46549),h=e.i(22373);let p=new Set(h.topbar_quick_action_ids),m=["today","search","reporting","pomodoro"];function b(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&p.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,b],73205);var g=e.i(66295),x=e.i(34869),_=e.i(92629);let y=(0,x.create_ui_preference_store)({storage_key:_.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:_.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),j=e.i(90299),w=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return k()}function S(){return"dark"}var C=e.i(35434),E=e.i(17798),O=e.i(10464),T=e.i(61834),P=e.i(81553),L=e.i(25204);let A="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",R={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},I=new Set(["manage-tags","pomodoro","sync-settings"]);function M(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(C.subscribe_theme,N,S),i=(0,c.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),l=(0,c.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),p=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),m=(0,g.parse_tracker_shortcut_map)(l),x=new Set(b(p)),_=h.topbar_quick_action_ids.filter(e=>!x.has(e)),M=Array.from(new Set([...Array.from(I),..._])),{email:D,is_configured:U,is_pending:W,sign_out:$}=(0,o.use_supabase_auth_session)(),[K,q]=(0,c.useState)(!1),B=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!K)return;let e=e=>{null===B.current||B.current.contains(e.target)||q(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[K]);let F=()=>{q(!1)};return(0,L.use_escape_to_cancel)(F,K),(0,t.jsxs)("div",{className:"relative shrink-0",ref:B,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":K,"aria-haspopup":"menu",onClick:()=>q(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),K?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[U&&null!==D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:D,children:D})}):null,M.map(e=>{let n=R[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:A,role:"menuitem",onClick:F,children:n.label})},e)}),U?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitemcheckbox","aria-checked":"true"===i,onClick:()=>{let e="true"===i?"false":"true";y.write(e),y.notify(),(0,f.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==D&&(0,w.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===i?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===i?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{let e;F(),e="dark"===k()?"light":"dark",(0,E.apply_theme)(e),(0,P.write_stored_theme)(e),O.theme_mode_preference.write(e),(0,T.write_document_preference_cookies)({theme_mode:e,theme:e}),O.theme_mode_preference.notify(),(0,C.notify_theme_subscribers)(),(0,f.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{let e;F(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),U?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{F(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${A} text-danger`,role:"menuitem",disabled:W,onClick:()=>{F(),$()},children:W?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function U(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>b(s),[s]);if(0===a.length)return null;let i=D.filter(e=>a.includes(e.id));return 0===i.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:i.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var W=e.i(29539);function $(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(W.SettingsIcon,{})})}function K({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(K,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(U,{}),(0,t.jsx)(l,{}),(0,t.jsx)($,{}),(0,t.jsx)(M,{})]})]})]})})}],75404)},42800,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},85323,e=>{"use strict";var t=e.i(49087);e.s(["notify_desktop",0,function(e){if((0,t.notify_in_app)({title:e.title,body:e.body}),"u"<typeof Notification||"u">typeof document&&"visible"===document.visibilityState&&document.hasFocus()||"granted"!==Notification.permission)return;let{body:r,tag:n,title:s}=e,a={body:r,...void 0!==n?{tag:n}:{}};try{new Notification(s,a)}catch{}},"supports_desktop_notifications",0,function(){return"u">typeof Notification}])},48541,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DESKTOP_NOTIFICATIONS_STORAGE_KEY,default_value:r.DESKTOP_NOTIFICATIONS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["desktop_notifications_preference",0,n])},70957,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(48541),s=e.i(7902),a=e.i(85323);e.s(["DesktopNotificationsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.desktop_notifications_preference.subscribe,n.desktop_notifications_preference.get_snapshot,n.desktop_notifications_preference.get_server_snapshot),i=(0,a.supports_desktop_notifications)(),[o,l]=(0,r.useState)(()=>i?Notification.permission:null);return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2.5",children:[(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,disabled:!i,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.desktop_notifications_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Desktop notifications"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show browser notifications when tracking starts or stops."})]})]}),i?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("p",{className:"m-0 text-[0.78rem] text-muted",children:["Permission: ",o??"default"]}),"granted"!==o?(0,t.jsx)("button",{type:"button",className:"rounded-md border border-panel-border bg-surface-raised px-2 py-1 text-[0.78rem] font-semibold hover:bg-surface-hover",onClick:async()=>{l(await Notification.requestPermission())},children:"Allow notifications"}):null]}):(0,t.jsx)("p",{className:"m-0 text-[0.78rem] text-muted",children:"Your browser does not support desktop notifications."})]})}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(44066)._(e.r(33434)),l=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",o=e.hash||"",i=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),i&&"object"==typeof i&&(i=String(s.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(51268);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(69600),a=e.r(76636);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return _}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(44066),l=e.r(8063),o=s._(e.r(51268)),i=e.r(99997),u=e.r(4411),c=e.r(70782),d=e.r(69600),f=e.r(31508);e.r(91946);let h=e.r(35302),p=e.r(92024),m=e.r(88334),b=e.r(44017);function g(t){var r,n;let a,s,g,[_,y]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:j,as:w,children:k,prefetch:N=null,passHref:S,replace:C,shallow:E,scroll:P,onClick:T,onMouseEnter:O,onTouchStart:L,legacyBehavior:A=!1,onNavigate:R,transitionTypes:U,ref:M,unstable_dynamicOnHover:$,...I}=t;a=k,A&&("string"==typeof a||"number"==typeof a)&&(a=(0,l.jsx)("a",{children:a}));let B=o.default.useContext(u.AppRouterContext),D=!1!==N,q=!1!==N?null===(n=N)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,K="string"==typeof(r=w||j)?r:(0,i.formatUrl)(r);if(A){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=o.default.Children.only(a)}let W=A?s&&"object"==typeof s&&s.ref:M,F=o.default.useCallback(e=>(null!==B&&(v.current=(0,p.mountLinkInstance)(e,K,B,q,D,y)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[D,K,B,q,y]),z={ref:(0,c.useMergedRef)(F,W),onClick(t){A||"function"!=typeof T||T(t),A&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,a,s,l,i){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);o.default.startTransition(()=>{d(r,a?"replace":"push",!1===s?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,i)})}}(t,K,v,C,P,R,U)},onMouseEnter(e){A||"function"!=typeof O||O(e),A&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),B&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){A||"function"!=typeof L||L(e),A&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),B&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(K)?z.href=K:A&&!S&&("a"!==s.type||"href"in s.props)||(z.href=(0,f.addBasePath)(K)),g=A?o.default.cloneElement(s,z):(0,l.jsx)("a",{...I,...z,children:a}),(0,l.jsx)(x.Provider,{value:_,children:g})}e.r(20612);let x=(0,o.createContext)(p.IDLE_LINK_STATUS),_=()=>(0,o.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(51268),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let a=(0,r.useRef)(e);a.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),a.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),a=e.i(32417),s=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[l,o]=(0,r.useState)(null),[i,u]=(0,r.useState)(!1),c=(0,a.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!c)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[c]),{is_configured:c,email:l,is_pending:i,sign_out:(0,r.useCallback)(async()=>{u(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,s.notify_settings_saved)("Signed out"),e.refresh()}finally{u(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let a=[{href:"/",label:"Tracker",match:e=>"/"===e}];function s(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:a.map(n=>{let a=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":a?"page":void 0,children:n.label},n.href)})})}function l(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var o=e.i(77882);function i(){let{email:e,is_configured:r}=(0,o.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(l,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var u=e.i(51268),c=e.i(37399),d=e.i(90463),f=e.i(46549),h=e.i(22373);let p=new Set(h.topbar_quick_action_ids),m=["today","search","reporting","pomodoro"];function b(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&p.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,b],73205);var g=e.i(66295),x=e.i(34869),_=e.i(92629);let y=(0,x.create_ui_preference_store)({storage_key:_.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:_.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),j=e.i(90299),w=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return k()}function S(){return"dark"}var C=e.i(35434),E=e.i(17798),P=e.i(10464),T=e.i(61834),O=e.i(81553),L=e.i(25204);let A="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",R={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},U=new Set(["manage-tags","pomodoro","sync-settings"]);function M(){let e=(0,n.useRouter)(),a=(0,n.usePathname)()??"/",s=(0,u.useSyncExternalStore)(C.subscribe_theme,N,S),l=(0,u.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),i=(0,u.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),p=(0,u.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),m=(0,g.parse_tracker_shortcut_map)(i),x=new Set(b(p)),_=h.topbar_quick_action_ids.filter(e=>!x.has(e)),M=Array.from(new Set([...Array.from(U),..._])),{email:$,is_configured:I,is_pending:B,sign_out:D}=(0,o.use_supabase_auth_session)(),[q,K]=(0,u.useState)(!1),W=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(!q)return;let e=e=>{null===W.current||W.current.contains(e.target)||K(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[q]);let F=()=>{K(!1)};return(0,L.use_escape_to_cancel)(F,q),(0,t.jsxs)("div",{className:"relative shrink-0",ref:W,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":q,"aria-haspopup":"menu",onClick:()=>K(e=>!e),children:(0,t.jsx)(c.HamburgerIcon,{})}),q?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[I&&null!==$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:$,children:$})}):null,M.map(e=>{let n=R[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:A,role:"menuitem",onClick:F,children:n.label})},e)}),I?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitemcheckbox","aria-checked":"true"===l,onClick:()=>{let e="true"===l?"false":"true";y.write(e),y.notify(),(0,f.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==$&&(0,w.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===l?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===l?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{let e;F(),e="dark"===k()?"light":"dark",(0,E.apply_theme)(e),(0,O.write_stored_theme)(e),P.theme_mode_preference.write(e),(0,T.write_document_preference_cookies)({theme_mode:e,theme:e}),P.theme_mode_preference.notify(),(0,C.notify_theme_subscribers)(),(0,f.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===s?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===s?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{let e;F(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),I?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{F(),e.push((0,d.build_auth_page_href)("sign_in",a))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${A} text-danger`,role:"menuitem",disabled:B,onClick:()=>{F(),D()},children:B?"Signing out…":"Sign out"})})]}):null]}):null]})}let $=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function I(){let e=(0,n.usePathname)()??"/",a=(0,u.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),s=(0,u.useMemo)(()=>b(a),[a]);if(0===s.length)return null;let l=$.filter(e=>s.includes(e.id));return 0===l.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:l.map(n=>{let a=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":a?"page":void 0,children:n.label},n.id)})})}var B=e.i(29539);function D(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(B.SettingsIcon,{})})}function q({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(q,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(s,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(I,{}),(0,t.jsx)(i,{}),(0,t.jsx)(D,{}),(0,t.jsx)(M,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},37193,e=>{"use strict";e.s(["message_from_unknown_error",0,function(e,t){return e instanceof Error?e.message:"string"==typeof e?e:t}])},6343,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042),a=e.i(51268),s=e.i(89497),l=e.i(83105),o=e.i(90463),i=e.i(52663),u=e.i(52405),c=e.i(32417),d=e.i(37193);e.s(["SupabaseAuthForm",0,function({mode:e,redirect_to:f="/"}){var h;let p,m,b=(0,n.useRouter)(),[g,x]=(0,a.useState)(""),[_,y]=(0,a.useState)(""),[v,j]=(0,a.useState)(""),[w,k]=(0,a.useState)(null),[N,S]=(0,a.useState)(null),[C,E]=(0,a.useState)(!1),P="sign_up"===e,T=(0,o.build_auth_page_href)(P?"sign_in":"sign_up",f),O=(p=(h={email:g,password:_,password_confirm:v,is_sign_up:P}).email.trim(),m=h.password.length>0,p.length>0&&!!m&&!(h.password.length<8)&&(!h.is_sign_up||h.password_confirm.length>0&&h.password===h.password_confirm)),L=P&&v.length>0&&_!==v;if(!(0,c.is_supabase_configured)())return(0,t.jsx)("p",{className:"m-0 text-[0.85rem] text-danger",children:"Supabase is not configured. Add NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY to your environment."});let A=async e=>{if(e.preventDefault(),!O)return;E(!0),k(null),S(null);let t=(0,l.create_browser_supabase_client)(),r=g.trim();try{if(P){let{error:e}=await t.auth.signUp({email:r,password:_,options:{emailRedirectTo:`${globalThis.location.origin}/auth/callback?next=${encodeURIComponent(f)}`}});if(null===e)return void S("Check your email to confirm the account, then sign in here.");throw e}let{error:e}=await t.auth.signInWithPassword({email:r,password:_});if(null===e){let e=await fetch("/api/sync/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:(0,s.collect_ui_preferences_from_window)()})});if(!e.ok){let t=await e.json();throw Error(t.error??"Cloud import failed")}b.push(f),b.refresh();return}throw e}catch(e){k((0,d.message_from_unknown_error)(e,"Authentication failed"))}finally{E(!1)}};return(0,t.jsxs)("form",{className:"flex w-full flex-col gap-3",onSubmit:e=>void A(e),children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.85rem]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Email"}),(0,t.jsx)("input",{type:"email",autoComplete:"email",required:!0,className:(0,u.get_input_class_name)(),value:g,onChange:e=>x(e.target.value)})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.85rem]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Password"}),(0,t.jsx)("input",{type:"password",autoComplete:P?"new-password":"current-password",required:!0,minLength:8,className:(0,u.get_input_class_name)(),value:_,onChange:e=>y(e.target.value)})]}),P?(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.85rem]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Confirm password"}),(0,t.jsx)("input",{type:"password",autoComplete:"new-password",required:!0,minLength:8,className:(0,u.get_input_class_name)(),value:v,onChange:e=>j(e.target.value)})]}):null,L?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:"Passwords do not match."}):null,(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,i.get_button_class_name)("primary"),disabled:C||!O,children:C?"Working…":P?"Create account":"Sign in"}),(0,t.jsx)(r.default,{href:T,className:`${(0,i.get_button_class_name)("ghost","small")} no-underline`,children:P?"Already have an account?":"Need an account?"})]}),null===N?null:(0,t.jsx)("p",{className:"m-0 text-center text-[0.82rem] text-accent",children:N}),null===w?null:(0,t.jsx)("p",{className:"m-0 text-center text-[0.82rem] text-danger",children:w})]})}],6343)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(33434)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",l=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(a.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(51268);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(69600),s=e.r(76636);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(8063),l=a._(e.r(51268)),o=e.r(99997),c=e.r(4411),u=e.r(70782),d=e.r(69600),p=e.r(31508);e.r(91946);let f=e.r(35302),h=e.r(92024),m=e.r(88334),g=e.r(44017);function _(t){var r,n;let s,a,_,[b,y]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,l.useRef)(null),{href:j,as:k,children:w,prefetch:N=null,passHref:S,replace:E,shallow:A,scroll:C,onClick:P,onMouseEnter:O,onTouchStart:T,legacyBehavior:I=!1,onNavigate:L,transitionTypes:R,ref:U,unstable_dynamicOnHover:D,...K}=t;s=w,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let M=l.default.useContext(c.AppRouterContext),G=!1!==N,$=!1!==N?null===(n=N)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,W="string"==typeof(r=k||j)?r:(0,o.formatUrl)(r);if(I){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(s)}let q=I?a&&"object"==typeof a&&a.ref:U,Y=l.default.useCallback(e=>(null!==M&&(v.current=(0,h.mountLinkInstance)(e,W,M,$,G,y)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[G,W,M,$,y]),B={ref:(0,u.useMergedRef)(Y,q),onClick(t){I||"function"!=typeof P||P(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,s,a,i,o){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,o)})}}(t,W,v,E,C,L,R)},onMouseEnter(e){I||"function"!=typeof O||O(e),I&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),M&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),M&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(W)?B.href=W:I&&!S&&("a"!==a.type||"href"in a.props)||(B.href=(0,p.addBasePath)(W)),_=I?l.default.cloneElement(a,B):(0,i.jsx)("a",{...K,...B,children:s}),(0,i.jsx)(x.Provider,{value:b,children:_})}e.r(20612);let x=(0,l.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,l.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(51268),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[i,l]=(0,r.useState)(null),[o,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{l(e?.user.email??null)}).catch(()=>{l(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{l(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:i,is_pending:o,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function i(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var l=e.i(77882);function o(){let{email:e,is_configured:r}=(0,l.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(51268),u=e.i(37399),d=e.i(90463),p=e.i(46549),f=e.i(22373);let h=new Set(f.topbar_quick_action_ids),m=["today","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&h.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,g],73205);var _=e.i(66295),x=e.i(34869),b=e.i(92629);let y=(0,x.create_ui_preference_store)({storage_key:b.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:b.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),j=e.i(90299),k=e.i(28274);function w(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return w()}function S(){return"dark"}var E=e.i(35434),A=e.i(17798),C=e.i(10464),P=e.i(61834),O=e.i(81553),T=e.i(25204);let I="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",L={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},R=new Set(["manage-tags","pomodoro","sync-settings"]);function U(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(E.subscribe_theme,N,S),i=(0,c.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),o=(0,c.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),h=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),m=(0,_.parse_tracker_shortcut_map)(o),x=new Set(g(h)),b=f.topbar_quick_action_ids.filter(e=>!x.has(e)),U=Array.from(new Set([...Array.from(R),...b])),{email:D,is_configured:K,is_pending:M,sign_out:G}=(0,l.use_supabase_auth_session)(),[$,W]=(0,c.useState)(!1),q=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!$)return;let e=e=>{null===q.current||q.current.contains(e.target)||W(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[$]);let Y=()=>{W(!1)};return(0,T.use_escape_to_cancel)(Y,$),(0,t.jsxs)("div",{className:"relative shrink-0",ref:q,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":$,"aria-haspopup":"menu",onClick:()=>W(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),$?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[K&&null!==D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:D,children:D})}):null,U.map(e=>{let n=L[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:I,role:"menuitem",onClick:Y,children:n.label})},e)}),K?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitemcheckbox","aria-checked":"true"===i,onClick:()=>{let e="true"===i?"false":"true";y.write(e),y.notify(),(0,p.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==D&&(0,k.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===i?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===i?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e="dark"===w()?"light":"dark",(0,A.apply_theme)(e),(0,O.write_stored_theme)(e),C.theme_mode_preference.write(e),(0,P.write_document_preference_cookies)({theme_mode:e,theme:e}),C.theme_mode_preference.notify(),(0,E.notify_theme_subscribers)(),(0,p.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),K?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{Y(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${I} text-danger`,role:"menuitem",disabled:M,onClick:()=>{Y(),G()},children:M?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function K(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>g(s),[s]);if(0===a.length)return null;let i=D.filter(e=>a.includes(e.id));return 0===i.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:i.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var M=e.i(29539);function G(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(M.SettingsIcon,{})})}function $({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)($,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(K,{}),(0,t.jsx)(o,{}),(0,t.jsx)(G,{}),(0,t.jsx)(U,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},42800,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},77352,e=>{"use strict";var t=e.i(8063),r=e.i(42800),n=e.i(75404);e.s(["SettingsPageLayout",0,function({breadcrumb:e,title:s,description:a,children:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TrackerTopbar,{breadcrumb:e}),(0,t.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,t.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,t.jsx)(r.SettingsNav,{})]}),(0,t.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:s}),void 0!==a?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:a}):null]}),i]})]})]})}])},69472,84545,50937,83327,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLAUDE_API_KEY_STORAGE_KEY,default_value:r.CLAUDE_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["claude_api_key_preference",0,n],69472);let s=(0,t.create_ui_preference_store)({storage_key:r.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,default_value:r.ENTRY_SUGGESTION_PROVIDER_DEFAULT,is_valid:e=>"none"===e||"openai"===e||"claude"===e||"google_ai"===e});e.s(["entry_suggestion_provider_preference",0,s],84545);let a=(0,t.create_ui_preference_store)({storage_key:r.GOOGLE_AI_API_KEY_STORAGE_KEY,default_value:r.GOOGLE_AI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["google_ai_api_key_preference",0,a],50937);let i=(0,t.create_ui_preference_store)({storage_key:r.OPENAI_API_KEY_STORAGE_KEY,default_value:r.OPENAI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["openai_api_key_preference",0,i],83327)},28393,e=>{"use strict";var t=e.i(8063);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:a,disabled:i=!1,on_change:l}){var o;return(0,t.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,t.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:n}):null,(0,t.jsx)("div",{className:(o=a.length)<=2||o<=4?"grid grid-cols-1 gap-1.5 sm:grid-cols-2":"grid grid-cols-1 gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:a.map(r=>{let n=r.value===s;return(0,t.jsxs)("label",{className:`flex h-full cursor-pointer flex-col gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${n?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"radio",className:"mt-0.5 shrink-0",name:e,value:r.value,checked:n,disabled:i,onChange:()=>l(r.value)}),(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold leading-snug",children:r.label})]}),void 0!==r.description?(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:r.description}):null]},r.value)})})]})}],28393)},29745,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(77352),a=e.i(52405),i=e.i(69472),l=e.i(84545),o=e.i(50937),c=e.i(83327),u=e.i(7902);let d=[{value:"none",label:"Disabled",description:"Do not call any AI provider."},{value:"openai",label:"OpenAI",description:"Use OpenAI for suggestions."},{value:"claude",label:"Claude",description:"Use Claude for suggestions."},{value:"google_ai",label:"Google AI",description:"Use Gemini for suggestions."}],p=e=>{(0,u.persist_ui_preference)(l.entry_suggestion_provider_preference,e)};e.s(["EntrySuggestionsSettingsView",0,function(){let e=(0,r.useSyncExternalStore)(l.entry_suggestion_provider_preference.subscribe,l.entry_suggestion_provider_preference.get_snapshot,l.entry_suggestion_provider_preference.get_server_snapshot),u=(0,r.useSyncExternalStore)(c.openai_api_key_preference.subscribe,c.openai_api_key_preference.get_snapshot,c.openai_api_key_preference.get_server_snapshot),f=(0,r.useSyncExternalStore)(i.claude_api_key_preference.subscribe,i.claude_api_key_preference.get_snapshot,i.claude_api_key_preference.get_server_snapshot),h=(0,r.useSyncExternalStore)(o.google_ai_api_key_preference.subscribe,o.google_ai_api_key_preference.get_snapshot,o.google_ai_api_key_preference.get_server_snapshot);return(0,t.jsx)(s.SettingsPageLayout,{breadcrumb:{current:"AI suggestions",parent:{label:"Settings",href:"/settings"}},title:"AI suggestions",description:"Choose an LLM provider and API key for entry description suggestions.",children:(0,t.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"AI suggestion settings",children:[(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsx)(n.SettingRadioGroup,{name:"entry-suggestion-provider",legend:"Suggestion provider",description:"The check-in form uses this provider when Suggest is clicked.",value:e,options:d,on_change:p})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"OpenAI API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:u,onChange:e=>{var t;return t=e.target.value,void(c.openai_api_key_preference.write(t.trim()),c.openai_api_key_preference.notify())},placeholder:"sk-...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Claude API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:f,onChange:e=>{var t;return t=e.target.value,void(i.claude_api_key_preference.write(t.trim()),i.claude_api_key_preference.notify())},placeholder:"sk-ant-...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Google AI API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:h,onChange:e=>{var t;return t=e.target.value,void(o.google_ai_api_key_preference.write(t.trim()),o.google_ai_api_key_preference.notify())},placeholder:"AIza...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})})]})})}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(33434)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(51268);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(69600),s=e.r(76636);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return x}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(8063),o=a._(e.r(51268)),l=e.r(99997),c=e.r(4411),u=e.r(70782),d=e.r(69600),p=e.r(31508);e.r(91946);let h=e.r(35302),f=e.r(92024),m=e.r(88334),g=e.r(44017);function _(t){var r,n;let s,a,_,[x,v]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:w,as:j,children:k,prefetch:S=null,passHref:N,replace:C,shallow:E,scroll:T,onClick:R,onMouseEnter:O,onTouchStart:P,legacyBehavior:L=!1,onNavigate:A,transitionTypes:M,ref:D,unstable_dynamicOnHover:I,...U}=t;s=k,L&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let W=o.default.useContext(c.AppRouterContext),$=!1!==S,B=!1!==S?null===(n=S)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,F="string"==typeof(r=j||w)?r:(0,l.formatUrl)(r);if(L){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(s)}let G=L?a&&"object"==typeof a&&a.ref:D,K=o.default.useCallback(e=>(null!==W&&(y.current=(0,f.mountLinkInstance)(e,F,W,B,$,v)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(e)}),[$,F,W,B,v]),q={ref:(0,u.useMergedRef)(K,G),onClick(t){L||"function"!=typeof R||R(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!W||t.defaultPrevented||function(t,r,n,s,a,i,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l)})}}(t,F,y,C,T,A,M)},onMouseEnter(e){L||"function"!=typeof O||O(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),W&&$&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){L||"function"!=typeof P||P(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),W&&$&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(F)?q.href=F:L&&!N&&("a"!==a.type||"href"in a.props)||(q.href=(0,p.addBasePath)(F)),_=L?o.default.cloneElement(a,q):(0,i.jsx)("a",{...U,...q,children:s}),(0,i.jsx)(b.Provider,{value:x,children:_})}e.r(20612);let b=(0,o.createContext)(f.IDLE_LINK_STATUS),x=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(51268),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[i,o]=(0,r.useState)(null),[l,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:i,is_pending:l,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function i(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var o=e.i(77882);function l(){let{email:e,is_configured:r}=(0,o.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(51268),u=e.i(37399),d=e.i(90463),p=e.i(46549),h=e.i(22373);let f=new Set(h.topbar_quick_action_ids),m=["today","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&f.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,g],73205);var _=e.i(66295),b=e.i(34869),x=e.i(92629);let v=(0,b.create_ui_preference_store)({storage_key:x.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:x.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var y=e.i(32792),w=e.i(90299),j=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function S(){return k()}function N(){return"dark"}var C=e.i(35434),E=e.i(17798),T=e.i(10464),R=e.i(61834),O=e.i(81553),P=e.i(25204);let L="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",A={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},M=new Set(["manage-tags","pomodoro","sync-settings"]);function D(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(C.subscribe_theme,S,N),i=(0,c.useSyncExternalStore)(v.subscribe,v.get_snapshot,v.get_server_snapshot),l=(0,c.useSyncExternalStore)(w.tracker_shortcut_map_preference.subscribe,w.tracker_shortcut_map_preference.get_snapshot,w.tracker_shortcut_map_preference.get_server_snapshot),f=(0,c.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),m=(0,_.parse_tracker_shortcut_map)(l),b=new Set(g(f)),x=h.topbar_quick_action_ids.filter(e=>!b.has(e)),D=Array.from(new Set([...Array.from(M),...x])),{email:I,is_configured:U,is_pending:W,sign_out:$}=(0,o.use_supabase_auth_session)(),[B,F]=(0,c.useState)(!1),G=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!B)return;let e=e=>{null===G.current||G.current.contains(e.target)||F(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[B]);let K=()=>{F(!1)};return(0,P.use_escape_to_cancel)(K,B),(0,t.jsxs)("div",{className:"relative shrink-0",ref:G,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":B,"aria-haspopup":"menu",onClick:()=>F(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),B?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[U&&null!==I?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:I,children:I})}):null,D.map(e=>{let n=A[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:L,role:"menuitem",onClick:K,children:n.label})},e)}),U?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitemcheckbox","aria-checked":"true"===i,onClick:()=>{let e="true"===i?"false":"true";v.write(e),v.notify(),(0,p.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==I&&(0,j.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===i?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===i?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{let e;K(),e="dark"===k()?"light":"dark",(0,E.apply_theme)(e),(0,O.write_stored_theme)(e),T.theme_mode_preference.write(e),(0,R.write_document_preference_cookies)({theme_mode:e,theme:e}),T.theme_mode_preference.notify(),(0,C.notify_theme_subscribers)(),(0,p.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{let e;K(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),U?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===I?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{K(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${L} text-danger`,role:"menuitem",disabled:W,onClick:()=>{K(),$()},children:W?"Signing out…":"Sign out"})})]}):null]}):null]})}let I=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function U(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>g(s),[s]);if(0===a.length)return null;let i=I.filter(e=>a.includes(e.id));return 0===i.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:i.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var W=e.i(29539);function $(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(W.SettingsIcon,{})})}function B({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(B,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(U,{}),(0,t.jsx)(l,{}),(0,t.jsx)($,{}),(0,t.jsx)(D,{})]})]})]})})}],75404)},42800,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},66770,e=>{"use strict";e.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},28393,e=>{"use strict";var t=e.i(8063);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:a,disabled:i=!1,on_change:o}){var l;return(0,t.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,t.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:n}):null,(0,t.jsx)("div",{className:(l=a.length)<=2||l<=4?"grid grid-cols-1 gap-1.5 sm:grid-cols-2":"grid grid-cols-1 gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:a.map(r=>{let n=r.value===s;return(0,t.jsxs)("label",{className:`flex h-full cursor-pointer flex-col gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${n?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"radio",className:"mt-0.5 shrink-0",name:e,value:r.value,checked:n,disabled:i,onChange:()=>o(r.value)}),(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold leading-snug",children:r.label})]}),void 0!==r.description?(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:r.description}):null]},r.value)})})]})}],28393)},44250,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(46549),a=e.i(2540),i=e.i(95427),o=e.i(61834);let l=[{value:"default",label:"Default",description:"Balanced blue-gray surfaces for light and dark."},{value:"midnight",label:"Midnight",description:"Cooler, deeper backgrounds with crisp panels."},{value:"warm",label:"Warm",description:"Stone and sepia tones, easy on the eyes."},{value:"ocean",label:"Ocean",description:"Soft blue-tinted surfaces and shadows."},{value:"forest",label:"Forest",description:"Muted green-gray backgrounds."},{value:"contrast",label:"High contrast",description:"Stronger text and border contrast for readability."},{value:"sunset",label:"Sunset",description:"Warm oranges and pinks fading into deep plum."},{value:"lavender",label:"Lavender",description:"Soft violet surfaces with cool highlights."},{value:"rose",label:"Rose",description:"Blush pinks with rosy accents."},{value:"slate",label:"Slate",description:"Neutral cool grays without color tinting."},{value:"nord",label:"Nord",description:"Frosty arctic blues inspired by Nord."},{value:"dracula",label:"Dracula",description:"Purple and magenta accents on deep night."}];e.s(["ColorPaletteSetting",0,function(){let e=(0,r.useSyncExternalStore)(a.color_palette_preference.subscribe,a.color_palette_preference.get_snapshot,a.color_palette_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"color-palette",legend:"Color palette",description:"Backgrounds, surfaces, and highlight colors for light and dark mode.",value:e,options:l,on_change:t=>{t!==e&&(a.color_palette_preference.write(t),(0,i.apply_color_palette)(t),(0,o.write_document_preference_cookies)({palette:t}),a.color_palette_preference.notify(),(0,s.notify_settings_saved)())}})}],44250)},32889,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(50994),s=e.i(7902);e.s(["CheckInFormCollapsedSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.check_in_form_collapsed_preference.subscribe,n.check_in_form_collapsed_preference.get_snapshot,n.check_in_form_collapsed_preference.get_server_snapshot);return(0,t.jsxs)("label",{"aria-label":"Collapse check-in form",className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.check_in_form_collapsed_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Collapse check-in form"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show a single “Check in” button until clicked, instead of the full form."})]})]})}])},50823,e=>{"use strict";var t=e.i(8063),r=e.i(51268);function n(){return!("u"<typeof document)&&"true"===document.documentElement.getAttribute("data-compact-lists")}function s(){return!1}var a=e.i(46549),i=e.i(39411),o=e.i(78539),l=e.i(61834),c=e.i(27850),u=e.i(72550);e.s(["CompactListsSetting",0,function(){let e=(0,r.useSyncExternalStore)(o.subscribe_compact_lists,n,s);return(0,t.jsxs)("label",{"aria-label":"Compact lists",className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:e,onChange:e=>{var t=e.target.checked;(0,i.apply_compact_lists)(t);try{window.localStorage.setItem(u.COMPACT_LISTS_STORAGE_KEY,t?"true":"false"),(0,c.schedule_ui_preferences_cloud_sync)()}catch{}(0,l.write_document_preference_cookies)({compact_lists:t}),(0,o.notify_compact_lists_subscribers)(),(0,a.notify_settings_saved)()}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Compact lists"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Flatter, tighter rows in the sheet entry list"})]})]})}],50823)},49655,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(68462),a=e.i(7902);let i=[{value:"none",label:"All time",description:"Open with no date filter applied."},{value:"today",label:"Today",description:"Pre-select today’s date range."},{value:"week",label:"This week",description:"Pre-select the current week (respects week starts on)."}],o=e=>{(0,a.persist_ui_preference)(s.default_reporting_range_preference,e)};e.s(["DefaultReportingRangeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_range_preference.subscribe,s.default_reporting_range_preference.get_snapshot,s.default_reporting_range_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-range",legend:"Default reporting range",description:"Date filter applied when you open the Reporting page.",value:e,options:i,on_change:o})}])},80032,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(1997),a=e.i(7902);let i=[{value:"duration",label:"Duration"},{value:"name",label:"Name"},{value:"entry_count",label:"Entries"},{value:"active_first",label:"Active first"}],o=e=>{(0,a.persist_ui_preference)(s.default_reporting_sort_preference,e)};e.s(["DefaultReportingSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_sort_preference.subscribe,s.default_reporting_sort_preference.get_snapshot,s.default_reporting_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-sort",legend:"Default reporting sort",description:"The Reporting view opens with this sort selected.",value:e,options:i,on_change:o})}])},83662,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(8492),a=e.i(7902);let i=[{value:"humanized",label:"Humanized",description:"e.g. 1 hour 25 minutes"},{value:"clock",label:"Clock",description:"e.g. 01:25:00"},{value:"decimal",label:"Decimal hours",description:"e.g. 1.42h"}],o=e=>{(0,a.persist_ui_preference)(s.duration_format_preference,e)};e.s(["DurationFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.duration_format_preference.subscribe,s.duration_format_preference.get_snapshot,s.duration_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"duration-format",legend:"Duration format",description:"Applies to entry durations, reporting totals, and the active timer.",value:e,options:i,on_change:o})}])},83487,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(4874),a=e.i(7902);let i=(0,e.i(66770).get_entry_list_sort_options)().map(e=>{var t;return{value:e.value,label:"newest"===(t=e.value)?"Newest first":"oldest"===t?"Oldest first":"duration"===t?"Longest duration":"Description (A–Z)"}}),o=e=>{(0,a.persist_ui_preference)(s.entry_list_sort_preference,e)};e.s(["EntryListSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.entry_list_sort_preference.subscribe,s.entry_list_sort_preference.get_snapshot,s.entry_list_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"entry-list-sort",legend:"Entry list sort",description:"How entries are ordered on the active sheet.",value:e,options:i,on_change:o})}],83487)},45496,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(62796),a=e.i(7902);let i=[{value:"all",label:"Match all tags",description:"Entry must include every selected tag."},{value:"any",label:"Match any tag",description:"Entry can include any one of the selected tags."}],o=e=>{(0,a.persist_ui_preference)(s.tag_filter_mode_preference,e)};e.s(["TagFilterModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.tag_filter_mode_preference.subscribe,s.tag_filter_mode_preference.get_snapshot,s.tag_filter_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"tag-filter-mode",legend:"Tag filter mode",description:"How entries match when multiple tags are selected on a sheet.",value:e,options:i,on_change:o})}])},4365,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(10464),a=e.i(46549),i=e.i(17798),o=e.i(35434),l=e.i(70223),c=e.i(61834),u=e.i(81553);let d=[{value:"light",label:"Light",description:"Always use the light theme."},{value:"dark",label:"Dark",description:"Always use the dark theme."},{value:"system",label:"System",description:"Match the operating system preference."}];e.s(["ThemeModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.theme_mode_preference.subscribe,s.theme_mode_preference.get_snapshot,s.theme_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"theme-mode",legend:"Light / dark mode",description:"Choose light, dark, or match the system. The topbar toggle flips light and dark.",value:e,options:d,on_change:e=>{let t;s.theme_mode_preference.write(e),s.theme_mode_preference.notify(),t=(0,l.resolve_theme_mode_to_theme)(e),(0,i.apply_theme)(t),(0,u.write_stored_theme)(t),(0,c.write_document_preference_cookies)({theme_mode:e,theme:t}),(0,o.notify_theme_subscribers)(),(0,a.notify_settings_saved)()}})}],4365)},84592,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(97891),a=e.i(7902);let i=[{value:"12h",label:"12-hour",description:"e.g. 6:34 PM"},{value:"24h",label:"24-hour",description:"e.g. 18:34"}],o=e=>{(0,a.persist_ui_preference)(s.time_format_preference,e)};e.s(["TimeFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.time_format_preference.subscribe,s.time_format_preference.get_snapshot,s.time_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"time-format",legend:"Time format",description:"Used for entry start/end times and notes timestamps.",value:e,options:i,on_change:o})}])},85215,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(16967),s=e.i(7902);e.s(["TimerInTitleSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_in_title_preference.subscribe,n.timer_in_title_preference.get_snapshot,n.timer_in_title_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_in_title_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Timer in tab title"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show elapsed time in the browser tab while a timer is running."})]})]})}])},35688,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(60935),s=e.i(7902);e.s(["TimerShowSecondsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_show_seconds_preference.subscribe,n.timer_show_seconds_preference.get_snapshot,n.timer_show_seconds_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_show_seconds_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Show seconds on timer"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Include seconds on the live active timer (humanized duration format)."})]})]})}])},85974,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(57853),a=e.i(7902);let i=[{value:"monday",label:"Monday",description:"ISO 8601 week (default)."},{value:"sunday",label:"Sunday",description:"US-style week."}],o=e=>{(0,a.persist_ui_preference)(s.week_starts_on_preference,e)};e.s(["WeekStartsOnSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.week_starts_on_preference.subscribe,s.week_starts_on_preference.get_snapshot,s.week_starts_on_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"week-starts-on",legend:"Week starts on",description:'Used for the "this week" reporting shortcuts and totals.',value:e,options:i,on_change:o})}])}]);