super-time-tracker-ui 0.1.18 → 0.1.19
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 +4 -0
- package/dist/standalone/next-output/build-manifest.json +3 -3
- package/dist/standalone/next-output/prerender-manifest.json +0 -96
- package/dist/standalone/next-output/routes-manifest.json +24 -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.js +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/_not-found.html +1 -1
- package/dist/standalone/next-output/server/app/_not-found.rsc +25 -24
- package/dist/standalone/next-output/server/app/_not-found.segments/_full.segment.rsc +25 -24
- package/dist/standalone/next-output/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/_not-found.segments/_index.segment.rsc +10 -9
- package/dist/standalone/next-output/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/api/backup/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/backup/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/entry/move/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/entry/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/in/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/note/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/note/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/out/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/out/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/sheet/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/state/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/state/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/import/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/import/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/pull/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/tags/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/tags/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/auth/callback/route.js +1 -1
- package/dist/standalone/next-output/server/app/auth/callback/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page.js +2 -2
- 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/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/register/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/register/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/register/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/register/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/register/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/register/page.js +14 -0
- package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/reporting/page.js +2 -2
- 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/settings/data/page.js +2 -2
- 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.js +2 -2
- 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/display.html +1 -1
- package/dist/standalone/next-output/server/app/settings/display.rsc +35 -35
- package/dist/standalone/next-output/server/app/settings/display.segments/_full.segment.rsc +35 -35
- package/dist/standalone/next-output/server/app/settings/display.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/settings/display.segments/_index.segment.rsc +10 -9
- package/dist/standalone/next-output/server/app/settings/display.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/settings/display.segments/settings/display/__PAGE__.segment.rsc +19 -20
- package/dist/standalone/next-output/server/app/settings/display.segments/settings/display.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/display.segments/settings.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/page.js +3 -3
- 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/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-paths-manifest.json +4 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_0213rdf.js +3 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_03g03g4.js +3 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_03tgdq_.js +3 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_04pkg4k.js +3 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_04xu.yc.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-vx9fd._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.pes14._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__01gv623._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__02~w0lb._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__07steou._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0_iol1b._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0czppph._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0j0740e._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0jki.34._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0p-frp1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0rqulo~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__12h-035._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0--hi7m._.js +6 -6
- package/dist/standalone/next-output/server/chunks/_0..mseh._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0900_l.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0_wbuqv._.js +6 -6
- package/dist/standalone/next-output/server/chunks/_0it7w3b._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0oz1whe._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_13eeory._.js +5 -5
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_sync_pull_route_actions_0zi~i0m.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_sync_push_route_actions_0sag.tp.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_sync_status_route_actions_0zvttty.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_04bpslp._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0-2k5eh.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0194h-6.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_040c8th.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_04kdnd9.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0eyb0.j.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0gpy3lz.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0pw4c6_.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0r_137h.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0wy5eu6.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_12a781y.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__00t2myd._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__01coapr._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__045~xw2._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0mc.wxv._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0mjp16u._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0urz1s3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0uw_dut._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0wm37im._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__113akjz._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__13dr511._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0.-wxz~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_01xe83y._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_02np35c._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_03kx6a3._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_06.f~a.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0iqbilg._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/{_0ekhh25._.js → _0j.-r89._.js} +7 -4
- package/dist/standalone/next-output/server/chunks/ssr/_0ox~9uu._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0s1f~0y._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/{0z~i_next_dist_0s-rnzm._.js → _0vrl3h2._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/_0ykqba1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0zp.x0b._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_register_page_actions_0zq7ka0.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_0mwejmt._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/lib_0x8xvli._.js +3 -0
- package/dist/standalone/next-output/server/edge/chunks/[root-of-the-server]__0t9u~vh._.js +7 -7
- package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
- package/dist/standalone/next-output/server/middleware-manifest.json +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.json +4 -0
- package/dist/standalone/next-output/server/pages/404.html +1 -1
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/static/chunks/{0.jsu2wyaii~1.js → 04i7.d4zi~oe6.js} +10 -10
- package/dist/standalone/next-output/static/chunks/0_ksz4lai0fyf.js +1 -0
- package/dist/standalone/next-output/static/chunks/0b41d5ys.-f0z.js +1 -0
- package/dist/standalone/next-output/static/chunks/0dap7q~qaakti.js +1 -0
- package/dist/standalone/next-output/static/chunks/0e9-u5vmtujdj.js +1 -0
- package/dist/standalone/next-output/static/chunks/0pyyx.xdi5hi-.js +1 -0
- package/dist/standalone/next-output/static/chunks/0t2dqc8t4.4r~.js +1 -0
- package/dist/standalone/next-output/static/chunks/0wf_vm8b1-jq3.js +1 -0
- package/dist/standalone/next-output/static/chunks/0y833~et3ssz2.js +1 -0
- package/dist/standalone/next-output/static/chunks/0yxiwfqfaqly7.css +3 -0
- package/dist/standalone/next-output/static/chunks/10ey~m_2o0rlr.js +1 -0
- package/dist/standalone/package.json +1 -1
- package/package.json +1 -1
- package/dist/standalone/next-output/server/app/reporting.html +0 -1
- package/dist/standalone/next-output/server/app/reporting.meta +0 -15
- package/dist/standalone/next-output/server/app/reporting.rsc +0 -29
- package/dist/standalone/next-output/server/app/reporting.segments/_full.segment.rsc +0 -29
- package/dist/standalone/next-output/server/app/reporting.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/reporting.segments/_index.segment.rsc +0 -10
- package/dist/standalone/next-output/server/app/reporting.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/reporting.segments/reporting/__PAGE__.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/reporting.segments/reporting.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/data.html +0 -1
- package/dist/standalone/next-output/server/app/settings/data.meta +0 -16
- package/dist/standalone/next-output/server/app/settings/data.rsc +0 -35
- package/dist/standalone/next-output/server/app/settings/data.segments/_full.segment.rsc +0 -35
- package/dist/standalone/next-output/server/app/settings/data.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings/data.segments/_index.segment.rsc +0 -10
- package/dist/standalone/next-output/server/app/settings/data.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/settings/data.segments/settings/data/__PAGE__.segment.rsc +0 -11
- package/dist/standalone/next-output/server/app/settings/data.segments/settings/data.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/data.segments/settings.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/tags.html +0 -1
- package/dist/standalone/next-output/server/app/settings/tags.meta +0 -16
- package/dist/standalone/next-output/server/app/settings/tags.rsc +0 -30
- package/dist/standalone/next-output/server/app/settings/tags.segments/_full.segment.rsc +0 -30
- package/dist/standalone/next-output/server/app/settings/tags.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings/tags.segments/_index.segment.rsc +0 -10
- package/dist/standalone/next-output/server/app/settings/tags.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings/tags/__PAGE__.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings/tags.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings.html +0 -1
- package/dist/standalone/next-output/server/app/settings.meta +0 -15
- package/dist/standalone/next-output/server/app/settings.rsc +0 -35
- package/dist/standalone/next-output/server/app/settings.segments/_full.segment.rsc +0 -35
- package/dist/standalone/next-output/server/app/settings.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings.segments/_index.segment.rsc +0 -10
- package/dist/standalone/next-output/server/app/settings.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/settings.segments/settings/__PAGE__.segment.rsc +0 -12
- package/dist/standalone/next-output/server/app/settings.segments/settings.segment.rsc +0 -5
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-~y~9m._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.tfxy.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__00yo3_1._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__05eq9_g._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__061y6pa._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__09bkv_j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0ai1p94._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0e3._t7._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0uvo97t._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0xb8jjk._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0z09g1h._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__11e-p11._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0vvs4p8._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0vzosja._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0y.amf.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0ysbhok._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__070_uw2._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0c4ohc.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0rtwdhy._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0x2t88.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__108je_d._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__10jikzl._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_00.2r03._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0kvm6av._.js +0 -6
- package/dist/standalone/next-output/server/chunks/ssr/_0l_p-.k._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0li90xb._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0okkb_~._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0qowa2d._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0zabe_~._.js +0 -3
- package/dist/standalone/next-output/static/chunks/0-0w4ml~c22t..js +0 -1
- package/dist/standalone/next-output/static/chunks/0aohgkyesjriz.js +0 -1
- package/dist/standalone/next-output/static/chunks/0bcmkbb2bxpr-.js +0 -1
- package/dist/standalone/next-output/static/chunks/0bym88q-qlydb.js +0 -1
- package/dist/standalone/next-output/static/chunks/0e8tmpq~qz.dz.js +0 -1
- package/dist/standalone/next-output/static/chunks/0js9~7rlpndqf.js +0 -1
- package/dist/standalone/next-output/static/chunks/0xvqo8vfg40zk.js +0 -1
- package/dist/standalone/next-output/static/chunks/11y-z.w7p8i8a.css +0 -3
- package/dist/standalone/next-output/static/chunks/12v1sx2j-is-9.js +0 -1
- package/dist/standalone/next-output/static/chunks/13pryy_qphr.u.js +0 -1
- /package/dist/standalone/next-output/static/{xfRBlnU13styXnCBd60jn → DquhSHeykhjs4ylW6BQ87}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{xfRBlnU13styXnCBd60jn → DquhSHeykhjs4ylW6BQ87}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/next-output/static/{xfRBlnU13styXnCBd60jn → DquhSHeykhjs4ylW6BQ87}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[34435,a=>{"use strict";var b=a.i(39752);a.s(["HamburgerIcon",0,function(){return(0,b.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,b.jsx)("path",{d:"M4 7h16"}),(0,b.jsx)("path",{d:"M4 12h16"}),(0,b.jsx)("path",{d:"M4 17h16"})]})}])},96359,a=>{"use strict";var b=a.i(34542),c=a.i(46299);a.s(["use_escape_to_cancel",0,function(a,d=!0){let e=(0,b.useRef)(a);e.current=a,(0,b.useEffect)(()=>{if(!d)return;let a=a=>{"Escape"!==a.key||(0,c.is_modal_dialog_open)()||(a.preventDefault(),e.current())};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[d])}])},92286,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={assign:function(){return i},searchParamsToUrlQuery:function(){return f},urlQueryToSearchParams:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){let b={};for(let[c,d]of a.entries()){let a=b[c];void 0===a?b[c]=d:Array.isArray(a)?a.push(d):b[c]=[a,d]}return b}function g(a){return"string"==typeof a?a:("number"!=typeof a||isNaN(a))&&"boolean"!=typeof a?"":String(a)}function h(a){let b=new URLSearchParams;for(let[c,d]of Object.entries(a))if(Array.isArray(d))for(let a of d)b.append(c,g(a));else b.set(c,g(d));return b}function i(a,...b){for(let c of b){for(let b of c.keys())a.delete(b);for(let[b,d]of c.entries())a.append(b,d)}return a}},98746,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={formatUrl:function(){return h},formatWithValidation:function(){return j},urlObjectKeys:function(){return i}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(3988)._(a.r(92286)),g=/https?|ftp|gopher|file/;function h(a){let{auth:b,hostname:c}=a,d=a.protocol||"",e=a.pathname||"",h=a.hash||"",i=a.query||"",j=!1;b=b?encodeURIComponent(b).replace(/%3A/i,":")+"@":"",a.host?j=b+a.host:c&&(j=b+(~c.indexOf(":")?`[${c}]`:c),a.port&&(j+=":"+a.port)),i&&"object"==typeof i&&(i=String(f.urlQueryToSearchParams(i)));let k=a.search||i&&`?${i}`||"";return d&&!d.endsWith(":")&&(d+=":"),a.slashes||(!d||g.test(d))&&!1!==j?(j="//"+(j||""),e&&"/"!==e[0]&&(e="/"+e)):j||(j=""),h&&"#"!==h[0]&&(h="#"+h),k&&"?"!==k[0]&&(k="?"+k),e=e.replace(/[?#]/g,encodeURIComponent),k=k.replace("#","%23"),`${d}${j}${e}${k}${h}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function j(a){return h(a)}},2831,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"useMergedRef",{enumerable:!0,get:function(){return e}});let d=a.r(34542);function e(a,b){let c=(0,d.useRef)(null),e=(0,d.useRef)(null);return(0,d.useCallback)(d=>{if(null===d){let a=c.current;a&&(c.current=null,a());let b=e.current;b&&(e.current=null,b())}else a&&(c.current=f(a,d)),b&&(e.current=f(b,d))},[a,b])}function f(a,b){if("function"!=typeof a)return a.current=b,()=>{a.current=null};{let c=a(b);return"function"==typeof c?c:()=>a(null)}}("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)},62820,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DecodeError:function(){return r},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return u},NormalizeError:function(){return s},PageNotFoundError:function(){return t},SP:function(){return p},ST:function(){return q},WEB_VITALS:function(){return f},execOnce:function(){return g},getDisplayName:function(){return l},getLocationOrigin:function(){return j},getURL:function(){return k},isAbsoluteUrl:function(){return i},isResSent:function(){return m},loadGetInitialProps:function(){return o},normalizeRepeatedSlashes:function(){return n},stringifyError:function(){return w}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=["CLS","FCP","FID","INP","LCP","TTFB"];function g(a){let b,c=!1;return(...d)=>(c||(c=!0,b=a(...d)),b)}let h=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=a=>h.test(a);function j(){let{protocol:a,hostname:b,port:c}=window.location;return`${a}//${b}${c?":"+c:""}`}function k(){let{href:a}=window.location,b=j();return a.substring(b.length)}function l(a){return"string"==typeof a?a:a.displayName||a.name||"Unknown"}function m(a){return a.finished||a.headersSent}function n(a){let b=a.split("?");return b[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(b[1]?`?${b.slice(1).join("?")}`:"")}async function o(a,b){let c=b.res||b.ctx&&b.ctx.res;if(!a.getInitialProps)return b.ctx&&b.Component?{pageProps:await o(b.Component,b.ctx)}:{};let d=await a.getInitialProps(b);if(c&&m(c))return d;if(!d)throw Object.defineProperty(Error(`"${l(a)}.getInitialProps()" should resolve to an object. But found "${d}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return d}let p="u">typeof performance,q=p&&["mark","measure","getEntriesByName"].every(a=>"function"==typeof performance[a]);class r extends Error{}class s extends Error{}class t extends Error{constructor(a){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${a}`}}class u extends Error{constructor(a,b){super(),this.message=`Failed to load static file for page: ${a} ${b}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(a){return JSON.stringify({message:a.message,stack:a.stack})}},22773,(a,b,c)=>{"use strict";function d(a){let b=a.indexOf("#"),c=a.indexOf("?"),d=c>-1&&(b<0||c<b);return d||b>-1?{pathname:a.substring(0,d?c:b),query:d?a.substring(c,b>-1?b:void 0):"",hash:b>-1?a.slice(b):""}:{pathname:a,query:"",hash:""}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"parsePath",{enumerable:!0,get:function(){return d}})},83915,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"addPathPrefix",{enumerable:!0,get:function(){return e}});let d=a.r(22773);function e(a,b){if(!a.startsWith("/")||!b)return a;let{pathname:c,query:e,hash:f}=(0,d.parsePath)(a);return`${b}${c}${e}${f}`}},32331,(a,b,c)=>{"use strict";function d(a){return a.replace(/\/$/,"")||"/"}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"removeTrailingSlash",{enumerable:!0,get:function(){return d}})},82235,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return f}});let d=a.r(32331),e=a.r(22773),f=a=>{if(!a.startsWith("/"))return a;let{pathname:b,query:c,hash:f}=(0,e.parsePath)(a);return`${(0,d.removeTrailingSlash)(b)}${c}${f}`};("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)},55378,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"addBasePath",{enumerable:!0,get:function(){return f}});let d=a.r(83915),e=a.r(82235);function f(a,b){return(0,e.normalizePathTrailingSlash)((0,d.addPathPrefix)(a,""))}("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)},35633,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"warnOnce",{enumerable:!0,get:function(){return d}});let d=a=>{}},30229,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d,e,f={ACTION_HMR_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return i},ACTION_REFRESH:function(){return h},ACTION_RESTORE:function(){return j},ACTION_SERVER_ACTION:function(){return m},ACTION_SERVER_PATCH:function(){return k},PrefetchKind:function(){return n},ScrollBehavior:function(){return o}};for(var g in f)Object.defineProperty(c,g,{enumerable:!0,get:f[g]});let h="refresh",i="navigate",j="restore",k="server-patch",l="hmr-refresh",m="server-action";var n=((d={}).AUTO="auto",d.FULL="full",d),o=((e={})[e.Default=0]="Default",e[e.NoScroll=1]="NoScroll",e);("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)},81801,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d,e,f,g={FetchStrategy:function(){return k},NavigationResultTag:function(){return i},PrefetchPriority:function(){return j}};for(var h in g)Object.defineProperty(c,h,{enumerable:!0,get:g[h]});var i=((d={})[d.MPA=0]="MPA",d[d.Success=1]="Success",d[d.NoOp=2]="NoOp",d[d.Async=3]="Async",d),j=((e={})[e.Intent=2]="Intent",e[e.Default=1]="Default",e[e.Background=0]="Background",e),k=((f={})[f.LoadingBoundary=0]="LoadingBoundary",f[f.PPR=1]="PPR",f[f.PPRRuntime=2]="PPRRuntime",f[f.Full=3]="Full",f);("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)},90246,(a,b,c)=>{"use strict";function d(a,b){let c=new URL(a);return{pathname:c.pathname,search:c.search,nextUrl:b}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createCacheKey",{enumerable:!0,get:function(){return d}}),("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)},47631,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"PrefetchHint",{enumerable:!0,get:function(){return e}});var d,e=((d={})[d.HasRuntimePrefetch=1]="HasRuntimePrefetch",d[d.SubtreeHasInstant=2]="SubtreeHasInstant",d[d.SegmentHasLoadingBoundary=4]="SegmentHasLoadingBoundary",d[d.SubtreeHasLoadingBoundary=8]="SubtreeHasLoadingBoundary",d[d.IsRootLayout=16]="IsRootLayout",d[d.ParentInlinedIntoSelf=32]="ParentInlinedIntoSelf",d[d.InlinedIntoChild=64]="InlinedIntoChild",d[d.HeadInlinedIntoSelf=128]="HeadInlinedIntoSelf",d[d.HeadOutlined=256]="HeadOutlined",d)},46073,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"matchSegment",{enumerable:!0,get:function(){return d}});let d=(a,b)=>"string"==typeof a?"string"==typeof b&&a===b:"string"!=typeof b&&a[0]===b[0]&&a[1]===b[1];("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)},94086,(a,b,c)=>{"use strict";function d(a){return(a.then(e),"fulfilled"!==a.status)?null:a.value}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"readVaryParams",{enumerable:!0,get:function(){return d}});let e=()=>{}},48802,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={ACTION_HEADER:function(){return g},FLIGHT_HEADERS:function(){return q},NEXT_ACTION_NOT_FOUND_HEADER:function(){return x},NEXT_ACTION_REVALIDATED_HEADER:function(){return A},NEXT_DID_POSTPONE_HEADER:function(){return t},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return l},NEXT_HMR_REFRESH_HEADER:function(){return k},NEXT_HTML_REQUEST_ID_HEADER:function(){return z},NEXT_INSTANT_PREFETCH_HEADER:function(){return o},NEXT_INSTANT_TEST_COOKIE:function(){return p},NEXT_IS_PRERENDER_HEADER:function(){return w},NEXT_REQUEST_ID_HEADER:function(){return y},NEXT_REWRITTEN_PATH_HEADER:function(){return u},NEXT_REWRITTEN_QUERY_HEADER:function(){return v},NEXT_ROUTER_PREFETCH_HEADER:function(){return i},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return j},NEXT_ROUTER_STALE_TIME_HEADER:function(){return s},NEXT_ROUTER_STATE_TREE_HEADER:function(){return h},NEXT_RSC_UNION_QUERY:function(){return r},NEXT_URL:function(){return m},RSC_CONTENT_TYPE_HEADER:function(){return n},RSC_HEADER:function(){return f}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="rsc",g="next-action",h="next-router-state-tree",i="next-router-prefetch",j="next-router-segment-prefetch",k="next-hmr-refresh",l="__next_hmr_refresh_hash__",m="next-url",n="text/x-component",o="next-instant-navigation-testing-prefetch",p="next-instant-navigation-testing",q=[f,h,i,k,j],r="_rsc",s="x-nextjs-stale-time",t="x-nextjs-postponed",u="x-nextjs-rewritten-path",v="x-nextjs-rewritten-query",w="x-nextjs-prerender",x="x-nextjs-action-not-found",y="x-nextjs-request-id",z="x-nextjs-html-request-id",A="x-action-revalidated";("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)},95161,(a,b,c)=>{"use strict";function d(a){return null!==a&&"object"==typeof a&&"then"in a&&"function"==typeof a.then}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"isThenable",{enumerable:!0,get:function(){return d}})},84371,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={dispatchAppRouterAction:function(){return i},dispatchGestureState:function(){return j},refreshOnInstantNavigationUnlock:function(){return h},useActionQueue:function(){return k}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(3988)._(a.r(34542)),g=a.r(95161);a.r(30229);function h(){}function i(a){!0;throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0})}function j(a){!0;throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0})}function k(a){let[b,c]=f.default.useState(a.state),[d,e]=(0,f.useOptimistic)(b),h=(0,f.useMemo)(()=>d,[d]);return(0,g.isThenable)(h)?(0,f.use)(h):h}("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)},47456,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"callServer",{enumerable:!0,get:function(){return g}});let d=a.r(34542),e=a.r(30229),f=a.r(84371);async function g(a,b){return new Promise((c,g)=>{(0,d.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:e.ACTION_SERVER_ACTION,actionId:a,actionArgs:b,resolve:c,reject:g})})})}("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)},49341,(a,b,c)=>{"use strict";let d;Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"findSourceMapURL",{enumerable:!0,get:function(){return d}});("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)},23130,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={HEAD_REQUEST_KEY:function(){return h},ROOT_SEGMENT_REQUEST_KEY:function(){return g},appendSegmentRequestKeyPart:function(){return j},convertSegmentPathToStaticExportFilename:function(){return m},createSegmentRequestKeyPart:function(){return i}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(38371),g="",h="/_head";function i(a){if("string"==typeof a)return a.startsWith(f.PAGE_SEGMENT_KEY)?f.PAGE_SEGMENT_KEY:"/_not-found"===a?"_not-found":l(a);let b=a[0];return"$"+a[2]+"$"+l(b)}function j(a,b,c){return a+"/"+("children"===b?c:`@${l(b)}/${c}`)}let k=/^[a-zA-Z0-9\-_@]+$/;function l(a){return k.test(a)?a:"!"+btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function m(a){return`__next${a.replace(/\//g,".")}.txt`}},34826,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={doesStaticSegmentAppearInURL:function(){return m},getCacheKeyForDynamicParam:function(){return n},getParamValueFromCacheKey:function(){return p},getRenderedPathname:function(){return j},getRenderedSearch:function(){return i},parseDynamicParamFromURLPart:function(){return l},urlSearchParamsToParsedUrlQuery:function(){return q},urlToUrlWithoutFlightMarker:function(){return o}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(38371),g=a.r(23130),h=a.r(48802);function i(a){let b=a.headers.get(h.NEXT_REWRITTEN_QUERY_HEADER);return null!==b?""===b?"":"?"+b:o(new URL(a.url)).search}function j(a){return a.headers.get(h.NEXT_REWRITTEN_PATH_HEADER)??o(new URL(a.url)).pathname}function k(a){try{return encodeURIComponent(decodeURIComponent(a))}catch{return a}}function l(a,b,c){switch(a){case"c":return c<b.length?b.slice(c).map(a=>k(a)):[];case"ci(..)(..)":case"ci(.)":case"ci(..)":case"ci(...)":{let d=a.length-2;return c<b.length?b.slice(c).map((a,b)=>0===b?k(a.slice(d)):k(a)):[]}case"oc":return c<b.length?b.slice(c).map(a=>k(a)):null;case"d":if(c>=b.length)return"";return k(b[c]);case"di(..)(..)":case"di(.)":case"di(..)":case"di(...)":{let d=a.length-2;if(c>=b.length)return"";return k(b[c].slice(d))}default:return""}}function m(a){return!(a===g.ROOT_SEGMENT_REQUEST_KEY||a.startsWith(f.PAGE_SEGMENT_KEY)||"("===a[0]&&a.endsWith(")"))&&a!==f.DEFAULT_SEGMENT_KEY&&"/_not-found"!==a}function n(a,b){return"string"==typeof a?(0,f.addSearchParamsIfPageSegment)(a,Object.fromEntries(new URLSearchParams(b))):null===a?"":a.join("/")}function o(a){let b=new URL(a);return b.searchParams.delete(h.NEXT_RSC_UNION_QUERY),b}function p(a,b){return"c"===b||"oc"===b?a.split("/"):a}function q(a){let b={};for(let[c,d]of a.entries())void 0===b[c]?b[c]=d:Array.isArray(b[c])?b[c].push(d):b[c]=[b[c],d];return b}("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)},66400,(a,b,c)=>{"use strict";function d(a,b=!0){return a.pathname+a.search+(b?a.hash:"")}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createHrefFromUrl",{enumerable:!0,get:function(){return d}}),("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)},17691,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={createInitialRSCPayloadFromFallbackPrerender:function(){return j},getFlightDataPartsFromPath:function(){return i},getNextFlightSegmentPath:function(){return k},normalizeFlightData:function(){return l},prepareFlightRouterStateForRequest:function(){return m}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(38371),g=a.r(34826),h=a.r(66400);function i(a){let[b,c,d,e]=a.slice(-4),f=a.slice(0,-4);return{pathToSegment:f.slice(0,-1),segmentPath:f,segment:f[f.length-1]??"",tree:b,seedData:c,head:d,isHeadPartial:e,isRootRender:4===a.length}}function j(a,b){let c=(0,g.getRenderedPathname)(a),d=(0,g.getRenderedSearch)(a),e=(0,h.createHrefFromUrl)(new URL(location.href)),f=b.f[0],i=f[0],j={c:e.split("/"),q:d,i:b.i,f:[[function a(b,c,d,e){let f,h,i=b[0];if("string"==typeof i)f=i,h=(0,g.doesStaticSegmentAppearInURL)(i);else{let a=i[0],b=i[2],j=i[3],k=(0,g.parseDynamicParamFromURLPart)(b,d,e);f=[a,(0,g.getCacheKeyForDynamicParam)(k,c),b,j],h=!0}let j=h?e+1:e,k=b[1],l={};for(let b in k){let e=k[b];l[b]=a(e,c,d,j)}return[f,l,null,b[3],b[4]]}(i,d,c.split("/").filter(a=>""!==a),0),f[1],f[2],f[2]]],m:b.m,G:b.G,S:b.S,h:b.h};return b.b&&(j.b=b.b),j}function k(a){return a.slice(2)}function l(a){return"string"==typeof a?a:a.map(a=>i(a))}function m(a,b){return b?encodeURIComponent(JSON.stringify(a)):encodeURIComponent(JSON.stringify(function a(b){let[c,d,e,g,h]=b,i=function(a){if("string"==typeof a)return a.startsWith(f.PAGE_SEGMENT_KEY+"?")?f.PAGE_SEGMENT_KEY:a;let[b,c,d]=a;return[b,c,d,null]}(c),j={};for(let[b,c]of Object.entries(d))j[b]=a(c);let k=[i,j];return g&&(k[2]=null,k[3]=g),void 0!==h&&(k[4]=h),k}(a)))}("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)},12680,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={djb2Hash:function(){return f},hexHash:function(){return g}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){let b=5381;for(let c=0;c<a.length;c++)b=(b<<5)+b+a.charCodeAt(c)|0;return b>>>0}function g(a){return f(a).toString(36).slice(0,5)}},99043,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={computeCacheBustingSearchParam:function(){return k},computeLegacyCacheBustingSearchParam:function(){return l}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(12680),g=new TextEncoder;function h(a){return void 0===a?"0":Array.isArray(a)?a.join(","):a}function i(a,b,c,d){return(void 0===a||"0"===a)&&void 0===b&&void 0===c&&void 0===d?null:[a??"0",h(b),h(c),h(d)].join(",")}async function j(a){var b=new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",g.encode(a))).subarray(0,12);let c="";for(let a=0;a<b.length;a++)c+=String.fromCharCode(b[a]);return btoa(c).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function k(a,b,c,d){let e=i(a,b,c,d);return null===e?"":j(e)}function l(a,b,c,d){let e=i(a,b,c,d);return null===e?"":(0,f.hexHash)(e)}},62635,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={setCacheBustingSearchParam:function(){return i},setCacheBustingSearchParamWithHash:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(99043),g=a.r(48802);async function h(a){return"function"==typeof globalThis.crypto?.subtle?.digest?(0,f.computeCacheBustingSearchParam)(a[g.NEXT_ROUTER_PREFETCH_HEADER],a[g.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],a[g.NEXT_ROUTER_STATE_TREE_HEADER],a[g.NEXT_URL]):(0,f.computeLegacyCacheBustingSearchParam)(a[g.NEXT_ROUTER_PREFETCH_HEADER],a[g.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],a[g.NEXT_ROUTER_STATE_TREE_HEADER],a[g.NEXT_URL])}let i=async(a,b)=>{j(a,await h(b))},j=(a,b)=>{let c=a.search,d=(c.startsWith("?")?c.slice(1):c).split("&").filter(a=>a&&!a.startsWith(`${g.NEXT_RSC_UNION_QUERY}=`));b.length>0?d.push(`${g.NEXT_RSC_UNION_QUERY}=${b}`):d.push(`${g.NEXT_RSC_UNION_QUERY}`),a.search=d.length?`?${d.join("&")}`:""};("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)},81380,(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},80357,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={getNavigationBuildId:function(){return h},setNavigationBuildId:function(){return g}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="";function g(a){f=a}function h(){return f}("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)},78271,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={ACTION_SUFFIX:function(){return q},APP_DIR_ALIAS:function(){return P},CACHE_ONE_YEAR_SECONDS:function(){return F},DOT_NEXT_ALIAS:function(){return N},ESLINT_DEFAULT_DIRS:function(){return ah},GSP_NO_RETURNED_VALUE:function(){return ab},GSSP_COMPONENT_MEMBER_ERROR:function(){return ae},GSSP_NO_RETURNED_VALUE:function(){return ac},HTML_CONTENT_TYPE_HEADER:function(){return g},INFINITE_CACHE:function(){return G},INSTRUMENTATION_HOOK_FILENAME:function(){return L},JSON_CONTENT_TYPE_HEADER:function(){return h},MATCHED_PATH_HEADER:function(){return k},MIDDLEWARE_FILENAME:function(){return H},MIDDLEWARE_LOCATION_REGEXP:function(){return I},NEXT_BODY_SUFFIX:function(){return t},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return D},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return w},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return x},NEXT_CACHE_ROOT_PARAM_TAG_ID:function(){return E},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return C},NEXT_CACHE_TAGS_HEADER:function(){return v},NEXT_CACHE_TAG_MAX_ITEMS:function(){return A},NEXT_CACHE_TAG_MAX_LENGTH:function(){return B},NEXT_DATA_SUFFIX:function(){return r},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return j},NEXT_META_SUFFIX:function(){return s},NEXT_NAV_DEPLOYMENT_ID_HEADER:function(){return u},NEXT_QUERY_PARAM_PREFIX:function(){return i},NEXT_RESUME_HEADER:function(){return y},NEXT_RESUME_STATE_LENGTH_HEADER:function(){return z},NON_STANDARD_NODE_ENV:function(){return af},PAGES_DIR_ALIAS:function(){return M},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return m},PROXY_FILENAME:function(){return J},PROXY_LOCATION_REGEXP:function(){return K},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return X},ROOT_DIR_ALIAS:function(){return O},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return W},RSC_ACTION_ENCRYPTION_ALIAS:function(){return V},RSC_ACTION_PROXY_ALIAS:function(){return S},RSC_ACTION_VALIDATE_ALIAS:function(){return R},RSC_CACHE_WRAPPER_ALIAS:function(){return T},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return U},RSC_MOD_REF_PROXY_ALIAS:function(){return Q},RSC_SEGMENTS_DIR_SUFFIX:function(){return n},RSC_SEGMENT_SUFFIX:function(){return o},RSC_SUFFIX:function(){return p},SERVER_PROPS_EXPORT_ERROR:function(){return aa},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return Z},SERVER_PROPS_SSG_CONFLICT:function(){return $},SERVER_RUNTIME:function(){return ai},SSG_FALLBACK_EXPORT_ERROR:function(){return ag},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return Y},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return _},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return f},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return ad},WEBPACK_LAYERS:function(){return al},WEBPACK_RESOURCE_QUERIES:function(){return am},WEB_SOCKET_MAX_RECONNECTIONS:function(){return aj}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="text/plain",g="text/html; charset=utf-8",h="application/json; charset=utf-8",i="nxtP",j="nxtI",k="x-matched-path",l="x-prerender-revalidate",m="x-prerender-revalidate-if-generated",n=".segments",o=".segment.rsc",p=".rsc",q=".action",r=".json",s=".meta",t=".body",u="x-nextjs-deployment-id",v="x-next-cache-tags",w="x-next-revalidated-tags",x="x-next-revalidate-tag-token",y="next-resume",z="x-next-resume-state-length",A=128,B=256,C=1024,D="_N_T_",E="_N_RP_",F=31536e3,G=0xfffffffe,H="middleware",I=`(?:src/)?${H}`,J="proxy",K=`(?:src/)?${J}`,L="instrumentation",M="private-next-pages",N="private-dot-next",O="private-next-root-dir",P="private-next-app-dir",Q="private-next-rsc-mod-ref-proxy",R="private-next-rsc-action-validate",S="private-next-rsc-server-reference",T="private-next-rsc-cache-wrapper",U="private-next-rsc-track-dynamic-import",V="private-next-rsc-action-encryption",W="private-next-rsc-action-client-wrapper",X="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",Y="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",Z="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",$="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",_="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",aa="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ab="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",ac="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",ad="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ae="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",af='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ag="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ah=["app","pages","components","lib","src"],ai={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},aj=12,ak={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},al={...ak,GROUP:{builtinReact:[ak.reactServerComponents,ak.actionBrowser],serverOnly:[ak.reactServerComponents,ak.actionBrowser,ak.instrument,ak.middleware],neutralTarget:[ak.apiNode,ak.apiEdge],clientOnly:[ak.serverSideRendering,ak.appPagesBrowser],bundled:[ak.reactServerComponents,ak.actionBrowser,ak.serverSideRendering,ak.appPagesBrowser,ak.shared,ak.instrument,ak.middleware],appPages:[ak.reactServerComponents,ak.serverSideRendering,ak.appPagesBrowser,ak.actionBrowser]}},am={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},80471,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function a(b,c){let e=b[0],f=c.segment;if(Array.isArray(e)&&Array.isArray(f)){if(e[0]!==f[0]||e[2]!==f[2])return!0}else if(e!==f)return!0;let g=((b[4]??0)&d.PrefetchHint.IsRootLayout)!=0,h=(c.prefetchHints&d.PrefetchHint.IsRootLayout)!=0;if(g)return!h;if(h)return!0;let i=c.slots,j=b[1];if(null!==i)for(let b in i){let c=i[b],d=j[b];if(void 0===d||a(d,c))return!0}return!1}}});let d=a.r(47631);("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)},26515,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={getLastCommittedTree:function(){return g},setLastCommittedTree:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=null;function g(){return f}function h(a){f=a}("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)},96604,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={cleanup:function(){return n},deleteFromLru:function(){return l},lruPut:function(){return j},updateLruSize:function(){return k}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(15314),g=a.r(78622),h=null,i=0;function j(a){if(h===a)return;let b=a.prev,c=a.next;if(null===c||null===b?(i+=a.size,m()):(b.next=c,c.prev=b),null===h)a.prev=a,a.next=a;else{let b=h.prev;a.prev=b,null!==b&&(b.next=a),a.next=h,h.prev=a}h=a}function k(a,b){let c=a.size;a.size=b,null!==a.next&&(i=i-c+b,m())}function l(a){let b=a.next,c=a.prev;null!==b&&null!==c&&(i-=a.size,a.next=null,a.prev=null,h===a?b===h?h=null:(h=b,c.next=b,b.prev=c):(c.next=b,b.prev=c))}function m(){i<=0x3200000||(0,g.pingPrefetchScheduler)()}function n(){if(!(i<=0x3200000))for(;i>0x2d00000&&null!==h;){let a=h.prev;null!==a&&(0,f.deleteMapEntry)(a)}}("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)},15314,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={Fallback:function(){return g},createCacheMap:function(){return i},deleteFromCacheMap:function(){return n},deleteMapEntry:function(){return o},getFromCacheMap:function(){return j},isValueExpired:function(){return k},setInCacheMap:function(){return l},setSizeInCacheMap:function(){return p}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(96604),g={},h={};function i(){return{parent:null,key:null,value:null,map:null,prev:null,next:null,size:0}}function j(a,b,c,d,e){let i=function a(b,c,d,e,f,i){let j,l;if(null!==e)j=e.value,l=e.parent;else if(f&&i!==h)j=h,l=null;else return null===d.value?d:k(b,c,d.value)?(o(d),null):d;let m=d.map;if(null!==m){let d=m.get(j);if(void 0!==d){let e=a(b,c,d,l,f,j);if(null!==e)return e}let e=m.get(g);if(void 0!==e)return a(b,c,e,l,f,j)}return null}(a,b,c,d,e,0);return null===i||null===i.value?null:((0,f.lruPut)(i),i.value)}function k(a,b,c){return c.staleAt<=a||c.version<b}function l(a,b,c,d){let e=function(a,b,c){let d=a,e=b,f=null;for(;;){let a=f;if(null!==e)f=e.value,e=e.parent;else if(c&&a!==h){if(null===d.value)return d;f=h}else break;let b=d.map;if(null!==b){let a=b.get(f);if(void 0!==a){d=a;continue}}else b=new Map,d.map=b;let g={parent:d,key:f,value:null,map:null,prev:null,next:null,size:0};b.set(f,g),d=g}return d}(a,b,d);m(e,c),(0,f.lruPut)(e),(0,f.updateLruSize)(e,c.size)}function m(a,b){null!==a.value&&(a.value.ref=null,a.value=null);let c=b.ref;a.value=b,b.ref=a,(0,f.updateLruSize)(a,b.size),null!==c&&c!==a&&c.value===b&&o(c)}function n(a){let b=a.ref;null!==b&&(a.ref=null,o(b))}function o(a){a.value=null,(0,f.deleteFromLru)(a);let b=a.map;if(null===b){let b=a.parent,c=a.key;for(;null!==b;){let a=b.map;if(null!==a&&(a.delete(c),0===a.size)&&(b.map=null,null===b.value)){c=b.key,b=b.parent;continue}break}}else{let c=b.get(h);void 0!==c&&null!==c.value&&m(a,c.value)}}function p(a,b){let c=a.ref;null!==c&&(a.size=b,(0,f.updateLruSize)(c,b))}("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)},47317,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={appendLayoutVaryPath:function(){return k},clonePageVaryPathWithNewSearchParams:function(){return r},finalizeLayoutVaryPath:function(){return l},finalizeMetadataVaryPath:function(){return p},finalizePageVaryPath:function(){return n},getFulfilledRouteVaryPath:function(){return j},getFulfilledSegmentVaryPath:function(){return function a(b,c){return{id:b.id,value:null===b.id||c.has(b.id)?b.value:g.Fallback,parent:null===b.parent?null:a(b.parent,c)}}},getPartialLayoutVaryPath:function(){return m},getPartialPageVaryPath:function(){return o},getRenderedSearchFromVaryPath:function(){return s},getRouteVaryPath:function(){return i},getSegmentVaryPathForRequest:function(){return q}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(81801),g=a.r(15314),h=a.r(23130);function i(a,b,c){return{id:null,value:a,parent:{id:"?",value:b,parent:{id:null,value:c,parent:null}}}}function j(a,b,c,d){return{id:null,value:a,parent:{id:"?",value:b,parent:{id:null,value:d?c:g.Fallback,parent:null}}}}function k(a,b,c){return{id:c,value:b,parent:a}}function l(a,b){return{id:null,value:a,parent:b}}function m(a){return a.parent}function n(a,b,c){return{id:null,value:a,parent:{id:"?",value:b,parent:c}}}function o(a){return a.parent.parent}function p(a,b,c){return{id:null,value:a+h.HEAD_REQUEST_KEY,parent:{id:"?",value:b,parent:c}}}function q(a,b){let c=b.varyPath;if(b.isPage&&a!==f.FetchStrategy.Full&&a!==f.FetchStrategy.PPRRuntime){let a=c.parent.parent;return{id:null,value:c.value,parent:{id:"?",value:g.Fallback,parent:a}}}return c}function r(a,b){let c=a.parent;return{id:null,value:a.value,parent:{id:"?",value:b,parent:c.parent}}}function s(a){let b=a.parent.value;return"string"==typeof b?b:null}("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)},27947,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={discoverKnownRoute:function(){return k},matchKnownRoute:function(){return m},resetKnownRoutes:function(){return n}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(11555),g=a.r(34826),h=a.r(47317);function i(){return{staticChildren:null,dynamicChild:null,dynamicChildParamName:null,dynamicChildParamType:null,pattern:null}}let j=i();function k(a,b,c,d,e,g,h,i,k,m){let n=b.split("/").filter(a=>""!==a),o=n.length>0?n[0]:null,p=n.length>0?n.slice(1):[];if(null!==d){let n=(0,f.fulfillRouteCacheEntry)(a,d,e,g,h,i,k);return m&&(n.hasDynamicRewrite=!0),l(j,e,o,p,n,a,b,c,e,g,h,i,k,m),n}return l(j,e,o,p,null,a,b,c,e,g,h,i,k,m)}function l(a,b,c,d,e,h,j,k,m,n,o,p,q,r){let s,t,u=b.segment,v=null,w=null,x=null;"string"==typeof u?s=(0,g.doesStaticSegmentAppearInURL)(u):(v=u[0],w=u[2],x=u[3],s=!0);let y=a,z=c,A=d;if(s){if(null===v&&c!==u)return null!==e?e:(0,f.writeRouteIntoCache)(h,j,k,m,n,o,p,q);if(null!==v&&null!==w){if(y=function(a,b,c){if(null!==a.dynamicChild)return a.dynamicChild;let d=i();return a.dynamicChild=d,a.dynamicChildParamName=b,a.dynamicChildParamType=c,d}(a,v,w),null!==x)for(let b of(null===a.staticChildren&&(a.staticChildren=new Map),x))a.staticChildren.has(b)||a.staticChildren.set(b,i())}else{null===a.staticChildren&&(a.staticChildren=new Map);let b=a.staticChildren.get(c);void 0===b&&(b=i(),a.staticChildren.set(c,b)),y=b}z=d.length>0?d[0]:null,A=d.length>0?d.slice(1):[]}let B=b.slots,C=null;if(null!==B){for(let a in B){let b=B[a];null===b.refreshState&&(C=l(y,b,z,A,e,h,j,k,m,n,o,p,q,r))}return null!==C?C:null!==e?e:(0,f.writeRouteIntoCache)(h,j,k,m,n,o,p,q)}return null!==y.pattern?(r&&(y.pattern.hasDynamicRewrite=!0),y.pattern):(t=null!==e?e:(0,f.writeRouteIntoCache)(h,j,k,m,n,o,p,q),r&&(t.hasDynamicRewrite=!0),y.pattern=t,t)}function m(a,b){let c=a.split("/").filter(a=>""!==a),d=new Map,e=function a(b,c,d,e){let f=d<c.length?c[d]:null;if(null===b.staticChildren){if(null===f){let a=b.pattern;if(null!==a&&!a.hasDynamicRewrite)return{part:b,pattern:a}}return null}if(null!==f){let g=b.staticChildren.get(f);if(void 0!==g){if(null===g.pattern&&null===g.dynamicChild&&null===g.staticChildren)return null;let b=a(g,c,d+1,e);return null!==b?b:null}}if(null!==b.dynamicChild){let g=b.dynamicChild,h=b.dynamicChildParamName,i=b.dynamicChildParamType,j=g.pattern;switch(i){case"c":if(null!==j&&!j.hasDynamicRewrite&&null!==f)return e.set(h,c.slice(d)),{part:g,pattern:j};break;case"oc":if(null!==j&&!j.hasDynamicRewrite){if(null!==f)return e.set(h,c.slice(d)),{part:g,pattern:j};if(null===b.pattern||b.pattern.hasDynamicRewrite)return e.set(h,[]),{part:g,pattern:j}}break;case"d":if(null!==f)return e.set(h,f),a(g,c,d+1,e);break;case"ci(..)(..)":case"ci(.)":case"ci(..)":case"ci(...)":case"di(..)(..)":case"di(.)":case"di(..)":case"di(...)":return null}}if(null===f){let a=b.pattern;if(null!==a&&!a.hasDynamicRewrite)return{part:b,pattern:a}}return null}(j,c,0,d);if(null===e)return null;let g=e.part,i=e.pattern;if(i.couldBeIntercepted)return null;let k={metadataVaryPath:null},l=function a(b,c,d,e,f){let g,i=b.segment,j=i;if("string"!=typeof i){let a=i[0],b=i[2],d=i[3],f=c.get(a);if(void 0!==f){let c=Array.isArray(f)?f.join("/"):f;j=[a,c,b,d],g=(0,h.appendLayoutVaryPath)(e,c,a)}else g=e}else g=e;let k=null;if(null!==b.slots)for(let e in k={},b.slots)k[e]=a(b.slots[e],c,d,g,f);if(b.isPage){let a=(0,h.finalizePageVaryPath)(b.requestKey,d,g);return null===f.metadataVaryPath&&(f.metadataVaryPath=(0,h.finalizeMetadataVaryPath)(b.requestKey,d,g)),{requestKey:b.requestKey,segment:j,refreshState:b.refreshState,slots:k,prefetchHints:b.prefetchHints,isPage:!0,varyPath:a}}{let a=(0,h.finalizeLayoutVaryPath)(b.requestKey,g);return{requestKey:b.requestKey,segment:j,refreshState:b.refreshState,slots:k,prefetchHints:b.prefetchHints,isPage:!1,varyPath:a}}}(i.tree,d,b,null,k),m=k.metadataVaryPath;if(null===m)return null;let n=(0,f.createMetadataRouteTree)(m),o={canonicalUrl:a+b,status:f.EntryStatus.Fulfilled,blockedTasks:null,tree:l,metadata:n,couldBeIntercepted:i.couldBeIntercepted,supportsPerSegmentPrefetching:i.supportsPerSegmentPrefetching,hasDynamicRewrite:!1,renderedSearch:b,ref:null,size:i.size,staleAt:i.staleAt,version:i.version};return g.pattern=o,o}function n(){j=i()}("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)},53169,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d,e={FreshnessPolicy:function(){return w},createInitialCacheNodeForHydration:function(){return y},isDeferredRsc:function(){return M},spawnDynamicRequests:function(){return H},startPPRNavigation:function(){return z}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});let g=a.r(47631),h=a.r(38371),i=a.r(46073),j=a.r(66400),k=a.r(82649),l=a.r(84371),m=a.r(30229),n=a.r(80471),o=a.r(26515),p=a.r(71946),q=a.r(11555),r=a.r(81801),s=a.r(27947),t=a.r(78271),u=a.r(47317),v=a.r(72642);var w=((d={})[d.Default=0]="Default",d[d.Hydration=1]="Hydration",d[d.HistoryTraversal=2]="HistoryTraversal",d[d.RefreshAll=3]="RefreshAll",d[d.HMRRefresh=4]="HMRRefresh",d[d.Gesture=5]="Gesture",d);let x=()=>{};function y(a,b,c,d,e){return A(a,b,null,1,c,d,e,!1,{separateRefreshUrls:null,scrollRef:null})}function z(a,b,c,d,e,f,k,l,m,o,p,r,s){let t={canonicalUrl:(0,j.createHrefFromUrl)(b),renderedSearch:c};return function a(b,c,d,e,f,j,k,l,m,o,p,r,s,t,u,v){var w,x,y;let z,C,G,H,I=e[0],J=B(f);if(!(0,i.matchSegment)(J,I))return!l&&(0,n.isNavigatingToNewRootLayout)(e,f)||J===h.NOT_FOUND_SEGMENT_KEY?null:A(b,f,j,k,m,o,p,s,v);let K=f.slots,L=e[1],M=null!==m?m[1]:null,N=l||(f.prefetchHints&g.PrefetchHint.IsRootLayout)!=0,O=!1;switch(k){case 0:case 2:case 1:case 5:O=!1;break;case 3:case 4:O=!0}let P=null===K;if(void 0===d||O||P&&r){let a=E(b,f,null!==m?m[0]:null,j,o,k,p);G=a.cacheNode,H=a.needsDynamicRequest,void 0!==d&&(G.scrollRef=d.scrollRef)}else{w=!1,G=F((x=d).rsc,w?null:x.prefetchRsc,x.head,w?null:x.prefetchHead,x.scrollRef),H=!1}let Q=f.refreshState,R=null!=Q?Q:u;H&&null!==R&&(y=v,z=R.canonicalUrl,null===(C=y.separateRefreshUrls)?y.separateRefreshUrls=new Set([z]):C.add(z));let S={},T=null,U=!1,V={},W=null;if(null!==K){let e=void 0!==d?d.slots:null;for(let d in G.slots=W={},T=new Map,K){let g=K[d],i=L[d];if(void 0===i)return null;let l=null!==M?M[d]:null,m=i[0],n=B(g),u=o;2!==k&&n===h.DEFAULT_SEGMENT_KEY&&m!==h.DEFAULT_SEGMENT_KEY&&(n=B(g=function(a,b,c,d){let e,f,g=d[2];null!=g?(e=g[0],f=g[1]):(e=c.canonicalUrl,f=c.renderedSearch);let h=(0,q.convertReusedFlightRouterStateToRouteTree)(a,b,d,f,{metadataVaryPath:null});return h.refreshState={canonicalUrl:e,renderedSearch:f},h}(f,d,t,i)),l=null,u=null);let w=a(b,c,null!==e?e[d]:void 0,i,g,j,k,N,l??null,u,p,r,s||H,t,R,v);if(null===w)return null;T.set(d,w),W[d]=w.node;let x=w.route;S[d]=x;let y=w.dynamicRequestTree;null!==y?(U=!0,V[d]=y):V[d]=x}}let X=[B(f),S,null!==R?[R.canonicalUrl,R.renderedSearch]:null,null,f.prefetchHints];return{status:+!H,route:X,node:G,dynamicRequestTree:D(X,V,H,U,s),refreshState:R,children:T}}(a,b,null!==d?d:void 0,e,f,k,l,!1,m,o,p,r,!1,t,null,s)}function A(a,b,c,d,e,f,g,h,i){let j=B(b),k=b.slots,l=null!==e?e[1]:null,m=E(a,b,null!==e?e[0]:null,c,f,d,g),n=m.cacheNode,o=m.needsDynamicRequest;null===k&&function(a,b,c){switch(a){case 0:case 5:case 3:case 4:null===c.scrollRef&&(c.scrollRef={current:!0}),b.scrollRef=c.scrollRef}}(d,n,i);let p={},q=null,r=!1,s={},t=null;if(null!==k)for(let b in n.slots=t={},q=new Map,k){let e=A(a,k[b],c,d,(null!==l?l[b]:null)??null,f,g,h||o,i);q.set(b,e),t[b]=e.node;let j=e.route;p[b]=j;let m=e.dynamicRequestTree;null!==m?(r=!0,s[b]=m):s[b]=j}let u=[j,p,null,null,b.prefetchHints];return{status:+!o,route:u,node:n,dynamicRequestTree:D(u,s,o,r,h),refreshState:null,children:q}}function B(a){if(a.isPage){let b=(0,u.getRenderedSearchFromVaryPath)(a.varyPath);if(null===b)return h.PAGE_SEGMENT_KEY;let c=JSON.stringify(Object.fromEntries(new URLSearchParams(b)));return"{}"!==c?h.PAGE_SEGMENT_KEY+"?"+c:h.PAGE_SEGMENT_KEY}return a.segment}function C(a,b){let c=[a[0],b];return 2 in a&&(c[2]=a[2]),3 in a&&(c[3]=a[3]),4 in a&&(c[4]=a[4]),c}function D(a,b,c,d,e){let f=null;return c?(f=C(a,b),e||(f[3]="refetch")):f=d?C(a,b):null,f}function E(a,b,c,d,e,f,g){let h,i,j,k=b.isPage;switch(f){case 0:{let c=(0,v.readFromBFCacheDuringRegularNavigation)(a,b.varyPath);if(null!==c)return{cacheNode:F(c.rsc,c.prefetchRsc,c.head,c.prefetchHead),needsDynamicRequest:!1};break}case 1:{let f=k?e:null;return(0,v.writeToBFCache)(a,b.varyPath,c,null,f,null,g),k&&null!==d&&(0,v.writeHeadToBFCache)(a,d,f,null,g),{cacheNode:F(c,null,f,null),needsDynamicRequest:!1}}case 2:let l=(0,v.readFromBFCache)(b.varyPath);if(null!==l){let a=l.rsc,b=!M(a)||"pending"!==a.status;return{cacheNode:F(l.rsc,b?null:l.prefetchRsc,l.head,b?null:l.prefetchHead),needsDynamicRequest:!1}}}let m=null,n=!0,o=(0,q.readSegmentCacheEntry)(a,b.varyPath);if(null!==o)switch(o.status){case q.EntryStatus.Fulfilled:m=o.rsc,n=o.isPartial;break;case q.EntryStatus.Pending:m=(0,q.waitForSegmentCacheEntry)(o).then(a=>null!==a?a.rsc:null),n=o.isPartial;case q.EntryStatus.Empty:case q.EntryStatus.Rejected:}null!==c?(n?(h=m,i=c):(h=null,i=m),j=!1):(n?(h=m,i=N()):(h=null,i=m),j=n);let p=null,r=null,s=k;if(k){let b=null,c=!0;if(null!==d){let e=(0,q.readSegmentCacheEntry)(a,d);if(null!==e)switch(e.status){case q.EntryStatus.Fulfilled:b=e.rsc,c=e.isPartial;break;case q.EntryStatus.Pending:b=(0,q.waitForSegmentCacheEntry)(e).then(a=>null!==a?a.rsc:null),c=e.isPartial;case q.EntryStatus.Empty:case q.EntryStatus.Rejected:}}null!==e?(c?(p=b,r=e):(p=null,r=b),s=!1):(c?(p=b,r=N()):(p=null,r=b),s=c)}return 5!==f&&((0,v.writeToBFCache)(a,b.varyPath,i,h,r,p,g),k&&null!==d&&(0,v.writeHeadToBFCache)(a,d,r,p,g)),{cacheNode:F(i,h,r,p),needsDynamicRequest:j||s}}function F(a,b,c,d,e=null){return{rsc:a,prefetchRsc:b,head:c,prefetchHead:d,slots:null,scrollRef:e}}let G=!1;function H(a,b,c,d,e,f,g){let h=a.dynamicRequestTree;if(null===h){G=!1;return}let i=K(a,h,b,c,d,f),k=e.separateRefreshUrls,l=null;if(null!==k){l=[];let e=(0,j.createHrefFromUrl)(b);for(let b of k)b!==e&&null!==h&&l.push(K(a,h,new URL(b,location.origin),c,d,f))}I(a,c,i,l,f,g).then(x,x)}async function I(a,b,c,d,e,f){var g,h;let i=await (g=c,h=d,new Promise(a=>{let b=b=>{0===b.exitStatus?0==--d&&a(0):a(b.exitStatus)},c=()=>a(2),d=1;g.then(b,c),null!==h&&(d+=h.length,h.forEach(a=>a.then(b,c)))}));switch(0===i&&(i=function a(b,c,d){var e,f,g;let h,i,j;0===b.status?(b.status=2,e=b.node,f=c,g=d,M(i=e.rsc)&&(null===f?i.resolve(null,g):i.reject(f,g)),M(j=e.head)&&j.resolve(null,g),h=null===b.refreshState?1:2):h=0;let k=b.children;if(null!==k)for(let[,b]of k){let e=a(b,c,d);e>h&&(h=e)}return h}(a,null,null)),i){case 0:G=!1;return;case 1:{let d=await c;J(!1,d.url,b,d.seed,a.route,e,f);return}case 2:{let d=await c;J(!0,d.url,b,d.seed,a.route,e,f);return}default:return i}}function J(a,b,c,d,e,f,g){if(null!==f)(0,q.markRouteEntryAsDynamicRewrite)(f);else if(null!==d){let a=d.metadataVaryPath;if(null!==a){let e=Date.now();(0,s.discoverKnownRoute)(e,b.pathname,c,null,d.routeTree,a,!1,(0,j.createHrefFromUrl)(b),!1,!0)}}(0,q.invalidateRouteCacheEntries)(c,e),a=a||G,G=!0;let h=(0,o.getLastCommittedTree)(),i=null!==h&&e!==h?g:"replace",k={type:m.ACTION_SERVER_PATCH,previousTree:e,url:b,nextUrl:c,seed:d,mpa:a,navigateType:i};(0,l.dispatchAppRouterAction)(k)}async function K(a,b,c,d,e,f){try{let g=await (0,k.fetchServerResponse)(c,{flightRouterState:b,nextUrl:d,isHmrRefresh:4===e});if("string"==typeof g)return{exitStatus:2,url:new URL(g,location.origin),seed:null};let h=Date.now(),j=(0,p.convertServerPatchToFullTree)(h,a.route,g.flightData,g.renderedSearch,g.dynamicStaleTime);if(null!==f&&null!==g.staticStageData){let{response:a,isResponsePartial:c}=g.staticStageData;(0,q.getStaleAt)(h,a.s).then(d=>{let e=g.responseHeaders.get(t.NEXT_NAV_DEPLOYMENT_ID_HEADER)??a.b;(0,q.writeStaticStageResponseIntoCache)(h,a.f,e,a.h,d,b,g.renderedSearch,c)}).catch(()=>{})}null!==f&&null!==g.runtimePrefetchStream&&(0,q.processRuntimePrefetchStream)(h,g.runtimePrefetchStream,b,g.renderedSearch).then(a=>{null!==a&&(0,q.writeDynamicRenderResponseIntoCache)(h,r.FetchStrategy.PPRRuntime,a.flightDatas,a.buildId,a.isResponsePartial,a.headVaryParams,a.staleAt,a.navigationSeed,null)}).catch(()=>{});let l=(0,v.computeDynamicStaleAt)(h,g.dynamicStaleTime);return{exitStatus:+!!function a(b,c,d,e,f,g){0===b.status&&null!==d&&(b.status=1,function(a,b,c,d){let e=a.rsc,f=b[0];if(null===f)return;null===e?a.rsc=f:M(e)&&e.resolve(f,d);let g=a.head;M(g)&&g.resolve(c,d)}(b.node,d,e,g),(0,v.updateBFCacheEntryStaleAt)(c.varyPath,f));let h=b.children,j=c.slots,k=null!==d?d[1]:null,l=!1;if(null!==h)if(null!==j)for(let b in j){let c=j[b],d=null!==k?k[b]:null,m=h.get(b);if(void 0===m)l=!0;else{let b=m.route[0],h=B(c);(0,i.matchSegment)(h,b)&&null!=d&&a(m,c,d,e,f,g)&&(l=!0)}}else null!==j&&(l=!0);return l}(a,j.routeTree,j.data,j.head,l,g.debugInfo),url:new URL(g.canonicalUrl,location.origin),seed:j}}catch{return{exitStatus:2,url:c,seed:null}}}let L=Symbol();function M(a){return a&&"object"==typeof a&&a.tag===L}function N(){let a,b,c=[],d=new Promise((c,d)=>{a=c,b=d});return d.status="pending",d.resolve=(b,e)=>{"pending"===d.status&&(d.status="fulfilled",d.value=b,null!==e&&c.push.apply(c,e),a(b))},d.reject=(a,e)=>{"pending"===d.status&&(d.status="rejected",d.reason=a,null!==e&&c.push.apply(c,e),b(a))},d.tag=L,d._debugInfo=c,d}("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)},62736,(a,b,c)=>{"use strict";function d(a){return a.startsWith("/")?a:`/${a}`}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureLeadingSlash",{enumerable:!0,get:function(){return d}})},8738,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={compareAppPaths:function(){return i},normalizeAppPath:function(){return h},normalizeRscURL:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(62736),g=a.r(38371);function h(a){return(0,f.ensureLeadingSlash)(a.split("/").reduce((a,b,c,d)=>!b||(0,g.isGroupSegment)(b)||"@"===b[0]||("page"===b||"route"===b)&&c===d.length-1?a:`${a}/${b}`,""))}function i(a,b){let c=a.includes("/@"),d=b.includes("/@");return c&&!d?-1:!c&&d?1:a.localeCompare(b)}function j(a){return a.replace(/\.rsc($|\?)/,"$1")}},49896,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={INTERCEPTION_ROUTE_MARKERS:function(){return g},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(8738),g=["(..)(..)","(.)","(..)","(...)"];function h(a){return void 0!==a.split("/").find(a=>g.find(b=>a.startsWith(b)))}function i(a){let b,c,d;for(let e of a.split("/"))if(c=g.find(a=>e.startsWith(a))){[b,d]=a.split(c,2);break}if(!b||!c||!d)throw Object.defineProperty(Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(b=(0,f.normalizeAppPath)(b),c){case"(.)":d="/"===b?`/${d}`:b+"/"+d;break;case"(..)":if("/"===b)throw Object.defineProperty(Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});d=b.split("/").slice(0,-1).concat(d).join("/");break;case"(...)":d="/"+d;break;case"(..)(..)":let e=b.split("/");if(e.length<=2)throw Object.defineProperty(Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});d=e.slice(0,-2).concat(d).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:b,interceptedRoute:d}}},21594,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={computeChangedPath:function(){return n},extractPathFromFlightRouterState:function(){return l},extractSourcePageFromFlightRouterState:function(){return m},getSelectedParams:function(){return function a(b,c={}){for(let d of Object.values(b[1])){let b=d[0],e=Array.isArray(b),f=e?b[1]:b;!f||f.startsWith(g.PAGE_SEGMENT_KEY)||(e&&("c"===b[2]||"oc"===b[2])?c[b[0]]=b[1].split("/"):e&&(c[b[0]]=b[1]),c=a(d,c))}return c}}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(49896),g=a.r(38371),h=a.r(46073),i=a=>"/"===a[0]?a.slice(1):a,j=a=>"string"==typeof a?"children"===a?"":a:a[1];function k(a){return a.reduce((a,b)=>""===(b=i(b))||(0,g.isGroupSegment)(b)?a:`${a}/${b}`,"")||"/"}function l(a){let b=Array.isArray(a[0])?a[0][1]:a[0];if(b===g.DEFAULT_SEGMENT_KEY||f.INTERCEPTION_ROUTE_MARKERS.some(a=>b.startsWith(a)))return;if(b.startsWith(g.PAGE_SEGMENT_KEY))return"";let c=[j(b)],d=a[1]??{},e=d.children?l(d.children):void 0;if(void 0!==e)c.push(e);else for(let[a,b]of Object.entries(d)){if("children"===a)continue;let d=l(b);void 0!==d&&c.push(d)}return k(c)}function m(a){let b=function a(b){let c=(a=>{if("string"==typeof a)return"children"===a?"":a.startsWith(g.PAGE_SEGMENT_KEY)?"page":a;let[b,,c]=a;switch(c){case"c":return`[...${b}]`;case"ci(..)(..)":return`(..)(..)[...${b}]`;case"ci(.)":return`(.)[...${b}]`;case"ci(..)":return`(..)[...${b}]`;case"ci(...)":return`(...)[...${b}]`;case"oc":return`[[...${b}]]`;case"d":default:return`[${b}]`;case"di(..)(..)":return`(..)(..)[${b}]`;case"di(.)":return`(.)[${b}]`;case"di(..)":return`(..)[${b}]`;case"di(...)":return`(...)[${b}]`}})(b[0]);if(c===g.DEFAULT_SEGMENT_KEY)return;if("page"===c)return[c];let d=b[1]??{},e=d.children?a(d.children):void 0;if(void 0!==e)return""===c?e:[i(c),...e];for(let[b,e]of Object.entries(d)){if("children"===b)continue;let d=a(e);if(void 0!==d)return""===c?d:[i(c),...d]}}(a);return b?`/${b.join("/")}`:void 0}function n(a,b){let c=function a(b,c){let[d,e]=b,[g,i]=c,k=j(d),m=j(g);if(f.INTERCEPTION_ROUTE_MARKERS.some(a=>k.startsWith(a)||m.startsWith(a)))return"";if(!(0,h.matchSegment)(d,g))return l(c)??"";for(let b in e)if(i[b]){let c=a(e[b],i[b]);if(null!==c)return`${j(g)}/${c}`}return null}(a,b);return null==c||"/"===c?c:k(c.split("/"))}("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)},86475,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"isJavaScriptURLString",{enumerable:!0,get:function(){return e}});let d=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function e(a){return d.test(""+a)}("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)},81732,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={isNavigationLocked:function(){return i},startListeningForInstantNavigationCookie:function(){return f},transitionToCapturedSPA:function(){return g},updateCapturedSPAToTree:function(){return h},waitForNavigationLockIfActive:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(){}function g(a,b){}function h(a,b){}function i(){return!1}async function j(){}a.r(48802),a.r(84371),("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)},71946,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={completeHardNavigation:function(){return w},completeSoftNavigation:function(){return x},completeTraverseNavigation:function(){return y},convertServerPatchToFullTree:function(){return z},navigate:function(){return r},navigateToKnownRoute:function(){return s}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(82649),g=a.r(53169),h=a.r(66400),i=a.r(78271),j=a.r(11555),k=a.r(27947),l=a.r(90246);a.r(78622);let m=a.r(81801);a.r(47214);let n=a.r(30229),o=a.r(21594),p=a.r(86475),q=a.r(72642);function r(a,b,c,d,e,f,g,h,i,k){return function(a,b,c,d,e,f,g,h,i,k){let m=Date.now(),n=b.href,o=(0,l.createCacheKey)(n,g),p=(0,j.readRouteCacheEntry)(m,o);if(null!==p&&p.status===j.EntryStatus.Fulfilled)return t(m,a,b,c,d,g,e,f,h,i,k,p);if(null===p||p.status!==j.EntryStatus.Rejected){let l=(0,j.deprecated_requestOptimisticRouteCacheEntry)(m,b,g);if(null!==l)return t(m,a,b,c,d,g,e,f,h,i,k,l)}return v(m,a,b,c,d,g,e,f,h,i,k).catch(()=>a)}(a,b,c,d,e,f,g,h,i,k)}function s(a,b,c,d,e,f,h,i,j,k,l,m,n,o,p){let q={separateRefreshUrls:null,scrollRef:null},r=c.href===f.href,s=(0,g.startPPRNavigation)(a,f,h,i,j,e.routeTree,e.metadataVaryPath,k,e.data,e.head,e.dynamicStaleAt,r,q);return null!==s?(k!==g.FreshnessPolicy.Gesture&&(0,g.spawnDynamicRequests)(s,c,l,k,q,p,n),x(b,c,l,s.route,s.node,e.renderedSearch,d,n,m,q.scrollRef,o)):w(b,c,n)}function t(a,b,c,d,e,f,g,h,i,j,k,l){let m=l.tree,n=l.canonicalUrl+c.hash,o={renderedSearch:l.renderedSearch,routeTree:m,metadataVaryPath:l.metadata.varyPath,data:null,head:null,dynamicStaleAt:(0,q.computeDynamicStaleAt)(a,q.UnknownDynamicStaleTime)};return s(a,b,c,n,o,d,e,g,h,i,f,j,k,null,l)}let u=["",{},null,"refetch"];async function v(a,b,c,d,e,l,n,o,p,q,r){let t;switch(p){case g.FreshnessPolicy.Default:case g.FreshnessPolicy.HistoryTraversal:case g.FreshnessPolicy.Gesture:t=o;break;case g.FreshnessPolicy.Hydration:case g.FreshnessPolicy.RefreshAll:case g.FreshnessPolicy.HMRRefresh:t=u;break;default:t=o}let v=(0,f.fetchServerResponse)(c,{flightRouterState:t,nextUrl:l}),x=await v;if("string"==typeof x)return w(b,new URL(x,location.origin),r);let{flightData:y,canonicalUrl:A,renderedSearch:B,couldBeIntercepted:C,supportsPerSegmentPrefetching:D,dynamicStaleTime:E,staticStageData:F,runtimePrefetchStream:G,responseHeaders:H,debugInfo:I}=x,J=z(a,o,y,B,E),K=J.metadataVaryPath;if(null!==K){if((0,k.discoverKnownRoute)(a,c.pathname,l,null,J.routeTree,K,C,(0,h.createHrefFromUrl)(A),D,!1),null!==F){let{response:b,isResponsePartial:c}=F;(0,j.getStaleAt)(a,b.s).then(d=>{let e=H.get(i.NEXT_NAV_DEPLOYMENT_ID_HEADER)??b.b;(0,j.writeStaticStageResponseIntoCache)(a,b.f,e,b.h,d,o,B,c)}).catch(()=>{})}null!==G&&(0,j.processRuntimePrefetchStream)(a,G,o,B).then(b=>{null!==b&&(0,j.writeDynamicRenderResponseIntoCache)(a,m.FetchStrategy.PPRRuntime,b.flightDatas,b.buildId,b.isResponsePartial,b.headVaryParams,b.staleAt,b.navigationSeed,null)}).catch(()=>{})}return s(a,b,c,(0,h.createHrefFromUrl)(A),J,d,e,n,o,p,l,q,r,I,null)}function w(a,b,c){return(0,p.isJavaScriptURLString)(b.href)?(console.error("Next.js has blocked a javascript: URL as a security precaution."),a):{canonicalUrl:b.origin===location.origin?(0,h.createHrefFromUrl)(b):b.href,pushRef:{pendingPush:"push"===c,mpaNavigation:!0,preserveCustomHistoryState:!1},renderedSearch:a.renderedSearch,focusAndScrollRef:a.focusAndScrollRef,cache:a.cache,tree:a.tree,nextUrl:a.nextUrl,previousNextUrl:a.previousNextUrl,debugInfo:null}}function x(a,b,c,d,e,f,g,h,i,j,k){let l,m,p=(0,o.computeChangedPath)(a.tree,d)||a.nextUrl,q=new URL(a.canonicalUrl,b),r=b.pathname===q.pathname&&b.search===q.search&&b.hash!==q.hash;if(i===n.ScrollBehavior.NoScroll)null!==j&&(j.current=!1),l=a.focusAndScrollRef.scrollRef,m=!1;else if(r){let b=a.focusAndScrollRef.scrollRef;null!==b&&(b.current=!1),null!==j&&(j.current=!1),l={current:!0},m=!0}else{if(l=j,null!==j){let b=a.focusAndScrollRef.scrollRef;null!==b&&(b.current=!1)}m=!1}return{canonicalUrl:g,renderedSearch:f,pushRef:{pendingPush:"push"===h,mpaNavigation:!1,preserveCustomHistoryState:!1},focusAndScrollRef:{scrollRef:l,forceScroll:m,onlyHashChange:r,hashFragment:i!==n.ScrollBehavior.NoScroll&&""!==b.hash?decodeURIComponent(b.hash.slice(1)):a.focusAndScrollRef.hashFragment},cache:e,tree:d,nextUrl:p,previousNextUrl:c,debugInfo:k}}function y(a,b,c,d,e,f){return{canonicalUrl:(0,h.createHrefFromUrl)(b),renderedSearch:c,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:a.focusAndScrollRef,cache:d,tree:e,nextUrl:f,previousNextUrl:null,debugInfo:null}}function z(a,b,c,d,e){let f=b,g=null,h=null;if(null!==c)for(let{segmentPath:a,tree:b,seedData:e,head:i}of c){let c=function a(b,c,d,e,f,g,h){let i;if(h===f.length)return{tree:d,data:e};let j=f[h],k=b[1],l=null!==c?c[1]:null,m={},n={};for(let b in k){let c=k[b],i=null!==l?l[b]??null:null;if(b===j){let j=a(c,i,d,e,f,g,h+2);m[b]=j.tree,n[b]=j.data}else m[b]=c,n[b]=i}if(i=[b[0],m],2 in b){let a=b[2];null!=a&&(i[2]=[a[0],g])}return 3 in b&&(i[3]=b[3]),4 in b&&(i[4]=b[4]),{tree:i,data:[null,n,null,!0,null]}}(f,g,b,e,a,d,0);f=c.tree,g=c.data,h=i}let i=f,k={metadataVaryPath:null};return{routeTree:(0,j.convertRootFlightRouterStateToRouteTree)(i,d,k),metadataVaryPath:k.metadataVaryPath,data:g,renderedSearch:d,head:h,dynamicStaleAt:(0,q.computeDynamicStaleAt)(a,e)}}("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)},73584,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DYNAMIC_STALETIME_MS:function(){return i},STATIC_STALETIME_MS:function(){return j},navigateReducer:function(){return k}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(71946),g=a.r(11555),h=a.r(53169),i=1e3*Number("0"),j=(0,g.getStaleTimeMs)(Number("300"));function k(a,b){let{url:c,isExternalUrl:d,navigateType:e,scrollBehavior:g}=b;if(d||document.getElementById("__next-page-redirect"))return(0,f.completeHardNavigation)(a,c,e);let i=new URL(a.canonicalUrl,location.origin),j=a.renderedSearch;return(0,f.navigate)(a,c,i,j,a.cache,a.tree,a.nextUrl,h.FreshnessPolicy.Default,g,e)}("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)},72642,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={UnknownDynamicStaleTime:function(){return h},computeDynamicStaleAt:function(){return i},invalidateBfCache:function(){return j},readFromBFCache:function(){return n},readFromBFCacheDuringRegularNavigation:function(){return o},updateBFCacheEntryStaleAt:function(){return m},writeHeadToBFCache:function(){return l},writeToBFCache:function(){return k}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(73584),g=a.r(15314),h=-1;function i(a,b){return b!==h?a+1e3*b:a+f.DYNAMIC_STALETIME_MS}function j(){}function k(a,b,c,d,e,f,g){}function l(a,b,c,d,e){k(a,b,c,d,null,null,e)}function m(a,b){}function n(a){return null}function o(a,b){return null}(0,g.createCacheMap)(),("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)},82649,(a,b,c)=>{"use strict";let d;Object.defineProperty(c,"__esModule",{value:!0});var e={createFetch:function(){return y},createFromNextReadableStream:function(){return z},decodeStaticStage:function(){return x},fetchServerResponse:function(){return u},processFetch:function(){return v},resolveStaticStageData:function(){return w}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});let g=a.r(71535);a.r(21154);let h=a.r(48802),i=a.r(47456),j=a.r(49341),k=a.r(17691),l=a.r(62635),m=a.r(34826),n=a.r(81380),o=a.r(80357),p=a.r(78271);a.r(11555);let q=a.r(72642),r=g.createFromReadableStream,s=g.createFromFetch;function t(a){return(0,m.urlToUrlWithoutFlightMarker)(new URL(a,location.origin)).toString()}async function u(a,b){let{flightRouterState:c,nextUrl:d}=b,e={[h.RSC_HEADER]:"1",[h.NEXT_ROUTER_STATE_TREE_HEADER]:(0,k.prepareFlightRouterStateForRequest)(c,b.isHmrRefresh)};d&&(e[h.NEXT_URL]=d);try{let b=await y(a,e,"auto",!0),c=(0,m.urlToUrlWithoutFlightMarker)(new URL(b.url)),d=b.redirected?c:a,f=b.headers.get("content-type")||"",g=!!b.headers.get("vary")?.includes(h.NEXT_URL),i=!!b.headers.get(h.NEXT_DID_POSTPONE_HEADER);if(!f.startsWith(h.RSC_CONTENT_TYPE_HEADER)||!b.ok||!b.body)return a.hash&&(c.hash=a.hash),t(c.toString());let j=b.flightResponsePromise;null===j&&(j=z(b.body,e,{allowPartialStream:i}));let[l,n]=await Promise.all([j,b.cacheData]);if((b.headers.get(p.NEXT_NAV_DEPLOYMENT_ID_HEADER)??l.b)!==(0,o.getNavigationBuildId)())return t(b.url);let r=(0,k.normalizeFlightData)(l.f);if("string"==typeof r)return t(r);let s=null!==n?await w(n,l,e):null;return{flightData:r,canonicalUrl:d,renderedSearch:l.q,couldBeIntercepted:g,supportsPerSegmentPrefetching:l.S,postponed:i,dynamicStaleTime:l.d??q.UnknownDynamicStaleTime,staticStageData:s,runtimePrefetchStream:l.p??null,responseHeaders:b.headers,debugInfo:j._debugInfo??null}}catch(b){return console.error(`Failed to fetch RSC payload for ${a}. Falling back to browser navigation.`,b),a.toString()}}async function v(a){return{response:a,cacheData:null}}async function w(a,b,c){let{isResponsePartial:d,responseBodyClone:e}=a;if(e){if(!d)return e.cancel(),{response:b,isResponsePartial:!1};if(void 0!==b.l)return{response:await x(e,b.l,c),isResponsePartial:!0};e.cancel()}return null}async function x(a,b,c){var d,e;let f,g;return z((d=a,e=await b,f=d.getReader(),g=e,new ReadableStream({async pull(a){if(g<=0){f.cancel(),a.close();return}let{done:b,value:c}=await f.read();b?a.close():c.byteLength<=g?(a.enqueue(c),g-=c.byteLength):(a.enqueue(c.subarray(0,g)),g=0,f.cancel(),a.close())},cancel(){f.cancel()}})),c,{allowPartialStream:!0})}async function y(a,b,c,e,f){var g,k;let m=(0,n.getDeploymentId)();m&&(b["x-deployment-id"]=m);let o=new URL(a);await (0,l.setCacheBustingSearchParam)(o,b);let p=fetch(o,{credentials:"same-origin",headers:b,priority:c||void 0,signal:f}).then(v),q=p.then(({response:a})=>a),r=e?(g=q,k=b,s(g,{callServer:i.callServer,findSourceMapURL:j.findSourceMapURL,debugChannel:d&&d(k)})):null,t=await q,u=t.redirected,w=new URL(t.url,o);return w.searchParams.delete(h.NEXT_RSC_UNION_QUERY),{url:w.href,redirected:u,ok:t.ok,headers:t.headers,body:t.body,status:t.status,flightResponsePromise:r,cacheData:p.then(({cacheData:a})=>a)}}function z(a,b,c){return r(a,{callServer:i.callServer,findSourceMapURL:j.findSourceMapURL,debugChannel:d&&d(b),unstable_allowPartialStream:c?.allowPartialStream})}("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)},11555,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d,e={EntryStatus:function(){return C},attemptToFulfillDynamicSegmentFromBFCache:function(){return aa},attemptToUpgradeSegmentFromBFCache:function(){return ab},canNewFetchStrategyProvideMoreContent:function(){return aw},convertReusedFlightRouterStateToRouteTree:function(){return al},convertRootFlightRouterStateToRouteTree:function(){return ak},convertRouteTreeToFlightRouterState:function(){return function a(b){let c={};if(null!==b.slots)for(let d in b.slots)c[d]=a(b.slots[d]);return[b.segment,c,null,null]}},createDetachedSegmentCacheEntry:function(){return $},createMetadataRouteTree:function(){return ad},deprecated_requestOptimisticRouteCacheEntry:function(){return U},fetchInlinedSegmentsOnCacheMiss:function(){return ap},fetchRouteOnCacheMiss:function(){return an},fetchSegmentOnCacheMiss:function(){return ao},fetchSegmentPrefetchesUsingDynamicRequest:function(){return aq},fulfillRouteCacheEntry:function(){return ae},getCurrentRouteCacheVersion:function(){return J},getCurrentSegmentCacheVersion:function(){return K},getStaleAt:function(){return az},getStaleTimeMs:function(){return B},invalidateEntirePrefetchCache:function(){return L},invalidateRouteCacheEntries:function(){return M},invalidateSegmentCacheEntries:function(){return N},markRouteEntryAsDynamicRewrite:function(){return ag},overwriteRevalidatingSegmentCacheEntry:function(){return Y},pingInvalidationListeners:function(){return O},processRuntimePrefetchStream:function(){return aB},readOrCreateRevalidatingSegmentEntry:function(){return X},readOrCreateRouteCacheEntry:function(){return T},readOrCreateSegmentCacheEntry:function(){return W},readRouteCacheEntry:function(){return P},readSegmentCacheEntry:function(){return Q},stripIsPartialByte:function(){return aC},upgradeToPendingSegment:function(){return _},upsertSegmentEntry:function(){return Z},waitForSegmentCacheEntry:function(){return R},writeDynamicRenderResponseIntoCache:function(){return as},writeRouteIntoCache:function(){return af},writeStaticStageResponseIntoCache:function(){return aA}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});let g=a.r(94086),h=a.r(48802),i=a.r(82649),j=a.r(78622),k=a.r(47317),l=a.r(66400),m=a.r(90246),n=a.r(34826),o=a.r(15314),p=a.r(23130),q=a.r(17691),r=a.r(73584),s=a.r(47214),t=a.r(38371),u=a.r(81801),v=a.r(40959),w=a.r(72642),x=a.r(27947),y=a.r(71946),z=a.r(80357),A=a.r(78271);function B(a){return 1e3*Math.max(a,30)}var C=((d={})[d.Empty=0]="Empty",d[d.Pending=1]="Pending",d[d.Fulfilled=2]="Fulfilled",d[d.Rejected=3]="Rejected",d);let D=["",{},null,"metadata-only"],E=(0,o.createCacheMap)(),F=(0,o.createCacheMap)(),G=null,H=0,I=0;function J(){return H}function K(){return I}function L(a,b){H++,I++,(0,s.pingVisibleLinks)(a,b),O(a,b)}function M(a,b){H++,(0,s.pingVisibleLinks)(a,b),O(a,b)}function N(a,b){I++,(0,s.pingVisibleLinks)(a,b),O(a,b)}function O(a,b){if(null!==G){let c=G;for(let d of(G=null,c))(0,j.isPrefetchTaskDirty)(d,a,b)&&function(a){let b=a.onInvalidate;if(null!==b){a.onInvalidate=null;try{b()}catch(a){"function"==typeof reportError?reportError(a):console.error(a)}}}(d)}}function P(a,b){let c=(0,k.getRouteVaryPath)(b.pathname,b.search,b.nextUrl),d=(0,o.getFromCacheMap)(a,H,E,c,!1);return null!==d?d:null}function Q(a,b){return(0,o.getFromCacheMap)(a,I,F,b,!1)}function R(a){let b=a.promise;return null===b&&(b=a.promise=(0,v.createPromiseWithResolvers)()),b.promise}function S(){return{canonicalUrl:null,status:0,blockedTasks:null,tree:null,metadata:null,couldBeIntercepted:!0,supportsPerSegmentPrefetching:!1,renderedSearch:null,ref:null,size:0,staleAt:1/0,version:H}}function T(a,b,c){null!==b.onInvalidate&&(null===G?G=new Set([b]):G.add(b));let d=P(a,c);if(null!==d)return d;let e=S(),f=(0,k.getRouteVaryPath)(c.pathname,c.search,c.nextUrl);return(0,o.setInCacheMap)(E,f,e,!1),e}function U(a,b,c){let d=b.search;if(""===d)return null;let e=new URL(b);e.search="";let f=P(a,(0,m.createCacheKey)(e.href,c));if(null===f||2!==f.status)return null;let g=new URL(f.canonicalUrl,b.origin),h=""!==g.search?g.search:d,i=""!==f.renderedSearch?f.renderedSearch:d,j=new URL(f.canonicalUrl,location.origin);return j.search=h,{canonicalUrl:(0,l.createHrefFromUrl)(j),status:2,blockedTasks:null,tree:V(f.tree,i),metadata:V(f.metadata,i),couldBeIntercepted:f.couldBeIntercepted,supportsPerSegmentPrefetching:f.supportsPerSegmentPrefetching,hasDynamicRewrite:f.hasDynamicRewrite,renderedSearch:i,ref:null,size:0,staleAt:f.staleAt,version:f.version}}function V(a,b){let c=null,d=a.slots;if(null!==d)for(let a in c={},d){let e=d[a];c[a]=V(e,b)}return a.isPage?{requestKey:a.requestKey,segment:a.segment,refreshState:a.refreshState,varyPath:(0,k.clonePageVaryPathWithNewSearchParams)(a.varyPath,b),isPage:!0,slots:c,prefetchHints:a.prefetchHints}:{requestKey:a.requestKey,segment:a.segment,refreshState:a.refreshState,varyPath:a.varyPath,isPage:!1,slots:c,prefetchHints:a.prefetchHints}}function W(a,b,c){let d=Q(a,c.varyPath);if(null!==d)return d;let e=(0,k.getSegmentVaryPathForRequest)(b,c),f=$(a);return(0,o.setInCacheMap)(F,e,f,!1),f}function X(a,b,c){var d;let e=(d=c.varyPath,(0,o.getFromCacheMap)(a,I,F,d,!0));if(null!==e)return e;let f=(0,k.getSegmentVaryPathForRequest)(b,c),g=$(a);return(0,o.setInCacheMap)(F,f,g,!0),g}function Y(a,b,c){let d=(0,k.getSegmentVaryPathForRequest)(b,c),e=$(a);return(0,o.setInCacheMap)(F,d,e,!0),e}function Z(a,b,c){if((0,o.isValueExpired)(a,I,c))return null;let d=Q(a,b);if(null!==d){var e;if(c.fetchStrategy!==d.fetchStrategy&&(e=d.fetchStrategy,!(e<c.fetchStrategy))||!d.isPartial&&c.isPartial)return c.status=3,c.rsc=null,null;(0,o.deleteFromCacheMap)(d)}return(0,o.setInCacheMap)(F,b,c,!1),c}function $(a){return{status:0,fetchStrategy:u.FetchStrategy.PPR,rsc:null,isPartial:!0,promise:null,ref:null,size:0,staleAt:a+3e4,version:0}}function _(a,b){return a.status=1,a.fetchStrategy=b,b===u.FetchStrategy.Full&&(a.isPartial=!1),a.version=I,a}function aa(a,b,c){let d=c.varyPath,e=(0,w.readFromBFCache)(d);if(null!==e){let c=e.navigatedAt+r.STATIC_STALETIME_MS;return a>c?null:ah(_(b,u.FetchStrategy.Full),e.rsc,c,!1)}return null}function ab(a,b){let c=b.varyPath,d=(0,w.readFromBFCache)(c);if(null!==d){let c=d.navigatedAt+r.STATIC_STALETIME_MS;if(a>c)return null;let e=ah(_($(a),u.FetchStrategy.Full),d.rsc,c,!1),f=Z(a,(0,k.getSegmentVaryPathForRequest)(u.FetchStrategy.Full,b),e);if(null!==f&&2===f.status)return f}return null}function ac(a){let b=a.blockedTasks;if(null!==b){for(let a of b)(0,j.pingPrefetchTask)(a);a.blockedTasks=null}}function ad(a){return{requestKey:p.HEAD_REQUEST_KEY,segment:p.HEAD_REQUEST_KEY,refreshState:null,varyPath:a,isPage:!0,slots:null,prefetchHints:0}}function ae(a,b,c,d,e,f,g){let h=(0,k.getRenderedSearchFromVaryPath)(d)??"";return b.status=2,b.tree=c,b.metadata=ad(d),b.staleAt=a+r.STATIC_STALETIME_MS,b.couldBeIntercepted=e,b.canonicalUrl=f,b.renderedSearch=h,b.supportsPerSegmentPrefetching=g,b.hasDynamicRewrite=!1,ac(b),b}function af(a,b,c,d,e,f,g,h){let i=ae(a,S(),d,e,f,g,h),j=i.renderedSearch,l=(0,k.getFulfilledRouteVaryPath)(b,j,c,f);return(0,o.setInCacheMap)(E,l,i,!1),i}function ag(a){a.hasDynamicRewrite=!0}function ah(a,b,c,d){return a.status=2,a.rsc=b,a.staleAt=c,a.isPartial=d,null!==a.promise&&(a.promise.resolve(a),a.promise=null),a}function ai(a,b){a.status=3,a.staleAt=b,ac(a)}function aj(a,b){a.status=3,a.staleAt=b,null!==a.promise&&(a.promise.resolve(null),a.promise=null)}function ak(a,b,c){return am(a,p.ROOT_SEGMENT_REQUEST_KEY,null,b,c)}function al(a,b,c,d,e){let f=a.isPage?(0,k.getPartialPageVaryPath)(a.varyPath):(0,k.getPartialLayoutVaryPath)(a.varyPath),g=c[0],h=a.requestKey,i=(0,p.createSegmentRequestKeyPart)(g);return am(c,(0,p.appendSegmentRequestKeyPart)(h,b,i),f,d,e)}function am(a,b,c,d,e){let f,g,h,i,j=a[0],l=a[2]??null,m=null!==l?{canonicalUrl:l[0],renderedSearch:l[1]}:null,n=null!==m?m.renderedSearch:d;if(Array.isArray(j)){h=!1;let a=j[1],d=j[0];g=(0,k.appendLayoutVaryPath)(c,a,d),i=(0,k.finalizeLayoutVaryPath)(b,g),f=j}else g=c,b.endsWith(t.PAGE_SEGMENT_KEY)?(h=!0,f=t.PAGE_SEGMENT_KEY,i=(0,k.finalizePageVaryPath)(b,n,g),null===e.metadataVaryPath&&(e.metadataVaryPath=(0,k.finalizeMetadataVaryPath)(b,n,g))):(h=!1,f=j,i=(0,k.finalizeLayoutVaryPath)(b,g));let o=null,q=a[1];for(let a in q){let c=q[a],d=c[0],f=(0,p.createSegmentRequestKeyPart)(d),h=am(c,(0,p.appendSegmentRequestKeyPart)(b,a,f),g,n,e);null===o?o={[a]:h}:o[a]=h}return{requestKey:b,segment:f,refreshState:m,varyPath:i,isPage:h,slots:o,prefetchHints:a[4]??0}}async function an(a,b){let c=b.pathname,d=b.search,e=b.nextUrl,f={[h.RSC_HEADER]:"1",[h.NEXT_ROUTER_PREFETCH_HEADER]:"1",[h.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:"/_tree"};null!==e&&(f[h.NEXT_URL]=e),ax(f);try{let b,j,m=new URL(c+d,location.origin);if(b=await au(m,f),j=null!==b&&b.redirected?new URL(b.url):m,!b||!b.ok||204===b.status||!b.body)return ai(a,Date.now()+1e4),null;let r=(0,l.createHrefFromUrl)(j),s=b.headers.get("vary"),B=null!==s&&s.includes(h.NEXT_URL),C=(0,v.createPromiseWithResolvers)(),D="2"===b.headers.get(h.NEXT_DID_POSTPONE_HEADER);if(D){let d,g,{stream:h,size:j}=await av(b.body);C.resolve(),(0,o.setSizeInCacheMap)(a,j);let l=await (0,i.createFromNextReadableStream)(h,f,{allowPartialStream:!0});if((b.headers.get(A.NEXT_NAV_DEPLOYMENT_ID_HEADER)??l.buildId)!==(0,z.getNavigationBuildId)())return ai(a,Date.now()+1e4),null;let m=(0,n.getRenderedPathname)(b),q=(0,n.getRenderedSearch)(b),s={metadataVaryPath:null},u=(d=m.split("/").filter(a=>""!==a),g=p.ROOT_SEGMENT_REQUEST_KEY,function a(b,c,d,e,f,g,h,i){let j,l,m=null,o=b.slots;if(null!==o)for(let b in j=!1,l=(0,k.finalizeLayoutVaryPath)(e,d),m={},o){let c,j,l,q=o[b],r=q.name,s=q.param;if(null!==s){let a=(0,n.parseDynamicParamFromURLPart)(s.type,f,g),b=null!==s.key?s.key:(0,n.getCacheKeyForDynamicParam)(a,"");l=(0,k.appendLayoutVaryPath)(d,b,r),j=[r,b,s.type,s.siblings],c=!0}else l=d,j=r,c=(0,n.doesStaticSegmentAppearInURL)(r);let t=c?g+1:g,u=(0,p.createSegmentRequestKeyPart)(j),v=(0,p.appendSegmentRequestKeyPart)(e,b,u);m[b]=a(q,j,l,v,f,t,h,i)}else e.endsWith(t.PAGE_SEGMENT_KEY)?(j=!0,l=(0,k.finalizePageVaryPath)(e,h,d),null===i.metadataVaryPath&&(i.metadataVaryPath=(0,k.finalizeMetadataVaryPath)(e,h,d))):(j=!1,l=(0,k.finalizeLayoutVaryPath)(e,d));return{requestKey:e,segment:c,refreshState:null,varyPath:l,isPage:j,slots:m,prefetchHints:b.prefetchHints}}(l.tree,g,null,p.ROOT_SEGMENT_REQUEST_KEY,d,0,q,s)),v=s.metadataVaryPath;if(null===v)return ai(a,Date.now()+1e4),null;(0,x.discoverKnownRoute)(Date.now(),c,e,a,u,v,B,r,D,!1)}else{let{stream:d,size:j}=await av(b.body);C.resolve(),(0,o.setSizeInCacheMap)(a,j);let k=await (0,i.createFromNextReadableStream)(d,f,{allowPartialStream:!0});if((b.headers.get(A.NEXT_NAV_DEPLOYMENT_ID_HEADER)??k.b)!==(0,z.getNavigationBuildId)())return ai(a,Date.now()+1e4),null;let l=k.h,m=null!==l?(0,g.readVaryParams)(l):null;!function(a,b,c,d,e,f,g,i,j,k,l){let m=(0,n.getRenderedSearch)(c),o=(0,q.normalizeFlightData)(d.f);if("string"==typeof o||1!==o.length)return ai(e,a+1e4);let p=o[0];if(!p.isRootRender)return ai(e,a+1e4);let r=p.tree,s="1"===c.headers.get(h.NEXT_DID_POSTPONE_HEADER),t={metadataVaryPath:null},u=ak(r,m,t),v=t.metadataVaryPath;if(null===v)return ai(e,a+1e4);(0,x.discoverKnownRoute)(a,k,l,e,u,v,f,g,i,!1);let z=(0,y.convertServerPatchToFullTree)(a,r,o,m,w.UnknownDynamicStaleTime);as(a,b,o,c.headers.get(A.NEXT_NAV_DEPLOYMENT_ID_HEADER)??d.b,s,j,ay(a,c),z,null)}(Date.now(),u.FetchStrategy.LoadingBoundary,b,k,a,B,r,D,m,c,e)}if(!B){let b=(0,k.getFulfilledRouteVaryPath)(c,d,e,B);(0,o.setInCacheMap)(E,b,a,!1)}return{value:null,closed:C.promise}}catch(b){return ai(a,Date.now()+1e4),null}}async function ao(a,b,c,d){let e=new URL(a.canonicalUrl,location.origin),f=c.nextUrl,g=d.requestKey,j=g===p.ROOT_SEGMENT_REQUEST_KEY?"/_index":g,l={[h.RSC_HEADER]:"1",[h.NEXT_ROUTER_PREFETCH_HEADER]:"1",[h.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:j};null!==f&&(l[h.NEXT_URL]=f),ax(l);try{let a=await au(e,l);if(!a||!a.ok||204===a.status||"2"!==a.headers.get(h.NEXT_DID_POSTPONE_HEADER)||!a.body)return aj(b,Date.now()+1e4),null;let c=(0,v.createPromiseWithResolvers)(),{stream:f,size:g}=await av(a.body);c.resolve(),(0,o.setSizeInCacheMap)(b,g);let j=await (0,i.createFromNextReadableStream)(f,l,{allowPartialStream:!0});if((a.headers.get(A.NEXT_NAV_DEPLOYMENT_ID_HEADER)??j.buildId)!==(0,z.getNavigationBuildId)())return aj(b,Date.now()+1e4),null;let m=Date.now(),n=m+B(j.staleTime),p=ah(b,j.rsc,n,j.isPartial);j.varyParams;let q=(0,k.getSegmentVaryPathForRequest)(b.fetchStrategy,d);return Z(m,q,p),{value:p,closed:c.promise}}catch(a){return aj(b,Date.now()+1e4),null}}async function ap(a,b,c,d){let e=new URL(a.canonicalUrl,location.origin),f=b.nextUrl,g={[h.RSC_HEADER]:"1",[h.NEXT_ROUTER_PREFETCH_HEADER]:"1",[h.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:"/"+t.PAGE_SEGMENT_KEY};null!==f&&(g[h.NEXT_URL]=f),ax(g);try{let b=await au(e,g);if(!b||!b.ok||204===b.status||"2"!==b.headers.get(h.NEXT_DID_POSTPONE_HEADER)||!b.body)return ar(d,Date.now()+1e4),null;let f=(0,v.createPromiseWithResolvers)(),{stream:j}=await av(b.body);f.resolve();let k=await (0,i.createFromNextReadableStream)(j,g,{allowPartialStream:!0});if((b.headers.get(A.NEXT_NAV_DEPLOYMENT_ID_HEADER)??k.tree.segment.buildId)!==(0,z.getNavigationBuildId)())return ar(d,Date.now()+1e4),null;let l=Date.now();!function a(b,c,d,e,f){let g=e.segment,h=b+B(g.staleTime),i=f.get(d.requestKey);if(void 0!==i)ah(i,g.rsc,h,g.isPartial);else{let a=W(b,u.FetchStrategy.PPR,d);0===a.status&&ah(_(a,u.FetchStrategy.PPR),g.rsc,h,g.isPartial)}if(null!==d.slots&&null!==e.slots)for(let g in d.slots){let h=d.slots[g],i=e.slots[g];void 0!==i&&a(b,c,h,i,f)}}(l,a,c,k.tree,d);let m=l+B(k.head.staleTime),n=a.metadata.requestKey,o=d.get(n);if(void 0!==o)ah(o,k.head.rsc,m,k.head.isPartial);else{let b=W(l,u.FetchStrategy.PPR,a.metadata);0===b.status&&ah(_(b,u.FetchStrategy.PPR),k.head.rsc,m,k.head.isPartial)}return ar(d,Date.now()+1e4),{value:null,closed:f.promise}}catch(a){return ar(d,Date.now()+1e4),null}}async function aq(a,b,c,d,e){let f=a.key,j=new URL(b.canonicalUrl,location.origin),k=f.nextUrl;1===e.size&&e.has(b.metadata.requestKey)&&(d=D);let l={[h.RSC_HEADER]:"1",[h.NEXT_ROUTER_STATE_TREE_HEADER]:(0,q.prepareFlightRouterStateForRequest)(d)};switch(null!==k&&(l[h.NEXT_URL]=k),c){case u.FetchStrategy.Full:break;case u.FetchStrategy.PPRRuntime:l[h.NEXT_ROUTER_PREFETCH_HEADER]="2";break;case u.FetchStrategy.LoadingBoundary:l[h.NEXT_ROUTER_PREFETCH_HEADER]="1"}try{let a,f=await au(j,l);if(!f||!f.ok||!f.body)return ar(e,Date.now()+1e4),null;let h=(0,n.getRenderedSearch)(f);if(h!==b.renderedSearch)return ar(e,Date.now()+1e4),null;let k=(0,v.createPromiseWithResolvers)(),s=null,t=null;if(c===u.FetchStrategy.Full){var m,p,r;let b,c;m=f.body,p=k.resolve,r=function(a){if(null===s)return;let b=a/s.length;for(let a of s)(0,o.setSizeInCacheMap)(a,b)},b=0,c=m.getReader(),a=new ReadableStream({async pull(a){for(;;){let{done:d,value:e}=await c.read();if(!d){a.enqueue(e),r(b+=e.byteLength);continue}a.close(),p();return}}})}else{let{stream:b,size:c}=await av(f.body);k.resolve(),a=b,t=c}let[x,z]=await Promise.all([(0,i.createFromNextReadableStream)(a,l,{allowPartialStream:!0}),f.cacheData]),B=x.h,C=null!==B?(0,g.readVaryParams)(B):null,D=Date.now(),E=await az(D,x.s,f),F=c===u.FetchStrategy.PPRRuntime&&(z?.isResponsePartial??!1),G=f.headers.get(A.NEXT_NAV_DEPLOYMENT_ID_HEADER)??x.b,H=(0,q.normalizeFlightData)(x.f);if("string"==typeof H)return ar(e,Date.now()+1e4),null;let I=(0,y.convertServerPatchToFullTree)(D,d,H,h,w.UnknownDynamicStaleTime);if(s=as(D,c,H,G,F,C,E,I,e),null!==t&&null!==s&&s.length>0){let a=t/s.length;for(let b of s)(0,o.setSizeInCacheMap)(b,a)}return{value:null,closed:k.promise}}catch(a){return ar(e,Date.now()+1e4),null}}function ar(a,b){let c=[];for(let d of a.values())1===d.status?aj(d,b):2===d.status&&c.push(d);return c}function as(a,b,c,d,e,f,h,i,j){if(d&&d!==(0,z.getNavigationBuildId)())return null!==j&&ar(j,a+1e4),null;let k=i.routeTree,l=null!==i.metadataVaryPath?ad(i.metadataVaryPath):null;for(let d of c){let c=d.seedData;if(null!==c){let f=d.segmentPath,i=k;for(let b=0;b<f.length;b+=2){let c=f[b];if(i?.slots?.[c]===void 0)return null!==j&&ar(j,a+1e4),null;i=i.slots[c]}!function a(b,c,d,e,f,h,i){let j=f[0],k=f[4];at(b,c,j,null===j||h,e,null!==k?(0,g.readVaryParams)(k):null,d,i);let l=d.slots;if(null!==l){let d=f[1];for(let f in l){let g=l[f],j=d[f];null!=j&&a(b,c,g,e,j,h,i)}}}(a,b,i,h,c,e,j)}let i=d.head;null!==i&&null!==l&&at(a,b,i,d.isHeadPartial,h,f,l,j)}return null!==j?ar(j,a+1e4):null}function at(a,b,c,d,e,f,g,h){let i=null!==h?h.get(g.requestKey):void 0;if(void 0!==i)ah(i,c,e,d);else{let f=W(a,b,g);if(0===f.status)ah(_(f,b),c,e,d);else{let f=ah(_($(a),b),c,e,d);Z(a,(0,k.getSegmentVaryPathForRequest)(b,g),f)}}}async function au(a,b){let c=await (0,i.createFetch)(a,b,"low",!1);if(!c.ok)return null;{let a=c.headers.get("content-type");if(!(a&&a.startsWith(h.RSC_CONTENT_TYPE_HEADER)))return null}return c}async function av(a){let b,c=a.getReader(),d=[],e=0;for(;;){let{done:a,value:b}=await c.read();if(a)break;d.push(b),e+=b.byteLength}if(1===d.length)b=d[0];else if(d.length>1){b=new Uint8Array(e);let a=0;for(let c of d)b.set(c,a),a+=c.byteLength}else b=new Uint8Array(0);return{stream:new ReadableStream({start(a){a.enqueue(b),a.close()}}),size:e}}function aw(a,b){return a<b}function ax(a){}function ay(a,b){let c=parseInt(b.headers.get(h.NEXT_ROUTER_STALE_TIME_HEADER)??"",10);return a+(isNaN(c)?r.STATIC_STALETIME_MS:B(c))}async function az(a,b,c){if(void 0!==b){let c;for await(let a of b)c=a;if(void 0!==c)return a+(isNaN(c)?r.STATIC_STALETIME_MS:B(c))}return void 0!==c?ay(a,c):a+r.STATIC_STALETIME_MS}function aA(a,b,c,d,e,f,h,i){let j=i?u.FetchStrategy.PPR:u.FetchStrategy.Full,k=null!==d?(0,g.readVaryParams)(d):null,l=(0,q.normalizeFlightData)(b);if("string"==typeof l)return;let m=(0,y.convertServerPatchToFullTree)(a,f,l,h,w.UnknownDynamicStaleTime);as(a,j,l,c,i,k,e,m,null)}async function aB(a,b,c,d){let{stream:e,isPartial:f}=await aC(b),h=await (0,i.createFromNextReadableStream)(e,void 0,{allowPartialStream:!0}),j=h.h,k=null!==j?(0,g.readVaryParams)(j):null,l=await az(a,h.s),m=(0,q.normalizeFlightData)(h.f);if("string"==typeof m)return null;let n=(0,y.convertServerPatchToFullTree)(a,c,m,d,w.UnknownDynamicStaleTime);return{flightDatas:m,navigationSeed:n,buildId:h.b,isResponsePartial:f,headVaryParams:k,staleAt:l}}async function aC(a){let b=a.getReader(),{done:c,value:d}=await b.read();if(c||!d||0===d.byteLength)return{stream:new ReadableStream({start:a=>a.close()}),isPartial:!1};let e=d[0],f=35===e||126===e,g=f?d.byteLength>1?d.subarray(1):null:d;return{isPartial:!!f&&126===e,stream:new ReadableStream({start(a){g&&a.enqueue(g)},async pull(a){let c=await b.read();c.done?a.close():a.enqueue(c.value)}})}}("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)},78622,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={cancelPrefetchTask:function(){return v},isPrefetchTaskDirty:function(){return x},pingPrefetchScheduler:function(){return z},pingPrefetchTask:function(){return D},reschedulePrefetchTask:function(){return w},schedulePrefetchTask:function(){return u},startRevalidationCooldown:function(){return t}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(47631),g=a.r(46073),h=a.r(11555),i=a.r(90246),j=a.r(81801),k=a.r(38371),l=a.r(96604),m="function"==typeof queueMicrotask?queueMicrotask:a=>Promise.resolve().then(a).catch(a=>setTimeout(()=>{throw a})),n=[],o=0,p=0,q=!1,r=null,s=null;function t(){null!==s&&clearTimeout(s),s=setTimeout(()=>{s=null,z()},300)}function u(a,b,c,d,e,f){let g={key:a,treeAtTimeOfPrefetch:b,routeCacheVersion:(0,h.getCurrentRouteCacheVersion)(),segmentCacheVersion:(0,h.getCurrentSegmentCacheVersion)(),priority:d,phase:1,hasBackgroundWork:!1,spawnedRuntimePrefetches:null,fetchStrategy:c,sortId:p++,isCanceled:!1,onInvalidate:e,_heapIndex:-1};return y(g),N(n,g),z(),g}function v(a){a.isCanceled=!0,function(a,b){let c=b._heapIndex;if(-1!==c&&(b._heapIndex=-1,0!==a.length)){let d=a.pop();d!==b&&(a[c]=d,d._heapIndex=c,S(a,d,c))}}(n,a)}function w(a,b,c,d){a.isCanceled=!1,a.phase=1,a.sortId=p++,a.priority=a===r?j.PrefetchPriority.Intent:d,a.treeAtTimeOfPrefetch=b,a.fetchStrategy=c,y(a),-1!==a._heapIndex?Q(n,a):N(n,a),z()}function x(a,b,c){return a.routeCacheVersion!==(0,h.getCurrentRouteCacheVersion)()||a.segmentCacheVersion!==(0,h.getCurrentSegmentCacheVersion)()||a.treeAtTimeOfPrefetch!==c||a.key.nextUrl!==b}function y(a){a.priority===j.PrefetchPriority.Intent&&a!==r&&(null!==r&&r.priority!==j.PrefetchPriority.Background&&(r.priority=j.PrefetchPriority.Default,Q(n,r)),r=a)}function z(){q||(q=!0,m(E))}function A(a){return null===s&&(a.priority===j.PrefetchPriority.Intent?o<12:o<4)}function B(a){return o++,a.then(a=>null===a?(C(),null):(a.closed.then(C),a.value))}function C(){o--,z()}function D(a){a.isCanceled||-1!==a._heapIndex||(N(n,a),z())}function E(){q=!1;let a=Date.now(),b=O(n);for(;null!==b&&A(b);){b.routeCacheVersion=(0,h.getCurrentRouteCacheVersion)(),b.segmentCacheVersion=(0,h.getCurrentSegmentCacheVersion)();let c=function(a,b){let c=b.key,d=(0,h.readOrCreateRouteCacheEntry)(a,b,c),e=function(a,b,c){switch(c.status){case h.EntryStatus.Empty:B((0,h.fetchRouteOnCacheMiss)(c,b.key)),c.staleAt=a+6e4,c.status=h.EntryStatus.Pending;case h.EntryStatus.Pending:{let a=c.blockedTasks;return null===a?c.blockedTasks=new Set([b]):a.add(b),1}case h.EntryStatus.Rejected:break;case h.EntryStatus.Fulfilled:{let i;if(0!==b.phase)return 2;if(!A(b))return 0;let k=c.tree;switch(i=k.prefetchHints&f.PrefetchHint.SubtreeHasInstant?j.FetchStrategy.PPR:b.fetchStrategy===j.FetchStrategy.PPR?c.supportsPerSegmentPrefetching?j.FetchStrategy.PPR:j.FetchStrategy.LoadingBoundary:b.fetchStrategy){case j.FetchStrategy.PPR:{var d,e,g;if(I(d=a,e=b,g=c,(0,h.readOrCreateSegmentCacheEntry)(d,j.FetchStrategy.PPR,g.metadata),e.key,g.metadata),0===function a(b,c,d,e,g){let i=(0,h.readOrCreateSegmentCacheEntry)(b,c.fetchStrategy,g);I(b,c,d,i,c.key,g);let j=e[1],k=g.slots;if(null!==k)for(let e in k){if(!A(c))return 0;let g=k[e],i=g.segment,l=j[e],m=l?.[0];if(0===(void 0!==m&&L(d,i,m)?a(b,c,d,l,g):function a(b,c,d,e){if(e.prefetchHints&f.PrefetchHint.HasRuntimePrefetch)return null===c.spawnedRuntimePrefetches?c.spawnedRuntimePrefetches=new Set([e.requestKey]):c.spawnedRuntimePrefetches.add(e.requestKey),2;let g=(0,h.readOrCreateSegmentCacheEntry)(b,c.fetchStrategy,e);if(I(b,c,d,g,c.key,e),null!==e.slots){if(!A(c))return 0;for(let f in e.slots)if(0===a(b,c,d,e.slots[f]))return 0}return 2}(b,c,d,g)))return 0}return 2}(a,b,c,b.treeAtTimeOfPrefetch,k))return 0;let i=b.spawnedRuntimePrefetches;if(null!==i){let d=new Map;G(a,b,c,d,j.FetchStrategy.PPRRuntime);let e=function a(b,c,d,e,f,g){if(f.has(e.requestKey))return H(b,c,d,e,!1,g,j.FetchStrategy.PPRRuntime);let h={},i=e.slots;if(null!==i)for(let e in i){let j=i[e];h[e]=a(b,c,d,j,f,g)}return[e.segment,h,null,null]}(a,b,c,k,i,d);d.size>0&&B((0,h.fetchSegmentPrefetchesUsingDynamicRequest)(b,c,j.FetchStrategy.PPRRuntime,e,d))}return 2}case j.FetchStrategy.Full:case j.FetchStrategy.PPRRuntime:case j.FetchStrategy.LoadingBoundary:{let d=new Map;G(a,b,c,d,i);let e=function a(b,c,d,e,g,i,k){let l=e[1],m=g.slots,n={};if(null!==m)for(let e in m){let g=m[e],o=g.segment,p=l[e],q=p?.[0];if(void 0!==q&&L(d,o,q)){let f=a(b,c,d,p,g,i,k);n[e]=f}else switch(k){case j.FetchStrategy.LoadingBoundary:{let a=(g.prefetchHints&(f.PrefetchHint.SegmentHasLoadingBoundary|f.PrefetchHint.SubtreeHasLoadingBoundary))!=0?function a(b,c,d,e,g,i){let k=null===g?"inside-shared-layout":null,l=(0,h.readOrCreateSegmentCacheEntry)(b,c.fetchStrategy,e);switch(l.status){case h.EntryStatus.Empty:i.set(e.requestKey,(0,h.upgradeToPendingSegment)(l,j.FetchStrategy.LoadingBoundary)),"refetch"!==g&&(k=g="refetch");break;case h.EntryStatus.Fulfilled:if((e.prefetchHints&f.PrefetchHint.SegmentHasLoadingBoundary)!=0)return(0,h.convertRouteTreeToFlightRouterState)(e);case h.EntryStatus.Pending:case h.EntryStatus.Rejected:}let m={};if(null!==e.slots)for(let f in e.slots){let h=e.slots[f];m[f]=a(b,c,d,h,g,i)}return[e.segment,m,null,k]}(b,c,d,g,null,i):(0,h.convertRouteTreeToFlightRouterState)(g);n[e]=a;break}case j.FetchStrategy.PPRRuntime:{let a=H(b,c,d,g,!1,i,k);n[e]=a;break}case j.FetchStrategy.Full:{let a=H(b,c,d,g,!1,i,k);n[e]=a}}}return[g.segment,n,null,null]}(a,b,c,b.treeAtTimeOfPrefetch,k,d,i);return d.size>0&&B((0,h.fetchSegmentPrefetchesUsingDynamicRequest)(b,c,i,e,d)),2}}}}return 2}(a,b,d);if(0!==e&&""!==c.search){let d=new URL(c.pathname,location.origin),e=(0,i.createCacheKey)(d.href,c.nextUrl),f=(0,h.readOrCreateRouteCacheEntry)(a,b,e);switch(f.status){case h.EntryStatus.Empty:F(b)&&(f.status=h.EntryStatus.Pending,B((0,h.fetchRouteOnCacheMiss)(f,e)));case h.EntryStatus.Pending:case h.EntryStatus.Fulfilled:case h.EntryStatus.Rejected:}}return e}(a,b),d=b.hasBackgroundWork;switch(b.hasBackgroundWork=!1,b.spawnedRuntimePrefetches=null,c){case 0:return;case 1:P(n),b=O(n);continue;case 2:1===b.phase?(b.phase=0,Q(n,b)):d?(b.priority=j.PrefetchPriority.Background,Q(n,b)):P(n),b=O(n);continue}}null===b&&0===o&&(0,l.cleanup)()}function F(a){return a.priority===j.PrefetchPriority.Background||(a.hasBackgroundWork=!0,!1)}function G(a,b,c,d,e){H(a,b,c,c.metadata,!1,d,e===j.FetchStrategy.LoadingBoundary?j.FetchStrategy.Full:e)}function H(a,b,c,d,e,f,g){let i=(0,h.readOrCreateSegmentCacheEntry)(a,g,d),k=null;switch(i.status){case h.EntryStatus.Empty:if(g===j.FetchStrategy.Full&&null!==(0,h.attemptToFulfillDynamicSegmentFromBFCache)(a,i,d))break;k=(0,h.upgradeToPendingSegment)(i,g);break;case h.EntryStatus.Fulfilled:if(i.isPartial&&(0,h.canNewFetchStrategyProvideMoreContent)(i.fetchStrategy,g)){if(g===j.FetchStrategy.Full&&null!==(0,h.attemptToUpgradeSegmentFromBFCache)(a,d))break;k=K(a,d,g)}break;case h.EntryStatus.Pending:case h.EntryStatus.Rejected:(0,h.canNewFetchStrategyProvideMoreContent)(i.fetchStrategy,g)&&(k=K(a,d,g))}let l={};if(null!==d.slots)for(let h in d.slots){let i=d.slots[h];l[h]=H(a,b,c,i,e||null!==k,f,g)}null!==k&&f.set(d.requestKey,k);let m=e||null===k?null:"refetch";return[d.segment,l,null,m]}function I(a,b,c,d,e,f){switch(d.status){case h.EntryStatus.Empty:B((0,h.fetchSegmentOnCacheMiss)(c,(0,h.upgradeToPendingSegment)(d,j.FetchStrategy.PPR),e,f));break;case h.EntryStatus.Pending:switch(d.fetchStrategy){case j.FetchStrategy.PPR:case j.FetchStrategy.PPRRuntime:case j.FetchStrategy.Full:break;case j.FetchStrategy.LoadingBoundary:F(b)&&J(a,c,e,f);break;default:d.fetchStrategy}break;case h.EntryStatus.Rejected:switch(d.fetchStrategy){case j.FetchStrategy.PPR:case j.FetchStrategy.PPRRuntime:case j.FetchStrategy.Full:break;case j.FetchStrategy.LoadingBoundary:J(a,c,e,f);break;default:d.fetchStrategy}case h.EntryStatus.Fulfilled:}}function J(a,b,c,d){let e=(0,h.readOrCreateRevalidatingSegmentEntry)(a,j.FetchStrategy.PPR,d);switch(e.status){case h.EntryStatus.Empty:B((0,h.fetchSegmentOnCacheMiss)(b,(0,h.upgradeToPendingSegment)(e,j.FetchStrategy.PPR),c,d));case h.EntryStatus.Pending:case h.EntryStatus.Fulfilled:case h.EntryStatus.Rejected:}}function K(a,b,c){let d=(0,h.readOrCreateRevalidatingSegmentEntry)(a,c,b);if(d.status===h.EntryStatus.Empty)return(0,h.upgradeToPendingSegment)(d,c);if((0,h.canNewFetchStrategyProvideMoreContent)(d.fetchStrategy,c)){let d=(0,h.overwriteRevalidatingSegmentCacheEntry)(a,c,b);return(0,h.upgradeToPendingSegment)(d,c)}switch(d.status){case h.EntryStatus.Pending:case h.EntryStatus.Fulfilled:case h.EntryStatus.Rejected:default:return null}}function L(a,b,c){return c===k.PAGE_SEGMENT_KEY?b===(0,k.addSearchParamsIfPageSegment)(k.PAGE_SEGMENT_KEY,Object.fromEntries(new URLSearchParams(a.renderedSearch))):(0,g.matchSegment)(c,b)}function M(a,b){let c=b.priority-a.priority;if(0!==c)return c;let d=b.phase-a.phase;return 0!==d?d:b.sortId-a.sortId}function N(a,b){let c=a.length;a.push(b),b._heapIndex=c,R(a,b,c)}function O(a){return 0===a.length?null:a[0]}function P(a){if(0===a.length)return null;let b=a[0];b._heapIndex=-1;let c=a.pop();return c!==b&&(a[0]=c,c._heapIndex=0,S(a,c,0)),b}function Q(a,b){let c=b._heapIndex;-1!==c&&(0===c?S(a,b,0):M(a[c-1>>>1],b)>0?R(a,b,c):S(a,b,c))}function R(a,b,c){let d=c;for(;d>0;){let c=d-1>>>1,e=a[c];if(!(M(e,b)>0))return;a[c]=b,b._heapIndex=c,a[d]=e,e._heapIndex=d,d=c}}function S(a,b,c){let d=c,e=a.length,f=e>>>1;for(;d<f;){let c=(d+1)*2-1,f=a[c],g=c+1,h=a[g];if(0>M(f,b))g<e&&0>M(h,f)?(a[d]=h,h._heapIndex=d,a[g]=b,b._heapIndex=g,d=g):(a[d]=f,f._heapIndex=d,a[c]=b,b._heapIndex=c,d=c);else{if(!(g<e&&0>M(h,b)))return;a[d]=h,h._heapIndex=d,a[g]=b,b._heapIndex=g,d=g}}}("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)},47214,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={IDLE_LINK_STATUS:function(){return l},PENDING_LINK_STATUS:function(){return k},getLinkForCurrentNavigation:function(){return o},mountFormInstance:function(){return t},mountLinkInstance:function(){return s},onLinkVisibilityChanged:function(){return v},onNavigationIntent:function(){return w},pingVisibleLinks:function(){return y},setLinkForCurrentNavigation:function(){return m},unmountLinkForCurrentNavigation:function(){return n},unmountPrefetchableInstance:function(){return u}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(81801),g=a.r(90246),h=a.r(78622),i=a.r(34542),j=null,k={pending:!0},l={pending:!1};function m(a){(0,i.startTransition)(()=>{j?.setOptimisticLinkStatus(l),a?.setOptimisticLinkStatus(k),j=a})}function n(a){j===a&&(j=null)}function o(){return j}let p="function"==typeof WeakMap?new WeakMap:new Map,q=new Set,r="function"==typeof IntersectionObserver?new IntersectionObserver(function(a){for(let b of a){let a=b.intersectionRatio>0;v(b.target,a)}},{rootMargin:"200px"}):null;function s(a,b,c,d,e,f){return{router:c,fetchStrategy:d,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus:f}}function t(a,b,c,d){}function u(a){let b=p.get(a);if(void 0!==b){p.delete(a),q.delete(b);let c=b.prefetchTask;null!==c&&(0,h.cancelPrefetchTask)(c)}null!==r&&r.unobserve(a)}function v(a,b){let c=p.get(a);void 0!==c&&(c.isVisible=b,b?q.add(c):q.delete(c),x(c,f.PrefetchPriority.Default))}function w(a,b){let c=p.get(a);void 0!==c&&void 0!==c&&x(c,f.PrefetchPriority.Intent)}function x(a,b){}function y(a,b){for(let c of q){let d=c.prefetchTask;if(null!==d&&!(0,h.isPrefetchTaskDirty)(d,a,b))continue;null!==d&&(0,h.cancelPrefetchTask)(d);let e=(0,g.createCacheKey)(c.prefetchHref,a);c.prefetchTask=(0,h.schedulePrefetchTask)(e,b,c.fetchStrategy,f.PrefetchPriority.Default,null)}}("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)},56079,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"pathHasPrefix",{enumerable:!0,get:function(){return e}});let d=a.r(22773);function e(a,b){if("string"!=typeof a)return!1;let{pathname:c}=(0,d.parsePath)(a);return c===b||c.startsWith(b+"/")}},42418,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"hasBasePath",{enumerable:!0,get:function(){return e}});let d=a.r(56079);function e(a){return(0,d.pathHasPrefix)(a,"")}("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)},98658,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"isLocalURL",{enumerable:!0,get:function(){return f}});let d=a.r(62820),e=a.r(42418);function f(a){if(!(0,d.isAbsoluteUrl)(a))return!0;try{let b=(0,d.getLocationOrigin)(),c=new URL(a,b);return c.origin===b&&(0,e.hasBasePath)(c.pathname)}catch(a){return!1}}},1502,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"errorOnce",{enumerable:!0,get:function(){return d}});let d=a=>{}},62988,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return p},useLinkStatus:function(){return r}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(3988),g=a.r(39752),h=f._(a.r(34542)),i=a.r(98746),j=a.r(72034),k=a.r(2831),l=a.r(62820),m=a.r(55378);a.r(35633),a.r(30229);let n=a.r(47214);a.r(98658);let o=a.r(81801);function p(a){var b,c;let d,e,f,[p,r]=(0,h.useOptimistic)(n.IDLE_LINK_STATUS),s=(0,h.useRef)(null),{href:t,as:u,children:v,prefetch:w=null,passHref:x,replace:y,shallow:z,scroll:A,onClick:B,onMouseEnter:C,onTouchStart:D,legacyBehavior:E=!1,onNavigate:F,transitionTypes:G,ref:H,unstable_dynamicOnHover:I,...J}=a;d=v,E&&("string"==typeof d||"number"==typeof d)&&(d=(0,g.jsx)("a",{children:d}));let K=h.default.useContext(j.AppRouterContext),L=!1!==w,M=!1!==w?null===(c=w)||"auto"===c?o.FetchStrategy.PPR:o.FetchStrategy.Full:o.FetchStrategy.PPR,N="string"==typeof(b=u||t)?b:(0,i.formatUrl)(b);if(E){if(d?.$$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});e=h.default.Children.only(d)}let O=E?e&&"object"==typeof e&&e.ref:H,P=h.default.useCallback(a=>(null!==K&&(s.current=(0,n.mountLinkInstance)(a,N,K,M,L,r)),()=>{s.current&&((0,n.unmountLinkForCurrentNavigation)(s.current),s.current=null),(0,n.unmountPrefetchableInstance)(a)}),[L,N,K,M,r]),Q={ref:(0,k.useMergedRef)(P,O),onClick(a){E||"function"!=typeof B||B(a),E&&e.props&&"function"==typeof e.props.onClick&&e.props.onClick(a),K&&a.defaultPrevented},onMouseEnter(a){E||"function"!=typeof C||C(a),E&&e.props&&"function"==typeof e.props.onMouseEnter&&e.props.onMouseEnter(a),K&&L&&(0,n.onNavigationIntent)(a.currentTarget,!0===I)},onTouchStart:function(a){E||"function"!=typeof D||D(a),E&&e.props&&"function"==typeof e.props.onTouchStart&&e.props.onTouchStart(a),K&&L&&(0,n.onNavigationIntent)(a.currentTarget,!0===I)}};return(0,l.isAbsoluteUrl)(N)?Q.href=N:E&&!x&&("a"!==e.type||"href"in e.props)||(Q.href=(0,m.addBasePath)(N)),f=E?h.default.cloneElement(e,Q):(0,g.jsx)("a",{...J,...Q,children:d}),(0,g.jsx)(q.Provider,{value:p,children:f})}a.r(1502);let q=(0,h.createContext)(n.IDLE_LINK_STATUS),r=()=>(0,h.useContext)(q);("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)},26846,a=>{"use strict";var b=a.i(82508),c=a.i(34542),d=a.i(9301),e=a.i(63577),f=a.i(7048);a.s(["use_supabase_auth_session",0,function(){let a=(0,b.useRouter)(),[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(!1),k=(0,e.is_supabase_configured)();return(0,c.useEffect)(()=>{if(!k)return;let a=(0,d.create_browser_supabase_client)();a.auth.getUser().then(({data:{user:a}})=>{h(a?.email??null)});let{data:{subscription:b}}=a.auth.onAuthStateChange((a,b)=>{h(b?.user.email??null)});return()=>{b.unsubscribe()}},[k]),{is_configured:k,email:g,is_pending:i,sign_out:(0,c.useCallback)(async()=>{j(!0);try{await fetch("/api/auth/signout",{method:"POST"});let b=(0,d.create_browser_supabase_client)();await b.auth.signOut(),(0,f.notify_settings_saved)("Signed out"),a.refresh()}finally{j(!1)}},[a])}}])},41194,a=>{"use strict";var b=a.i(39752);function c(){return(0,b.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,b.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 d=a.i(26846);a.s(["TopbarCloudStatus",0,function(){let{email:a,is_configured:e}=(0,d.use_supabase_auth_session)();return e&&null!==a?(0,b.jsxs)("div",{className:"group relative flex items-center",children:[(0,b.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 ${a}`,role:"img",children:(0,b.jsx)(c,{})}),(0,b.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,b.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,b.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,b.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:a,children:a})]})})]}):null}],41194)},41615,a=>{"use strict";a.s(["build_auth_page_href",0,function(a,b){let c="sign_in"===a?"/login":"/register",d=b.trim();return 0===d.length||"/"===d?c:`${c}?next=${encodeURIComponent(d)}`}])},44103,a=>{"use strict";let b=new Set;a.s(["notify_theme_subscribers",0,function(){b.forEach(a=>{a()})},"subscribe_theme",0,function(a){return b.add(a),()=>{b.delete(a)}}])},81764,a=>{"use strict";a.s(["apply_theme",0,function(a){document.documentElement.setAttribute("data-theme",a)}])},34569,a=>{"use strict";var b=a.i(72958);a.s(["write_stored_theme",0,function(a){try{window.localStorage.setItem("super-time-tracker-theme",a),(0,b.schedule_ui_preferences_cloud_sync)()}catch{}}],34569)},84089,22592,a=>{"use strict";function b(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}a.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return b()}],84089);var c=a.i(81764),d=a.i(44103),e=a.i(29698),f=a.i(34569);a.s(["toggle_theme",0,function(){let a="dark"===b()?"light":"dark";(0,c.apply_theme)(a),(0,f.write_stored_theme)(a),e.theme_mode_preference.write(a),e.theme_mode_preference.notify(),(0,d.notify_theme_subscribers)()}],22592)},98790,a=>{"use strict";var b=a.i(39752),c=a.i(62988),d=a.i(41194),e=a.i(82508),f=a.i(34542),g=a.i(34435),h=a.i(41615),i=a.i(84089),j=a.i(44103),k=a.i(22592),l=a.i(96359),m=a.i(26846);let n="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";function o(){let a=(0,e.useRouter)(),d=(0,e.usePathname)()??"/",o=(0,f.useSyncExternalStore)(j.subscribe_theme,i.get_theme_snapshot,i.get_theme_server_snapshot),{email:p,is_configured:q,is_pending:r,sign_out:s}=(0,m.use_supabase_auth_session)(),[t,u]=(0,f.useState)(!1),v=(0,f.useRef)(null);(0,f.useEffect)(()=>{if(!t)return;let a=a=>{null===v.current||v.current.contains(a.target)||u(!1)};return document.addEventListener("pointerdown",a),()=>{document.removeEventListener("pointerdown",a)}},[t]);let w=()=>{u(!1)};return(0,l.use_escape_to_cancel)(w,t),(0,b.jsxs)("div",{className:"relative shrink-0",ref:v,children:[(0,b.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":t,"aria-haspopup":"menu",onClick:()=>u(a=>!a),children:(0,b.jsx)(g.HamburgerIcon,{})}),t?(0,b.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:[q&&null!==p?(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:p,children:p})}):null,(0,b.jsx)("li",{role:"none",children:(0,b.jsx)(c.default,{href:"/settings",className:n,role:"menuitem",onClick:w,children:"Settings"})}),(0,b.jsx)("li",{role:"none",children:(0,b.jsx)(c.default,{href:"/settings/tags",className:n,role:"menuitem",onClick:w,children:"Manage tags"})}),(0,b.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:n,role:"menuitem",onClick:()=>{w(),(0,k.toggle_theme)()},suppressHydrationWarning:!0,children:(0,b.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,b.jsx)("span",{"aria-hidden":"true",children:"dark"===o?"☾":"☀"}),(0,b.jsxs)("span",{children:["dark"===o?"Dark":"Light"," theme"]})]})})}),(0,b.jsx)("li",{role:"none",children:(0,b.jsxs)("button",{type:"button",className:n,role:"menuitem",onClick:()=>{w(),document.dispatchEvent(new KeyboardEvent("keydown",{key:"?",shiftKey:!0,bubbles:!0}))},children:["Keyboard shortcuts",(0,b.jsx)("span",{className:"ml-1 text-muted",children:"(?)"})]})}),q?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===p?(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:n,role:"menuitem",onClick:()=>{w(),a.push((0,h.build_auth_page_href)("sign_in",d))},children:"Sign in"})}):(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:`${n} text-danger`,role:"menuitem",disabled:r,onClick:()=>{w(),s()},children:r?"Signing out…":"Sign out"})})]}):null]}):null]})}function p({current:a,parent:d}){return(0,b.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,b.jsxs)("ol",{className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,b.jsx)("li",{children:(0,b.jsx)(c.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==d?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,b.jsx)("li",{children:void 0!==d.href?(0,b.jsx)(c.default,{className:"text-muted no-underline hover:text-foreground",href:d.href,children:d.label}):(0,b.jsx)("span",{className:"text-muted",children:d.label})})]}):null,(0,b.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,b.jsx)("li",{className:"font-medium text-foreground","aria-current":"page",children:a})]})})}a.s(["TrackerTopbar",0,function({breadcrumb:a}={}){return(0,b.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,b.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-5",children:[(0,b.jsx)("span",{className:"inline-flex shrink-0 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!==a?(0,b.jsx)(p,{current:a.current,parent:a.parent}):null,(0,b.jsxs)("div",{className:"ml-auto flex shrink-0 items-center justify-end gap-2",children:[(0,b.jsx)(c.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/",children:"Tracker"}),(0,b.jsx)(c.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/reporting",children:"Reporting"}),(0,b.jsx)(d.TopbarCloudStatus,{}),(0,b.jsx)(o,{})]})]})})}],98790)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_02np35c._.js.map
|
|
@@ -37,7 +37,7 @@ Expiration Time: ${e.toISOString()}`),h&&(r+=`
|
|
|
37
37
|
Not Before: ${h.toISOString()}`),i&&(r+=`
|
|
38
38
|
Request ID: ${i}`),j){let a="\nResources:";for(let b of j){if(!b||"string"!=typeof b)throw Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);a+=`
|
|
39
39
|
- ${b}`}r+=a}return`${q}
|
|
40
|
-
${r}`}({domain:r.host,address:t,statement:p,uri:r.href,version:"1",chainId:u,nonce:null==(d=null==q?void 0:q.signInWithEthereum)?void 0:d.nonce,issuedAt:null!=(f=null==(e=null==q?void 0:q.signInWithEthereum)?void 0:e.issuedAt)?f:new Date,expirationTime:null==(g=null==q?void 0:q.signInWithEthereum)?void 0:g.expirationTime,notBefore:null==(h=null==q?void 0:q.signInWithEthereum)?void 0:h.notBefore,requestId:null==(i=null==q?void 0:q.signInWithEthereum)?void 0:i.requestId,resources:null==(j=null==q?void 0:q.signInWithEthereum)?void 0:j.resources}),o=await l.request({method:"personal_sign",params:[(m=n,"0x"+Array.from(new TextEncoder().encode(m),a=>a.toString(16).padStart(2,"0")).join("")),t]})}try{let{data:b,error:c}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:n,signature:o},(null==(k=a.options)?void 0:k.captchaToken)?{gotrue_meta_security:{captcha_token:null==(l=a.options)?void 0:l.captchaToken}}:null),xform:b3});if(c)throw c;if(!b||!b.session||!b.user){let a=new bt;return this._returnResult({data:{user:null,session:null},error:a})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:c})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithSolana(a){var b,c,d,e,f,g,h,i,j,k,l,m;let n,o;if("message"in a)n=a.message,o=a.signature;else{let{chain:l,wallet:m,statement:p,options:q}=a;if("object"!=typeof m||!(null==q?void 0:q.url))throw Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");let r=new URL(null!=(b=null==q?void 0:q.url)?b:window.location.href);if("signIn"in m&&m.signIn){let a,b=await m.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},null==q?void 0:q.signInWithSolana),{version:"1",domain:r.host,uri:r.href}),p?{statement:p}:null));if(Array.isArray(b)&&b[0]&&"object"==typeof b[0])a=b[0];else if(b&&"object"==typeof b&&"signedMessage"in b&&"signature"in b)a=b;else throw Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in a&&"signature"in a&&("string"==typeof a.signedMessage||a.signedMessage instanceof Uint8Array)&&a.signature instanceof Uint8Array)n="string"==typeof a.signedMessage?a.signedMessage:new TextDecoder().decode(a.signedMessage),o=a.signature;else throw Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in m)||"function"!=typeof m.signMessage||!("publicKey"in m)||"object"!=typeof m||!m.publicKey||!("toBase58"in m.publicKey)||"function"!=typeof m.publicKey.toBase58)throw Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");n=[`${r.host} wants you to sign in with your Solana account:`,m.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${r.href}`,`Issued At: ${null!=(d=null==(c=null==q?void 0:q.signInWithSolana)?void 0:c.issuedAt)?d:new Date().toISOString()}`,...(null==(e=null==q?void 0:q.signInWithSolana)?void 0:e.notBefore)?[`Not Before: ${q.signInWithSolana.notBefore}`]:[],...(null==(f=null==q?void 0:q.signInWithSolana)?void 0:f.expirationTime)?[`Expiration Time: ${q.signInWithSolana.expirationTime}`]:[],...(null==(g=null==q?void 0:q.signInWithSolana)?void 0:g.chainId)?[`Chain ID: ${q.signInWithSolana.chainId}`]:[],...(null==(h=null==q?void 0:q.signInWithSolana)?void 0:h.nonce)?[`Nonce: ${q.signInWithSolana.nonce}`]:[],...(null==(i=null==q?void 0:q.signInWithSolana)?void 0:i.requestId)?[`Request ID: ${q.signInWithSolana.requestId}`]:[],...(null==(k=null==(j=null==q?void 0:q.signInWithSolana)?void 0:j.resources)?void 0:k.length)?["Resources",...q.signInWithSolana.resources.map(a=>`- ${a}`)]:[]].join("\n");let a=await m.signMessage(new TextEncoder().encode(n),"utf8");if(!a||!(a instanceof Uint8Array))throw Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");o=a}}try{let{data:b,error:c}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:n,signature:bI(o)},(null==(l=a.options)?void 0:l.captchaToken)?{gotrue_meta_security:{captcha_token:null==(m=a.options)?void 0:m.captchaToken}}:null),xform:b3});if(c)throw c;if(!b||!b.session||!b.user){let a=new bt;return this._returnResult({data:{user:null,session:null},error:a})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:c})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async _exchangeCodeForSession(a){let b=await bL(this.storage,`${this.storageKey}-code-verifier`),[c,d]=(null!=b?b:"").split("/");try{if(!c&&"pkce"===this.flowType)throw new bw;let{data:b,error:e}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:a,code_verifier:c},xform:b3});if(await bM(this.storage,`${this.storageKey}-code-verifier`),e)throw e;if(!b||!b.session||!b.user){let a=new bt;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("recovery"===d?"PASSWORD_RECOVERY":"SIGNED_IN",b.session)),this._returnResult({data:Object.assign(Object.assign({},b),{redirectType:null!=d?d:null}),error:e})}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:{user:null,session:null,redirectType:null},error:a});throw a}}async signInWithIdToken(a){try{let{options:b,provider:c,token:d,access_token:e,nonce:f}=a,{data:g,error:h}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:c,id_token:d,access_token:e,nonce:f,gotrue_meta_security:{captcha_token:null==b?void 0:b.captchaToken}},xform:b3});if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!g||!g.session||!g.user){let a=new bt;return this._returnResult({data:{user:null,session:null},error:a})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:g,error:h})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithOtp(a){var b,c,d,e,f;try{if("email"in a){let{email:d,options:e}=a,f=null,g=null;"pkce"===this.flowType&&([f,g]=await bT(this.storage,this.storageKey));let{error:h}=await b1(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:null!=(b=null==e?void 0:e.data)?b:{},create_user:null==(c=null==e?void 0:e.shouldCreateUser)||c,gotrue_meta_security:{captcha_token:null==e?void 0:e.captchaToken},code_challenge:f,code_challenge_method:g},redirectTo:null==e?void 0:e.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in a){let{phone:b,options:c}=a,{data:g,error:h}=await b1(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:b,data:null!=(d=null==c?void 0:c.data)?d:{},create_user:null==(e=null==c?void 0:c.shouldCreateUser)||e,gotrue_meta_security:{captcha_token:null==c?void 0:c.captchaToken},channel:null!=(f=null==c?void 0:c.channel)?f:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:null==g?void 0:g.message_id},error:h})}throw new bu("You must provide either an email or phone number.")}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(a){var b,c;try{let d,e;"options"in a&&(d=null==(b=a.options)?void 0:b.redirectTo,e=null==(c=a.options)?void 0:c.captchaToken);let{data:f,error:g}=await b1(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},a),{gotrue_meta_security:{captcha_token:e}}),redirectTo:d,xform:b3});if(g)throw g;if(!f)throw Error("An error occurred on token verification.");let h=f.session,i=f.user;return(null==h?void 0:h.access_token)&&(await this._saveSession(h),await this._notifyAllSubscribers("recovery"==a.type?"PASSWORD_RECOVERY":"SIGNED_IN",h)),this._returnResult({data:{user:i,session:h},error:null})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithSSO(a){var b,c,d,e;try{let f=null,g=null;"pkce"===this.flowType&&([f,g]=await bT(this.storage,this.storageKey));let h=await b1(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in a?{provider_id:a.providerId}:null),"domain"in a?{domain:a.domain}:null),{redirect_to:null!=(c=null==(b=a.options)?void 0:b.redirectTo)?c:void 0}),(null==(d=null==a?void 0:a.options)?void 0:d.captchaToken)?{gotrue_meta_security:{captcha_token:a.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:f,code_challenge_method:g}),headers:this.headers,xform:b6});return null==(e=h.data)||e.url,this._returnResult(h)}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async a=>{let{data:{session:b},error:c}=a;if(c)throw c;if(!b)throw new br;let{error:d}=await b1(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:b.access_token});return this._returnResult({data:{user:null,session:null},error:d})})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async resend(a){try{let b=`${this.url}/resend`;if("email"in a){let{email:c,type:d,options:e}=a,{error:f}=await b1(this.fetch,"POST",b,{headers:this.headers,body:{email:c,type:d,gotrue_meta_security:{captcha_token:null==e?void 0:e.captchaToken}},redirectTo:null==e?void 0:e.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in a){let{phone:c,type:d,options:e}=a,{data:f,error:g}=await b1(this.fetch,"POST",b,{headers:this.headers,body:{phone:c,type:d,gotrue_meta_security:{captcha_token:null==e?void 0:e.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:null==f?void 0:f.message_id},error:g})}throw new bu("You must provide either an email or phone number and a type")}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async a=>a))}async _acquireLock(a,b){this._debug("#_acquireLock","begin",a);try{if(this.lockAcquired){let a=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),c=(async()=>(await a,await b()))();return this.pendingInLock.push((async()=>{try{await c}catch(a){}})()),c}return await this.lock(`lock:${this.storageKey}`,a,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;let a=b();for(this.pendingInLock.push((async()=>{try{await a}catch(a){}})()),await a;this.pendingInLock.length;){let a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await a}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(a){this._debug("#_useSession","begin");try{let b=await this.__loadSession();return await a(b)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",Error().stack);try{let b=null,c=await bL(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",c),null!==c&&(this._isValidSession(c)?b=c:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!b)return{data:{session:null},error:null};let d=!!b.expires_at&&1e3*b.expires_at-Date.now()<9e4;if(this._debug("#__loadSession()",`session has${d?"":" not"} expired`,"expires_at",b.expires_at),!d){if(this.userStorage){let a=await bL(this.userStorage,this.storageKey+"-user");(null==a?void 0:a.user)?b.user=a.user:b.user=bY()}if(this.storage.isServer&&b.user&&!b.user.__isUserNotAvailableProxy){var a;let c={value:this.suppressGetSessionWarning};b.user=(a=b.user,new Proxy(a,{get:(a,b,d)=>{if("__isInsecureUserWarningProxy"===b)return!0;if("symbol"==typeof b){let c=b.toString();if("Symbol(Symbol.toPrimitive)"===c||"Symbol(Symbol.toStringTag)"===c||"Symbol(util.inspect.custom)"===c||"Symbol(nodejs.util.inspect.custom)"===c)return Reflect.get(a,b,d)}return c.value||"string"!=typeof b||(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),c.value=!0),Reflect.get(a,b,d)}})),c.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:b},error:null}}let{data:e,error:f}=await this._callRefreshToken(b.refresh_token);if(f)return this._returnResult({data:{session:null},error:f});return this._returnResult({data:{session:e},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(a){if(a)return await this._getUser(a);await this.initializePromise;let b=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return b.data.user&&(this.suppressGetSessionWarning=!0),b}async _getUser(a){try{if(a)return await b1(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:a,xform:b5});return await this._useSession(async a=>{var b,c,d;let{data:e,error:f}=a;if(f)throw f;return(null==(b=e.session)?void 0:b.access_token)||this.hasCustomAuthorizationHeader?await b1(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:null!=(d=null==(c=e.session)?void 0:c.access_token)?d:void 0,xform:b5}):{data:{user:null},error:new br}})}catch(a){if(bn(a))return bs(a)&&(await this._removeSession(),await bM(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:a});throw a}}async updateUser(a,b={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(a,b))}async _updateUser(a,b={}){try{return await this._useSession(async c=>{let{data:d,error:e}=c;if(e)throw e;if(!d.session)throw new br;let f=d.session,g=null,h=null;"pkce"===this.flowType&&null!=a.email&&([g,h]=await bT(this.storage,this.storageKey));let{data:i,error:j}=await b1(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null==b?void 0:b.emailRedirectTo,body:Object.assign(Object.assign({},a),{code_challenge:g,code_challenge_method:h}),jwt:f.access_token,xform:b5});if(j)throw j;return f.user=i.user,await this._saveSession(f),await this._notifyAllSubscribers("USER_UPDATED",f),this._returnResult({data:{user:f.user},error:null})})}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:{user:null},error:a});throw a}}async setSession(a){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(a))}async _setSession(a){try{if(!a.access_token||!a.refresh_token)throw new br;let b=Date.now()/1e3,c=b,d=!0,e=null,{payload:f}=bO(a.access_token);if(f.exp&&(d=(c=f.exp)<=b),d){let{data:b,error:c}=await this._callRefreshToken(a.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!b)return{data:{user:null,session:null},error:null};e=b}else{let{data:d,error:f}=await this._getUser(a.access_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});e={access_token:a.access_token,refresh_token:a.refresh_token,user:d.user,token_type:"bearer",expires_in:c-b,expires_at:c},await this._saveSession(e),await this._notifyAllSubscribers("SIGNED_IN",e)}return this._returnResult({data:{user:e.user,session:e},error:null})}catch(a){if(bn(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}}async refreshSession(a){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(a))}async _refreshSession(a){try{return await this._useSession(async b=>{var c;if(!a){let{data:d,error:e}=b;if(e)throw e;a=null!=(c=d.session)?c:void 0}if(!(null==a?void 0:a.refresh_token))throw new br;let{data:d,error:e}=await this._callRefreshToken(a.refresh_token);return e?this._returnResult({data:{user:null,session:null},error:e}):d?this._returnResult({data:{user:d.user,session:d},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async _getSessionFromURL(a,b){try{throw new bv("No browser detected.")}catch(a){if(bn(a))return this._returnResult({data:{session:null,redirectType:null},error:a});throw a}}_isImplicitGrantCallback(a){return"function"==typeof this.detectSessionInUrl?this.detectSessionInUrl(new URL(window.location.href),a):!!(a.access_token||a.error_description)}async _isPKCECallback(a){let b=await bL(this.storage,`${this.storageKey}-code-verifier`);return!!(a.code&&b)}async signOut(a={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(a))}async _signOut({scope:a}={scope:"global"}){return await this._useSession(async b=>{var c;let{data:d,error:e}=b;if(e&&!bs(e))return this._returnResult({error:e});let f=null==(c=d.session)?void 0:c.access_token;if(f){let{error:b}=await this.admin.signOut(f,a);if(b&&!(bn(b)&&"AuthApiError"===b.name&&(404===b.status||401===b.status||403===b.status)||bs(b)))return this._returnResult({error:b})}return"others"!==a&&(await this._removeSession(),await bM(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(a){let b=Symbol("auth-callback"),c={id:b,callback:a,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",b),this.stateChangeEmitters.delete(b)}};return this._debug("#onAuthStateChange()","registered callback with id",b),this.stateChangeEmitters.set(b,c),(async()=>{await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(b)})})(),{data:{subscription:c}}}async _emitInitialSession(a){return await this._useSession(async b=>{var c,d;try{let{data:{session:d},error:e}=b;if(e)throw e;await (null==(c=this.stateChangeEmitters.get(a))?void 0:c.callback("INITIAL_SESSION",d)),this._debug("INITIAL_SESSION","callback id",a,"session",d)}catch(b){await (null==(d=this.stateChangeEmitters.get(a))?void 0:d.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",a,"error",b),bs(b)?console.warn(b):console.error(b)}})}async resetPasswordForEmail(a,b={}){let c=null,d=null;"pkce"===this.flowType&&([c,d]=await bT(this.storage,this.storageKey,!0));try{return await b1(this.fetch,"POST",`${this.url}/recover`,{body:{email:a,code_challenge:c,code_challenge_method:d,gotrue_meta_security:{captcha_token:b.captchaToken}},headers:this.headers,redirectTo:b.redirectTo})}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var a;try{let{data:b,error:c}=await this.getUser();if(c)throw c;return this._returnResult({data:{identities:null!=(a=b.user.identities)?a:[]},error:null})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async linkIdentity(a){return"token"in a?this.linkIdentityIdToken(a):this.linkIdentityOAuth(a)}async linkIdentityOAuth(a){try{let{data:b,error:c}=await this._useSession(async b=>{var c,d,e,f,g;let{data:h,error:i}=b;if(i)throw i;let j=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,a.provider,{redirectTo:null==(c=a.options)?void 0:c.redirectTo,scopes:null==(d=a.options)?void 0:d.scopes,queryParams:null==(e=a.options)?void 0:e.queryParams,skipBrowserRedirect:!0});return await b1(this.fetch,"GET",j,{headers:this.headers,jwt:null!=(g=null==(f=h.session)?void 0:f.access_token)?g:void 0})});if(c)throw c;return this._returnResult({data:{provider:a.provider,url:null==b?void 0:b.url},error:null})}catch(b){if(bn(b))return this._returnResult({data:{provider:a.provider,url:null},error:b});throw b}}async linkIdentityIdToken(a){return await this._useSession(async b=>{var c;try{let{error:d,data:{session:e}}=b;if(d)throw d;let{options:f,provider:g,token:h,access_token:i,nonce:j}=a,{data:k,error:l}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:null!=(c=null==e?void 0:e.access_token)?c:void 0,body:{provider:g,id_token:h,access_token:i,nonce:j,link_identity:!0,gotrue_meta_security:{captcha_token:null==f?void 0:f.captchaToken}},xform:b3});if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!k||!k.session||!k.user)return this._returnResult({data:{user:null,session:null},error:new bt});return k.session&&(await this._saveSession(k.session),await this._notifyAllSubscribers("USER_UPDATED",k.session)),this._returnResult({data:k,error:l})}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}})}async unlinkIdentity(a){try{return await this._useSession(async b=>{var c,d;let{data:e,error:f}=b;if(f)throw f;return await b1(this.fetch,"DELETE",`${this.url}/user/identities/${a.identity_id}`,{headers:this.headers,jwt:null!=(d=null==(c=e.session)?void 0:c.access_token)?d:void 0})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _refreshAccessToken(a){let b=`#_refreshAccessToken(${a.substring(0,5)}...)`;this._debug(b,"begin");try{var c,d;let e=Date.now();return await (c=async c=>(c>0&&await bP(200*Math.pow(2,c-1)),this._debug(b,"refreshing attempt",c),await b1(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:a},headers:this.headers,xform:b3})),d=(a,b)=>{let c=200*Math.pow(2,a);return b&&by(b)&&Date.now()+c-e<3e4},new Promise((a,b)=>{(async()=>{for(let e=0;e<1/0;e++)try{let b=await c(e);if(!d(e,null,b))return void a(b)}catch(a){if(!d(e,a))return void b(a)}})()}))}catch(a){if(this._debug(b,"error",a),bn(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}finally{this._debug(b,"end")}}_isValidSession(a){return"object"==typeof a&&null!==a&&"access_token"in a&&"refresh_token"in a&&"expires_at"in a}async _handleProviderSignIn(a,b){let c=await this._getUrlForProvider(`${this.url}/authorize`,a,{redirectTo:b.redirectTo,scopes:b.scopes,queryParams:b.queryParams});return this._debug("#_handleProviderSignIn()","provider",a,"options",b,"url",c),{data:{provider:a,url:c},error:null}}async _recoverAndRefresh(){var a,b;let c="#_recoverAndRefresh()";this._debug(c,"begin");try{let d=await bL(this.storage,this.storageKey);if(d&&this.userStorage){let b=await bL(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!b&&(b={user:d.user},await bK(this.userStorage,this.storageKey+"-user",b)),d.user=null!=(a=null==b?void 0:b.user)?a:bY()}else if(d&&!d.user&&!d.user){let a=await bL(this.storage,this.storageKey+"-user");a&&(null==a?void 0:a.user)?(d.user=a.user,await bM(this.storage,this.storageKey+"-user"),await bK(this.storage,this.storageKey,d)):d.user=bY()}if(this._debug(c,"session from storage",d),!this._isValidSession(d)){this._debug(c,"session is not valid"),null!==d&&await this._removeSession();return}let e=(null!=(b=d.expires_at)?b:1/0)*1e3-Date.now()<9e4;if(this._debug(c,`session has${e?"":" not"} expired with margin of 90000s`),e){if(this.autoRefreshToken&&d.refresh_token){let{error:a}=await this._callRefreshToken(d.refresh_token);a&&(console.error(a),by(a)||(this._debug(c,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(d.user&&!0===d.user.__isUserNotAvailableProxy)try{let{data:a,error:b}=await this._getUser(d.access_token);!b&&(null==a?void 0:a.user)?(d.user=a.user,await this._saveSession(d),await this._notifyAllSubscribers("SIGNED_IN",d)):this._debug(c,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(c,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",d)}catch(a){this._debug(c,"error",a),console.error(a);return}finally{this._debug(c,"end")}}async _callRefreshToken(a){var b,c;if(!a)throw new br;if(this.refreshingDeferred)return this.refreshingDeferred.promise;let d=`#_callRefreshToken(${a.substring(0,5)}...)`;this._debug(d,"begin");try{this.refreshingDeferred=new bN;let{data:b,error:c}=await this._refreshAccessToken(a);if(c)throw c;if(!b.session)throw new br;await this._saveSession(b.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",b.session);let d={data:b.session,error:null};return this.refreshingDeferred.resolve(d),d}catch(a){if(this._debug(d,"error",a),bn(a)){let c={data:null,error:a};return by(a)||await this._removeSession(),null==(b=this.refreshingDeferred)||b.resolve(c),c}throw null==(c=this.refreshingDeferred)||c.reject(a),a}finally{this.refreshingDeferred=null,this._debug(d,"end")}}async _notifyAllSubscribers(a,b,c=!0){let d=`#_notifyAllSubscribers(${a})`;this._debug(d,"begin",b,`broadcast = ${c}`);try{this.broadcastChannel&&c&&this.broadcastChannel.postMessage({event:a,session:b});let d=[],e=Array.from(this.stateChangeEmitters.values()).map(async c=>{try{await c.callback(a,b)}catch(a){d.push(a)}});if(await Promise.all(e),d.length>0){for(let a=0;a<d.length;a+=1)console.error(d[a]);throw d[0]}}finally{this._debug(d,"end")}}async _saveSession(a){this._debug("#_saveSession()",a),this.suppressGetSessionWarning=!0,await bM(this.storage,`${this.storageKey}-code-verifier`);let b=Object.assign({},a),c=b.user&&!0===b.user.__isUserNotAvailableProxy;if(this.userStorage){!c&&b.user&&await bK(this.userStorage,this.storageKey+"-user",{user:b.user});let a=Object.assign({},b);delete a.user;let d=bZ(a);await bK(this.storage,this.storageKey,d)}else{let a=bZ(b);await bK(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await bM(this.storage,this.storageKey),await bM(this.storage,this.storageKey+"-code-verifier"),await bM(this.storage,this.storageKey+"-user"),this.userStorage&&await bM(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()"),this.visibilityChangedCallback,this.visibilityChangedCallback=null}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");let a=setInterval(()=>this._autoRefreshTokenTick(),3e4);this.autoRefreshTicker=a,a&&"object"==typeof a&&"function"==typeof a.unref?a.unref():"u">typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(a);let b=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=b,b&&"object"==typeof b&&"function"==typeof b.unref?b.unref():"u">typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(b)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");let a=this.autoRefreshTicker;this.autoRefreshTicker=null,a&&clearInterval(a);let b=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,b&&clearTimeout(b)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{let a=Date.now();try{return await this._useSession(async b=>{let{data:{session:c}}=b;if(!c||!c.refresh_token||!c.expires_at)return void this._debug("#_autoRefreshTokenTick()","no session");let d=Math.floor((1e3*c.expires_at-a)/3e4);this._debug("#_autoRefreshTokenTick()",`access token expires in ${d} ticks, a tick lasts 30000ms, refresh threshold is 3 ticks`),d<=3&&await this._callRefreshToken(c.refresh_token)})}catch(a){console.error("Auto refresh tick failed with error. This is likely a transient error.",a)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(a){if(a instanceof cc)this._debug("auto refresh token tick lock not available");else throw a}}async _handleVisibilityChange(){return this._debug("#_handleVisibilityChange()"),this.autoRefreshToken&&this.startAutoRefresh(),!1}async _onVisibilityChanged(a){let b=`#_onVisibilityChanged(${a})`;this._debug(b,"visibilityState",document.visibilityState),"visible"===document.visibilityState?(this.autoRefreshToken&&this._startAutoRefresh(),a||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{"visible"!==document.visibilityState?this._debug(b,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting"):await this._recoverAndRefresh()}))):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(a,b,c){let d=[`provider=${encodeURIComponent(b)}`];if((null==c?void 0:c.redirectTo)&&d.push(`redirect_to=${encodeURIComponent(c.redirectTo)}`),(null==c?void 0:c.scopes)&&d.push(`scopes=${encodeURIComponent(c.scopes)}`),"pkce"===this.flowType){let[a,b]=await bT(this.storage,this.storageKey),c=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(b)}`});d.push(c.toString())}if(null==c?void 0:c.queryParams){let a=new URLSearchParams(c.queryParams);d.push(a.toString())}return(null==c?void 0:c.skipBrowserRedirect)&&d.push(`skip_http_redirect=${c.skipBrowserRedirect}`),`${a}?${d.join("&")}`}async _unenroll(a){try{return await this._useSession(async b=>{var c;let{data:d,error:e}=b;return e?this._returnResult({data:null,error:e}):await b1(this.fetch,"DELETE",`${this.url}/factors/${a.factorId}`,{headers:this.headers,jwt:null==(c=null==d?void 0:d.session)?void 0:c.access_token})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _enroll(a){try{return await this._useSession(async b=>{var c,d;let{data:e,error:f}=b;if(f)return this._returnResult({data:null,error:f});let g=Object.assign({friendly_name:a.friendlyName,factor_type:a.factorType},"phone"===a.factorType?{phone:a.phone}:"totp"===a.factorType?{issuer:a.issuer}:{}),{data:h,error:i}=await b1(this.fetch,"POST",`${this.url}/factors`,{body:g,headers:this.headers,jwt:null==(c=null==e?void 0:e.session)?void 0:c.access_token});return i?this._returnResult({data:null,error:i}):("totp"===a.factorType&&"totp"===h.type&&(null==(d=null==h?void 0:h.totp)?void 0:d.qr_code)&&(h.totp.qr_code=`data:image/svg+xml;utf-8,${h.totp.qr_code}`),this._returnResult({data:h,error:null}))})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _verify(a){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async b=>{var c;let{data:d,error:e}=b;if(e)return this._returnResult({data:null,error:e});let f=Object.assign({challenge_id:a.challengeId},"webauthn"in a?{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_response:"create"===a.webauthn.type?cj(a.webauthn.credential_response):ck(a.webauthn.credential_response)})}:{code:a.code}),{data:g,error:h}=await b1(this.fetch,"POST",`${this.url}/factors/${a.factorId}/verify`,{body:f,headers:this.headers,jwt:null==(c=null==d?void 0:d.session)?void 0:c.access_token});return h?this._returnResult({data:null,error:h}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+g.expires_in},g)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",g),this._returnResult({data:g,error:h}))})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}})}async _challenge(a){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async b=>{var c;let{data:d,error:e}=b;if(e)return this._returnResult({data:null,error:e});let f=await b1(this.fetch,"POST",`${this.url}/factors/${a.factorId}/challenge`,{body:a,headers:this.headers,jwt:null==(c=null==d?void 0:d.session)?void 0:c.access_token});if(f.error)return f;let{data:g}=f;if("webauthn"!==g.type)return{data:g,error:null};switch(g.webauthn.type){case"create":return{data:Object.assign(Object.assign({},g),{webauthn:Object.assign(Object.assign({},g.webauthn),{credential_options:Object.assign(Object.assign({},g.webauthn.credential_options),{publicKey:ch(g.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},g),{webauthn:Object.assign(Object.assign({},g.webauthn),{credential_options:Object.assign(Object.assign({},g.webauthn.credential_options),{publicKey:ci(g.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}})}async _challengeAndVerify(a){let{data:b,error:c}=await this._challenge({factorId:a.factorId});return c?this._returnResult({data:null,error:c}):await this._verify({factorId:a.factorId,challengeId:b.id,code:a.code})}async _listFactors(){var a;let{data:{user:b},error:c}=await this.getUser();if(c)return{data:null,error:c};let d={all:[],phone:[],totp:[],webauthn:[]};for(let c of null!=(a=null==b?void 0:b.factors)?a:[])d.all.push(c),"verified"===c.status&&d[c.factor_type].push(c);return{data:d,error:null}}async _getAuthenticatorAssuranceLevel(a){var b,c,d,e;if(a)try{let{payload:d}=bO(a),e=null;d.aal&&(e=d.aal);let f=e,{data:{user:g},error:h}=await this.getUser(a);if(h)return this._returnResult({data:null,error:h});(null!=(c=null==(b=null==g?void 0:g.factors)?void 0:b.filter(a=>"verified"===a.status))?c:[]).length>0&&(f="aal2");let i=d.amr||[];return{data:{currentLevel:e,nextLevel:f,currentAuthenticationMethods:i},error:null}}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}let{data:{session:f},error:g}=await this.getSession();if(g)return this._returnResult({data:null,error:g});if(!f)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let{payload:h}=bO(f.access_token),i=null;h.aal&&(i=h.aal);let j=i;return(null!=(e=null==(d=f.user.factors)?void 0:d.filter(a=>"verified"===a.status))?e:[]).length>0&&(j="aal2"),{data:{currentLevel:i,nextLevel:j,currentAuthenticationMethods:h.amr||[]},error:null}}async _getAuthorizationDetails(a){try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;return d?this._returnResult({data:null,error:d}):c?await b1(this.fetch,"GET",`${this.url}/oauth/authorizations/${a}`,{headers:this.headers,jwt:c.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new br})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _approveAuthorization(a,b){try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let e=await b1(this.fetch,"POST",`${this.url}/oauth/authorizations/${a}/consent`,{headers:this.headers,jwt:c.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return e.data&&e.data.redirect_url,e})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _denyAuthorization(a,b){try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let e=await b1(this.fetch,"POST",`${this.url}/oauth/authorizations/${a}/consent`,{headers:this.headers,jwt:c.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return e.data&&e.data.redirect_url,e})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _listOAuthGrants(){try{return await this._useSession(async a=>{let{data:{session:b},error:c}=a;return c?this._returnResult({data:null,error:c}):b?await b1(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:b.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new br})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _revokeOAuthGrant(a){try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;return d?this._returnResult({data:null,error:d}):c?(await b1(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:c.access_token,query:{client_id:a.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new br})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async fetchJwk(a,b={keys:[]}){let c=b.keys.find(b=>b.kid===a);if(c)return c;let d=Date.now();if((c=this.jwks.keys.find(b=>b.kid===a))&&this.jwks_cached_at+6e5>d)return c;let{data:e,error:f}=await b1(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(f)throw f;return e.keys&&0!==e.keys.length&&(this.jwks=e,this.jwks_cached_at=d,c=e.keys.find(b=>b.kid===a))?c:null}async getClaims(a,b={}){try{var c;let d,e=a;if(!e){let{data:a,error:b}=await this.getSession();if(b||!a.session)return this._returnResult({data:null,error:b});e=a.session.access_token}let{header:f,payload:g,signature:h,raw:{header:i,payload:j}}=bO(e);(null==b?void 0:b.allowExpired)||function(a){if(!a)throw Error("Missing exp claim");if(a<=Math.floor(Date.now()/1e3))throw Error("JWT has expired")}(g.exp);let k=!f.alg||f.alg.startsWith("HS")||!f.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(f.kid,(null==b?void 0:b.keys)?{keys:b.keys}:null==b?void 0:b.jwks);if(!k){let{error:a}=await this.getUser(e);if(a)throw a;return{data:{claims:g,header:f,signature:h},error:null}}let l=function(a){switch(a){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw Error("Invalid alg claim")}}(f.alg),m=await crypto.subtle.importKey("jwk",k,l,!0,["verify"]);if(!await crypto.subtle.verify(l,m,h,(c=`${i}.${j}`,d=[],!function(a,b){for(let c=0;c<a.length;c+=1){let d=a.charCodeAt(c);if(d>55295&&d<=56319){let b=(d-55296)*1024&65535;d=(a.charCodeAt(c+1)-56320&65535|b)+65536,c+=1}!function(a,b){if(a<=127)return b(a);if(a<=2047){b(192|a>>6),b(128|63&a);return}if(a<=65535){b(224|a>>12),b(128|a>>6&63),b(128|63&a);return}if(a<=1114111){b(240|a>>18),b(128|a>>12&63),b(128|a>>6&63),b(128|63&a);return}throw Error(`Unrecognized Unicode codepoint: ${a.toString(16)}`)}(d,b)}}(c,a=>d.push(a)),new Uint8Array(d))))throw new bA("Invalid JWT signature");return{data:{claims:g,header:f,signature:h},error:null}}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async signInWithPasskey(a){var b,c,d;bX(this.experimental);try{1;return this._returnResult({data:null,error:new bp("Browser does not support WebAuthn",null)})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async registerPasskey(a){var b,c;bX(this.experimental);try{1;return this._returnResult({data:null,error:new bp("Browser does not support WebAuthn",null)})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _startPasskeyRegistration(){bX(this.experimental);try{return await this._useSession(async a=>{let{data:{session:b},error:c}=a;if(c)return this._returnResult({data:null,error:c});if(!b)return this._returnResult({data:null,error:new br});let{data:d,error:e}=await b1(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:b.access_token,body:{}});return e?this._returnResult({data:null,error:e}):this._returnResult({data:d,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _verifyPasskeyRegistration(a){bX(this.experimental);try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let{data:e,error:f}=await b1(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:c.access_token,body:{challenge_id:a.challengeId,credential:a.credential}});return f?this._returnResult({data:null,error:f}):this._returnResult({data:e,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _startPasskeyAuthentication(a){var b;bX(this.experimental);try{let{data:c,error:d}=await b1(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:null==(b=null==a?void 0:a.options)?void 0:b.captchaToken}}});if(d)return this._returnResult({data:null,error:d});return this._returnResult({data:c,error:null})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _verifyPasskeyAuthentication(a){bX(this.experimental);try{let{data:b,error:c}=await b1(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:a.challengeId,credential:a.credential},xform:b3});if(c)return this._returnResult({data:null,error:c});return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:b,error:null})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _listPasskeys(){bX(this.experimental);try{return await this._useSession(async a=>{let{data:{session:b},error:c}=a;if(c)return this._returnResult({data:null,error:c});if(!b)return this._returnResult({data:null,error:new br});let{data:d,error:e}=await b1(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:b.access_token,xform:a=>({data:a,error:null})});return e?this._returnResult({data:null,error:e}):this._returnResult({data:d,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _updatePasskey(a){bX(this.experimental);try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let{data:e,error:f}=await b1(this.fetch,"PATCH",`${this.url}/passkeys/${a.passkeyId}`,{headers:this.headers,jwt:c.access_token,body:{friendly_name:a.friendlyName}});return f?this._returnResult({data:null,error:f}):this._returnResult({data:e,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _deletePasskey(a){bX(this.experimental);try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let{error:e}=await b1(this.fetch,"DELETE",`${this.url}/passkeys/${a.passkeyId}`,{headers:this.headers,jwt:c.access_token,noResolveJson:!0});return e?this._returnResult({data:null,error:e}):this._returnResult({data:null,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}}cv.nextInstanceID={};let cw=cv,cx="";cx="u">typeof Deno?"deno":"u">typeof document?"web":"u">typeof navigator&&"ReactNative"===navigator.product?"react-native":"node";let cy={headers:{"X-Client-Info":`supabase-js-${cx}/2.106.0`}},cz={schema:"public"},cA={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},cB={},cC={enabled:!1,respectSamplingDecision:!0},cD=null;function cE(a){return(cE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function cF(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function cG(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?cF(Object(c),!0).forEach(function(b){!function(a,b,c){var d;(d=function(a,b){if("object"!=cE(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=cE(d))return d;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}(b,"string"),(b="symbol"==cE(d)?d:d+"")in a)?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c}(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):cF(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}async function cH(a,b,c){if(!function(a,b){let c;if(!a||!b||0===b.length)return!1;if(a instanceof URL)c=a;else try{c=new URL(a)}catch(a){return!1}for(let a of b)try{if("string"==typeof a){if(function(a,b){if(b===a)return!0;if(b.startsWith("*.")){let c=b.slice(2);if(a.endsWith(c)&&(a===c||a.endsWith("."+c)))return!0}return!1}(c.hostname,a))return!0}else if(a instanceof RegExp){if(a.test(c.hostname))return!0}else if("function"==typeof a&&a(c))return!0}catch(a){continue}return!1}("string"==typeof a||a instanceof URL?a:a.url,b))return null;let d=await function(){var a,b,c,d;return a=this,b=void 0,c=void 0,d=function*(){try{let a=yield(null===cD&&(cD=import("@opentelemetry/api").catch(()=>null)),cD);if(!a||!a.propagation||!a.context)return null;let b={};a.propagation.inject(a.context.active(),b);let c=b.traceparent;if(!c)return null;return{traceparent:c,tracestate:b.tracestate,baggage:b.baggage}}catch(a){return null}},new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})}();if(!d||!d.traceparent)return null;if(c){let a=function(a){if(!a||"string"!=typeof a)return null;let b=a.split("-");if(4!==b.length)return null;let[c,d,e,f]=b;if(2!==c.length||32!==d.length||16!==e.length||2!==f.length)return null;let g=/^[0-9a-f]+$/i;return g.test(c)&&g.test(d)&&g.test(e)&&g.test(f)&&"00000000000000000000000000000000"!==d&&"0000000000000000"!==e?{version:c,traceId:d,parentId:e,traceFlags:f,isSampled:(1&parseInt(f,16))==1}:null}(d.traceparent);if(a&&!a.isSampled)return null}return d}function cI(a){return"boolean"==typeof a?{enabled:a}:a}var cJ=class extends cw{constructor(a){super(a)}},cK=class{constructor(a,b,c){var d,e,f;this.supabaseUrl=a,this.supabaseKey=b;const g=function(a){let b=null==a?void 0:a.trim();if(!b)throw Error("supabaseUrl is required.");if(!b.match(/^https?:\/\//i))throw Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(b.endsWith("/")?b:b+"/")}catch(a){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}(a);if(!b)throw Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",g),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",g),this.storageUrl=new URL("storage/v1",g),this.functionsUrl=new URL("functions/v1",g);const h=`sb-${g.hostname.split(".")[0]}-auth-token`,i=function(a,b){var c,d,e,f,g,h;let{db:i,auth:j,realtime:k,global:l}=a,{db:m,auth:n,realtime:o,global:p}=b,q=cI(a.tracePropagation),r=cI(b.tracePropagation),s={db:cG(cG({},m),i),auth:cG(cG({},n),j),realtime:cG(cG({},o),k),storage:{},global:cG(cG(cG({},p),l),{},{headers:cG(cG({},null!=(c=null==p?void 0:p.headers)?c:{}),null!=(d=null==l?void 0:l.headers)?d:{})}),tracePropagation:{enabled:null!=(e=null!=(f=null==q?void 0:q.enabled)?f:null==r?void 0:r.enabled)&&e,respectSamplingDecision:null==(g=null!=(h=null==q?void 0:q.respectSamplingDecision)?h:null==r?void 0:r.respectSamplingDecision)||g},accessToken:async()=>""};return a.accessToken?s.accessToken=a.accessToken:delete s.accessToken,s}(null!=c?c:{},{db:cz,realtime:cB,auth:cG(cG({},cA),{},{storageKey:h}),global:cy,tracePropagation:cC});this.settings=i,this.storageKey=null!=(d=i.auth.storageKey)?d:"",this.headers=null!=(e=i.global.headers)?e:{},i.accessToken?(this.accessToken=i.accessToken,this.auth=new Proxy({},{get:(a,b)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(b)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(null!=(f=i.auth)?f:{},this.headers,i.global.fetch),this.fetch=((a,b,c,d,e)=>{let f=d?(...a)=>d(...a):(...a)=>fetch(...a),g=Headers,h=(null==e?void 0:e.enabled)===!0,i=(null==e?void 0:e.respectSamplingDecision)!==!1,j=h?function(a){let b=[];try{let c=new URL(a);b.push(c.hostname)}catch(a){}return b.push("*.supabase.co","*.supabase.in"),b.push("localhost","127.0.0.1","[::1]"),b}(b):null;return async(b,d)=>{var e;let h=null!=(e=await c())?e:a,k=new g(null==d?void 0:d.headers);if(k.has("apikey")||k.set("apikey",a),k.has("Authorization")||k.set("Authorization",`Bearer ${h}`),j){let a=await cH(b,j,i);a&&(a.traceparent&&!k.has("traceparent")&&k.set("traceparent",a.traceparent),a.tracestate&&!k.has("tracestate")&&k.set("tracestate",a.tracestate),a.baggage&&!k.has("baggage")&&k.set("baggage",a.baggage))}return f(b,cG(cG({},d),{},{headers:k}))}})(b,a,this._getAccessToken.bind(this),i.global.fetch,i.tracePropagation),this.realtime=this._initRealtimeClient(cG({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},i.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(a=>this.realtime.setAuth(a)).catch(a=>console.warn("Failed to set initial Realtime auth token:",a)),this.rest=new J(new URL("rest/v1",g).href,{headers:this.headers,schema:i.db.schema,fetch:this.fetch,timeout:i.db.timeout,urlLengthLimit:i.db.urlLengthLimit}),this.storage=new bg(this.storageUrl.href,this.headers,this.fetch,null==c?void 0:c.storage),i.accessToken||this._listenForAuthEvents()}get functions(){return new v(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(a){return this.rest.from(a)}schema(a){return this.rest.schema(a)}rpc(a,b={},c={head:!1,get:!1,count:void 0}){return this.rest.rpc(a,b,c)}channel(a,b={config:{}}){return this.realtime.channel(a,b)}getChannels(){return this.realtime.getChannels()}removeChannel(a){return this.realtime.removeChannel(a)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var a,b;if(this.accessToken)return await this.accessToken();let{data:c}=await this.auth.getSession();return null!=(a=null==(b=c.session)?void 0:b.access_token)?a:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:a,persistSession:b,detectSessionInUrl:c,storage:d,userStorage:e,storageKey:f,flowType:g,lock:h,debug:i,throwOnError:j,experimental:k,lockAcquireTimeout:l,skipAutoInitialize:m},n,o){let p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new cJ({url:this.authUrl.href,headers:cG(cG({},p),n),storageKey:f,autoRefreshToken:a,persistSession:b,detectSessionInUrl:c,storage:d,userStorage:e,flowType:g,lock:h,debug:i,throwOnError:j,experimental:k,fetch:o,lockAcquireTimeout:l,skipAutoInitialize:m,hasCustomAuthorizationHeader:Object.keys(this.headers).some(a=>"authorization"===a.toLowerCase())})}_initRealtimeClient(a){return new aC(this.realtimeUrl.href,cG(cG({},a),{},{params:cG(cG({},{apikey:this.supabaseKey}),null==a?void 0:a.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((a,b)=>{this._handleTokenChanged(a,"CLIENT",null==b?void 0:b.access_token)})}_handleTokenChanged(a,b,c){("TOKEN_REFRESHED"===a||"SIGNED_IN"===a)&&this.changedAccessToken!==c?(this.changedAccessToken=c,this.realtime.setAuth(c)):"SIGNED_OUT"===a&&(this.realtime.setAuth(),"STORAGE"==b&&this.auth.signOut(),this.changedAccessToken=void 0)}};(function(){let a=globalThis.process;if(!a)return!1;let b=a.version;if(null==b)return!1;let c=b.match(/^v(\d+)\./);return!!c&&18>=parseInt(c[1],10)})()&&console.warn("⚠️ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");var cL=a.i(68805);let cM={path:"/",sameSite:"lax",httpOnly:!1,maxAge:3456e4},cN=/^(.*)[.](0|[1-9][0-9]*)$/;function cO(a,b){if(a===b)return!0;let c=a.match(cN);return!!c&&c[1]===b}function cP(a,b,c){let d=c??3180,e=encodeURIComponent(b);if(e.length<=d)return[{name:a,value:b}];let f=[];for(;e.length>0;){let a=e.slice(0,d),b=a.lastIndexOf("%");b>d-3&&(a=a.slice(0,b));let c="";for(;a.length>0;)try{c=decodeURIComponent(a);break}catch(b){if(b instanceof URIError&&"%"===a.at(-3)&&a.length>3)a=a.slice(0,a.length-3);else throw b}f.push(c),e=e.slice(a.length)}return f.map((b,c)=>({name:`${a}.${c}`,value:b}))}async function cQ(a,b){let c=await b(a);if(c)return c;let d=[];for(let c=0;;c++){let e=`${a}.${c}`,f=await b(e);if(!f)break;d.push(f)}return d.length>0?d.join(""):null}cL.parse,cL.serialize;let cR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),cS=" \n\r=".split(""),cT=(()=>{let a=Array(128);for(let b=0;b<a.length;b+=1)a[b]=-1;for(let b=0;b<cS.length;b+=1)a[cS[b].charCodeAt(0)]=-2;for(let b=0;b<cR.length;b+=1)a[cR[b].charCodeAt(0)]=b;return a})();function cU(a){let b=[],c=0,d=0;if(function(a,b){for(let c=0;c<a.length;c+=1){let d=a.charCodeAt(c);if(d>55295&&d<=56319){let b=(d-55296)*1024&65535;d=(a.charCodeAt(c+1)-56320&65535|b)+65536,c+=1}!function(a,b){if(a<=127)return b(a);if(a<=2047){b(192|a>>6),b(128|63&a);return}if(a<=65535){b(224|a>>12),b(128|a>>6&63),b(128|63&a);return}if(a<=1114111){b(240|a>>18),b(128|a>>12&63),b(128|a>>6&63),b(128|63&a);return}throw Error(`Unrecognized Unicode codepoint: ${a.toString(16)}`)}(d,b)}}(a,a=>{for(c=c<<8|a,d+=8;d>=6;){let a=c>>d-6&63;b.push(cR[a]),d-=6}}),d>0)for(c<<=6-d,d=6;d>=6;){let a=c>>d-6&63;b.push(cR[a]),d-=6}return b.join("")}let cV="base64-";function cW(a){let b;if(!a.startsWith(cV))return a;try{b=function(a){let b=[],c=a=>{b.push(String.fromCodePoint(a))},d={utf8seq:0,codepoint:0},e=0,f=0;for(let b=0;b<a.length;b+=1){let g=cT[a.charCodeAt(b)];if(g>-1)for(e=e<<6|g,f+=6;f>=8;)(function(a,b,c){if(0===b.utf8seq){if(a<=127)return c(a);for(let c=1;c<6;c+=1)if((a>>7-c&1)==0){b.utf8seq=c;break}if(2===b.utf8seq)b.codepoint=31&a;else if(3===b.utf8seq)b.codepoint=15&a;else if(4===b.utf8seq)b.codepoint=7&a;else throw Error("Invalid UTF-8 sequence");b.utf8seq-=1}else if(b.utf8seq>0){if(a<=127)throw Error("Invalid UTF-8 sequence");b.codepoint=b.codepoint<<6|63&a,b.utf8seq-=1,0===b.utf8seq&&c(b.codepoint)}})(e>>f-8&255,d,c),f-=8;else if(-2===g)continue;else throw Error(`Invalid Base64-URL character "${a.at(b)}" at position ${b}`)}return b.join("")}(a.substring(cV.length))}catch(a){return console.warn("@supabase/ssr: could not base64url-decode chunked cookie value, treating as absent. Cookie chunks may have been written partially across responses.",a),null}try{JSON.parse(b)}catch{return console.warn("@supabase/ssr: chunked cookie decoded to invalid JSON, treating as absent. This usually indicates that cookie chunks from different writes were combined (e.g. response committed before all Set-Cookie headers were sent)."),null}return b}async function cX({getAll:a,setAll:b,setItems:c,removedItems:d},e){let f=e.cookieEncoding,g=e.cookieOptions??null,h=await a([...c?Object.keys(c):[],...d?Object.keys(d):[]]),i=h?.map(({name:a})=>a)||[],j=Object.keys(d).flatMap(a=>i.filter(b=>cO(b,a))),k=Object.keys(c).flatMap(a=>{let b=new Set(i.filter(b=>cO(b,a))),d=c[a];"base64url"===f&&(d=cV+cU(d));let e=cP(a,d);return e.forEach(a=>{b.delete(a.name)}),j.push(...b),e}),l={...cM,...g,maxAge:0},m={...cM,...g,maxAge:cM.maxAge};delete l.name,delete m.name,await b([...j.map(a=>({name:a,value:"",options:l})),...k.map(({name:a,value:b})=>({name:a,value:b,options:m}))],{"Cache-Control":"private, no-cache, no-store, must-revalidate, max-age=0",Expires:"0",Pragma:"no-cache"})}let cY=!1,cZ=["@supabase/auth-helpers-nextjs","@supabase/auth-helpers-react","@supabase/auth-helpers-remix","@supabase/auth-helpers-sveltekit"];var c$=a.i(40035);async function c_(){let{anon_key:a,url:b}=function(){if(!(0,p.is_supabase_configured)())throw Error("Supabase is not configured");return{url:process.env.NEXT_PUBLIC_SUPABASE_URL.trim(),anon_key:process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY.trim()}}(),c=await (0,c$.cookies)();return function(a,b,c){if(!function(){if(cY||"u"<typeof process||!process.env?.npm_package_name)return;let a=process.env.npm_package_name;cZ.includes(a)&&(cY=!0,console.warn(`
|
|
40
|
+
${r}`}({domain:r.host,address:t,statement:p,uri:r.href,version:"1",chainId:u,nonce:null==(d=null==q?void 0:q.signInWithEthereum)?void 0:d.nonce,issuedAt:null!=(f=null==(e=null==q?void 0:q.signInWithEthereum)?void 0:e.issuedAt)?f:new Date,expirationTime:null==(g=null==q?void 0:q.signInWithEthereum)?void 0:g.expirationTime,notBefore:null==(h=null==q?void 0:q.signInWithEthereum)?void 0:h.notBefore,requestId:null==(i=null==q?void 0:q.signInWithEthereum)?void 0:i.requestId,resources:null==(j=null==q?void 0:q.signInWithEthereum)?void 0:j.resources}),o=await l.request({method:"personal_sign",params:[(m=n,"0x"+Array.from(new TextEncoder().encode(m),a=>a.toString(16).padStart(2,"0")).join("")),t]})}try{let{data:b,error:c}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:n,signature:o},(null==(k=a.options)?void 0:k.captchaToken)?{gotrue_meta_security:{captcha_token:null==(l=a.options)?void 0:l.captchaToken}}:null),xform:b3});if(c)throw c;if(!b||!b.session||!b.user){let a=new bt;return this._returnResult({data:{user:null,session:null},error:a})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:c})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithSolana(a){var b,c,d,e,f,g,h,i,j,k,l,m;let n,o;if("message"in a)n=a.message,o=a.signature;else{let{chain:l,wallet:m,statement:p,options:q}=a;if("object"!=typeof m||!(null==q?void 0:q.url))throw Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");let r=new URL(null!=(b=null==q?void 0:q.url)?b:window.location.href);if("signIn"in m&&m.signIn){let a,b=await m.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},null==q?void 0:q.signInWithSolana),{version:"1",domain:r.host,uri:r.href}),p?{statement:p}:null));if(Array.isArray(b)&&b[0]&&"object"==typeof b[0])a=b[0];else if(b&&"object"==typeof b&&"signedMessage"in b&&"signature"in b)a=b;else throw Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in a&&"signature"in a&&("string"==typeof a.signedMessage||a.signedMessage instanceof Uint8Array)&&a.signature instanceof Uint8Array)n="string"==typeof a.signedMessage?a.signedMessage:new TextDecoder().decode(a.signedMessage),o=a.signature;else throw Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in m)||"function"!=typeof m.signMessage||!("publicKey"in m)||"object"!=typeof m||!m.publicKey||!("toBase58"in m.publicKey)||"function"!=typeof m.publicKey.toBase58)throw Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");n=[`${r.host} wants you to sign in with your Solana account:`,m.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${r.href}`,`Issued At: ${null!=(d=null==(c=null==q?void 0:q.signInWithSolana)?void 0:c.issuedAt)?d:new Date().toISOString()}`,...(null==(e=null==q?void 0:q.signInWithSolana)?void 0:e.notBefore)?[`Not Before: ${q.signInWithSolana.notBefore}`]:[],...(null==(f=null==q?void 0:q.signInWithSolana)?void 0:f.expirationTime)?[`Expiration Time: ${q.signInWithSolana.expirationTime}`]:[],...(null==(g=null==q?void 0:q.signInWithSolana)?void 0:g.chainId)?[`Chain ID: ${q.signInWithSolana.chainId}`]:[],...(null==(h=null==q?void 0:q.signInWithSolana)?void 0:h.nonce)?[`Nonce: ${q.signInWithSolana.nonce}`]:[],...(null==(i=null==q?void 0:q.signInWithSolana)?void 0:i.requestId)?[`Request ID: ${q.signInWithSolana.requestId}`]:[],...(null==(k=null==(j=null==q?void 0:q.signInWithSolana)?void 0:j.resources)?void 0:k.length)?["Resources",...q.signInWithSolana.resources.map(a=>`- ${a}`)]:[]].join("\n");let a=await m.signMessage(new TextEncoder().encode(n),"utf8");if(!a||!(a instanceof Uint8Array))throw Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");o=a}}try{let{data:b,error:c}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:n,signature:bI(o)},(null==(l=a.options)?void 0:l.captchaToken)?{gotrue_meta_security:{captcha_token:null==(m=a.options)?void 0:m.captchaToken}}:null),xform:b3});if(c)throw c;if(!b||!b.session||!b.user){let a=new bt;return this._returnResult({data:{user:null,session:null},error:a})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:c})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async _exchangeCodeForSession(a){let b=await bL(this.storage,`${this.storageKey}-code-verifier`),[c,d]=(null!=b?b:"").split("/");try{if(!c&&"pkce"===this.flowType)throw new bw;let{data:b,error:e}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:a,code_verifier:c},xform:b3});if(await bM(this.storage,`${this.storageKey}-code-verifier`),e)throw e;if(!b||!b.session||!b.user){let a=new bt;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("recovery"===d?"PASSWORD_RECOVERY":"SIGNED_IN",b.session)),this._returnResult({data:Object.assign(Object.assign({},b),{redirectType:null!=d?d:null}),error:e})}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:{user:null,session:null,redirectType:null},error:a});throw a}}async signInWithIdToken(a){try{let{options:b,provider:c,token:d,access_token:e,nonce:f}=a,{data:g,error:h}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:c,id_token:d,access_token:e,nonce:f,gotrue_meta_security:{captcha_token:null==b?void 0:b.captchaToken}},xform:b3});if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!g||!g.session||!g.user){let a=new bt;return this._returnResult({data:{user:null,session:null},error:a})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:g,error:h})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithOtp(a){var b,c,d,e,f;try{if("email"in a){let{email:d,options:e}=a,f=null,g=null;"pkce"===this.flowType&&([f,g]=await bT(this.storage,this.storageKey));let{error:h}=await b1(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:null!=(b=null==e?void 0:e.data)?b:{},create_user:null==(c=null==e?void 0:e.shouldCreateUser)||c,gotrue_meta_security:{captcha_token:null==e?void 0:e.captchaToken},code_challenge:f,code_challenge_method:g},redirectTo:null==e?void 0:e.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in a){let{phone:b,options:c}=a,{data:g,error:h}=await b1(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:b,data:null!=(d=null==c?void 0:c.data)?d:{},create_user:null==(e=null==c?void 0:c.shouldCreateUser)||e,gotrue_meta_security:{captcha_token:null==c?void 0:c.captchaToken},channel:null!=(f=null==c?void 0:c.channel)?f:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:null==g?void 0:g.message_id},error:h})}throw new bu("You must provide either an email or phone number.")}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(a){var b,c;try{let d,e;"options"in a&&(d=null==(b=a.options)?void 0:b.redirectTo,e=null==(c=a.options)?void 0:c.captchaToken);let{data:f,error:g}=await b1(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},a),{gotrue_meta_security:{captcha_token:e}}),redirectTo:d,xform:b3});if(g)throw g;if(!f)throw Error("An error occurred on token verification.");let h=f.session,i=f.user;return(null==h?void 0:h.access_token)&&(await this._saveSession(h),await this._notifyAllSubscribers("recovery"==a.type?"PASSWORD_RECOVERY":"SIGNED_IN",h)),this._returnResult({data:{user:i,session:h},error:null})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithSSO(a){var b,c,d,e;try{let f=null,g=null;"pkce"===this.flowType&&([f,g]=await bT(this.storage,this.storageKey));let h=await b1(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in a?{provider_id:a.providerId}:null),"domain"in a?{domain:a.domain}:null),{redirect_to:null!=(c=null==(b=a.options)?void 0:b.redirectTo)?c:void 0}),(null==(d=null==a?void 0:a.options)?void 0:d.captchaToken)?{gotrue_meta_security:{captcha_token:a.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:f,code_challenge_method:g}),headers:this.headers,xform:b6});return null==(e=h.data)||e.url,this._returnResult(h)}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async a=>{let{data:{session:b},error:c}=a;if(c)throw c;if(!b)throw new br;let{error:d}=await b1(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:b.access_token});return this._returnResult({data:{user:null,session:null},error:d})})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async resend(a){try{let b=`${this.url}/resend`;if("email"in a){let{email:c,type:d,options:e}=a,{error:f}=await b1(this.fetch,"POST",b,{headers:this.headers,body:{email:c,type:d,gotrue_meta_security:{captcha_token:null==e?void 0:e.captchaToken}},redirectTo:null==e?void 0:e.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in a){let{phone:c,type:d,options:e}=a,{data:f,error:g}=await b1(this.fetch,"POST",b,{headers:this.headers,body:{phone:c,type:d,gotrue_meta_security:{captcha_token:null==e?void 0:e.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:null==f?void 0:f.message_id},error:g})}throw new bu("You must provide either an email or phone number and a type")}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async a=>a))}async _acquireLock(a,b){this._debug("#_acquireLock","begin",a);try{if(this.lockAcquired){let a=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),c=(async()=>(await a,await b()))();return this.pendingInLock.push((async()=>{try{await c}catch(a){}})()),c}return await this.lock(`lock:${this.storageKey}`,a,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;let a=b();for(this.pendingInLock.push((async()=>{try{await a}catch(a){}})()),await a;this.pendingInLock.length;){let a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await a}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(a){this._debug("#_useSession","begin");try{let b=await this.__loadSession();return await a(b)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",Error().stack);try{let b=null,c=await bL(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",c),null!==c&&(this._isValidSession(c)?b=c:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!b)return{data:{session:null},error:null};let d=!!b.expires_at&&1e3*b.expires_at-Date.now()<9e4;if(this._debug("#__loadSession()",`session has${d?"":" not"} expired`,"expires_at",b.expires_at),!d){if(this.userStorage){let a=await bL(this.userStorage,this.storageKey+"-user");(null==a?void 0:a.user)?b.user=a.user:b.user=bY()}if(this.storage.isServer&&b.user&&!b.user.__isUserNotAvailableProxy){var a;let c={value:this.suppressGetSessionWarning};b.user=(a=b.user,new Proxy(a,{get:(a,b,d)=>{if("__isInsecureUserWarningProxy"===b)return!0;if("symbol"==typeof b){let c=b.toString();if("Symbol(Symbol.toPrimitive)"===c||"Symbol(Symbol.toStringTag)"===c||"Symbol(util.inspect.custom)"===c||"Symbol(nodejs.util.inspect.custom)"===c)return Reflect.get(a,b,d)}return c.value||"string"!=typeof b||(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),c.value=!0),Reflect.get(a,b,d)}})),c.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:b},error:null}}let{data:e,error:f}=await this._callRefreshToken(b.refresh_token);if(f)return this._returnResult({data:{session:null},error:f});return this._returnResult({data:{session:e},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(a){if(a)return await this._getUser(a);await this.initializePromise;let b=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return b.data.user&&(this.suppressGetSessionWarning=!0),b}async _getUser(a){try{if(a)return await b1(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:a,xform:b5});return await this._useSession(async a=>{var b,c,d;let{data:e,error:f}=a;if(f)throw f;return(null==(b=e.session)?void 0:b.access_token)||this.hasCustomAuthorizationHeader?await b1(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:null!=(d=null==(c=e.session)?void 0:c.access_token)?d:void 0,xform:b5}):{data:{user:null},error:new br}})}catch(a){if(bn(a))return bs(a)&&(await this._removeSession(),await bM(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:a});throw a}}async updateUser(a,b={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(a,b))}async _updateUser(a,b={}){try{return await this._useSession(async c=>{let{data:d,error:e}=c;if(e)throw e;if(!d.session)throw new br;let f=d.session,g=null,h=null;"pkce"===this.flowType&&null!=a.email&&([g,h]=await bT(this.storage,this.storageKey));let{data:i,error:j}=await b1(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null==b?void 0:b.emailRedirectTo,body:Object.assign(Object.assign({},a),{code_challenge:g,code_challenge_method:h}),jwt:f.access_token,xform:b5});if(j)throw j;return f.user=i.user,await this._saveSession(f),await this._notifyAllSubscribers("USER_UPDATED",f),this._returnResult({data:{user:f.user},error:null})})}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:{user:null},error:a});throw a}}async setSession(a){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(a))}async _setSession(a){try{if(!a.access_token||!a.refresh_token)throw new br;let b=Date.now()/1e3,c=b,d=!0,e=null,{payload:f}=bO(a.access_token);if(f.exp&&(d=(c=f.exp)<=b),d){let{data:b,error:c}=await this._callRefreshToken(a.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!b)return{data:{user:null,session:null},error:null};e=b}else{let{data:d,error:f}=await this._getUser(a.access_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});e={access_token:a.access_token,refresh_token:a.refresh_token,user:d.user,token_type:"bearer",expires_in:c-b,expires_at:c},await this._saveSession(e),await this._notifyAllSubscribers("SIGNED_IN",e)}return this._returnResult({data:{user:e.user,session:e},error:null})}catch(a){if(bn(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}}async refreshSession(a){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(a))}async _refreshSession(a){try{return await this._useSession(async b=>{var c;if(!a){let{data:d,error:e}=b;if(e)throw e;a=null!=(c=d.session)?c:void 0}if(!(null==a?void 0:a.refresh_token))throw new br;let{data:d,error:e}=await this._callRefreshToken(a.refresh_token);return e?this._returnResult({data:{user:null,session:null},error:e}):d?this._returnResult({data:{user:d.user,session:d},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(a){if(bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async _getSessionFromURL(a,b){try{throw new bv("No browser detected.")}catch(a){if(bn(a))return this._returnResult({data:{session:null,redirectType:null},error:a});throw a}}_isImplicitGrantCallback(a){return"function"==typeof this.detectSessionInUrl?this.detectSessionInUrl(new URL(window.location.href),a):!!(a.access_token||a.error_description)}async _isPKCECallback(a){let b=await bL(this.storage,`${this.storageKey}-code-verifier`);return!!(a.code&&b)}async signOut(a={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(a))}async _signOut({scope:a}={scope:"global"}){return await this._useSession(async b=>{var c;let{data:d,error:e}=b;if(e&&!bs(e))return this._returnResult({error:e});let f=null==(c=d.session)?void 0:c.access_token;if(f){let{error:b}=await this.admin.signOut(f,a);if(b&&!(bn(b)&&"AuthApiError"===b.name&&(404===b.status||401===b.status||403===b.status)||bs(b)))return this._returnResult({error:b})}return"others"!==a&&(await this._removeSession(),await bM(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(a){let b=Symbol("auth-callback"),c={id:b,callback:a,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",b),this.stateChangeEmitters.delete(b)}};return this._debug("#onAuthStateChange()","registered callback with id",b),this.stateChangeEmitters.set(b,c),(async()=>{await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(b)})})(),{data:{subscription:c}}}async _emitInitialSession(a){return await this._useSession(async b=>{var c,d;try{let{data:{session:d},error:e}=b;if(e)throw e;await (null==(c=this.stateChangeEmitters.get(a))?void 0:c.callback("INITIAL_SESSION",d)),this._debug("INITIAL_SESSION","callback id",a,"session",d)}catch(b){await (null==(d=this.stateChangeEmitters.get(a))?void 0:d.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",a,"error",b),bs(b)?console.warn(b):console.error(b)}})}async resetPasswordForEmail(a,b={}){let c=null,d=null;"pkce"===this.flowType&&([c,d]=await bT(this.storage,this.storageKey,!0));try{return await b1(this.fetch,"POST",`${this.url}/recover`,{body:{email:a,code_challenge:c,code_challenge_method:d,gotrue_meta_security:{captcha_token:b.captchaToken}},headers:this.headers,redirectTo:b.redirectTo})}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var a;try{let{data:b,error:c}=await this.getUser();if(c)throw c;return this._returnResult({data:{identities:null!=(a=b.user.identities)?a:[]},error:null})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async linkIdentity(a){return"token"in a?this.linkIdentityIdToken(a):this.linkIdentityOAuth(a)}async linkIdentityOAuth(a){try{let{data:b,error:c}=await this._useSession(async b=>{var c,d,e,f,g;let{data:h,error:i}=b;if(i)throw i;let j=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,a.provider,{redirectTo:null==(c=a.options)?void 0:c.redirectTo,scopes:null==(d=a.options)?void 0:d.scopes,queryParams:null==(e=a.options)?void 0:e.queryParams,skipBrowserRedirect:!0});return await b1(this.fetch,"GET",j,{headers:this.headers,jwt:null!=(g=null==(f=h.session)?void 0:f.access_token)?g:void 0})});if(c)throw c;return this._returnResult({data:{provider:a.provider,url:null==b?void 0:b.url},error:null})}catch(b){if(bn(b))return this._returnResult({data:{provider:a.provider,url:null},error:b});throw b}}async linkIdentityIdToken(a){return await this._useSession(async b=>{var c;try{let{error:d,data:{session:e}}=b;if(d)throw d;let{options:f,provider:g,token:h,access_token:i,nonce:j}=a,{data:k,error:l}=await b1(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:null!=(c=null==e?void 0:e.access_token)?c:void 0,body:{provider:g,id_token:h,access_token:i,nonce:j,link_identity:!0,gotrue_meta_security:{captcha_token:null==f?void 0:f.captchaToken}},xform:b3});if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!k||!k.session||!k.user)return this._returnResult({data:{user:null,session:null},error:new bt});return k.session&&(await this._saveSession(k.session),await this._notifyAllSubscribers("USER_UPDATED",k.session)),this._returnResult({data:k,error:l})}catch(a){if(await bM(this.storage,`${this.storageKey}-code-verifier`),bn(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}})}async unlinkIdentity(a){try{return await this._useSession(async b=>{var c,d;let{data:e,error:f}=b;if(f)throw f;return await b1(this.fetch,"DELETE",`${this.url}/user/identities/${a.identity_id}`,{headers:this.headers,jwt:null!=(d=null==(c=e.session)?void 0:c.access_token)?d:void 0})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _refreshAccessToken(a){let b=`#_refreshAccessToken(${a.substring(0,5)}...)`;this._debug(b,"begin");try{var c,d;let e=Date.now();return await (c=async c=>(c>0&&await bP(200*Math.pow(2,c-1)),this._debug(b,"refreshing attempt",c),await b1(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:a},headers:this.headers,xform:b3})),d=(a,b)=>{let c=200*Math.pow(2,a);return b&&by(b)&&Date.now()+c-e<3e4},new Promise((a,b)=>{(async()=>{for(let e=0;e<1/0;e++)try{let b=await c(e);if(!d(e,null,b))return void a(b)}catch(a){if(!d(e,a))return void b(a)}})()}))}catch(a){if(this._debug(b,"error",a),bn(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}finally{this._debug(b,"end")}}_isValidSession(a){return"object"==typeof a&&null!==a&&"access_token"in a&&"refresh_token"in a&&"expires_at"in a}async _handleProviderSignIn(a,b){let c=await this._getUrlForProvider(`${this.url}/authorize`,a,{redirectTo:b.redirectTo,scopes:b.scopes,queryParams:b.queryParams});return this._debug("#_handleProviderSignIn()","provider",a,"options",b,"url",c),{data:{provider:a,url:c},error:null}}async _recoverAndRefresh(){var a,b;let c="#_recoverAndRefresh()";this._debug(c,"begin");try{let d=await bL(this.storage,this.storageKey);if(d&&this.userStorage){let b=await bL(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!b&&(b={user:d.user},await bK(this.userStorage,this.storageKey+"-user",b)),d.user=null!=(a=null==b?void 0:b.user)?a:bY()}else if(d&&!d.user&&!d.user){let a=await bL(this.storage,this.storageKey+"-user");a&&(null==a?void 0:a.user)?(d.user=a.user,await bM(this.storage,this.storageKey+"-user"),await bK(this.storage,this.storageKey,d)):d.user=bY()}if(this._debug(c,"session from storage",d),!this._isValidSession(d)){this._debug(c,"session is not valid"),null!==d&&await this._removeSession();return}let e=(null!=(b=d.expires_at)?b:1/0)*1e3-Date.now()<9e4;if(this._debug(c,`session has${e?"":" not"} expired with margin of 90000s`),e){if(this.autoRefreshToken&&d.refresh_token){let{error:a}=await this._callRefreshToken(d.refresh_token);a&&(console.error(a),by(a)||(this._debug(c,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(d.user&&!0===d.user.__isUserNotAvailableProxy)try{let{data:a,error:b}=await this._getUser(d.access_token);!b&&(null==a?void 0:a.user)?(d.user=a.user,await this._saveSession(d),await this._notifyAllSubscribers("SIGNED_IN",d)):this._debug(c,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(c,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",d)}catch(a){this._debug(c,"error",a),console.error(a);return}finally{this._debug(c,"end")}}async _callRefreshToken(a){var b,c;if(!a)throw new br;if(this.refreshingDeferred)return this.refreshingDeferred.promise;let d=`#_callRefreshToken(${a.substring(0,5)}...)`;this._debug(d,"begin");try{this.refreshingDeferred=new bN;let{data:b,error:c}=await this._refreshAccessToken(a);if(c)throw c;if(!b.session)throw new br;await this._saveSession(b.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",b.session);let d={data:b.session,error:null};return this.refreshingDeferred.resolve(d),d}catch(a){if(this._debug(d,"error",a),bn(a)){let c={data:null,error:a};return by(a)||await this._removeSession(),null==(b=this.refreshingDeferred)||b.resolve(c),c}throw null==(c=this.refreshingDeferred)||c.reject(a),a}finally{this.refreshingDeferred=null,this._debug(d,"end")}}async _notifyAllSubscribers(a,b,c=!0){let d=`#_notifyAllSubscribers(${a})`;this._debug(d,"begin",b,`broadcast = ${c}`);try{this.broadcastChannel&&c&&this.broadcastChannel.postMessage({event:a,session:b});let d=[],e=Array.from(this.stateChangeEmitters.values()).map(async c=>{try{await c.callback(a,b)}catch(a){d.push(a)}});if(await Promise.all(e),d.length>0){for(let a=0;a<d.length;a+=1)console.error(d[a]);throw d[0]}}finally{this._debug(d,"end")}}async _saveSession(a){this._debug("#_saveSession()",a),this.suppressGetSessionWarning=!0,await bM(this.storage,`${this.storageKey}-code-verifier`);let b=Object.assign({},a),c=b.user&&!0===b.user.__isUserNotAvailableProxy;if(this.userStorage){!c&&b.user&&await bK(this.userStorage,this.storageKey+"-user",{user:b.user});let a=Object.assign({},b);delete a.user;let d=bZ(a);await bK(this.storage,this.storageKey,d)}else{let a=bZ(b);await bK(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await bM(this.storage,this.storageKey),await bM(this.storage,this.storageKey+"-code-verifier"),await bM(this.storage,this.storageKey+"-user"),this.userStorage&&await bM(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()"),this.visibilityChangedCallback,this.visibilityChangedCallback=null}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");let a=setInterval(()=>this._autoRefreshTokenTick(),3e4);this.autoRefreshTicker=a,a&&"object"==typeof a&&"function"==typeof a.unref?a.unref():"u">typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(a);let b=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=b,b&&"object"==typeof b&&"function"==typeof b.unref?b.unref():"u">typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(b)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");let a=this.autoRefreshTicker;this.autoRefreshTicker=null,a&&clearInterval(a);let b=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,b&&clearTimeout(b)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{let a=Date.now();try{return await this._useSession(async b=>{let{data:{session:c}}=b;if(!c||!c.refresh_token||!c.expires_at)return void this._debug("#_autoRefreshTokenTick()","no session");let d=Math.floor((1e3*c.expires_at-a)/3e4);this._debug("#_autoRefreshTokenTick()",`access token expires in ${d} ticks, a tick lasts 30000ms, refresh threshold is 3 ticks`),d<=3&&await this._callRefreshToken(c.refresh_token)})}catch(a){console.error("Auto refresh tick failed with error. This is likely a transient error.",a)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(a){if(a instanceof cc)this._debug("auto refresh token tick lock not available");else throw a}}async _handleVisibilityChange(){return this._debug("#_handleVisibilityChange()"),this.autoRefreshToken&&this.startAutoRefresh(),!1}async _onVisibilityChanged(a){let b=`#_onVisibilityChanged(${a})`;this._debug(b,"visibilityState",document.visibilityState),"visible"===document.visibilityState?(this.autoRefreshToken&&this._startAutoRefresh(),a||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{"visible"!==document.visibilityState?this._debug(b,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting"):await this._recoverAndRefresh()}))):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(a,b,c){let d=[`provider=${encodeURIComponent(b)}`];if((null==c?void 0:c.redirectTo)&&d.push(`redirect_to=${encodeURIComponent(c.redirectTo)}`),(null==c?void 0:c.scopes)&&d.push(`scopes=${encodeURIComponent(c.scopes)}`),"pkce"===this.flowType){let[a,b]=await bT(this.storage,this.storageKey),c=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(b)}`});d.push(c.toString())}if(null==c?void 0:c.queryParams){let a=new URLSearchParams(c.queryParams);d.push(a.toString())}return(null==c?void 0:c.skipBrowserRedirect)&&d.push(`skip_http_redirect=${c.skipBrowserRedirect}`),`${a}?${d.join("&")}`}async _unenroll(a){try{return await this._useSession(async b=>{var c;let{data:d,error:e}=b;return e?this._returnResult({data:null,error:e}):await b1(this.fetch,"DELETE",`${this.url}/factors/${a.factorId}`,{headers:this.headers,jwt:null==(c=null==d?void 0:d.session)?void 0:c.access_token})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _enroll(a){try{return await this._useSession(async b=>{var c,d;let{data:e,error:f}=b;if(f)return this._returnResult({data:null,error:f});let g=Object.assign({friendly_name:a.friendlyName,factor_type:a.factorType},"phone"===a.factorType?{phone:a.phone}:"totp"===a.factorType?{issuer:a.issuer}:{}),{data:h,error:i}=await b1(this.fetch,"POST",`${this.url}/factors`,{body:g,headers:this.headers,jwt:null==(c=null==e?void 0:e.session)?void 0:c.access_token});return i?this._returnResult({data:null,error:i}):("totp"===a.factorType&&"totp"===h.type&&(null==(d=null==h?void 0:h.totp)?void 0:d.qr_code)&&(h.totp.qr_code=`data:image/svg+xml;utf-8,${h.totp.qr_code}`),this._returnResult({data:h,error:null}))})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _verify(a){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async b=>{var c;let{data:d,error:e}=b;if(e)return this._returnResult({data:null,error:e});let f=Object.assign({challenge_id:a.challengeId},"webauthn"in a?{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_response:"create"===a.webauthn.type?cj(a.webauthn.credential_response):ck(a.webauthn.credential_response)})}:{code:a.code}),{data:g,error:h}=await b1(this.fetch,"POST",`${this.url}/factors/${a.factorId}/verify`,{body:f,headers:this.headers,jwt:null==(c=null==d?void 0:d.session)?void 0:c.access_token});return h?this._returnResult({data:null,error:h}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+g.expires_in},g)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",g),this._returnResult({data:g,error:h}))})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}})}async _challenge(a){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async b=>{var c;let{data:d,error:e}=b;if(e)return this._returnResult({data:null,error:e});let f=await b1(this.fetch,"POST",`${this.url}/factors/${a.factorId}/challenge`,{body:a,headers:this.headers,jwt:null==(c=null==d?void 0:d.session)?void 0:c.access_token});if(f.error)return f;let{data:g}=f;if("webauthn"!==g.type)return{data:g,error:null};switch(g.webauthn.type){case"create":return{data:Object.assign(Object.assign({},g),{webauthn:Object.assign(Object.assign({},g.webauthn),{credential_options:Object.assign(Object.assign({},g.webauthn.credential_options),{publicKey:ch(g.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},g),{webauthn:Object.assign(Object.assign({},g.webauthn),{credential_options:Object.assign(Object.assign({},g.webauthn.credential_options),{publicKey:ci(g.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}})}async _challengeAndVerify(a){let{data:b,error:c}=await this._challenge({factorId:a.factorId});return c?this._returnResult({data:null,error:c}):await this._verify({factorId:a.factorId,challengeId:b.id,code:a.code})}async _listFactors(){var a;let{data:{user:b},error:c}=await this.getUser();if(c)return{data:null,error:c};let d={all:[],phone:[],totp:[],webauthn:[]};for(let c of null!=(a=null==b?void 0:b.factors)?a:[])d.all.push(c),"verified"===c.status&&d[c.factor_type].push(c);return{data:d,error:null}}async _getAuthenticatorAssuranceLevel(a){var b,c,d,e;if(a)try{let{payload:d}=bO(a),e=null;d.aal&&(e=d.aal);let f=e,{data:{user:g},error:h}=await this.getUser(a);if(h)return this._returnResult({data:null,error:h});(null!=(c=null==(b=null==g?void 0:g.factors)?void 0:b.filter(a=>"verified"===a.status))?c:[]).length>0&&(f="aal2");let i=d.amr||[];return{data:{currentLevel:e,nextLevel:f,currentAuthenticationMethods:i},error:null}}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}let{data:{session:f},error:g}=await this.getSession();if(g)return this._returnResult({data:null,error:g});if(!f)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let{payload:h}=bO(f.access_token),i=null;h.aal&&(i=h.aal);let j=i;return(null!=(e=null==(d=f.user.factors)?void 0:d.filter(a=>"verified"===a.status))?e:[]).length>0&&(j="aal2"),{data:{currentLevel:i,nextLevel:j,currentAuthenticationMethods:h.amr||[]},error:null}}async _getAuthorizationDetails(a){try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;return d?this._returnResult({data:null,error:d}):c?await b1(this.fetch,"GET",`${this.url}/oauth/authorizations/${a}`,{headers:this.headers,jwt:c.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new br})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _approveAuthorization(a,b){try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let e=await b1(this.fetch,"POST",`${this.url}/oauth/authorizations/${a}/consent`,{headers:this.headers,jwt:c.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return e.data&&e.data.redirect_url,e})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _denyAuthorization(a,b){try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let e=await b1(this.fetch,"POST",`${this.url}/oauth/authorizations/${a}/consent`,{headers:this.headers,jwt:c.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return e.data&&e.data.redirect_url,e})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _listOAuthGrants(){try{return await this._useSession(async a=>{let{data:{session:b},error:c}=a;return c?this._returnResult({data:null,error:c}):b?await b1(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:b.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new br})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _revokeOAuthGrant(a){try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;return d?this._returnResult({data:null,error:d}):c?(await b1(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:c.access_token,query:{client_id:a.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new br})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async fetchJwk(a,b={keys:[]}){let c=b.keys.find(b=>b.kid===a);if(c)return c;let d=Date.now();if((c=this.jwks.keys.find(b=>b.kid===a))&&this.jwks_cached_at+6e5>d)return c;let{data:e,error:f}=await b1(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(f)throw f;return e.keys&&0!==e.keys.length&&(this.jwks=e,this.jwks_cached_at=d,c=e.keys.find(b=>b.kid===a))?c:null}async getClaims(a,b={}){try{var c;let d,e=a;if(!e){let{data:a,error:b}=await this.getSession();if(b||!a.session)return this._returnResult({data:null,error:b});e=a.session.access_token}let{header:f,payload:g,signature:h,raw:{header:i,payload:j}}=bO(e);(null==b?void 0:b.allowExpired)||function(a){if(!a)throw Error("Missing exp claim");if(a<=Math.floor(Date.now()/1e3))throw Error("JWT has expired")}(g.exp);let k=!f.alg||f.alg.startsWith("HS")||!f.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(f.kid,(null==b?void 0:b.keys)?{keys:b.keys}:null==b?void 0:b.jwks);if(!k){let{error:a}=await this.getUser(e);if(a)throw a;return{data:{claims:g,header:f,signature:h},error:null}}let l=function(a){switch(a){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw Error("Invalid alg claim")}}(f.alg),m=await crypto.subtle.importKey("jwk",k,l,!0,["verify"]);if(!await crypto.subtle.verify(l,m,h,(c=`${i}.${j}`,d=[],!function(a,b){for(let c=0;c<a.length;c+=1){let d=a.charCodeAt(c);if(d>55295&&d<=56319){let b=(d-55296)*1024&65535;d=(a.charCodeAt(c+1)-56320&65535|b)+65536,c+=1}!function(a,b){if(a<=127)return b(a);if(a<=2047){b(192|a>>6),b(128|63&a);return}if(a<=65535){b(224|a>>12),b(128|a>>6&63),b(128|63&a);return}if(a<=1114111){b(240|a>>18),b(128|a>>12&63),b(128|a>>6&63),b(128|63&a);return}throw Error(`Unrecognized Unicode codepoint: ${a.toString(16)}`)}(d,b)}}(c,a=>d.push(a)),new Uint8Array(d))))throw new bA("Invalid JWT signature");return{data:{claims:g,header:f,signature:h},error:null}}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async signInWithPasskey(a){var b,c,d;bX(this.experimental);try{1;return this._returnResult({data:null,error:new bp("Browser does not support WebAuthn",null)})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async registerPasskey(a){var b,c;bX(this.experimental);try{1;return this._returnResult({data:null,error:new bp("Browser does not support WebAuthn",null)})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _startPasskeyRegistration(){bX(this.experimental);try{return await this._useSession(async a=>{let{data:{session:b},error:c}=a;if(c)return this._returnResult({data:null,error:c});if(!b)return this._returnResult({data:null,error:new br});let{data:d,error:e}=await b1(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:b.access_token,body:{}});return e?this._returnResult({data:null,error:e}):this._returnResult({data:d,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _verifyPasskeyRegistration(a){bX(this.experimental);try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let{data:e,error:f}=await b1(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:c.access_token,body:{challenge_id:a.challengeId,credential:a.credential}});return f?this._returnResult({data:null,error:f}):this._returnResult({data:e,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _startPasskeyAuthentication(a){var b;bX(this.experimental);try{let{data:c,error:d}=await b1(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:null==(b=null==a?void 0:a.options)?void 0:b.captchaToken}}});if(d)return this._returnResult({data:null,error:d});return this._returnResult({data:c,error:null})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _verifyPasskeyAuthentication(a){bX(this.experimental);try{let{data:b,error:c}=await b1(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:a.challengeId,credential:a.credential},xform:b3});if(c)return this._returnResult({data:null,error:c});return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:b,error:null})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _listPasskeys(){bX(this.experimental);try{return await this._useSession(async a=>{let{data:{session:b},error:c}=a;if(c)return this._returnResult({data:null,error:c});if(!b)return this._returnResult({data:null,error:new br});let{data:d,error:e}=await b1(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:b.access_token,xform:a=>({data:a,error:null})});return e?this._returnResult({data:null,error:e}):this._returnResult({data:d,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _updatePasskey(a){bX(this.experimental);try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let{data:e,error:f}=await b1(this.fetch,"PATCH",`${this.url}/passkeys/${a.passkeyId}`,{headers:this.headers,jwt:c.access_token,body:{friendly_name:a.friendlyName}});return f?this._returnResult({data:null,error:f}):this._returnResult({data:e,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}async _deletePasskey(a){bX(this.experimental);try{return await this._useSession(async b=>{let{data:{session:c},error:d}=b;if(d)return this._returnResult({data:null,error:d});if(!c)return this._returnResult({data:null,error:new br});let{error:e}=await b1(this.fetch,"DELETE",`${this.url}/passkeys/${a.passkeyId}`,{headers:this.headers,jwt:c.access_token,noResolveJson:!0});return e?this._returnResult({data:null,error:e}):this._returnResult({data:null,error:null})})}catch(a){if(bn(a))return this._returnResult({data:null,error:a});throw a}}}cv.nextInstanceID={};let cw=cv,cx="";cx="u">typeof Deno?"deno":"u">typeof document?"web":"u">typeof navigator&&"ReactNative"===navigator.product?"react-native":"node";let cy={headers:{"X-Client-Info":`supabase-js-${cx}/2.106.0`}},cz={schema:"public"},cA={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},cB={},cC={enabled:!1,respectSamplingDecision:!0},cD=null;function cE(a){return(cE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function cF(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function cG(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?cF(Object(c),!0).forEach(function(b){!function(a,b,c){var d;(d=function(a,b){if("object"!=cE(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=cE(d))return d;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}(b,"string"),(b="symbol"==cE(d)?d:d+"")in a)?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c}(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):cF(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}async function cH(a,b,c){if(!function(a,b){let c;if(!a||!b||0===b.length)return!1;if(a instanceof URL)c=a;else try{c=new URL(a)}catch(a){return!1}for(let a of b)try{if("string"==typeof a){if(function(a,b){if(b===a)return!0;if(b.startsWith("*.")){let c=b.slice(2);if(a.endsWith(c)&&(a===c||a.endsWith("."+c)))return!0}return!1}(c.hostname,a))return!0}else if(a instanceof RegExp){if(a.test(c.hostname))return!0}else if("function"==typeof a&&a(c))return!0}catch(a){continue}return!1}("string"==typeof a||a instanceof URL?a:a.url,b))return null;let d=await function(){var a,b,c,d;return a=this,b=void 0,c=void 0,d=function*(){try{let a=yield(null===cD&&(cD=import("@opentelemetry/api").catch(()=>null)),cD);if(!a||!a.propagation||!a.context)return null;let b={};a.propagation.inject(a.context.active(),b);let c=b.traceparent;if(!c)return null;return{traceparent:c,tracestate:b.tracestate,baggage:b.baggage}}catch(a){return null}},new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})}();if(!d||!d.traceparent)return null;if(c){let a=function(a){if(!a||"string"!=typeof a)return null;let b=a.split("-");if(4!==b.length)return null;let[c,d,e,f]=b;if(2!==c.length||32!==d.length||16!==e.length||2!==f.length)return null;let g=/^[0-9a-f]+$/i;return g.test(c)&&g.test(d)&&g.test(e)&&g.test(f)&&"00000000000000000000000000000000"!==d&&"0000000000000000"!==e?{version:c,traceId:d,parentId:e,traceFlags:f,isSampled:(1&parseInt(f,16))==1}:null}(d.traceparent);if(a&&!a.isSampled)return null}return d}function cI(a){return"boolean"==typeof a?{enabled:a}:a}var cJ=class extends cw{constructor(a){super(a)}},cK=class{constructor(a,b,c){var d,e,f;this.supabaseUrl=a,this.supabaseKey=b;const g=function(a){let b=null==a?void 0:a.trim();if(!b)throw Error("supabaseUrl is required.");if(!b.match(/^https?:\/\//i))throw Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(b.endsWith("/")?b:b+"/")}catch(a){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}(a);if(!b)throw Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",g),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",g),this.storageUrl=new URL("storage/v1",g),this.functionsUrl=new URL("functions/v1",g);const h=`sb-${g.hostname.split(".")[0]}-auth-token`,i=function(a,b){var c,d,e,f,g,h;let{db:i,auth:j,realtime:k,global:l}=a,{db:m,auth:n,realtime:o,global:p}=b,q=cI(a.tracePropagation),r=cI(b.tracePropagation),s={db:cG(cG({},m),i),auth:cG(cG({},n),j),realtime:cG(cG({},o),k),storage:{},global:cG(cG(cG({},p),l),{},{headers:cG(cG({},null!=(c=null==p?void 0:p.headers)?c:{}),null!=(d=null==l?void 0:l.headers)?d:{})}),tracePropagation:{enabled:null!=(e=null!=(f=null==q?void 0:q.enabled)?f:null==r?void 0:r.enabled)&&e,respectSamplingDecision:null==(g=null!=(h=null==q?void 0:q.respectSamplingDecision)?h:null==r?void 0:r.respectSamplingDecision)||g},accessToken:async()=>""};return a.accessToken?s.accessToken=a.accessToken:delete s.accessToken,s}(null!=c?c:{},{db:cz,realtime:cB,auth:cG(cG({},cA),{},{storageKey:h}),global:cy,tracePropagation:cC});this.settings=i,this.storageKey=null!=(d=i.auth.storageKey)?d:"",this.headers=null!=(e=i.global.headers)?e:{},i.accessToken?(this.accessToken=i.accessToken,this.auth=new Proxy({},{get:(a,b)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(b)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(null!=(f=i.auth)?f:{},this.headers,i.global.fetch),this.fetch=((a,b,c,d,e)=>{let f=d?(...a)=>d(...a):(...a)=>fetch(...a),g=Headers,h=(null==e?void 0:e.enabled)===!0,i=(null==e?void 0:e.respectSamplingDecision)!==!1,j=h?function(a){let b=[];try{let c=new URL(a);b.push(c.hostname)}catch(a){}return b.push("*.supabase.co","*.supabase.in"),b.push("localhost","127.0.0.1","[::1]"),b}(b):null;return async(b,d)=>{var e;let h=null!=(e=await c())?e:a,k=new g(null==d?void 0:d.headers);if(k.has("apikey")||k.set("apikey",a),k.has("Authorization")||k.set("Authorization",`Bearer ${h}`),j){let a=await cH(b,j,i);a&&(a.traceparent&&!k.has("traceparent")&&k.set("traceparent",a.traceparent),a.tracestate&&!k.has("tracestate")&&k.set("tracestate",a.tracestate),a.baggage&&!k.has("baggage")&&k.set("baggage",a.baggage))}return f(b,cG(cG({},d),{},{headers:k}))}})(b,a,this._getAccessToken.bind(this),i.global.fetch,i.tracePropagation),this.realtime=this._initRealtimeClient(cG({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},i.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(a=>this.realtime.setAuth(a)).catch(a=>console.warn("Failed to set initial Realtime auth token:",a)),this.rest=new J(new URL("rest/v1",g).href,{headers:this.headers,schema:i.db.schema,fetch:this.fetch,timeout:i.db.timeout,urlLengthLimit:i.db.urlLengthLimit}),this.storage=new bg(this.storageUrl.href,this.headers,this.fetch,null==c?void 0:c.storage),i.accessToken||this._listenForAuthEvents()}get functions(){return new v(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(a){return this.rest.from(a)}schema(a){return this.rest.schema(a)}rpc(a,b={},c={head:!1,get:!1,count:void 0}){return this.rest.rpc(a,b,c)}channel(a,b={config:{}}){return this.realtime.channel(a,b)}getChannels(){return this.realtime.getChannels()}removeChannel(a){return this.realtime.removeChannel(a)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var a,b;if(this.accessToken)return await this.accessToken();let{data:c}=await this.auth.getSession();return null!=(a=null==(b=c.session)?void 0:b.access_token)?a:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:a,persistSession:b,detectSessionInUrl:c,storage:d,userStorage:e,storageKey:f,flowType:g,lock:h,debug:i,throwOnError:j,experimental:k,lockAcquireTimeout:l,skipAutoInitialize:m},n,o){let p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new cJ({url:this.authUrl.href,headers:cG(cG({},p),n),storageKey:f,autoRefreshToken:a,persistSession:b,detectSessionInUrl:c,storage:d,userStorage:e,flowType:g,lock:h,debug:i,throwOnError:j,experimental:k,fetch:o,lockAcquireTimeout:l,skipAutoInitialize:m,hasCustomAuthorizationHeader:Object.keys(this.headers).some(a=>"authorization"===a.toLowerCase())})}_initRealtimeClient(a){return new aC(this.realtimeUrl.href,cG(cG({},a),{},{params:cG(cG({},{apikey:this.supabaseKey}),null==a?void 0:a.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((a,b)=>{this._handleTokenChanged(a,"CLIENT",null==b?void 0:b.access_token)})}_handleTokenChanged(a,b,c){("TOKEN_REFRESHED"===a||"SIGNED_IN"===a)&&this.changedAccessToken!==c?(this.changedAccessToken=c,this.realtime.setAuth(c)):"SIGNED_OUT"===a&&(this.realtime.setAuth(),"STORAGE"==b&&this.auth.signOut(),this.changedAccessToken=void 0)}};(function(){let a=globalThis.process;if(!a)return!1;let b=a.version;if(null==b)return!1;let c=b.match(/^v(\d+)\./);return!!c&&18>=parseInt(c[1],10)})()&&console.warn("⚠️ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");var cL=a.i(68805);let cM={path:"/",sameSite:"lax",httpOnly:!1,maxAge:3456e4},cN=/^(.*)[.](0|[1-9][0-9]*)$/;function cO(a,b){if(a===b)return!0;let c=a.match(cN);return!!c&&c[1]===b}function cP(a,b,c){let d=c??3180,e=encodeURIComponent(b);if(e.length<=d)return[{name:a,value:b}];let f=[];for(;e.length>0;){let a=e.slice(0,d),b=a.lastIndexOf("%");b>d-3&&(a=a.slice(0,b));let c="";for(;a.length>0;)try{c=decodeURIComponent(a);break}catch(b){if(b instanceof URIError&&"%"===a.at(-3)&&a.length>3)a=a.slice(0,a.length-3);else throw b}f.push(c),e=e.slice(a.length)}return f.map((b,c)=>({name:`${a}.${c}`,value:b}))}async function cQ(a,b){let c=await b(a);if(c)return c;let d=[];for(let c=0;;c++){let e=`${a}.${c}`,f=await b(e);if(!f)break;d.push(f)}return d.length>0?d.join(""):null}cL.parse,cL.serialize;let cR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),cS=" \n\r=".split(""),cT=(()=>{let a=Array(128);for(let b=0;b<a.length;b+=1)a[b]=-1;for(let b=0;b<cS.length;b+=1)a[cS[b].charCodeAt(0)]=-2;for(let b=0;b<cR.length;b+=1)a[cR[b].charCodeAt(0)]=b;return a})();function cU(a){let b=[],c=0,d=0;if(function(a,b){for(let c=0;c<a.length;c+=1){let d=a.charCodeAt(c);if(d>55295&&d<=56319){let b=(d-55296)*1024&65535;d=(a.charCodeAt(c+1)-56320&65535|b)+65536,c+=1}!function(a,b){if(a<=127)return b(a);if(a<=2047){b(192|a>>6),b(128|63&a);return}if(a<=65535){b(224|a>>12),b(128|a>>6&63),b(128|63&a);return}if(a<=1114111){b(240|a>>18),b(128|a>>12&63),b(128|a>>6&63),b(128|63&a);return}throw Error(`Unrecognized Unicode codepoint: ${a.toString(16)}`)}(d,b)}}(a,a=>{for(c=c<<8|a,d+=8;d>=6;){let a=c>>d-6&63;b.push(cR[a]),d-=6}}),d>0)for(c<<=6-d,d=6;d>=6;){let a=c>>d-6&63;b.push(cR[a]),d-=6}return b.join("")}let cV="base64-";function cW(a){let b;if(!a.startsWith(cV))return a;try{b=function(a){let b=[],c=a=>{b.push(String.fromCodePoint(a))},d={utf8seq:0,codepoint:0},e=0,f=0;for(let b=0;b<a.length;b+=1){let g=cT[a.charCodeAt(b)];if(g>-1)for(e=e<<6|g,f+=6;f>=8;)(function(a,b,c){if(0===b.utf8seq){if(a<=127)return c(a);for(let c=1;c<6;c+=1)if((a>>7-c&1)==0){b.utf8seq=c;break}if(2===b.utf8seq)b.codepoint=31&a;else if(3===b.utf8seq)b.codepoint=15&a;else if(4===b.utf8seq)b.codepoint=7&a;else throw Error("Invalid UTF-8 sequence");b.utf8seq-=1}else if(b.utf8seq>0){if(a<=127)throw Error("Invalid UTF-8 sequence");b.codepoint=b.codepoint<<6|63&a,b.utf8seq-=1,0===b.utf8seq&&c(b.codepoint)}})(e>>f-8&255,d,c),f-=8;else if(-2===g)continue;else throw Error(`Invalid Base64-URL character "${a.at(b)}" at position ${b}`)}return b.join("")}(a.substring(cV.length))}catch(a){return console.warn("@supabase/ssr: could not base64url-decode chunked cookie value, treating as absent. Cookie chunks may have been written partially across responses.",a),null}try{JSON.parse(b)}catch{return console.warn("@supabase/ssr: chunked cookie decoded to invalid JSON, treating as absent. This usually indicates that cookie chunks from different writes were combined (e.g. response committed before all Set-Cookie headers were sent)."),null}return b}async function cX({getAll:a,setAll:b,setItems:c,removedItems:d},e){let f=e.cookieEncoding,g=e.cookieOptions??null,h=await a([...c?Object.keys(c):[],...d?Object.keys(d):[]]),i=h?.map(({name:a})=>a)||[],j=Object.keys(d).flatMap(a=>i.filter(b=>cO(b,a))),k=Object.keys(c).flatMap(a=>{let b=new Set(i.filter(b=>cO(b,a))),d=c[a];"base64url"===f&&(d=cV+cU(d));let e=cP(a,d);return e.forEach(a=>{b.delete(a.name)}),j.push(...b),e}),l={...cM,...g,maxAge:0},m={...cM,...g,maxAge:cM.maxAge};delete l.name,delete m.name,await b([...j.map(a=>({name:a,value:"",options:l})),...k.map(({name:a,value:b})=>({name:a,value:b,options:m}))],{"Cache-Control":"private, no-cache, no-store, must-revalidate, max-age=0",Expires:"0",Pragma:"no-cache"})}let cY=!1,cZ=["@supabase/auth-helpers-nextjs","@supabase/auth-helpers-react","@supabase/auth-helpers-remix","@supabase/auth-helpers-sveltekit"];var c$=a.i(40035);async function c_(){let{anon_key:a,url:b}=function(){if(!(0,p.is_supabase_configured)())throw Error("Supabase is not configured");return{url:"https://ctruizaqyeyidujmtxhc.supabase.co".trim(),anon_key:"sb_publishable_gTYHeWoWIPPW3SIC4cYaXw_ux7UL_Jb".trim()}}(),c=await (0,c$.cookies)();return function(a,b,c){if(!function(){if(cY||"u"<typeof process||!process.env?.npm_package_name)return;let a=process.env.npm_package_name;cZ.includes(a)&&(cY=!0,console.warn(`
|
|
41
41
|
╔════════════════════════════════════════════════════════════════════════════╗
|
|
42
42
|
║ ⚠️ IMPORTANT: Package Consolidation Notice ║
|
|
43
43
|
║ ║
|