super-time-tracker-ui 0.1.41 → 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.
- package/dist/standalone/next-output/BUILD_ID +1 -1
- package/dist/standalone/next-output/app-path-routes-manifest.json +3 -0
- package/dist/standalone/next-output/build-manifest.json +3 -3
- package/dist/standalone/next-output/routes-manifest.json +18 -0
- package/dist/standalone/next-output/server/app/_global-error.html +1 -1
- package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/completed/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route.js +8 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/entry/split/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/split/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/in/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/offline/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/page.js +1 -1
- package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page.js +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/register/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/reporting/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/reporting/page.js +1 -1
- package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/review/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/review/page/build-manifest.json +18 -0
- package/dist/standalone/next-output/server/app/review/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/review/page/react-loadable-manifest.json +8 -0
- package/dist/standalone/next-output/server/app/review/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/review/page.js +16 -0
- package/dist/standalone/next-output/server/app/review/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/review/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/search/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/search/page.js +3 -3
- package/dist/standalone/next-output/server/app/search/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/search/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/sheets/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/sheets/page.js +1 -1
- package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/templates/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/templates/page/build-manifest.json +18 -0
- package/dist/standalone/next-output/server/app/templates/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/templates/page/react-loadable-manifest.json +8 -0
- package/dist/standalone/next-output/server/app/templates/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/templates/page.js +15 -0
- package/dist/standalone/next-output/server/app/templates/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/templates/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/today/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/today/page.js +1 -1
- package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/chunks/_0g3-h0x._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{_0glc6qw._.js → _0h-5oxh._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/{_00h8h72._.js → _0jso~pc._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_completed_route_actions_0u88hrc.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0yh6v2i.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0~6ygkd.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03dwgvv._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0i8nvpz._.js → [root-of-the-server]__04flz4-._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__05o8b_c._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__06jwkua._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__078pqlk._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__09~j2of._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__07dg5mm._.js → [root-of-the-server]__0_y9w.y._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0q5n4_f._.js → [root-of-the-server]__0gmlwng._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__08n6l..._.js → [root-of-the-server]__0il5~uq._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0njhf-m._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0ta228.._.js → [root-of-the-server]__0ou-jv5._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0f0-17f._.js → [root-of-the-server]__0p4w3_0._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0sx0ra6._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__11yff~n._.js → [root-of-the-server]__0u.h8zx._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/_0-wgm9z._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0.sy6.4._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0.vgy_3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_018i8lw._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_01bznln._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_028bo2r._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_02fm6gp._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_02l2ykc._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_04wup-5._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_05ydjrh._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_07q4l3.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_08_ax6~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_09~-e0f._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0aaepl8._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0bypypo._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0e_h4bk._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0pf-hlu._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0sic8ed._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0t7z076._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0woiueg._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0xr0n-6._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0yno0i8._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0zatphu._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0zkfh~p._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_10n.q--._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_10rw92f._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_10utgt7._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_11.jqyk._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_119e_ui._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_review_page_actions_0u~6wfd.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_templates_page_actions_0n8gow3.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_end-of-day-review-view_tsx_0t6snsb._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_template-library-view_tsx_0mt9r.5._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/lib_0l690qw._.js +3 -0
- package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
- package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.json +8 -0
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/static/chunks/00h013ys5a8px.js +1 -0
- package/dist/standalone/next-output/static/chunks/03~m0oomxu3r9.js +1 -0
- package/dist/standalone/next-output/static/chunks/048hg7.kf50p6.js +1 -0
- package/dist/standalone/next-output/static/chunks/05m~ilvrxjj14.css +3 -0
- package/dist/standalone/next-output/static/chunks/099rnw4-qk_33.js +1 -0
- package/dist/standalone/next-output/static/chunks/{01.p8x7rwa_da.js → 09lddf9c4kn~5.js} +1 -1
- package/dist/standalone/next-output/static/chunks/09p9p33-jf6p_.js +1 -0
- package/dist/standalone/next-output/static/chunks/0_8ps~_e8~ea7.js +1 -0
- package/dist/standalone/next-output/static/chunks/0agpph3f~gct3.js +1 -0
- package/dist/standalone/next-output/static/chunks/0cnb9ojb1.4_s.js +1 -0
- package/dist/standalone/next-output/static/chunks/0do2bszv92zfl.js +1 -0
- package/dist/standalone/next-output/static/chunks/0f.g~ypqld4i2.js +1 -0
- package/dist/standalone/next-output/static/chunks/0gc_4fwvsadx9.js +1 -0
- package/dist/standalone/next-output/static/chunks/0gv5y9hez6j.f.js +1 -0
- package/dist/standalone/next-output/static/chunks/0io.jffavun5t.js +1 -0
- package/dist/standalone/next-output/static/chunks/0lw-y46eplh.w.js +1 -0
- package/dist/standalone/next-output/static/chunks/0ni97tabbd6ql.js +1 -0
- package/dist/standalone/next-output/static/chunks/0qc9jf34l6_d8.js +1 -0
- package/dist/standalone/next-output/static/chunks/0r9inu-z~8h4p.js +1 -0
- package/dist/standalone/next-output/static/chunks/0s7b~rp4s3q9q.js +1 -0
- package/dist/standalone/next-output/static/chunks/0t3hajznk~j44.js +1 -0
- package/dist/standalone/next-output/static/chunks/0t~0aam6r_eto.js +1 -0
- package/dist/standalone/next-output/static/chunks/0ua4wv84cw5ds.js +1 -0
- package/dist/standalone/next-output/static/chunks/0vmr-fgq74aqi.js +1 -0
- package/dist/standalone/next-output/static/chunks/0vudo56ulr706.js +1 -0
- package/dist/standalone/next-output/static/chunks/141j1htu_qj-p.js +1 -0
- package/dist/standalone/next-output/static/chunks/{0fxgcr1q998_k.js → 15hds0xz6b5ce.js} +1 -1
- package/dist/standalone/next-output/static/chunks/16tc8vh998e~1.js +1 -0
- package/dist/standalone/package.json +1 -1
- package/package.json +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03~l7zo._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0kp4i1o._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0s2z7s7._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0t9jvpg._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__13lfzik._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0.6lcq2._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_02pahon._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_07zjmow._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_09_de1y._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0arprr3._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0e5mly4._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ig7qj4._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0jh.m3o._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ka6qj5._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0kke.lq._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0li125f._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0mb-jfk._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0mpyhsz._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0nuw8_e._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0n~tafj._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ow880h._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0tc~oq5._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0xx3178._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_118t3.z._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_11jpj6c._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_12nqpzj._.js +0 -3
- package/dist/standalone/next-output/static/chunks/0.ke4n64znh40.js +0 -1
- package/dist/standalone/next-output/static/chunks/0068ff71tv6bi.js +0 -1
- package/dist/standalone/next-output/static/chunks/02xzj0v314vt~.js +0 -1
- package/dist/standalone/next-output/static/chunks/0352pgxbvl-fv.css +0 -3
- package/dist/standalone/next-output/static/chunks/03q-5-y-5ico8.js +0 -1
- package/dist/standalone/next-output/static/chunks/0_ofg6_dn.8-1.js +0 -1
- package/dist/standalone/next-output/static/chunks/0b7w3-0q5h333.js +0 -1
- package/dist/standalone/next-output/static/chunks/0clzbneaj7nky.js +0 -1
- package/dist/standalone/next-output/static/chunks/0db9cfl4l3zca.js +0 -1
- package/dist/standalone/next-output/static/chunks/0g5ys-l7lj28k.js +0 -1
- package/dist/standalone/next-output/static/chunks/0j2e~637-6iat.js +0 -1
- package/dist/standalone/next-output/static/chunks/0jlyg_y~jm_1h.js +0 -1
- package/dist/standalone/next-output/static/chunks/0n18~cn6kld3f.js +0 -1
- package/dist/standalone/next-output/static/chunks/0oqkatex7m1ci.js +0 -1
- package/dist/standalone/next-output/static/chunks/0oziz2u.3r2or.js +0 -1
- package/dist/standalone/next-output/static/chunks/0p53xxi2_tefo.js +0 -1
- package/dist/standalone/next-output/static/chunks/0ui094~7v00dn.js +0 -1
- package/dist/standalone/next-output/static/chunks/0uns_i-qjgt4k.js +0 -1
- package/dist/standalone/next-output/static/chunks/0vl.zehia.g12.js +0 -1
- package/dist/standalone/next-output/static/chunks/0zh3lwmofmt.3.js +0 -1
- package/dist/standalone/next-output/static/chunks/119bnezxwjo29.js +0 -1
- package/dist/standalone/next-output/static/chunks/11om1fvdw0yt4.js +0 -1
- package/dist/standalone/next-output/static/chunks/140f1v233k4bb.js +0 -1
- package/dist/standalone/next-output/static/chunks/14tf2a7ym42vl.js +0 -1
- /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22373,66295,e=>{"use strict";let t=["help","check-in","check-out","edit-entry","add-note","pomodoro","previous-sheet","next-sheet","zen-mode"],r={help:"?","check-in":"c","check-out":"o","edit-entry":"e","add-note":"n",pomodoro:"p","previous-sheet":"[","next-sheet":"]","zen-mode":"z"};e.s(["topbar_quick_action_ids",0,["today","search","sheets","reporting","pomodoro","manage-tags","sync-settings"],"tracker_shortcut_action_ids",0,t,"tracker_shortcut_defaults",0,r],22373);let s=/^[\w\[\]\?]$/;e.s(["parse_tracker_shortcut_map",0,function(e){let n={...r};try{let i=JSON.parse(e);if(null===i||"object"!=typeof i||Array.isArray(i))return n;let a={...r};for(let e of t){let t=i[e];"string"==typeof t&&1===t.length&&s.test(t)&&(a[e]=t.toLowerCase())}return a}catch{return n}}],66295)},31106,(e,t,r)=>{var s={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],s=t[1];return(r+s)*3/4-s},t.toByteArray=function(e){var t,r,i=l(e),a=i[0],o=i[1],h=new n((a+o)*3/4-o),u=0,c=o>0?a-4:a;for(r=0;r<c;r+=4)t=s[e.charCodeAt(r)]<<18|s[e.charCodeAt(r+1)]<<12|s[e.charCodeAt(r+2)]<<6|s[e.charCodeAt(r+3)],h[u++]=t>>16&255,h[u++]=t>>8&255,h[u++]=255&t;return 2===o&&(t=s[e.charCodeAt(r)]<<2|s[e.charCodeAt(r+1)]>>4,h[u++]=255&t),1===o&&(t=s[e.charCodeAt(r)]<<10|s[e.charCodeAt(r+1)]<<4|s[e.charCodeAt(r+2)]>>2,h[u++]=t>>8&255,h[u++]=255&t),h},t.fromByteArray=function(e){for(var t,s=e.length,n=s%3,i=[],a=0,o=s-n;a<o;a+=16383)i.push(function(e,t,s){for(var n,i=[],a=t;a<s;a+=3)n=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return i.join("")}(e,a,a+16383>o?o:a+16383));return 1===n?i.push(r[(t=e[s-1])>>2]+r[t<<4&63]+"=="):2===n&&i.push(r[(t=(e[s-2]<<8)+e[s-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],s=[],n="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,o=i.length;a<o;++a)r[a]=i[a],s[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var s=r===t?0:4-r%4;return[r,s]}s[45]=62,s[95]=63},72:function(e,t,r){"use strict";var s=r(675),n=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var s=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);var i=0|f(s,n),l=a(i),h=l.write(s,n);return h!==i&&(l=l.slice(0,h)),l}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(C(e,SharedArrayBuffer)||e&&C(e.buffer,SharedArrayBuffer)))return function(e,t,r){var s;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(s=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),s}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return o.from(u,t,r);var p=function(e){if(o.isBuffer(e)){var t=0|d(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(p)return p;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return h(e),a(e<0?0:0|d(e))}function c(e){for(var t=e.length<0?0:0|d(e.length),r=a(t),s=0;s<t;s+=1)r[s]=255&e[s];return r}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!o.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(h(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)};function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(n)return s?-1:T(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n,i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var s=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>s)&&(r=s);for(var n="",i=t;i<r;++i)n+=P[e[i]];return n}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var s="";r=Math.min(e.length,r);for(var n=t;n<r;++n)s+=String.fromCharCode(127&e[n]);return s}(this,t,r);case"latin1":case"binary":return function(e,t,r){var s="";r=Math.min(e.length,r);for(var n=t;n<r;++n)s+=String.fromCharCode(e[n]);return s}(this,t,r);case"base64":return n=this,i=t,a=r,0===i&&a===n.length?s.fromByteArray(n):s.fromByteArray(n.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var s=e.slice(t,r),n="",i=0;i<s.length;i+=2)n+=String.fromCharCode(s[i]+256*s[i+1]);return n}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,r){var s=e[t];e[t]=e[r],e[r]=s}function y(e,t,r,s,n){var i;if(0===e.length)return -1;if("string"==typeof r?(s=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,s)),o.isBuffer(t))return 0===t.length?-1:m(e,t,r,s,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,s,n)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,s,n){var i,a=1,o=e.length,l=t.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(e.length<2||t.length<2)return -1;a=2,o/=2,l/=2,r/=2}function h(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(i=r;i<o;i++)if(h(e,i)===h(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else -1!==u&&(i-=i-u),u=-1}else for(r+l>o&&(r=o-l),i=r;i>=0;i--){for(var c=!0,d=0;d<l;d++)if(h(e,i+d)!==h(t,d)){c=!1;break}if(c)return i}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(C(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),C(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,s=t.length,n=0,i=Math.min(r,s);n<i;++n)if(e[n]!==t[n]){r=e[n],s=t[n];break}return r<s?-1:+(s<r)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,s=o.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var i=e[r];if(C(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(s,n),n+=i.length}return s},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):p.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(e,t,r,s,n){if(C(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===s&&(s=0),void 0===n&&(n=this.length),t<0||r>e.length||s<0||n>this.length)throw RangeError("out of range index");if(s>=n&&t>=r)return 0;if(s>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,s>>>=0,n>>>=0,this===e)return 0;for(var i=n-s,a=r-t,l=Math.min(i,a),h=this.slice(s,n),u=e.slice(t,r),c=0;c<l;++c)if(h[c]!==u[c]){i=h[c],a=u[c];break}return i<a?-1:+(a<i)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var s=[],n=t;n<r;){var i,a,o,l,h=e[n],u=null,c=h>239?4:h>223?3:h>191?2:1;if(n+c<=r)switch(c){case 1:h<128&&(u=h);break;case 2:(192&(i=e[n+1]))==128&&(l=(31&h)<<6|63&i)>127&&(u=l);break;case 3:i=e[n+1],a=e[n+2],(192&i)==128&&(192&a)==128&&(l=(15&h)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[n+1],a=e[n+2],o=e[n+3],(192&i)==128&&(192&a)==128&&(192&o)==128&&(l=(15&h)<<18|(63&i)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,c=1):u>65535&&(u-=65536,s.push(u>>>10&1023|55296),u=56320|1023&u),s.push(u),n+=c}var d=s,f=d.length;if(f<=4096)return String.fromCharCode.apply(String,d);for(var p="",g=0;g<f;)p+=String.fromCharCode.apply(String,d.slice(g,g+=4096));return p}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,s,n,i){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw RangeError('"value" argument is out of bounds');if(r+s>e.length)throw RangeError("Index out of range")}function _(e,t,r,s,n,i){if(r+s>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,s,i){return t*=1,r>>>=0,i||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,s,23,4),r+4}function S(e,t,r,s,i){return t*=1,r>>>=0,i||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,s,52,8),r+8}o.prototype.write=function(e,t,r,s){if(void 0===t)s="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)s=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===s&&(s="utf8")):(s=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,i,a,o,l,h,u,c,d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var f=!1;;)switch(s){case"hex":return function(e,t,r,s){r=Number(r)||0;var n=e.length-r;s?(s=Number(s))>n&&(s=n):s=n;var i=t.length;s>i/2&&(s=i/2);for(var a=0;a<s;++a){var o,l=parseInt(t.substr(2*a,2),16);if((o=l)!=o)break;e[r+a]=l}return a}(this,e,t,r);case"utf8":case"utf-8":return n=t,i=r,O(T(e,this.length-n),this,n,i);case"ascii":return a=t,o=r,O(A(e),this,a,o);case"latin1":case"binary":return function(e,t,r,s){return O(A(t),e,r,s)}(this,e,t,r);case"base64":return l=t,h=r,O(R(e),this,l,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,c=r,O(function(e,t){for(var r,s,n=[],i=0;i<e.length&&!((t-=2)<0);++i)s=(r=e.charCodeAt(i))>>8,n.push(r%256),n.push(s);return n}(e,this.length-u),this,u,c);default:if(f)throw TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var s=this.subarray(e,t);return Object.setPrototypeOf(s,o.prototype),s},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var s=this[e],n=1,i=0;++i<t&&(n*=256);)s+=this[e+i]*n;return s},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var s=this[e+--t],n=1;t>0&&(n*=256);)s+=this[e+--t]*n;return s},o.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var s=this[e],n=1,i=0;++i<t&&(n*=256);)s+=this[e+i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var s=t,n=1,i=this[e+--s];s>0&&(n*=256);)i+=this[e+--s]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,s){if(e*=1,t>>>=0,r>>>=0,!s){var n=Math.pow(2,8*r)-1;v(this,e,t,r,n,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,s){if(e*=1,t>>>=0,r>>>=0,!s){var n=Math.pow(2,8*r)-1;v(this,e,t,r,n,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,s){if(e*=1,t>>>=0,!s){var n=Math.pow(2,8*r-1);v(this,e,t,r,n-1,-n)}var i=0,a=1,o=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,s){if(e*=1,t>>>=0,!s){var n=Math.pow(2,8*r-1);v(this,e,t,r,n-1,-n)}var i=r-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,s){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),s||0===s||(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<r&&(s=r),s===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(s<0)throw RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-r&&(s=e.length-t+r);var n=s-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,s);else if(this===e&&r<t&&t<s)for(var i=n-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,s),t);return n},o.prototype.fill=function(e,t,r,s){if("string"==typeof e){if("string"==typeof t?(s=t,t=0,r=this.length):"string"==typeof r&&(s=r,r=this.length),void 0!==s&&"string"!=typeof s)throw TypeError("encoding must be a string");if("string"==typeof s&&!o.isEncoding(s))throw TypeError("Unknown encoding: "+s);if(1===e.length){var n,i=e.charCodeAt(0);("utf8"===s&&i<128||"latin1"===s)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var a=o.isBuffer(e)?e:o.from(e,s),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=a[n%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function T(e,t){t=t||1/0;for(var r,s=e.length,n=null,i=[],a=0;a<s;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!n){if(r>56319||a+1===s){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function A(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function R(e){return s.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,s){for(var n=0;n<s&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function C(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var s=16*r,n=0;n<16;++n)t[s+n]=e[r]+e[n];return t}()},783:function(e,t){t.read=function(e,t,r,s,n){var i,a,o=8*n-s-1,l=(1<<o)-1,h=l>>1,u=-7,c=r?n-1:0,d=r?-1:1,f=e[t+c];for(c+=d,i=f&(1<<-u)-1,f>>=-u,u+=o;u>0;i=256*i+e[t+c],c+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=s;u>0;a=256*a+e[t+c],c+=d,u-=8);if(0===i)i=1-h;else{if(i===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,s),i-=h}return(f?-1:1)*a*Math.pow(2,i-s)},t.write=function(e,t,r,s,n,i){var a,o,l,h=8*i-n-1,u=(1<<h)-1,c=u>>1,d=5960464477539062e-23*(23===n),f=s?0:i-1,p=s?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+c>=1?t+=d/l:t+=d*Math.pow(2,1-c),t*l>=2&&(a++,l/=2),a+c>=u?(o=0,a=u):a+c>=1?(o=(t*l-1)*Math.pow(2,n),a+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));n>=8;e[r+f]=255&o,f+=p,o/=256,n-=8);for(a=a<<n|o,h+=n;h>0;e[r+f]=255&a,f+=p,a/=256,h-=8);e[r+f-p]|=128*g}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}},a=!0;try{s[e](r,r.exports,i),a=!1}finally{a&&delete n[e]}return r.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.2_7d7ddfdd25bda7360fc181e5027d31b3/node_modules/next/dist/compiled/buffer/",t.exports=i(72)},22792,(e,t,r)=>{"use strict";let s;Object.defineProperty(r,"__esModule",{value:!0}),r.parseCookie=c,r.parse=c,r.stringifyCookie=function(e,t){let r=t?.encode||encodeURIComponent,s=[];for(let t of Object.keys(e)){let a=e[t];if(void 0===a)continue;if(!n.test(t))throw TypeError(`cookie name is invalid: ${t}`);let o=r(a);if(!i.test(o))throw TypeError(`cookie val is invalid: ${a}`);s.push(`${t}=${o}`)}return s.join("; ")},r.stringifySetCookie=d,r.serialize=d,r.parseSetCookie=function(e,t){let r=t?.decode||y,s=e.length,n=f(e,0,s),i=p(e,0,n),a=-1===i?{name:"",value:r(g(e,0,n))}:{name:g(e,0,i),value:r(g(e,i+1,n))},o=n+1;for(;o<s;){let t=f(e,o,s),r=p(e,o,t),n=-1===r?g(e,o,t):g(e,o,r),i=-1===r?void 0:g(e,r+1,t);switch(n.toLowerCase()){case"httponly":a.httpOnly=!0;break;case"secure":a.secure=!0;break;case"partitioned":a.partitioned=!0;break;case"domain":a.domain=i;break;case"path":a.path=i;break;case"max-age":i&&l.test(i)&&(a.maxAge=Number(i));break;case"expires":if(!i)break;let h=new Date(i);Number.isFinite(h.valueOf())&&(a.expires=h);break;case"priority":if(!i)break;let u=i.toLowerCase();("low"===u||"medium"===u||"high"===u)&&(a.priority=u);break;case"samesite":if(!i)break;let c=i.toLowerCase();("lax"===c||"strict"===c||"none"===c)&&(a.sameSite=c)}o=t+1}return a},r.stringifySetCookie=d,r.serialize=d;let n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,i=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,l=/^-?\d+$/,h=Object.prototype.toString,u=((s=function(){}).prototype=Object.create(null),s);function c(e,t){let r=new u,s=e.length;if(s<2)return r;let n=t?.decode||y,i=0;do{let t=p(e,i,s);if(-1===t)break;let a=f(e,i,s);if(t>a){i=e.lastIndexOf(";",t-1)+1;continue}let o=g(e,i,t);void 0===r[o]&&(r[o]=n(g(e,t+1,a))),i=a+1}while(i<s)return r}function d(e,t,r){let s="object"==typeof e?e:{...r,name:e,value:String(t)},l=("object"==typeof t?t:r)?.encode||encodeURIComponent;if(!n.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let u=s.value?l(s.value):"";if(!i.test(u))throw TypeError(`argument val is invalid: ${s.value}`);let c=s.name+"="+u;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);c+="; Max-Age="+s.maxAge}if(s.domain){if(!a.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);c+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);c+="; Path="+s.path}if(s.expires){var d;if(d=s.expires,"[object Date]"!==h.call(d)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);c+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(c+="; HttpOnly"),s.secure&&(c+="; Secure"),s.partitioned&&(c+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return c}function f(e,t,r){let s=e.indexOf(";",t);return -1===s?r:s}function p(e,t,r){let s=e.indexOf("=",t);return s<r?s:-1}function g(e,t,r){let s=t,n=r;do{let t=e.charCodeAt(s);if(32!==t&&9!==t)break}while(++s<n)for(;n>s;){let t=e.charCodeAt(n-1);if(32!==t&&9!==t)break;n--}return e.slice(s,n)}function y(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},83105,e=>{"use strict";let t,r,s;class n extends Error{constructor(e,t="FunctionsError",r){super(e),this.name=t,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class i extends n{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class a extends n{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class o extends n{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}function l(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>t.indexOf(s)&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)0>t.indexOf(s[n])&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]]);return r}(b=w||(w={})).Any="any",b.ApNortheast1="ap-northeast-1",b.ApNortheast2="ap-northeast-2",b.ApSouth1="ap-south-1",b.ApSoutheast1="ap-southeast-1",b.ApSoutheast2="ap-southeast-2",b.CaCentral1="ca-central-1",b.EuCentral1="eu-central-1",b.EuWest1="eu-west-1",b.EuWest2="eu-west-2",b.EuWest3="eu-west-3",b.SaEast1="sa-east-1",b.UsEast1="us-east-1",b.UsWest1="us-west-1",b.UsWest2="us-west-2";"function"==typeof SuppressedError&&SuppressedError;class h{constructor(e,{headers:t={},customFetch:r,region:s=w.Any}={}){this.url=e,this.headers=t,this.region=s,this.fetch=(e=>e?(...t)=>e(...t):(...e)=>fetch(...e))(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){var t,r,s,n;return t=this,r=arguments,s=void 0,n=function*(e,t={}){var r;let s,n;try{let l,{headers:h,method:u,body:c,signal:d,timeout:f}=t,p={},{region:g}=t;g||(g=this.region);let y=new URL(`${this.url}/${e}`);g&&"any"!==g&&(p["x-region"]=g,y.searchParams.set("forceFunctionRegion",g)),c&&(h&&!Object.prototype.hasOwnProperty.call(h,"Content-Type")||!h)?"u">typeof Blob&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",l=c):"string"==typeof c?(p["Content-Type"]="text/plain",l=c):"u">typeof FormData&&c instanceof FormData?l=c:(p["Content-Type"]="application/json",l=JSON.stringify(c)):l=!c||"string"==typeof c||"u">typeof Blob&&c instanceof Blob||c instanceof ArrayBuffer||"u">typeof FormData&&c instanceof FormData?c:JSON.stringify(c);let m=d;f&&(n=new AbortController,s=setTimeout(()=>n.abort(),f),d?(m=n.signal,d.addEventListener("abort",()=>n.abort())):m=n.signal);let b=yield this.fetch(y.toString(),{method:u||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),h),body:l,signal:m}).catch(e=>{throw new i(e)}),w=b.headers.get("x-relay-error");if(w&&"true"===w)throw new a(b);if(!b.ok)throw new o(b);let v=(null!=(r=b.headers.get("Content-Type"))?r:"text/plain").split(";")[0].trim();return{data:"application/json"===v?yield b.json():"application/octet-stream"===v||"application/pdf"===v?yield b.blob():"text/event-stream"===v?b:"multipart/form-data"===v?yield b.formData():yield b.text(),error:null,response:b}}catch(e){return{data:null,error:e,response:e instanceof o||e instanceof a?e.context:void 0}}finally{s&&clearTimeout(s)}},new(s||(s=Promise))(function(e,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function o(e){try{l(n.throw(e))}catch(e){i(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof s?r:new s(function(e){e(r)})).then(a,o)}l((n=n.apply(t,r||[])).next())})}}let u=e=>Math.min(1e3*2**e,3e4),c=[520,503],d=["GET","HEAD","OPTIONS"];var f,p,g,y,m,b,w,v,_,k,S,E,T=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function A(e,t){return new Promise(r=>{if(null==t?void 0:t.aborted)return void r();let s=setTimeout(()=>{null==t||t.removeEventListener("abort",n),r()},e);function n(){clearTimeout(s),r()}null==t||t.addEventListener("abort",n)})}var R=class{constructor(e){var t,r,s,n,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=null!=(t=e.shouldThrowOnError)&&t,this.signal=e.signal,this.isMaybeSingle=null!=(r=e.isMaybeSingle)&&r,this.shouldStripNulls=null!=(s=e.shouldStripNulls)&&s,this.urlLengthLimit=null!=(n=e.urlLengthLimit)?n:8e3,this.retryEnabled=null==(i=e.retry)||i,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if("text/csv"===this.headers.get("Accept"))throw Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var r=this;if(void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),"GET"!==this.method&&"HEAD"!==this.method&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){let e=this.headers.get("Accept");"application/vnd.pgrst.object+json"===e?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):e&&"application/json"!==e||this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}let s=this.fetch,n=(async()=>{let e=0;for(;;){var t,n,i,a,o;let l,h=new Headers(r.headers);e>0&&h.set("X-Retry-Count",String(e));try{l=await s(r.url.toString(),{method:r.method,headers:h,body:JSON.stringify(r.body,(e,t)=>"bigint"==typeof t?t.toString():t),signal:r.signal})}catch(t){if((null==t?void 0:t.name)==="AbortError"||(null==t?void 0:t.code)==="ABORT_ERR"||!d.includes(r.method))throw t;if(r.retryEnabled&&e<3){let t=u(e);e++,await A(t,r.signal);continue}throw t}if(t=r.method,n=l.status,i=e,r.retryEnabled&&!(i>=3)&&d.includes(t)&&c.includes(n)&&1){let t=null!=(a=null==(o=l.headers)?void 0:o.get("Retry-After"))?a:null,s=null!==t?1e3*Math.max(0,parseInt(t,10)||0):u(e);await l.text(),e++,await A(s,r.signal);continue}return await r.processResponse(l)}})();return this.shouldThrowOnError||(n=n.catch(e=>{var t,r,s,n,i,a;let o="",l="",h="",u=null==e?void 0:e.cause;if(u){let t=null!=(r=null==u?void 0:u.message)?r:"",a=null!=(s=null==u?void 0:u.code)?s:"";o=`${null!=(n=null==e?void 0:e.name)?n:"FetchError"}: ${null==e?void 0:e.message}
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22373,66295,e=>{"use strict";let t=["help","check-in","check-out","edit-entry","add-note","pomodoro","previous-sheet","next-sheet","zen-mode"],r={help:"?","check-in":"c","check-out":"o","edit-entry":"e","add-note":"n",pomodoro:"p","previous-sheet":"[","next-sheet":"]","zen-mode":"z"};e.s(["topbar_quick_action_ids",0,["today","review","templates","search","sheets","reporting","pomodoro","manage-tags","sync-settings"],"tracker_shortcut_action_ids",0,t,"tracker_shortcut_defaults",0,r],22373);let s=/^[\w\[\]\?]$/;e.s(["parse_tracker_shortcut_map",0,function(e){let n={...r};try{let i=JSON.parse(e);if(null===i||"object"!=typeof i||Array.isArray(i))return n;let a={...r};for(let e of t){let t=i[e];"string"==typeof t&&1===t.length&&s.test(t)&&(a[e]=t.toLowerCase())}return a}catch{return n}}],66295)},31106,(e,t,r)=>{var s={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],s=t[1];return(r+s)*3/4-s},t.toByteArray=function(e){var t,r,i=l(e),a=i[0],o=i[1],h=new n((a+o)*3/4-o),u=0,c=o>0?a-4:a;for(r=0;r<c;r+=4)t=s[e.charCodeAt(r)]<<18|s[e.charCodeAt(r+1)]<<12|s[e.charCodeAt(r+2)]<<6|s[e.charCodeAt(r+3)],h[u++]=t>>16&255,h[u++]=t>>8&255,h[u++]=255&t;return 2===o&&(t=s[e.charCodeAt(r)]<<2|s[e.charCodeAt(r+1)]>>4,h[u++]=255&t),1===o&&(t=s[e.charCodeAt(r)]<<10|s[e.charCodeAt(r+1)]<<4|s[e.charCodeAt(r+2)]>>2,h[u++]=t>>8&255,h[u++]=255&t),h},t.fromByteArray=function(e){for(var t,s=e.length,n=s%3,i=[],a=0,o=s-n;a<o;a+=16383)i.push(function(e,t,s){for(var n,i=[],a=t;a<s;a+=3)n=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return i.join("")}(e,a,a+16383>o?o:a+16383));return 1===n?i.push(r[(t=e[s-1])>>2]+r[t<<4&63]+"=="):2===n&&i.push(r[(t=(e[s-2]<<8)+e[s-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],s=[],n="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,o=i.length;a<o;++a)r[a]=i[a],s[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var s=r===t?0:4-r%4;return[r,s]}s[45]=62,s[95]=63},72:function(e,t,r){"use strict";var s=r(675),n=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var s=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);var i=0|f(s,n),l=a(i),h=l.write(s,n);return h!==i&&(l=l.slice(0,h)),l}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(C(e,SharedArrayBuffer)||e&&C(e.buffer,SharedArrayBuffer)))return function(e,t,r){var s;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(s=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),s}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return o.from(u,t,r);var p=function(e){if(o.isBuffer(e)){var t=0|d(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(p)return p;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return h(e),a(e<0?0:0|d(e))}function c(e){for(var t=e.length<0?0:0|d(e.length),r=a(t),s=0;s<t;s+=1)r[s]=255&e[s];return r}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!o.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(h(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)};function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(n)return s?-1:T(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n,i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var s=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>s)&&(r=s);for(var n="",i=t;i<r;++i)n+=P[e[i]];return n}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var s="";r=Math.min(e.length,r);for(var n=t;n<r;++n)s+=String.fromCharCode(127&e[n]);return s}(this,t,r);case"latin1":case"binary":return function(e,t,r){var s="";r=Math.min(e.length,r);for(var n=t;n<r;++n)s+=String.fromCharCode(e[n]);return s}(this,t,r);case"base64":return n=this,i=t,a=r,0===i&&a===n.length?s.fromByteArray(n):s.fromByteArray(n.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var s=e.slice(t,r),n="",i=0;i<s.length;i+=2)n+=String.fromCharCode(s[i]+256*s[i+1]);return n}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,r){var s=e[t];e[t]=e[r],e[r]=s}function y(e,t,r,s,n){var i;if(0===e.length)return -1;if("string"==typeof r?(s=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,s)),o.isBuffer(t))return 0===t.length?-1:m(e,t,r,s,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,s,n)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,s,n){var i,a=1,o=e.length,l=t.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(e.length<2||t.length<2)return -1;a=2,o/=2,l/=2,r/=2}function h(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(i=r;i<o;i++)if(h(e,i)===h(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else -1!==u&&(i-=i-u),u=-1}else for(r+l>o&&(r=o-l),i=r;i>=0;i--){for(var c=!0,d=0;d<l;d++)if(h(e,i+d)!==h(t,d)){c=!1;break}if(c)return i}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(C(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),C(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,s=t.length,n=0,i=Math.min(r,s);n<i;++n)if(e[n]!==t[n]){r=e[n],s=t[n];break}return r<s?-1:+(s<r)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,s=o.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var i=e[r];if(C(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(s,n),n+=i.length}return s},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):p.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(e,t,r,s,n){if(C(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===s&&(s=0),void 0===n&&(n=this.length),t<0||r>e.length||s<0||n>this.length)throw RangeError("out of range index");if(s>=n&&t>=r)return 0;if(s>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,s>>>=0,n>>>=0,this===e)return 0;for(var i=n-s,a=r-t,l=Math.min(i,a),h=this.slice(s,n),u=e.slice(t,r),c=0;c<l;++c)if(h[c]!==u[c]){i=h[c],a=u[c];break}return i<a?-1:+(a<i)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var s=[],n=t;n<r;){var i,a,o,l,h=e[n],u=null,c=h>239?4:h>223?3:h>191?2:1;if(n+c<=r)switch(c){case 1:h<128&&(u=h);break;case 2:(192&(i=e[n+1]))==128&&(l=(31&h)<<6|63&i)>127&&(u=l);break;case 3:i=e[n+1],a=e[n+2],(192&i)==128&&(192&a)==128&&(l=(15&h)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[n+1],a=e[n+2],o=e[n+3],(192&i)==128&&(192&a)==128&&(192&o)==128&&(l=(15&h)<<18|(63&i)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,c=1):u>65535&&(u-=65536,s.push(u>>>10&1023|55296),u=56320|1023&u),s.push(u),n+=c}var d=s,f=d.length;if(f<=4096)return String.fromCharCode.apply(String,d);for(var p="",g=0;g<f;)p+=String.fromCharCode.apply(String,d.slice(g,g+=4096));return p}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,s,n,i){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw RangeError('"value" argument is out of bounds');if(r+s>e.length)throw RangeError("Index out of range")}function _(e,t,r,s,n,i){if(r+s>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,s,i){return t*=1,r>>>=0,i||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,s,23,4),r+4}function S(e,t,r,s,i){return t*=1,r>>>=0,i||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,s,52,8),r+8}o.prototype.write=function(e,t,r,s){if(void 0===t)s="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)s=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===s&&(s="utf8")):(s=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,i,a,o,l,h,u,c,d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var f=!1;;)switch(s){case"hex":return function(e,t,r,s){r=Number(r)||0;var n=e.length-r;s?(s=Number(s))>n&&(s=n):s=n;var i=t.length;s>i/2&&(s=i/2);for(var a=0;a<s;++a){var o,l=parseInt(t.substr(2*a,2),16);if((o=l)!=o)break;e[r+a]=l}return a}(this,e,t,r);case"utf8":case"utf-8":return n=t,i=r,O(T(e,this.length-n),this,n,i);case"ascii":return a=t,o=r,O(A(e),this,a,o);case"latin1":case"binary":return function(e,t,r,s){return O(A(t),e,r,s)}(this,e,t,r);case"base64":return l=t,h=r,O(R(e),this,l,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,c=r,O(function(e,t){for(var r,s,n=[],i=0;i<e.length&&!((t-=2)<0);++i)s=(r=e.charCodeAt(i))>>8,n.push(r%256),n.push(s);return n}(e,this.length-u),this,u,c);default:if(f)throw TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var s=this.subarray(e,t);return Object.setPrototypeOf(s,o.prototype),s},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var s=this[e],n=1,i=0;++i<t&&(n*=256);)s+=this[e+i]*n;return s},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var s=this[e+--t],n=1;t>0&&(n*=256);)s+=this[e+--t]*n;return s},o.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var s=this[e],n=1,i=0;++i<t&&(n*=256);)s+=this[e+i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var s=t,n=1,i=this[e+--s];s>0&&(n*=256);)i+=this[e+--s]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,s){if(e*=1,t>>>=0,r>>>=0,!s){var n=Math.pow(2,8*r)-1;v(this,e,t,r,n,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,s){if(e*=1,t>>>=0,r>>>=0,!s){var n=Math.pow(2,8*r)-1;v(this,e,t,r,n,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,s){if(e*=1,t>>>=0,!s){var n=Math.pow(2,8*r-1);v(this,e,t,r,n-1,-n)}var i=0,a=1,o=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,s){if(e*=1,t>>>=0,!s){var n=Math.pow(2,8*r-1);v(this,e,t,r,n-1,-n)}var i=r-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,s){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),s||0===s||(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<r&&(s=r),s===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(s<0)throw RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-r&&(s=e.length-t+r);var n=s-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,s);else if(this===e&&r<t&&t<s)for(var i=n-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,s),t);return n},o.prototype.fill=function(e,t,r,s){if("string"==typeof e){if("string"==typeof t?(s=t,t=0,r=this.length):"string"==typeof r&&(s=r,r=this.length),void 0!==s&&"string"!=typeof s)throw TypeError("encoding must be a string");if("string"==typeof s&&!o.isEncoding(s))throw TypeError("Unknown encoding: "+s);if(1===e.length){var n,i=e.charCodeAt(0);("utf8"===s&&i<128||"latin1"===s)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var a=o.isBuffer(e)?e:o.from(e,s),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=a[n%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function T(e,t){t=t||1/0;for(var r,s=e.length,n=null,i=[],a=0;a<s;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!n){if(r>56319||a+1===s){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function A(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function R(e){return s.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,s){for(var n=0;n<s&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function C(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var s=16*r,n=0;n<16;++n)t[s+n]=e[r]+e[n];return t}()},783:function(e,t){t.read=function(e,t,r,s,n){var i,a,o=8*n-s-1,l=(1<<o)-1,h=l>>1,u=-7,c=r?n-1:0,d=r?-1:1,f=e[t+c];for(c+=d,i=f&(1<<-u)-1,f>>=-u,u+=o;u>0;i=256*i+e[t+c],c+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=s;u>0;a=256*a+e[t+c],c+=d,u-=8);if(0===i)i=1-h;else{if(i===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,s),i-=h}return(f?-1:1)*a*Math.pow(2,i-s)},t.write=function(e,t,r,s,n,i){var a,o,l,h=8*i-n-1,u=(1<<h)-1,c=u>>1,d=5960464477539062e-23*(23===n),f=s?0:i-1,p=s?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+c>=1?t+=d/l:t+=d*Math.pow(2,1-c),t*l>=2&&(a++,l/=2),a+c>=u?(o=0,a=u):a+c>=1?(o=(t*l-1)*Math.pow(2,n),a+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));n>=8;e[r+f]=255&o,f+=p,o/=256,n-=8);for(a=a<<n|o,h+=n;h>0;e[r+f]=255&a,f+=p,a/=256,h-=8);e[r+f-p]|=128*g}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}},a=!0;try{s[e](r,r.exports,i),a=!1}finally{a&&delete n[e]}return r.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.2_7d7ddfdd25bda7360fc181e5027d31b3/node_modules/next/dist/compiled/buffer/",t.exports=i(72)},22792,(e,t,r)=>{"use strict";let s;Object.defineProperty(r,"__esModule",{value:!0}),r.parseCookie=c,r.parse=c,r.stringifyCookie=function(e,t){let r=t?.encode||encodeURIComponent,s=[];for(let t of Object.keys(e)){let a=e[t];if(void 0===a)continue;if(!n.test(t))throw TypeError(`cookie name is invalid: ${t}`);let o=r(a);if(!i.test(o))throw TypeError(`cookie val is invalid: ${a}`);s.push(`${t}=${o}`)}return s.join("; ")},r.stringifySetCookie=d,r.serialize=d,r.parseSetCookie=function(e,t){let r=t?.decode||y,s=e.length,n=f(e,0,s),i=p(e,0,n),a=-1===i?{name:"",value:r(g(e,0,n))}:{name:g(e,0,i),value:r(g(e,i+1,n))},o=n+1;for(;o<s;){let t=f(e,o,s),r=p(e,o,t),n=-1===r?g(e,o,t):g(e,o,r),i=-1===r?void 0:g(e,r+1,t);switch(n.toLowerCase()){case"httponly":a.httpOnly=!0;break;case"secure":a.secure=!0;break;case"partitioned":a.partitioned=!0;break;case"domain":a.domain=i;break;case"path":a.path=i;break;case"max-age":i&&l.test(i)&&(a.maxAge=Number(i));break;case"expires":if(!i)break;let h=new Date(i);Number.isFinite(h.valueOf())&&(a.expires=h);break;case"priority":if(!i)break;let u=i.toLowerCase();("low"===u||"medium"===u||"high"===u)&&(a.priority=u);break;case"samesite":if(!i)break;let c=i.toLowerCase();("lax"===c||"strict"===c||"none"===c)&&(a.sameSite=c)}o=t+1}return a},r.stringifySetCookie=d,r.serialize=d;let n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,i=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,l=/^-?\d+$/,h=Object.prototype.toString,u=((s=function(){}).prototype=Object.create(null),s);function c(e,t){let r=new u,s=e.length;if(s<2)return r;let n=t?.decode||y,i=0;do{let t=p(e,i,s);if(-1===t)break;let a=f(e,i,s);if(t>a){i=e.lastIndexOf(";",t-1)+1;continue}let o=g(e,i,t);void 0===r[o]&&(r[o]=n(g(e,t+1,a))),i=a+1}while(i<s)return r}function d(e,t,r){let s="object"==typeof e?e:{...r,name:e,value:String(t)},l=("object"==typeof t?t:r)?.encode||encodeURIComponent;if(!n.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let u=s.value?l(s.value):"";if(!i.test(u))throw TypeError(`argument val is invalid: ${s.value}`);let c=s.name+"="+u;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);c+="; Max-Age="+s.maxAge}if(s.domain){if(!a.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);c+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);c+="; Path="+s.path}if(s.expires){var d;if(d=s.expires,"[object Date]"!==h.call(d)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);c+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(c+="; HttpOnly"),s.secure&&(c+="; Secure"),s.partitioned&&(c+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return c}function f(e,t,r){let s=e.indexOf(";",t);return -1===s?r:s}function p(e,t,r){let s=e.indexOf("=",t);return s<r?s:-1}function g(e,t,r){let s=t,n=r;do{let t=e.charCodeAt(s);if(32!==t&&9!==t)break}while(++s<n)for(;n>s;){let t=e.charCodeAt(n-1);if(32!==t&&9!==t)break;n--}return e.slice(s,n)}function y(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},83105,e=>{"use strict";let t,r,s;class n extends Error{constructor(e,t="FunctionsError",r){super(e),this.name=t,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class i extends n{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class a extends n{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class o extends n{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}function l(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>t.indexOf(s)&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)0>t.indexOf(s[n])&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]]);return r}(b=w||(w={})).Any="any",b.ApNortheast1="ap-northeast-1",b.ApNortheast2="ap-northeast-2",b.ApSouth1="ap-south-1",b.ApSoutheast1="ap-southeast-1",b.ApSoutheast2="ap-southeast-2",b.CaCentral1="ca-central-1",b.EuCentral1="eu-central-1",b.EuWest1="eu-west-1",b.EuWest2="eu-west-2",b.EuWest3="eu-west-3",b.SaEast1="sa-east-1",b.UsEast1="us-east-1",b.UsWest1="us-west-1",b.UsWest2="us-west-2";"function"==typeof SuppressedError&&SuppressedError;class h{constructor(e,{headers:t={},customFetch:r,region:s=w.Any}={}){this.url=e,this.headers=t,this.region=s,this.fetch=(e=>e?(...t)=>e(...t):(...e)=>fetch(...e))(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){var t,r,s,n;return t=this,r=arguments,s=void 0,n=function*(e,t={}){var r;let s,n;try{let l,{headers:h,method:u,body:c,signal:d,timeout:f}=t,p={},{region:g}=t;g||(g=this.region);let y=new URL(`${this.url}/${e}`);g&&"any"!==g&&(p["x-region"]=g,y.searchParams.set("forceFunctionRegion",g)),c&&(h&&!Object.prototype.hasOwnProperty.call(h,"Content-Type")||!h)?"u">typeof Blob&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",l=c):"string"==typeof c?(p["Content-Type"]="text/plain",l=c):"u">typeof FormData&&c instanceof FormData?l=c:(p["Content-Type"]="application/json",l=JSON.stringify(c)):l=!c||"string"==typeof c||"u">typeof Blob&&c instanceof Blob||c instanceof ArrayBuffer||"u">typeof FormData&&c instanceof FormData?c:JSON.stringify(c);let m=d;f&&(n=new AbortController,s=setTimeout(()=>n.abort(),f),d?(m=n.signal,d.addEventListener("abort",()=>n.abort())):m=n.signal);let b=yield this.fetch(y.toString(),{method:u||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),h),body:l,signal:m}).catch(e=>{throw new i(e)}),w=b.headers.get("x-relay-error");if(w&&"true"===w)throw new a(b);if(!b.ok)throw new o(b);let v=(null!=(r=b.headers.get("Content-Type"))?r:"text/plain").split(";")[0].trim();return{data:"application/json"===v?yield b.json():"application/octet-stream"===v||"application/pdf"===v?yield b.blob():"text/event-stream"===v?b:"multipart/form-data"===v?yield b.formData():yield b.text(),error:null,response:b}}catch(e){return{data:null,error:e,response:e instanceof o||e instanceof a?e.context:void 0}}finally{s&&clearTimeout(s)}},new(s||(s=Promise))(function(e,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function o(e){try{l(n.throw(e))}catch(e){i(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof s?r:new s(function(e){e(r)})).then(a,o)}l((n=n.apply(t,r||[])).next())})}}let u=e=>Math.min(1e3*2**e,3e4),c=[520,503],d=["GET","HEAD","OPTIONS"];var f,p,g,y,m,b,w,v,_,k,S,E,T=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function A(e,t){return new Promise(r=>{if(null==t?void 0:t.aborted)return void r();let s=setTimeout(()=>{null==t||t.removeEventListener("abort",n),r()},e);function n(){clearTimeout(s),r()}null==t||t.addEventListener("abort",n)})}var R=class{constructor(e){var t,r,s,n,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=null!=(t=e.shouldThrowOnError)&&t,this.signal=e.signal,this.isMaybeSingle=null!=(r=e.isMaybeSingle)&&r,this.shouldStripNulls=null!=(s=e.shouldStripNulls)&&s,this.urlLengthLimit=null!=(n=e.urlLengthLimit)?n:8e3,this.retryEnabled=null==(i=e.retry)||i,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if("text/csv"===this.headers.get("Accept"))throw Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var r=this;if(void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),"GET"!==this.method&&"HEAD"!==this.method&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){let e=this.headers.get("Accept");"application/vnd.pgrst.object+json"===e?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):e&&"application/json"!==e||this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}let s=this.fetch,n=(async()=>{let e=0;for(;;){var t,n,i,a,o;let l,h=new Headers(r.headers);e>0&&h.set("X-Retry-Count",String(e));try{l=await s(r.url.toString(),{method:r.method,headers:h,body:JSON.stringify(r.body,(e,t)=>"bigint"==typeof t?t.toString():t),signal:r.signal})}catch(t){if((null==t?void 0:t.name)==="AbortError"||(null==t?void 0:t.code)==="ABORT_ERR"||!d.includes(r.method))throw t;if(r.retryEnabled&&e<3){let t=u(e);e++,await A(t,r.signal);continue}throw t}if(t=r.method,n=l.status,i=e,r.retryEnabled&&!(i>=3)&&d.includes(t)&&c.includes(n)&&1){let t=null!=(a=null==(o=l.headers)?void 0:o.get("Retry-After"))?a:null,s=null!==t?1e3*Math.max(0,parseInt(t,10)||0):u(e);await l.text(),e++,await A(s,r.signal);continue}return await r.processResponse(l)}})();return this.shouldThrowOnError||(n=n.catch(e=>{var t,r,s,n,i,a;let o="",l="",h="",u=null==e?void 0:e.cause;if(u){let t=null!=(r=null==u?void 0:u.message)?r:"",a=null!=(s=null==u?void 0:u.code)?s:"";o=`${null!=(n=null==e?void 0:e.name)?n:"FetchError"}: ${null==e?void 0:e.message}
|
|
2
2
|
|
|
3
3
|
Caused by: ${null!=(i=null==u?void 0:u.name)?i:"Error"}: ${t}`,a&&(o+=` (${a})`),(null==u?void 0:u.stack)&&(o+=`
|
|
4
4
|
${u.stack}`)}else o=null!=(a=null==e?void 0:e.stack)?a:"";let c=this.url.toString().length;return(null==e?void 0:e.name)==="AbortError"||(null==e?void 0:e.code)==="ABORT_ERR"?(h="",l="Request was aborted (timeout or manual cancellation)",c>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${c} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((null==u?void 0:u.name)==="HeadersOverflowError"||(null==u?void 0:u.code)==="UND_ERR_HEADERS_OVERFLOW")&&(h="",l="HTTP headers exceeded server limits (typically 16KB)",c>this.urlLengthLimit&&(l+=`. Your request URL is ${c} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${null!=(t=null==e?void 0:e.name)?t:"FetchError"}: ${null==e?void 0:e.message}`,details:o,hint:l,code:h},data:null,count:null,status:0,statusText:""}})),n.then(e,t)}async processResponse(e){var t,r,s;let n=null,i=null,a=null,o=e.status,l=e.statusText;if(e.ok){if("HEAD"!==this.method){let t=await e.text();""===t||(i="text/csv"===this.headers.get("Accept")||this.headers.get("Accept")&&(null==(s=this.headers.get("Accept"))?void 0:s.includes("application/vnd.pgrst.plan+text"))?t:JSON.parse(t))}let h=null==(t=this.headers.get("Prefer"))?void 0:t.match(/count=(exact|planned|estimated)/),u=null==(r=e.headers.get("content-range"))?void 0:r.split("/");h&&u&&u.length>1&&(a=parseInt(u[1])),this.isMaybeSingle&&Array.isArray(i)&&(i.length>1?(n={code:"PGRST116",details:`Results contain ${i.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},i=null,a=null,o=406,l="Not Acceptable"):i=1===i.length?i[0]:null)}else{let t=await e.text();try{n=JSON.parse(t),Array.isArray(n)&&404===e.status&&(i=[],n=null,o=200,l="OK")}catch(r){404===e.status&&""===t?(o=204,l="No Content"):n={message:t}}if(n&&this.shouldThrowOnError)throw new T(n)}return{success:null===n,error:n,data:i,count:a,status:o,statusText:l}}returns(){return this}overrideTypes(){return this}},O=class extends R{select(e){let t=!1,r=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:s,referencedTable:n=s}={}){let i=n?`${n}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${void 0===r?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){let s=void 0===r?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:s=r}={}){let n=void 0===s?"offset":`${s}.offset`,i=void 0===s?"limit":`${s}.limit`;return this.url.searchParams.set(n,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:s=!1,wal:n=!1,format:i="text"}={}){var a;let o=[e?"analyze":null,t?"verbose":null,r?"settings":null,s?"buffers":null,n?"wal":null].filter(Boolean).join("|"),l=null!=(a=this.headers.get("Accept"))?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${o};`),this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};let C=RegExp("[,()]");var P=class extends O{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){let r=Array.from(new Set(t)).map(e=>"string"==typeof e&&C.test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){let r=Array.from(new Set(t)).map(e=>"string"==typeof e&&C.test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"==typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:s}={}){let n="";"plain"===s?n="pl":"phrase"===s?n="ph":"websearch"===s&&(n="w");let i=void 0===r?"":`(${r})`;return this.url.searchParams.append(e,`${n}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([e,t])=>void 0!==t).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){let s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},j=class{constructor(e,{headers:t={},schema:r,fetch:s,urlLengthLimit:n=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=s,this.urlLengthLimit=n,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){let{head:r=!1,count:s}=null!=t?t:{},n=!1,i=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!n?"":('"'===e&&(n=!n),e)).join(""),{url:a,headers:o}=this.cloneRequestState();return a.searchParams.set("select",i),s&&o.append("Prefer",`count=${s}`),new P({method:r?"HEAD":"GET",url:a,headers:o,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:r=!0}={}){var s;let{url:n,headers:i}=this.cloneRequestState();if(t&&i.append("Prefer",`count=${t}`),r||i.append("Prefer","missing=default"),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);n.searchParams.set("columns",e.join(","))}}return new P({method:"POST",url:n,headers:i,schema:this.schema,body:e,fetch:null!=(s=this.fetch)?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:s,defaultToNull:n=!0}={}){var i;let{url:a,headers:o}=this.cloneRequestState();if(o.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),void 0!==t&&a.searchParams.set("on_conflict",t),s&&o.append("Prefer",`count=${s}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);a.searchParams.set("columns",e.join(","))}}return new P({method:"POST",url:a,headers:o,schema:this.schema,body:e,fetch:null!=(i=this.fetch)?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var r;let{url:s,headers:n}=this.cloneRequestState();return t&&n.append("Prefer",`count=${t}`),new P({method:"PATCH",url:s,headers:n,schema:this.schema,body:e,fetch:null!=(r=this.fetch)?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;let{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new P({method:"DELETE",url:r,headers:s,schema:this.schema,fetch:null!=(t=this.fetch)?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach(function(t){!function(e,t,r){var s;(s=function(e,t){if("object"!=I(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=I(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==I(s)?s:s+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var N=class e{constructor(e,{headers:t={},schema:r,fetch:s,timeout:n,urlLengthLimit:i=8e3,retry:a}={}){this.url=e,this.headers=new Headers(t),this.schemaName=r,this.urlLengthLimit=i;const o=null!=s?s:globalThis.fetch;void 0!==n&&n>0?this.fetch=(e,t)=>{let r=new AbortController,s=setTimeout(()=>r.abort(),n),i=null==t?void 0:t.signal;if(i){if(i.aborted)return clearTimeout(s),o(e,t);let n=()=>{clearTimeout(s),r.abort()};return i.addEventListener("abort",n,{once:!0}),o(e,x(x({},t),{},{signal:r.signal})).finally(()=>{clearTimeout(s),i.removeEventListener("abort",n)})}return o(e,x(x({},t),{},{signal:r.signal})).finally(()=>clearTimeout(s))}:this.fetch=o,this.retry=a}from(e){if(!e||"string"!=typeof e||""===e.trim())throw Error("Invalid relation name: relation must be a non-empty string.");return new j(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new e(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,t={},{head:r=!1,get:s=!1,count:n}={}){var i;let a,o,l=new URL(`${this.url}/rpc/${e}`),h=e=>null!==e&&"object"==typeof e&&(!Array.isArray(e)||e.some(h)),u=r&&Object.values(t).some(h);u?(a="POST",o=t):r||s?(a=r?"HEAD":"GET",Object.entries(t).filter(([e,t])=>void 0!==t).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(",")}}`:`${t}`]).forEach(([e,t])=>{l.searchParams.append(e,t)})):(a="POST",o=t);let c=new Headers(this.headers);return u?c.set("Prefer",n?`count=${n},return=minimal`:"return=minimal"):n&&c.set("Prefer",`count=${n}`),new P({method:a,url:l,headers:c,schema:this.schemaName,body:o,fetch:null!=(i=this.fetch)?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};let U=class{static detectEnvironment(){var t;if("u">typeof WebSocket)return{type:"native",wsConstructor:WebSocket};let r=globalThis;if("u">typeof globalThis&&void 0!==r.WebSocket)return{type:"native",wsConstructor:r.WebSocket};let s=e.g;if(s&&void 0!==s.WebSocket)return{type:"native",wsConstructor:s.WebSocket};if("u">typeof globalThis&&void 0!==r.WebSocketPair&&void 0===globalThis.WebSocket)return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if("u">typeof globalThis&&r.EdgeRuntime||"u">typeof navigator&&(null==(t=navigator.userAgent)?void 0:t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};let n=globalThis.process;if(n){let e=n.versions;if(e&&e.node){let t=parseInt(e.node.replace(/^v/,"").split(".")[0]);return t>=22?void 0!==globalThis.WebSocket?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${t} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${t} detected without native WebSocket support.`,workaround:'For Node.js < 22, install "ws" package and provide it via the transport option:\nimport ws from "ws"\nnew RealtimeClient(url, { transport: ws })'}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){let e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let t=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(t+=`
|
|
@@ -0,0 +1 @@
|
|
|
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 i},formatWithValidation:function(){return u},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)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",i=e.hash||"",l=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)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${s}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(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 b},useLinkStatus:function(){return x}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),o=e.r(8063),i=a._(e.r(51268)),l=e.r(99997),u=e.r(4411),c=e.r(70782),d=e.r(69600),m=e.r(31508);e.r(91946);let h=e.r(35302),f=e.r(92024),p=e.r(88334),_=e.r(44017);function b(t){var r,n;let s,a,b,[x,w]=(0,i.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,i.useRef)(null),{href:k,as:v,children:j,prefetch:N=null,passHref:S,replace:E,shallow:O,scroll:T,onClick:P,onMouseEnter:C,onTouchStart:D,legacyBehavior:R=!1,onNavigate:L,transitionTypes:A,ref:M,unstable_dynamicOnHover:I,...F}=t;s=j,R&&("string"==typeof s||"number"==typeof s)&&(s=(0,o.jsx)("a",{children:s}));let $=i.default.useContext(u.AppRouterContext),U=!1!==N,K=!1!==N?null===(n=N)||"auto"===n?_.FetchStrategy.PPR:_.FetchStrategy.Full:_.FetchStrategy.PPR,B="string"==typeof(r=v||k)?r:(0,l.formatUrl)(r);if(R){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=i.default.Children.only(s)}let G=R?a&&"object"==typeof a&&a.ref:M,q=i.default.useCallback(e=>(null!==$&&(y.current=(0,f.mountLinkInstance)(e,B,$,K,U,w)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(e)}),[U,B,$,K,w]),W={ref:(0,c.useMergedRef)(q,G),onClick(t){R||"function"!=typeof P||P(t),R&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,s,a,o,l){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,p.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);i.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l)})}}(t,B,y,E,T,L,A)},onMouseEnter(e){R||"function"!=typeof C||C(e),R&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&U&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){R||"function"!=typeof D||D(e),R&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&U&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(B)?W.href=B:R&&!S&&("a"!==a.type||"href"in a.props)||(W.href=(0,m.addBasePath)(B)),b=R?i.default.cloneElement(a,W):(0,o.jsx)("a",{...F,...W,children:s}),(0,o.jsx)(g.Provider,{value:x,children:b})}e.r(20612);let g=(0,i.createContext)(f.IDLE_LINK_STATUS),x=()=>(0,i.useContext)(g);("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,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"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},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)(),[o,i]=(0,r.useState)(null),[l,u]=(0,r.useState)(!1),c=(0,s.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}})=>{i(e?.user.email??null)}).catch(()=>{i(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{i(t?.user.email??null)});return()=>{t.unsubscribe()}},[c]),{is_configured:c,email:o,is_pending:l,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,a.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 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 o(){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 i=e.i(77882);function l(){let{email:e,is_configured:r}=(0,i.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)(o,{})}),(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),m=e.i(46549),h=e.i(22373);let f=new Set(h.topbar_quick_action_ids),p=["today","review","templates","search","reporting","pomodoro"];function _(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return p;let r=t.filter(e=>"string"==typeof e&&f.has(e));return Array.from(new Set(r))}catch{return p}}e.s(["parse_topbar_quick_actions",0,_],73205);var b=e.i(66295),g=e.i(34869),x=e.i(92629);let w=(0,g.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),k=e.i(90299),v=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 E=e.i(35434),O=e.i(17798),T=e.i(10464),P=e.i(61834),C=e.i(81553),D=e.i(25204);let R="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"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},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"}},A=new Set(["manage-tags","pomodoro","templates","sync-settings"]);function M(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,u.useSyncExternalStore)(E.subscribe_theme,N,S),o=(0,u.useSyncExternalStore)(w.subscribe,w.get_snapshot,w.get_server_snapshot),l=(0,u.useSyncExternalStore)(k.tracker_shortcut_map_preference.subscribe,k.tracker_shortcut_map_preference.get_snapshot,k.tracker_shortcut_map_preference.get_server_snapshot),f=(0,u.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),p=(0,b.parse_tracker_shortcut_map)(l),g=new Set(_(f)),x=h.topbar_quick_action_ids.filter(e=>!g.has(e)),M=Array.from(new Set([...Array.from(A),...x])),{email:I,is_configured:F,is_pending:$,sign_out:U}=(0,i.use_supabase_auth_session)(),[K,B]=(0,u.useState)(!1),G=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(!K)return;let e=e=>{null===G.current||G.current.contains(e.target)||B(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[K]);let q=()=>{B(!1)};return(0,D.use_escape_to_cancel)(q,K),(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":K,"aria-haspopup":"menu",onClick:()=>B(e=>!e),children:(0,t.jsx)(c.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:[F&&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,M.map(e=>{let n=L[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:R,role:"menuitem",onClick:q,children:n.label})},e)}),F?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitemcheckbox","aria-checked":"true"===o,onClick:()=>{let e="true"===o?"false":"true";w.write(e),w.notify(),(0,m.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==I&&(0,v.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"===o?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===o?"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:R,role:"menuitem",onClick:()=>{let e;q(),e="dark"===j()?"light":"dark",(0,O.apply_theme)(e),(0,C.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,E.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:R,role:"menuitem",onClick:()=>{let e;q(),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:"(?)"})]})})}),F?(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:R,role:"menuitem",onClick:()=>{q(),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:`${R} text-danger`,role:"menuitem",disabled:$,onClick:()=>{q(),U()},children:$?"Signing out…":"Sign out"})})]}):null]}):null]})}let I=[{id:"today",href:"/today",label:"Today"},{id:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{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 F(){let e=(0,n.usePathname)()??"/",s=(0,u.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),a=(0,u.useMemo)(()=>_(s),[s]);if(0===a.length)return null;let o=I.filter(e=>a.includes(e.id));return 0===o.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:o.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 $=e.i(29539);function U(){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)($.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)(F,{}),(0,t.jsx)(l,{}),(0,t.jsx)(U,{}),(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}])},18774,e=>{"use strict";e.s(["format_display_tag",0,function(e){return e.startsWith("@")?e:`@${e}`}])},31113,e=>{"use strict";e.s(["normalize_stored_tag",0,function(e){let t=e.trim().replace(/^@+/,"");if(0===t.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(t))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${t}`}])},14260,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(18774),s=e.i(52405),a=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:o,known_tags:i,placeholder:l,disabled:u=!1,autoFocus:c=!1,on_change:d}){let m=(0,r.useRef)(null),h=(0,r.useRef)(null),f=(0,r.useRef)(null),[p,_]=(0,r.useState)(0),[b,g]=(0,r.useState)(0),x=function(e,t){let r=e.slice(0,t),n=r.lastIndexOf("@");if(-1===n)return null;let s=r.slice(n+1);return/\s/.test(s)?null:{query:s,start_index:n,end_index:t}}(o,p),w=null===x?[]:function(e,t,r=10){let n=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===n.length||t.startsWith(n)}).slice(0,r)}(i,x.query),y=null!==x&&function(e,t){if(!/^\w+$/.test(e))return!1;let r=e.toLowerCase();return t.some(e=>{try{return(0,a.normalize_stored_tag)(e).slice(1).toLowerCase()===r}catch{return!1}})}(x.query,i),k=null!==x&&w.length>0&&!y&&!u;(0,r.useLayoutEffect)(()=>{null!==f.current&&null!==m.current&&(m.current.setSelectionRange(f.current,f.current),_(f.current),f.current=null)},[o]),(0,r.useEffect)(()=>{g(0)},[o,p,w.length]);let v=()=>{_(m.current?.selectionStart??o.length)},j=()=>{g(0)},N=e=>{let t,r,s;if(null===x)return;let{next_text:a,next_cursor:i}=(t=(0,n.format_display_tag)(e),r=o.slice(0,x.start_index),s=o.slice(x.end_index),{next_text:`${r}${t}${s}`,next_cursor:r.length+t.length});f.current=i,d(a),j()};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("input",{ref:m,id:e,type:"text",role:"combobox",className:(0,s.get_input_class_name)(),value:o,placeholder:l,disabled:u,autoFocus:c,autoComplete:"off","aria-autocomplete":"list","aria-expanded":k,"aria-controls":k?`${e}-tag-suggestions`:void 0,onChange:e=>{d(e.target.value),_(e.target.selectionStart??e.target.value.length)},onClick:v,onKeyUp:v,onKeyDown:e=>{if(k){if("ArrowDown"===e.key){e.preventDefault(),g(e=>(e+1)%w.length);return}if("ArrowUp"===e.key){e.preventDefault(),g(e=>(e-1+w.length)%w.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=w[b];void 0!==t&&N(t);return}"Escape"===e.key&&(e.preventDefault(),j())}},onBlur:()=>{window.setTimeout(j,120)}}),k?(0,t.jsx)("ul",{ref:h,id:`${e}-tag-suggestions`,role:"listbox",className:"absolute left-0 right-0 top-full z-20 mt-1 max-h-48 list-none overflow-y-auto rounded-md border border-panel-border bg-panel p-1.5 shadow-md",children:w.map((e,r)=>(0,t.jsx)("li",{role:"option","aria-selected":r===b,children:(0,t.jsx)("button",{type:"button",className:`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 hover:bg-surface-hover ${r===b?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),N(e)},children:(0,n.format_display_tag)(e)})},e))}):null]})}],14260)},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}])},15526,e=>{"use strict";let t="super-time-tracker-pomodoro-active-entry";e.s(["clear_pomodoro_task_entry_marker",0,function(){try{window.localStorage.removeItem(t)}catch{}},"is_pomodoro_task_entry",0,function(e){let r=(()=>{try{let e=window.localStorage.getItem(t);if(null===e)return null;try{let t=JSON.parse(e);if("string"==typeof t.sheetName&&t.sheetName.length>0&&"number"==typeof t.entryId&&Number.isInteger(t.entryId))return{sheetName:t.sheetName,entryId:t.entryId}}catch{}return null}catch{return null}})();return null!==r&&r.sheetName===e.sheetName&&r.entryId===e.id},"mark_pomodoro_task_entry",0,function(e){try{let r={sheetName:e.sheetName,entryId:e.id};window.localStorage.setItem(t,JSON.stringify(r))}catch{}}])},7668,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(51268),s=e.i(29539),a=e.i(14260),o=e.i(75404),i=e.i(52663),l=e.i(85323),u=e.i(15526),c=e.i(72550),d=e.i(26740);e.s(["PomodoroView",0,function({known_tags:e}){let[m,h]=(0,n.useState)(d.POMODORO_DEFAULT_SETTINGS),[f,p]=(0,n.useState)(d.POMODORO_DEFAULT_STATE),[_,b]=(0,n.useState)(()=>Date.now()),[g,x]=(0,n.useState)(!1),[w,y]=(0,n.useState)(null),[k,v]=(0,n.useState)(!1),j=(0,n.useRef)(null),N=(0,n.useRef)(d.POMODORO_DEFAULT_SETTINGS),S=(0,n.useRef)(d.POMODORO_DEFAULT_STATE),E=(0,n.useCallback)((e,t)=>{(0,l.notify_desktop)({title:e,body:t,tag:"pomodoro-phase-event"})},[]);(0,n.useEffect)(()=>{let e=window.setTimeout(()=>{try{let e=window.localStorage.getItem(d.POMODORO_STORAGE_KEY);if(null!==e){let t=JSON.parse(e),r=t.settings,n=t.state;if(void 0!==r&&h({work_minutes:"number"==typeof r.work_minutes&&Number.isFinite(r.work_minutes)&&r.work_minutes>0?Math.round(r.work_minutes):d.POMODORO_DEFAULT_SETTINGS.work_minutes,short_break_minutes:"number"==typeof r.short_break_minutes&&Number.isFinite(r.short_break_minutes)&&r.short_break_minutes>0?Math.round(r.short_break_minutes):d.POMODORO_DEFAULT_SETTINGS.short_break_minutes,long_break_minutes:"number"==typeof r.long_break_minutes&&Number.isFinite(r.long_break_minutes)&&r.long_break_minutes>0?Math.round(r.long_break_minutes):d.POMODORO_DEFAULT_SETTINGS.long_break_minutes,rounds_before_long_break:"number"==typeof r.rounds_before_long_break&&Number.isFinite(r.rounds_before_long_break)&&r.rounds_before_long_break>0?Math.round(r.rounds_before_long_break):d.POMODORO_DEFAULT_SETTINGS.rounds_before_long_break,auto_start_next_phase:"boolean"==typeof r.auto_start_next_phase?r.auto_start_next_phase:d.POMODORO_DEFAULT_SETTINGS.auto_start_next_phase,check_in_on_work_start:"boolean"==typeof r.check_in_on_work_start?r.check_in_on_work_start:d.POMODORO_DEFAULT_SETTINGS.check_in_on_work_start,work_entry_description:"string"==typeof r.work_entry_description?r.work_entry_description:d.POMODORO_DEFAULT_SETTINGS.work_entry_description}),void 0!==n){let e=n.phase,t=n.status,r={phase:"short_break"===e||"long_break"===e||"work"===e?e:d.POMODORO_DEFAULT_STATE.phase,status:"idle"===t||"paused"===t||"running"===t?t:d.POMODORO_DEFAULT_STATE.status,completed_work_sessions:"number"==typeof n.completed_work_sessions&&Number.isFinite(n.completed_work_sessions)&&n.completed_work_sessions>=0?Math.round(n.completed_work_sessions):d.POMODORO_DEFAULT_STATE.completed_work_sessions,deadline_at_ms:"number"==typeof n.deadline_at_ms&&Number.isFinite(n.deadline_at_ms)?n.deadline_at_ms:null,paused_remaining_ms:"number"==typeof n.paused_remaining_ms&&Number.isFinite(n.paused_remaining_ms)&&n.paused_remaining_ms>=0?Math.round(n.paused_remaining_ms):null};S.current=r,p(r)}}}catch{}x(!0)},0);return()=>{window.clearTimeout(e)}},[]),(0,n.useEffect)(()=>{N.current=m},[m]),(0,n.useEffect)(()=>{S.current=f},[f]);let O=(0,n.useCallback)((e,t)=>{try{window.localStorage.setItem(d.POMODORO_STORAGE_KEY,JSON.stringify({settings:e,state:t}))}catch{}},[]),T=(0,n.useCallback)(e=>{p(t=>{let r="function"==typeof e?e(t):e;return S.current=r,O(N.current,r),r})},[O]);(0,n.useEffect)(()=>{g&&O(m,f)},[g,O,m,f]),(0,n.useEffect)(()=>{let e=()=>{O(N.current,S.current)};return window.addEventListener("pagehide",e),window.addEventListener("beforeunload",e),()=>{window.removeEventListener("pagehide",e),window.removeEventListener("beforeunload",e)}},[O]),(0,n.useEffect)(()=>{if("running"!==f.status)return;let e=window.setInterval(()=>{b(Date.now())},1e3);return()=>{window.clearInterval(e)}},[f.status,f.deadline_at_ms]);let P=(0,n.useCallback)(e=>{switch(e){case"work":return 6e4*m.work_minutes;case"short_break":return 6e4*m.short_break_minutes;case"long_break":return 6e4*m.long_break_minutes}},[m.long_break_minutes,m.short_break_minutes,m.work_minutes]),C=(0,n.useCallback)(async()=>{let e=await fetch("/api/state",{method:"GET",cache:"no-store"});if(!e.ok)throw Error((await e.json().catch(()=>({}))).error??"Failed to read tracker state");let t=await e.json().catch(()=>null);return t?.runningEntry!==null&&t?.runningEntry!==void 0},[]),D=(0,n.useCallback)(async()=>{try{v(await C())}catch{}},[C]),R=async()=>{let e=m.work_entry_description.trim();if(0===e.length)return;if(await C())return void v(!0);let t=await fetch("/api/in",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({description:e,sheetName:function(){try{let e=window.localStorage.getItem(c.ACTIVE_SHEET_STORAGE_KEY)?.trim()??"";return e.length>0?e:null}catch{return null}}()??void 0})});if(t.ok){let e=await t.json().catch(()=>null),r=e?.activeEntry;null!=r&&(0,u.mark_pomodoro_task_entry)({id:r.id,sheetName:r.sheetName}),v(!0);return}throw Error((await t.json().catch(()=>({}))).error??"Failed to start tracker entry for Pomodoro")},L=async()=>{let e=await fetch("/api/out",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});if(e.ok){(0,u.clear_pomodoro_task_entry_marker)(),v(!1);return}let t=(await e.json().catch(()=>({}))).error??"Failed to check out active tracker entry";if(!t.includes("No active entry"))throw Error(t)},A=async()=>{y(null);try{let e=await fetch("/api/state",{method:"GET",cache:"no-store"});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(t.error??"Failed to read tracker state")}let t=await e.json().catch(()=>null),r=t?.runningEntry;if(r?.start===void 0)throw Error("No active task found to start from");let n=Date.parse(r.start);if(!Number.isFinite(n))throw Error("Active task start time is invalid");let s=Math.max(0,Date.now()-n),a=P(f.phase),o=Math.max(0,a-s);T(e=>({...e,status:"running",deadline_at_ms:Date.now()+o,paused_remaining_ms:null}))}catch(e){y(e instanceof Error?e.message:String(e))}},M=(0,n.useCallback)(()=>{let e="work"===f.phase,t=f.completed_work_sessions+1;if(T(e=>{let t="work"===e.phase?e.completed_work_sessions+1:e.completed_work_sessions,r="work"===e.phase?t%m.rounds_before_long_break==0?"long_break":"short_break":"work",n=P(r);return m.auto_start_next_phase?{phase:r,status:"running",completed_work_sessions:t,deadline_at_ms:Date.now()+n,paused_remaining_ms:null}:{phase:r,status:"idle",completed_work_sessions:t,deadline_at_ms:null,paused_remaining_ms:null}}),e&&E("Pomodoro focus session complete",`Completed focus session ${t}.`),m.auto_start_next_phase){let e="work"===f.phase?f.completed_work_sessions%m.rounds_before_long_break==m.rounds_before_long_break-1?"long break":"short break":"focus";E("work"===f.phase?"Pomodoro break started":"Pomodoro focus started",`Auto-started ${e} timer.`)}},[P,E,T,f.completed_work_sessions,f.phase,m.auto_start_next_phase,m.rounds_before_long_break]);(0,n.useEffect)(()=>{let e=window.setTimeout(()=>{D()},0);return()=>{window.clearTimeout(e)}},[D]),(0,n.useEffect)(()=>{let e=window.setInterval(()=>{D()},5e3);return()=>{window.clearInterval(e)}},[D]),(0,n.useEffect)(()=>{if("running"!==f.status||null===f.deadline_at_ms||_<f.deadline_at_ms)return;let e=window.setTimeout(()=>{M()},0);return()=>{window.clearTimeout(e)}},[M,_,f.deadline_at_ms,f.status]);let I=P(f.phase),F="running"===f.status&&null!==f.deadline_at_ms?Math.max(0,f.deadline_at_ms-_):"paused"===f.status?f.paused_remaining_ms??I:I,$=Math.min(100,Math.max(0,(I-F)/I*100)),U=`${Math.floor(F/6e4).toString().padStart(2,"0")}:${Math.floor(F%6e4/1e3).toString().padStart(2,"0")}`,K={work:"Focus",short_break:"Short break",long_break:"Long break"}[f.phase],B="work"===f.phase?f.completed_work_sessions%m.rounds_before_long_break==m.rounds_before_long_break-1?"long_break":"short_break":"work",G="work"===f.phase?`${f.completed_work_sessions+1} / ${m.rounds_before_long_break} focus rounds`:"short_break"===f.phase?"Recover before the next focus block.":"Take the long break before the next round.",q="running"===f.status?"Pause":"paused"===f.status?"Resume":"Start",W=`${U} \xb7 ${K} \xb7 Pomodoro`;return(0,n.useEffect)(()=>{if("u">typeof document)return null===j.current&&(j.current=document.title),()=>{null!==j.current&&(document.title=j.current)}},[]),(0,n.useEffect)(()=>{"u">typeof document&&(document.title=W)},[W]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.TrackerTopbar,{breadcrumb:{current:"Pomodoro"}}),(0,t.jsxs)("main",{className:"mx-auto flex w-full max-w-2xl flex-col gap-6 px-5 pb-12 pt-6",children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.5rem] font-[650] tracking-tight",children:"Pomodoro"}),(0,t.jsx)("p",{className:"m-0 mt-2 text-[0.9rem] leading-relaxed text-muted",children:"Keep a simple focus cycle running alongside your time tracker."})]}),(0,t.jsx)(r.default,{href:"/settings/pomodoro",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","aria-label":"Pomodoro settings",title:"Pomodoro settings",children:(0,t.jsx)(s.SettingsIcon,{})})]}),(0,t.jsx)("section",{className:"rounded-md border border-panel-border bg-panel p-5 shadow-sm",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Current phase"}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[1.3rem] font-semibold",children:K}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[0.88rem] leading-relaxed text-muted",children:G})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Next phase"}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[0.95rem] font-semibold text-accent",children:{work:"Focus",short_break:"Short break",long_break:"Long break"}[B]}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[0.84rem] text-muted",children:m.auto_start_next_phase?"Auto-start enabled":"Waiting for you"})]})]}),(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-background px-4 py-5 text-center",children:[(0,t.jsx)("p",{className:"m-0 font-mono text-[3rem] font-semibold tracking-tight text-accent","aria-live":"polite",children:U}),(0,t.jsx)("div",{className:"mt-4 h-2 overflow-hidden rounded-full bg-surface-strong",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-accent transition-[width] duration-200",style:{width:`${$}%`}})}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-center gap-2 text-[0.82rem] text-muted",children:[(0,t.jsxs)("span",{children:[f.completed_work_sessions," focus sessions done"]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{children:"running"===f.status?"Running":"paused"===f.status?"Paused":"Idle"})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"button",className:(0,i.get_button_class_name)("primary"),onClick:()=>{let e,t,r;"running"===f.status?(y(null),T(e=>"running"!==e.status||null===e.deadline_at_ms?e:{...e,status:"paused",deadline_at_ms:null,paused_remaining_ms:Math.max(0,e.deadline_at_ms-Date.now())}),L().catch(e=>{y(e instanceof Error?e.message:String(e))})):(y(null),T(e=>{let t="paused"===e.status&&null!==e.paused_remaining_ms?e.paused_remaining_ms:P(e.phase);return{...e,status:"running",deadline_at_ms:Date.now()+t,paused_remaining_ms:null}}),e="paused"===f.status,t="short_break"===f.phase||"long_break"===f.phase,r=e||"running"!==f.status&&"work"===f.phase&&m.check_in_on_work_start,e||"running"===f.status||E(t?"Pomodoro break started":"Pomodoro focus started",t?"Break timer is running.":"Focus timer is running."),r&&R().catch(e=>{y(e instanceof Error?e.message:String(e))}))},children:q}),(0,t.jsx)("button",{type:"button",className:(0,i.get_button_class_name)("ghost"),onClick:M,children:"Skip phase"}),(0,t.jsx)("button",{type:"button",className:(0,i.get_button_class_name)("ghost"),onClick:()=>{T(d.POMODORO_DEFAULT_STATE),b(Date.now())},children:"Reset"}),(0,t.jsx)("button",{type:"button",className:(0,i.get_button_class_name)("ghost"),disabled:"running"===f.status,onClick:()=>{A()},children:"Start from active task start time"})]}),null!==w?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:w}):null,m.check_in_on_work_start&&!k?(0,t.jsx)("div",{className:"grid gap-2 rounded-md border border-panel-border bg-background p-3 md:grid-cols-2",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5 md:col-span-2",children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold text-muted",children:"New entry description (supports @tags)"}),(0,t.jsx)(a.TagAutocompleteInput,{id:"pomodoro-work-entry-description",value:m.work_entry_description,known_tags:e,placeholder:"Pomodoro focus @pomodoro @focus",on_change:e=>{h(t=>({...t,work_entry_description:e}))}})]})}):null]})})]})]})}],7668)}]);
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},98548,(a,b,c)=>{"use strict";b.exports=a.r(11391).vendored.contexts.HooksClientContext},19973,(a,b,c)=>{"use strict";b.exports=a.r(11391).vendored.contexts.ServerInsertedHtml},11391,(a,b,c)=>{"use strict";b.exports=a.r(18622)},61401,(a,b,c)=>{"use strict";b.exports=a.r(11391).vendored["react-ssr"].ReactJsxRuntime},59021,(a,b,c)=>{"use strict";b.exports=a.r(11391).vendored["react-ssr"].React},82583,(a,b,c)=>{"use strict";b.exports=a.r(11391).vendored.contexts.AppRouterContext},35634,(a,b,c)=>{"use strict";b.exports=a.r(11391).vendored["react-ssr"].ReactServerDOMTurbopackClient},23678,(a,b,c)=>{"use strict";b.exports=a.r(11391).vendored["react-ssr"].ReactDOM},3988,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},34344,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},72220,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},96588,(a,b,c)=>{"use strict";function d(){let a,b,c=new Promise((c,d)=>{a=c,b=d});return{resolve:a,reject:b,promise:c}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createPromiseWithResolvers",{enumerable:!0,get:function(){return d}})},75269,(a,b,c)=>{"use strict";let d;Object.defineProperty(c,"__esModule",{value:!0});var e={getAssetToken:function(){return i},getAssetTokenQuery:function(){return j},getDeploymentId:function(){return g},getDeploymentIdQuery:function(){return h}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});function g(){return d}function h(a=!1){return d?`${a?"&":"?"}dpl=${d}`:""}function i(){return!1}function j(a=!1){return""}d=void 0},63577,a=>{"use strict";a.s(["is_supabase_configured",0,function(){return("https://ctruizaqyeyidujmtxhc.supabase.co".trim()??"").length>0&&("sb_publishable_gTYHeWoWIPPW3SIC4cYaXw_ux7UL_Jb".trim()??"").length>0}])},72958,51652,a=>{"use strict";a.s(["is_cloud_sync_enabled",0,function(){return!0}],51652),a.i(63577),a.s(["schedule_ui_preferences_cloud_sync",0,function(){}],72958)},52345,70827,a=>{"use strict";var b=a.i(72958);a.s(["create_ui_preference_store",0,function(a){let{default_value:c,is_valid:d,storage_key:e}=a,f=new Set,g=()=>c;return{storage_key:e,default_value:c,is_valid:d,read:g,write:a=>{try{window.localStorage.setItem(e,a),(0,b.schedule_ui_preferences_cloud_sync)()}catch{}},subscribe:a=>(f.add(a),()=>{f.delete(a)}),notify:()=>{f.forEach(a=>{a()})},get_snapshot:g,get_server_snapshot:()=>c}}],52345),a.s(["ACCENT_COLOR_DEFAULT",0,"teal","ACCENT_COLOR_STORAGE_KEY",0,"super-time-tracker-accent-color","ACCENT_COLOR_VALUES",0,["teal","blue","violet","rose","amber","emerald"],"CHECK_IN_FORM_COLLAPSED_DEFAULT",0,"false","CHECK_IN_FORM_COLLAPSED_STORAGE_KEY",0,"super-time-tracker-check-in-form-collapsed","CLAUDE_API_KEY_DEFAULT",0,"","CLAUDE_API_KEY_STORAGE_KEY",0,"super-time-tracker-claude-api-key","CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_DEFAULT",0,"false","CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY",0,"super-time-tracker-clear-tag-filters-on-sheet-change","CLOUD_SYNC_ENABLED_DEFAULT",0,"true","CLOUD_SYNC_ENABLED_STORAGE_KEY",0,"super-time-tracker-cloud-sync-enabled","COLOR_PALETTE_DEFAULT",0,"default","COLOR_PALETTE_STORAGE_KEY",0,"super-time-tracker-color-palette","COLOR_PALETTE_VALUES",0,["default","midnight","warm","ocean","forest","contrast","sunset","lavender","rose","slate","nord","dracula"],"CONFIRM_BEFORE_CHECKOUT_DEFAULT",0,"false","CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY",0,"super-time-tracker-confirm-before-checkout","CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT",0,"true","CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY",0,"super-time-tracker-confirm-destructive-actions","DAILY_FOCUS_TARGET_MINUTES_DEFAULT",0,"240","DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY",0,"super-time-tracker-daily-focus-target-minutes","DEBUG_LOGGING_DEFAULT",0,"false","DEBUG_LOGGING_STORAGE_KEY",0,"super-time-tracker-debug-logging","DEFAULT_REPORTING_RANGE_DEFAULT",0,"none","DEFAULT_REPORTING_RANGE_STORAGE_KEY",0,"super-time-tracker-default-reporting-range","DEFAULT_REPORTING_SORT_DEFAULT",0,"duration","DEFAULT_REPORTING_SORT_STORAGE_KEY",0,"super-time-tracker-default-reporting-sort","DESKTOP_NOTIFICATIONS_DEFAULT",0,"false","DESKTOP_NOTIFICATIONS_STORAGE_KEY",0,"super-time-tracker-desktop-notifications","DURATION_FORMAT_DEFAULT",0,"humanized","DURATION_FORMAT_STORAGE_KEY",0,"super-time-tracker-duration-format","ENTRY_LIST_SORT_DEFAULT",0,"newest","ENTRY_LIST_SORT_STORAGE_KEY",0,"super-time-tracker-entry-list-sort","ENTRY_SUGGESTION_PROVIDER_DEFAULT",0,"none","ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY",0,"super-time-tracker-entry-suggestion-provider","FOCUS_GOALS_PER_SHEET_DEFAULT",0,"{}","FOCUS_GOALS_PER_SHEET_STORAGE_KEY",0,"super-time-tracker-focus-goals-per-sheet","FOCUS_GOALS_PER_TAG_DEFAULT",0,"{}","FOCUS_GOALS_PER_TAG_STORAGE_KEY",0,"super-time-tracker-focus-goals-per-tag","FOCUS_GOAL_SCOPE_DEFAULT",0,"global","FOCUS_GOAL_SCOPE_STORAGE_KEY",0,"super-time-tracker-focus-goal-scope","FOCUS_GOAL_SHEET_NAME_DEFAULT",0,"","FOCUS_GOAL_SHEET_NAME_STORAGE_KEY",0,"super-time-tracker-focus-goal-sheet-name","FOCUS_GOAL_TAG_NAME_DEFAULT",0,"","FOCUS_GOAL_TAG_NAME_STORAGE_KEY",0,"super-time-tracker-focus-goal-tag-name","FOCUS_NUDGES_ENABLED_DEFAULT",0,"true","FOCUS_NUDGES_ENABLED_STORAGE_KEY",0,"super-time-tracker-focus-nudges-enabled","GOOGLE_AI_API_KEY_DEFAULT",0,"","GOOGLE_AI_API_KEY_STORAGE_KEY",0,"super-time-tracker-google-ai-api-key","GREEDY_CLOUD_SYNC_DEFAULT",0,"true","GREEDY_CLOUD_SYNC_STORAGE_KEY",0,"super-time-tracker-greedy-cloud-sync","NO_LOG_REMINDER_MINUTES_DEFAULT",0,"45","NO_LOG_REMINDER_MINUTES_STORAGE_KEY",0,"super-time-tracker-no-log-reminder-minutes","OPENAI_API_KEY_DEFAULT",0,"","OPENAI_API_KEY_STORAGE_KEY",0,"super-time-tracker-openai-api-key","OVERWORK_ALERT_HOURS_DEFAULT",0,"8","OVERWORK_ALERT_HOURS_STORAGE_KEY",0,"super-time-tracker-overwork-alert-hours","TAG_FILTER_MODE_DEFAULT",0,"all","TAG_FILTER_MODE_STORAGE_KEY",0,"super-time-tracker-tag-filter-mode","THEME_MODE_DEFAULT",0,"system","THEME_MODE_STORAGE_KEY",0,"super-time-tracker-theme-mode","TIMER_IN_TITLE_DEFAULT",0,"true","TIMER_IN_TITLE_STORAGE_KEY",0,"super-time-tracker-timer-in-title","TIMER_SHOW_SECONDS_DEFAULT",0,"false","TIMER_SHOW_SECONDS_STORAGE_KEY",0,"super-time-tracker-timer-show-seconds","TIME_FORMAT_DEFAULT",0,"12h","TIME_FORMAT_STORAGE_KEY",0,"super-time-tracker-time-format","TOPBAR_QUICK_ACTIONS_DEFAULT",0,'["today","search","reporting","pomodoro"]',"TOPBAR_QUICK_ACTIONS_STORAGE_KEY",0,"super-time-tracker-topbar-quick-actions","TRACKER_SHORTCUT_MAP_DEFAULT",0,'{"help":"?","check-in":"c","check-out":"o","edit-entry":"e","add-note":"n","pomodoro":"p","previous-sheet":"[","next-sheet":"]"}',"TRACKER_SHORTCUT_MAP_STORAGE_KEY",0,"super-time-tracker-shortcut-map","WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT",0,"1200","WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY",0,"super-time-tracker-weekly-focus-target-minutes","WEEK_STARTS_ON_DEFAULT",0,"monday","WEEK_STARTS_ON_STORAGE_KEY",0,"super-time-tracker-week-starts-on","WORK_HOURS_END_DEFAULT",0,"17:00","WORK_HOURS_END_STORAGE_KEY",0,"super-time-tracker-work-hours-end","WORK_HOURS_START_DEFAULT",0,"09:00","WORK_HOURS_START_STORAGE_KEY",0,"super-time-tracker-work-hours-start"],70827)},24047,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.DURATION_FORMAT_STORAGE_KEY,default_value:c.DURATION_FORMAT_DEFAULT,is_valid:a=>"humanized"===a||"clock"===a||"decimal"===a});a.s(["duration_format_preference",0,d])},46299,a=>{"use strict";a.s(["is_modal_dialog_open",0,function(){return null!==document.querySelector('[role="dialog"][aria-modal="true"]')}])},32297,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY,default_value:c.CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["confirm_destructive_actions_preference",0,d])},79918,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.ENTRY_LIST_SORT_STORAGE_KEY,default_value:c.ENTRY_LIST_SORT_DEFAULT,is_valid:a=>"newest"===a||"oldest"===a||"duration"===a||"description"===a});a.s(["entry_list_sort_preference",0,d])},50825,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.TIME_FORMAT_STORAGE_KEY,default_value:c.TIME_FORMAT_DEFAULT,is_valid:a=>"12h"===a||"24h"===a});a.s(["time_format_preference",0,d])},7048,a=>{"use strict";let b=new Set,c="Settings saved";a.s(["SETTINGS_SAVED_DEFAULT_MESSAGE",0,c,"notify_settings_saved",0,function(a=c){},"subscribe_settings_saved",0,function(a){return b.add(a),()=>{b.delete(a)}}])},89969,a=>{"use strict";a.s(["get_button_class_name",0,function(a="ghost",b="default"){return`cursor-pointer appearance-none rounded-[0.65rem] border border-transparent font-inherit font-semibold disabled:cursor-not-allowed disabled:opacity-55 ${({default:"px-3.5 py-2.5",small:"px-2.5 py-1.5 text-xs"})[b]} ${({primary:"border-accent-border bg-[var(--accent)] text-[var(--accent-text-on)]",ghost:"border-panel-border bg-ghost-bg text-inherit",danger:"border-danger-border bg-danger-soft text-danger","danger-solid":"border-danger-border bg-[var(--danger-solid)] text-[var(--danger-text-on)]"})[a]}`}])},87281,a=>{"use strict";var b=a.i(49170);a.s(["is_greedy_cloud_sync_enabled",0,function(){return"true"===b.greedy_cloud_sync_preference.read()}])},13964,75215,a=>{"use strict";let b=(0,a.i(59021).createContext)(null);a.s(["ConfirmDialogContext",0,b],13964);let c=null;a.s(["get_registered_confirm_dialog",0,function(){return c},"register_confirm_dialog",0,function(a){c=a}],75215)},72327,40395,76121,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_NUDGES_ENABLED_STORAGE_KEY,default_value:c.FOCUS_NUDGES_ENABLED_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["focus_nudges_enabled_preference",0,d],72327);let e=(0,b.create_ui_preference_store)({storage_key:c.NO_LOG_REMINDER_MINUTES_STORAGE_KEY,default_value:c.NO_LOG_REMINDER_MINUTES_DEFAULT,is_valid:a=>{if(!/^\d+$/.test(a))return!1;let b=Number.parseInt(a,10);return b>=5&&b<=240}});a.s(["no_log_reminder_minutes_preference",0,e],40395);let f=(0,b.create_ui_preference_store)({storage_key:c.OVERWORK_ALERT_HOURS_STORAGE_KEY,default_value:c.OVERWORK_ALERT_HOURS_DEFAULT,is_valid:a=>{if(!/^\d+$/.test(a))return!1;let b=Number.parseInt(a,10);return b>=1&&b<=16}});a.s(["overwork_alert_hours_preference",0,f],76121)},22496,43329,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=/^([01]\d|2[0-3]):[0-5]\d$/,e=(0,b.create_ui_preference_store)({storage_key:c.WORK_HOURS_END_STORAGE_KEY,default_value:c.WORK_HOURS_END_DEFAULT,is_valid:a=>d.test(a)});a.s(["work_hours_end_preference",0,e],22496);let f=/^([01]\d|2[0-3]):[0-5]\d$/,g=(0,b.create_ui_preference_store)({storage_key:c.WORK_HOURS_START_STORAGE_KEY,default_value:c.WORK_HOURS_START_DEFAULT,is_valid:a=>f.test(a)});a.s(["work_hours_start_preference",0,g],43329)},97917,a=>{"use strict";let b=new Set;a.s(["notify_in_app",0,function(a){},"subscribe_in_app_notifications",0,function(a){return b.add(a),()=>{b.delete(a)}}])},80185,a=>{"use strict";a.s(["should_ignore_keyboard_shortcut",0,function(a){let b=a.target;if(!(b instanceof HTMLElement))return!1;if(b.isContentEditable)return!0;let c=b.tagName;return"INPUT"===c||"TEXTAREA"===c||"SELECT"===c}])},63652,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},41427,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"BailoutToCSR",{enumerable:!0,get:function(){return e}});let d=a.r(26389);function e({reason:a,children:b}){throw Object.defineProperty(new d.BailoutToCSRError(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},73260,(a,b,c)=>{"use strict";function d(a){return a.split("/").map(a=>encodeURIComponent(a)).join("/")}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"encodeURIPath",{enumerable:!0,get:function(){return d}})},54721,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"PreloadChunks",{enumerable:!0,get:function(){return i}});let d=a.r(61401),e=a.r(23678),f=a.r(56704),g=a.r(73260),h=a.r(75269);function i({moduleIds:a}){let b=f.workAsyncStorage.getStore();if(void 0===b)return null;let c=[];if(b.reactLoadableManifest&&a){let d=b.reactLoadableManifest;for(let b of a){if(!d[b])continue;let a=d[b].files;c.push(...a)}}if(0===c.length)return null;let j=(0,h.getAssetTokenQuery)();return(0,d.jsx)(d.Fragment,{children:c.map(a=>{let c=`${b.assetPrefix}/_next/${(0,g.encodeURIPath)(a)}${j}`;return a.endsWith(".css")?(0,d.jsx)("link",{precedence:"dynamic",href:c,rel:"stylesheet",as:"style",nonce:b.nonce},a):((0,e.preload)(c,{as:"script",fetchPriority:"low",nonce:b.nonce}),null)})})}},69549,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return j}});let d=a.r(61401),e=a.r(59021),f=a.r(41427),g=a.r(54721);function h(a){return{default:a&&"default"in a?a.default:a}}let i={loader:()=>Promise.resolve(h(()=>null)),loading:null,ssr:!0},j=function(a){let b={...i,...a},c=(0,e.lazy)(()=>b.loader().then(h)),j=b.loading;function k(a){let h=j?(0,d.jsx)(j,{isLoading:!0,pastDelay:!0,error:null}):null,i=!b.ssr||!!b.loading,k=i?e.Suspense:e.Fragment,l=b.ssr?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.PreloadChunks,{moduleIds:b.modules}),(0,d.jsx)(c,{...a})]}):(0,d.jsx)(f.BailoutToCSR,{reason:"next/dynamic",children:(0,d.jsx)(c,{...a})});return(0,d.jsx)(k,{...i?{fallback:h}:{},children:l})}return k.displayName="LoadableComponent",k}},81277,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return e}});let d=a.r(63652)._(a.r(69549));function e(a,b){let c={};"function"==typeof a&&(c.loader=a);let e={...c,...b};return(0,d.default)({...e,modules:e.loadableGenerated?.modules})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},7386,85928,89184,a=>{"use strict";var b=a.i(61401),c=a.i(59021);function d({label:a,description:c,compact:e}){return(0,b.jsxs)("div",{className:"contents",children:[(0,b.jsx)("dt",{className:"m-0",children:(0,b.jsx)("kbd",{className:`inline-block min-w-7 rounded border border-panel-border bg-surface text-center font-mono font-semibold text-foreground ${e?"px-1 py-0.5 text-[0.7rem]":"px-1.5 py-0.5 text-[0.78rem]"}`,children:a})}),(0,b.jsx)("dd",{className:`m-0 self-center leading-snug text-muted ${e?"text-[0.8rem]":"text-[0.9rem]"}`,children:c})]})}function e({sections:a,compact:c=!1}){return(0,b.jsx)("div",{className:`flex flex-col ${c?"gap-2.5":"gap-4"}`,children:a.map(a=>(0,b.jsxs)("section",{children:[(0,b.jsx)("h3",{className:`m-0 font-semibold uppercase tracking-[0.04em] text-muted ${c?"text-[0.65rem]":"text-[0.72rem]"}`,children:a.title}),(0,b.jsx)("dl",{className:`m-0 grid grid-cols-[auto_minmax(0,1fr)] ${c?"mt-1.5 gap-x-3 gap-y-1.5":"mt-2 gap-x-4 gap-y-2"}`,children:a.entries.map(e=>(0,b.jsx)(d,{label:e.label,description:e.description,compact:c},`${a.title}-${e.label}-${e.description}`))})]},a.title))})}var f=a.i(89969);a.s(["KeyboardShortcutsDialog",0,function({sections:a,on_close:d}){let g=(0,c.useId)(),h=(0,c.useRef)(null);return(0,c.useEffect)(()=>{h.current?.focus();let a=a=>{"Escape"===a.key&&d()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[d]),(0,b.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,b.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:d}),(0,b.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":g,className:"relative z-1 w-full max-w-lg rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:g,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:"Keyboard shortcuts"}),(0,b.jsx)("div",{className:"mt-4 max-h-[min(28rem,70vh)] overflow-y-auto pr-1",children:(0,b.jsx)(e,{sections:a})}),(0,b.jsx)("div",{className:"mt-5 flex justify-end",children:(0,b.jsx)("button",{ref:h,type:"button",className:(0,f.get_button_class_name)("primary"),onClick:d,children:"Close"})})]})]})}],7386);var g=a.i(75049);a.s(["get_tracker_keyboard_shortcut_sections",0,function(a=g.tracker_shortcut_defaults){return[...function(a="?"){return[{title:"General",entries:[{label:"Ctrl+P",description:"Open command palette"},{label:a,description:"Show keyboard shortcuts"}]}]}("?"===a.help?"?":a.help.toUpperCase()),{title:"Tracker",entries:[{label:a["check-in"].toUpperCase(),description:"Check in (focus description)"},{label:a["check-out"].toUpperCase(),description:"Check out"},{label:a["edit-entry"].toUpperCase(),description:"Edit active entry description"},{label:a["add-note"].toUpperCase(),description:"Add note to active entry"},{label:a.pomodoro.toUpperCase(),description:"Open Pomodoro"},{label:a["previous-sheet"],description:"Previous sheet"},{label:a["next-sheet"],description:"Next sheet"},{label:a["zen-mode"].toUpperCase(),description:"Toggle Zen Mode focus engine"}]}]}],85928);var h=a.i(46299),i=a.i(80185);a.s(["use_document_keyboard_shortcuts",0,function(a){let b=(0,c.useRef)(a);b.current=a,(0,c.useEffect)(()=>{let a=a=>{if(!(0,i.should_ignore_keyboard_shortcut)(a)&&!(0,h.is_modal_dialog_open)()){for(let c of b.current)if(c.is_available?.()!==!1&&function(a,b){let c=b.modifiers??[],d=c.includes("alt"),e=c.includes("ctrl"),f=c.includes("meta"),g=c.includes("shift");return a.altKey===d&&a.ctrlKey===e&&a.metaKey===f&&a.shiftKey===g&&(1===a.key.length?a.key.toLowerCase():a.key)===(1===b.key.length?b.key.toLowerCase():b.key)}(a,c)){a.preventDefault(),c.action();return}}};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[])}],89184)},53030,a=>{"use strict";var b=a.i(61401),c=a.i(59021),d=a.i(89969);function e({options:a,on_confirm:f,on_cancel:g}){let h=(0,c.useId)(),i=(0,c.useRef)(null),j=(0,c.useRef)(null),{cancelLabel:k="Cancel",confirmLabel:l="Confirm",message:m,title:n,variant:o="default"}=a;(0,c.useEffect)(()=>{let a=i.current;if(null!==a&&!a.open)return a.showModal(),()=>{a.open&&a.close()}},[]),(0,c.useEffect)(()=>{j.current?.focus()},[]);let p=()=>{i.current?.close(),g()};return(0,b.jsxs)("dialog",{ref:i,"aria-labelledby":h,className:"fixed inset-0 z-100 m-0 flex max-h-none w-full max-w-none items-center justify-center border-0 bg-transparent p-5 backdrop:bg-overlay open:flex",onCancel:a=>{a.preventDefault(),p()},children:[(0,b.jsx)("button",{type:"button",tabIndex:-1,"aria-label":"Dismiss dialog",className:"absolute inset-0 z-0 cursor-default border-0 bg-transparent p-0",onClick:p}),(0,b.jsxs)("div",{className:"relative z-1 w-full max-w-md rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:h,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:n}),(0,b.jsx)("p",{className:"m-0 mt-2 text-[0.9rem] leading-relaxed text-muted",children:m}),(0,b.jsxs)("div",{className:"mt-5 flex flex-wrap justify-end gap-2",children:[(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost"),onClick:p,children:k}),(0,b.jsx)("button",{ref:j,type:"button",className:(0,d.get_button_class_name)("danger"===o?"danger":"primary"),onClick:f,children:l})]})]})]})}var f=a.i(13964),g=a.i(75215);a.s(["ConfirmDialogProvider",0,function({children:a}){let[d,h]=(0,c.useState)(null),i=(0,c.useCallback)(a=>new Promise(b=>{h({options:a,resolve:b})}),[]);(0,g.register_confirm_dialog)(i),(0,c.useEffect)(()=>((0,g.register_confirm_dialog)(i),()=>{(0,g.register_confirm_dialog)(null)}),[i]);let j=(0,c.useMemo)(()=>({confirm:i}),[i]),k=a=>{d?.resolve(a),h(null)};return(0,b.jsxs)(f.ConfirmDialogContext.Provider,{value:j,children:[a,null===d?null:(0,b.jsx)(e,{options:d.options,on_confirm:()=>k(!0),on_cancel:()=>k(!1)})]})}],53030)},13597,a=>{"use strict";let b={runningEntry:null},c=new Set;a.s(["get_tracker_running_entry_snapshot",0,function(){return b},"publish_tracker_running_entry",0,function(a){b={runningEntry:a},c.forEach(a=>{a()})},"subscribe_tracker_running_entry",0,function(a){return c.add(a),()=>{c.delete(a)}}])},67591,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_0mpyhsz._.js"].map(b=>a.l(b))).then(()=>b(68524)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__03~l7zo._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},62761,a=>{"use strict";a.s(["find_running_entry_on_sheet",0,function(a){if(null===a.activeEntryID)return null;let b=a.entries.find(({id:b})=>b===a.activeEntryID);return b?.end!=null?null:b??null}])},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,4,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c,archived:d})=>({name:a,activeEntryID:c,...!0===d?{archived:!0}:{},entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f,archived:g})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c),...!0===g?{archived:!0}:{}}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:4,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}},4:function(a){let{version:b,activeSheetName:c,sheets:d}=a;if(3!==b)throw Error(`DB is version ${b}, cannot migrate to version 4.`);return{version:4,activeSheetName:c,sheets:d}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=b.version??1;if(d>4||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<4;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},37070,a=>{"use strict";function b(a,b){let c=new Set,d=[];for(let e of[...a,...b]){let a=`${e.timestamp.getTime()}:${e.text}`;c.has(a)||(c.add(a),d.push(e))}return d.sort((a,b)=>a.timestamp.getTime()-b.timestamp.getTime()),d}a.s(["dedupe_sheet_entries_by_id",0,function(a){let c=new Map;for(let d of a){let a=c.get(d.id);if(void 0===a){c.set(d.id,d);continue}if(null===d.end&&null!==a.end){c.set(d.id,{...d,notes:b(d.notes,a.notes)});continue}if(null===a.end&&null!==d.end){c.set(d.id,{...a,notes:b(a.notes,d.notes)});continue}c.set(d.id,{...a,notes:b(a.notes,d.notes)})}return[...c.values()].sort((a,b)=>a.id-b.id)}],37070)},79857,a=>{"use strict";var b=a.i(37070);a.s(["dedupe_tracker_db_sheet_entries",0,function(a){let c=!1;for(let d of a.sheets){let a=(0,b.dedupe_sheet_entries_by_id)(d.entries);a.length!==d.entries.length&&(c=!0,d.entries=a)}return c}])},23220,a=>{"use strict";var b=a.i(62761);a.s(["reconcile_stale_active_entry_ids",0,function(a){let c=!1;for(let d of a.sheets)null!==d.activeEntryID&&null===(0,b.find_running_entry_on_sheet)(d)&&(d.activeEntryID=null,c=!0);return c}])},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,...!0===a.archived?{archived:!0}:{},entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()})),...!0===a.archived?{archived:!0}:{}}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(23001),c=a.i(50227),d=a.i(2157),e=a.i(59341),f=a.i(40388),g=a.i(67511),h=a.i(92398),i=a.i(26351),j=a.i(79857),k=a.i(23220),l=a.i(6931);async function m(a,b=e.DB_PATH){let c=JSON.stringify((0,l.convert_db_to_json)(a));try{await d.promises.writeFile(b,c)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function n(a=e.DB_PATH){let b,l=c.default.dirname(a);await (0,g.ensure_dir_exists)(l);try{await d.promises.access(a)}catch{let b=(0,h.gen_db)();return await m(b,a),b}let o=await d.promises.readFile(a,"utf-8");try{b=JSON.parse(o)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let p=(0,i.migrate_json_db)(b);b=p.json_db;let q=(0,f.convert_json_db)(b),r=p.did_migrate,s=(0,k.reconcile_stale_active_entry_ids)(q),t=(0,j.dedupe_tracker_db_sheet_entries)(q);return(r||s||t)&&await m(q,a),q}a.s(["write_local_db",0,m],23761);let o=(0,b.cache)(async a=>n(a));a.s(["read_db",0,o],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},23035,a=>{"use strict";a.s(["get_clipped_entry_duration_ms",0,function(a,b,c,d=Date.now()){let e=+a.start;return Math.max(0,Math.min(null===a.end?d:+a.end,c)-Math.max(e,b))}])},2985,a=>{"use strict";var b=a.i(93835),c=a.i(2798),d=a.i(95763),e=a.i(12781),f=a.i(34114);a.s(["get_period_range_ms",0,function(a,g=new Date,h=1){var i;switch(a){case"week":let j,k,l,m;return{startMs:+(0,f.startOfWeek)(g,{weekStartsOn:h}),endMs:+(i={weekStartsOn:h},j=(0,d.getDefaultOptions)(),k=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??j.weekStartsOn??j.locale?.options?.weekStartsOn??0,m=(l=(0,c.toDate)(g,i?.in)).getDay(),l.setDate(l.getDate()+((m<k?-7:0)+6-(m-k))),l.setHours(23,59,59,999),l)};case"month":let n,o,p;return{startMs:+((n=(0,c.toDate)(g,void 0)).setDate(1),n.setHours(0,0,0,0),n),endMs:+(p=(o=(0,c.toDate)(g,void 0)).getMonth(),o.setFullYear(o.getFullYear(),p+1,0),o.setHours(23,59,59,999),o)};default:return{startMs:+(0,e.startOfDay)(g),endMs:+(0,b.endOfDay)(g)}}}],2985)},80403,a=>{"use strict";var b=a.i(62761),c=a.i(19045);a.s(["find_all_serialized_active_entries",0,function(a){return a.sheets.flatMap(a=>{let d=(0,b.find_running_entry_on_sheet)(a);return null==d?[]:[(0,c.serialize_entry)(d,a.name,!0)]})}])},9602,a=>{"use strict";var b=a.i(23035),c=a.i(2985),d=a.i(4813);async function e({scope:a="global",sheet_name:f,tag_name:g,db:h}={}){let i=h??await (0,d.read_db)(),j=Date.now(),k=new Date(j),l=(0,c.get_period_range_ms)("today",k),m=(0,c.get_period_range_ms)("week",k),n=0,o=0,p={last_log_ms:null,active_timer_duration_ms:null};for(let c of i.sheets)for(let d of c.entries)(function(a){let{scope:b,sheet_name:c,tag_name:d,sheet_name_on_entry:e,entry:f}=a;return!!("global"===b||"sheet"===b&&void 0!==c&&e===c||"tag"===b&&void 0!==d&&f.tags.includes(d))})({scope:a,sheet_name:f,tag_name:g,sheet_name_on_entry:c.name,entry:d})&&(n+=(0,b.get_clipped_entry_duration_ms)(d,l.startMs,l.endMs,j),o+=(0,b.get_clipped_entry_duration_ms)(d,m.startMs,m.endMs,j)),p=function(a,b,c){let d=+a.start,e=null===a.end?null:+a.end,f=null===e?d:Math.max(d,e),g=null===c.last_log_ms||f>c.last_log_ms?f:c.last_log_ms;if(null!==a.end)return{last_log_ms:g,active_timer_duration_ms:c.active_timer_duration_ms};let h=Math.max(0,b-d);return{last_log_ms:g,active_timer_duration_ms:null===c.active_timer_duration_ms||h>c.active_timer_duration_ms?h:c.active_timer_duration_ms}}(d,j,p);let q=null!==p.active_timer_duration_ms||null===p.last_log_ms?null:Math.floor((j-p.last_log_ms)/6e4);return{todayTrackedMs:n,weekTrackedMs:o,activeTimerDurationMs:p.active_timer_duration_ms,minutesSinceLastLog:q}}a.s(["get_focus_nudges_status",0,e],9602)},93835,3973,82478,2798,95763,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){return"function"==typeof a?a(c):a&&"object"==typeof a&&b in a?a[b](c):a instanceof Date?new a.constructor(c):new Date(c)}function d(a,b){return c(b||a,a)}a.s(["constructFromSymbol",0,b,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5],3973),a.s(["constructFrom",0,c],82478),a.s(["toDate",0,d],2798),a.s(["endOfDay",0,function(a,b){let c=d(a,b?.in);return c.setHours(23,59,59,999),c}],93835);let e={};a.s(["getDefaultOptions",0,function(){return e}],95763)},12781,a=>{"use strict";var b=a.i(2798);a.s(["startOfDay",0,function(a,c){let d=(0,b.toDate)(a,c?.in);return d.setHours(0,0,0,0),d}])},34114,a=>{"use strict";var b=a.i(95763),c=a.i(2798);a.s(["startOfWeek",0,function(a,d){let e=(0,b.getDefaultOptions)(),f=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,g=(0,c.toDate)(a,d?.in),h=g.getDay();return g.setDate(g.getDate()-(7*(h<f)+h-f)),g.setHours(0,0,0,0),g}])},10421,a=>{"use strict";a.s(["is_sheet_archived",0,function(a){return!0===a.archived}])},58345,a=>{"use strict";var b=a.i(10421);a.s(["filter_visible_sheets",0,function(a){return a.filter(a=>!(0,b.is_sheet_archived)(a))}])},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c,...!0===a.archived?{archived:!0}:{}}}],19045)},64601,a=>{"use strict";a.s(["is_entry_archived",0,function(a){return!0===a.archived}])},60135,a=>{"use strict";var b=a.i(82478),c=a.i(2798);a.s(["addDays",0,function(a,d,e){let f=(0,c.toDate)(a,e?.in);return isNaN(d)?(0,b.constructFrom)(e?.in||a,NaN):(d&&f.setDate(f.getDate()+d),f)}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},5368,a=>{"use strict";a.s(["TodayFocusView",()=>b]);let b=(0,a.i(65909).registerClientReference)(function(){throw Error("Attempted to call TodayFocusView() from the server but TodayFocusView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/today-focus-view.tsx <module evaluation>","TodayFocusView")},24356,a=>{"use strict";a.s(["TodayFocusView",()=>b]);let b=(0,a.i(65909).registerClientReference)(function(){throw Error("Attempted to call TodayFocusView() from the server but TodayFocusView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/today-focus-view.tsx","TodayFocusView")},29387,a=>{"use strict";a.i(5368);var b=a.i(24356);a.n(b)},70146,a=>{"use strict";var b=a.i(38860),c=a.i(29387),d=a.i(23750),e=a.i(64601),f=a.i(10421),g=a.i(23035),h=a.i(2985),i=a.i(93835),j=a.i(12781),k=a.i(19045),l=a.i(58345),m=a.i(80403),n=a.i(9602),o=a.i(60135),p=a.i(4813);async function q(){let a=await (0,p.read_db)(),b=await (0,n.get_focus_nudges_status)(),c=function(a,b=Date.now()){let c=new Date(b),{endMs:d,startMs:l}=(0,h.get_period_range_ms)("today",c),m=[];for(let h of a)if(!(0,f.is_sheet_archived)(h))for(let a of h.entries){if((0,e.is_entry_archived)(a)||!function(a,b){let{end:c,start:d}=b,e=(0,j.startOfDay)(a),f=(0,i.endOfDay)(a),g=c??new Date;return+d<=+f&&+g>=+e}(c,a))continue;let f=(0,g.get_clipped_entry_duration_ms)(a,l,d,b);f<=0||m.push({...(0,k.serialize_entry)(a,h.name,h.activeEntryID===a.id&&null===a.end),todayDurationMs:f})}return m.sort((a,b)=>new Date(b.start)-new Date(a.start))}(a.sheets),q=c.reduce((a,b)=>a+b.todayDurationMs,0);return{runningEntries:(0,m.find_all_serialized_active_entries)(a),todayEntries:c,todayTotalMs:q,focusStatus:b,startDaySuggestions:function(a,b=new Date){let c=(0,o.addDays)(b,-1,void 0),d=+(0,j.startOfDay)(c),e=+(0,i.endOfDay)(c),f=[];for(let b of a){let a=null,c=-1/0;for(let f of b.entries){let b=null===f.end?+f.start:+f.end;b<d||b>e||b>c&&(a=f,c=b)}null!==a&&f.push({sheetName:b.name,suggestedDescription:a.description,suggestedTags:a.tags,lastLoggedAt:new Date(c).toISOString()})}return f.sort((a,b)=>new Date(b.lastLoggedAt)-new Date(a.lastLoggedAt))}(a.sheets),sheetNames:(0,l.filter_visible_sheets)(a.sheets).map(a=>a.name),sheets:a.sheets.map(b=>({name:b.name,activeEntryID:b.activeEntryID,entryCount:b.entries.length,isActive:b.name===a.activeSheetName,hasActiveEntry:null!==b.activeEntryID,...(0,f.is_sheet_archived)(b)?{archived:!0}:{}})),knownTags:(0,d.collect_known_tags)(a)}}async function r(){let a=await q();return(0,b.jsx)(c.TodayFocusView,{initial_data:a})}a.s(["default",0,r],70146)},257,a=>{a.n(a.i(70146))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0kp4i1o._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,4,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c,archived:d})=>({name:a,activeEntryID:c,...!0===d?{archived:!0}:{},entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f,archived:g})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c),...!0===g?{archived:!0}:{}}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:4,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}},4:function(a){let{version:b,activeSheetName:c,sheets:d}=a;if(3!==b)throw Error(`DB is version ${b}, cannot migrate to version 4.`);return{version:4,activeSheetName:c,sheets:d}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=b.version??1;if(d>4||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<4;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},37070,a=>{"use strict";function b(a,b){let c=new Set,d=[];for(let e of[...a,...b]){let a=`${e.timestamp.getTime()}:${e.text}`;c.has(a)||(c.add(a),d.push(e))}return d.sort((a,b)=>a.timestamp.getTime()-b.timestamp.getTime()),d}a.s(["dedupe_sheet_entries_by_id",0,function(a){let c=new Map;for(let d of a){let a=c.get(d.id);if(void 0===a){c.set(d.id,d);continue}if(null===d.end&&null!==a.end){c.set(d.id,{...d,notes:b(d.notes,a.notes)});continue}if(null===a.end&&null!==d.end){c.set(d.id,{...a,notes:b(a.notes,d.notes)});continue}c.set(d.id,{...a,notes:b(a.notes,d.notes)})}return[...c.values()].sort((a,b)=>a.id-b.id)}],37070)},79857,a=>{"use strict";var b=a.i(37070);a.s(["dedupe_tracker_db_sheet_entries",0,function(a){let c=!1;for(let d of a.sheets){let a=(0,b.dedupe_sheet_entries_by_id)(d.entries);a.length!==d.entries.length&&(c=!0,d.entries=a)}return c}])},62761,a=>{"use strict";a.s(["find_running_entry_on_sheet",0,function(a){if(null===a.activeEntryID)return null;let b=a.entries.find(({id:b})=>b===a.activeEntryID);return b?.end!=null?null:b??null}])},23220,a=>{"use strict";var b=a.i(62761);a.s(["reconcile_stale_active_entry_ids",0,function(a){let c=!1;for(let d of a.sheets)null!==d.activeEntryID&&null===(0,b.find_running_entry_on_sheet)(d)&&(d.activeEntryID=null,c=!0);return c}])},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,...!0===a.archived?{archived:!0}:{},entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()})),...!0===a.archived?{archived:!0}:{}}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(23001),c=a.i(50227),d=a.i(2157),e=a.i(59341),f=a.i(40388),g=a.i(67511),h=a.i(92398),i=a.i(26351),j=a.i(79857),k=a.i(23220),l=a.i(6931);async function m(a,b=e.DB_PATH){let c=JSON.stringify((0,l.convert_db_to_json)(a));try{await d.promises.writeFile(b,c)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function n(a=e.DB_PATH){let b,l=c.default.dirname(a);await (0,g.ensure_dir_exists)(l);try{await d.promises.access(a)}catch{let b=(0,h.gen_db)();return await m(b,a),b}let o=await d.promises.readFile(a,"utf-8");try{b=JSON.parse(o)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let p=(0,i.migrate_json_db)(b);b=p.json_db;let q=(0,f.convert_json_db)(b),r=p.did_migrate,s=(0,k.reconcile_stale_active_entry_ids)(q),t=(0,j.dedupe_tracker_db_sheet_entries)(q);return(r||s||t)&&await m(q,a),q}a.s(["write_local_db",0,m],23761);let o=(0,b.cache)(async a=>n(a));a.s(["read_db",0,o],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},23035,a=>{"use strict";a.s(["get_clipped_entry_duration_ms",0,function(a,b,c,d=Date.now()){let e=+a.start;return Math.max(0,Math.min(null===a.end?d:+a.end,c)-Math.max(e,b))}])},2985,a=>{"use strict";var b=a.i(93835),c=a.i(2798),d=a.i(95763),e=a.i(12781),f=a.i(34114);a.s(["get_period_range_ms",0,function(a,g=new Date,h=1){var i;switch(a){case"week":let j,k,l,m;return{startMs:+(0,f.startOfWeek)(g,{weekStartsOn:h}),endMs:+(i={weekStartsOn:h},j=(0,d.getDefaultOptions)(),k=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??j.weekStartsOn??j.locale?.options?.weekStartsOn??0,m=(l=(0,c.toDate)(g,i?.in)).getDay(),l.setDate(l.getDate()+((m<k?-7:0)+6-(m-k))),l.setHours(23,59,59,999),l)};case"month":let n,o,p;return{startMs:+((n=(0,c.toDate)(g,void 0)).setDate(1),n.setHours(0,0,0,0),n),endMs:+(p=(o=(0,c.toDate)(g,void 0)).getMonth(),o.setFullYear(o.getFullYear(),p+1,0),o.setHours(23,59,59,999),o)};default:return{startMs:+(0,e.startOfDay)(g),endMs:+(0,b.endOfDay)(g)}}}],2985)},67835,88028,a=>{"use strict";a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}],67835);var b=a.i(37070),c=a.i(19045);a.s(["serialize_sheet_entries",0,function(a){let{activeEntryID:d,entries:e,name:f}=a;return(0,b.dedupe_sheet_entries_by_id)(e).map(a=>(0,c.serialize_entry)(a,f,d===a.id&&null===a.end))}],88028)},93835,3973,82478,2798,95763,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){return"function"==typeof a?a(c):a&&"object"==typeof a&&b in a?a[b](c):a instanceof Date?new a.constructor(c):new Date(c)}function d(a,b){return c(b||a,a)}a.s(["constructFromSymbol",0,b,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5],3973),a.s(["constructFrom",0,c],82478),a.s(["toDate",0,d],2798),a.s(["endOfDay",0,function(a,b){let c=d(a,b?.in);return c.setHours(23,59,59,999),c}],93835);let e={};a.s(["getDefaultOptions",0,function(){return e}],95763)},12781,a=>{"use strict";var b=a.i(2798);a.s(["startOfDay",0,function(a,c){let d=(0,b.toDate)(a,c?.in);return d.setHours(0,0,0,0),d}])},34114,a=>{"use strict";var b=a.i(95763),c=a.i(2798);a.s(["startOfWeek",0,function(a,d){let e=(0,b.getDefaultOptions)(),f=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,g=(0,c.toDate)(a,d?.in),h=g.getDay();return g.setDate(g.getDate()-(7*(h<f)+h-f)),g.setHours(0,0,0,0),g}])},10421,a=>{"use strict";a.s(["is_sheet_archived",0,function(a){return!0===a.archived}])},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c,...!0===a.archived?{archived:!0}:{}}}],19045)},64601,a=>{"use strict";a.s(["is_entry_archived",0,function(a){return!0===a.archived}])},9602,a=>{"use strict";var b=a.i(23035),c=a.i(2985),d=a.i(4813);async function e({scope:a="global",sheet_name:f,tag_name:g,db:h}={}){let i=h??await (0,d.read_db)(),j=Date.now(),k=new Date(j),l=(0,c.get_period_range_ms)("today",k),m=(0,c.get_period_range_ms)("week",k),n=0,o=0,p={last_log_ms:null,active_timer_duration_ms:null};for(let c of i.sheets)for(let d of c.entries)(function(a){let{scope:b,sheet_name:c,tag_name:d,sheet_name_on_entry:e,entry:f}=a;return!!("global"===b||"sheet"===b&&void 0!==c&&e===c||"tag"===b&&void 0!==d&&f.tags.includes(d))})({scope:a,sheet_name:f,tag_name:g,sheet_name_on_entry:c.name,entry:d})&&(n+=(0,b.get_clipped_entry_duration_ms)(d,l.startMs,l.endMs,j),o+=(0,b.get_clipped_entry_duration_ms)(d,m.startMs,m.endMs,j)),p=function(a,b,c){let d=+a.start,e=null===a.end?null:+a.end,f=null===e?d:Math.max(d,e),g=null===c.last_log_ms||f>c.last_log_ms?f:c.last_log_ms;if(null!==a.end)return{last_log_ms:g,active_timer_duration_ms:c.active_timer_duration_ms};let h=Math.max(0,b-d);return{last_log_ms:g,active_timer_duration_ms:null===c.active_timer_duration_ms||h>c.active_timer_duration_ms?h:c.active_timer_duration_ms}}(d,j,p);let q=null!==p.active_timer_duration_ms||null===p.last_log_ms?null:Math.floor((j-p.last_log_ms)/6e4);return{todayTrackedMs:n,weekTrackedMs:o,activeTimerDurationMs:p.active_timer_duration_ms,minutesSinceLastLog:q}}a.s(["get_focus_nudges_status",0,e],9602)},80403,a=>{"use strict";var b=a.i(62761),c=a.i(19045);a.s(["find_all_serialized_active_entries",0,function(a){return a.sheets.flatMap(a=>{let d=(0,b.find_running_entry_on_sheet)(a);return null==d?[]:[(0,c.serialize_entry)(d,a.name,!0)]})}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},43732,a=>{"use strict";a.s(["TrackerApp",()=>b]);let b=(0,a.i(65909).registerClientReference)(function(){throw Error("Attempted to call TrackerApp() from the server but TrackerApp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-app.tsx <module evaluation>","TrackerApp")},50367,a=>{"use strict";a.s(["TrackerApp",()=>b]);let b=(0,a.i(65909).registerClientReference)(function(){throw Error("Attempted to call TrackerApp() from the server but TrackerApp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-app.tsx","TrackerApp")},84174,a=>{"use strict";a.i(43732);var b=a.i(50367);a.n(b)},50708,a=>{"use strict";var b=a.i(38860),c=a.i(84174),d=a.i(28041),e=a.i(4813);async function f(a){let b=await (0,d.cookies)();return function(a,b){var c;let d="last_viewed"===(c=b.session_mode)||"active_timer"===c||"fixed"===c?c:"last_viewed",e=void 0!==b.last_viewed_sheet&&decodeURIComponent(b.last_viewed_sheet).trim()||null,f=void 0!==b.fixed_sheet_name&&decodeURIComponent(b.fixed_sheet_name).trim()||null;switch(d){case"fixed":{let b=f?.trim()??"";if(b.length>0&&a.sheets.some(a=>a.name===b))return b;return null}case"active_timer":{let b=a.sheets.find(a=>null!==a.activeEntryID);return b?.name??null}default:return e}}(a??await (0,e.read_db)(),{session_mode:b.get("stt-default-sheet-session-mode")?.value,fixed_sheet_name:b.get("stt-default-sheet-fixed-name")?.value,last_viewed_sheet:b.get("stt-active-sheet")?.value})}var g=a.i(23750),h=a.i(64601),i=a.i(10421),j=a.i(60197),k=a.i(9602),l=a.i(67835),m=a.i(59341),n=a.i(62761),o=a.i(80403),p=a.i(19045),q=a.i(88028),r=a.i(92398),s=a.i(79857),t=a.i(23220),u=a.i(23761);async function v(a,b){(0,t.reconcile_stale_active_entry_ids)(a),(0,s.dedupe_tracker_db_sheet_entries)(a),await (0,u.write_local_db)(a,b)}async function w(a){let b=await (0,e.read_db)();b.sheets.some(({name:b})=>b===a)||b.sheets.push((0,r.gen_sheet)(a)),b.activeSheetName=a,await v(b)}async function x(a,b={}){let c=b.persist_active_sheet??!0,d=b.include_sheet_entries??!0,f=b.include_focus_nudges??!1,r=b.db??await (0,e.read_db)(),s=function(a,b){let c=b?.trim()??"";if(c.length>0&&a.sheets.some(a=>a.name===c&&!(0,i.is_sheet_archived)(a)))return c;if(null!==a.activeSheetName&&a.sheets.some(b=>b.name===a.activeSheetName&&!(0,i.is_sheet_archived)(b)))return a.activeSheetName;let d=a.sheets.find(a=>!(0,i.is_sheet_archived)(a)&&null!==(0,n.find_running_entry_on_sheet)(a));if(void 0!==d)return d.name;let e=a.sheets.find(a=>!(0,i.is_sheet_archived)(a));return e?.name??m.DEFAULT_SHEET_NAME}(r,a);c&&r.activeSheetName!==s&&(await w(s),r.activeSheetName=s);let{sheets:t}=r,u=[];if(d){let a=function(a,b){let c=a.sheets.find(({name:a})=>a===b);if(void 0===c)throw Error(`Sheet ${b} not found`);return c}(r,s);u=function(a,b){let c=[...a];switch(b){case"oldest":return c.sort((a,b)=>new Date(a.start).getTime()-new Date(b.start).getTime());case"duration":return c.sort((a,b)=>b.durationMs-a.durationMs);case"description":return c.sort((a,b)=>{let c=a.description.trim()||"Untitled entry",d=b.description.trim()||"Untitled entry";return c.localeCompare(d)});default:return c.sort((a,b)=>new Date(b.start).getTime()-new Date(a.start).getTime())}}((0,q.serialize_sheet_entries)(a),"newest")}let v=function(a,b){let c=a.sheets.find(({name:a})=>a===b);if(void 0===c)return null;let d=(0,n.find_running_entry_on_sheet)(c);return null===d?null:(0,p.serialize_entry)(d,c.name,!0)}(r,s),y=(0,o.find_all_serialized_active_entries)(r),z=v??y[0]??null,A=f?await (0,k.get_focus_nudges_status)({scope:"global",db:r}):void 0;return{dbPath:await (0,j.resolve_db_path_label)(),activeSheetName:s,knownTags:(0,g.collect_known_tags)(r),sheets:t.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entryCount:a.entries.filter(a=>!(0,h.is_entry_archived)(a)).length,isActive:a.name===s,hasActiveEntry:null!==(0,n.find_running_entry_on_sheet)(a),...(0,i.is_sheet_archived)(a)?{archived:!0}:{}})),activeEntry:v,runningEntry:z,runningEntries:y,activeSheetEntries:u,activeSheetTotalMs:(0,l.get_serialized_entries_total_ms)(u),activeSheetEntriesLoaded:d,focusNudgesStatusGlobal:A}}async function y(){let a=await (0,e.read_db)(),d=await f(a),g=await x(d,{db:a,persist_active_sheet:!1,include_sheet_entries:!1,include_focus_nudges:!0});return(0,b.jsx)(c.TrackerApp,{initial_state:g})}a.s(["default",0,y],50708)},26030,a=>{a.n(a.i(50708))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0s2z7s7._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},2317,51196,a=>{"use strict";function b(a,b){return 0===b?0:a/b}a.s(["get_average_entry_ms",0,b],51196);var c=a.i(23035);a.s(["get_sheet_report_stats_for_range",0,function(a,d,e,f=Date.now()){let g=0,h=0,i=!1;for(let b of a.entries){let j=(0,c.get_clipped_entry_duration_ms)(b,d,e,f);j<=0||(g+=j,h+=1,a.activeEntryID===b.id&&null===b.end&&(i=!0))}return{sheetName:a.name,totalMs:g,entryCount:h,averageEntryMs:b(g,h),hasActiveEntry:i}}],2317)},2985,a=>{"use strict";var b=a.i(93835),c=a.i(2798),d=a.i(95763),e=a.i(12781),f=a.i(34114);a.s(["get_period_range_ms",0,function(a,g=new Date,h=1){var i;switch(a){case"week":let j,k,l,m;return{startMs:+(0,f.startOfWeek)(g,{weekStartsOn:h}),endMs:+(i={weekStartsOn:h},j=(0,d.getDefaultOptions)(),k=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??j.weekStartsOn??j.locale?.options?.weekStartsOn??0,m=(l=(0,c.toDate)(g,i?.in)).getDay(),l.setDate(l.getDate()+((m<k?-7:0)+6-(m-k))),l.setHours(23,59,59,999),l)};case"month":let n,o,p;return{startMs:+((n=(0,c.toDate)(g,void 0)).setDate(1),n.setHours(0,0,0,0),n),endMs:+(p=(o=(0,c.toDate)(g,void 0)).getMonth(),o.setFullYear(o.getFullYear(),p+1,0),o.setHours(23,59,59,999),o)};default:return{startMs:+(0,e.startOfDay)(g),endMs:+(0,b.endOfDay)(g)}}}],2985)},23035,a=>{"use strict";a.s(["get_clipped_entry_duration_ms",0,function(a,b,c,d=Date.now()){let e=+a.start;return Math.max(0,Math.min(null===a.end?d:+a.end,c)-Math.max(e,b))}])},37070,a=>{"use strict";function b(a,b){let c=new Set,d=[];for(let e of[...a,...b]){let a=`${e.timestamp.getTime()}:${e.text}`;c.has(a)||(c.add(a),d.push(e))}return d.sort((a,b)=>a.timestamp.getTime()-b.timestamp.getTime()),d}a.s(["dedupe_sheet_entries_by_id",0,function(a){let c=new Map;for(let d of a){let a=c.get(d.id);if(void 0===a){c.set(d.id,d);continue}if(null===d.end&&null!==a.end){c.set(d.id,{...d,notes:b(d.notes,a.notes)});continue}if(null===a.end&&null!==d.end){c.set(d.id,{...a,notes:b(a.notes,d.notes)});continue}c.set(d.id,{...a,notes:b(a.notes,d.notes)})}return[...c.values()].sort((a,b)=>a.id-b.id)}],37070)},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,4,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c,archived:d})=>({name:a,activeEntryID:c,...!0===d?{archived:!0}:{},entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f,archived:g})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c),...!0===g?{archived:!0}:{}}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:4,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}},4:function(a){let{version:b,activeSheetName:c,sheets:d}=a;if(3!==b)throw Error(`DB is version ${b}, cannot migrate to version 4.`);return{version:4,activeSheetName:c,sheets:d}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=b.version??1;if(d>4||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<4;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},79857,a=>{"use strict";var b=a.i(37070);a.s(["dedupe_tracker_db_sheet_entries",0,function(a){let c=!1;for(let d of a.sheets){let a=(0,b.dedupe_sheet_entries_by_id)(d.entries);a.length!==d.entries.length&&(c=!0,d.entries=a)}return c}])},62761,a=>{"use strict";a.s(["find_running_entry_on_sheet",0,function(a){if(null===a.activeEntryID)return null;let b=a.entries.find(({id:b})=>b===a.activeEntryID);return b?.end!=null?null:b??null}])},23220,a=>{"use strict";var b=a.i(62761);a.s(["reconcile_stale_active_entry_ids",0,function(a){let c=!1;for(let d of a.sheets)null!==d.activeEntryID&&null===(0,b.find_running_entry_on_sheet)(d)&&(d.activeEntryID=null,c=!0);return c}])},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,...!0===a.archived?{archived:!0}:{},entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()})),...!0===a.archived?{archived:!0}:{}}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(23001),c=a.i(50227),d=a.i(2157),e=a.i(59341),f=a.i(40388),g=a.i(67511),h=a.i(92398),i=a.i(26351),j=a.i(79857),k=a.i(23220),l=a.i(6931);async function m(a,b=e.DB_PATH){let c=JSON.stringify((0,l.convert_db_to_json)(a));try{await d.promises.writeFile(b,c)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function n(a=e.DB_PATH){let b,l=c.default.dirname(a);await (0,g.ensure_dir_exists)(l);try{await d.promises.access(a)}catch{let b=(0,h.gen_db)();return await m(b,a),b}let o=await d.promises.readFile(a,"utf-8");try{b=JSON.parse(o)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let p=(0,i.migrate_json_db)(b);b=p.json_db;let q=(0,f.convert_json_db)(b),r=p.did_migrate,s=(0,k.reconcile_stale_active_entry_ids)(q),t=(0,j.dedupe_tracker_db_sheet_entries)(q);return(r||s||t)&&await m(q,a),q}a.s(["write_local_db",0,m],23761);let o=(0,b.cache)(async a=>n(a));a.s(["read_db",0,o],4813)},93835,3973,82478,2798,95763,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){return"function"==typeof a?a(c):a&&"object"==typeof a&&b in a?a[b](c):a instanceof Date?new a.constructor(c):new Date(c)}function d(a,b){return c(b||a,a)}a.s(["constructFromSymbol",0,b,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5],3973),a.s(["constructFrom",0,c],82478),a.s(["toDate",0,d],2798),a.s(["endOfDay",0,function(a,b){let c=d(a,b?.in);return c.setHours(23,59,59,999),c}],93835);let e={};a.s(["getDefaultOptions",0,function(){return e}],95763)},12781,a=>{"use strict";var b=a.i(2798);a.s(["startOfDay",0,function(a,c){let d=(0,b.toDate)(a,c?.in);return d.setHours(0,0,0,0),d}])},34114,a=>{"use strict";var b=a.i(95763),c=a.i(2798);a.s(["startOfWeek",0,function(a,d){let e=(0,b.getDefaultOptions)(),f=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,g=(0,c.toDate)(a,d?.in),h=g.getDay();return g.setDate(g.getDate()-(7*(h<f)+h-f)),g.setHours(0,0,0,0),g}])},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c,...!0===a.archived?{archived:!0}:{}}}],19045)},67835,88028,a=>{"use strict";a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}],67835);var b=a.i(37070),c=a.i(19045);a.s(["serialize_sheet_entries",0,function(a){let{activeEntryID:d,entries:e,name:f}=a;return(0,b.dedupe_sheet_entries_by_id)(e).map(a=>(0,c.serialize_entry)(a,f,d===a.id&&null===a.end))}],88028)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},13159,a=>{"use strict";a.s(["ReportingView",()=>b]);let b=(0,a.i(65909).registerClientReference)(function(){throw Error("Attempted to call ReportingView() from the server but ReportingView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/reporting-view.tsx <module evaluation>","ReportingView")},74088,a=>{"use strict";a.s(["ReportingView",()=>b]);let b=(0,a.i(65909).registerClientReference)(function(){throw Error("Attempted to call ReportingView() from the server but ReportingView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/reporting-view.tsx","ReportingView")},47613,a=>{"use strict";a.i(13159);var b=a.i(74088);a.n(b)},27001,a=>{"use strict";var b=a.i(38860),c=a.i(23001),d=a.i(47613),e=a.i(51196),f=a.i(2985),g=a.i(23035);function h(a,b,c,d=Date.now()){let e=0;for(let f of a)for(let a of f.entries)e+=(0,g.get_clipped_entry_duration_ms)(a,b,c,d);return e}var i=a.i(67835),j=a.i(88028),k=a.i(2317),l=a.i(4813);async function m(){let a=await (0,l.read_db)();return{sourceSheets:a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags}))})),stats:function(a,b=null,c=Date.now(),d=1){let g=a.map(a=>{let d,f,g;return null===b?(d=(0,j.serialize_sheet_entries)(a),f=a.entries.length,g=(0,i.get_serialized_entries_total_ms)(d),{sheetName:a.name,totalMs:g,entryCount:f,averageEntryMs:(0,e.get_average_entry_ms)(g,f),hasActiveEntry:null!==a.activeEntryID}):(0,k.get_sheet_report_stats_for_range)(a,b.startMs,b.endMs,c)}),{activeSheets:l,idleSheets:m}=function(a){let b=[],c=[];for(let d of a)0===d.entryCount||0===d.totalMs?c.push(d):b.push(d);return{activeSheets:b,idleSheets:c}}(g),n=g.reduce((a,b)=>a+b.totalMs,0),o=g.reduce((a,b)=>a+b.entryCount,0);return{activeSheets:l,idleSheets:m,grandTotalMs:n,totalEntryCount:o,grandAverageEntryMs:(0,e.get_average_entry_ms)(n,o),periodTotals:null===b?function(a,b=new Date,c=Date.now(),d=1){let e=(0,f.get_period_range_ms)("today",b,d),g=(0,f.get_period_range_ms)("week",b,d),i=(0,f.get_period_range_ms)("month",b,d);return{todayMs:h(a,e.startMs,e.endMs,c),weekMs:h(a,g.startMs,g.endMs,c),monthMs:h(a,i.startMs,i.endMs,c)}}(a,new Date(c),c,d):{todayMs:0,weekMs:0,monthMs:0}}}(a.sheets),referenceNow:Date.now()}}async function n(){let{referenceNow:a,sourceSheets:e}=await m();return(0,b.jsx)(c.Suspense,{fallback:null,children:(0,b.jsx)(d.ReportingView,{source_sheets:e,reference_now:a})})}a.s(["default",0,n],27001)},76842,a=>{a.n(a.i(27001))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0t9jvpg._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},2985,a=>{"use strict";var b=a.i(93835),c=a.i(2798),d=a.i(95763),e=a.i(12781),f=a.i(34114);a.s(["get_period_range_ms",0,function(a,g=new Date,h=1){var i;switch(a){case"week":let j,k,l,m;return{startMs:+(0,f.startOfWeek)(g,{weekStartsOn:h}),endMs:+(i={weekStartsOn:h},j=(0,d.getDefaultOptions)(),k=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??j.weekStartsOn??j.locale?.options?.weekStartsOn??0,m=(l=(0,c.toDate)(g,i?.in)).getDay(),l.setDate(l.getDate()+((m<k?-7:0)+6-(m-k))),l.setHours(23,59,59,999),l)};case"month":let n,o,p;return{startMs:+((n=(0,c.toDate)(g,void 0)).setDate(1),n.setHours(0,0,0,0),n),endMs:+(p=(o=(0,c.toDate)(g,void 0)).getMonth(),o.setFullYear(o.getFullYear(),p+1,0),o.setHours(23,59,59,999),o)};default:return{startMs:+(0,e.startOfDay)(g),endMs:+(0,b.endOfDay)(g)}}}],2985)},23035,a=>{"use strict";a.s(["get_clipped_entry_duration_ms",0,function(a,b,c,d=Date.now()){let e=+a.start;return Math.max(0,Math.min(null===a.end?d:+a.end,c)-Math.max(e,b))}])},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,4,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c,archived:d})=>({name:a,activeEntryID:c,...!0===d?{archived:!0}:{},entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f,archived:g})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c),...!0===g?{archived:!0}:{}}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:4,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}},4:function(a){let{version:b,activeSheetName:c,sheets:d}=a;if(3!==b)throw Error(`DB is version ${b}, cannot migrate to version 4.`);return{version:4,activeSheetName:c,sheets:d}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=b.version??1;if(d>4||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<4;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},37070,a=>{"use strict";function b(a,b){let c=new Set,d=[];for(let e of[...a,...b]){let a=`${e.timestamp.getTime()}:${e.text}`;c.has(a)||(c.add(a),d.push(e))}return d.sort((a,b)=>a.timestamp.getTime()-b.timestamp.getTime()),d}a.s(["dedupe_sheet_entries_by_id",0,function(a){let c=new Map;for(let d of a){let a=c.get(d.id);if(void 0===a){c.set(d.id,d);continue}if(null===d.end&&null!==a.end){c.set(d.id,{...d,notes:b(d.notes,a.notes)});continue}if(null===a.end&&null!==d.end){c.set(d.id,{...a,notes:b(a.notes,d.notes)});continue}c.set(d.id,{...a,notes:b(a.notes,d.notes)})}return[...c.values()].sort((a,b)=>a.id-b.id)}],37070)},79857,a=>{"use strict";var b=a.i(37070);a.s(["dedupe_tracker_db_sheet_entries",0,function(a){let c=!1;for(let d of a.sheets){let a=(0,b.dedupe_sheet_entries_by_id)(d.entries);a.length!==d.entries.length&&(c=!0,d.entries=a)}return c}])},62761,a=>{"use strict";a.s(["find_running_entry_on_sheet",0,function(a){if(null===a.activeEntryID)return null;let b=a.entries.find(({id:b})=>b===a.activeEntryID);return b?.end!=null?null:b??null}])},23220,a=>{"use strict";var b=a.i(62761);a.s(["reconcile_stale_active_entry_ids",0,function(a){let c=!1;for(let d of a.sheets)null!==d.activeEntryID&&null===(0,b.find_running_entry_on_sheet)(d)&&(d.activeEntryID=null,c=!0);return c}])},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,...!0===a.archived?{archived:!0}:{},entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()})),...!0===a.archived?{archived:!0}:{}}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(23001),c=a.i(50227),d=a.i(2157),e=a.i(59341),f=a.i(40388),g=a.i(67511),h=a.i(92398),i=a.i(26351),j=a.i(79857),k=a.i(23220),l=a.i(6931);async function m(a,b=e.DB_PATH){let c=JSON.stringify((0,l.convert_db_to_json)(a));try{await d.promises.writeFile(b,c)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function n(a=e.DB_PATH){let b,l=c.default.dirname(a);await (0,g.ensure_dir_exists)(l);try{await d.promises.access(a)}catch{let b=(0,h.gen_db)();return await m(b,a),b}let o=await d.promises.readFile(a,"utf-8");try{b=JSON.parse(o)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let p=(0,i.migrate_json_db)(b);b=p.json_db;let q=(0,f.convert_json_db)(b),r=p.did_migrate,s=(0,k.reconcile_stale_active_entry_ids)(q),t=(0,j.dedupe_tracker_db_sheet_entries)(q);return(r||s||t)&&await m(q,a),q}a.s(["write_local_db",0,m],23761);let o=(0,b.cache)(async a=>n(a));a.s(["read_db",0,o],4813)},93835,3973,82478,2798,95763,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){return"function"==typeof a?a(c):a&&"object"==typeof a&&b in a?a[b](c):a instanceof Date?new a.constructor(c):new Date(c)}function d(a,b){return c(b||a,a)}a.s(["constructFromSymbol",0,b,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5],3973),a.s(["constructFrom",0,c],82478),a.s(["toDate",0,d],2798),a.s(["endOfDay",0,function(a,b){let c=d(a,b?.in);return c.setHours(23,59,59,999),c}],93835);let e={};a.s(["getDefaultOptions",0,function(){return e}],95763)},12781,a=>{"use strict";var b=a.i(2798);a.s(["startOfDay",0,function(a,c){let d=(0,b.toDate)(a,c?.in);return d.setHours(0,0,0,0),d}])},34114,a=>{"use strict";var b=a.i(95763),c=a.i(2798);a.s(["startOfWeek",0,function(a,d){let e=(0,b.getDefaultOptions)(),f=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,g=(0,c.toDate)(a,d?.in),h=g.getDay();return g.setDate(g.getDate()-(7*(h<f)+h-f)),g.setHours(0,0,0,0),g}])},10421,a=>{"use strict";a.s(["is_sheet_archived",0,function(a){return!0===a.archived}])},58345,a=>{"use strict";var b=a.i(10421);a.s(["filter_visible_sheets",0,function(a){return a.filter(a=>!(0,b.is_sheet_archived)(a))}])},2317,51196,a=>{"use strict";function b(a,b){return 0===b?0:a/b}a.s(["get_average_entry_ms",0,b],51196);var c=a.i(23035);a.s(["get_sheet_report_stats_for_range",0,function(a,d,e,f=Date.now()){let g=0,h=0,i=!1;for(let b of a.entries){let j=(0,c.get_clipped_entry_duration_ms)(b,d,e,f);j<=0||(g+=j,h+=1,a.activeEntryID===b.id&&null===b.end&&(i=!0))}return{sheetName:a.name,totalMs:g,entryCount:h,averageEntryMs:b(g,h),hasActiveEntry:i}}],2317)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},57577,a=>{"use strict";a.s(["SheetHubView",()=>b]);let b=(0,a.i(65909).registerClientReference)(function(){throw Error("Attempted to call SheetHubView() from the server but SheetHubView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/sheet-hub-view.tsx <module evaluation>","SheetHubView")},68434,a=>{"use strict";a.s(["SheetHubView",()=>b]);let b=(0,a.i(65909).registerClientReference)(function(){throw Error("Attempted to call SheetHubView() from the server but SheetHubView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/sheet-hub-view.tsx","SheetHubView")},14012,a=>{"use strict";a.i(57577);var b=a.i(68434);a.n(b)},23853,a=>{"use strict";var b=a.i(38860),c=a.i(14012),d=a.i(2985),e=a.i(2317);function f(a,b=Date.now(),c=1){let g=new Date(b),h=(0,d.get_period_range_ms)("week",g,c),i=(0,d.get_period_range_ms)("month",g);return a.map(a=>{let c=(0,e.get_sheet_report_stats_for_range)(a,h.startMs,h.endMs,b),d=(0,e.get_sheet_report_stats_for_range)(a,i.startMs,i.endMs,b),f=function(a,b=Date.now()){let c=null;for(let d of a.entries){let a=null===d.end?b:+d.end,e=Math.max(+d.start,a);(null===c||e>c)&&(c=e)}return c}(a,b);return{sheetName:a.name,entryCount:a.entries.length,hasActiveEntry:null!==a.activeEntryID,weekTotalMs:c.totalMs,monthTotalMs:d.totalMs,lastActivityAt:null===f?null:new Date(f).toISOString()}})}var g=a.i(58345),h=a.i(10421),i=a.i(4813);async function j(){let a=await (0,i.read_db)(),b=(0,g.filter_visible_sheets)(a.sheets),c=a.sheets.filter(a=>(0,h.is_sheet_archived)(a));return{rows:f(b),archived_rows:f(c)}}async function k(){let{archived_rows:a,rows:d}=await j();return(0,b.jsx)(c.SheetHubView,{archived_rows:a,rows:d})}a.s(["default",0,k],23853)},12349,a=>{a.n(a.i(23853))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__13lfzik._.js.map
|