@madarco/agentbox 0.21.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +109 -0
- package/README.md +32 -0
- package/dist/{_cloud-attach-U3QJO7IF.js → _cloud-attach-YH2SU75S.js} +5 -4
- package/dist/chunk-ALEYDWAO.js +2561 -0
- package/dist/chunk-ALEYDWAO.js.map +1 -0
- package/dist/{chunk-QKL7PCXQ.js → chunk-CDEJ2GQK.js} +836 -488
- package/dist/chunk-CDEJ2GQK.js.map +1 -0
- package/dist/{chunk-PX7G4PSI.js → chunk-GGWVTWJM.js} +65 -34
- package/dist/{chunk-PX7G4PSI.js.map → chunk-GGWVTWJM.js.map} +1 -1
- package/dist/chunk-KBVD2UUQ.js +1654 -0
- package/dist/chunk-KBVD2UUQ.js.map +1 -0
- package/dist/{chunk-IXQTUXWV.js → chunk-O2NDZQHN.js} +50 -52
- package/dist/{chunk-IXQTUXWV.js.map → chunk-O2NDZQHN.js.map} +1 -1
- package/dist/{dist-NWKOEWUJ.js → chunk-O67ZESNL.js} +1059 -109
- package/dist/chunk-O67ZESNL.js.map +1 -0
- package/dist/chunk-VBSRJG53.js +1241 -0
- package/dist/chunk-VBSRJG53.js.map +1 -0
- package/dist/{chunk-6JJIKCMY.js → chunk-W2FLHB54.js} +26 -56
- package/dist/chunk-W2FLHB54.js.map +1 -0
- package/dist/{chunk-YZVFGFYQ.js → chunk-YZXXBHWG.js} +1937 -2975
- package/dist/chunk-YZXXBHWG.js.map +1 -0
- package/dist/{dist-SAS4PIHA.js → dist-EJXUKIR7.js} +41 -36
- package/dist/{dist-UVQJ2BZJ.js → dist-LJHS4PTC.js} +112 -62
- package/dist/dist-LJHS4PTC.js.map +1 -0
- package/dist/dist-QBXEP4VY.js +89 -0
- package/dist/dist-QNV4H6NN.js +80 -0
- package/dist/dist-QNV4H6NN.js.map +1 -0
- package/dist/{dist-FMA5Y25B.js → dist-UR2DB2HT.js} +83 -9
- package/dist/dist-UR2DB2HT.js.map +1 -0
- package/dist/dist-YECTRVGD.js +102 -0
- package/dist/dist-YECTRVGD.js.map +1 -0
- package/dist/index.js +3243 -1448
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-MQHD3M5F-YYVVMTNJ.js → prepared-state-5FIGV4BE-BMUK63FD.js} +2 -2
- package/dist/prepared-state-5FIGV4BE-BMUK63FD.js.map +1 -0
- package/package.json +12 -5
- package/runtime/_shared/agentbox-checkpoint-cleanup +55 -0
- package/runtime/_shared/agentbox-codex-hooks.json +68 -0
- package/runtime/_shared/agentbox-dockerd-start +145 -0
- package/runtime/_shared/agentbox-open +28 -0
- package/runtime/_shared/agentbox-portless-trust +82 -0
- package/runtime/_shared/agentbox-setup-skill.md +317 -0
- package/runtime/_shared/agentbox-vnc-start +102 -0
- package/runtime/_shared/claude-managed-settings.json +116 -0
- package/runtime/_shared/ctl.cjs +27469 -0
- package/runtime/_shared/gh-shim +344 -0
- package/runtime/_shared/git-shim +131 -0
- package/runtime/_shared/linear-shim +181 -0
- package/runtime/_shared/ntn-shim +95 -0
- package/runtime/_shared/opencode-agentbox-plugin.js +76 -0
- package/runtime/docker/Dockerfile.box +30 -17
- package/runtime/docker/packages/ctl/dist/bin.cjs +11871 -10351
- package/runtime/e2b/ctl.cjs +11871 -10351
- package/runtime/e2b/scripts/build-template.sh +31 -15
- package/runtime/hetzner/ctl.cjs +11871 -10351
- package/runtime/hetzner/scripts/install-box.sh +37 -19
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -0
- package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +36 -0
- package/runtime/hub/apps/hub/.next/build-manifest.json +21 -0
- package/runtime/hub/apps/hub/.next/package.json +1 -0
- package/runtime/hub/apps/hub/.next/prerender-manifest.json +36 -0
- package/runtime/hub/apps/hub/.next/required-server-files.json +350 -0
- package/runtime/hub/apps/hub/.next/routes-manifest.json +292 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js +14 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js +7 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js +7 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js +7 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js +7 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +137 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +125 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +89 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js +16 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.meta +15 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +14 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js +13 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +36 -0
- package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_0jw_ngm._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_0z6cvsk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_210bxd8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_index_mjs_0h-j5xt._.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(auth)_api_auth_[___all]_route_actions_1agi0ag.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_boxes_route_actions_1ggp_5o.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_health_route_actions_017gnzg.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_projects_route_actions_04w8ozk.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/09mp_@better-auth_memory-adapter_dist_index_mjs_0ti_30h._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/09xn_next_0tn6frk._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_095p8vu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_1skbhvx._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0sj1_@opentelemetry_api_build_esm_index_0xy-j06.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_jobs_[id]_logs_route_actions_01aqmf3.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_approvals_route_actions_1vwxs9a.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_boxes_[id]_route_actions_01510xg.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_jobs_[id]_route_actions_0oc630h.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_openapi_json_route_actions_1lunxjz.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_providers_route_actions_1666ry8.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_projects_[id]_route_actions_1beikpx.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/151__@better-auth_core_dist_0ecdp_3._.js +5 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_approvals_[id]_answer_route_actions_1cq4z5x.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_[action]_route_actions_0cib0ju.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_branches_route_actions_15snjix.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_git_[op]_route_actions_116a41w.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_git_route_actions_1a-q-i2.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_services_restart_route_actions_1yvsbmm.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_services_route_actions_1uvv36v.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_jobs_[id]_login-code_route_actions_1825jmw.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_jobs_[id]_logs_route_actions_0msc0_w.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_projects_[id]_branches_route_actions_07i0vrw.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_credentials_route_actions_1cds5re.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_prepare_route_actions_079fbng.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[externals]__12m3qoa._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[externals]_pg_15jfwkh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04h15ml._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04jgk9x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07ednlo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +105 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ig1bot._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ql4fjo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0se1fty._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t7o5ed._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vs8fma._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vxaujy._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w9ud8u._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yhb0gc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-9g0ae._.js +461 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13jwk_k._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16_uteg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16p2m-g._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19pc87s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_gu2yk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ai-945._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +14 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bu2zio._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ctczev._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d6mtlk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d75vsx._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dn_3i1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1e4z_-v._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f2sueq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9zctr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hqla7-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1js2jdv._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mttufy._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nepkp-._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pp5oib._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q5bqse._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +14 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qwhzmi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v9om6g._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xeczo7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20503l7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[turbopack]_runtime.js +903 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_033w048._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_06f2faq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +27 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_0pyhcqe._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1-42ili._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_11__3wi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_12flzuh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1rpkqst._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1wt72m1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1x3l5t8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_events_route_actions_17s9lxs.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_v1_docs_route_actions_0d-s_oo.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_[___path]_route_actions_1hdraye.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +86 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0iwlo01._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_20xzgz2._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_forbidden_1x5yo9-.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_global-error_14poel6.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_unauthorized_0vj9qge.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[externals]_pg_15jfwkh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[externals]_pg_20c820g._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__03-x9xy._.js +19 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0cpdgd0._.js +33 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0j0tjwn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +33 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1bq2f8q._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1c1x9zr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1he4k-q._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_04br1ft._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_09gdzmo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +21 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +27 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0tgpglr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1laion6._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0_lzzn3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0b_hsjl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(auth)_signin_page_actions_1vmiwl7.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_settings_page_actions_0ti7gxm.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app__global-error_page_actions_1ofuxm1.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app__not-found_page_actions_1fmdkci.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_components_1z1p98f._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_lib_auth_client_ts_1uxjxr_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/node_modules__pnpm_04qfi10._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/node_modules__pnpm_0kvuy0s._.js +33 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +80 -0
- package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +40 -0
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +21 -0
- package/runtime/hub/apps/hub/.next/server/middleware-manifest.json +6 -0
- package/runtime/hub/apps/hub/.next/server/middleware.js +5 -0
- package/runtime/hub/apps/hub/.next/server/next-font-manifest.js +1 -0
- package/runtime/hub/apps/hub/.next/server/next-font-manifest.json +49 -0
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -0
- package/runtime/hub/apps/hub/.next/server/pages-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/prefetch-hints.json +1 -0
- package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -0
- package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +276 -0
- package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_buildManifest.js +11 -0
- package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_clientMiddlewareManifest.js +6 -0
- package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_ssgManifest.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/0dx4alyqu7cq1.css +3 -0
- package/runtime/hub/apps/hub/.next/static/chunks/0lq354ziiwxxl.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/0ptag81psa0nj.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/11vmjdy3390ik.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/19cwkdx97a5_c.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/1svigjdfotduh.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/1t3645mc1s54c.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/1y49eldffr2-_.js +31 -0
- package/runtime/hub/apps/hub/.next/static/chunks/26ef4lcj-7-li.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/2d5e6t-5j4etp.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/2ozcn3ku69ymf.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/2w65a9zig6ya7.js +4 -0
- package/runtime/hub/apps/hub/.next/static/chunks/2x7nfpuaaba_a.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3-zanu4ioia5i.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3c49t4evjq8hf.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3x8k7so-uoat8.js +2 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3y2c7woqhtx9s.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/turbopack-2x4_cva4cco3h.js +1 -0
- package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.29yke99gs9qpn.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/03fc1b4a8d284b5e-s.p.0wiir8udbzjvx.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.0o-3_g79811ob.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/1bcd0e671759a44c-s.2qt3tdwt-y9x_.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.226pwps5o-gq_.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.15orukf5wyxb5.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1u30mmyq6lnsd.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/57215795b8570f5c-s.2rixgazldzomk.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.2vemzm0itqzfy.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/5e05ae5b48faa55e-s.1yd4_i3e35931.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.1i-sca43-qwng.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/6ff74e33ebd7bca3-s.352ti9pm7m6qh.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/7fea77d1d19108bf-s.2y65deuc30pmy.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/90c51ce8fb754fe8-s.02z5rrbg5nt92.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.40sczeszzbjw1.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.0ngr-xkgqz1kf.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.1qc6dx89jd2qv.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e15f58668ad64cb8-s.3cvcemwuzoywn.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e390973e931a41c5-s.0rgnxg2b64rzs.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.3cb5lpr2l6xud.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.0oace-s_gkfks.woff2 +0 -0
- package/runtime/hub/apps/hub/auth-YBXDRLHG.js +75 -0
- package/runtime/hub/apps/hub/auth-config-LJGI76HI.js +21 -0
- package/runtime/hub/apps/hub/chunk-3LAHFDJF.js +287 -0
- package/runtime/hub/apps/hub/chunk-AKLBSCSZ.js +8573 -0
- package/runtime/hub/apps/hub/chunk-EFW34I43.js +7299 -0
- package/runtime/hub/apps/hub/chunk-JDA7BPPN.js +2806 -0
- package/runtime/hub/apps/hub/chunk-LJG4CEGS.js +3341 -0
- package/runtime/hub/apps/hub/chunk-OBKLTPIR.js +41 -0
- package/runtime/hub/apps/hub/chunk-OF242BLD.js +797 -0
- package/runtime/hub/apps/hub/chunk-TZFWAJVB.js +38 -0
- package/runtime/hub/apps/hub/chunk-V5KGFHCF.js +12683 -0
- package/runtime/hub/apps/hub/cloud-poller-SUNA6ZQC-VSKVMYHL.js +10 -0
- package/runtime/hub/apps/hub/dist-BF54UNHK.js +1029 -0
- package/runtime/hub/apps/hub/dist-CM4YAQLI.js +1656 -0
- package/runtime/hub/apps/hub/dist-ELOY2IUE.js +533 -0
- package/runtime/hub/apps/hub/dist-FDBOJ74K.js +1085 -0
- package/runtime/hub/apps/hub/dist-GGM4BUKM.js +2281 -0
- package/runtime/hub/apps/hub/dist-IENF7YOD.js +88 -0
- package/runtime/hub/apps/hub/execa-4DLVNM6E.js +32 -0
- package/runtime/hub/apps/hub/hub-token-EW32VDIU.js +25 -0
- package/runtime/hub/apps/hub/package.json +55 -0
- package/runtime/hub/apps/hub/prepared-state-5FIGV4BE-FIXKBF5A.js +19 -0
- package/runtime/hub/apps/hub/public/logo.svg +5 -0
- package/runtime/hub/apps/hub/server.js +838 -0
- package/runtime/relay/bin.cjs +1738 -482
- package/runtime/vercel/ctl.cjs +11871 -10351
- package/runtime/vercel/scripts/provision.sh +31 -15
- package/dist/chunk-6JJIKCMY.js.map +0 -1
- package/dist/chunk-DBMLOY3T.js +0 -793
- package/dist/chunk-DBMLOY3T.js.map +0 -1
- package/dist/chunk-KTEDFUKM.js +0 -831
- package/dist/chunk-KTEDFUKM.js.map +0 -1
- package/dist/chunk-QKL7PCXQ.js.map +0 -1
- package/dist/chunk-X2DWS4KS.js +0 -820
- package/dist/chunk-X2DWS4KS.js.map +0 -1
- package/dist/chunk-YZVFGFYQ.js.map +0 -1
- package/dist/dist-FMA5Y25B.js.map +0 -1
- package/dist/dist-NWKOEWUJ.js.map +0 -1
- package/dist/dist-U76JL6HI.js +0 -738
- package/dist/dist-U76JL6HI.js.map +0 -1
- package/dist/dist-UVQJ2BZJ.js.map +0 -1
- /package/dist/{_cloud-attach-U3QJO7IF.js.map → _cloud-attach-YH2SU75S.js.map} +0 -0
- /package/dist/{dist-SAS4PIHA.js.map → dist-EJXUKIR7.js.map} +0 -0
- /package/dist/{prepared-state-MQHD3M5F-YYVVMTNJ.js.map → dist-QBXEP4VY.js.map} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
module.exports=[6674,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RequestCookies:function(){return i.RequestCookies},ResponseCookies:function(){return i.ResponseCookies},stringifyCookie:function(){return i.stringifyCookie}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(86109)},5771,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},65778,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ActionDidNotRevalidate:function(){return i},ActionDidRevalidateDynamicOnly:function(){return o},ActionDidRevalidateStaticAndDynamic:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=0,s=1,o=2},75989,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MutableRequestCookiesAdapter:function(){return p},ReadonlyRequestCookiesError:function(){return u},RequestCookiesAdapter:function(){return d},appendMutableCookies:function(){return h},areCookiesMutableInCurrentPhase:function(){return g},createCookiesWithMutableAccessCheck:function(){return m},getModifiedCookieValues:function(){return f},responseCookiesToRequestCookies:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(6674),s=e.r(5771),o=e.r(56704),c=e.r(65778);class u extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new u}}class d{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return u.callable;default:return s.ReflectAdapter.get(e,t,r)}}})}}let l=Symbol.for("next.mutated.cookies");function f(e){let t=e[l];return t&&Array.isArray(t)&&0!==t.length?t:[]}function h(e,t){let r=f(t);if(0===r.length)return!1;let n=new i.ResponseCookies(e),a=n.getAll();for(let e of r)n.set(e);for(let e of a)n.set(e);return!0}class p{static wrap(e,t){let r=new i.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],a=new Set,u=()=>{let e=o.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=c.ActionDidRevalidateStaticAndDynamic),n=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of n){let r=new i.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},d=new Proxy(r,{get(e,t,r){switch(t){case l:return n;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),d}finally{u()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),d}finally{u()}};default:return s.ReflectAdapter.get(e,t,r)}}});return d}}function m(e){let t=new Proxy(e.mutableCookies,{get(r,n,a){switch(n){case"delete":return function(...n){return y(e,"cookies().delete"),r.delete(...n),t};case"set":return function(...n){return y(e,"cookies().set"),r.set(...n),t};default:return s.ReflectAdapter.get(r,n,a)}}});return t}function g(e){return"action"===e.phase}function y(e,t){if(!g(e))throw new u}function b(e){let t=new i.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},6543,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DynamicServerError:function(){return s},isDynamicServerError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="DYNAMIC_SERVER_USAGE";class s extends Error{constructor(e){super(`Dynamic server usage: ${e}`),this.description=e,this.digest=i}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===i}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},1378,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={StaticGenBailoutError:function(){return s},isStaticGenBailoutError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="NEXT_STATIC_GEN_BAILOUT";class s extends Error{constructor(...e){super(...e),this.code=i}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===i}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},52262,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"InvariantError",{enumerable:!0,get:function(){return n}});class n extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}},3206,(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createPromiseWithResolvers",{enumerable:!0,get:function(){return n}})},59663,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={RenderStage:function(){return c},StagedRenderingController:function(){return u}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let s=e.r(52262),o=e.r(3206);var c=((n={})[n.Before=1]="Before",n[n.EarlyStatic=2]="EarlyStatic",n[n.Static=3]="Static",n[n.EarlyRuntime=4]="EarlyRuntime",n[n.Runtime=5]="Runtime",n[n.Dynamic=6]="Dynamic",n[n.Abandoned=7]="Abandoned",n);class u{constructor(e,t,r){this.abortSignal=e,this.abandonController=t,this.shouldTrackSyncIO=r,this.currentStage=1,this.syncInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.staticStageListeners=[],this.earlyRuntimeStageListeners=[],this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.staticStagePromise=(0,o.createPromiseWithResolvers)(),this.earlyRuntimeStagePromise=(0,o.createPromiseWithResolvers)(),this.runtimeStagePromise=(0,o.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,o.createPromiseWithResolvers)(),e&&e.addEventListener("abort",()=>{let{reason:t}=e;this.staticStagePromise.promise.catch(d),this.staticStagePromise.reject(t),this.earlyRuntimeStagePromise.promise.catch(d),this.earlyRuntimeStagePromise.reject(t),this.runtimeStagePromise.promise.catch(d),this.runtimeStagePromise.reject(t),this.dynamicStagePromise.promise.catch(d),this.dynamicStagePromise.reject(t)},{once:!0}),t&&t.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(e,t){if(this.currentStage>=e)t();else if(3===e)this.staticStageListeners.push(t);else if(4===e)this.earlyRuntimeStageListeners.push(t);else if(5===e)this.runtimeStageListeners.push(t);else if(6===e)this.dynamicStageListeners.push(t);else throw Object.defineProperty(new s.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}shouldTrackSyncInterrupt(){if(!this.shouldTrackSyncIO)return!1;switch(this.currentStage){case 1:case 5:case 6:case 7:default:return!1;case 2:case 3:case 4:return!0}}syncInterruptCurrentStageWithReason(e){if(1!==this.currentStage&&7!==this.currentStage){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=e,this.currentStage=7;return}switch(this.currentStage){case 2:case 3:case 4:this.syncInterruptReason=e,this.advanceStage(6);return;case 5:return}}}getSyncInterruptReason(){return this.syncInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){let{currentStage:e}=this;switch(e){case 2:this.resolveStaticStage();case 3:this.resolveEarlyRuntimeStage();case 4:this.resolveRuntimeStage();case 5:this.currentStage=7;return}}advanceStage(e){if(e<=this.currentStage)return;let t=this.currentStage;if(this.currentStage=e,t<3&&e>=3&&this.resolveStaticStage(),t<4&&e>=4&&this.resolveEarlyRuntimeStage(),t<5&&e>=5&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),t<6&&e>=6){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveStaticStage(){let e=this.staticStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.staticStagePromise.resolve()}resolveEarlyRuntimeStage(){let e=this.earlyRuntimeStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.earlyRuntimeStagePromise.resolve()}resolveRuntimeStage(){let e=this.runtimeStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.runtimeStagePromise.resolve()}resolveDynamicStage(){let e=this.dynamicStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.dynamicStagePromise.resolve()}getStagePromise(e){switch(e){case 3:return this.staticStagePromise.promise;case 4:return this.earlyRuntimeStagePromise.promise;case 5:return this.runtimeStagePromise.promise;case 6:return this.dynamicStagePromise.promise;default:throw Object.defineProperty(new s.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}}waitForStage(e){return this.getStagePromise(e)}delayUntilStage(e,t,r){var n,a,i;let s,o=(n=this.getStagePromise(e),a=t,i=r,s=new Promise((e,t)=>{n.then(e.bind(null,i),t)}),void 0!==a&&(s.displayName=a),s);return this.abortSignal&&o.catch(d),o}}function d(){}},66663,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={delayUntilRuntimeStage:function(){return p},getRuntimeStage:function(){return h},isHangingPromiseRejectionError:function(){return s},makeDevtoolsIOAwarePromise:function(){return f},makeHangingPromise:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(59663);function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===o}let o="HANGING_PROMISE_REJECTION";class c extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`),this.route=e,this.expression=t,this.digest=o}}let u=new WeakMap;function d(e,t,r){if(e.aborted)return Promise.reject(new c(t,r));{let n=new Promise((n,a)=>{let i=a.bind(null,new c(t,r)),s=u.get(e);if(s)s.push(i);else{let t=[i];u.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e<t.length;e++)t[e]()},{once:!0})}});return n.catch(l),n}}function l(){}function f(e,t,r){return t.stagedRendering?t.stagedRendering.delayUntilStage(r,void 0,e):new Promise(t=>{setTimeout(()=>{t(e)},0)})}function h(e){return e.currentStage===i.RenderStage.EarlyStatic||e.currentStage===i.RenderStage.EarlyRuntime?i.RenderStage.EarlyRuntime:i.RenderStage.Runtime}function p(e,t){let{stagedRendering:r}=e;return r?r.waitForStage(h(r)).then(()=>t):t}},8889,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={METADATA_BOUNDARY_NAME:function(){return i},OUTLET_BOUNDARY_NAME:function(){return o},ROOT_LAYOUT_BOUNDARY_NAME:function(){return c},VIEWPORT_BOUNDARY_NAME:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="__next_metadata_boundary__",s="__next_viewport_boundary__",o="__next_outlet_boundary__",c="__next_root_layout_boundary__"},43891,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={atLeastOneTask:function(){return o},scheduleImmediate:function(){return s},scheduleOnNextTick:function(){return i},waitAtLeastOneReactRenderTask:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e=>{Promise.resolve().then(()=>{process.nextTick(e)})},s=e=>{setImmediate(e)};function o(){return new Promise(e=>s(e))}function c(){return new Promise(e=>setImmediate(e))}},72080,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return s},isBailoutToCSRError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="BAILOUT_TO_CLIENT_SIDE_RENDERING";class s extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=i}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===i}},93964,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"INSTANT_VALIDATION_BOUNDARY_NAME",{enumerable:!0,get:function(){return n}});let n="__next_instant_validation_boundary__"},30979,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,i,s={DynamicHoleKind:function(){return Q},Postpone:function(){return k},PreludeState:function(){return ei},abortAndThrowOnSynchronousRequestDataAccess:function(){return j},abortOnSynchronousPlatformIOAccess:function(){return D},accessedDynamicData:function(){return M},annotateDynamicAccess:function(){return q},consumeDynamicAccess:function(){return X},createDynamicTrackingState:function(){return R},createDynamicValidationState:function(){return _},createHangingInputAbortSignal:function(){return B},createInstantValidationState:function(){return Z},createRenderInBrowserAbortSignal:function(){return U},formatDynamicAPIAccesses:function(){return L},getFirstDynamicReason:function(){return v},getNavigationDisallowedDynamicReasons:function(){return eu},getStaticShellDisallowedDynamicReasons:function(){return ec},isDynamicPostpone:function(){return C},isPrerenderInterruptedError:function(){return I},logDisallowedDynamicError:function(){return es},markCurrentScopeAsDynamic:function(){return w},postponeWithTracking:function(){return T},throwIfDisallowedDynamic:function(){return eo},throwToInterruptStaticGeneration:function(){return S},trackAllowedDynamicAccess:function(){return K},trackDynamicDataInDynamicRender:function(){return O},trackDynamicHoleInNavigation:function(){return ee},trackDynamicHoleInRuntimeShell:function(){return er},trackDynamicHoleInStaticShell:function(){return en},trackThrownErrorInNavigation:function(){return et},useDynamicRouteParams:function(){return W},useDynamicSearchParams:function(){return H}};for(var o in s)Object.defineProperty(r,o,{enumerable:!0,get:s[o]});let c=(n=e.r(85132))&&n.__esModule?n:{default:n},u=e.r(6543),d=e.r(1378),l=e.r(32319),f=e.r(56704),h=e.r(66663),p=e.r(8889),m=e.r(43891),g=e.r(72080),y=e.r(52262),b=e.r(93964),E="function"==typeof c.default.unstable_postpone;function R(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function _(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function v(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function w(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new d.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return T(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new u.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function S(e,t,r){let n=Object.defineProperty(new u.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function O(e){switch(e.type){case"cache":case"unstable-cache":case"private-cache":return}}function P(e,t,r){let n=$(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let a=r.dynamicTracking;a&&a.dynamicAccesses.push({stack:a.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function D(e,t,r,n){let a=n.dynamicTracking;P(e,t,n),a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=r)}function j(e,t,r,n){if(!1===n.controller.signal.aborted){P(e,t,n);let a=n.dynamicTracking;a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=r)}throw $(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function k({reason:e,route:t}){let r=l.workUnitAsyncStorage.getStore();T(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function T(e,t,r){(function(){if(!E)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})})(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),c.default.unstable_postpone(A(e,t))}function A(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function C(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&x(e.message)}function x(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===x(A("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let N="NEXT_PRERENDER_INTERRUPTED";function $(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=N,t}function I(e){return"object"==typeof e&&null!==e&&e.digest===N&&"name"in e&&"message"in e&&e instanceof Error}function M(e){return e.length>0}function X(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function L(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
|
|
2
|
+
${t}`))}function U(){let e=new AbortController;return e.abort(Object.defineProperty(new g.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function B(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else if("prerender-runtime"===e.type&&e.stagedRendering){let{stagedRendering:r}=e;r.waitForStage((0,h.getRuntimeStage)(r)).then(()=>(0,m.scheduleOnNextTick)(()=>t.abort()))}else(0,m.scheduleOnNextTick)(()=>t.abort());return t.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function q(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function W(e){let t=f.workAsyncStorage.getStore(),r=l.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&c.default.use((0,h.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return T(t.route,e,r.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new y.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new y.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new y.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function H(e){let t=f.workAsyncStorage.getStore(),r=l.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,l.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":c.default.use((0,h.makeHangingPromise)(r.renderSignal,t.route,e));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new g.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new y.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new y.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new y.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let G=/\n\s+at Suspense \(<anonymous>\)/,V=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${p.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),Y=RegExp(`\\n\\s+at ${p.METADATA_BOUNDARY_NAME}[\\n\\s]`),F=RegExp(`\\n\\s+at ${p.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),z=RegExp(`\\n\\s+at ${p.OUTLET_BOUNDARY_NAME}[\\n\\s]`),J=RegExp(`\\n\\s+at ${b.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);function K(e,t,r,n){if(!z.test(t)){if(Y.test(t)){r.hasDynamicMetadata=!0;return}if(F.test(t)){r.hasDynamicViewport=!0;return}if(V.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(G.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1079",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(a)}}}var Q=((a={})[a.Runtime=1]="Runtime",a[a.Dynamic=2]="Dynamic",a);function Z(e){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],createInstantStack:e}}function ee(e,t,r,n,a,i){if(z.test(t))return;if(Y.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateMetadata` or you have file-based metadata such as icons that depend on dynamic params segments.":"Uncached data or `connection()` was accessed inside `generateMetadata`."} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1076",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicMetadata=n;return}if(F.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateViewport`.":"Uncached data or `connection()` was accessed inside `generateViewport`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1086",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(n);return}let s=J.exec(t);if(s){let e=G.exec(t);if(e&&e.index<s.index){r.hasAllowedDynamic=!0;return}}else if(i.expectedIds.size===i.renderedIds.size){r.hasAllowedClientDynamicAboveBoundary=!0,r.hasAllowedDynamic=!0;return}else{let n=ea(Object.defineProperty(Error(`Route "${e.route}": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.`),"__NEXT_ERROR_CODE",{value:"E1082",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.validationPreventingErrors.push(n);return}if(n.syncDynamicErrorWithStack){let e=n.syncDynamicErrorWithStack;null!==r.createInstantStack&&void 0===e.cause&&(e.cause=r.createInstantStack()),r.dynamicErrors.push(e);return}let o=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed outside of `<Suspense>`.":"Uncached data or `connection()` was accessed outside of `<Suspense>`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1078",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(o)}function et(e,t,r,n){let a=J.exec(n);if(a){let i=G.exec(n);if(i&&i.index<a.index)return;let s=ea(Object.defineProperty(Error(`Route "${e.route}": Could not validate \`unstable_instant\` because an error prevented the target segment from rendering.`,{cause:r}),"__NEXT_ERROR_CODE",{value:"E1112",enumerable:!1,configurable:!0}),n,null);t.validationPreventingErrors.push(s)}else{let e=ea(Object.defineProperty(Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.",{cause:r}),"__NEXT_ERROR_CODE",{value:"E1118",enumerable:!1,configurable:!0}),n,null);t.thrownErrorsOutsideBoundary.push(e)}}function er(e,t,r,n){if(z.test(t))return;if(Y.test(t)){r.dynamicMetadata=ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1080",enumerable:!1,configurable:!0}),t,null);return}if(F.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1077",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(V.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}if(G.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1084",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(a)}function en(e,t,r,n){if(!z.test(t)){if(Y.test(t)){r.dynamicMetadata=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1085",enumerable:!1,configurable:!0}),t,null);return}if(F.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1081",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(V.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(G.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1083",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(a)}}}function ea(e,t,r){return null!==r&&(e.cause=r()),e.stack=e.name+": "+e.message+t,e}var ei=((i={})[i.Full=0]="Full",i[i.Empty=1]="Empty",i[i.Errored=2]="Errored",i);function es(e,t){console.error(t),console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
3
|
+
- Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.
|
|
4
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function eo(e,t,r,n){if(n.syncDynamicErrorWithStack)throw es(e,n.syncDynamicErrorWithStack),new d.StaticGenBailoutError;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t<n.length;t++)es(e,n[t]);throw new d.StaticGenBailoutError}if(r.hasDynamicViewport)throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new d.StaticGenBailoutError;if(1===t)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new d.StaticGenBailoutError}else if(!1===r.hasAllowedDynamic&&r.hasDynamicMetadata)throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new d.StaticGenBailoutError}function ec(e,t,r,n){if(n||r.hasSuspenseAboveBody)return[];if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return[Object.defineProperty(new y.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(!1===r.hasAllowedDynamic&&0===r.dynamicErrors.length&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function eu(e,t,r,n,a){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:i}=r;if(i.length>0)return i;if(a.renderedIds.size<a.expectedIds.size){let{thrownErrorsOutsideBoundary:t,createInstantStack:n}=r;if(0===t.length){let t=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`,r=null!==n?n():Error();return r.name="Error",r.message=t,[r]}if(1===t.length){let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`,a=null!==n?n():Error();return a.name="Error",a.message=r,[a,t[0]]}{let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,a=null!==n?n():Error();return a.name="Error",a.message=r,[a,...t]}}if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new y.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},76346,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return c}});let n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(e.r(85132));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}let i={current:null},s="function"==typeof n.cache?n.cache:e=>e,o=console.warn;function c(e){return function(...t){o(e(...t))}}s(e=>{try{o(i.current)}finally{i.current=null}})},25883,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRequestAPICallableInsideAfter:function(){return u},throwForSearchParamsAccessInUseCache:function(){return c},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(1378),s=e.r(24725);function o(e,t){throw Object.defineProperty(new i.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function c(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function u(){let e=s.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},77832,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"cookies",{enumerable:!0,get:function(){return h}});let n=e.r(75989),a=e.r(6674),i=e.r(56704),s=e.r(32319),o=e.r(30979),c=e.r(1378),u=e.r(66663),d=e.r(76346),l=e.r(25883),f=e.r(52262);function h(){let e="cookies",t=i.workAsyncStorage.getStore(),r=s.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,l.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${t.route} used \`cookies()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E843",enumerable:!1,configurable:!0});if(t.forceStatic)return m(n.RequestCookiesAdapter.seal(new a.RequestCookies(new Headers({}))));if(t.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E849",enumerable:!1,configurable:!0});if(r)switch(r.type){case"cache":let i=Object.defineProperty(Error(`Route ${t.route} used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E831",enumerable:!1,configurable:!0});throw Error.captureStackTrace(i,h),t.invalidDynamicUsageError??=i,i;case"unstable-cache":throw Object.defineProperty(Error(`Route ${t.route} used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E846",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`cookies()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1123",enumerable:!1,configurable:!0});case"prerender":var d=t,g=r;let y=p.get(g);if(y)return y;let b=(0,u.makeHangingPromise)(g.renderSignal,d.route,"`cookies()`");return p.set(g,b),b;case"prerender-client":case"validation-client":let E="`cookies`";throw Object.defineProperty(new f.InvariantError(`${E} must not be used within a Client Component. Next.js should be preventing ${E} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1037",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,o.postponeWithTracking)(t.route,e,r.dynamicTracking);case"prerender-legacy":return(0,o.throwToInterruptStaticGeneration)(e,t,r);case"prerender-runtime":return(0,u.delayUntilRuntimeStage)(r,m(r.cookies));case"private-cache":return m(r.cookies);case"request":let R;if((0,o.trackDynamicDataInDynamicRender)(r),R=(0,n.areCookiesMutableInCurrentPhase)(r)?r.userspaceMutableCookies:r.cookies,!r.asyncApiPromises)return m(R);{let e=(0,s.isInEarlyRenderStage)(r);if(R===r.mutableCookies)return e?r.asyncApiPromises.earlyMutableCookies:r.asyncApiPromises.mutableCookies;return e?r.asyncApiPromises.earlyCookies:r.asyncApiPromises.cookies}}}(0,s.throwForMissingRequestStore)(e)}e.r(59663);let p=new WeakMap;function m(e){let t=p.get(e);if(t)return t;let r=Promise.resolve(e);return p.set(e,r),r}(0,d.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E830",enumerable:!1,configurable:!0})})},99580,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HeadersAdapter:function(){return o},ReadonlyHeadersError:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(5771);class s extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new s}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return i.ReflectAdapter.get(t,r,n);let a=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===a);if(void 0!==s)return i.ReflectAdapter.get(t,s,n)},set(t,r,n,a){if("symbol"==typeof r)return i.ReflectAdapter.set(t,r,n,a);let s=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===s);return i.ReflectAdapter.set(t,o??r,n,a)},has(t,r){if("symbol"==typeof r)return i.ReflectAdapter.has(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==a&&i.ReflectAdapter.has(t,a)},deleteProperty(t,r){if("symbol"==typeof r)return i.ReflectAdapter.deleteProperty(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===a||i.ReflectAdapter.deleteProperty(t,a)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return s.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},82600,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"headers",{enumerable:!0,get:function(){return f}});let n=e.r(99580),a=e.r(56704),i=e.r(32319),s=e.r(30979),o=e.r(1378),c=e.r(66663),u=e.r(76346),d=e.r(25883),l=e.r(52262);function f(){let e="headers",t=a.workAsyncStorage.getStore(),r=i.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,d.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E839",enumerable:!1,configurable:!0});if(t.forceStatic)return p(n.HeadersAdapter.seal(new Headers({})));if(r)switch(r.type){case"cache":{let e=Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E833",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,f),t.invalidDynamicUsageError??=e,e}case"unstable-cache":throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E838",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1134",enumerable:!1,configurable:!0})}if(t.dynamicShouldError)throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E828",enumerable:!1,configurable:!0});if(r)switch(r.type){case"prerender":var u=t,m=r;let a=h.get(m);if(a)return a;let g=(0,c.makeHangingPromise)(m.renderSignal,u.route,"`headers()`");return h.set(m,g),g;case"prerender-client":case"validation-client":let y="`headers`";throw Object.defineProperty(new l.InvariantError(`${y} must not be used within a client component. Next.js should be preventing ${y} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1017",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,s.postponeWithTracking)(t.route,e,r.dynamicTracking);case"prerender-legacy":return(0,s.throwToInterruptStaticGeneration)(e,t,r);case"prerender-runtime":return(0,c.delayUntilRuntimeStage)(r,p(r.headers));case"private-cache":return p(r.headers);case"request":if((0,s.trackDynamicDataInDynamicRender)(r),r.asyncApiPromises)return(0,i.isInEarlyRenderStage)(r)?r.asyncApiPromises.earlyHeaders:r.asyncApiPromises.headers;return p(r.headers)}}(0,i.throwForMissingRequestStore)(e)}e.r(59663);let h=new WeakMap;function p(e){let t=h.get(e);if(t)return t;let r=Promise.resolve(e);return h.set(e,r),r}(0,u.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E836",enumerable:!1,configurable:!0})})},43836,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"draftMode",{enumerable:!0,get:function(){return l}});let n=e.r(32319),a=e.r(56704),i=e.r(30979),s=e.r(76346),o=e.r(1378),c=e.r(6543),u=e.r(52262),d=e.r(66663);function l(){let e="draftMode",t=a.workAsyncStorage.getStore(),r=n.workUnitAsyncStorage.getStore();switch((!t||!r)&&(0,n.throwForMissingRequestStore)(e),r.type){case"prerender-runtime":return(0,d.delayUntilRuntimeStage)(r,f(r.draftMode,t));case"request":return f(r.draftMode,t);case"cache":case"private-cache":case"unstable-cache":let i=(0,n.getDraftModeProviderForCacheScope)(t,r);if(i)return f(i,t);case"prerender":case"prerender-ppr":case"prerender-legacy":return f(null,t);case"prerender-client":case"validation-client":{let e="`draftMode`";throw Object.defineProperty(new u.InvariantError(`${e} must not be used within a Client Component. Next.js should be preventing ${e} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0})}case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`${e}()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1132",enumerable:!1,configurable:!0});default:return r}}function f(e,t){let r=p.get(e??h);return r||Promise.resolve(new m(e))}e.r(5771);let h={},p=new WeakMap;class m{constructor(e){this._provider=e}get isEnabled(){return null!==this._provider&&this._provider.isEnabled}enable(){g("draftMode().enable()",this.enable),null!==this._provider&&this._provider.enable()}disable(){g("draftMode().disable()",this.disable),null!==this._provider&&this._provider.disable()}}function g(e,t){let r=a.workAsyncStorage.getStore(),s=n.workUnitAsyncStorage.getStore();if(r){if((null==s?void 0:s.phase)==="after")throw Object.defineProperty(Error(`Route ${r.route} used "${e}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E845",enumerable:!1,configurable:!0});if(r.dynamicShouldError)throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${r.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(s)switch(s.type){case"cache":case"private-cache":{let n=Object.defineProperty(Error(`Route ${r.route} used "${e}" inside "use cache". The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E829",enumerable:!1,configurable:!0});throw Error.captureStackTrace(n,t),r.invalidDynamicUsageError??=n,n}case"unstable-cache":throw Object.defineProperty(Error(`Route ${r.route} used "${e}" inside a function cached with \`unstable_cache()\`. The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E844",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":{let t=Object.defineProperty(Error(`Route ${r.route} used ${e} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`),"__NEXT_ERROR_CODE",{value:"E126",enumerable:!1,configurable:!0});return(0,i.abortAndThrowOnSynchronousRequestDataAccess)(r.route,e,t,s)}case"prerender-client":case"validation-client":let n="`draftMode`";throw Object.defineProperty(new u.InvariantError(`${n} must not be used within a Client Component. Next.js should be preventing ${n} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,i.postponeWithTracking)(r.route,e,s.dynamicTracking);case"prerender-legacy":s.revalidate=0;let a=Object.defineProperty(new c.DynamicServerError(`Route ${r.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.dynamicUsageDescription=e,r.dynamicUsageStack=a.stack,a;case"request":(0,i.trackDynamicDataInDynamicRender)(s);break;case"generate-static-params":throw Object.defineProperty(Error(`Route ${r.route} used \`${e}\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1121",enumerable:!1,configurable:!0})}}}(0,s.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E835",enumerable:!1,configurable:!0})})},41422,(e,t,r)=>{t.exports.cookies=e.r(77832).cookies,t.exports.headers=e.r(82600).headers,t.exports.draftMode=e.r(43836).draftMode}];
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=09xn_next_0tn6frk._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[24725,(e,r,s)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[77373,e=>{"use strict";var r=e.i(5292);let t=(0,r.freeze)({is:e=>"AliasNode"===e.kind,create:(e,t)=>(0,r.freeze)({kind:"AliasNode",node:e,alias:t})});e.s(["AliasNode",0,t])},39328,e=>{"use strict";var r=e.i(5292),t=e.i(15196);let o=(0,r.freeze)({is:e=>"TableNode"===e.kind,create:e=>(0,r.freeze)({kind:"TableNode",table:t.SchemableIdentifierNode.create(e)}),createWithSchema:(e,o)=>(0,r.freeze)({kind:"TableNode",table:t.SchemableIdentifierNode.createWithSchema(e,o)})});e.s(["TableNode",0,o])},52369,e=>{"use strict";var r=e.i(5292);e.s(["isOperationNodeSource",0,function(e){return(0,r.isObject)(e)&&(0,r.isFunction)(e.toOperationNode)}])},69372,80827,39001,3392,79111,87974,e=>{"use strict";var r=e.i(52369),t=e.i(5292);e.s(["isAliasedExpression",0,function(e){return(0,t.isObject)(e)&&"expression"in e&&(0,t.isString)(e.alias)&&(0,r.isOperationNodeSource)(e)},"isExpression",0,function(e){return(0,t.isObject)(e)&&"expressionType"in e&&(0,r.isOperationNodeSource)(e)}],69372);let o=(0,t.freeze)({is:e=>"SelectModifierNode"===e.kind,create:(e,r)=>(0,t.freeze)({kind:"SelectModifierNode",modifier:e,of:r}),createWithExpression:e=>(0,t.freeze)({kind:"SelectModifierNode",rawModifier:e})});e.s(["SelectModifierNode",0,o],80827);let i=(0,t.freeze)({is:e=>"AndNode"===e.kind,create:(e,r)=>(0,t.freeze)({kind:"AndNode",left:e,right:r})});e.s(["AndNode",0,i],39001);let n=(0,t.freeze)({is:e=>"OrNode"===e.kind,create:(e,r)=>(0,t.freeze)({kind:"OrNode",left:e,right:r})});e.s(["OrNode",0,n],3392);let s=(0,t.freeze)({is:e=>"OnNode"===e.kind,create:e=>(0,t.freeze)({kind:"OnNode",on:e}),cloneWithOperation:(e,r,o)=>(0,t.freeze)({...e,on:"And"===r?i.create(e.on,o):n.create(e.on,o)})}),a=(0,t.freeze)({is:e=>"JoinNode"===e.kind,create:(e,r)=>(0,t.freeze)({kind:"JoinNode",joinType:e,table:r,on:void 0}),createWithOn:(e,r,o)=>(0,t.freeze)({kind:"JoinNode",joinType:e,table:r,on:s.create(o)}),cloneWithOn:(e,r)=>(0,t.freeze)({...e,on:e.on?s.cloneWithOperation(e.on,"And",r):s.create(r)})});e.s(["JoinNode",0,a],79111);let d=(0,t.freeze)({is:e=>"BinaryOperationNode"===e.kind,create:(e,r,o)=>(0,t.freeze)({kind:"BinaryOperationNode",leftOperand:e,operator:r,rightOperand:o})});e.s(["BinaryOperationNode",0,d],87974)},50022,52183,99934,e=>{"use strict";var r=e.i(5292),t=e.i(55514);let o=(0,r.freeze)({is:e=>"ColumnNode"===e.kind,create:e=>(0,r.freeze)({kind:"ColumnNode",column:t.IdentifierNode.create(e)})});e.s(["ColumnNode",0,o],50022);let i=(0,r.freeze)({is:e=>"SelectAllNode"===e.kind,create:()=>(0,r.freeze)({kind:"SelectAllNode"})});e.s(["SelectAllNode",0,i],52183);let n=(0,r.freeze)({is:e=>"ReferenceNode"===e.kind,create:(e,t)=>(0,r.freeze)({kind:"ReferenceNode",table:t,column:e}),createSelectAll:e=>(0,r.freeze)({kind:"ReferenceNode",table:e,column:i.create()})});e.s(["ReferenceNode",0,n],99934)},66511,82180,41731,e=>{"use strict";e.s(["isOrderByDirection",()=>N,"parseOrderBy",()=>m],66511),e.s(["DynamicReferenceBuilder",()=>i,"isDynamicReferenceBuilder",()=>n],82180);var r=e.i(52369),t=e.i(19834),o=e.i(5292);class i{#e;get dynamicReference(){return this.#e}get refType(){}constructor(e){this.#e=e}toOperationNode(){return(0,t.parseSimpleReferenceExpression)(this.#e)}}function n(e){return(0,o.isObject)(e)&&(0,r.isOperationNodeSource)(e)&&(0,o.isString)(e.dynamicReference)}var s=e.i(69372);let a=(0,o.freeze)({is:e=>"OrderByItemNode"===e.kind,create:(e,r)=>(0,o.freeze)({kind:"OrderByItemNode",orderBy:e,direction:r}),cloneWith:(e,r)=>(0,o.freeze)({...e,...r})});var d=e.i(3731),u=e.i(55514);let p=(0,o.freeze)({is:e=>"CollateNode"===e.kind,create:e=>(0,o.freeze)({kind:"CollateNode",collation:u.IdentifierNode.create(e)})});class l{#r;constructor(e){this.#r=(0,o.freeze)(e)}desc(){return new l({node:a.cloneWith(this.#r.node,{direction:d.RawNode.createWithSql("desc")})})}asc(){return new l({node:a.cloneWith(this.#r.node,{direction:d.RawNode.createWithSql("asc")})})}nullsLast(){return new l({node:a.cloneWith(this.#r.node,{nulls:"last"})})}nullsFirst(){return new l({node:a.cloneWith(this.#r.node,{nulls:"first"})})}collate(e){return new l({node:a.cloneWith(this.#r.node,{collation:p.create(e)})})}toOperationNode(){return this.#r.node}}let h=new Set;function c(e){h.has(e)||(h.add(e),console.log(e))}e.s(["logOnce",0,c],41731);var f=e.i(85381);function N(e){return"asc"===e||"desc"===e}function m(e){if(2===e.length)return[y(e[0],e[1])];if(1===e.length){let[r]=e;return Array.isArray(r)?(c("orderBy(array) is deprecated, use multiple orderBy calls instead."),r.map(e=>y(e))):[y(r)]}throw Error(`Invalid number of arguments at order by! expected 1-2, received ${e.length}`)}function y(e,r){let o=function(e){if((0,f.isExpressionOrFactory)(e))return(0,f.parseExpression)(e);if(n(e))return e.toOperationNode();let[r,o]=e.split(" ");return o?(c("`orderBy('column asc')` is deprecated. Use `orderBy('column', 'asc')` instead."),w((0,t.parseStringReference)(r),o)):(0,t.parseStringReference)(e)}(e);if(a.is(o)){if(r)throw Error("Cannot specify direction twice!");return o}return w(o,r)}function w(e,r){if("string"==typeof r){if(!N(r))throw Error(`Invalid order by direction: ${r}`);return a.create(e,d.RawNode.createWithSql(r))}if((0,s.isExpression)(r))return c("`orderBy(..., expr)` is deprecated. Use `orderBy(..., 'asc')` or `orderBy(..., (ob) => ...)` instead."),a.create(e,r.toOperationNode());let t=a.create(e);return r?r(new l({node:t})).toOperationNode():t}},17708,e=>{"use strict";var r=e.i(5292);let t=(0,r.freeze)({is:e=>"JSONReferenceNode"===e.kind,create:(e,t)=>(0,r.freeze)({kind:"JSONReferenceNode",reference:e,traversal:t}),cloneWithTraversal:(e,t)=>(0,r.freeze)({...e,traversal:t})});e.s(["JSONReferenceNode",0,t])},55e3,e=>{"use strict";var r=e.i(5292);let t=(0,r.freeze)({is:e=>"JSONOperatorChainNode"===e.kind,create:e=>(0,r.freeze)({kind:"JSONOperatorChainNode",operator:e,values:(0,r.freeze)([])}),cloneWithValue:(e,t)=>(0,r.freeze)({...e,values:(0,r.freeze)([...e.values,t])})});e.s(["JSONOperatorChainNode",0,t])},5114,e=>{"use strict";var r=e.i(5292);let t=(0,r.freeze)({is:e=>"JSONPathNode"===e.kind,create:e=>(0,r.freeze)({kind:"JSONPathNode",inOperator:e,pathLegs:(0,r.freeze)([])}),cloneWithLeg:(e,t)=>(0,r.freeze)({...e,pathLegs:(0,r.freeze)([...e.pathLegs,t])})});e.s(["JSONPathNode",0,t])},19834,e=>{"use strict";e.s(["parseAliasedStringReference",()=>w,"parseColumnName",()=>g,"parseJSONReference",()=>m,"parseOrderedColumnName",()=>O,"parseReferenceExpression",()=>N,"parseReferenceExpressionOrList",()=>f,"parseSimpleReferenceExpression",()=>c,"parseStringReference",()=>y]);var r=e.i(77373),t=e.i(50022),o=e.i(99934),i=e.i(39328),n=e.i(5292),s=e.i(85381),a=e.i(55514),d=e.i(66511),u=e.i(36662),p=e.i(17708),l=e.i(55e3),h=e.i(5114);function c(e){return(0,n.isString)(e)?y(e):e.toOperationNode()}function f(e){return(0,n.isReadonlyArray)(e)?e.map(e=>N(e)):[N(e)]}function N(e){return(0,s.isExpressionOrFactory)(e)?(0,s.parseExpression)(e):c(e)}function m(e,r){if((0,u.isJSONOperator)(r))return p.JSONReferenceNode.create(y(e),l.JSONOperatorChainNode.create(u.OperatorNode.create(r)));if("->$"===r||"->>$"===r)return p.JSONReferenceNode.create(y(e),h.JSONPathNode.create(u.OperatorNode.create(r.slice(0,-1))));throw Error(`Invalid JSON operator: ${r}`)}function y(e){if(!e.includes("."))return o.ReferenceNode.create(t.ColumnNode.create(e));let r=e.split(".").map(x);if(3===r.length)return function(e){let[r,n,s]=e;return o.ReferenceNode.create(t.ColumnNode.create(s),i.TableNode.createWithSchema(r,n))}(r);if(2===r.length)return function(e){let[r,n]=e;return o.ReferenceNode.create(t.ColumnNode.create(n),i.TableNode.create(r))}(r);throw Error(`invalid column reference ${e}`)}function w(e){let t=" as ";if(!e.includes(t))return y(e);{let[o,i]=e.split(t).map(x);return r.AliasNode.create(y(o),a.IdentifierNode.create(i))}}function g(e){return t.ColumnNode.create(e)}function O(e){if(!e.includes(" "))return g(e);{let[r,t]=e.split(" ").map(x);if(!(0,d.isOrderByDirection)(t))throw Error(`invalid order direction "${t}" next to "${r}"`);return(0,d.parseOrderBy)([r,t])[0]}}function x(e){return e.trim()}},74955,82561,e=>{"use strict";var r=e.i(5292);let t=(0,r.freeze)({is:e=>"PrimitiveValueListNode"===e.kind,create:e=>(0,r.freeze)({kind:"PrimitiveValueListNode",values:(0,r.freeze)([...e])})});e.s(["PrimitiveValueListNode",0,t],74955);let o=(0,r.freeze)({is:e=>"ValueListNode"===e.kind,create:e=>(0,r.freeze)({kind:"ValueListNode",values:(0,r.freeze)(e)})});e.s(["ValueListNode",0,o],82561)},84480,e=>{"use strict";var r=e.i(5292);let t=(0,r.freeze)({is:e=>"ValueNode"===e.kind,create:e=>(0,r.freeze)({kind:"ValueNode",value:e}),createImmediate:e=>(0,r.freeze)({kind:"ValueNode",value:e,immediate:!0})});e.s(["ValueNode",0,t])},23669,43097,3329,20857,4372,34067,32694,40642,76413,83715,79685,19285,22350,e=>{"use strict";e.s(["parseFilterList",()=>x,"parseFilterObject",()=>O,"parseReferentialBinaryOperation",()=>g,"parseValueBinaryOperation",()=>w,"parseValueBinaryOperationOrExpression",()=>y],23669);var r=e.i(87974),t=e.i(5292),o=e.i(52369),i=e.i(36662),n=e.i(19834);e.s(["isSafeImmediateValue",()=>h,"parseSafeImmediateValue",()=>c,"parseValueExpression",()=>l,"parseValueExpressionOrList",()=>p],43097);var s=e.i(74955),a=e.i(82561),d=e.i(84480),u=e.i(85381);function p(e){var r;return(0,t.isReadonlyArray)(e)?(r=e).some(u.isExpressionOrFactory)?a.ValueListNode.create(r.map(e=>l(e))):s.PrimitiveValueListNode.create(r):l(e)}function l(e){return(0,u.isExpressionOrFactory)(e)?(0,u.parseExpression)(e):d.ValueNode.create(e)}function h(e){return(0,t.isNumber)(e)||(0,t.isBoolean)(e)||(0,t.isNull)(e)}function c(e){if(!h(e))throw Error(`unsafe immediate value ${JSON.stringify(e)}`);return d.ValueNode.createImmediate(e)}var f=e.i(39001),N=e.i(56802),m=e.i(3392);function y(e){if(3===e.length)return w(e[0],e[1],e[2]);if(1===e.length)return l(e[0]);throw Error(`invalid arguments: ${JSON.stringify(e)}`)}function w(e,t,o){var i;return("is"===(i=t)||"is not"===i)&&W(o)?r.BinaryOperationNode.create((0,n.parseReferenceExpression)(e),b(t),d.ValueNode.createImmediate(o)):r.BinaryOperationNode.create((0,n.parseReferenceExpression)(e),b(t),p(o))}function g(e,t,o){return r.BinaryOperationNode.create((0,n.parseReferenceExpression)(e),b(t),(0,n.parseReferenceExpression)(o))}function O(e,r){return x(Object.entries(e).filter(([,e])=>!(0,t.isUndefined)(e)).map(([e,r])=>w(e,W(r)?"is":"=",r)),r)}function x(e,t,o=!0){let n="and"===t?f.AndNode.create:m.OrNode.create;if(0===e.length)return r.BinaryOperationNode.create(d.ValueNode.createImmediate(1),i.OperatorNode.create("="),d.ValueNode.createImmediate(+("and"===t)));let s=q(e[0]);for(let r=1;r<e.length;++r)s=n(s,q(e[r]));return e.length>1&&o?N.ParensNode.create(s):s}function W(e){return(0,t.isNull)(e)||(0,t.isBoolean)(e)}function b(e){if((0,i.isBinaryOperator)(e))return i.OperatorNode.create(e);if((0,o.isOperationNodeSource)(e))return e.toOperationNode();throw Error(`invalid operator ${JSON.stringify(e)}`)}function q(e){return(0,o.isOperationNodeSource)(e)?e.toOperationNode():e}let z=(0,t.freeze)({is:e=>"OrderByNode"===e.kind,create:e=>(0,t.freeze)({kind:"OrderByNode",items:(0,t.freeze)([...e])}),cloneWithItems:(e,r)=>(0,t.freeze)({...e,items:(0,t.freeze)([...e.items,...r])})});e.s(["OrderByNode",0,z],3329);let S=(0,t.freeze)({is:e=>"PartitionByNode"===e.kind,create:e=>(0,t.freeze)({kind:"PartitionByNode",items:(0,t.freeze)(e)}),cloneWithItems:(e,r)=>(0,t.freeze)({...e,items:(0,t.freeze)([...e.items,...r])})}),k=(0,t.freeze)({is:e=>"OverNode"===e.kind,create:()=>(0,t.freeze)({kind:"OverNode"}),cloneWithOrderByItems:(e,r)=>(0,t.freeze)({...e,orderBy:e.orderBy?z.cloneWithItems(e.orderBy,r):z.create(r)}),cloneWithPartitionByItems:(e,r)=>(0,t.freeze)({...e,partitionBy:e.partitionBy?S.cloneWithItems(e.partitionBy,r):S.create(r)})});e.s(["OverNode",0,k],20857),e.s(["JoinBuilder",()=>v],4372);var E=e.i(79111),I=e.i(3731);class v{#r;constructor(e){this.#r=(0,t.freeze)(e)}on(...e){return new v({...this.#r,joinNode:E.JoinNode.cloneWithOn(this.#r.joinNode,y(e))})}onRef(e,r,t){return new v({...this.#r,joinNode:E.JoinNode.cloneWithOn(this.#r.joinNode,g(e,r,t))})}onTrue(){return new v({...this.#r,joinNode:E.JoinNode.cloneWithOn(this.#r.joinNode,I.RawNode.createWithSql("true"))})}$call(e){return e(this)}toOperationNode(){return this.#r.joinNode}}e.s(["QueryNode",()=>$],22350);var C=e.i(91114);e.s(["SelectQueryNode",()=>R],34067);let B=(0,t.freeze)({is:e=>"FromNode"===e.kind,create:e=>(0,t.freeze)({kind:"FromNode",froms:(0,t.freeze)(e)}),cloneWithFroms:(e,r)=>(0,t.freeze)({...e,froms:(0,t.freeze)([...e.froms,...r])})}),Q=(0,t.freeze)({is:e=>"GroupByNode"===e.kind,create:e=>(0,t.freeze)({kind:"GroupByNode",items:(0,t.freeze)(e)}),cloneWithItems:(e,r)=>(0,t.freeze)({...e,items:(0,t.freeze)([...e.items,...r])})}),T=(0,t.freeze)({is:e=>"HavingNode"===e.kind,create:e=>(0,t.freeze)({kind:"HavingNode",having:e}),cloneWithOperation:(e,r,o)=>(0,t.freeze)({...e,having:"And"===r?f.AndNode.create(e.having,o):m.OrNode.create(e.having,o)})}),R=(0,t.freeze)({is:e=>"SelectQueryNode"===e.kind,create:e=>(0,t.freeze)({kind:"SelectQueryNode",...e&&{with:e}}),createFrom:(e,r)=>(0,t.freeze)({kind:"SelectQueryNode",from:B.create(e),...r&&{with:r}}),cloneWithSelections:(e,r)=>(0,t.freeze)({...e,selections:e.selections?(0,t.freeze)([...e.selections,...r]):(0,t.freeze)(r)}),cloneWithDistinctOn:(e,r)=>(0,t.freeze)({...e,distinctOn:e.distinctOn?(0,t.freeze)([...e.distinctOn,...r]):(0,t.freeze)(r)}),cloneWithFrontModifier:(e,r)=>(0,t.freeze)({...e,frontModifiers:e.frontModifiers?(0,t.freeze)([...e.frontModifiers,r]):(0,t.freeze)([r])}),cloneWithOrderByItems:(e,r)=>$.cloneWithOrderByItems(e,r),cloneWithGroupByItems:(e,r)=>(0,t.freeze)({...e,groupBy:e.groupBy?Q.cloneWithItems(e.groupBy,r):Q.create(r)}),cloneWithLimit:(e,r)=>(0,t.freeze)({...e,limit:r}),cloneWithOffset:(e,r)=>(0,t.freeze)({...e,offset:r}),cloneWithFetch:(e,r)=>(0,t.freeze)({...e,fetch:r}),cloneWithHaving:(e,r)=>(0,t.freeze)({...e,having:e.having?T.cloneWithOperation(e.having,"And",r):T.create(r)}),cloneWithSetOperations:(e,r)=>(0,t.freeze)({...e,setOperations:e.setOperations?(0,t.freeze)([...e.setOperations,...r]):(0,t.freeze)([...r])}),cloneWithoutSelections:e=>(0,t.freeze)({...e,selections:[]}),cloneWithoutLimit:e=>(0,t.freeze)({...e,limit:void 0}),cloneWithoutOffset:e=>(0,t.freeze)({...e,offset:void 0}),cloneWithoutOrderBy:e=>$.cloneWithoutOrderBy(e),cloneWithoutGroupBy:e=>(0,t.freeze)({...e,groupBy:void 0})}),A=(0,t.freeze)({is:e=>"ListNode"===e.kind,create:e=>(0,t.freeze)({kind:"ListNode",items:(0,t.freeze)(e)})});e.s(["ListNode",0,A],32694);let L=(0,t.freeze)({is:e=>"UpdateQueryNode"===e.kind,create:(e,r)=>(0,t.freeze)({kind:"UpdateQueryNode",table:1===e.length?e[0]:A.create(e),...r&&{with:r}}),createWithoutTable:()=>(0,t.freeze)({kind:"UpdateQueryNode"}),cloneWithFromItems:(e,r)=>(0,t.freeze)({...e,from:e.from?B.cloneWithFroms(e.from,r):B.create(r)}),cloneWithUpdates:(e,r)=>(0,t.freeze)({...e,updates:e.updates?(0,t.freeze)([...e.updates,...r]):r}),cloneWithLimit:(e,r)=>(0,t.freeze)({...e,limit:r})});e.s(["UpdateQueryNode",0,L],40642),e.s(["DeleteQueryNode",()=>V],83715);let F=(0,t.freeze)({is:e=>"UsingNode"===e.kind,create:e=>(0,t.freeze)({kind:"UsingNode",tables:(0,t.freeze)(e)}),cloneWithTables:(e,r)=>(0,t.freeze)({...e,tables:(0,t.freeze)([...e.tables,...r])})});e.s(["UsingNode",0,F],76413);let V=(0,t.freeze)({is:e=>"DeleteQueryNode"===e.kind,create:(e,r)=>(0,t.freeze)({kind:"DeleteQueryNode",from:B.create(e),...r&&{with:r}}),cloneWithOrderByItems:(e,r)=>$.cloneWithOrderByItems(e,r),cloneWithoutOrderBy:e=>$.cloneWithoutOrderBy(e),cloneWithLimit:(e,r)=>(0,t.freeze)({...e,limit:r}),cloneWithoutLimit:e=>(0,t.freeze)({...e,limit:void 0}),cloneWithUsing:(e,r)=>(0,t.freeze)({...e,using:void 0!==e.using?F.cloneWithTables(e.using,r):F.create(r)})}),M=(0,t.freeze)({is:e=>"WhereNode"===e.kind,create:e=>(0,t.freeze)({kind:"WhereNode",where:e}),cloneWithOperation:(e,r,o)=>(0,t.freeze)({...e,where:"And"===r?f.AndNode.create(e.where,o):m.OrNode.create(e.where,o)})});e.s(["WhereNode",0,M],79685);let D=(0,t.freeze)({is:e=>"ReturningNode"===e.kind,create:e=>(0,t.freeze)({kind:"ReturningNode",selections:(0,t.freeze)(e)}),cloneWithSelections:(e,r)=>(0,t.freeze)({...e,selections:e.selections?(0,t.freeze)([...e.selections,...r]):(0,t.freeze)(r)})}),J=(0,t.freeze)({is:e=>"ExplainNode"===e.kind,create:(e,r)=>(0,t.freeze)({kind:"ExplainNode",format:e,options:r})});var P=e.i(54860);let U=(0,t.freeze)({is:e=>"MergeQueryNode"===e.kind,create:(e,r)=>(0,t.freeze)({kind:"MergeQueryNode",into:e,...r&&{with:r}}),cloneWithUsing:(e,r)=>(0,t.freeze)({...e,using:r}),cloneWithWhen:(e,r)=>(0,t.freeze)({...e,whens:e.whens?(0,t.freeze)([...e.whens,r]):(0,t.freeze)([r])}),cloneWithThen:(e,r)=>(0,t.freeze)({...e,whens:e.whens?(0,t.freeze)([...e.whens.slice(0,-1),P.WhenNode.cloneWithResult(e.whens[e.whens.length-1],r)]):void 0})});e.s(["MergeQueryNode",0,U],19285);let j=(0,t.freeze)({is:e=>"OutputNode"===e.kind,create:e=>(0,t.freeze)({kind:"OutputNode",selections:(0,t.freeze)(e)}),cloneWithSelections:(e,r)=>(0,t.freeze)({...e,selections:e.selections?(0,t.freeze)([...e.selections,...r]):(0,t.freeze)(r)})}),$=(0,t.freeze)({is:e=>R.is(e)||C.InsertQueryNode.is(e)||L.is(e)||V.is(e)||U.is(e),cloneWithEndModifier:(e,r)=>(0,t.freeze)({...e,endModifiers:e.endModifiers?(0,t.freeze)([...e.endModifiers,r]):(0,t.freeze)([r])}),cloneWithWhere:(e,r)=>(0,t.freeze)({...e,where:e.where?M.cloneWithOperation(e.where,"And",r):M.create(r)}),cloneWithJoin:(e,r)=>(0,t.freeze)({...e,joins:e.joins?(0,t.freeze)([...e.joins,r]):(0,t.freeze)([r])}),cloneWithReturning:(e,r)=>(0,t.freeze)({...e,returning:e.returning?D.cloneWithSelections(e.returning,r):D.create(r)}),cloneWithoutReturning:e=>(0,t.freeze)({...e,returning:void 0}),cloneWithoutWhere:e=>(0,t.freeze)({...e,where:void 0}),cloneWithExplain:(e,r,o)=>(0,t.freeze)({...e,explain:J.create(r,o?.toOperationNode())}),cloneWithTop:(e,r)=>(0,t.freeze)({...e,top:r}),cloneWithOutput:(e,r)=>(0,t.freeze)({...e,output:e.output?j.cloneWithSelections(e.output,r):j.create(r)}),cloneWithOrderByItems:(e,r)=>(0,t.freeze)({...e,orderBy:e.orderBy?z.cloneWithItems(e.orderBy,r):z.create(r)}),cloneWithoutOrderBy:e=>(0,t.freeze)({...e,orderBy:void 0})})},69062,17868,e=>{"use strict";e.s(["OverBuilder",()=>a],69062);var r=e.i(20857),t=e.i(22350),o=e.i(66511),i=e.i(5292);let n=(0,i.freeze)({is:e=>"PartitionByItemNode"===e.kind,create:e=>(0,i.freeze)({kind:"PartitionByItemNode",partitionBy:e})});var s=e.i(19834);class a{#r;constructor(e){this.#r=(0,i.freeze)(e)}orderBy(...e){return new a({overNode:r.OverNode.cloneWithOrderByItems(this.#r.overNode,(0,o.parseOrderBy)(e))})}clearOrderBy(){return new a({overNode:t.QueryNode.cloneWithoutOrderBy(this.#r.overNode)})}partitionBy(e){return new a({overNode:r.OverNode.cloneWithPartitionByItems(this.#r.overNode,(0,s.parseReferenceExpressionOrList)(e).map(n.create))})}$call(e){return e(this)}toOperationNode(){return this.#r.overNode}}var d=e.i(99934),u=e.i(52183);let p=(0,i.freeze)({is:e=>"SelectionNode"===e.kind,create:e=>(0,i.freeze)({kind:"SelectionNode",selection:e}),createSelectAll:()=>(0,i.freeze)({kind:"SelectionNode",selection:u.SelectAllNode.create()}),createSelectAllFromTable:e=>(0,i.freeze)({kind:"SelectionNode",selection:d.ReferenceNode.createSelectAll(e)})});e.s(["SelectionNode",0,p],17868)},94993,31461,89737,98149,8882,992,98130,27797,55642,34755,e=>{"use strict";e.s(["InsertQueryBuilder",()=>V],94993),e.s(["parseSelectAll",()=>h,"parseSelectArg",()=>p],31461);var r,t,o=e.i(5292),i=e.i(17868),n=e.i(19834),s=e.i(82180),a=e.i(85381),d=e.i(27952),u=e.i(71731);function p(e){return(0,o.isFunction)(e)?p(e((0,u.expressionBuilder)())):(0,o.isReadonlyArray)(e)?e.map(e=>l(e)):[l(e)]}function l(e){return(0,o.isString)(e)?i.SelectionNode.create((0,n.parseAliasedStringReference)(e)):(0,s.isDynamicReferenceBuilder)(e)?i.SelectionNode.create(e.toOperationNode()):i.SelectionNode.create((0,a.parseAliasedExpression)(e))}function h(e){return e?Array.isArray(e)?e.map(c):[c(e)]:[i.SelectionNode.createSelectAll()]}function c(e){if((0,o.isString)(e))return i.SelectionNode.createSelectAllFromTable((0,d.parseTable)(e));throw Error(`invalid value selectAll expression: ${JSON.stringify(e)}`)}e.s(["parseInsertExpression",()=>O],89737);var f=e.i(50022),N=e.i(74955),m=e.i(82561),y=e.i(43097);let w=(0,o.freeze)({is:e=>"ValuesNode"===e.kind,create:e=>(0,o.freeze)({kind:"ValuesNode",values:(0,o.freeze)(e)})}),g=(0,o.freeze)({is:e=>"DefaultInsertValueNode"===e.kind,create:()=>(0,o.freeze)({kind:"DefaultInsertValueNode"})});function O(e){var r;let t,i=(0,o.isFunction)(e)?e((0,u.expressionBuilder)()):e;return t=function(e){let r=new Map;for(let t of e)for(let e of Object.keys(t))r.has(e)||void 0===t[e]||r.set(e,r.size);return r}(r=(0,o.isReadonlyArray)(i)?i:(0,o.freeze)([i])),[(0,o.freeze)([...t.keys()].map(f.ColumnNode.create)),w.create(r.map(e=>(function(e,r){let t=Object.keys(e),i=Array.from({length:r.size}),n=!1,s=t.length;for(let d of t){let t=r.get(d);if((0,o.isUndefined)(t)){s--;continue}let u=e[d];((0,o.isUndefined)(u)||(0,a.isExpressionOrFactory)(u))&&(n=!0),i[t]=u}if(s<r.size||n){let e=g.create();return m.ValueListNode.create(i.map(r=>(0,o.isUndefined)(r)?e:(0,y.parseValueExpression)(r)))}return N.PrimitiveValueListNode.create(i)})(e,t)))]}var x=e.i(91114),W=e.i(22350);let b=(0,o.freeze)({is:e=>"ColumnUpdateNode"===e.kind,create:(e,r)=>(0,o.freeze)({kind:"ColumnUpdateNode",column:e,value:r})});function q(e){return Object.entries((0,o.isFunction)(e)?e((0,u.expressionBuilder)()):e).filter(([e,r])=>void 0!==r).map(([e,r])=>b.create(f.ColumnNode.create(e),(0,y.parseValueExpression)(r)))}let z=(0,o.freeze)({is:e=>"OnDuplicateKeyNode"===e.kind,create:e=>(0,o.freeze)({kind:"OnDuplicateKeyNode",updates:e})});class S{insertId;numInsertedOrUpdatedRows;constructor(e,r){this.insertId=e,this.numInsertedOrUpdatedRows=r}}class k extends Error{node;constructor(e){super("no result"),this.node=e}}function E(e){return Object.prototype.hasOwnProperty.call(e,"prototype")}e.s(["NoResultError",0,k,"isNoResultErrorConstructor",0,E],98149);var I=e.i(55514),v=e.i(79685);let C=(0,o.freeze)({is:e=>"OnConflictNode"===e.kind,create:()=>(0,o.freeze)({kind:"OnConflictNode"}),cloneWith:(e,r)=>(0,o.freeze)({...e,...r}),cloneWithIndexWhere:(e,r)=>(0,o.freeze)({...e,indexWhere:e.indexWhere?v.WhereNode.cloneWithOperation(e.indexWhere,"And",r):v.WhereNode.create(r)}),cloneWithIndexOrWhere:(e,r)=>(0,o.freeze)({...e,indexWhere:e.indexWhere?v.WhereNode.cloneWithOperation(e.indexWhere,"Or",r):v.WhereNode.create(r)}),cloneWithUpdateWhere:(e,r)=>(0,o.freeze)({...e,updateWhere:e.updateWhere?v.WhereNode.cloneWithOperation(e.updateWhere,"And",r):v.WhereNode.create(r)}),cloneWithUpdateOrWhere:(e,r)=>(0,o.freeze)({...e,updateWhere:e.updateWhere?v.WhereNode.cloneWithOperation(e.updateWhere,"Or",r):v.WhereNode.create(r)}),cloneWithoutIndexWhere:e=>(0,o.freeze)({...e,indexWhere:void 0}),cloneWithoutUpdateWhere:e=>(0,o.freeze)({...e,updateWhere:void 0})});var B=e.i(23669);class Q{#r;constructor(e){this.#r=(0,o.freeze)(e)}column(e){let r=f.ColumnNode.create(e);return new Q({...this.#r,onConflictNode:C.cloneWith(this.#r.onConflictNode,{columns:this.#r.onConflictNode.columns?(0,o.freeze)([...this.#r.onConflictNode.columns,r]):(0,o.freeze)([r])})})}columns(e){let r=e.map(f.ColumnNode.create);return new Q({...this.#r,onConflictNode:C.cloneWith(this.#r.onConflictNode,{columns:this.#r.onConflictNode.columns?(0,o.freeze)([...this.#r.onConflictNode.columns,...r]):(0,o.freeze)(r)})})}constraint(e){return new Q({...this.#r,onConflictNode:C.cloneWith(this.#r.onConflictNode,{constraint:I.IdentifierNode.create(e)})})}expression(e){return new Q({...this.#r,onConflictNode:C.cloneWith(this.#r.onConflictNode,{indexExpression:e.toOperationNode()})})}where(...e){return new Q({...this.#r,onConflictNode:C.cloneWithIndexWhere(this.#r.onConflictNode,(0,B.parseValueBinaryOperationOrExpression)(e))})}whereRef(e,r,t){return new Q({...this.#r,onConflictNode:C.cloneWithIndexWhere(this.#r.onConflictNode,(0,B.parseReferentialBinaryOperation)(e,r,t))})}clearWhere(){return new Q({...this.#r,onConflictNode:C.cloneWithoutIndexWhere(this.#r.onConflictNode)})}doNothing(){return new T({...this.#r,onConflictNode:C.cloneWith(this.#r.onConflictNode,{doNothing:!0})})}doUpdateSet(e){return new R({...this.#r,onConflictNode:C.cloneWith(this.#r.onConflictNode,{updates:q(e)})})}$call(e){return e(this)}}class T{#r;constructor(e){this.#r=(0,o.freeze)(e)}toOperationNode(){return this.#r.onConflictNode}}class R{#r;constructor(e){this.#r=(0,o.freeze)(e)}where(...e){return new R({...this.#r,onConflictNode:C.cloneWithUpdateWhere(this.#r.onConflictNode,(0,B.parseValueBinaryOperationOrExpression)(e))})}whereRef(e,r,t){return new R({...this.#r,onConflictNode:C.cloneWithUpdateWhere(this.#r.onConflictNode,(0,B.parseReferentialBinaryOperation)(e,r,t))})}clearWhere(){return new R({...this.#r,onConflictNode:C.cloneWithoutUpdateWhere(this.#r.onConflictNode)})}$call(e){return e(this)}toOperationNode(){return this.#r.onConflictNode}}let A=(0,o.freeze)({is:e=>"TopNode"===e.kind,create:(e,r)=>(0,o.freeze)({kind:"TopNode",expression:e,modifiers:r})});function L(e,r){var t;if(!(0,o.isNumber)(e)&&!(0,o.isBigInt)(e))throw Error(`Invalid top expression: ${e}`);if(!(0,o.isUndefined)(r)&&"percent"!==(t=r)&&"with ties"!==t&&"percent with ties"!==t)throw Error(`Invalid top modifiers: ${r}`);return A.create(e,r)}e.s(["parseTop",0,L],8882);let F=(0,o.freeze)({is:e=>"OrActionNode"===e.kind,create:e=>(0,o.freeze)({kind:"OrActionNode",action:e})});class V{#r;constructor(e){this.#r=(0,o.freeze)(e)}values(e){let[r,t]=O(e);return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{columns:r,values:t})})}columns(e){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{columns:(0,o.freeze)(e.map(f.ColumnNode.create))})})}expression(e){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{values:(0,a.parseExpression)(e)})})}defaultValues(){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{defaultValues:!0})})}modifyEnd(e){return new V({...this.#r,queryNode:W.QueryNode.cloneWithEndModifier(this.#r.queryNode,e.toOperationNode())})}ignore(){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{orAction:F.create("ignore")})})}orIgnore(){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{orAction:F.create("ignore")})})}orAbort(){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{orAction:F.create("abort")})})}orFail(){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{orAction:F.create("fail")})})}orReplace(){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{orAction:F.create("replace")})})}orRollback(){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{orAction:F.create("rollback")})})}top(e,r){return new V({...this.#r,queryNode:W.QueryNode.cloneWithTop(this.#r.queryNode,L(e,r))})}onConflict(e){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{onConflict:e(new Q({onConflictNode:C.create()})).toOperationNode()})})}onDuplicateKeyUpdate(e){return new V({...this.#r,queryNode:x.InsertQueryNode.cloneWith(this.#r.queryNode,{onDuplicateKey:z.create(q(e))})})}returning(e){return new V({...this.#r,queryNode:W.QueryNode.cloneWithReturning(this.#r.queryNode,p(e))})}returningAll(){return new V({...this.#r,queryNode:W.QueryNode.cloneWithReturning(this.#r.queryNode,h())})}output(e){return new V({...this.#r,queryNode:W.QueryNode.cloneWithOutput(this.#r.queryNode,p(e))})}outputAll(e){return new V({...this.#r,queryNode:W.QueryNode.cloneWithOutput(this.#r.queryNode,h(e))})}clearReturning(){return new V({...this.#r,queryNode:W.QueryNode.cloneWithoutReturning(this.#r.queryNode)})}$call(e){return e(this)}$if(e,r){return e?r(this):new V({...this.#r})}$castTo(){return new V(this.#r)}$narrowType(){return new V(this.#r)}$assertType(){return new V(this.#r)}withPlugin(e){return new V({...this.#r,executor:this.#r.executor.withPlugin(e)})}toOperationNode(){return this.#r.executor.transformQuery(this.#r.queryNode,this.#r.queryId)}compile(){return this.#r.executor.compileQuery(this.toOperationNode(),this.#r.queryId)}async execute(e){let r=this.compile(),t=await this.#r.executor.executeQuery(r,e),{adapter:o}=this.#r.executor,i=r.query;return i.returning&&o.supportsReturning||i.output&&o.supportsOutput?t.rows:[new S(t.insertId,t.numAffectedRows??BigInt(0))]}async executeTakeFirst(e){let[r]=await this.execute(e);return r}async executeTakeFirstOrThrow(e){"function"==typeof e&&(e={errorConstructor:e});let r=await this.executeTakeFirst(e);if(void 0===r){let r=e?.errorConstructor??k;throw E(r)?new r(this.toOperationNode()):r(this.toOperationNode())}return r}async *stream(e){"object"!=typeof e&&(e={chunkSize:e});let r=this.compile();for await(let t of this.#r.executor.stream(r,e.chunkSize??100,e))yield*t.rows}async explain(e,r){let t=new V({...this.#r,queryNode:W.QueryNode.cloneWithExplain(this.#r.queryNode,e,r)});return await t.execute()}}e.s(["DeleteQueryBuilder",()=>j],98130);var M=e.i(38584);class D{numDeletedRows;constructor(e){this.numDeletedRows=e}}var J=e.i(83715);let P=(0,o.freeze)({is:e=>"LimitNode"===e.kind,create:e=>(0,o.freeze)({kind:"LimitNode",limit:e})});e.s(["LimitNode",0,P],992);var U=e.i(66511);class j{#r;constructor(e){this.#r=(0,o.freeze)(e)}where(...e){return new r({...this.#r,queryNode:W.QueryNode.cloneWithWhere(this.#r.queryNode,(0,B.parseValueBinaryOperationOrExpression)(e))})}whereRef(e,t,o){return new r({...this.#r,queryNode:W.QueryNode.cloneWithWhere(this.#r.queryNode,(0,B.parseReferentialBinaryOperation)(e,t,o))})}clearWhere(){return new r({...this.#r,queryNode:W.QueryNode.cloneWithoutWhere(this.#r.queryNode)})}top(e,t){return new r({...this.#r,queryNode:W.QueryNode.cloneWithTop(this.#r.queryNode,L(e,t))})}using(e){return new r({...this.#r,queryNode:J.DeleteQueryNode.cloneWithUsing(this.#r.queryNode,(0,d.parseTableExpressionOrList)(e))})}innerJoin(...e){return this.#t("InnerJoin",e)}leftJoin(...e){return this.#t("LeftJoin",e)}rightJoin(...e){return this.#t("RightJoin",e)}fullJoin(...e){return this.#t("FullJoin",e)}#t(e,t){return new r({...this.#r,queryNode:W.QueryNode.cloneWithJoin(this.#r.queryNode,(0,M.parseJoin)(e,t))})}returning(e){return new r({...this.#r,queryNode:W.QueryNode.cloneWithReturning(this.#r.queryNode,p(e))})}returningAll(e){return new r({...this.#r,queryNode:W.QueryNode.cloneWithReturning(this.#r.queryNode,h(e))})}output(e){return new r({...this.#r,queryNode:W.QueryNode.cloneWithOutput(this.#r.queryNode,p(e))})}outputAll(e){return new r({...this.#r,queryNode:W.QueryNode.cloneWithOutput(this.#r.queryNode,h(e))})}clearReturning(){return new r({...this.#r,queryNode:W.QueryNode.cloneWithoutReturning(this.#r.queryNode)})}clearLimit(){return new r({...this.#r,queryNode:J.DeleteQueryNode.cloneWithoutLimit(this.#r.queryNode)})}orderBy(...e){return new r({...this.#r,queryNode:W.QueryNode.cloneWithOrderByItems(this.#r.queryNode,(0,U.parseOrderBy)(e))})}clearOrderBy(){return new r({...this.#r,queryNode:W.QueryNode.cloneWithoutOrderBy(this.#r.queryNode)})}limit(e){return new r({...this.#r,queryNode:J.DeleteQueryNode.cloneWithLimit(this.#r.queryNode,P.create((0,y.parseValueExpression)(e)))})}modifyEnd(e){return new r({...this.#r,queryNode:W.QueryNode.cloneWithEndModifier(this.#r.queryNode,e.toOperationNode())})}$call(e){return e(this)}$if(e,t){return e?t(this):new r({...this.#r})}$castTo(){return new r(this.#r)}$narrowType(){return new r(this.#r)}$assertType(){return new r(this.#r)}withPlugin(e){return new r({...this.#r,executor:this.#r.executor.withPlugin(e)})}toOperationNode(){return this.#r.executor.transformQuery(this.#r.queryNode,this.#r.queryId)}compile(){return this.#r.executor.compileQuery(this.toOperationNode(),this.#r.queryId)}async execute(e){let r=this.compile(),t=await this.#r.executor.executeQuery(r,e),{adapter:o}=this.#r.executor,i=r.query;return i.returning&&o.supportsReturning||i.output&&o.supportsOutput?t.rows:[new D(t.numAffectedRows??BigInt(0))]}async executeTakeFirst(e){let[r]=await this.execute(e);return r}async executeTakeFirstOrThrow(e){"function"==typeof e&&(e={errorConstructor:e});let r=await this.executeTakeFirst(e);if(void 0===r){let r=e?.errorConstructor??k;throw E(r)?new r(this.toOperationNode()):r(this.toOperationNode())}return r}async *stream(e){"object"!=typeof e&&(e={chunkSize:e});let r=this.compile();for await(let t of this.#r.executor.stream(r,e.chunkSize??100,e))yield*t.rows}async explain(e,t){let o=new r({...this.#r,queryNode:W.QueryNode.cloneWithExplain(this.#r.queryNode,e,t)});return await o.execute()}}r=j,e.s(["UpdateQueryBuilder",()=>K],27797);var $=e.i(40642);class G{numUpdatedRows;numChangedRows;constructor(e,r){this.numUpdatedRows=e,this.numChangedRows=r}}class K{#r;constructor(e){this.#r=(0,o.freeze)(e)}where(...e){return new t({...this.#r,queryNode:W.QueryNode.cloneWithWhere(this.#r.queryNode,(0,B.parseValueBinaryOperationOrExpression)(e))})}whereRef(e,r,o){return new t({...this.#r,queryNode:W.QueryNode.cloneWithWhere(this.#r.queryNode,(0,B.parseReferentialBinaryOperation)(e,r,o))})}clearWhere(){return new t({...this.#r,queryNode:W.QueryNode.cloneWithoutWhere(this.#r.queryNode)})}top(e,r){return new t({...this.#r,queryNode:W.QueryNode.cloneWithTop(this.#r.queryNode,L(e,r))})}from(e){return new t({...this.#r,queryNode:$.UpdateQueryNode.cloneWithFromItems(this.#r.queryNode,(0,d.parseTableExpressionOrList)(e))})}innerJoin(...e){return this.#t("InnerJoin",e)}leftJoin(...e){return this.#t("LeftJoin",e)}rightJoin(...e){return this.#t("RightJoin",e)}fullJoin(...e){return this.#t("FullJoin",e)}#t(e,r){return new t({...this.#r,queryNode:W.QueryNode.cloneWithJoin(this.#r.queryNode,(0,M.parseJoin)(e,r))})}orderBy(...e){return new t({...this.#r,queryNode:W.QueryNode.cloneWithOrderByItems(this.#r.queryNode,(0,U.parseOrderBy)(e))})}clearOrderBy(){return new t({...this.#r,queryNode:W.QueryNode.cloneWithoutOrderBy(this.#r.queryNode)})}limit(e){return new t({...this.#r,queryNode:$.UpdateQueryNode.cloneWithLimit(this.#r.queryNode,P.create((0,y.parseValueExpression)(e)))})}set(...e){return new t({...this.#r,queryNode:$.UpdateQueryNode.cloneWithUpdates(this.#r.queryNode,function(...e){return 2===e.length?[b.create((0,n.parseReferenceExpression)(e[0]),(0,y.parseValueExpression)(e[1]))]:q(e[0])}(...e))})}returning(e){return new t({...this.#r,queryNode:W.QueryNode.cloneWithReturning(this.#r.queryNode,p(e))})}returningAll(e){return new t({...this.#r,queryNode:W.QueryNode.cloneWithReturning(this.#r.queryNode,h(e))})}output(e){return new t({...this.#r,queryNode:W.QueryNode.cloneWithOutput(this.#r.queryNode,p(e))})}outputAll(e){return new t({...this.#r,queryNode:W.QueryNode.cloneWithOutput(this.#r.queryNode,h(e))})}modifyEnd(e){return new t({...this.#r,queryNode:W.QueryNode.cloneWithEndModifier(this.#r.queryNode,e.toOperationNode())})}clearReturning(){return new t({...this.#r,queryNode:W.QueryNode.cloneWithoutReturning(this.#r.queryNode)})}$call(e){return e(this)}$if(e,r){return e?r(this):new t({...this.#r})}$castTo(){return new t(this.#r)}$narrowType(){return new t(this.#r)}$assertType(){return new t(this.#r)}withPlugin(e){return new t({...this.#r,executor:this.#r.executor.withPlugin(e)})}toOperationNode(){return this.#r.executor.transformQuery(this.#r.queryNode,this.#r.queryId)}compile(){return this.#r.executor.compileQuery(this.toOperationNode(),this.#r.queryId)}async execute(e){let r=this.compile(),t=await this.#r.executor.executeQuery(r,e),{adapter:o}=this.#r.executor,i=r.query;return i.returning&&o.supportsReturning||i.output&&o.supportsOutput?t.rows:[new G(t.numAffectedRows??BigInt(0),t.numChangedRows)]}async executeTakeFirst(e){let[r]=await this.execute(e);return r}async executeTakeFirstOrThrow(e){"function"==typeof e&&(e={errorConstructor:e});let r=await this.executeTakeFirst(e);if(void 0===r){let r=e?.errorConstructor??k;throw E(r)?new r(this.toOperationNode()):r(this.toOperationNode())}return r}async *stream(e){"object"!=typeof e&&(e={chunkSize:e});let r=this.compile();for await(let t of this.#r.executor.stream(r,e.chunkSize??100,e))yield*t.rows}async explain(e,r){let o=new t({...this.#r,queryNode:W.QueryNode.cloneWithExplain(this.#r.queryNode,e,r)});return await o.execute()}}t=K,e.s(["parseCommonTableExpression",()=>er],55642);var _=e.i(39328);let H=(0,o.freeze)({is:e=>"CommonTableExpressionNameNode"===e.kind,create:(e,r)=>(0,o.freeze)({kind:"CommonTableExpressionNameNode",table:_.TableNode.create(e),columns:r?(0,o.freeze)(r.map(f.ColumnNode.create)):void 0})});var X=e.i(74832);let Y=(0,o.freeze)({is:e=>"CommonTableExpressionNode"===e.kind,create:(e,r)=>(0,o.freeze)({kind:"CommonTableExpressionNode",name:e,expression:r}),cloneWith:(e,r)=>(0,o.freeze)({...e,...r})});class Z{#r;constructor(e){this.#r=(0,o.freeze)(e)}materialized(){return new Z({...this.#r,node:Y.cloneWith(this.#r.node,{materialized:!0})})}notMaterialized(){return new Z({...this.#r,node:Y.cloneWith(this.#r.node,{materialized:!1})})}toOperationNode(){return this.#r.node}}var ee=e.i(52369);function er(e,r){var t;let i=(0,ee.isOperationNodeSource)(r)?r.toOperationNode():r((0,X.createQueryCreator)()).toOperationNode();return(0,o.isFunction)(e)?e((t=i,e=>new Z({node:Y.create(et(e),t)}))).toOperationNode():Y.create(et(e),i)}function et(e){if(!e.includes("("))return H.create(e);{let r=e.split(/[\(\)]/),t=r[0],o=r[1].split(",").map(e=>e.trim());return H.create(t,o)}}let eo=(0,o.freeze)({is:e=>"WithNode"===e.kind,create:(e,r)=>(0,o.freeze)({kind:"WithNode",expressions:(0,o.freeze)([e]),...r}),cloneWithExpression:(e,r)=>(0,o.freeze)({...e,expressions:(0,o.freeze)([...e.expressions,r])})});e.s(["WithNode",0,eo],34755)},15249,11719,e=>{"use strict";let r=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"];function t(e){let t="";for(let o=0;o<e;++o)t+=r[~~(Math.random()*r.length)];return t}e.s(["randomString",0,t],11719);class o{#o;get queryId(){return void 0===this.#o&&(this.#o=t(8)),this.#o}}e.s(["createQueryId",0,function(){return new o}],15249)},22284,18264,62926,55505,742,47007,95776,97078,13071,74832,38584,85569,72127,12365,81442,70420,e=>{"use strict";e.s(["createSelectQueryBuilder",()=>eB],22284);var r,t=e.i(77373),o=e.i(80827);e.s(["parseJoin",()=>el],38584);var i=e.i(79111),n=e.i(23669);e.s(["createJoinBuilder",()=>eu,"createOverBuilder",()=>ep,"createQueryCreator",()=>ed],74832);var s=e.i(20857),a=e.i(4372),d=e.i(69062);e.s(["QueryCreator",()=>ea],13071);var u=e.i(94993),p=e.i(98130),l=e.i(27797),h=e.i(83715),c=e.i(91114),f=e.i(34067),N=e.i(40642),m=e.i(27952),y=e.i(55642),w=e.i(34755),g=e.i(15249),O=e.i(55514),x=e.i(32694),W=e.i(5292);class b{nodeStack=[];#i=(0,W.freeze)({AliasNode:this.transformAlias.bind(this),ColumnNode:this.transformColumn.bind(this),IdentifierNode:this.transformIdentifier.bind(this),SchemableIdentifierNode:this.transformSchemableIdentifier.bind(this),RawNode:this.transformRaw.bind(this),ReferenceNode:this.transformReference.bind(this),SelectQueryNode:this.transformSelectQuery.bind(this),SelectionNode:this.transformSelection.bind(this),TableNode:this.transformTable.bind(this),FromNode:this.transformFrom.bind(this),SelectAllNode:this.transformSelectAll.bind(this),AndNode:this.transformAnd.bind(this),OrNode:this.transformOr.bind(this),ValueNode:this.transformValue.bind(this),ValueListNode:this.transformValueList.bind(this),PrimitiveValueListNode:this.transformPrimitiveValueList.bind(this),ParensNode:this.transformParens.bind(this),JoinNode:this.transformJoin.bind(this),OperatorNode:this.transformOperator.bind(this),WhereNode:this.transformWhere.bind(this),InsertQueryNode:this.transformInsertQuery.bind(this),DeleteQueryNode:this.transformDeleteQuery.bind(this),ReturningNode:this.transformReturning.bind(this),CreateTableNode:this.transformCreateTable.bind(this),AddColumnNode:this.transformAddColumn.bind(this),ColumnDefinitionNode:this.transformColumnDefinition.bind(this),DropTableNode:this.transformDropTable.bind(this),DataTypeNode:this.transformDataType.bind(this),OrderByNode:this.transformOrderBy.bind(this),OrderByItemNode:this.transformOrderByItem.bind(this),GroupByNode:this.transformGroupBy.bind(this),GroupByItemNode:this.transformGroupByItem.bind(this),UpdateQueryNode:this.transformUpdateQuery.bind(this),ColumnUpdateNode:this.transformColumnUpdate.bind(this),LimitNode:this.transformLimit.bind(this),OffsetNode:this.transformOffset.bind(this),OnConflictNode:this.transformOnConflict.bind(this),OnDuplicateKeyNode:this.transformOnDuplicateKey.bind(this),CreateIndexNode:this.transformCreateIndex.bind(this),DropIndexNode:this.transformDropIndex.bind(this),ListNode:this.transformList.bind(this),PrimaryKeyConstraintNode:this.transformPrimaryKeyConstraint.bind(this),UniqueConstraintNode:this.transformUniqueConstraint.bind(this),ReferencesNode:this.transformReferences.bind(this),CheckConstraintNode:this.transformCheckConstraint.bind(this),WithNode:this.transformWith.bind(this),CommonTableExpressionNode:this.transformCommonTableExpression.bind(this),CommonTableExpressionNameNode:this.transformCommonTableExpressionName.bind(this),HavingNode:this.transformHaving.bind(this),CreateSchemaNode:this.transformCreateSchema.bind(this),DropSchemaNode:this.transformDropSchema.bind(this),AlterTableNode:this.transformAlterTable.bind(this),DropColumnNode:this.transformDropColumn.bind(this),RenameColumnNode:this.transformRenameColumn.bind(this),AlterColumnNode:this.transformAlterColumn.bind(this),ModifyColumnNode:this.transformModifyColumn.bind(this),AddConstraintNode:this.transformAddConstraint.bind(this),DropConstraintNode:this.transformDropConstraint.bind(this),RenameConstraintNode:this.transformRenameConstraint.bind(this),ForeignKeyConstraintNode:this.transformForeignKeyConstraint.bind(this),CreateViewNode:this.transformCreateView.bind(this),RefreshMaterializedViewNode:this.transformRefreshMaterializedView.bind(this),DropViewNode:this.transformDropView.bind(this),GeneratedNode:this.transformGenerated.bind(this),DefaultValueNode:this.transformDefaultValue.bind(this),OnNode:this.transformOn.bind(this),ValuesNode:this.transformValues.bind(this),SelectModifierNode:this.transformSelectModifier.bind(this),CreateTypeNode:this.transformCreateType.bind(this),DropTypeNode:this.transformDropType.bind(this),ExplainNode:this.transformExplain.bind(this),DefaultInsertValueNode:this.transformDefaultInsertValue.bind(this),AggregateFunctionNode:this.transformAggregateFunction.bind(this),OverNode:this.transformOver.bind(this),PartitionByNode:this.transformPartitionBy.bind(this),PartitionByItemNode:this.transformPartitionByItem.bind(this),SetOperationNode:this.transformSetOperation.bind(this),BinaryOperationNode:this.transformBinaryOperation.bind(this),UnaryOperationNode:this.transformUnaryOperation.bind(this),UsingNode:this.transformUsing.bind(this),FunctionNode:this.transformFunction.bind(this),CaseNode:this.transformCase.bind(this),WhenNode:this.transformWhen.bind(this),JSONReferenceNode:this.transformJSONReference.bind(this),JSONPathNode:this.transformJSONPath.bind(this),JSONPathLegNode:this.transformJSONPathLeg.bind(this),JSONOperatorChainNode:this.transformJSONOperatorChain.bind(this),TupleNode:this.transformTuple.bind(this),MergeQueryNode:this.transformMergeQuery.bind(this),MatchedNode:this.transformMatched.bind(this),AddIndexNode:this.transformAddIndex.bind(this),CastNode:this.transformCast.bind(this),FetchNode:this.transformFetch.bind(this),TopNode:this.transformTop.bind(this),OutputNode:this.transformOutput.bind(this),OrActionNode:this.transformOrAction.bind(this),CollateNode:this.transformCollate.bind(this),AlterTypeNode:this.transformAlterType.bind(this),AddValueNode:this.transformAddValue.bind(this),RenameValueNode:this.transformRenameValue.bind(this)});transformNode(e,r){if(!e)return e;this.nodeStack.push(e);let t=this.transformNodeImpl(e,r);return this.nodeStack.pop(),(0,W.freeze)(t)}transformNodeImpl(e,r){return this.#i[e.kind](e,r)}transformNodeList(e,r){return e?(0,W.freeze)(e.map(e=>this.transformNode(e,r))):e}transformSelectQuery(e,r){return{kind:"SelectQueryNode",from:this.transformNode(e.from,r),selections:this.transformNodeList(e.selections,r),distinctOn:this.transformNodeList(e.distinctOn,r),joins:this.transformNodeList(e.joins,r),groupBy:this.transformNode(e.groupBy,r),orderBy:this.transformNode(e.orderBy,r),where:this.transformNode(e.where,r),frontModifiers:this.transformNodeList(e.frontModifiers,r),endModifiers:this.transformNodeList(e.endModifiers,r),limit:this.transformNode(e.limit,r),offset:this.transformNode(e.offset,r),with:this.transformNode(e.with,r),having:this.transformNode(e.having,r),explain:this.transformNode(e.explain,r),setOperations:this.transformNodeList(e.setOperations,r),fetch:this.transformNode(e.fetch,r),top:this.transformNode(e.top,r)}}transformSelection(e,r){return{kind:"SelectionNode",selection:this.transformNode(e.selection,r)}}transformColumn(e,r){return{kind:"ColumnNode",column:this.transformNode(e.column,r)}}transformAlias(e,r){return{kind:"AliasNode",node:this.transformNode(e.node,r),alias:this.transformNode(e.alias,r)}}transformTable(e,r){return{kind:"TableNode",table:this.transformNode(e.table,r)}}transformFrom(e,r){return{kind:"FromNode",froms:this.transformNodeList(e.froms,r)}}transformReference(e,r){return{kind:"ReferenceNode",column:this.transformNode(e.column,r),table:this.transformNode(e.table,r)}}transformAnd(e,r){return{kind:"AndNode",left:this.transformNode(e.left,r),right:this.transformNode(e.right,r)}}transformOr(e,r){return{kind:"OrNode",left:this.transformNode(e.left,r),right:this.transformNode(e.right,r)}}transformValueList(e,r){return{kind:"ValueListNode",values:this.transformNodeList(e.values,r)}}transformParens(e,r){return{kind:"ParensNode",node:this.transformNode(e.node,r)}}transformJoin(e,r){return{kind:"JoinNode",joinType:e.joinType,table:this.transformNode(e.table,r),on:this.transformNode(e.on,r)}}transformRaw(e,r){return{kind:"RawNode",sqlFragments:(0,W.freeze)([...e.sqlFragments]),parameters:this.transformNodeList(e.parameters,r)}}transformWhere(e,r){return{kind:"WhereNode",where:this.transformNode(e.where,r)}}transformInsertQuery(e,r){return{kind:"InsertQueryNode",into:this.transformNode(e.into,r),columns:this.transformNodeList(e.columns,r),values:this.transformNode(e.values,r),returning:this.transformNode(e.returning,r),onConflict:this.transformNode(e.onConflict,r),onDuplicateKey:this.transformNode(e.onDuplicateKey,r),endModifiers:this.transformNodeList(e.endModifiers,r),with:this.transformNode(e.with,r),orAction:this.transformNode(e.orAction,r),replace:e.replace,explain:this.transformNode(e.explain,r),defaultValues:e.defaultValues,top:this.transformNode(e.top,r),output:this.transformNode(e.output,r)}}transformValues(e,r){return{kind:"ValuesNode",values:this.transformNodeList(e.values,r)}}transformDeleteQuery(e,r){return{kind:"DeleteQueryNode",from:this.transformNode(e.from,r),using:this.transformNode(e.using,r),joins:this.transformNodeList(e.joins,r),where:this.transformNode(e.where,r),returning:this.transformNode(e.returning,r),endModifiers:this.transformNodeList(e.endModifiers,r),with:this.transformNode(e.with,r),orderBy:this.transformNode(e.orderBy,r),limit:this.transformNode(e.limit,r),explain:this.transformNode(e.explain,r),top:this.transformNode(e.top,r),output:this.transformNode(e.output,r)}}transformReturning(e,r){return{kind:"ReturningNode",selections:this.transformNodeList(e.selections,r)}}transformCreateTable(e,r){return{kind:"CreateTableNode",table:this.transformNode(e.table,r),columns:this.transformNodeList(e.columns,r),constraints:this.transformNodeList(e.constraints,r),indexes:this.transformNodeList(e.indexes,r),temporary:e.temporary,ifNotExists:e.ifNotExists,onCommit:e.onCommit,frontModifiers:this.transformNodeList(e.frontModifiers,r),endModifiers:this.transformNodeList(e.endModifiers,r),selectQuery:this.transformNode(e.selectQuery,r)}}transformColumnDefinition(e,r){return{kind:"ColumnDefinitionNode",column:this.transformNode(e.column,r),dataType:this.transformNode(e.dataType,r),references:this.transformNode(e.references,r),primaryKey:e.primaryKey,autoIncrement:e.autoIncrement,unique:e.unique,notNull:e.notNull,unsigned:e.unsigned,defaultTo:this.transformNode(e.defaultTo,r),check:this.transformNode(e.check,r),generated:this.transformNode(e.generated,r),frontModifiers:this.transformNodeList(e.frontModifiers,r),endModifiers:this.transformNodeList(e.endModifiers,r),nullsNotDistinct:e.nullsNotDistinct,identity:e.identity,ifNotExists:e.ifNotExists}}transformAddColumn(e,r){return{kind:"AddColumnNode",column:this.transformNode(e.column,r)}}transformDropTable(e,r){return{kind:"DropTableNode",table:this.transformNode(e.table,r),ifExists:e.ifExists,cascade:e.cascade,temporary:e.temporary}}transformOrderBy(e,r){return{kind:"OrderByNode",items:this.transformNodeList(e.items,r)}}transformOrderByItem(e,r){return{kind:"OrderByItemNode",orderBy:this.transformNode(e.orderBy,r),direction:this.transformNode(e.direction,r),collation:this.transformNode(e.collation,r),nulls:e.nulls}}transformGroupBy(e,r){return{kind:"GroupByNode",items:this.transformNodeList(e.items,r)}}transformGroupByItem(e,r){return{kind:"GroupByItemNode",groupBy:this.transformNode(e.groupBy,r)}}transformUpdateQuery(e,r){return{kind:"UpdateQueryNode",table:this.transformNode(e.table,r),from:this.transformNode(e.from,r),joins:this.transformNodeList(e.joins,r),where:this.transformNode(e.where,r),updates:this.transformNodeList(e.updates,r),returning:this.transformNode(e.returning,r),endModifiers:this.transformNodeList(e.endModifiers,r),with:this.transformNode(e.with,r),explain:this.transformNode(e.explain,r),limit:this.transformNode(e.limit,r),top:this.transformNode(e.top,r),output:this.transformNode(e.output,r),orderBy:this.transformNode(e.orderBy,r)}}transformColumnUpdate(e,r){return{kind:"ColumnUpdateNode",column:this.transformNode(e.column,r),value:this.transformNode(e.value,r)}}transformLimit(e,r){return{kind:"LimitNode",limit:this.transformNode(e.limit,r)}}transformOffset(e,r){return{kind:"OffsetNode",offset:this.transformNode(e.offset,r)}}transformOnConflict(e,r){return{kind:"OnConflictNode",columns:this.transformNodeList(e.columns,r),constraint:this.transformNode(e.constraint,r),indexExpression:this.transformNode(e.indexExpression,r),indexWhere:this.transformNode(e.indexWhere,r),updates:this.transformNodeList(e.updates,r),updateWhere:this.transformNode(e.updateWhere,r),doNothing:e.doNothing}}transformOnDuplicateKey(e,r){return{kind:"OnDuplicateKeyNode",updates:this.transformNodeList(e.updates,r)}}transformCreateIndex(e,r){return{kind:"CreateIndexNode",name:this.transformNode(e.name,r),table:this.transformNode(e.table,r),columns:this.transformNodeList(e.columns,r),unique:e.unique,using:this.transformNode(e.using,r),ifNotExists:e.ifNotExists,where:this.transformNode(e.where,r),nullsNotDistinct:e.nullsNotDistinct}}transformList(e,r){return{kind:"ListNode",items:this.transformNodeList(e.items,r)}}transformDropIndex(e,r){return{kind:"DropIndexNode",name:this.transformNode(e.name,r),table:this.transformNode(e.table,r),ifExists:e.ifExists,cascade:e.cascade}}transformPrimaryKeyConstraint(e,r){return{kind:"PrimaryKeyConstraintNode",columns:this.transformNodeList(e.columns,r),name:this.transformNode(e.name,r),deferrable:e.deferrable,initiallyDeferred:e.initiallyDeferred}}transformUniqueConstraint(e,r){return{kind:"UniqueConstraintNode",columns:this.transformNodeList(e.columns,r),name:this.transformNode(e.name,r),nullsNotDistinct:e.nullsNotDistinct,deferrable:e.deferrable,initiallyDeferred:e.initiallyDeferred}}transformForeignKeyConstraint(e,r){return{kind:"ForeignKeyConstraintNode",columns:this.transformNodeList(e.columns,r),references:this.transformNode(e.references,r),name:this.transformNode(e.name,r),onDelete:e.onDelete,onUpdate:e.onUpdate,deferrable:e.deferrable,initiallyDeferred:e.initiallyDeferred}}transformSetOperation(e,r){return{kind:"SetOperationNode",operator:e.operator,expression:this.transformNode(e.expression,r),all:e.all}}transformReferences(e,r){return{kind:"ReferencesNode",table:this.transformNode(e.table,r),columns:this.transformNodeList(e.columns,r),onDelete:e.onDelete,onUpdate:e.onUpdate}}transformCheckConstraint(e,r){return{kind:"CheckConstraintNode",expression:this.transformNode(e.expression,r),name:this.transformNode(e.name,r)}}transformWith(e,r){return{kind:"WithNode",expressions:this.transformNodeList(e.expressions,r),recursive:e.recursive}}transformCommonTableExpression(e,r){return{kind:"CommonTableExpressionNode",name:this.transformNode(e.name,r),materialized:e.materialized,expression:this.transformNode(e.expression,r)}}transformCommonTableExpressionName(e,r){return{kind:"CommonTableExpressionNameNode",table:this.transformNode(e.table,r),columns:this.transformNodeList(e.columns,r)}}transformHaving(e,r){return{kind:"HavingNode",having:this.transformNode(e.having,r)}}transformCreateSchema(e,r){return{kind:"CreateSchemaNode",schema:this.transformNode(e.schema,r),ifNotExists:e.ifNotExists}}transformDropSchema(e,r){return{kind:"DropSchemaNode",schema:this.transformNode(e.schema,r),ifExists:e.ifExists,cascade:e.cascade}}transformAlterTable(e,r){return{kind:"AlterTableNode",table:this.transformNode(e.table,r),renameTo:this.transformNode(e.renameTo,r),setSchema:this.transformNode(e.setSchema,r),columnAlterations:this.transformNodeList(e.columnAlterations,r),addConstraint:this.transformNode(e.addConstraint,r),dropConstraint:this.transformNode(e.dropConstraint,r),renameConstraint:this.transformNode(e.renameConstraint,r),addIndex:this.transformNode(e.addIndex,r),dropIndex:this.transformNode(e.dropIndex,r)}}transformDropColumn(e,r){return{kind:"DropColumnNode",column:this.transformNode(e.column,r),ifExists:e.ifExists}}transformRenameColumn(e,r){return{kind:"RenameColumnNode",column:this.transformNode(e.column,r),renameTo:this.transformNode(e.renameTo,r)}}transformAlterColumn(e,r){return{kind:"AlterColumnNode",column:this.transformNode(e.column,r),dataType:this.transformNode(e.dataType,r),dataTypeExpression:this.transformNode(e.dataTypeExpression,r),setDefault:this.transformNode(e.setDefault,r),dropDefault:e.dropDefault,setNotNull:e.setNotNull,dropNotNull:e.dropNotNull}}transformModifyColumn(e,r){return{kind:"ModifyColumnNode",column:this.transformNode(e.column,r)}}transformAddConstraint(e,r){return{kind:"AddConstraintNode",constraint:this.transformNode(e.constraint,r)}}transformDropConstraint(e,r){return{kind:"DropConstraintNode",constraintName:this.transformNode(e.constraintName,r),ifExists:e.ifExists,modifier:e.modifier}}transformRenameConstraint(e,r){return{kind:"RenameConstraintNode",oldName:this.transformNode(e.oldName,r),newName:this.transformNode(e.newName,r)}}transformCreateView(e,r){return{kind:"CreateViewNode",name:this.transformNode(e.name,r),temporary:e.temporary,orReplace:e.orReplace,ifNotExists:e.ifNotExists,materialized:e.materialized,columns:this.transformNodeList(e.columns,r),as:this.transformNode(e.as,r)}}transformRefreshMaterializedView(e,r){return{kind:"RefreshMaterializedViewNode",name:this.transformNode(e.name,r),concurrently:e.concurrently,withNoData:e.withNoData}}transformDropView(e,r){return{kind:"DropViewNode",name:this.transformNode(e.name,r),ifExists:e.ifExists,materialized:e.materialized,cascade:e.cascade}}transformGenerated(e,r){return{kind:"GeneratedNode",byDefault:e.byDefault,always:e.always,identity:e.identity,stored:e.stored,expression:this.transformNode(e.expression,r)}}transformDefaultValue(e,r){return{kind:"DefaultValueNode",defaultValue:this.transformNode(e.defaultValue,r)}}transformOn(e,r){return{kind:"OnNode",on:this.transformNode(e.on,r)}}transformSelectModifier(e,r){return{kind:"SelectModifierNode",modifier:e.modifier,rawModifier:this.transformNode(e.rawModifier,r),of:this.transformNodeList(e.of,r)}}transformCreateType(e,r){return{kind:"CreateTypeNode",name:this.transformNode(e.name,r),enum:this.transformNode(e.enum,r)}}transformDropType(e,r){return{kind:"DropTypeNode",name:this.transformNode(e.name,r),additionalNames:this.transformNodeList(e.additionalNames,r),cascade:e.cascade,ifExists:e.ifExists}}transformExplain(e,r){return{kind:"ExplainNode",format:e.format,options:this.transformNode(e.options,r)}}transformSchemableIdentifier(e,r){return{kind:"SchemableIdentifierNode",schema:this.transformNode(e.schema,r),identifier:this.transformNode(e.identifier,r)}}transformAggregateFunction(e,r){return{kind:"AggregateFunctionNode",func:e.func,aggregated:this.transformNodeList(e.aggregated,r),distinct:e.distinct,orderBy:this.transformNode(e.orderBy,r),withinGroup:this.transformNode(e.withinGroup,r),filter:this.transformNode(e.filter,r),over:this.transformNode(e.over,r)}}transformOver(e,r){return{kind:"OverNode",orderBy:this.transformNode(e.orderBy,r),partitionBy:this.transformNode(e.partitionBy,r)}}transformPartitionBy(e,r){return{kind:"PartitionByNode",items:this.transformNodeList(e.items,r)}}transformPartitionByItem(e,r){return{kind:"PartitionByItemNode",partitionBy:this.transformNode(e.partitionBy,r)}}transformBinaryOperation(e,r){return{kind:"BinaryOperationNode",leftOperand:this.transformNode(e.leftOperand,r),operator:this.transformNode(e.operator,r),rightOperand:this.transformNode(e.rightOperand,r)}}transformUnaryOperation(e,r){return{kind:"UnaryOperationNode",operator:this.transformNode(e.operator,r),operand:this.transformNode(e.operand,r)}}transformUsing(e,r){return{kind:"UsingNode",tables:this.transformNodeList(e.tables,r)}}transformFunction(e,r){return{kind:"FunctionNode",func:e.func,arguments:this.transformNodeList(e.arguments,r)}}transformCase(e,r){return{kind:"CaseNode",value:this.transformNode(e.value,r),when:this.transformNodeList(e.when,r),else:this.transformNode(e.else,r),isStatement:e.isStatement}}transformWhen(e,r){return{kind:"WhenNode",condition:this.transformNode(e.condition,r),result:this.transformNode(e.result,r)}}transformJSONReference(e,r){return{kind:"JSONReferenceNode",reference:this.transformNode(e.reference,r),traversal:this.transformNode(e.traversal,r)}}transformJSONPath(e,r){return{kind:"JSONPathNode",inOperator:this.transformNode(e.inOperator,r),pathLegs:this.transformNodeList(e.pathLegs,r)}}transformJSONPathLeg(e,r){return{kind:"JSONPathLegNode",type:e.type,value:e.value}}transformJSONOperatorChain(e,r){return{kind:"JSONOperatorChainNode",operator:this.transformNode(e.operator,r),values:this.transformNodeList(e.values,r)}}transformTuple(e,r){return{kind:"TupleNode",values:this.transformNodeList(e.values,r)}}transformMergeQuery(e,r){return{kind:"MergeQueryNode",into:this.transformNode(e.into,r),using:this.transformNode(e.using,r),whens:this.transformNodeList(e.whens,r),with:this.transformNode(e.with,r),top:this.transformNode(e.top,r),endModifiers:this.transformNodeList(e.endModifiers,r),output:this.transformNode(e.output,r),returning:this.transformNode(e.returning,r)}}transformMatched(e,r){return{kind:"MatchedNode",not:e.not,bySource:e.bySource}}transformAddIndex(e,r){return{kind:"AddIndexNode",name:this.transformNode(e.name,r),columns:this.transformNodeList(e.columns,r),unique:e.unique,using:this.transformNode(e.using,r),ifNotExists:e.ifNotExists}}transformCast(e,r){return{kind:"CastNode",expression:this.transformNode(e.expression,r),dataType:this.transformNode(e.dataType,r)}}transformFetch(e,r){return{kind:"FetchNode",rowCount:this.transformNode(e.rowCount,r),modifier:e.modifier}}transformTop(e,r){return{kind:"TopNode",expression:e.expression,modifiers:e.modifiers}}transformOutput(e,r){return{kind:"OutputNode",selections:this.transformNodeList(e.selections,r)}}transformAlterType(e,r){return{kind:"AlterTypeNode",name:this.transformNode(e.name,r),addValue:this.transformNode(e.addValue,r),renameTo:this.transformNode(e.renameTo,r),renameValue:this.transformNode(e.renameValue,r),setSchema:this.transformNode(e.setSchema,r)}}transformAddValue(e,r){return{kind:"AddValueNode",value:this.transformNode(e.value,r),ifNotExists:e.ifNotExists,isBefore:e.isBefore,neighborValue:this.transformNode(e.neighborValue,r)}}transformRenameValue(e,r){return{kind:"RenameValueNode",oldValue:this.transformNode(e.oldValue,r),newValue:this.transformNode(e.newValue,r)}}transformDataType(e,r){return e}transformSelectAll(e,r){return e}transformIdentifier(e,r){return e}transformValue(e,r){return e}transformPrimitiveValueList(e,r){return e}transformOperator(e,r){return e}transformDefaultInsertValue(e,r){return e}transformOrAction(e,r){return e}transformCollate(e,r){return e}}e.s(["OperationNodeTransformer",0,b],18264);let q={AlterTableNode:!0,AlterTypeNode:!0,CreateIndexNode:!0,CreateSchemaNode:!0,CreateTableNode:!0,CreateTypeNode:!0,CreateViewNode:!0,DeleteQueryNode:!0,DropIndexNode:!0,DropSchemaNode:!0,DropTableNode:!0,DropTypeNode:!0,RefreshMaterializedViewNode:!0,DropViewNode:!0,InsertQueryNode:!0,RawNode:!0,SelectQueryNode:!0,UpdateQueryNode:!0,MergeQueryNode:!0};var z=e.i(15196),S=e.i(39328),k=e.i(76413);let E=(0,W.freeze)({json_agg:!0,to_json:!0});class I extends b{#n;#s=new Set;#a=new Set;constructor(e){super(),this.#n=e}transformNodeImpl(e,r){if(!((0,W.isObject)(e)&&(0,W.isString)(e.kind))||!0!==q[e.kind])return super.transformNodeImpl(e,r);let t=this.#d(e);for(let e of t)this.#a.add(e);let o=this.#u(e);for(let e of o)this.#s.add(e);let i=super.transformNodeImpl(e,r);for(let e of o)this.#s.delete(e);for(let e of t)this.#a.delete(e);return i}transformSchemableIdentifier(e,r){let t=super.transformSchemableIdentifier(e,r);return t.schema||!this.#s.has(e.identifier.name)?t:{...t,schema:O.IdentifierNode.create(this.#n)}}transformReferences(e,r){let t=super.transformReferences(e,r);return t.table.table.schema?t:{...t,table:S.TableNode.createWithSchema(this.#n,t.table.table.identifier.name)}}transformAggregateFunction(e,r){return{...super.transformAggregateFunction({...e,aggregated:[]},r),aggregated:this.#p(e,r,"aggregated")}}transformFunction(e,r){return{...super.transformFunction({...e,arguments:[]},r),arguments:this.#p(e,r,"arguments")}}transformSelectModifier(e,r){return{...super.transformSelectModifier({...e,of:void 0},r),of:e.of?.map(e=>S.TableNode.is(e)&&!e.table.schema?{...e,table:this.transformIdentifier(e.table.identifier,r)}:this.transformNode(e,r))}}#p(e,r,t){return E[e.func]?e[t].map(e=>!S.TableNode.is(e)||e.table.schema?this.transformNode(e,r):{...e,table:this.transformIdentifier(e.table.identifier,r)}):this.transformNodeList(e[t],r)}#u(e){let r=new Set;if("name"in e&&e.name&&z.SchemableIdentifierNode.is(e.name)&&this.#l(e.name,r),"from"in e&&e.from)for(let t of e.from.froms)this.#h(t,r);if("into"in e&&e.into&&this.#h(e.into,r),"table"in e&&e.table&&this.#h(e.table,r),"joins"in e&&e.joins)for(let t of e.joins)this.#h(t.table,r);return"using"in e&&e.using&&(i.JoinNode.is(e.using)?this.#h(e.using.table,r):this.#h(e.using,r)),r}#d(e){let r=new Set;return"with"in e&&e.with&&this.#c(e.with,r),r}#h(e,r){if(S.TableNode.is(e))return this.#l(e.table,r);if(t.AliasNode.is(e)&&S.TableNode.is(e.node))return this.#l(e.node.table,r);if(x.ListNode.is(e)){for(let t of e.items)this.#h(t,r);return}if(k.UsingNode.is(e)){for(let t of e.tables)this.#h(t,r);return}}#l(e,r){let t=e.identifier.name;this.#s.has(t)||this.#a.has(t)||r.add(t)}#c(e,r){for(let t of e.expressions){let e=t.name.table.table.identifier.name;this.#a.has(e)||r.add(e)}}}class v{#f;constructor(e){this.#f=new I(e)}transformQuery(e){return this.#f.transformNode(e.node,e.queryId)}async transformResult(e){return e.result}}e.s(["WithSchemaPlugin",0,v],62926);var C=e.i(31461),B=e.i(19285),Q=e.i(22350),T=e.i(89737);let R=(0,W.freeze)({is:e=>"MatchedNode"===e.kind,create:(e,r=!1)=>(0,W.freeze)({kind:"MatchedNode",not:e,bySource:r})});var A=e.i(52369),L=e.i(3731),F=e.i(54860);function V(e,r,t){return F.WhenNode.create((0,n.parseFilterList)([R.create(!e.isMatched,e.bySource),...r&&r.length>0?[3===r.length&&t?(0,n.parseReferentialBinaryOperation)(r[0],r[1],r[2]):(0,n.parseValueBinaryOperationOrExpression)(r)]:[]],"and",!1))}function M(e){return(0,W.isString)(e)?L.RawNode.create([e],[]):(0,A.isOperationNodeSource)(e)?e.toOperationNode():e}var D=e.i(8882);class J{#N;#m;#y;constructor(){this.#N=new Promise((e,r)=>{this.#y=r,this.#m=e})}get promise(){return this.#N}resolve=e=>{this.#m?.(e),this.#m=this.#y=void 0};reject=e=>{this.#y?.(e),this.#y=this.#m=void 0}}async function P(e,r){let t=new J,o=new J;return e.provideConnection(async e=>(t.resolve(e),await o.promise),r).catch(e=>t.reject(e)),(0,W.freeze)({connection:await t.promise,release:o.resolve})}function U(e="ignore query",r,t){if("ignore query"!==e){if("cancel query"===e){let t=r.cancelQuery;return t||j(e,r.killSession?"kill session":void 0),t.bind(r)}if("kill session"===e){let t=r.killSession;return t||j(e,r.cancelQuery?"cancel query":void 0),t.bind(r)}throw t(),Error(`Unexpected \`inflightQueryAbortStrategy\`: "${e}"`)}}function j(e,r){throw Error(`This dialect doesn't support \`inflightQueryAbortStrategy\` "${e}". Use "ignore query"${r?` or "${r}"`:""} instead.`)}function $(e,r,t){e?.aborted&&(t?.(),G(e.reason,r))}function G(e,r){var t,o;throw t=e,o=r,null===t||"object"!=typeof t||Object.isFrozen(t)||Object.defineProperty(t,"__kysely_timing__",{configurable:!0,enumerable:!1,value:o,writable:!1}),e}e.s(["Deferred",0,J],55505),e.s(["provideControlledConnection",0,P],742);let K={};async function _(e,r,t,o){if(!r)return e;$(r,`before ${t}`,o);let{promise:i,resolve:n}=new J,s=()=>n(K);r.addEventListener("abort",s);try{$(r,`before ${t}`,o);let n=await Promise.race([e,i]);if(n!==K)return n;o?.(),G(r.reason,`during ${t}`)}finally{r.removeEventListener("abort",s),n(K)}}function H(e){return r=>console.error(`\`${e}\` failed in the background after abortion: ${(0,W.getMessage)(r)}`)}e.s(["ABORTED",0,K,"assertNotAborted",0,$,"getInflightQueryAbortHandler",0,U,"printBackgroundFail",0,H,"throwReasonWithTiming",0,G,"waitOrAbort",0,_],47007);let X=(0,W.freeze)([]);class Y{#w;constructor(e=X){this.#w=e}get plugins(){return this.#w}transformQuery(e,r){for(let t of this.#w){let o=t.transformQuery({node:e,queryId:r});if(o.kind===e.kind)e=o;else throw Error(`KyselyPlugin.transformQuery must return a node of the same kind that was given to it. The plugin was given a ${e.kind} but it returned a ${o.kind}`)}return e}async executeQuery(e,r){let{inflightQueryAbortStrategy:t="ignore query",signal:o}=r||{};if(!o){let t=await this.provideConnection(async r=>await r.executeQuery(e),r);return await this.#g(t,e.queryId)}$(o,"before query execution"),r=(0,W.freeze)({signal:o});let{connection:i,release:n}=await P(this,r),s=this.provideConnection.bind(this),{promise:a,resolve:d}=new J,u=()=>d(K);o.addEventListener("abort",u,{once:!0});try{$(o,"before query execution",n);let d=U(t,i,n);if(d&&i.collectSessionInfo){$(o,"before query execution",n);let e=i.collectSessionInfo();await Promise.race([a,e]).catch(e=>{throw n(),e})===K&&(e.catch(H("collectSessionInfo")).finally(n),G(o.reason,"before query execution"))}let u=i.executeQuery(e,r),p=await Promise.race([a,u]).catch(e=>{throw n(),e});p===K?(Promise.allSettled([u.catch(H("query")),d?.(s).catch(H("inflightQueryAbortHandler"))]).finally(n),G(o.reason,"during query execution")):n();let l=this.#g(p,e.queryId,r),h=await Promise.race([a,l]);return h===K&&(l.catch(H("plugins.transformResult")),G(o.reason,"during result transformation")),h}finally{d(K),o.removeEventListener("abort",u)}}async *stream(e,r,t){let o,i,{signal:n}=t||{};if(!n){let{connection:o,release:i}=await P(this);try{for await(let i of o.streamQuery(e,r))yield await this.#g(i,e.queryId,t)}finally{i()}return}t=(0,W.freeze)({signal:n}),$(n,"before connection acquisition");let{connection:s,release:a}=await P(this,t),{promise:d,resolve:u}=new J,p=()=>u(K);n.addEventListener("abort",p,{once:!0}),$(n,"before query streaming",a);let{queryId:l}=e;try{for(o=s.streamQuery(e,r,t);;){$(n,"during query streaming");let e=o.next(),r=await Promise.race([d,e]);if(r===K&&(i=e.catch(H("iterator.next")),G(n.reason,"during query streaming")),r.done)break;let s=this.#g(r.value,l,t),a=await Promise.race([d,s]);a===K&&(i=s.catch(H("plugins.transformResult")),G(n.reason,"during result transformation")),yield a}}finally{u(K),n.removeEventListener("abort",p);let e=(o?.return?.()||Promise.resolve()).finally(()=>i).finally(a);i||await e}}async #g(e,r,t){let{signal:o}=t||{};for(let t of this.#w)e=await t.transformResult((0,W.freeze)({queryId:r,result:e,signal:o}));return e}}e.s(["QueryExecutorBase",0,Y],95776);class Z extends Y{get adapter(){throw Error("this query cannot be compiled to SQL")}compileQuery(){throw Error("this query cannot be compiled to SQL")}provideConnection(){throw Error("this query cannot be executed")}withConnectionProvider(){throw Error("this query cannot have a connection provider")}withPlugin(e){return new Z([...this.plugins,e])}withPlugins(e){return new Z([...this.plugins,...e])}withPluginAtFront(e){return new Z([e,...this.plugins])}withoutPlugins(){return new Z([])}}let ee=new Z;e.s(["NOOP_QUERY_EXECUTOR",0,ee],97078);class er{numChangedRows;constructor(e){this.numChangedRows=e}}var et=e.i(98149);class eo{#r;constructor(e){this.#r=(0,W.freeze)(e)}modifyEnd(e){return new eo({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,e.toOperationNode())})}top(e,r){return new eo({...this.#r,queryNode:Q.QueryNode.cloneWithTop(this.#r.queryNode,(0,D.parseTop)(e,r))})}using(...e){return new ei({...this.#r,queryNode:B.MergeQueryNode.cloneWithUsing(this.#r.queryNode,el("Using",e))})}returning(e){return new eo({...this.#r,queryNode:Q.QueryNode.cloneWithReturning(this.#r.queryNode,(0,C.parseSelectArg)(e))})}returningAll(e){return new eo({...this.#r,queryNode:Q.QueryNode.cloneWithReturning(this.#r.queryNode,(0,C.parseSelectAll)(e))})}output(e){return new eo({...this.#r,queryNode:Q.QueryNode.cloneWithOutput(this.#r.queryNode,(0,C.parseSelectArg)(e))})}outputAll(e){return new eo({...this.#r,queryNode:Q.QueryNode.cloneWithOutput(this.#r.queryNode,(0,C.parseSelectAll)(e))})}}class ei{#r;constructor(e){this.#r=(0,W.freeze)(e)}modifyEnd(e){return new ei({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,e.toOperationNode())})}top(e,r){return new ei({...this.#r,queryNode:Q.QueryNode.cloneWithTop(this.#r.queryNode,(0,D.parseTop)(e,r))})}whenMatched(){return this.#O([])}whenMatchedAnd(...e){return this.#O(e)}whenMatchedAndRef(e,r,t){return this.#O([e,r,t],!0)}#O(e,r){return new en({...this.#r,queryNode:B.MergeQueryNode.cloneWithWhen(this.#r.queryNode,V({isMatched:!0},e,r))})}whenNotMatched(){return this.#x([])}whenNotMatchedAnd(...e){return this.#x(e)}whenNotMatchedAndRef(e,r,t){return this.#x([e,r,t],!0)}whenNotMatchedBySource(){return this.#x([],!1,!0)}whenNotMatchedBySourceAnd(...e){return this.#x(e,!1,!0)}whenNotMatchedBySourceAndRef(e,r,t){return this.#x([e,r,t],!0,!0)}returning(e){return new ei({...this.#r,queryNode:Q.QueryNode.cloneWithReturning(this.#r.queryNode,(0,C.parseSelectArg)(e))})}returningAll(e){return new ei({...this.#r,queryNode:Q.QueryNode.cloneWithReturning(this.#r.queryNode,(0,C.parseSelectAll)(e))})}output(e){return new ei({...this.#r,queryNode:Q.QueryNode.cloneWithOutput(this.#r.queryNode,(0,C.parseSelectArg)(e))})}outputAll(e){return new ei({...this.#r,queryNode:Q.QueryNode.cloneWithOutput(this.#r.queryNode,(0,C.parseSelectAll)(e))})}#x(e,r=!1,t=!1){let o={...this.#r,queryNode:B.MergeQueryNode.cloneWithWhen(this.#r.queryNode,V({isMatched:!1,bySource:t},e,r))};return new(t?en:es)(o)}$call(e){return e(this)}$if(e,r){return e?r(this):new ei({...this.#r})}toOperationNode(){return this.#r.executor.transformQuery(this.#r.queryNode,this.#r.queryId)}compile(){return this.#r.executor.compileQuery(this.toOperationNode(),this.#r.queryId)}async execute(e){let r=this.compile(),t=await this.#r.executor.executeQuery(r,e),{adapter:o}=this.#r.executor,i=r.query;return i.returning&&o.supportsReturning||i.output&&o.supportsOutput?t.rows:[new er(t.numAffectedRows)]}async executeTakeFirst(e){let[r]=await this.execute(e);return r}async executeTakeFirstOrThrow(e){"function"==typeof e&&(e={errorConstructor:e});let r=await this.executeTakeFirst(e);if(void 0===r){let r=e?.errorConstructor??et.NoResultError;throw(0,et.isNoResultErrorConstructor)(r)?new r(this.toOperationNode()):r(this.toOperationNode())}return r}}class en{#r;constructor(e){this.#r=(0,W.freeze)(e)}thenDelete(){return new ei({...this.#r,queryNode:B.MergeQueryNode.cloneWithThen(this.#r.queryNode,M("delete"))})}thenDoNothing(){return new ei({...this.#r,queryNode:B.MergeQueryNode.cloneWithThen(this.#r.queryNode,M("do nothing"))})}thenUpdate(e){return new ei({...this.#r,queryNode:B.MergeQueryNode.cloneWithThen(this.#r.queryNode,M(e(new l.UpdateQueryBuilder({queryId:this.#r.queryId,executor:ee,queryNode:N.UpdateQueryNode.createWithoutTable()}))))})}thenUpdateSet(...e){return this.thenUpdate(r=>r.set(...e))}}class es{#r;constructor(e){this.#r=(0,W.freeze)(e)}thenDoNothing(){return new ei({...this.#r,queryNode:B.MergeQueryNode.cloneWithThen(this.#r.queryNode,M("do nothing"))})}thenInsertValues(e){let[r,t]=(0,T.parseInsertExpression)(e);return new ei({...this.#r,queryNode:B.MergeQueryNode.cloneWithThen(this.#r.queryNode,M(c.InsertQueryNode.cloneWith(c.InsertQueryNode.createWithoutInto(),{columns:r,values:t})))})}}class ea{#r;constructor(e){this.#r=(0,W.freeze)(e)}selectFrom(e){return eB({queryId:(0,g.createQueryId)(),executor:this.#r.executor,queryNode:f.SelectQueryNode.createFrom((0,m.parseTableExpressionOrList)(e),this.#r.withNode)})}selectNoFrom(e){return eB({queryId:(0,g.createQueryId)(),executor:this.#r.executor,queryNode:f.SelectQueryNode.cloneWithSelections(f.SelectQueryNode.create(this.#r.withNode),(0,C.parseSelectArg)(e))})}insertInto(e){return new u.InsertQueryBuilder({queryId:(0,g.createQueryId)(),executor:this.#r.executor,queryNode:c.InsertQueryNode.create((0,m.parseTable)(e),this.#r.withNode)})}replaceInto(e){return new u.InsertQueryBuilder({queryId:(0,g.createQueryId)(),executor:this.#r.executor,queryNode:c.InsertQueryNode.create((0,m.parseTable)(e),this.#r.withNode,!0)})}deleteFrom(e){return new p.DeleteQueryBuilder({queryId:(0,g.createQueryId)(),executor:this.#r.executor,queryNode:h.DeleteQueryNode.create((0,m.parseTableExpressionOrList)(e),this.#r.withNode)})}updateTable(e){return new l.UpdateQueryBuilder({queryId:(0,g.createQueryId)(),executor:this.#r.executor,queryNode:N.UpdateQueryNode.create((0,m.parseTableExpressionOrList)(e),this.#r.withNode)})}mergeInto(e){return new eo({queryId:(0,g.createQueryId)(),executor:this.#r.executor,queryNode:B.MergeQueryNode.create((0,m.parseAliasedTable)(e),this.#r.withNode)})}with(e,r){let t=(0,y.parseCommonTableExpression)(e,r);return new ea({...this.#r,withNode:this.#r.withNode?w.WithNode.cloneWithExpression(this.#r.withNode,t):w.WithNode.create(t)})}withRecursive(e,r){let t=(0,y.parseCommonTableExpression)(e,r);return new ea({...this.#r,withNode:this.#r.withNode?w.WithNode.cloneWithExpression(this.#r.withNode,t):w.WithNode.create(t,{recursive:!0})})}withPlugin(e){return new ea({...this.#r,executor:this.#r.executor.withPlugin(e)})}withoutPlugins(){return new ea({...this.#r,executor:this.#r.executor.withoutPlugins()})}withSchema(e){return new ea({...this.#r,executor:this.#r.executor.withPluginAtFront(new v(e))})}}function ed(){return new ea({executor:ee})}function eu(e,r){return new a.JoinBuilder({joinNode:i.JoinNode.create(e,(0,m.parseTableExpression)(r))})}function ep(){return new d.OverBuilder({overNode:s.OverNode.create()})}function el(e,r){var t,o,s,a,d,u,p,l;if(3===r.length){return t=e,o=r[0],s=r[1],a=r[2],i.JoinNode.createWithOn(t,(0,m.parseTableExpression)(o),(0,n.parseReferentialBinaryOperation)(s,"=",a))}if(2===r.length){return d=e,u=r[0],(0,r[1])(eu(d,u)).toOperationNode()}if(1===r.length){return p=e,l=r[0],i.JoinNode.create(p,(0,m.parseTableExpression)(l))}throw Error("not implemented")}var eh=e.i(19834),ec=e.i(66511),ef=e.i(992);let eN=(0,W.freeze)({is:e=>"OffsetNode"===e.kind,create:e=>(0,W.freeze)({kind:"OffsetNode",offset:e})}),em=(0,W.freeze)({is:e=>"GroupByItemNode"===e.kind,create:e=>(0,W.freeze)({kind:"GroupByItemNode",groupBy:e})});var ey=e.i(71731),ew=e.i(87981),eg=e.i(85381);function eO(e,r,t){return(0,W.isFunction)(r)&&(r=r((0,ey.createExpressionBuilder)())),(0,W.isReadonlyArray)(r)||(r=[r]),r.map(r=>ew.SetOperationNode.create(e,(0,eg.parseExpression)(r),t))}e.s(["ExpressionWrapper",()=>eq],85569);var ex=e.i(39001),eW=e.i(3392),eb=e.i(56802);class eq{#W;constructor(e){this.#W=e}get expressionType(){}as(e){return new ez(this,e)}or(...e){return new eS(eW.OrNode.create(this.#W,(0,n.parseValueBinaryOperationOrExpression)(e)))}and(...e){return new ek(ex.AndNode.create(this.#W,(0,n.parseValueBinaryOperationOrExpression)(e)))}$castTo(){return new eq(this.#W)}$notNull(){return new eq(this.#W)}toOperationNode(){return this.#W}}class ez{#b;#q;constructor(e,r){this.#b=e,this.#q=r}get expression(){return this.#b}get alias(){return this.#q}toOperationNode(){return t.AliasNode.create(this.#b.toOperationNode(),(0,A.isOperationNodeSource)(this.#q)?this.#q.toOperationNode():O.IdentifierNode.create(this.#q))}}class eS{#W;constructor(e){this.#W=e}get expressionType(){}as(e){return new ez(this,e)}or(...e){return new eS(eW.OrNode.create(this.#W,(0,n.parseValueBinaryOperationOrExpression)(e)))}$castTo(){return new eS(this.#W)}toOperationNode(){return eb.ParensNode.create(this.#W)}}class ek{#W;constructor(e){this.#W=e}get expressionType(){}as(e){return new ez(this,e)}and(...e){return new ek(ex.AndNode.create(this.#W,(0,n.parseValueBinaryOperationOrExpression)(e)))}$castTo(){return new ek(this.#W)}toOperationNode(){return eb.ParensNode.create(this.#W)}}var eE=e.i(43097),eI=e.i(84480);let ev=(0,W.freeze)({is:e=>"FetchNode"===e.kind,create:(e,r)=>({kind:"FetchNode",rowCount:eI.ValueNode.create(e),modifier:r})});class eC{#r;constructor(e){this.#r=(0,W.freeze)(e)}get expressionType(){}get isSelectQueryBuilder(){return!0}where(...e){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithWhere(this.#r.queryNode,(0,n.parseValueBinaryOperationOrExpression)(e))})}whereRef(e,t,o){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithWhere(this.#r.queryNode,(0,n.parseReferentialBinaryOperation)(e,t,o))})}having(...e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithHaving(this.#r.queryNode,(0,n.parseValueBinaryOperationOrExpression)(e))})}havingRef(e,t,o){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithHaving(this.#r.queryNode,(0,n.parseReferentialBinaryOperation)(e,t,o))})}select(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithSelections(this.#r.queryNode,(0,C.parseSelectArg)(e))})}distinctOn(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithDistinctOn(this.#r.queryNode,(0,eh.parseReferenceExpressionOrList)(e))})}modifyFront(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithFrontModifier(this.#r.queryNode,o.SelectModifierNode.createWithExpression(e.toOperationNode()))})}modifyEnd(e){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,o.SelectModifierNode.createWithExpression(e.toOperationNode()))})}distinct(){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithFrontModifier(this.#r.queryNode,o.SelectModifierNode.create("Distinct"))})}forUpdate(e){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,o.SelectModifierNode.create("ForUpdate",e?(0,W.asArray)(e).map(m.parseTable):void 0))})}forShare(e){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,o.SelectModifierNode.create("ForShare",e?(0,W.asArray)(e).map(m.parseTable):void 0))})}forKeyShare(e){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,o.SelectModifierNode.create("ForKeyShare",e?(0,W.asArray)(e).map(m.parseTable):void 0))})}forNoKeyUpdate(e){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,o.SelectModifierNode.create("ForNoKeyUpdate",e?(0,W.asArray)(e).map(m.parseTable):void 0))})}skipLocked(){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,o.SelectModifierNode.create("SkipLocked"))})}noWait(){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithEndModifier(this.#r.queryNode,o.SelectModifierNode.create("NoWait"))})}selectAll(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithSelections(this.#r.queryNode,(0,C.parseSelectAll)(e))})}innerJoin(...e){return this.#t("InnerJoin",e)}leftJoin(...e){return this.#t("LeftJoin",e)}rightJoin(...e){return this.#t("RightJoin",e)}fullJoin(...e){return this.#t("FullJoin",e)}crossJoin(...e){return this.#t("CrossJoin",e)}innerJoinLateral(...e){return this.#t("LateralInnerJoin",e)}leftJoinLateral(...e){return this.#t("LateralLeftJoin",e)}crossJoinLateral(...e){return this.#t("LateralCrossJoin",e)}crossApply(...e){return this.#t("CrossApply",e)}outerApply(...e){return this.#t("OuterApply",e)}#t(e,t){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithJoin(this.#r.queryNode,el(e,t))})}orderBy(...e){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithOrderByItems(this.#r.queryNode,(0,ec.parseOrderBy)(e))})}groupBy(e){var t;return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithGroupByItems(this.#r.queryNode,(t=e,t=(0,W.isFunction)(t)?t((0,ey.expressionBuilder)()):t,(0,eh.parseReferenceExpressionOrList)(t).map(em.create)))})}limit(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithLimit(this.#r.queryNode,ef.LimitNode.create((0,eE.parseValueExpression)(e)))})}offset(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithOffset(this.#r.queryNode,eN.create((0,eE.parseValueExpression)(e)))})}fetch(e,t="only"){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithFetch(this.#r.queryNode,function(e,r){var t;if(!(0,W.isNumber)(e)&&!(0,W.isBigInt)(e))throw Error(`Invalid fetch row count: ${e}`);if("only"!==(t=r)&&"with ties"!==t)throw Error(`Invalid fetch modifier: ${r}`);return ev.create(e,r)}(e,t))})}top(e,t){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithTop(this.#r.queryNode,(0,D.parseTop)(e,t))})}union(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithSetOperations(this.#r.queryNode,eO("union",e,!1))})}unionAll(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithSetOperations(this.#r.queryNode,eO("union",e,!0))})}intersect(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithSetOperations(this.#r.queryNode,eO("intersect",e,!1))})}intersectAll(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithSetOperations(this.#r.queryNode,eO("intersect",e,!0))})}except(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithSetOperations(this.#r.queryNode,eO("except",e,!1))})}exceptAll(e){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithSetOperations(this.#r.queryNode,eO("except",e,!0))})}as(e){return new eQ(this,e)}clearSelect(){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithoutSelections(this.#r.queryNode)})}clearWhere(){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithoutWhere(this.#r.queryNode)})}clearLimit(){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithoutLimit(this.#r.queryNode)})}clearOffset(){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithoutOffset(this.#r.queryNode)})}clearOrderBy(){return new r({...this.#r,queryNode:Q.QueryNode.cloneWithoutOrderBy(this.#r.queryNode)})}clearGroupBy(){return new r({...this.#r,queryNode:f.SelectQueryNode.cloneWithoutGroupBy(this.#r.queryNode)})}$call(e){return e(this)}$if(e,t){return e?t(this):new r({...this.#r})}$castTo(){return new r(this.#r)}$narrowType(){return new r(this.#r)}$assertType(){return new r(this.#r)}$asTuple(){return new eq(this.toOperationNode())}$asScalar(){return new eq(this.toOperationNode())}withPlugin(e){return new r({...this.#r,executor:this.#r.executor.withPlugin(e)})}toOperationNode(){return this.#r.executor.transformQuery(this.#r.queryNode,this.#r.queryId)}compile(){return this.#r.executor.compileQuery(this.toOperationNode(),this.#r.queryId)}async execute(e){let r=this.compile();return(await this.#r.executor.executeQuery(r,e)).rows}async executeTakeFirst(e){let[r]=await this.execute(e);return r}async executeTakeFirstOrThrow(e){"function"==typeof e&&(e={errorConstructor:e});let r=await this.executeTakeFirst(e);if(void 0===r){let r=e?.errorConstructor??et.NoResultError;throw(0,et.isNoResultErrorConstructor)(r)?new r(this.toOperationNode()):r(this.toOperationNode())}return r}async *stream(e){"object"!=typeof e&&(e={chunkSize:e});let r=this.compile();for await(let t of this.#r.executor.stream(r,e.chunkSize??100,e))yield*t.rows}async explain(e,t){let o=new r({...this.#r,queryNode:Q.QueryNode.cloneWithExplain(this.#r.queryNode,e,t)});return await o.execute()}}function eB(e){return new eC(e)}r=eC;class eQ{#z;#q;constructor(e,r){this.#z=e,this.#q=r}get expression(){return this.#z}get alias(){return this.#q}get isAliasedSelectQueryBuilder(){return!0}toOperationNode(){return t.AliasNode.create(this.#z.toOperationNode(),O.IdentifierNode.create(this.#q))}}e.s(["createFunctionModule",()=>eM],72127);var eT=e.i(79685),eR=e.i(3329);let eA=(0,W.freeze)({is:e=>"AggregateFunctionNode"===e.kind,create:(e,r=[])=>(0,W.freeze)({kind:"AggregateFunctionNode",func:e,aggregated:r}),cloneWithDistinct:e=>(0,W.freeze)({...e,distinct:!0}),cloneWithOrderBy(e,r,t=!1){let o=t?"withinGroup":"orderBy";return(0,W.freeze)({...e,[o]:e[o]?eR.OrderByNode.cloneWithItems(e[o],r):eR.OrderByNode.create(r)})},cloneWithFilter:(e,r)=>(0,W.freeze)({...e,filter:e.filter?eT.WhereNode.cloneWithOperation(e.filter,"And",r):eT.WhereNode.create(r)}),cloneWithOrFilter:(e,r)=>(0,W.freeze)({...e,filter:e.filter?eT.WhereNode.cloneWithOperation(e.filter,"Or",r):eT.WhereNode.create(r)}),cloneWithOver:(e,r)=>(0,W.freeze)({...e,over:r})}),eL=(0,W.freeze)({is:e=>"FunctionNode"===e.kind,create:(e,r)=>(0,W.freeze)({kind:"FunctionNode",func:e,arguments:r})});class eF{#r;constructor(e){this.#r=(0,W.freeze)(e)}get expressionType(){}as(e){return new eV(this,e)}distinct(){return new eF({...this.#r,aggregateFunctionNode:eA.cloneWithDistinct(this.#r.aggregateFunctionNode)})}orderBy(...e){return new eF({...this.#r,aggregateFunctionNode:Q.QueryNode.cloneWithOrderByItems(this.#r.aggregateFunctionNode,(0,ec.parseOrderBy)(e))})}clearOrderBy(){return new eF({...this.#r,aggregateFunctionNode:Q.QueryNode.cloneWithoutOrderBy(this.#r.aggregateFunctionNode)})}withinGroupOrderBy(...e){return new eF({...this.#r,aggregateFunctionNode:eA.cloneWithOrderBy(this.#r.aggregateFunctionNode,(0,ec.parseOrderBy)(e),!0)})}filterWhere(...e){return new eF({...this.#r,aggregateFunctionNode:eA.cloneWithFilter(this.#r.aggregateFunctionNode,(0,n.parseValueBinaryOperationOrExpression)(e))})}filterWhereRef(e,r,t){return new eF({...this.#r,aggregateFunctionNode:eA.cloneWithFilter(this.#r.aggregateFunctionNode,(0,n.parseReferentialBinaryOperation)(e,r,t))})}over(e){let r=ep();return new eF({...this.#r,aggregateFunctionNode:eA.cloneWithOver(this.#r.aggregateFunctionNode,(e?e(r):r).toOperationNode())})}$call(e){return e(this)}$castTo(){return new eF(this.#r)}$notNull(){return new eF(this.#r)}toOperationNode(){return this.#r.aggregateFunctionNode}}class eV{#S;#q;constructor(e,r){this.#S=e,this.#q=r}get expression(){return this.#S}get alias(){return this.#q}toOperationNode(){return t.AliasNode.create(this.#S.toOperationNode(),O.IdentifierNode.create(this.#q))}}function eM(){let e=(e,r)=>new eq(eL.create(e,(0,eh.parseReferenceExpressionOrList)(r??[]))),r=(e,r)=>new eF({aggregateFunctionNode:eA.create(e,r?(0,eh.parseReferenceExpressionOrList)(r):void 0)});return Object.assign(e,{agg:r,avg:e=>r("avg",[e]),coalesce:(...r)=>e("coalesce",r),count:e=>r("count",[e]),countAll:e=>new eF({aggregateFunctionNode:eA.create("count",(0,C.parseSelectAll)(e))}),max:e=>r("max",[e]),min:e=>r("min",[e]),sum:e=>r("sum",[e]),any:r=>e("any",[r]),jsonAgg:e=>new eF({aggregateFunctionNode:eA.create("json_agg",[(0,W.isString)(e)?(0,m.parseTable)(e):e.toOperationNode()])}),toJson:e=>new eq(eL.create("to_json",[(0,W.isString)(e)?(0,m.parseTable)(e):e.toOperationNode()]))})}e.s(["parseUnaryOperation",()=>eP],12365);var eD=e.i(36662);let eJ=(0,W.freeze)({is:e=>"UnaryOperationNode"===e.kind,create:(e,r)=>(0,W.freeze)({kind:"UnaryOperationNode",operator:e,operand:r})});function eP(e,r){if((0,eD.isUnaryOperator)(e))return eJ.create(eD.OperatorNode.create(e),(0,eh.parseReferenceExpression)(r));throw Error(`invalid unary operator ${JSON.stringify(e)}`)}e.s(["CaseBuilder",()=>ej],70420);let eU=(0,W.freeze)({is:e=>"CaseNode"===e.kind,create:e=>(0,W.freeze)({kind:"CaseNode",value:e}),cloneWithWhen:(e,r)=>(0,W.freeze)({...e,when:(0,W.freeze)(e.when?[...e.when,r]:[r])}),cloneWithThen:(e,r)=>(0,W.freeze)({...e,when:e.when?(0,W.freeze)([...e.when.slice(0,-1),F.WhenNode.cloneWithResult(e.when[e.when.length-1],r)]):void 0}),cloneWith:(e,r)=>(0,W.freeze)({...e,...r})});e.s(["CaseNode",0,eU],81442);class ej{#r;constructor(e){this.#r=(0,W.freeze)(e)}when(...e){return new e$({...this.#r,node:eU.cloneWithWhen(this.#r.node,F.WhenNode.create((0,n.parseValueBinaryOperationOrExpression)(e)))})}whenRef(e,r,t){return new e$({...this.#r,node:eU.cloneWithWhen(this.#r.node,F.WhenNode.create((0,n.parseReferentialBinaryOperation)(e,r,t)))})}}class e${#r;constructor(e){this.#r=(0,W.freeze)(e)}then(e){return new eG({...this.#r,node:eU.cloneWithThen(this.#r.node,(0,eE.isSafeImmediateValue)(e)?(0,eE.parseSafeImmediateValue)(e):(0,eE.parseValueExpression)(e))})}thenRef(e){return new eG({...this.#r,node:eU.cloneWithThen(this.#r.node,(0,eh.parseReferenceExpression)(e))})}}class eG{#r;constructor(e){this.#r=(0,W.freeze)(e)}when(...e){return new e$({...this.#r,node:eU.cloneWithWhen(this.#r.node,F.WhenNode.create((0,n.parseValueBinaryOperationOrExpression)(e)))})}whenRef(e,r,t){return new e$({...this.#r,node:eU.cloneWithWhen(this.#r.node,F.WhenNode.create((0,n.parseReferentialBinaryOperation)(e,r,t)))})}else(e){return new eK({...this.#r,node:eU.cloneWith(this.#r.node,{else:(0,eE.isSafeImmediateValue)(e)?(0,eE.parseSafeImmediateValue)(e):(0,eE.parseValueExpression)(e)})})}elseRef(e){return new eK({...this.#r,node:eU.cloneWith(this.#r.node,{else:(0,eh.parseReferenceExpression)(e)})})}end(){return new eq(eU.cloneWith(this.#r.node,{isStatement:!1}))}endCase(){return new eq(eU.cloneWith(this.#r.node,{isStatement:!0}))}}class eK{#r;constructor(e){this.#r=(0,W.freeze)(e)}end(){return new eq(eU.cloneWith(this.#r.node,{isStatement:!1}))}endCase(){return new eq(eU.cloneWith(this.#r.node,{isStatement:!0}))}}},83835,e=>{"use strict";var r=e.i(5292);let t=(0,r.freeze)({is:e=>"JSONPathLegNode"===e.kind,create:(e,t)=>(0,r.freeze)({kind:"JSONPathLegNode",type:e,value:t})});e.s(["JSONPathLegNode",0,t])},85381,16745,71731,e=>{"use strict";e.s(["isExpressionOrFactory",()=>J,"parseAliasedExpression",()=>D,"parseExpression",()=>M],85381);var r=e.i(69372),t=e.i(52369);e.s(["createExpressionBuilder",()=>F,"expressionBuilder",()=>V],71731);var o=e.i(22284),i=e.i(34067),n=e.i(27952),s=e.i(15249),a=e.i(72127),d=e.i(19834),u=e.i(23669),p=e.i(56802),l=e.i(85569),h=e.i(36662),c=e.i(12365),f=e.i(43097),N=e.i(97078),m=e.i(70420),y=e.i(81442),w=e.i(5292),g=e.i(77373),O=e.i(55514),x=e.i(55e3),W=e.i(83835),b=e.i(5114),q=e.i(17708),z=e.i(84480);let S=/^#-\d+$/;class k{#W;constructor(e){this.#W=e}at(e){if("number"!=typeof e&&"string"!=typeof e||"number"==typeof e&&!Number.isInteger(e)||"string"==typeof e&&"last"!==e&&!S.test(e))throw Error(`Unexpected index value in .at(...): ${e}`);return this.#k("ArrayLocation",e)}key(e){return this.#k("Member",e)}#k(e,r){return new E(q.JSONReferenceNode.is(this.#W)?q.JSONReferenceNode.cloneWithTraversal(this.#W,b.JSONPathNode.is(this.#W.traversal)?b.JSONPathNode.cloneWithLeg(this.#W.traversal,W.JSONPathLegNode.create(e,r)):x.JSONOperatorChainNode.cloneWithValue(this.#W.traversal,z.ValueNode.createImmediate(r))):b.JSONPathNode.cloneWithLeg(this.#W,W.JSONPathLegNode.create(e,r)))}}class E extends k{#W;constructor(e){super(e),this.#W=e}get expressionType(){}as(e){return new I(this,e)}$castTo(){return new E(this.#W)}$notNull(){return new E(this.#W)}toOperationNode(){return this.#W}}class I{#E;#q;constructor(e,r){this.#E=e,this.#q=r}get expression(){return this.#E}get alias(){return this.#q}toOperationNode(){return g.AliasNode.create(this.#E.toOperationNode(),(0,t.isOperationNodeSource)(this.#q)?this.#q.toOperationNode():O.IdentifierNode.create(this.#q))}}var v=e.i(87974),C=e.i(39001);let B=(0,w.freeze)({is:e=>"TupleNode"===e.kind,create:e=>(0,w.freeze)({kind:"TupleNode",values:(0,w.freeze)(e)})}),Q=(0,w.freeze)({bigint:!0,bigserial:!0,binary:!0,blob:!0,boolean:!0,bytea:!0,char:!0,date:!0,datemultirange:!0,daterange:!0,datetime:!0,datetime2:!0,decimal:!0,"double precision":!0,float4:!0,float8:!0,int2:!0,int4:!0,int4multirange:!0,int4range:!0,int8:!0,int8multirange:!0,int8range:!0,integer:!0,json:!0,jsonb:!0,numeric:!0,nummultirange:!0,numrange:!0,real:!0,serial:!0,smallint:!0,text:!0,time:!0,timestamp:!0,timestamptz:!0,timetz:!0,tsmultirange:!0,tsrange:!0,tstzmultirange:!0,tstzrange:!0,uuid:!0,varbinary:!0,varchar:!0}),T=(0,w.freeze)([/^varchar\(\d+\)$/,/^char\(\d+\)$/,/^decimal\(\d+, \d+\)$/,/^numeric\(\d+, \d+\)$/,/^binary\(\d+\)$/,/^datetime\(\d+\)$/,/^time\(\d+\)$/,/^timetz\(\d+\)$/,/^timestamp\(\d+\)$/,/^timestamptz\(\d+\)$/,/^datetime2\(\d+\)$/,/^varbinary\(\d+\)$/]),R=(0,w.freeze)({is:e=>"DataTypeNode"===e.kind,create:e=>(0,w.freeze)({kind:"DataTypeNode",dataType:e})});function A(e){if((0,t.isOperationNodeSource)(e))return e.toOperationNode();if(Q[e]||T.some(r=>r.test(e)))return R.create(e);throw Error(`invalid column data type ${JSON.stringify(e)}`)}e.s(["parseDataTypeExpression",0,A],16745);let L=(0,w.freeze)({is:e=>"CastNode"===e.kind,create:(e,r)=>(0,w.freeze)({kind:"CastNode",expression:e,dataType:r})});function F(e=N.NOOP_QUERY_EXECUTOR){function r(e,r){return new l.ExpressionWrapper((0,c.parseUnaryOperation)(e,r))}let t=Object.assign(function(e,r,t){return new l.ExpressionWrapper((0,u.parseValueBinaryOperation)(e,r,t))},{fn:void 0,eb:void 0,selectFrom:r=>(0,o.createSelectQueryBuilder)({queryId:(0,s.createQueryId)(),executor:e,queryNode:i.SelectQueryNode.createFrom((0,n.parseTableExpressionOrList)(r))}),case:e=>new m.CaseBuilder({node:y.CaseNode.create((0,w.isUndefined)(e)?void 0:(0,d.parseReferenceExpression)(e))}),ref:(e,r)=>(0,w.isUndefined)(r)?new l.ExpressionWrapper((0,d.parseStringReference)(e)):new k((0,d.parseJSONReference)(e,r)),jsonPath:()=>new k(b.JSONPathNode.create()),table:e=>new l.ExpressionWrapper((0,n.parseTable)(e)),val:e=>new l.ExpressionWrapper((0,f.parseValueExpression)(e)),refTuple:(...e)=>new l.ExpressionWrapper(B.create(e.map(d.parseReferenceExpression))),tuple:(...e)=>new l.ExpressionWrapper(B.create(e.map(f.parseValueExpression))),lit:e=>new l.ExpressionWrapper((0,f.parseSafeImmediateValue)(e)),unary:r,not:e=>r("not",e),exists:e=>r("exists",e),neg:e=>r("-",e),between:(e,r,t)=>new l.ExpressionWrapper(v.BinaryOperationNode.create((0,d.parseReferenceExpression)(e),h.OperatorNode.create("between"),C.AndNode.create((0,f.parseValueExpression)(r),(0,f.parseValueExpression)(t)))),betweenSymmetric:(e,r,t)=>new l.ExpressionWrapper(v.BinaryOperationNode.create((0,d.parseReferenceExpression)(e),h.OperatorNode.create("between symmetric"),C.AndNode.create((0,f.parseValueExpression)(r),(0,f.parseValueExpression)(t)))),and:e=>new l.ExpressionWrapper((0,w.isReadonlyArray)(e)?(0,u.parseFilterList)(e,"and"):(0,u.parseFilterObject)(e,"and")),or:e=>new l.ExpressionWrapper((0,w.isReadonlyArray)(e)?(0,u.parseFilterList)(e,"or"):(0,u.parseFilterObject)(e,"or")),parens(...e){let r=(0,u.parseValueBinaryOperationOrExpression)(e);return new l.ExpressionWrapper(p.ParensNode.is(r)?r:p.ParensNode.create(r))},cast:(e,r)=>new l.ExpressionWrapper(L.create((0,d.parseReferenceExpression)(e),A(r)))});return t.fn=(0,a.createFunctionModule)(),t.eb=t,t}function V(e){return F()}function M(e){if((0,t.isOperationNodeSource)(e))return e.toOperationNode();if((0,w.isFunction)(e))return e(F()).toOperationNode();throw Error(`invalid expression: ${JSON.stringify(e)}`)}function D(e){if((0,t.isOperationNodeSource)(e))return e.toOperationNode();if((0,w.isFunction)(e))return e(F()).toOperationNode();throw Error(`invalid aliased expression: ${JSON.stringify(e)}`)}function J(e){return(0,r.isExpression)(e)||(0,r.isAliasedExpression)(e)||(0,w.isFunction)(e)}},27952,821,e=>{"use strict";e.s(["parseAliasedTable",()=>h,"parseTable",()=>c,"parseTableExpression",()=>l,"parseTableExpressionOrList",()=>p],27952);var r=e.i(5292),t=e.i(77373),o=e.i(39328),i=e.i(85381),n=e.i(55514);e.s(["DynamicTableBuilder",()=>a,"isAliasedDynamicTableBuilder",()=>u],821);var s=e.i(52369);class a{#I;get table(){return this.#I}constructor(e){this.#I=e}as(e){return new d(this.#I,e)}}class d{#I;#q;get table(){return this.#I}get alias(){return this.#q}constructor(e,r){this.#I=e,this.#q=r}toOperationNode(){return t.AliasNode.create(c(this.#I),n.IdentifierNode.create(this.#q))}}function u(e){return(0,r.isObject)(e)&&(0,s.isOperationNodeSource)(e)&&(0,r.isString)(e.table)&&(0,r.isString)(e.alias)}function p(e){return(0,r.isReadonlyArray)(e)?e.map(e=>l(e)):[l(e)]}function l(e){return(0,r.isString)(e)?h(e):u(e)?e.toOperationNode():(0,i.parseAliasedExpression)(e)}function h(e){let r=" as ";if(!e.includes(r))return c(e);{let[o,i]=e.split(r).map(f);return t.AliasNode.create(c(o),n.IdentifierNode.create(i))}}function c(e){if(!e.includes("."))return o.TableNode.create(e);{let[r,t]=e.split(".").map(f);return o.TableNode.createWithSchema(r,t)}}function f(e){return e.trim()}},29401,e=>{"use strict";var r=e.i(55514),t=e.i(52369),o=e.i(3731),i=e.i(84480),n=e.i(19834),s=e.i(27952),a=e.i(43097),d=e.i(15249),u=e.i(77373),p=e.i(5292),l=e.i(97078);class h{#r;constructor(e){this.#r=(0,p.freeze)(e)}get expressionType(){}get isRawBuilder(){return!0}as(e){return new f(this,e)}$castTo(){return new h({...this.#r})}$notNull(){return new h(this.#r)}withPlugin(e){return new h({...this.#r,plugins:void 0!==this.#r.plugins?(0,p.freeze)([...this.#r.plugins,e]):(0,p.freeze)([e])})}toOperationNode(){return this.#v(this.#C())}compile(e){return this.#B(this.#C(e))}async execute(e,r){let t=this.#C(e);return t.executeQuery(this.#B(t),r)}#C(e){let r=void 0!==e?e.getExecutor():l.NOOP_QUERY_EXECUTOR;return void 0!==this.#r.plugins?r.withPlugins(this.#r.plugins):r}#v(e){return e.transformQuery(this.#r.rawNode,this.#r.queryId)}#B(e){return e.compileQuery(this.#v(e),this.#r.queryId)}}function c(e){return new h(e)}class f{#Q;#q;constructor(e,r){this.#Q=e,this.#q=r}get expression(){return this.#Q}get alias(){return this.#q}get rawBuilder(){return this.#Q}toOperationNode(){return u.AliasNode.create(this.#Q.toOperationNode(),(0,t.isOperationNodeSource)(this.#q)?this.#q.toOperationNode():r.IdentifierNode.create(this.#q))}}let N=Object.assign((e,...r)=>c({queryId:(0,d.createQueryId)(),rawNode:o.RawNode.create(e,r?.map(m)??[])}),{ref:e=>c({queryId:(0,d.createQueryId)(),rawNode:o.RawNode.createWithChild((0,n.parseStringReference)(e))}),val:e=>c({queryId:(0,d.createQueryId)(),rawNode:o.RawNode.createWithChild((0,a.parseValueExpression)(e))}),table:e=>c({queryId:(0,d.createQueryId)(),rawNode:o.RawNode.createWithChild((0,s.parseTable)(e))}),id(...e){let t=Array(e.length+1).fill(".");return t[0]="",t[t.length-1]="",c({queryId:(0,d.createQueryId)(),rawNode:o.RawNode.create(t,e.map(r.IdentifierNode.create))})},lit:e=>c({queryId:(0,d.createQueryId)(),rawNode:o.RawNode.createWithChild(i.ValueNode.createImmediate(e))}),raw:e=>c({queryId:(0,d.createQueryId)(),rawNode:o.RawNode.createWithSql(e)}),join(e,r=N`, `){let t=Array(Math.max(2*e.length-1,0)),i=r.toOperationNode();for(let r=0;r<e.length;++r)t[2*r]=m(e[r]),r!==e.length-1&&(t[2*r+1]=i);return c({queryId:(0,d.createQueryId)(),rawNode:o.RawNode.createWithChildren(t)})}});function m(e){return(0,t.isOperationNodeSource)(e)?e.toOperationNode():(0,a.parseValueExpression)(e)}e.s(["sql",0,N],29401)},50162,e=>{"use strict";var r=e.i(3731),t=e.i(5292),o=e.i(15249);let i=(0,t.freeze)({raw:(e,i=[])=>(0,t.freeze)({sql:e,query:r.RawNode.createWithSql(e),parameters:(0,t.freeze)(i),queryId:(0,o.createQueryId)()})});e.s(["CompiledQuery",0,i])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=0m4a_kysely_dist_095p8vu._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[5292,i=>{"use strict";function e(i){return Array.isArray(i)}Object.prototype.toString,i.s(["asArray",0,function(i){return e(i)?i:[i]},"freeze",0,function(i){return Object.freeze(i)},"getLast",0,function(i){return i[i.length-1]},"getMessage",0,function(i){return i instanceof Error?i.message:String(i)},"isBigInt",0,function(i){return"bigint"==typeof i},"isBoolean",0,function(i){return"boolean"==typeof i},"isBuffer",0,function(i){return"u">typeof Buffer&&Buffer.isBuffer(i)},"isDate",0,function(i){return i instanceof Date},"isFunction",0,function(i){return"function"==typeof i},"isNull",0,function(i){return null===i},"isNumber",0,function(i){return"number"==typeof i},"isObject",0,function(i){return"object"==typeof i&&null!==i},"isReadonlyArray",0,e,"isString",0,function(i){return"string"==typeof i},"isUndefined",0,function(i){return void 0===i||void 0===i},"noop",0,function(i){return i}])},55514,i=>{"use strict";var e=i.i(5292);let t=(0,e.freeze)({is:i=>"IdentifierNode"===i.kind,create:i=>(0,e.freeze)({kind:"IdentifierNode",name:i})});i.s(["IdentifierNode",0,t])},59696,i=>{"use strict";var e=i.i(5292);let t=(0,e.freeze)({is:i=>"CreateTableNode"===i.kind,create:i=>(0,e.freeze)({kind:"CreateTableNode",table:i,columns:(0,e.freeze)([])}),cloneWithColumn:(i,t)=>(0,e.freeze)({...i,columns:(0,e.freeze)([...i.columns,t])}),cloneWithConstraint:(i,t)=>(0,e.freeze)({...i,constraints:i.constraints?(0,e.freeze)([...i.constraints,t]):(0,e.freeze)([t])}),cloneWithIndex:(i,t)=>(0,e.freeze)({...i,indexes:i.indexes?(0,e.freeze)([...i.indexes,t]):(0,e.freeze)([t])}),cloneWithFrontModifier:(i,t)=>(0,e.freeze)({...i,frontModifiers:i.frontModifiers?(0,e.freeze)([...i.frontModifiers,t]):(0,e.freeze)([t])}),cloneWithEndModifier:(i,t)=>(0,e.freeze)({...i,endModifiers:i.endModifiers?(0,e.freeze)([...i.endModifiers,t]):(0,e.freeze)([t])}),cloneWith:(i,t)=>(0,e.freeze)({...i,...t})});i.s(["CreateTableNode",0,t,"ON_COMMIT_ACTIONS",0,["preserve rows","delete rows","drop"]])},15196,i=>{"use strict";var e=i.i(5292),t=i.i(55514);let s=(0,e.freeze)({is:i=>"SchemableIdentifierNode"===i.kind,create:i=>(0,e.freeze)({kind:"SchemableIdentifierNode",identifier:t.IdentifierNode.create(i)}),createWithSchema:(i,s)=>(0,e.freeze)({kind:"SchemableIdentifierNode",schema:t.IdentifierNode.create(i),identifier:t.IdentifierNode.create(s)})});i.s(["SchemableIdentifierNode",0,s])},36662,i=>{"use strict";var e=i.i(5292);let t=(0,e.freeze)({"=":!0,"==":!0,"!=":!0,"<>":!0,">":!0,">=":!0,"<":!0,"<=":!0,in:!0,"not in":!0,is:!0,"is not":!0,like:!0,"not like":!0,match:!0,ilike:!0,"not ilike":!0,"@>":!0,"<@":!0,"^@":!0,"&&":!0,"?":!0,"?&":!0,"?|":!0,"!<":!0,"!>":!0,"<=>":!0,"!~":!0,"~":!0,"~*":!0,"!~*":!0,"@@":!0,"@@@":!0,"!!":!0,"<->":!0,regexp:!0,"is distinct from":!0,"is not distinct from":!0});Object.keys(t);let s=(0,e.freeze)({"+":!0,"-":!0,"*":!0,"/":!0,"%":!0,"^":!0,"&":!0,"|":!0,"#":!0,"<<":!0,">>":!0});Object.keys(s);let n=(0,e.freeze)({"->":!0,"->>":!0}),d=Object.keys(n),a=(0,e.freeze)({...t,...s,"||":!0}),p=Object.keys(a),o=(0,e.freeze)({exists:!0,"not exists":!0});Object.keys(o);let h=(0,e.freeze)({...o,"-":!0,not:!0});[...p,...d,...Object.keys(h)];let r=(0,e.freeze)({is:i=>"OperatorNode"===i.kind,create:i=>(0,e.freeze)({kind:"OperatorNode",operator:i})});i.s(["OperatorNode",0,r,"isBinaryOperator",0,function(i){return(0,e.isString)(i)&&a[i]},"isJSONOperator",0,function(i){return(0,e.isString)(i)&&n[i]},"isUnaryOperator",0,function(i){return(0,e.isString)(i)&&h[i]}])},3731,i=>{"use strict";var e=i.i(5292);let t=(0,e.freeze)({is:i=>"RawNode"===i.kind,create:(i,t)=>(0,e.freeze)({kind:"RawNode",sqlFragments:(0,e.freeze)(i),parameters:(0,e.freeze)(t)}),createWithSql:i=>t.create([i],[]),createWithChild:i=>t.create(["",""],[i]),createWithChildren:i=>t.create(Array(i.length+1).fill(""),i)});i.s(["RawNode",0,t])},56802,i=>{"use strict";var e=i.i(5292);let t=(0,e.freeze)({is:i=>"ParensNode"===i.kind,create:i=>(0,e.freeze)({kind:"ParensNode",node:i})});i.s(["ParensNode",0,t])},91114,i=>{"use strict";var e=i.i(5292);let t=(0,e.freeze)({is:i=>"InsertQueryNode"===i.kind,create:(i,t,s)=>(0,e.freeze)({kind:"InsertQueryNode",into:i,...t&&{with:t},replace:s}),createWithoutInto:()=>(0,e.freeze)({kind:"InsertQueryNode"}),cloneWith:(i,t)=>(0,e.freeze)({...i,...t})});i.s(["InsertQueryNode",0,t])},54860,i=>{"use strict";var e=i.i(5292);let t=(0,e.freeze)({is:i=>"WhenNode"===i.kind,create:i=>(0,e.freeze)({kind:"WhenNode",condition:i}),cloneWithResult:(i,t)=>(0,e.freeze)({...i,result:t})});i.s(["WhenNode",0,t])},87981,i=>{"use strict";var e=i.i(5292);let t=(0,e.freeze)({is:i=>"SetOperationNode"===i.kind,create:(i,t,s)=>(0,e.freeze)({kind:"SetOperationNode",operator:i,expression:t,all:s})});i.s(["SetOperationNode",0,t])},91752,i=>{"use strict";var e=i.i(5292),t=i.i(15196);let s=(0,e.freeze)({is:i=>"CreateViewNode"===i.kind,create:i=>(0,e.freeze)({kind:"CreateViewNode",name:t.SchemableIdentifierNode.create(i)}),cloneWith:(i,t)=>(0,e.freeze)({...i,...t})});i.s(["CreateViewNode",0,s])},16177,i=>{"use strict";var e=i.i(5292);class t{nodeStack=[];get parentNode(){return this.nodeStack[this.nodeStack.length-2]}#i=(0,e.freeze)({AliasNode:this.visitAlias.bind(this),ColumnNode:this.visitColumn.bind(this),IdentifierNode:this.visitIdentifier.bind(this),SchemableIdentifierNode:this.visitSchemableIdentifier.bind(this),RawNode:this.visitRaw.bind(this),ReferenceNode:this.visitReference.bind(this),SelectQueryNode:this.visitSelectQuery.bind(this),SelectionNode:this.visitSelection.bind(this),TableNode:this.visitTable.bind(this),FromNode:this.visitFrom.bind(this),SelectAllNode:this.visitSelectAll.bind(this),AndNode:this.visitAnd.bind(this),OrNode:this.visitOr.bind(this),ValueNode:this.visitValue.bind(this),ValueListNode:this.visitValueList.bind(this),PrimitiveValueListNode:this.visitPrimitiveValueList.bind(this),ParensNode:this.visitParens.bind(this),JoinNode:this.visitJoin.bind(this),OperatorNode:this.visitOperator.bind(this),WhereNode:this.visitWhere.bind(this),InsertQueryNode:this.visitInsertQuery.bind(this),DeleteQueryNode:this.visitDeleteQuery.bind(this),ReturningNode:this.visitReturning.bind(this),CreateTableNode:this.visitCreateTable.bind(this),AddColumnNode:this.visitAddColumn.bind(this),ColumnDefinitionNode:this.visitColumnDefinition.bind(this),DropTableNode:this.visitDropTable.bind(this),DataTypeNode:this.visitDataType.bind(this),OrderByNode:this.visitOrderBy.bind(this),OrderByItemNode:this.visitOrderByItem.bind(this),GroupByNode:this.visitGroupBy.bind(this),GroupByItemNode:this.visitGroupByItem.bind(this),UpdateQueryNode:this.visitUpdateQuery.bind(this),ColumnUpdateNode:this.visitColumnUpdate.bind(this),LimitNode:this.visitLimit.bind(this),OffsetNode:this.visitOffset.bind(this),OnConflictNode:this.visitOnConflict.bind(this),OnDuplicateKeyNode:this.visitOnDuplicateKey.bind(this),CreateIndexNode:this.visitCreateIndex.bind(this),DropIndexNode:this.visitDropIndex.bind(this),ListNode:this.visitList.bind(this),PrimaryKeyConstraintNode:this.visitPrimaryKeyConstraint.bind(this),UniqueConstraintNode:this.visitUniqueConstraint.bind(this),ReferencesNode:this.visitReferences.bind(this),CheckConstraintNode:this.visitCheckConstraint.bind(this),WithNode:this.visitWith.bind(this),CommonTableExpressionNode:this.visitCommonTableExpression.bind(this),CommonTableExpressionNameNode:this.visitCommonTableExpressionName.bind(this),HavingNode:this.visitHaving.bind(this),CreateSchemaNode:this.visitCreateSchema.bind(this),DropSchemaNode:this.visitDropSchema.bind(this),AlterTableNode:this.visitAlterTable.bind(this),DropColumnNode:this.visitDropColumn.bind(this),RenameColumnNode:this.visitRenameColumn.bind(this),AlterColumnNode:this.visitAlterColumn.bind(this),ModifyColumnNode:this.visitModifyColumn.bind(this),AddConstraintNode:this.visitAddConstraint.bind(this),DropConstraintNode:this.visitDropConstraint.bind(this),RenameConstraintNode:this.visitRenameConstraint.bind(this),ForeignKeyConstraintNode:this.visitForeignKeyConstraint.bind(this),CreateViewNode:this.visitCreateView.bind(this),RefreshMaterializedViewNode:this.visitRefreshMaterializedView.bind(this),DropViewNode:this.visitDropView.bind(this),GeneratedNode:this.visitGenerated.bind(this),DefaultValueNode:this.visitDefaultValue.bind(this),OnNode:this.visitOn.bind(this),ValuesNode:this.visitValues.bind(this),SelectModifierNode:this.visitSelectModifier.bind(this),CreateTypeNode:this.visitCreateType.bind(this),DropTypeNode:this.visitDropType.bind(this),ExplainNode:this.visitExplain.bind(this),DefaultInsertValueNode:this.visitDefaultInsertValue.bind(this),AggregateFunctionNode:this.visitAggregateFunction.bind(this),OverNode:this.visitOver.bind(this),PartitionByNode:this.visitPartitionBy.bind(this),PartitionByItemNode:this.visitPartitionByItem.bind(this),SetOperationNode:this.visitSetOperation.bind(this),BinaryOperationNode:this.visitBinaryOperation.bind(this),UnaryOperationNode:this.visitUnaryOperation.bind(this),UsingNode:this.visitUsing.bind(this),FunctionNode:this.visitFunction.bind(this),CaseNode:this.visitCase.bind(this),WhenNode:this.visitWhen.bind(this),JSONReferenceNode:this.visitJSONReference.bind(this),JSONPathNode:this.visitJSONPath.bind(this),JSONPathLegNode:this.visitJSONPathLeg.bind(this),JSONOperatorChainNode:this.visitJSONOperatorChain.bind(this),TupleNode:this.visitTuple.bind(this),MergeQueryNode:this.visitMergeQuery.bind(this),MatchedNode:this.visitMatched.bind(this),AddIndexNode:this.visitAddIndex.bind(this),CastNode:this.visitCast.bind(this),FetchNode:this.visitFetch.bind(this),TopNode:this.visitTop.bind(this),OutputNode:this.visitOutput.bind(this),OrActionNode:this.visitOrAction.bind(this),CollateNode:this.visitCollate.bind(this),AlterTypeNode:this.visitAlterType.bind(this),AddValueNode:this.visitAddValue.bind(this),RenameValueNode:this.visitRenameValue.bind(this)});visitNode=i=>{this.nodeStack.push(i),this.#i[i.kind](i),this.nodeStack.pop()}}i.s(["OperationNodeVisitor",0,t])},44700,i=>{"use strict";var e=i.i(59696),t=i.i(91114),s=i.i(16177),n=i.i(36662),d=i.i(56802),a=i.i(3731),p=i.i(5292),o=i.i(91752),h=i.i(87981),r=i.i(54860);let l=/'/g,v=/['"]/g;class u extends s.OperationNodeVisitor{#e="";#t=[];get numParameters(){return this.#t.length}compileQuery(i,e){return this.#e="",this.#t=[],this.nodeStack.splice(0,this.nodeStack.length),this.visitNode(i),(0,p.freeze)({query:i,queryId:e,sql:this.getSql(),parameters:[...this.#t]})}getSql(){return this.#e}visitSelectQuery(i){let s=void 0!==this.parentNode&&!d.ParensNode.is(this.parentNode)&&!t.InsertQueryNode.is(this.parentNode)&&!e.CreateTableNode.is(this.parentNode)&&!o.CreateViewNode.is(this.parentNode)&&!h.SetOperationNode.is(this.parentNode);void 0===this.parentNode&&i.explain&&(this.visitNode(i.explain),this.append(" ")),s&&this.append("("),i.with&&(this.visitNode(i.with),this.append(" ")),this.append("select"),i.distinctOn&&(this.append(" "),this.compileDistinctOn(i.distinctOn)),i.frontModifiers?.length&&(this.append(" "),this.compileList(i.frontModifiers," ")),i.top&&(this.append(" "),this.visitNode(i.top)),i.selections&&(this.append(" "),this.compileList(i.selections)),i.from&&(this.append(" "),this.visitNode(i.from)),i.joins&&(this.append(" "),this.compileList(i.joins," ")),i.where&&(this.append(" "),this.visitNode(i.where)),i.groupBy&&(this.append(" "),this.visitNode(i.groupBy)),i.having&&(this.append(" "),this.visitNode(i.having)),i.setOperations&&(this.append(" "),this.compileList(i.setOperations," ")),i.orderBy&&(this.append(" "),this.visitNode(i.orderBy)),i.limit&&(this.append(" "),this.visitNode(i.limit)),i.offset&&(this.append(" "),this.visitNode(i.offset)),i.fetch&&(this.append(" "),this.visitNode(i.fetch)),i.endModifiers?.length&&(this.append(" "),this.compileList(this.sortSelectModifiers(i.endModifiers)," ")),s&&this.append(")")}visitFrom(i){this.append("from "),this.compileList(i.froms)}visitSelection(i){this.visitNode(i.selection)}visitColumn(i){this.visitNode(i.column)}compileDistinctOn(i){this.append("distinct on ("),this.compileList(i),this.append(")")}compileList(i,e=", "){let t=i.length-1;for(let s=0;s<=t;s++)this.visitNode(i[s]),s<t&&this.append(e)}visitWhere(i){this.append("where "),this.visitNode(i.where)}visitHaving(i){this.append("having "),this.visitNode(i.having)}visitInsertQuery(i){let e=void 0!==this.parentNode&&!d.ParensNode.is(this.parentNode)&&!a.RawNode.is(this.parentNode)&&!r.WhenNode.is(this.parentNode);void 0===this.parentNode&&i.explain&&(this.visitNode(i.explain),this.append(" ")),e&&this.append("("),i.with&&(this.visitNode(i.with),this.append(" ")),this.append(i.replace?"replace":"insert"),i.orAction&&(this.append(" "),this.visitNode(i.orAction)),i.top&&(this.append(" "),this.visitNode(i.top)),i.into&&(this.append(" into "),this.visitNode(i.into)),i.columns&&(this.append(" ("),this.compileList(i.columns),this.append(")")),i.output&&(this.append(" "),this.visitNode(i.output)),i.values&&(this.append(" "),this.visitNode(i.values)),i.defaultValues&&(this.append(" "),this.append("default values")),i.onConflict&&(this.append(" "),this.visitNode(i.onConflict)),i.onDuplicateKey&&(this.append(" "),this.visitNode(i.onDuplicateKey)),i.returning&&(this.append(" "),this.visitNode(i.returning)),e&&this.append(")"),i.endModifiers?.length&&(this.append(" "),this.compileList(i.endModifiers," "))}visitValues(i){this.append("values "),this.compileList(i.values)}visitDeleteQuery(i){let e=void 0!==this.parentNode&&!d.ParensNode.is(this.parentNode)&&!a.RawNode.is(this.parentNode);void 0===this.parentNode&&i.explain&&(this.visitNode(i.explain),this.append(" ")),e&&this.append("("),i.with&&(this.visitNode(i.with),this.append(" ")),this.append("delete "),i.top&&(this.visitNode(i.top),this.append(" ")),this.visitNode(i.from),i.output&&(this.append(" "),this.visitNode(i.output)),i.using&&(this.append(" "),this.visitNode(i.using)),i.joins&&(this.append(" "),this.compileList(i.joins," ")),i.where&&(this.append(" "),this.visitNode(i.where)),i.orderBy&&(this.append(" "),this.visitNode(i.orderBy)),i.limit&&(this.append(" "),this.visitNode(i.limit)),i.returning&&(this.append(" "),this.visitNode(i.returning)),e&&this.append(")"),i.endModifiers?.length&&(this.append(" "),this.compileList(i.endModifiers," "))}visitReturning(i){this.append("returning "),this.compileList(i.selections)}visitAlias(i){this.visitNode(i.node),this.append(" as "),this.visitNode(i.alias)}visitReference(i){i.table&&(this.visitNode(i.table),this.append(".")),this.visitNode(i.column)}visitSelectAll(i){this.append("*")}visitIdentifier(i){this.append(this.getLeftIdentifierWrapper()),this.compileUnwrappedIdentifier(i),this.append(this.getRightIdentifierWrapper())}compileUnwrappedIdentifier(i){if(!(0,p.isString)(i.name))throw Error("a non-string identifier was passed to compileUnwrappedIdentifier.");this.append(this.sanitizeIdentifier(i.name))}visitAnd(i){this.visitNode(i.left),this.append(" and "),this.visitNode(i.right)}visitOr(i){this.visitNode(i.left),this.append(" or "),this.visitNode(i.right)}visitValue(i){i.immediate?this.appendImmediateValue(i.value):this.appendValue(i.value)}visitValueList(i){this.append("("),this.compileList(i.values),this.append(")")}visitTuple(i){this.append("("),this.compileList(i.values),this.append(")")}visitPrimitiveValueList(i){this.append("(");let{values:e}=i;for(let i=0;i<e.length;++i)this.appendValue(e[i]),i!==e.length-1&&this.append(", ");this.append(")")}visitParens(i){this.append("("),this.visitNode(i.node),this.append(")")}visitJoin(i){this.append(f[i.joinType]),this.append(" "),this.visitNode(i.table),i.on&&(this.append(" "),this.visitNode(i.on))}visitOn(i){this.append("on "),this.visitNode(i.on)}visitRaw(i){let{sqlFragments:e,parameters:t}=i;for(let i=0;i<e.length;++i)this.append(e[i]),t.length>i&&this.visitNode(t[i])}visitOperator(i){this.append(i.operator)}visitTable(i){this.visitNode(i.table)}visitSchemableIdentifier(i){i.schema&&(this.visitNode(i.schema),this.append(".")),this.visitNode(i.identifier)}visitCreateTable(i){this.append("create "),i.frontModifiers?.length&&(this.compileList(i.frontModifiers," "),this.append(" ")),i.temporary&&this.append("temporary "),this.append("table "),i.ifNotExists&&this.append("if not exists "),this.visitNode(i.table),i.selectQuery||(this.append(" ("),this.compileList([...i.columns,...i.constraints??[],...i.indexes??[]]),this.append(")")),i.onCommit&&(this.append(" on commit "),this.append(i.onCommit)),i.endModifiers?.length&&(this.append(" "),this.compileList(i.endModifiers," ")),i.selectQuery&&(this.append(" as "),this.visitNode(i.selectQuery))}visitColumnDefinition(i){i.ifNotExists&&this.append("if not exists "),this.visitNode(i.column),this.append(" "),this.visitNode(i.dataType),i.unsigned&&this.append(" unsigned"),i.frontModifiers&&i.frontModifiers.length>0&&(this.append(" "),this.compileList(i.frontModifiers," ")),i.generated&&(this.append(" "),this.visitNode(i.generated)),i.identity&&this.append(" identity"),i.defaultTo&&(this.append(" "),this.visitNode(i.defaultTo)),i.notNull&&this.append(" not null"),i.unique&&this.append(" unique"),i.nullsNotDistinct&&this.append(" nulls not distinct"),i.primaryKey&&this.append(" primary key"),i.autoIncrement&&(this.append(" "),this.append(this.getAutoIncrement())),i.references&&(this.append(" "),this.visitNode(i.references)),i.check&&(this.append(" "),this.visitNode(i.check)),i.endModifiers&&i.endModifiers.length>0&&(this.append(" "),this.compileList(i.endModifiers," "))}getAutoIncrement(){return"auto_increment"}visitReferences(i){this.append("references "),this.visitNode(i.table),this.append(" ("),this.compileList(i.columns),this.append(")"),i.onDelete&&(this.append(" on delete "),this.append(i.onDelete)),i.onUpdate&&(this.append(" on update "),this.append(i.onUpdate))}visitDropTable(i){this.append("drop "),i.temporary&&this.append("temporary "),this.append("table "),i.ifExists&&this.append("if exists "),this.visitNode(i.table),i.cascade&&this.append(" cascade")}visitDataType(i){this.append(i.dataType)}visitOrderBy(i){this.append("order by "),this.compileList(i.items)}visitOrderByItem(i){this.visitNode(i.orderBy),i.collation&&(this.append(" "),this.visitNode(i.collation)),i.direction&&(this.append(" "),this.visitNode(i.direction)),i.nulls&&(this.append(" nulls "),this.append(i.nulls))}visitGroupBy(i){this.append("group by "),this.compileList(i.items)}visitGroupByItem(i){this.visitNode(i.groupBy)}visitUpdateQuery(i){let e=void 0!==this.parentNode&&!d.ParensNode.is(this.parentNode)&&!a.RawNode.is(this.parentNode)&&!r.WhenNode.is(this.parentNode);if(void 0===this.parentNode&&i.explain&&(this.visitNode(i.explain),this.append(" ")),e&&this.append("("),i.with&&(this.visitNode(i.with),this.append(" ")),this.append("update "),i.top&&(this.visitNode(i.top),this.append(" ")),i.table&&(this.visitNode(i.table),this.append(" ")),this.append("set "),i.updates&&this.compileList(i.updates),i.output&&(this.append(" "),this.visitNode(i.output)),i.from&&(this.append(" "),this.visitNode(i.from)),i.joins){if(!i.from)throw Error("Joins in an update query are only supported as a part of a PostgreSQL 'update set from join' query. If you want to create a MySQL 'update join set' query, see https://kysely.dev/docs/examples/update/my-sql-joins");this.append(" "),this.compileList(i.joins," ")}i.where&&(this.append(" "),this.visitNode(i.where)),i.returning&&(this.append(" "),this.visitNode(i.returning)),i.orderBy&&(this.append(" "),this.visitNode(i.orderBy)),i.limit&&(this.append(" "),this.visitNode(i.limit)),e&&this.append(")"),i.endModifiers?.length&&(this.append(" "),this.compileList(i.endModifiers," "))}visitColumnUpdate(i){this.visitNode(i.column),this.append(" = "),this.visitNode(i.value)}visitLimit(i){this.append("limit "),this.visitNode(i.limit)}visitOffset(i){this.append("offset "),this.visitNode(i.offset)}visitOnConflict(i){this.append("on conflict"),i.columns?(this.append(" ("),this.compileList(i.columns),this.append(")")):i.constraint?(this.append(" on constraint "),this.visitNode(i.constraint)):i.indexExpression&&(this.append(" ("),this.visitNode(i.indexExpression),this.append(")")),i.indexWhere&&(this.append(" "),this.visitNode(i.indexWhere)),!0===i.doNothing?this.append(" do nothing"):i.updates&&(this.append(" do update set "),this.compileList(i.updates),i.updateWhere&&(this.append(" "),this.visitNode(i.updateWhere)))}visitOnDuplicateKey(i){this.append("on duplicate key update "),this.compileList(i.updates)}visitCreateIndex(i){this.append("create "),i.unique&&this.append("unique "),this.append("index "),i.ifNotExists&&this.append("if not exists "),this.visitNode(i.name),i.table&&(this.append(" on "),this.visitNode(i.table)),i.using&&(this.append(" using "),this.visitNode(i.using)),i.columns&&(this.append(" ("),this.compileList(i.columns),this.append(")")),i.nullsNotDistinct&&this.append(" nulls not distinct"),i.where&&(this.append(" "),this.visitNode(i.where))}visitDropIndex(i){this.append("drop index "),i.ifExists&&this.append("if exists "),this.visitNode(i.name),i.table&&(this.append(" on "),this.visitNode(i.table)),i.cascade&&this.append(" cascade")}visitCreateSchema(i){this.append("create schema "),i.ifNotExists&&this.append("if not exists "),this.visitNode(i.schema)}visitDropSchema(i){this.append("drop schema "),i.ifExists&&this.append("if exists "),this.visitNode(i.schema),i.cascade&&this.append(" cascade")}visitPrimaryKeyConstraint(i){i.name&&(this.append("constraint "),this.visitNode(i.name),this.append(" ")),this.append("primary key ("),this.compileList(i.columns),this.append(")"),this.buildDeferrable(i)}buildDeferrable(i){void 0!==i.deferrable&&(i.deferrable?this.append(" deferrable"):this.append(" not deferrable")),void 0!==i.initiallyDeferred&&(i.initiallyDeferred?this.append(" initially deferred"):this.append(" initially immediate"))}visitUniqueConstraint(i){i.name&&(this.append("constraint "),this.visitNode(i.name),this.append(" ")),this.append("unique"),i.nullsNotDistinct&&this.append(" nulls not distinct"),this.append(" ("),this.compileList(i.columns),this.append(")"),this.buildDeferrable(i)}visitCheckConstraint(i){i.name&&(this.append("constraint "),this.visitNode(i.name),this.append(" ")),this.append("check ("),this.visitNode(i.expression),this.append(")")}visitForeignKeyConstraint(i){i.name&&(this.append("constraint "),this.visitNode(i.name),this.append(" ")),this.append("foreign key ("),this.compileList(i.columns),this.append(") "),this.visitNode(i.references),i.onDelete&&(this.append(" on delete "),this.append(i.onDelete)),i.onUpdate&&(this.append(" on update "),this.append(i.onUpdate)),this.buildDeferrable(i)}visitList(i){this.compileList(i.items)}visitWith(i){this.append("with "),i.recursive&&this.append("recursive "),this.compileList(i.expressions)}visitCommonTableExpression(i){this.visitNode(i.name),this.append(" as "),(0,p.isBoolean)(i.materialized)&&(i.materialized||this.append("not "),this.append("materialized ")),this.visitNode(i.expression)}visitCommonTableExpressionName(i){this.visitNode(i.table),i.columns&&(this.append("("),this.compileList(i.columns),this.append(")"))}visitAlterTable(i){this.append("alter table "),this.visitNode(i.table),this.append(" "),i.renameTo&&(this.append("rename to "),this.visitNode(i.renameTo)),i.setSchema&&(this.append("set schema "),this.visitNode(i.setSchema)),i.addConstraint&&this.visitNode(i.addConstraint),i.dropConstraint&&this.visitNode(i.dropConstraint),i.renameConstraint&&this.visitNode(i.renameConstraint),i.columnAlterations&&this.compileColumnAlterations(i.columnAlterations),i.addIndex&&this.visitNode(i.addIndex),i.dropIndex&&this.visitNode(i.dropIndex)}visitAddColumn(i){this.append("add column "),this.visitNode(i.column)}visitRenameColumn(i){this.append("rename column "),this.visitNode(i.column),this.append(" to "),this.visitNode(i.renameTo)}visitDropColumn(i){this.append("drop column "),i.ifExists&&this.append("if exists "),this.visitNode(i.column)}visitAlterColumn(i){this.append("alter column "),this.visitNode(i.column),this.append(" "),i.dataType&&(this.announcesNewColumnDataType()&&this.append("type "),this.visitNode(i.dataType),i.dataTypeExpression&&(this.append("using "),this.visitNode(i.dataTypeExpression))),i.setDefault&&(this.append("set default "),this.visitNode(i.setDefault)),i.dropDefault&&this.append("drop default"),i.setNotNull&&this.append("set not null"),i.dropNotNull&&this.append("drop not null")}visitModifyColumn(i){this.append("modify column "),this.visitNode(i.column)}visitAddConstraint(i){this.append("add "),this.visitNode(i.constraint)}visitDropConstraint(i){this.append("drop constraint "),i.ifExists&&this.append("if exists "),this.visitNode(i.constraintName),"cascade"===i.modifier?this.append(" cascade"):"restrict"===i.modifier&&this.append(" restrict")}visitRenameConstraint(i){this.append("rename constraint "),this.visitNode(i.oldName),this.append(" to "),this.visitNode(i.newName)}visitSetOperation(i){this.append(i.operator),this.append(" "),i.all&&this.append("all "),this.visitNode(i.expression)}visitCreateView(i){this.append("create "),i.orReplace&&this.append("or replace "),i.materialized&&this.append("materialized "),i.temporary&&this.append("temporary "),this.append("view "),i.ifNotExists&&this.append("if not exists "),this.visitNode(i.name),this.append(" "),i.columns&&(this.append("("),this.compileList(i.columns),this.append(") ")),i.as&&(this.append("as "),this.visitNode(i.as))}visitRefreshMaterializedView(i){this.append("refresh materialized view "),i.concurrently&&this.append("concurrently "),this.visitNode(i.name),i.withNoData?this.append(" with no data"):this.append(" with data")}visitDropView(i){this.append("drop "),i.materialized&&this.append("materialized "),this.append("view "),i.ifExists&&this.append("if exists "),this.visitNode(i.name),i.cascade&&this.append(" cascade")}visitGenerated(i){this.append("generated "),i.always&&this.append("always "),i.byDefault&&this.append("by default "),this.append("as "),i.identity&&this.append("identity"),i.expression&&(this.append("("),this.visitNode(i.expression),this.append(")")),i.stored&&this.append(" stored")}visitDefaultValue(i){this.append("default "),this.visitNode(i.defaultValue)}visitSelectModifier(i){i.rawModifier?this.visitNode(i.rawModifier):this.append(N[i.modifier]),i.of&&(this.append(" of "),this.compileList(i.of,", "))}visitCreateType(i){this.append("create type "),this.visitNode(i.name),i.enum&&(this.append(" as enum "),this.visitNode(i.enum))}visitDropType(i){this.append("drop type "),i.ifExists&&this.append("if exists "),this.visitNode(i.name),i.additionalNames?.length&&(this.append(", "),this.compileList(i.additionalNames)),i.cascade&&this.append(" cascade")}visitAlterType(i){this.append("alter type "),this.visitNode(i.name),this.append(" "),i.addValue?this.visitNode(i.addValue):i.renameTo?(this.append("rename to "),this.visitNode(i.renameTo)):i.renameValue?this.visitNode(i.renameValue):i.setSchema&&(this.append("set schema "),this.visitNode(i.setSchema))}visitAddValue(i){this.append("add value "),i.ifNotExists&&this.append("if not exists "),this.visitNode(i.value),i.neighborValue&&(this.append(i.isBefore?" before ":" after "),this.visitNode(i.neighborValue))}visitRenameValue(i){this.append("rename value "),this.visitNode(i.oldValue),this.append(" to "),this.visitNode(i.newValue)}visitExplain(i){this.append("explain"),(i.options||i.format)&&(this.append(" "),this.append(this.getLeftExplainOptionsWrapper()),i.options&&(this.visitNode(i.options),i.format&&this.append(this.getExplainOptionsDelimiter())),i.format&&(this.append("format"),this.append(this.getExplainOptionAssignment()),this.append(i.format)),this.append(this.getRightExplainOptionsWrapper()))}visitDefaultInsertValue(i){this.append("default")}visitAggregateFunction(i){this.append(i.func),this.append("("),i.distinct&&this.append("distinct "),this.compileList(i.aggregated),i.orderBy&&(this.append(" "),this.visitNode(i.orderBy)),this.append(")"),i.withinGroup&&(this.append(" within group ("),this.visitNode(i.withinGroup),this.append(")")),i.filter&&(this.append(" filter("),this.visitNode(i.filter),this.append(")")),i.over&&(this.append(" "),this.visitNode(i.over))}visitOver(i){this.append("over("),i.partitionBy&&(this.visitNode(i.partitionBy),i.orderBy&&this.append(" ")),i.orderBy&&this.visitNode(i.orderBy),this.append(")")}visitPartitionBy(i){this.append("partition by "),this.compileList(i.items)}visitPartitionByItem(i){this.visitNode(i.partitionBy)}visitBinaryOperation(i){this.visitNode(i.leftOperand),this.append(" "),this.visitNode(i.operator),this.append(" "),this.visitNode(i.rightOperand)}visitUnaryOperation(i){this.visitNode(i.operator),this.isMinusOperator(i.operator)||this.append(" "),this.visitNode(i.operand)}isMinusOperator(i){return n.OperatorNode.is(i)&&"-"===i.operator}visitUsing(i){this.append("using "),this.compileList(i.tables)}visitFunction(i){this.append(i.func),this.append("("),this.compileList(i.arguments),this.append(")")}visitCase(i){this.append("case"),i.value&&(this.append(" "),this.visitNode(i.value)),i.when&&(this.append(" "),this.compileList(i.when," ")),i.else&&(this.append(" else "),this.visitNode(i.else)),this.append(" end"),i.isStatement&&this.append(" case")}visitWhen(i){this.append("when "),this.visitNode(i.condition),i.result&&(this.append(" then "),this.visitNode(i.result))}visitJSONReference(i){this.visitNode(i.reference),this.visitNode(i.traversal)}visitJSONPath(i){for(let e of(i.inOperator&&this.visitNode(i.inOperator),this.append("'$"),i.pathLegs))this.visitNode(e);this.append("'")}visitJSONPathLeg(i){let e="ArrayLocation"===i.type,t=String(i.value);e?(this.append("["),this.append(this.sanitizeStringLiteral(t)),this.append("]")):(this.append('."'),this.append(this.sanitizeJSONPathMemberValue(t)),this.append('"'))}visitJSONOperatorChain(i){for(let e=0,t=i.values.length;e<t;e++)e===t-1?this.visitNode(i.operator):this.append("->"),this.visitNode(i.values[e])}visitMergeQuery(i){i.with&&(this.visitNode(i.with),this.append(" ")),this.append("merge "),i.top&&(this.visitNode(i.top),this.append(" ")),this.append("into "),this.visitNode(i.into),i.using&&(this.append(" "),this.visitNode(i.using)),i.whens&&(this.append(" "),this.compileList(i.whens," ")),i.returning&&(this.append(" "),this.visitNode(i.returning)),i.output&&(this.append(" "),this.visitNode(i.output)),i.endModifiers?.length&&(this.append(" "),this.compileList(i.endModifiers," "))}visitMatched(i){i.not&&this.append("not "),this.append("matched"),i.bySource&&this.append(" by source")}visitAddIndex(i){this.parentNode&&e.CreateTableNode.is(this.parentNode)||this.append("add "),i.unique&&this.append("unique "),this.append("index "),this.visitNode(i.name),i.columns&&(this.append(" ("),this.compileList(i.columns),this.append(")")),i.using&&(this.append(" using "),this.visitNode(i.using))}visitCast(i){this.append("cast("),this.visitNode(i.expression),this.append(" as "),this.visitNode(i.dataType),this.append(")")}visitFetch(i){this.append("fetch next "),this.visitNode(i.rowCount),this.append(` rows ${i.modifier}`)}visitOutput(i){this.append("output "),this.compileList(i.selections)}visitTop(i){this.append(`top(${i.expression})`),i.modifiers&&this.append(` ${i.modifiers}`)}visitOrAction(i){this.append(i.action)}visitCollate(i){this.append("collate "),this.visitNode(i.collation)}append(i){this.#e+=i}appendValue(i){this.addParameter(i),this.append(this.getCurrentParameterPlaceholder())}getLeftIdentifierWrapper(){return'"'}getRightIdentifierWrapper(){return'"'}getCurrentParameterPlaceholder(){return"$"+this.numParameters}getLeftExplainOptionsWrapper(){return"("}getExplainOptionAssignment(){return" "}getExplainOptionsDelimiter(){return", "}getRightExplainOptionsWrapper(){return")"}sanitizeIdentifier(i){let e=this.getLeftIdentifierWrapper(),t=this.getRightIdentifierWrapper(),s="";for(let n of i)s+=n,n===e?s+=e:n===t&&(s+=t);return s}sanitizeStringLiteral(i){return i.replace(l,"''")}sanitizeJSONPathMemberValue(i){return i.replace(v,i=>"'"===i?"''":'\\"')}addParameter(i){this.#t.push(i)}appendImmediateValue(i){if((0,p.isString)(i))this.appendStringLiteral(i);else if((0,p.isNumber)(i)||(0,p.isBoolean)(i)||(0,p.isBigInt)(i))this.append(i.toString());else if((0,p.isNull)(i))this.append("null");else if((0,p.isDate)(i))this.appendImmediateValue(i.toISOString());else throw Error(`invalid immediate value ${i}`)}appendStringLiteral(i){this.append("'"),this.append(this.sanitizeStringLiteral(i)),this.append("'")}sortSelectModifiers(i){return(0,p.freeze)(i.toSorted((i,e)=>i.modifier&&e.modifier?c[i.modifier]-c[e.modifier]:1))}compileColumnAlterations(i){this.compileList(i)}announcesNewColumnDataType(){return!0}}let N=(0,p.freeze)({ForKeyShare:"for key share",ForNoKeyUpdate:"for no key update",ForUpdate:"for update",ForShare:"for share",NoWait:"nowait",SkipLocked:"skip locked",Distinct:"distinct"}),c=(0,p.freeze)({ForKeyShare:1,ForNoKeyUpdate:1,ForUpdate:1,ForShare:1,NoWait:2,SkipLocked:2,Distinct:0}),f=(0,p.freeze)({InnerJoin:"inner join",LeftJoin:"left join",RightJoin:"right join",FullJoin:"full join",CrossJoin:"cross join",LateralInnerJoin:"inner join lateral",LateralLeftJoin:"left join lateral",LateralCrossJoin:"cross join lateral",OuterApply:"outer apply",CrossApply:"cross apply",Using:"using"});i.s(["DefaultQueryCompiler",0,u])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=0m4a_kysely_dist_1skbhvx._.js.map
|
package/runtime/hub/apps/hub/.next/server/chunks/0sj1_@opentelemetry_api_build_esm_index_0xy-j06.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[57762,e=>{"use strict";var t,r,n,a,s,i,o,l,c,u,g,d;function h(e){return Symbol.for(e)}class p{constructor(e){const t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,r)=>{let n=new p(t._currentContext);return n._currentContext.set(e,r),n},t.deleteValue=e=>{let r=new p(t._currentContext);return r._currentContext.delete(e),r}}}let f=new p,_="1.9.1",v=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,w=function(e){let t=new Set([e]),r=new Set,n=e.match(v);if(!n)return()=>!1;let a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease)return function(t){return t===e};function s(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(v);if(!n)return s(e);let i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease||a.major!==i.major)return s(e);if(0===a.major)return a.minor===i.minor&&a.patch<=i.patch?(t.add(e),!0):s(e);return a.minor<=i.minor?(t.add(e),!0):s(e)}}(_),b=_.split(".")[0],m=Symbol.for(`opentelemetry.js.api.${b}`),E="object"==typeof globalThis?globalThis:"object"==typeof self?self:e.g;function S(e,t,r,n=!1){var a;let s=E[m]=null!=(a=E[m])?a:{version:_};if(!n&&s[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(s.version!==_){let t=Error(`@opentelemetry/api: Registration of version v${s.version} for ${e} does not match previously registered API v${_}`);return r.error(t.stack||t.message),!1}return s[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${_}.`),!0}function C(e){var t,r;let n=null==(t=E[m])?void 0:t.version;if(n&&w(n))return null==(r=E[m])?void 0:r[e]}function y(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${_}.`);let r=E[m];r&&delete r[e]}class R{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return O("debug",this._namespace,e)}error(...e){return O("error",this._namespace,e)}info(...e){return O("info",this._namespace,e)}warn(...e){return O("warn",this._namespace,e)}verbose(...e){return O("verbose",this._namespace,e)}}function O(e,t,r){let n=C("diag");if(n)return n[e](t,...r)}(o=t||(t={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL";class x{static instance(){return this._instance||(this._instance=new x),this._instance}constructor(){function e(e){return function(...t){let r=C("diag");if(r)return r[e](...t)}}const r=this,n=(e,n={logLevel:t.INFO})=>{var a,s,i;if(e===r){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error(null!=(a=e.stack)?a:e.message),!1}"number"==typeof n&&(n={logLevel:n});let o=C("diag"),l=function(e,r){function n(t,n){let a=r[t];return"function"==typeof a&&e>=n?a.bind(r):function(){}}return e<t.NONE?e=t.NONE:e>t.ALL&&(e=t.ALL),r=r||{},{error:n("error",t.ERROR),warn:n("warn",t.WARN),info:n("info",t.INFO),debug:n("debug",t.DEBUG),verbose:n("verbose",t.VERBOSE)}}(null!=(s=n.logLevel)?s:t.INFO,e);if(o&&!n.suppressOverrideMessage){let e=null!=(i=Error().stack)?i:"<failed to generate stacktrace>";o.warn(`Current logger will be overwritten from ${e}`),l.warn(`Current logger will overwrite one already registered from ${e}`)}return S("diag",l,r,!0)};r.setLogger=n,r.disable=()=>{y("diag",r)},r.createComponentLogger=e=>new R(e),r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}}let N="context",T=new class{active(){return f}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}};class A{static getInstance(){return this._instance||(this._instance=new A),this._instance}setGlobalContextManager(e){return S(N,e,x.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return C(N)||T}disable(){this._getContextManager().disable(),y(N,x.instance())}}let I=A.getInstance(),D=x.instance();class L{}class M{addCallback(e){}removeCallback(e){}}let P=new class{createGauge(e,t){return $}createHistogram(e,t){return k}createCounter(e,t){return V}createUpDownCounter(e,t){return B}createObservableGauge(e,t){return U}createObservableCounter(e,t){return j}createObservableUpDownCounter(e,t){return G}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},V=new class extends L{add(e,t){}},$=new class extends L{record(e,t){}},k=new class extends L{record(e,t){}},B=new class extends L{add(e,t){}},j=new class extends M{},U=new class extends M{},G=new class extends M{},F=new class{getMeter(e,t,r){return P}},z="metrics";class K{static getInstance(){return this._instance||(this._instance=new K),this._instance}setGlobalMeterProvider(e){return S(z,e,x.instance())}getMeterProvider(){return C(z)||F}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){y(z,x.instance())}}let W=K.getInstance(),X={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},H={set(e,t,r){null!=e&&(e[t]=r)}},Y=h("OpenTelemetry Baggage Key");function q(e){return e.getValue(Y)||void 0}function J(){return q(A.getInstance().active())}function Q(e,t){return e.setValue(Y,t)}function Z(e){return e.deleteValue(Y)}class ee{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,t){let r=new ee(this._entries);return r._entries.set(e,t),r}removeEntry(e){let t=new ee(this._entries);return t._entries.delete(e),t}removeEntries(...e){let t=new ee(this._entries);for(let r of e)t._entries.delete(r);return t}clear(){return new ee}}let et=Symbol("BaggageEntryMetadata"),er=x.instance();function en(e={}){return new ee(new Map(Object.entries(e)))}let ea="propagation",es=new class{inject(e,t){}extract(e,t){return e}fields(){return[]}};class ei{constructor(){this.createBaggage=en,this.getBaggage=q,this.getActiveBaggage=J,this.setBaggage=Q,this.deleteBaggage=Z}static getInstance(){return this._instance||(this._instance=new ei),this._instance}setGlobalPropagator(e){return S(ea,e,x.instance())}inject(e,t,r=H){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=X){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){y(ea,x.instance())}_getGlobalPropagator(){return C(ea)||es}}let eo=ei.getInstance();(l=r||(r={}))[l.NONE=0]="NONE",l[l.SAMPLED=1]="SAMPLED";let el="0000000000000000",ec="00000000000000000000000000000000",eu={traceId:ec,spanId:el,traceFlags:r.NONE};class eg{constructor(e=eu){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}let ed=h("OpenTelemetry Context Key SPAN");function eh(e){return e.getValue(ed)||void 0}function ep(){return eh(A.getInstance().active())}function ef(e,t){return e.setValue(ed,t)}function e_(e){return e.deleteValue(ed)}function ev(e,t){return ef(e,new eg(t))}function ew(e){var t;return null==(t=eh(e))?void 0:t.spanContext()}let eb=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function em(e,t){if("string"!=typeof e||e.length!==t)return!1;let r=0;for(let t=0;t<e.length;t+=4)r+=(0|eb[e.charCodeAt(t)])+(0|eb[e.charCodeAt(t+1)])+(0|eb[e.charCodeAt(t+2)])+(0|eb[e.charCodeAt(t+3)]);return r===t}function eE(e){return em(e,32)&&e!==ec}function eS(e){return em(e,16)&&e!==el}function eC(e){return eE(e.traceId)&&eS(e.spanId)}function ey(e){return new eg(e)}let eR=A.getInstance();class eO{startSpan(e,t,r=eR.active()){var n;if(null==t?void 0:t.root)return new eg;let a=r&&ew(r);return null!==(n=a)&&"object"==typeof n&&"spanId"in n&&"string"==typeof n.spanId&&"traceId"in n&&"string"==typeof n.traceId&&"traceFlags"in n&&"number"==typeof n.traceFlags&&eC(a)?new eg(a):new eg}startActiveSpan(e,t,r,n){let a,s,i;if(arguments.length<2)return;2==arguments.length?i=t:3==arguments.length?(a=t,i=r):(a=t,s=r,i=n);let o=null!=s?s:eR.active(),l=this.startSpan(e,a,o),c=ef(o,l);return eR.with(c,i,void 0,l)}}let ex=new eO;class eN{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ex}}let eT=new class{getTracer(e,t,r){return new eO}};class eA{getTracer(e,t,r){var n;return null!=(n=this.getDelegateTracer(e,t,r))?n:new eN(this,e,t,r)}getDelegate(){var e;return null!=(e=this._delegate)?e:eT}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(e,t,r)}}let eI="trace";class eD{constructor(){this._proxyTracerProvider=new eA,this.wrapSpanContext=ey,this.isSpanContextValid=eC,this.deleteSpan=e_,this.getSpan=eh,this.getActiveSpan=ep,this.getSpanContext=ew,this.setSpan=ef,this.setSpanContext=ev}static getInstance(){return this._instance||(this._instance=new eD),this._instance}setGlobalTracerProvider(e){let t=S(eI,this._proxyTracerProvider,x.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return C(eI)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){y(eI,x.instance()),this._proxyTracerProvider=new eA}}let eL=eD.getInstance(),eM={context:I,diag:D,metrics:W,propagation:eo,trace:eL};e.s(["default",0,eM],55475),e.i(55475);let eP=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],eV={};if("u">typeof console)for(let e of["error","warn","info","debug","trace","log"])"function"==typeof console[e]&&(eV[e]=console[e]);(c=n||(n={}))[c.INT=0]="INT",c[c.DOUBLE=1]="DOUBLE",(u=a||(a={}))[u.NOT_RECORD=0]="NOT_RECORD",u[u.RECORD=1]="RECORD",u[u.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",(g=s||(s={}))[g.INTERNAL=0]="INTERNAL",g[g.SERVER=1]="SERVER",g[g.CLIENT=2]="CLIENT",g[g.PRODUCER=3]="PRODUCER",g[g.CONSUMER=4]="CONSUMER",(d=i||(i={}))[d.UNSET=0]="UNSET",d[d.OK=1]="OK",d[d.ERROR=2]="ERROR";let e$="[_0-9a-z-*/]",ek=`[a-z]${e$}{0,255}`,eB=`[a-z0-9]${e$}{0,240}@[a-z]${e$}{0,13}`,ej=RegExp(`^(?:${ek}|${eB})$`),eU=/^[ -~]{0,255}[!-~]$/,eG=/,|=/;class eF{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return Array.from(this._internalState.keys()).reduceRight((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){!(e.length>512)&&(this._internalState=e.split(",").reduceRight((e,t)=>{let r=t.trim(),n=r.indexOf("=");if(-1!==n){let a=r.slice(0,n),s=r.slice(n+1,t.length);ej.test(a)&&eU.test(s)&&!eG.test(s)&&e.set(a,s)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new eF;return e._internalState=new Map(this._internalState),e}}e.s(["DiagConsoleLogger",0,class{constructor(){for(let e=0;e<eP.length;e++)this[eP[e].n]=function(e){return function(...t){let r=eV[e];if("function"!=typeof r&&(r=eV.log),"function"!=typeof r&&console&&"function"!=typeof(r=console[e])&&(r=console.log),"function"==typeof r)return r.apply(console,t)}}(eP[e].c)}},"DiagLogLevel",0,t,"INVALID_SPANID",0,el,"INVALID_SPAN_CONTEXT",0,eu,"INVALID_TRACEID",0,ec,"ProxyTracer",0,eN,"ProxyTracerProvider",0,eA,"ROOT_CONTEXT",0,f,"SamplingDecision",0,a,"SpanKind",0,s,"SpanStatusCode",0,i,"TraceFlags",0,r,"ValueType",0,n,"baggageEntryMetadataFromString",0,function(e){return"string"!=typeof e&&(er.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:et,toString:()=>e}},"context",0,I,"createContextKey",0,h,"createNoopMeter",0,function(){return P},"createTraceState",0,function(e){return new eF(e)},"default",0,eM,"defaultTextMapGetter",0,X,"defaultTextMapSetter",0,H,"diag",0,D,"isSpanContextValid",0,eC,"isValidSpanId",0,eS,"isValidTraceId",0,eE,"metrics",0,W,"propagation",0,eo,"trace",0,eL],57762)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=0sj1_%40opentelemetry_api_build_esm_index_0xy-j06.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[49457,e=>{"use strict";e.s([],36373),e.i(36373);var r=e.i(13906);e.s(["createKyselyAdapter",()=>r.createKyselyAdapter,"kyselyAdapter",()=>r.kyselyAdapter],49457)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js.map
|